1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405 |
- var Cy = Object.defineProperty;
- var Ty = (e, t, n) =>
- t in e
- ? Cy(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
- : (e[t] = n);
- var Ta = (e, t, n) => (Ty(e, typeof t != 'symbol' ? t + '' : t, n), n);
- function QC() {
- import.meta.url, import('_').catch(() => 1);
- async function* e() {}
- }
- (function () {
- const t = document.createElement('link').relList;
- if (t && t.supports && t.supports('modulepreload')) return;
- for (const o of document.querySelectorAll('link[rel="modulepreload"]')) r(o);
- new MutationObserver(o => {
- for (const i of o)
- if (i.type === 'childList')
- for (const s of i.addedNodes)
- s.tagName === 'LINK' && s.rel === 'modulepreload' && r(s);
- }).observe(document, { childList: !0, subtree: !0 });
- function n(o) {
- const i = {};
- return (
- o.integrity && (i.integrity = o.integrity),
- o.referrerPolicy && (i.referrerPolicy = o.referrerPolicy),
- o.crossOrigin === 'use-credentials'
- ? (i.credentials = 'include')
- : o.crossOrigin === 'anonymous'
- ? (i.credentials = 'omit')
- : (i.credentials = 'same-origin'),
- i
- );
- }
- function r(o) {
- if (o.ep) return;
- o.ep = !0;
- const i = n(o);
- fetch(o.href, i);
- }
- })();
- function Tn(e, t) {
- const n = Object.create(null),
- r = e.split(',');
- for (let o = 0; o < r.length; o++) n[r[o]] = !0;
- return t ? o => !!n[o.toLowerCase()] : o => !!n[o];
- }
- const Pe = Object.freeze({}),
- Jr = Object.freeze([]),
- Et = () => {},
- Ld = () => !1,
- Ay = /^on[^a-z]/,
- co = e => Ay.test(e),
- hs = e => e.startsWith('onUpdate:'),
- Te = Object.assign,
- ec = (e, t) => {
- const n = e.indexOf(t);
- n > -1 && e.splice(n, 1);
- },
- Py = Object.prototype.hasOwnProperty,
- _e = (e, t) => Py.call(e, t),
- ne = Array.isArray,
- vr = e => uo(e) === '[object Map]',
- Ir = e => uo(e) === '[object Set]',
- Eu = e => uo(e) === '[object Date]',
- $y = e => uo(e) === '[object RegExp]',
- ce = e => typeof e == 'function',
- Ie = e => typeof e == 'string',
- Xo = e => typeof e == 'symbol',
- Ce = e => e !== null && typeof e == 'object',
- qs = e => Ce(e) && ce(e.then) && ce(e.catch),
- Nd = Object.prototype.toString,
- uo = e => Nd.call(e),
- tc = e => uo(e).slice(8, -1),
- jd = e => uo(e) === '[object Object]',
- nc = e => Ie(e) && e !== 'NaN' && e[0] !== '-' && '' + parseInt(e, 10) === e,
- Do = Tn(
- ',key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted'
- ),
- Iy = Tn(
- 'bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo'
- ),
- zs = e => {
- const t = Object.create(null);
- return n => t[n] || (t[n] = e(n));
- },
- Ry = /-(\w)/g,
- Ot = zs(e => e.replace(Ry, (t, n) => (n ? n.toUpperCase() : ''))),
- ky = /\B([A-Z])/g,
- gt = zs(e => e.replace(ky, '-$1').toLowerCase()),
- Qn = zs(e => e.charAt(0).toUpperCase() + e.slice(1)),
- En = zs(e => (e ? `on${Qn(e)}` : '')),
- to = (e, t) => !Object.is(e, t),
- jn = (e, t) => {
- for (let n = 0; n < e.length; n++) e[n](t);
- },
- ms = (e, t, n) => {
- Object.defineProperty(e, t, { configurable: !0, enumerable: !1, value: n });
- },
- gs = e => {
- const t = parseFloat(e);
- return isNaN(t) ? e : t;
- },
- ys = e => {
- const t = Ie(e) ? Number(e) : NaN;
- return isNaN(t) ? e : t;
- };
- let Su;
- const vs = () =>
- Su ||
- (Su =
- typeof globalThis < 'u'
- ? globalThis
- : typeof self < 'u'
- ? self
- : typeof window < 'u'
- ? window
- : typeof global < 'u'
- ? global
- : {}),
- My =
- 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console',
- Fy = Tn(My);
- function yi(e) {
- if (ne(e)) {
- const t = {};
- for (let n = 0; n < e.length; n++) {
- const r = e[n],
- o = Ie(r) ? Ny(r) : yi(r);
- if (o) for (const i in o) t[i] = o[i];
- }
- return t;
- } else {
- if (Ie(e)) return e;
- if (Ce(e)) return e;
- }
- }
- const By = /;(?![^(]*\))/g,
- Dy = /:([^]+)/,
- Ly = /\/\*[^]*?\*\//g;
- function Ny(e) {
- const t = {};
- return (
- e
- .replace(Ly, '')
- .split(By)
- .forEach(n => {
- if (n) {
- const r = n.split(Dy);
- r.length > 1 && (t[r[0].trim()] = r[1].trim());
- }
- }),
- t
- );
- }
- function XC(e) {
- let t = '';
- if (!e || Ie(e)) return t;
- for (const n in e) {
- const r = e[n],
- o = n.startsWith('--') ? n : gt(n);
- (Ie(r) || typeof r == 'number') && (t += `${o}:${r};`);
- }
- return t;
- }
- function vi(e) {
- let t = '';
- if (Ie(e)) t = e;
- else if (ne(e))
- for (let n = 0; n < e.length; n++) {
- const r = vi(e[n]);
- r && (t += r + ' ');
- }
- else if (Ce(e)) for (const n in e) e[n] && (t += n + ' ');
- return t.trim();
- }
- function jy(e) {
- if (!e) return null;
- let { class: t, style: n } = e;
- return t && !Ie(t) && (e.class = vi(t)), n && (e.style = yi(n)), e;
- }
- const Uy =
- 'html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot',
- Hy =
- 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view',
- Vy = Tn(Uy),
- qy = Tn(Hy),
- zy =
- 'itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly',
- Wy = Tn(zy);
- function Ud(e) {
- return !!e || e === '';
- }
- function Ky(e, t) {
- if (e.length !== t.length) return !1;
- let n = !0;
- for (let r = 0; n && r < e.length; r++) n = Xn(e[r], t[r]);
- return n;
- }
- function Xn(e, t) {
- if (e === t) return !0;
- let n = Eu(e),
- r = Eu(t);
- if (n || r) return n && r ? e.getTime() === t.getTime() : !1;
- if (((n = Xo(e)), (r = Xo(t)), n || r)) return e === t;
- if (((n = ne(e)), (r = ne(t)), n || r)) return n && r ? Ky(e, t) : !1;
- if (((n = Ce(e)), (r = Ce(t)), n || r)) {
- if (!n || !r) return !1;
- const o = Object.keys(e).length,
- i = Object.keys(t).length;
- if (o !== i) return !1;
- for (const s in e) {
- const a = e.hasOwnProperty(s),
- c = t.hasOwnProperty(s);
- if ((a && !c) || (!a && c) || !Xn(e[s], t[s])) return !1;
- }
- }
- return String(e) === String(t);
- }
- function Ws(e, t) {
- return e.findIndex(n => Xn(n, t));
- }
- const Gy = e =>
- Ie(e)
- ? e
- : e == null
- ? ''
- : ne(e) || (Ce(e) && (e.toString === Nd || !ce(e.toString)))
- ? JSON.stringify(e, Hd, 2)
- : String(e),
- Hd = (e, t) =>
- t && t.__v_isRef
- ? Hd(e, t.value)
- : vr(t)
- ? {
- [`Map(${t.size})`]: [...t.entries()].reduce(
- (n, [r, o]) => ((n[`${r} =>`] = o), n),
- {}
- )
- }
- : Ir(t)
- ? { [`Set(${t.size})`]: [...t.values()] }
- : Ce(t) && !ne(t) && !jd(t)
- ? String(t)
- : t;
- function bs(e, ...t) {
- console.warn(`[Vue warn] ${e}`, ...t);
- }
- let $t;
- class rc {
- constructor(t = !1) {
- (this.detached = t),
- (this._active = !0),
- (this.effects = []),
- (this.cleanups = []),
- (this.parent = $t),
- !t && $t && (this.index = ($t.scopes || ($t.scopes = [])).push(this) - 1);
- }
- get active() {
- return this._active;
- }
- run(t) {
- if (this._active) {
- const n = $t;
- try {
- return ($t = this), t();
- } finally {
- $t = n;
- }
- } else bs('cannot run an inactive effect scope.');
- }
- on() {
- $t = this;
- }
- off() {
- $t = this.parent;
- }
- stop(t) {
- if (this._active) {
- let n, r;
- for (n = 0, r = this.effects.length; n < r; n++) this.effects[n].stop();
- for (n = 0, r = this.cleanups.length; n < r; n++) this.cleanups[n]();
- if (this.scopes)
- for (n = 0, r = this.scopes.length; n < r; n++) this.scopes[n].stop(!0);
- if (!this.detached && this.parent && !t) {
- const o = this.parent.scopes.pop();
- o &&
- o !== this &&
- ((this.parent.scopes[this.index] = o), (o.index = this.index));
- }
- (this.parent = void 0), (this._active = !1);
- }
- }
- }
- function oc(e) {
- return new rc(e);
- }
- function Vd(e, t = $t) {
- t && t.active && t.effects.push(e);
- }
- function ic() {
- return $t;
- }
- function qd(e) {
- $t
- ? $t.cleanups.push(e)
- : bs(
- 'onScopeDispose() is called when there is no active effect scope to be associated with.'
- );
- }
- const sc = e => {
- const t = new Set(e);
- return (t.w = 0), (t.n = 0), t;
- },
- zd = e => (e.w & Zn) > 0,
- Wd = e => (e.n & Zn) > 0,
- Yy = ({ deps: e }) => {
- if (e.length) for (let t = 0; t < e.length; t++) e[t].w |= Zn;
- },
- Jy = e => {
- const { deps: t } = e;
- if (t.length) {
- let n = 0;
- for (let r = 0; r < t.length; r++) {
- const o = t[r];
- zd(o) && !Wd(o) ? o.delete(e) : (t[n++] = o),
- (o.w &= ~Zn),
- (o.n &= ~Zn);
- }
- t.length = n;
- }
- },
- _s = new WeakMap();
- let Io = 0,
- Zn = 1;
- const nl = 30;
- let mt;
- const br = Symbol('iterate'),
- rl = Symbol('Map key iterate');
- class bi {
- constructor(t, n = null, r) {
- (this.fn = t),
- (this.scheduler = n),
- (this.active = !0),
- (this.deps = []),
- (this.parent = void 0),
- Vd(this, r);
- }
- run() {
- if (!this.active) return this.fn();
- let t = mt,
- n = zn;
- for (; t; ) {
- if (t === this) return;
- t = t.parent;
- }
- try {
- return (
- (this.parent = mt),
- (mt = this),
- (zn = !0),
- (Zn = 1 << ++Io),
- Io <= nl ? Yy(this) : xu(this),
- this.fn()
- );
- } finally {
- Io <= nl && Jy(this),
- (Zn = 1 << --Io),
- (mt = this.parent),
- (zn = n),
- (this.parent = void 0),
- this.deferStop && this.stop();
- }
- }
- stop() {
- mt === this
- ? (this.deferStop = !0)
- : this.active &&
- (xu(this), this.onStop && this.onStop(), (this.active = !1));
- }
- }
- function xu(e) {
- const { deps: t } = e;
- if (t.length) {
- for (let n = 0; n < t.length; n++) t[n].delete(e);
- t.length = 0;
- }
- }
- function Qy(e, t) {
- e.effect && (e = e.effect.fn);
- const n = new bi(e);
- t && (Te(n, t), t.scope && Vd(n, t.scope)), (!t || !t.lazy) && n.run();
- const r = n.run.bind(n);
- return (r.effect = n), r;
- }
- function Xy(e) {
- e.effect.stop();
- }
- let zn = !0;
- const Kd = [];
- function Rr() {
- Kd.push(zn), (zn = !1);
- }
- function kr() {
- const e = Kd.pop();
- zn = e === void 0 ? !0 : e;
- }
- function lt(e, t, n) {
- if (zn && mt) {
- let r = _s.get(e);
- r || _s.set(e, (r = new Map()));
- let o = r.get(n);
- o || r.set(n, (o = sc())),
- Gd(o, { effect: mt, target: e, type: t, key: n });
- }
- }
- function Gd(e, t) {
- let n = !1;
- Io <= nl ? Wd(e) || ((e.n |= Zn), (n = !zd(e))) : (n = !e.has(mt)),
- n &&
- (e.add(mt),
- mt.deps.push(e),
- mt.onTrack && mt.onTrack(Te({ effect: mt }, t)));
- }
- function sn(e, t, n, r, o, i) {
- const s = _s.get(e);
- if (!s) return;
- let a = [];
- if (t === 'clear') a = [...s.values()];
- else if (n === 'length' && ne(e)) {
- const l = Number(r);
- s.forEach((u, f) => {
- (f === 'length' || f >= l) && a.push(u);
- });
- } else
- switch ((n !== void 0 && a.push(s.get(n)), t)) {
- case 'add':
- ne(e)
- ? nc(n) && a.push(s.get('length'))
- : (a.push(s.get(br)), vr(e) && a.push(s.get(rl)));
- break;
- case 'delete':
- ne(e) || (a.push(s.get(br)), vr(e) && a.push(s.get(rl)));
- break;
- case 'set':
- vr(e) && a.push(s.get(br));
- break;
- }
- const c = {
- target: e,
- type: t,
- key: n,
- newValue: r,
- oldValue: o,
- oldTarget: i
- };
- if (a.length === 1) a[0] && ol(a[0], c);
- else {
- const l = [];
- for (const u of a) u && l.push(...u);
- ol(sc(l), c);
- }
- }
- function ol(e, t) {
- const n = ne(e) ? e : [...e];
- for (const r of n) r.computed && Ou(r, t);
- for (const r of n) r.computed || Ou(r, t);
- }
- function Ou(e, t) {
- (e !== mt || e.allowRecurse) &&
- (e.onTrigger && e.onTrigger(Te({ effect: e }, t)),
- e.scheduler ? e.scheduler() : e.run());
- }
- function Zy(e, t) {
- var n;
- return (n = _s.get(e)) == null ? void 0 : n.get(t);
- }
- const ev = Tn('__proto__,__v_isRef,__isVue'),
- Yd = new Set(
- Object.getOwnPropertyNames(Symbol)
- .filter(e => e !== 'arguments' && e !== 'caller')
- .map(e => Symbol[e])
- .filter(Xo)
- ),
- tv = Ks(),
- nv = Ks(!1, !0),
- rv = Ks(!0),
- ov = Ks(!0, !0),
- Cu = iv();
- function iv() {
- const e = {};
- return (
- ['includes', 'indexOf', 'lastIndexOf'].forEach(t => {
- e[t] = function (...n) {
- const r = de(this);
- for (let i = 0, s = this.length; i < s; i++) lt(r, 'get', i + '');
- const o = r[t](...n);
- return o === -1 || o === !1 ? r[t](...n.map(de)) : o;
- };
- }),
- ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(t => {
- e[t] = function (...n) {
- Rr();
- const r = de(this)[t].apply(this, n);
- return kr(), r;
- };
- }),
- e
- );
- }
- function sv(e) {
- const t = de(this);
- return lt(t, 'has', e), t.hasOwnProperty(e);
- }
- function Ks(e = !1, t = !1) {
- return function (r, o, i) {
- if (o === '__v_isReactive') return !e;
- if (o === '__v_isReadonly') return e;
- if (o === '__v_isShallow') return t;
- if (o === '__v_raw' && i === (e ? (t ? rp : np) : t ? tp : ep).get(r))
- return r;
- const s = ne(r);
- if (!e) {
- if (s && _e(Cu, o)) return Reflect.get(Cu, o, i);
- if (o === 'hasOwnProperty') return sv;
- }
- const a = Reflect.get(r, o, i);
- return (Xo(o) ? Yd.has(o) : ev(o)) || (e || lt(r, 'get', o), t)
- ? a
- : ke(a)
- ? s && nc(o)
- ? a
- : a.value
- : Ce(a)
- ? e
- ? lc(a)
- : ct(a)
- : a;
- };
- }
- const av = Jd(),
- lv = Jd(!0);
- function Jd(e = !1) {
- return function (n, r, o, i) {
- let s = n[r];
- if (Cn(s) && ke(s) && !ke(o)) return !1;
- if (
- !e &&
- (!Zo(o) && !Cn(o) && ((s = de(s)), (o = de(o))),
- !ne(n) && ke(s) && !ke(o))
- )
- return (s.value = o), !0;
- const a = ne(n) && nc(r) ? Number(r) < n.length : _e(n, r),
- c = Reflect.set(n, r, o, i);
- return (
- n === de(i) &&
- (a ? to(o, s) && sn(n, 'set', r, o, s) : sn(n, 'add', r, o)),
- c
- );
- };
- }
- function cv(e, t) {
- const n = _e(e, t),
- r = e[t],
- o = Reflect.deleteProperty(e, t);
- return o && n && sn(e, 'delete', t, void 0, r), o;
- }
- function uv(e, t) {
- const n = Reflect.has(e, t);
- return (!Xo(t) || !Yd.has(t)) && lt(e, 'has', t), n;
- }
- function fv(e) {
- return lt(e, 'iterate', ne(e) ? 'length' : br), Reflect.ownKeys(e);
- }
- const Qd = { get: tv, set: av, deleteProperty: cv, has: uv, ownKeys: fv },
- Xd = {
- get: rv,
- set(e, t) {
- return (
- bs(
- `Set operation on key "${String(t)}" failed: target is readonly.`,
- e
- ),
- !0
- );
- },
- deleteProperty(e, t) {
- return (
- bs(
- `Delete operation on key "${String(t)}" failed: target is readonly.`,
- e
- ),
- !0
- );
- }
- },
- dv = Te({}, Qd, { get: nv, set: lv }),
- pv = Te({}, Xd, { get: ov }),
- ac = e => e,
- Gs = e => Reflect.getPrototypeOf(e);
- function Ui(e, t, n = !1, r = !1) {
- e = e.__v_raw;
- const o = de(e),
- i = de(t);
- n || (t !== i && lt(o, 'get', t), lt(o, 'get', i));
- const { has: s } = Gs(o),
- a = r ? ac : n ? cc : ti;
- if (s.call(o, t)) return a(e.get(t));
- if (s.call(o, i)) return a(e.get(i));
- e !== o && e.get(t);
- }
- function Hi(e, t = !1) {
- const n = this.__v_raw,
- r = de(n),
- o = de(e);
- return (
- t || (e !== o && lt(r, 'has', e), lt(r, 'has', o)),
- e === o ? n.has(e) : n.has(e) || n.has(o)
- );
- }
- function Vi(e, t = !1) {
- return (
- (e = e.__v_raw), !t && lt(de(e), 'iterate', br), Reflect.get(e, 'size', e)
- );
- }
- function Tu(e) {
- e = de(e);
- const t = de(this);
- return Gs(t).has.call(t, e) || (t.add(e), sn(t, 'add', e, e)), this;
- }
- function Au(e, t) {
- t = de(t);
- const n = de(this),
- { has: r, get: o } = Gs(n);
- let i = r.call(n, e);
- i ? Zd(n, r, e) : ((e = de(e)), (i = r.call(n, e)));
- const s = o.call(n, e);
- return (
- n.set(e, t),
- i ? to(t, s) && sn(n, 'set', e, t, s) : sn(n, 'add', e, t),
- this
- );
- }
- function Pu(e) {
- const t = de(this),
- { has: n, get: r } = Gs(t);
- let o = n.call(t, e);
- o ? Zd(t, n, e) : ((e = de(e)), (o = n.call(t, e)));
- const i = r ? r.call(t, e) : void 0,
- s = t.delete(e);
- return o && sn(t, 'delete', e, void 0, i), s;
- }
- function $u() {
- const e = de(this),
- t = e.size !== 0,
- n = vr(e) ? new Map(e) : new Set(e),
- r = e.clear();
- return t && sn(e, 'clear', void 0, void 0, n), r;
- }
- function qi(e, t) {
- return function (r, o) {
- const i = this,
- s = i.__v_raw,
- a = de(s),
- c = t ? ac : e ? cc : ti;
- return (
- !e && lt(a, 'iterate', br), s.forEach((l, u) => r.call(o, c(l), c(u), i))
- );
- };
- }
- function zi(e, t, n) {
- return function (...r) {
- const o = this.__v_raw,
- i = de(o),
- s = vr(i),
- a = e === 'entries' || (e === Symbol.iterator && s),
- c = e === 'keys' && s,
- l = o[e](...r),
- u = n ? ac : t ? cc : ti;
- return (
- !t && lt(i, 'iterate', c ? rl : br),
- {
- next() {
- const { value: f, done: d } = l.next();
- return d
- ? { value: f, done: d }
- : { value: a ? [u(f[0]), u(f[1])] : u(f), done: d };
- },
- [Symbol.iterator]() {
- return this;
- }
- }
- );
- };
- }
- function In(e) {
- return function (...t) {
- {
- const n = t[0] ? `on key "${t[0]}" ` : '';
- console.warn(
- `${Qn(e)} operation ${n}failed: target is readonly.`,
- de(this)
- );
- }
- return e === 'delete' ? !1 : this;
- };
- }
- function hv() {
- const e = {
- get(i) {
- return Ui(this, i);
- },
- get size() {
- return Vi(this);
- },
- has: Hi,
- add: Tu,
- set: Au,
- delete: Pu,
- clear: $u,
- forEach: qi(!1, !1)
- },
- t = {
- get(i) {
- return Ui(this, i, !1, !0);
- },
- get size() {
- return Vi(this);
- },
- has: Hi,
- add: Tu,
- set: Au,
- delete: Pu,
- clear: $u,
- forEach: qi(!1, !0)
- },
- n = {
- get(i) {
- return Ui(this, i, !0);
- },
- get size() {
- return Vi(this, !0);
- },
- has(i) {
- return Hi.call(this, i, !0);
- },
- add: In('add'),
- set: In('set'),
- delete: In('delete'),
- clear: In('clear'),
- forEach: qi(!0, !1)
- },
- r = {
- get(i) {
- return Ui(this, i, !0, !0);
- },
- get size() {
- return Vi(this, !0);
- },
- has(i) {
- return Hi.call(this, i, !0);
- },
- add: In('add'),
- set: In('set'),
- delete: In('delete'),
- clear: In('clear'),
- forEach: qi(!0, !0)
- };
- return (
- ['keys', 'values', 'entries', Symbol.iterator].forEach(i => {
- (e[i] = zi(i, !1, !1)),
- (n[i] = zi(i, !0, !1)),
- (t[i] = zi(i, !1, !0)),
- (r[i] = zi(i, !0, !0));
- }),
- [e, n, t, r]
- );
- }
- const [mv, gv, yv, vv] = hv();
- function Ys(e, t) {
- const n = t ? (e ? vv : yv) : e ? gv : mv;
- return (r, o, i) =>
- o === '__v_isReactive'
- ? !e
- : o === '__v_isReadonly'
- ? e
- : o === '__v_raw'
- ? r
- : Reflect.get(_e(n, o) && o in r ? n : r, o, i);
- }
- const bv = { get: Ys(!1, !1) },
- _v = { get: Ys(!1, !0) },
- wv = { get: Ys(!0, !1) },
- Ev = { get: Ys(!0, !0) };
- function Zd(e, t, n) {
- const r = de(n);
- if (r !== n && t.call(e, r)) {
- const o = tc(e);
- console.warn(
- `Reactive ${o} contains both the raw and reactive versions of the same object${
- o === 'Map' ? ' as keys' : ''
- }, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
- );
- }
- }
- const ep = new WeakMap(),
- tp = new WeakMap(),
- np = new WeakMap(),
- rp = new WeakMap();
- function Sv(e) {
- switch (e) {
- case 'Object':
- case 'Array':
- return 1;
- case 'Map':
- case 'Set':
- case 'WeakMap':
- case 'WeakSet':
- return 2;
- default:
- return 0;
- }
- }
- function xv(e) {
- return e.__v_skip || !Object.isExtensible(e) ? 0 : Sv(tc(e));
- }
- function ct(e) {
- return Cn(e) ? e : Js(e, !1, Qd, bv, ep);
- }
- function op(e) {
- return Js(e, !1, dv, _v, tp);
- }
- function lc(e) {
- return Js(e, !0, Xd, wv, np);
- }
- function Gr(e) {
- return Js(e, !0, pv, Ev, rp);
- }
- function Js(e, t, n, r, o) {
- if (!Ce(e))
- return console.warn(`value cannot be made reactive: ${String(e)}`), e;
- if (e.__v_raw && !(t && e.__v_isReactive)) return e;
- const i = o.get(e);
- if (i) return i;
- const s = xv(e);
- if (s === 0) return e;
- const a = new Proxy(e, s === 2 ? r : n);
- return o.set(e, a), a;
- }
- function Gt(e) {
- return Cn(e) ? Gt(e.__v_raw) : !!(e && e.__v_isReactive);
- }
- function Cn(e) {
- return !!(e && e.__v_isReadonly);
- }
- function Zo(e) {
- return !!(e && e.__v_isShallow);
- }
- function ei(e) {
- return Gt(e) || Cn(e);
- }
- function de(e) {
- const t = e && e.__v_raw;
- return t ? de(t) : e;
- }
- function nn(e) {
- return ms(e, '__v_skip', !0), e;
- }
- const ti = e => (Ce(e) ? ct(e) : e),
- cc = e => (Ce(e) ? lc(e) : e);
- function uc(e) {
- zn &&
- mt &&
- ((e = de(e)),
- Gd(e.dep || (e.dep = sc()), { target: e, type: 'get', key: 'value' }));
- }
- function Qs(e, t) {
- e = de(e);
- const n = e.dep;
- n && ol(n, { target: e, type: 'set', key: 'value', newValue: t });
- }
- function ke(e) {
- return !!(e && e.__v_isRef === !0);
- }
- function Ee(e) {
- return sp(e, !1);
- }
- function ip(e) {
- return sp(e, !0);
- }
- function sp(e, t) {
- return ke(e) ? e : new Ov(e, t);
- }
- class Ov {
- constructor(t, n) {
- (this.__v_isShallow = n),
- (this.dep = void 0),
- (this.__v_isRef = !0),
- (this._rawValue = n ? t : de(t)),
- (this._value = n ? t : ti(t));
- }
- get value() {
- return uc(this), this._value;
- }
- set value(t) {
- const n = this.__v_isShallow || Zo(t) || Cn(t);
- (t = n ? t : de(t)),
- to(t, this._rawValue) &&
- ((this._rawValue = t), (this._value = n ? t : ti(t)), Qs(this, t));
- }
- }
- function Cv(e) {
- Qs(e, e.value);
- }
- function Ct(e) {
- return ke(e) ? e.value : e;
- }
- function Tv(e) {
- return ce(e) ? e() : Ct(e);
- }
- const Av = {
- get: (e, t, n) => Ct(Reflect.get(e, t, n)),
- set: (e, t, n, r) => {
- const o = e[t];
- return ke(o) && !ke(n) ? ((o.value = n), !0) : Reflect.set(e, t, n, r);
- }
- };
- function fc(e) {
- return Gt(e) ? e : new Proxy(e, Av);
- }
- class Pv {
- constructor(t) {
- (this.dep = void 0), (this.__v_isRef = !0);
- const { get: n, set: r } = t(
- () => uc(this),
- () => Qs(this)
- );
- (this._get = n), (this._set = r);
- }
- get value() {
- return this._get();
- }
- set value(t) {
- this._set(t);
- }
- }
- function $v(e) {
- return new Pv(e);
- }
- function il(e) {
- ei(e) ||
- console.warn(
- 'toRefs() expects a reactive object but received a plain one.'
- );
- const t = ne(e) ? new Array(e.length) : {};
- for (const n in e) t[n] = ap(e, n);
- return t;
- }
- class Iv {
- constructor(t, n, r) {
- (this._object = t),
- (this._key = n),
- (this._defaultValue = r),
- (this.__v_isRef = !0);
- }
- get value() {
- const t = this._object[this._key];
- return t === void 0 ? this._defaultValue : t;
- }
- set value(t) {
- this._object[this._key] = t;
- }
- get dep() {
- return Zy(de(this._object), this._key);
- }
- }
- class Rv {
- constructor(t) {
- (this._getter = t), (this.__v_isRef = !0), (this.__v_isReadonly = !0);
- }
- get value() {
- return this._getter();
- }
- }
- function is(e, t, n) {
- return ke(e)
- ? e
- : ce(e)
- ? new Rv(e)
- : Ce(e) && arguments.length > 1
- ? ap(e, t, n)
- : Ee(e);
- }
- function ap(e, t, n) {
- const r = e[t];
- return ke(r) ? r : new Iv(e, t, n);
- }
- class kv {
- constructor(t, n, r, o) {
- (this._setter = n),
- (this.dep = void 0),
- (this.__v_isRef = !0),
- (this.__v_isReadonly = !1),
- (this._dirty = !0),
- (this.effect = new bi(t, () => {
- this._dirty || ((this._dirty = !0), Qs(this));
- })),
- (this.effect.computed = this),
- (this.effect.active = this._cacheable = !o),
- (this.__v_isReadonly = r);
- }
- get value() {
- const t = de(this);
- return (
- uc(t),
- (t._dirty || !t._cacheable) &&
- ((t._dirty = !1), (t._value = t.effect.run())),
- t._value
- );
- }
- set value(t) {
- this._setter(t);
- }
- }
- function Mv(e, t, n = !1) {
- let r, o;
- const i = ce(e);
- i
- ? ((r = e),
- (o = () => {
- console.warn('Write operation failed: computed value is readonly');
- }))
- : ((r = e.get), (o = e.set));
- const s = new kv(r, o, i || !o, n);
- return (
- t &&
- !n &&
- ((s.effect.onTrack = t.onTrack), (s.effect.onTrigger = t.onTrigger)),
- s
- );
- }
- const _r = [];
- function Lo(e) {
- _r.push(e);
- }
- function No() {
- _r.pop();
- }
- function L(e, ...t) {
- Rr();
- const n = _r.length ? _r[_r.length - 1].component : null,
- r = n && n.appContext.config.warnHandler,
- o = Fv();
- if (r)
- rn(r, n, 11, [
- e + t.join(''),
- n && n.proxy,
- o.map(({ vnode: i }) => `at <${aa(n, i.type)}>`).join(`
- `),
- o
- ]);
- else {
- const i = [`[Vue warn]: ${e}`, ...t];
- o.length &&
- i.push(
- `
- `,
- ...Bv(o)
- ),
- console.warn(...i);
- }
- kr();
- }
- function Fv() {
- let e = _r[_r.length - 1];
- if (!e) return [];
- const t = [];
- for (; e; ) {
- const n = t[0];
- n && n.vnode === e
- ? n.recurseCount++
- : t.push({ vnode: e, recurseCount: 0 });
- const r = e.component && e.component.parent;
- e = r && r.vnode;
- }
- return t;
- }
- function Bv(e) {
- const t = [];
- return (
- e.forEach((n, r) => {
- t.push(
- ...(r === 0
- ? []
- : [
- `
- `
- ]),
- ...Dv(n)
- );
- }),
- t
- );
- }
- function Dv({ vnode: e, recurseCount: t }) {
- const n = t > 0 ? `... (${t} recursive calls)` : '',
- r = e.component ? e.component.parent == null : !1,
- o = ` at <${aa(e.component, e.type, r)}`,
- i = '>' + n;
- return e.props ? [o, ...Lv(e.props), i] : [o + i];
- }
- function Lv(e) {
- const t = [],
- n = Object.keys(e);
- return (
- n.slice(0, 3).forEach(r => {
- t.push(...lp(r, e[r]));
- }),
- n.length > 3 && t.push(' ...'),
- t
- );
- }
- function lp(e, t, n) {
- return Ie(t)
- ? ((t = JSON.stringify(t)), n ? t : [`${e}=${t}`])
- : typeof t == 'number' || typeof t == 'boolean' || t == null
- ? n
- ? t
- : [`${e}=${t}`]
- : ke(t)
- ? ((t = lp(e, de(t.value), !0)), n ? t : [`${e}=Ref<`, t, '>'])
- : ce(t)
- ? [`${e}=fn${t.name ? `<${t.name}>` : ''}`]
- : ((t = de(t)), n ? t : [`${e}=`, t]);
- }
- function dc(e, t) {
- e !== void 0 &&
- (typeof e != 'number'
- ? L(`${t} is not a valid number - got ${JSON.stringify(e)}.`)
- : isNaN(e) &&
- L(`${t} is NaN - the duration expression might be incorrect.`));
- }
- const pc = {
- sp: 'serverPrefetch hook',
- bc: 'beforeCreate hook',
- c: 'created hook',
- bm: 'beforeMount hook',
- m: 'mounted hook',
- bu: 'beforeUpdate hook',
- u: 'updated',
- bum: 'beforeUnmount hook',
- um: 'unmounted hook',
- a: 'activated hook',
- da: 'deactivated hook',
- ec: 'errorCaptured hook',
- rtc: 'renderTracked hook',
- rtg: 'renderTriggered hook',
- [0]: 'setup function',
- [1]: 'render function',
- [2]: 'watcher getter',
- [3]: 'watcher callback',
- [4]: 'watcher cleanup function',
- [5]: 'native event handler',
- [6]: 'component event handler',
- [7]: 'vnode hook',
- [8]: 'directive hook',
- [9]: 'transition hook',
- [10]: 'app errorHandler',
- [11]: 'app warnHandler',
- [12]: 'ref function',
- [13]: 'async component loader',
- [14]: 'scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'
- };
- function rn(e, t, n, r) {
- let o;
- try {
- o = r ? e(...r) : e();
- } catch (i) {
- Mr(i, t, n);
- }
- return o;
- }
- function It(e, t, n, r) {
- if (ce(e)) {
- const i = rn(e, t, n, r);
- return (
- i &&
- qs(i) &&
- i.catch(s => {
- Mr(s, t, n);
- }),
- i
- );
- }
- const o = [];
- for (let i = 0; i < e.length; i++) o.push(It(e[i], t, n, r));
- return o;
- }
- function Mr(e, t, n, r = !0) {
- const o = t ? t.vnode : null;
- if (t) {
- let i = t.parent;
- const s = t.proxy,
- a = pc[n];
- for (; i; ) {
- const l = i.ec;
- if (l) {
- for (let u = 0; u < l.length; u++) if (l[u](e, s, a) === !1) return;
- }
- i = i.parent;
- }
- const c = t.appContext.config.errorHandler;
- if (c) {
- rn(c, null, 10, [e, s, a]);
- return;
- }
- }
- Nv(e, n, o, r);
- }
- function Nv(e, t, n, r = !0) {
- {
- const o = pc[t];
- if (
- (n && Lo(n),
- L(`Unhandled error${o ? ` during execution of ${o}` : ''}`),
- n && No(),
- r)
- )
- throw e;
- console.error(e);
- }
- }
- let ni = !1,
- sl = !1;
- const at = [];
- let en = 0;
- const Qr = [];
- let Qt = null,
- Bn = 0;
- const cp = Promise.resolve();
- let hc = null;
- const jv = 100;
- function St(e) {
- const t = hc || cp;
- return e ? t.then(this ? e.bind(this) : e) : t;
- }
- function Uv(e) {
- let t = en + 1,
- n = at.length;
- for (; t < n; ) {
- const r = (t + n) >>> 1;
- ri(at[r]) < e ? (t = r + 1) : (n = r);
- }
- return t;
- }
- function _i(e) {
- (!at.length || !at.includes(e, ni && e.allowRecurse ? en + 1 : en)) &&
- (e.id == null ? at.push(e) : at.splice(Uv(e.id), 0, e), up());
- }
- function up() {
- !ni && !sl && ((sl = !0), (hc = cp.then(fp)));
- }
- function Hv(e) {
- const t = at.indexOf(e);
- t > en && at.splice(t, 1);
- }
- function Xs(e) {
- ne(e)
- ? Qr.push(...e)
- : (!Qt || !Qt.includes(e, e.allowRecurse ? Bn + 1 : Bn)) && Qr.push(e),
- up();
- }
- function Iu(e, t = ni ? en + 1 : 0) {
- for (e = e || new Map(); t < at.length; t++) {
- const n = at[t];
- if (n && n.pre) {
- if (mc(e, n)) continue;
- at.splice(t, 1), t--, n();
- }
- }
- }
- function ws(e) {
- if (Qr.length) {
- const t = [...new Set(Qr)];
- if (((Qr.length = 0), Qt)) {
- Qt.push(...t);
- return;
- }
- for (
- Qt = t, e = e || new Map(), Qt.sort((n, r) => ri(n) - ri(r)), Bn = 0;
- Bn < Qt.length;
- Bn++
- )
- mc(e, Qt[Bn]) || Qt[Bn]();
- (Qt = null), (Bn = 0);
- }
- }
- const ri = e => (e.id == null ? 1 / 0 : e.id),
- Vv = (e, t) => {
- const n = ri(e) - ri(t);
- if (n === 0) {
- if (e.pre && !t.pre) return -1;
- if (t.pre && !e.pre) return 1;
- }
- return n;
- };
- function fp(e) {
- (sl = !1), (ni = !0), (e = e || new Map()), at.sort(Vv);
- const t = n => mc(e, n);
- try {
- for (en = 0; en < at.length; en++) {
- const n = at[en];
- if (n && n.active !== !1) {
- if (t(n)) continue;
- rn(n, null, 14);
- }
- }
- } finally {
- (en = 0),
- (at.length = 0),
- ws(e),
- (ni = !1),
- (hc = null),
- (at.length || Qr.length) && fp(e);
- }
- }
- function mc(e, t) {
- if (!e.has(t)) e.set(t, 1);
- else {
- const n = e.get(t);
- if (n > jv) {
- const r = t.ownerInstance,
- o = r && li(r.type);
- return (
- L(
- `Maximum recursive updates exceeded${
- o ? ` in component <${o}>` : ''
- }. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`
- ),
- !0
- );
- } else e.set(t, n + 1);
- }
- }
- let Wn = !1;
- const Wr = new Set();
- vs().__VUE_HMR_RUNTIME__ = {
- createRecord: Aa(dp),
- rerender: Aa(Wv),
- reload: Aa(Kv)
- };
- const Cr = new Map();
- function qv(e) {
- const t = e.type.__hmrId;
- let n = Cr.get(t);
- n || (dp(t, e.type), (n = Cr.get(t))), n.instances.add(e);
- }
- function zv(e) {
- Cr.get(e.type.__hmrId).instances.delete(e);
- }
- function dp(e, t) {
- return Cr.has(e)
- ? !1
- : (Cr.set(e, { initialDef: jo(t), instances: new Set() }), !0);
- }
- function jo(e) {
- return ih(e) ? e.__vccOpts : e;
- }
- function Wv(e, t) {
- const n = Cr.get(e);
- n &&
- ((n.initialDef.render = t),
- [...n.instances].forEach(r => {
- t && ((r.render = t), (jo(r.type).render = t)),
- (r.renderCache = []),
- (Wn = !0),
- r.update(),
- (Wn = !1);
- }));
- }
- function Kv(e, t) {
- const n = Cr.get(e);
- if (!n) return;
- (t = jo(t)), Ru(n.initialDef, t);
- const r = [...n.instances];
- for (const o of r) {
- const i = jo(o.type);
- Wr.has(i) || (i !== n.initialDef && Ru(i, t), Wr.add(i)),
- o.appContext.propsCache.delete(o.type),
- o.appContext.emitsCache.delete(o.type),
- o.appContext.optionsCache.delete(o.type),
- o.ceReload
- ? (Wr.add(i), o.ceReload(t.styles), Wr.delete(i))
- : o.parent
- ? _i(o.parent.update)
- : o.appContext.reload
- ? o.appContext.reload()
- : typeof window < 'u'
- ? window.location.reload()
- : console.warn(
- '[HMR] Root or manually mounted instance modified. Full reload required.'
- );
- }
- Xs(() => {
- for (const o of r) Wr.delete(jo(o.type));
- });
- }
- function Ru(e, t) {
- Te(e, t);
- for (const n in e) n !== '__file' && !(n in t) && delete e[n];
- }
- function Aa(e) {
- return (t, n) => {
- try {
- return e(t, n);
- } catch (r) {
- console.error(r),
- console.warn(
- '[HMR] Something went wrong during Vue component hot-reload. Full reload required.'
- );
- }
- };
- }
- let zt,
- Ro = [],
- al = !1;
- function wi(e, ...t) {
- zt ? zt.emit(e, ...t) : al || Ro.push({ event: e, args: t });
- }
- function gc(e, t) {
- var n, r;
- (zt = e),
- zt
- ? ((zt.enabled = !0),
- Ro.forEach(({ event: o, args: i }) => zt.emit(o, ...i)),
- (Ro = []))
- : typeof window < 'u' &&
- window.HTMLElement &&
- !(
- (r = (n = window.navigator) == null ? void 0 : n.userAgent) != null &&
- r.includes('jsdom')
- )
- ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ =
- t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push(i => {
- gc(i, t);
- }),
- setTimeout(() => {
- zt || ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null), (al = !0), (Ro = []));
- }, 3e3))
- : ((al = !0), (Ro = []));
- }
- function Gv(e, t) {
- wi('app:init', e, t, { Fragment: Be, Text: er, Comment: Ue, Static: Kn });
- }
- function Yv(e) {
- wi('app:unmount', e);
- }
- const ll = yc('component:added'),
- pp = yc('component:updated'),
- Jv = yc('component:removed'),
- Qv = e => {
- zt &&
- typeof zt.cleanupBuffer == 'function' &&
- !zt.cleanupBuffer(e) &&
- Jv(e);
- };
- function yc(e) {
- return t => {
- wi(e, t.appContext.app, t.uid, t.parent ? t.parent.uid : void 0, t);
- };
- }
- const Xv = hp('perf:start'),
- Zv = hp('perf:end');
- function hp(e) {
- return (t, n, r) => {
- wi(e, t.appContext.app, t.uid, t, n, r);
- };
- }
- function eb(e, t, n) {
- wi('component:emit', e.appContext.app, e, t, n);
- }
- function tb(e, t, ...n) {
- if (e.isUnmounted) return;
- const r = e.vnode.props || Pe;
- {
- const {
- emitsOptions: u,
- propsOptions: [f]
- } = e;
- if (u)
- if (!(t in u))
- (!f || !(En(t) in f)) &&
- L(
- `Component emitted event "${t}" but it is neither declared in the emits option nor as an "${En(
- t
- )}" prop.`
- );
- else {
- const d = u[t];
- ce(d) &&
- (d(...n) ||
- L(
- `Invalid event arguments: event validation failed for event "${t}".`
- ));
- }
- }
- let o = n;
- const i = t.startsWith('update:'),
- s = i && t.slice(7);
- if (s && s in r) {
- const u = `${s === 'modelValue' ? 'model' : s}Modifiers`,
- { number: f, trim: d } = r[u] || Pe;
- d && (o = n.map(h => (Ie(h) ? h.trim() : h))), f && (o = n.map(gs));
- }
- eb(e, t, o);
- {
- const u = t.toLowerCase();
- u !== t &&
- r[En(u)] &&
- L(
- `Event "${u}" is emitted in component ${aa(
- e,
- e.type
- )} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${gt(
- t
- )}" instead of "${t}".`
- );
- }
- let a,
- c = r[(a = En(t))] || r[(a = En(Ot(t)))];
- !c && i && (c = r[(a = En(gt(t)))]), c && It(c, e, 6, o);
- const l = r[a + 'Once'];
- if (l) {
- if (!e.emitted) e.emitted = {};
- else if (e.emitted[a]) return;
- (e.emitted[a] = !0), It(l, e, 6, o);
- }
- }
- function mp(e, t, n = !1) {
- const r = t.emitsCache,
- o = r.get(e);
- if (o !== void 0) return o;
- const i = e.emits;
- let s = {},
- a = !1;
- if (!ce(e)) {
- const c = l => {
- const u = mp(l, t, !0);
- u && ((a = !0), Te(s, u));
- };
- !n && t.mixins.length && t.mixins.forEach(c),
- e.extends && c(e.extends),
- e.mixins && e.mixins.forEach(c);
- }
- return !i && !a
- ? (Ce(e) && r.set(e, null), null)
- : (ne(i) ? i.forEach(c => (s[c] = null)) : Te(s, i),
- Ce(e) && r.set(e, s),
- s);
- }
- function Zs(e, t) {
- return !e || !co(t)
- ? !1
- : ((t = t.slice(2).replace(/Once$/, '')),
- _e(e, t[0].toLowerCase() + t.slice(1)) || _e(e, gt(t)) || _e(e, t));
- }
- let je = null,
- ea = null;
- function oi(e) {
- const t = je;
- return (je = e), (ea = (e && e.type.__scopeId) || null), t;
- }
- function nb(e) {
- ea = e;
- }
- function rb() {
- ea = null;
- }
- const ob = e => vc;
- function vc(e, t = je, n) {
- if (!t || e._n) return e;
- const r = (...o) => {
- r._d && gl(-1);
- const i = oi(t);
- let s;
- try {
- s = e(...o);
- } finally {
- oi(i), r._d && gl(1);
- }
- return pp(t), s;
- };
- return (r._n = !0), (r._c = !0), (r._d = !0), r;
- }
- let cl = !1;
- function Es() {
- cl = !0;
- }
- function ss(e) {
- const {
- type: t,
- vnode: n,
- proxy: r,
- withProxy: o,
- props: i,
- propsOptions: [s],
- slots: a,
- attrs: c,
- emit: l,
- render: u,
- renderCache: f,
- data: d,
- setupState: h,
- ctx: g,
- inheritAttrs: w
- } = e;
- let E, y;
- const v = oi(e);
- cl = !1;
- try {
- if (n.shapeFlag & 4) {
- const x = o || r;
- (E = wt(u.call(x, x, f, i, h, d, g))), (y = c);
- } else {
- const x = t;
- c === i && Es(),
- (E = wt(
- x.length > 1
- ? x(i, {
- get attrs() {
- return Es(), c;
- },
- slots: a,
- emit: l
- })
- : x(i, null)
- )),
- (y = t.props ? c : sb(c));
- }
- } catch (x) {
- (Ho.length = 0), Mr(x, e, 1), (E = T(Ue));
- }
- let O = E,
- C;
- if (
- (E.patchFlag > 0 && E.patchFlag & 2048 && ([O, C] = ib(E)), y && w !== !1)
- ) {
- const x = Object.keys(y),
- { shapeFlag: N } = O;
- if (x.length) {
- if (N & 7) s && x.some(hs) && (y = ab(y, s)), (O = Ut(O, y));
- else if (!cl && O.type !== Ue) {
- const A = Object.keys(c),
- I = [],
- k = [];
- for (let S = 0, R = A.length; S < R; S++) {
- const B = A[S];
- co(B) ? hs(B) || I.push(B[2].toLowerCase() + B.slice(3)) : k.push(B);
- }
- k.length &&
- L(
- `Extraneous non-props attributes (${k.join(
- ', '
- )}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`
- ),
- I.length &&
- L(
- `Extraneous non-emits event listeners (${I.join(
- ', '
- )}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`
- );
- }
- }
- }
- return (
- n.dirs &&
- (ku(O) ||
- L(
- 'Runtime directive used on component with non-element root node. The directives will not function as intended.'
- ),
- (O = Ut(O)),
- (O.dirs = O.dirs ? O.dirs.concat(n.dirs) : n.dirs)),
- n.transition &&
- (ku(O) ||
- L(
- 'Component inside <Transition> renders non-element root node that cannot be animated.'
- ),
- (O.transition = n.transition)),
- C ? C(O) : (E = O),
- oi(v),
- E
- );
- }
- const ib = e => {
- const t = e.children,
- n = e.dynamicChildren,
- r = bc(t);
- if (!r) return [e, void 0];
- const o = t.indexOf(r),
- i = n ? n.indexOf(r) : -1,
- s = a => {
- (t[o] = a),
- n &&
- (i > -1
- ? (n[i] = a)
- : a.patchFlag > 0 && (e.dynamicChildren = [...n, a]));
- };
- return [wt(r), s];
- };
- function bc(e) {
- let t;
- for (let n = 0; n < e.length; n++) {
- const r = e[n];
- if (an(r)) {
- if (r.type !== Ue || r.children === 'v-if') {
- if (t) return;
- t = r;
- }
- } else return;
- }
- return t;
- }
- const sb = e => {
- let t;
- for (const n in e)
- (n === 'class' || n === 'style' || co(n)) && ((t || (t = {}))[n] = e[n]);
- return t;
- },
- ab = (e, t) => {
- const n = {};
- for (const r in e) (!hs(r) || !(r.slice(9) in t)) && (n[r] = e[r]);
- return n;
- },
- ku = e => e.shapeFlag & 7 || e.type === Ue;
- function lb(e, t, n) {
- const { props: r, children: o, component: i } = e,
- { props: s, children: a, patchFlag: c } = t,
- l = i.emitsOptions;
- if (((o || a) && Wn) || t.dirs || t.transition) return !0;
- if (n && c >= 0) {
- if (c & 1024) return !0;
- if (c & 16) return r ? Mu(r, s, l) : !!s;
- if (c & 8) {
- const u = t.dynamicProps;
- for (let f = 0; f < u.length; f++) {
- const d = u[f];
- if (s[d] !== r[d] && !Zs(l, d)) return !0;
- }
- }
- } else
- return (o || a) && (!a || !a.$stable)
- ? !0
- : r === s
- ? !1
- : r
- ? s
- ? Mu(r, s, l)
- : !0
- : !!s;
- return !1;
- }
- function Mu(e, t, n) {
- const r = Object.keys(t);
- if (r.length !== Object.keys(e).length) return !0;
- for (let o = 0; o < r.length; o++) {
- const i = r[o];
- if (t[i] !== e[i] && !Zs(n, i)) return !0;
- }
- return !1;
- }
- function _c({ vnode: e, parent: t }, n) {
- for (; t && t.subTree === e; ) ((e = t.vnode).el = n), (t = t.parent);
- }
- const gp = e => e.__isSuspense,
- cb = {
- name: 'Suspense',
- __isSuspense: !0,
- process(e, t, n, r, o, i, s, a, c, l) {
- e == null ? fb(t, n, r, o, i, s, a, c, l) : db(e, t, n, r, o, s, a, c, l);
- },
- hydrate: pb,
- create: wc,
- normalize: hb
- },
- ub = cb;
- function ii(e, t) {
- const n = e.props && e.props[t];
- ce(n) && n();
- }
- function fb(e, t, n, r, o, i, s, a, c) {
- const {
- p: l,
- o: { createElement: u }
- } = c,
- f = u('div'),
- d = (e.suspense = wc(e, o, r, t, f, n, i, s, a, c));
- l(null, (d.pendingBranch = e.ssContent), f, null, r, d, i, s),
- d.deps > 0
- ? (ii(e, 'onPending'),
- ii(e, 'onFallback'),
- l(null, e.ssFallback, t, n, r, null, i, s),
- Xr(d, e.ssFallback))
- : d.resolve(!1, !0);
- }
- function db(e, t, n, r, o, i, s, a, { p: c, um: l, o: { createElement: u } }) {
- const f = (t.suspense = e.suspense);
- (f.vnode = t), (t.el = e.el);
- const d = t.ssContent,
- h = t.ssFallback,
- { activeBranch: g, pendingBranch: w, isInFallback: E, isHydrating: y } = f;
- if (w)
- (f.pendingBranch = d),
- Wt(d, w)
- ? (c(w, d, f.hiddenContainer, null, o, f, i, s, a),
- f.deps <= 0
- ? f.resolve()
- : E && (c(g, h, n, r, o, null, i, s, a), Xr(f, h)))
- : (f.pendingId++,
- y ? ((f.isHydrating = !1), (f.activeBranch = w)) : l(w, o, f),
- (f.deps = 0),
- (f.effects.length = 0),
- (f.hiddenContainer = u('div')),
- E
- ? (c(null, d, f.hiddenContainer, null, o, f, i, s, a),
- f.deps <= 0
- ? f.resolve()
- : (c(g, h, n, r, o, null, i, s, a), Xr(f, h)))
- : g && Wt(d, g)
- ? (c(g, d, n, r, o, f, i, s, a), f.resolve(!0))
- : (c(null, d, f.hiddenContainer, null, o, f, i, s, a),
- f.deps <= 0 && f.resolve()));
- else if (g && Wt(d, g)) c(g, d, n, r, o, f, i, s, a), Xr(f, d);
- else if (
- (ii(t, 'onPending'),
- (f.pendingBranch = d),
- f.pendingId++,
- c(null, d, f.hiddenContainer, null, o, f, i, s, a),
- f.deps <= 0)
- )
- f.resolve();
- else {
- const { timeout: v, pendingId: O } = f;
- v > 0
- ? setTimeout(() => {
- f.pendingId === O && f.fallback(h);
- }, v)
- : v === 0 && f.fallback(h);
- }
- }
- let Fu = !1;
- function wc(e, t, n, r, o, i, s, a, c, l, u = !1) {
- Fu ||
- ((Fu = !0),
- console[console.info ? 'info' : 'log'](
- '<Suspense> is an experimental feature and its API will likely change.'
- ));
- const {
- p: f,
- m: d,
- um: h,
- n: g,
- o: { parentNode: w, remove: E }
- } = l;
- let y;
- const v = mb(e);
- v && t != null && t.pendingBranch && ((y = t.pendingId), t.deps++);
- const O = e.props ? ys(e.props.timeout) : void 0;
- dc(O, 'Suspense timeout');
- const C = {
- vnode: e,
- parent: t,
- parentComponent: n,
- isSVG: s,
- container: r,
- hiddenContainer: o,
- anchor: i,
- deps: 0,
- pendingId: 0,
- timeout: typeof O == 'number' ? O : -1,
- activeBranch: null,
- pendingBranch: null,
- isInFallback: !0,
- isHydrating: u,
- isUnmounted: !1,
- effects: [],
- resolve(x = !1, N = !1) {
- {
- if (!x && !C.pendingBranch)
- throw new Error(
- 'suspense.resolve() is called without a pending branch.'
- );
- if (C.isUnmounted)
- throw new Error(
- 'suspense.resolve() is called on an already unmounted suspense boundary.'
- );
- }
- const {
- vnode: A,
- activeBranch: I,
- pendingBranch: k,
- pendingId: S,
- effects: R,
- parentComponent: B,
- container: F
- } = C;
- if (C.isHydrating) C.isHydrating = !1;
- else if (!x) {
- const Y = I && k.transition && k.transition.mode === 'out-in';
- Y &&
- (I.transition.afterLeave = () => {
- S === C.pendingId && d(k, F, H, 0);
- });
- let { anchor: H } = C;
- I && ((H = g(I)), h(I, B, C, !0)), Y || d(k, F, H, 0);
- }
- Xr(C, k), (C.pendingBranch = null), (C.isInFallback = !1);
- let $ = C.parent,
- V = !1;
- for (; $; ) {
- if ($.pendingBranch) {
- $.effects.push(...R), (V = !0);
- break;
- }
- $ = $.parent;
- }
- V || Xs(R),
- (C.effects = []),
- v &&
- t &&
- t.pendingBranch &&
- y === t.pendingId &&
- (t.deps--, t.deps === 0 && !N && t.resolve()),
- ii(A, 'onResolve');
- },
- fallback(x) {
- if (!C.pendingBranch) return;
- const {
- vnode: N,
- activeBranch: A,
- parentComponent: I,
- container: k,
- isSVG: S
- } = C;
- ii(N, 'onFallback');
- const R = g(A),
- B = () => {
- C.isInFallback && (f(null, x, k, R, I, null, S, a, c), Xr(C, x));
- },
- F = x.transition && x.transition.mode === 'out-in';
- F && (A.transition.afterLeave = B),
- (C.isInFallback = !0),
- h(A, I, null, !0),
- F || B();
- },
- move(x, N, A) {
- C.activeBranch && d(C.activeBranch, x, N, A), (C.container = x);
- },
- next() {
- return C.activeBranch && g(C.activeBranch);
- },
- registerDep(x, N) {
- const A = !!C.pendingBranch;
- A && C.deps++;
- const I = x.vnode.el;
- x.asyncDep
- .catch(k => {
- Mr(k, x, 0);
- })
- .then(k => {
- if (x.isUnmounted || C.isUnmounted || C.pendingId !== x.suspenseId)
- return;
- x.asyncResolved = !0;
- const { vnode: S } = x;
- Lo(S), bl(x, k, !1), I && (S.el = I);
- const R = !I && x.subTree.el;
- N(x, S, w(I || x.subTree.el), I ? null : g(x.subTree), C, s, c),
- R && E(R),
- _c(x, S.el),
- No(),
- A && --C.deps === 0 && C.resolve();
- });
- },
- unmount(x, N) {
- (C.isUnmounted = !0),
- C.activeBranch && h(C.activeBranch, n, x, N),
- C.pendingBranch && h(C.pendingBranch, n, x, N);
- }
- };
- return C;
- }
- function pb(e, t, n, r, o, i, s, a, c) {
- const l = (t.suspense = wc(
- t,
- r,
- n,
- e.parentNode,
- document.createElement('div'),
- null,
- o,
- i,
- s,
- a,
- !0
- )),
- u = c(e, (l.pendingBranch = t.ssContent), n, l, i, s);
- return l.deps === 0 && l.resolve(!1, !0), u;
- }
- function hb(e) {
- const { shapeFlag: t, children: n } = e,
- r = t & 32;
- (e.ssContent = Bu(r ? n.default : n)),
- (e.ssFallback = r ? Bu(n.fallback) : T(Ue));
- }
- function Bu(e) {
- let t;
- if (ce(e)) {
- const n = Ar && e._c;
- n && ((e._d = !1), oa()), (e = e()), n && ((e._d = !0), (t = xt), Yp());
- }
- if (ne(e)) {
- const n = bc(e);
- n || L('<Suspense> slots expect a single root node.'), (e = n);
- }
- return (
- (e = wt(e)),
- t && !e.dynamicChildren && (e.dynamicChildren = t.filter(n => n !== e)),
- e
- );
- }
- function yp(e, t) {
- t && t.pendingBranch
- ? ne(e)
- ? t.effects.push(...e)
- : t.effects.push(e)
- : Xs(e);
- }
- function Xr(e, t) {
- e.activeBranch = t;
- const { vnode: n, parentComponent: r } = e,
- o = (n.el = t.el);
- r && r.subTree === n && ((r.vnode.el = o), _c(r, o));
- }
- function mb(e) {
- var t;
- return (
- ((t = e.props) == null ? void 0 : t.suspensible) != null &&
- e.props.suspensible !== !1
- );
- }
- function vp(e, t) {
- return Ei(e, null, t);
- }
- function bp(e, t) {
- return Ei(e, null, Te({}, t, { flush: 'post' }));
- }
- function gb(e, t) {
- return Ei(e, null, Te({}, t, { flush: 'sync' }));
- }
- const Wi = {};
- function De(e, t, n) {
- return (
- ce(t) ||
- L(
- '`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature.'
- ),
- Ei(e, t, n)
- );
- }
- function Ei(
- e,
- t,
- { immediate: n, deep: r, flush: o, onTrack: i, onTrigger: s } = Pe
- ) {
- var a;
- t ||
- (n !== void 0 &&
- L(
- 'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
- ),
- r !== void 0 &&
- L(
- 'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
- ));
- const c = x => {
- L(
- 'Invalid watch source: ',
- x,
- 'A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.'
- );
- },
- l = ic() === ((a = Ne) == null ? void 0 : a.scope) ? Ne : null;
- let u,
- f = !1,
- d = !1;
- if (
- (ke(e)
- ? ((u = () => e.value), (f = Zo(e)))
- : Gt(e)
- ? ((u = () => e), (r = !0))
- : ne(e)
- ? ((d = !0),
- (f = e.some(x => Gt(x) || Zo(x))),
- (u = () =>
- e.map(x => {
- if (ke(x)) return x.value;
- if (Gt(x)) return yr(x);
- if (ce(x)) return rn(x, l, 2);
- c(x);
- })))
- : ce(e)
- ? t
- ? (u = () => rn(e, l, 2))
- : (u = () => {
- if (!(l && l.isUnmounted)) return h && h(), It(e, l, 3, [g]);
- })
- : ((u = Et), c(e)),
- t && r)
- ) {
- const x = u;
- u = () => yr(x());
- }
- let h,
- g = x => {
- h = O.onStop = () => {
- rn(x, l, 4);
- };
- },
- w;
- if (ro)
- if (
- ((g = Et),
- t ? n && It(t, l, 3, [u(), d ? [] : void 0, g]) : u(),
- o === 'sync')
- ) {
- const x = ah();
- w = x.__watcherHandles || (x.__watcherHandles = []);
- } else return Et;
- let E = d ? new Array(e.length).fill(Wi) : Wi;
- const y = () => {
- if (O.active)
- if (t) {
- const x = O.run();
- (r || f || (d ? x.some((N, A) => to(N, E[A])) : to(x, E))) &&
- (h && h(),
- It(t, l, 3, [x, E === Wi ? void 0 : d && E[0] === Wi ? [] : E, g]),
- (E = x));
- } else O.run();
- };
- y.allowRecurse = !!t;
- let v;
- o === 'sync'
- ? (v = y)
- : o === 'post'
- ? (v = () => tt(y, l && l.suspense))
- : ((y.pre = !0), l && (y.id = l.uid), (v = () => _i(y)));
- const O = new bi(u, v);
- (O.onTrack = i),
- (O.onTrigger = s),
- t
- ? n
- ? y()
- : (E = O.run())
- : o === 'post'
- ? tt(O.run.bind(O), l && l.suspense)
- : O.run();
- const C = () => {
- O.stop(), l && l.scope && ec(l.scope.effects, O);
- };
- return w && w.push(C), C;
- }
- function yb(e, t, n) {
- const r = this.proxy,
- o = Ie(e) ? (e.includes('.') ? _p(r, e) : () => r[e]) : e.bind(r, r);
- let i;
- ce(t) ? (i = t) : ((i = t.handler), (n = t));
- const s = Ne;
- tr(this);
- const a = Ei(o, i.bind(r), n);
- return s ? tr(s) : Gn(), a;
- }
- function _p(e, t) {
- const n = t.split('.');
- return () => {
- let r = e;
- for (let o = 0; o < n.length && r; o++) r = r[n[o]];
- return r;
- };
- }
- function yr(e, t) {
- if (!Ce(e) || e.__v_skip || ((t = t || new Set()), t.has(e))) return e;
- if ((t.add(e), ke(e))) yr(e.value, t);
- else if (ne(e)) for (let n = 0; n < e.length; n++) yr(e[n], t);
- else if (Ir(e) || vr(e))
- e.forEach(n => {
- yr(n, t);
- });
- else if (jd(e)) for (const n in e) yr(e[n], t);
- return e;
- }
- function wp(e) {
- Iy(e) && L('Do not use built-in directive ids as custom directive id: ' + e);
- }
- function Ec(e, t) {
- const n = je;
- if (n === null)
- return L('withDirectives can only be used inside render functions.'), e;
- const r = sa(n) || n.proxy,
- o = e.dirs || (e.dirs = []);
- for (let i = 0; i < t.length; i++) {
- let [s, a, c, l = Pe] = t[i];
- s &&
- (ce(s) && (s = { mounted: s, updated: s }),
- s.deep && yr(a),
- o.push({
- dir: s,
- instance: r,
- value: a,
- oldValue: void 0,
- arg: c,
- modifiers: l
- }));
- }
- return e;
- }
- function Xt(e, t, n, r) {
- const o = e.dirs,
- i = t && t.dirs;
- for (let s = 0; s < o.length; s++) {
- const a = o[s];
- i && (a.oldValue = i[s].value);
- let c = a.dir[r];
- c && (Rr(), It(c, n, 8, [e.el, a, e, t]), kr());
- }
- }
- function Sc() {
- const e = {
- isMounted: !1,
- isLeaving: !1,
- isUnmounting: !1,
- leavingVNodes: new Map()
- };
- return (
- kt(() => {
- e.isMounted = !0;
- }),
- ho(() => {
- e.isUnmounting = !0;
- }),
- e
- );
- }
- const Dt = [Function, Array],
- xc = {
- mode: String,
- appear: Boolean,
- persisted: Boolean,
- onBeforeEnter: Dt,
- onEnter: Dt,
- onAfterEnter: Dt,
- onEnterCancelled: Dt,
- onBeforeLeave: Dt,
- onLeave: Dt,
- onAfterLeave: Dt,
- onLeaveCancelled: Dt,
- onBeforeAppear: Dt,
- onAppear: Dt,
- onAfterAppear: Dt,
- onAppearCancelled: Dt
- },
- vb = {
- name: 'BaseTransition',
- props: xc,
- setup(e, { slots: t }) {
- const n = Ze(),
- r = Sc();
- let o;
- return () => {
- const i = t.default && ta(t.default(), !0);
- if (!i || !i.length) return;
- let s = i[0];
- if (i.length > 1) {
- let w = !1;
- for (const E of i)
- if (E.type !== Ue) {
- if (w) {
- L(
- '<transition> can only be used on a single element or component. Use <transition-group> for lists.'
- );
- break;
- }
- (s = E), (w = !0);
- }
- }
- const a = de(e),
- { mode: c } = a;
- if (
- (c &&
- c !== 'in-out' &&
- c !== 'out-in' &&
- c !== 'default' &&
- L(`invalid <transition> mode: ${c}`),
- r.isLeaving)
- )
- return Pa(s);
- const l = Du(s);
- if (!l) return Pa(s);
- const u = no(l, a, r, n);
- Tr(l, u);
- const f = n.subTree,
- d = f && Du(f);
- let h = !1;
- const { getTransitionKey: g } = l.type;
- if (g) {
- const w = g();
- o === void 0 ? (o = w) : w !== o && ((o = w), (h = !0));
- }
- if (d && d.type !== Ue && (!Wt(l, d) || h)) {
- const w = no(d, a, r, n);
- if ((Tr(d, w), c === 'out-in'))
- return (
- (r.isLeaving = !0),
- (w.afterLeave = () => {
- (r.isLeaving = !1), n.update.active !== !1 && n.update();
- }),
- Pa(s)
- );
- c === 'in-out' &&
- l.type !== Ue &&
- (w.delayLeave = (E, y, v) => {
- const O = Sp(r, d);
- (O[String(d.key)] = d),
- (E._leaveCb = () => {
- y(), (E._leaveCb = void 0), delete u.delayedLeave;
- }),
- (u.delayedLeave = v);
- });
- }
- return s;
- };
- }
- },
- Ep = vb;
- function Sp(e, t) {
- const { leavingVNodes: n } = e;
- let r = n.get(t.type);
- return r || ((r = Object.create(null)), n.set(t.type, r)), r;
- }
- function no(e, t, n, r) {
- const {
- appear: o,
- mode: i,
- persisted: s = !1,
- onBeforeEnter: a,
- onEnter: c,
- onAfterEnter: l,
- onEnterCancelled: u,
- onBeforeLeave: f,
- onLeave: d,
- onAfterLeave: h,
- onLeaveCancelled: g,
- onBeforeAppear: w,
- onAppear: E,
- onAfterAppear: y,
- onAppearCancelled: v
- } = t,
- O = String(e.key),
- C = Sp(n, e),
- x = (I, k) => {
- I && It(I, r, 9, k);
- },
- N = (I, k) => {
- const S = k[1];
- x(I, k),
- ne(I) ? I.every(R => R.length <= 1) && S() : I.length <= 1 && S();
- },
- A = {
- mode: i,
- persisted: s,
- beforeEnter(I) {
- let k = a;
- if (!n.isMounted)
- if (o) k = w || a;
- else return;
- I._leaveCb && I._leaveCb(!0);
- const S = C[O];
- S && Wt(e, S) && S.el._leaveCb && S.el._leaveCb(), x(k, [I]);
- },
- enter(I) {
- let k = c,
- S = l,
- R = u;
- if (!n.isMounted)
- if (o) (k = E || c), (S = y || l), (R = v || u);
- else return;
- let B = !1;
- const F = (I._enterCb = $ => {
- B ||
- ((B = !0),
- $ ? x(R, [I]) : x(S, [I]),
- A.delayedLeave && A.delayedLeave(),
- (I._enterCb = void 0));
- });
- k ? N(k, [I, F]) : F();
- },
- leave(I, k) {
- const S = String(e.key);
- if ((I._enterCb && I._enterCb(!0), n.isUnmounting)) return k();
- x(f, [I]);
- let R = !1;
- const B = (I._leaveCb = F => {
- R ||
- ((R = !0),
- k(),
- F ? x(g, [I]) : x(h, [I]),
- (I._leaveCb = void 0),
- C[S] === e && delete C[S]);
- });
- (C[S] = e), d ? N(d, [I, B]) : B();
- },
- clone(I) {
- return no(I, t, n, r);
- }
- };
- return A;
- }
- function Pa(e) {
- if (fo(e)) return (e = Ut(e)), (e.children = null), e;
- }
- function Du(e) {
- return fo(e) ? (e.children ? e.children[0] : void 0) : e;
- }
- function Tr(e, t) {
- e.shapeFlag & 6 && e.component
- ? Tr(e.component.subTree, t)
- : e.shapeFlag & 128
- ? ((e.ssContent.transition = t.clone(e.ssContent)),
- (e.ssFallback.transition = t.clone(e.ssFallback)))
- : (e.transition = t);
- }
- function ta(e, t = !1, n) {
- let r = [],
- o = 0;
- for (let i = 0; i < e.length; i++) {
- let s = e[i];
- const a = n == null ? s.key : String(n) + String(s.key != null ? s.key : i);
- s.type === Be
- ? (s.patchFlag & 128 && o++, (r = r.concat(ta(s.children, t, a))))
- : (t || s.type !== Ue) && r.push(a != null ? Ut(s, { key: a }) : s);
- }
- if (o > 1) for (let i = 0; i < r.length; i++) r[i].patchFlag = -2;
- return r;
- }
- function He(e, t) {
- return ce(e) ? (() => Te({ name: e.name }, t, { setup: e }))() : e;
- }
- const wr = e => !!e.type.__asyncLoader;
- function bb(e) {
- ce(e) && (e = { loader: e });
- const {
- loader: t,
- loadingComponent: n,
- errorComponent: r,
- delay: o = 200,
- timeout: i,
- suspensible: s = !0,
- onError: a
- } = e;
- let c = null,
- l,
- u = 0;
- const f = () => (u++, (c = null), d()),
- d = () => {
- let h;
- return (
- c ||
- (h = c =
- t()
- .catch(g => {
- if (((g = g instanceof Error ? g : new Error(String(g))), a))
- return new Promise((w, E) => {
- a(
- g,
- () => w(f()),
- () => E(g),
- u + 1
- );
- });
- throw g;
- })
- .then(g => {
- if (h !== c && c) return c;
- if (
- (g ||
- L(
- 'Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.'
- ),
- g &&
- (g.__esModule || g[Symbol.toStringTag] === 'Module') &&
- (g = g.default),
- g && !Ce(g) && !ce(g))
- )
- throw new Error(`Invalid async component load result: ${g}`);
- return (l = g), g;
- }))
- );
- };
- return He({
- name: 'AsyncComponentWrapper',
- __asyncLoader: d,
- get __asyncResolved() {
- return l;
- },
- setup() {
- const h = Ne;
- if (l) return () => $a(l, h);
- const g = v => {
- (c = null), Mr(v, h, 13, !r);
- };
- if ((s && h.suspense) || ro)
- return d()
- .then(v => () => $a(v, h))
- .catch(v => (g(v), () => (r ? T(r, { error: v }) : null)));
- const w = Ee(!1),
- E = Ee(),
- y = Ee(!!o);
- return (
- o &&
- setTimeout(() => {
- y.value = !1;
- }, o),
- i != null &&
- setTimeout(() => {
- if (!w.value && !E.value) {
- const v = new Error(`Async component timed out after ${i}ms.`);
- g(v), (E.value = v);
- }
- }, i),
- d()
- .then(() => {
- (w.value = !0),
- h.parent && fo(h.parent.vnode) && _i(h.parent.update);
- })
- .catch(v => {
- g(v), (E.value = v);
- }),
- () => {
- if (w.value && l) return $a(l, h);
- if (E.value && r) return T(r, { error: E.value });
- if (n && !y.value) return T(n);
- }
- );
- }
- });
- }
- function $a(e, t) {
- const { ref: n, props: r, children: o, ce: i } = t.vnode,
- s = T(e, r, o);
- return (s.ref = n), (s.ce = i), delete t.vnode.ce, s;
- }
- const fo = e => e.type.__isKeepAlive,
- _b = {
- name: 'KeepAlive',
- __isKeepAlive: !0,
- props: {
- include: [String, RegExp, Array],
- exclude: [String, RegExp, Array],
- max: [String, Number]
- },
- setup(e, { slots: t }) {
- const n = Ze(),
- r = n.ctx;
- if (!r.renderer)
- return () => {
- const v = t.default && t.default();
- return v && v.length === 1 ? v[0] : v;
- };
- const o = new Map(),
- i = new Set();
- let s = null;
- n.__v_cache = o;
- const a = n.suspense,
- {
- renderer: {
- p: c,
- m: l,
- um: u,
- o: { createElement: f }
- }
- } = r,
- d = f('div');
- (r.activate = (v, O, C, x, N) => {
- const A = v.component;
- l(v, O, C, 0, a),
- c(A.vnode, v, O, C, A, a, x, v.slotScopeIds, N),
- tt(() => {
- (A.isDeactivated = !1), A.a && jn(A.a);
- const I = v.props && v.props.onVnodeMounted;
- I && vt(I, A.parent, v);
- }, a),
- ll(A);
- }),
- (r.deactivate = v => {
- const O = v.component;
- l(v, d, null, 1, a),
- tt(() => {
- O.da && jn(O.da);
- const C = v.props && v.props.onVnodeUnmounted;
- C && vt(C, O.parent, v), (O.isDeactivated = !0);
- }, a),
- ll(O);
- });
- function h(v) {
- Ia(v), u(v, n, a, !0);
- }
- function g(v) {
- o.forEach((O, C) => {
- const x = li(O.type);
- x && (!v || !v(x)) && w(C);
- });
- }
- function w(v) {
- const O = o.get(v);
- !s || !Wt(O, s) ? h(O) : s && Ia(s), o.delete(v), i.delete(v);
- }
- De(
- () => [e.include, e.exclude],
- ([v, O]) => {
- v && g(C => ko(v, C)), O && g(C => !ko(O, C));
- },
- { flush: 'post', deep: !0 }
- );
- let E = null;
- const y = () => {
- E != null && o.set(E, Ra(n.subTree));
- };
- return (
- kt(y),
- ra(y),
- ho(() => {
- o.forEach(v => {
- const { subTree: O, suspense: C } = n,
- x = Ra(O);
- if (v.type === x.type && v.key === x.key) {
- Ia(x);
- const N = x.component.da;
- N && tt(N, C);
- return;
- }
- h(v);
- });
- }),
- () => {
- if (((E = null), !t.default)) return null;
- const v = t.default(),
- O = v[0];
- if (v.length > 1)
- return (
- L('KeepAlive should contain exactly one component child.'),
- (s = null),
- v
- );
- if (!an(O) || (!(O.shapeFlag & 4) && !(O.shapeFlag & 128)))
- return (s = null), O;
- let C = Ra(O);
- const x = C.type,
- N = li(wr(C) ? C.type.__asyncResolved || {} : x),
- { include: A, exclude: I, max: k } = e;
- if ((A && (!N || !ko(A, N))) || (I && N && ko(I, N)))
- return (s = C), O;
- const S = C.key == null ? x : C.key,
- R = o.get(S);
- return (
- C.el && ((C = Ut(C)), O.shapeFlag & 128 && (O.ssContent = C)),
- (E = S),
- R
- ? ((C.el = R.el),
- (C.component = R.component),
- C.transition && Tr(C, C.transition),
- (C.shapeFlag |= 512),
- i.delete(S),
- i.add(S))
- : (i.add(S),
- k && i.size > parseInt(k, 10) && w(i.values().next().value)),
- (C.shapeFlag |= 256),
- (s = C),
- gp(O.type) ? O : C
- );
- }
- );
- }
- },
- wb = _b;
- function ko(e, t) {
- return ne(e)
- ? e.some(n => ko(n, t))
- : Ie(e)
- ? e.split(',').includes(t)
- : $y(e)
- ? e.test(t)
- : !1;
- }
- function Si(e, t) {
- xp(e, 'a', t);
- }
- function po(e, t) {
- xp(e, 'da', t);
- }
- function xp(e, t, n = Ne) {
- const r =
- e.__wdc ||
- (e.__wdc = () => {
- let o = n;
- for (; o; ) {
- if (o.isDeactivated) return;
- o = o.parent;
- }
- return e();
- });
- if ((na(t, r, n), n)) {
- let o = n.parent;
- for (; o && o.parent; )
- fo(o.parent.vnode) && Eb(r, t, n, o), (o = o.parent);
- }
- }
- function Eb(e, t, n, r) {
- const o = na(t, e, r, !0);
- Fr(() => {
- ec(r[t], o);
- }, n);
- }
- function Ia(e) {
- (e.shapeFlag &= -257), (e.shapeFlag &= -513);
- }
- function Ra(e) {
- return e.shapeFlag & 128 ? e.ssContent : e;
- }
- function na(e, t, n = Ne, r = !1) {
- if (n) {
- const o = n[e] || (n[e] = []),
- i =
- t.__weh ||
- (t.__weh = (...s) => {
- if (n.isUnmounted) return;
- Rr(), tr(n);
- const a = It(t, n, e, s);
- return Gn(), kr(), a;
- });
- return r ? o.unshift(i) : o.push(i), i;
- } else {
- const o = En(pc[e].replace(/ hook$/, ''));
- L(
- `${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
- );
- }
- }
- const An =
- e =>
- (t, n = Ne) =>
- (!ro || e === 'sp') && na(e, (...r) => t(...r), n),
- Op = An('bm'),
- kt = An('m'),
- Cp = An('bu'),
- ra = An('u'),
- ho = An('bum'),
- Fr = An('um'),
- Tp = An('sp'),
- Ap = An('rtg'),
- Pp = An('rtc');
- function $p(e, t = Ne) {
- na('ec', e, t);
- }
- const Ss = 'components',
- Sb = 'directives';
- function Ip(e, t) {
- return Oc(Ss, e, !0, t) || e;
- }
- const Rp = Symbol.for('v-ndc');
- function xb(e) {
- return Ie(e) ? Oc(Ss, e, !1) || e : e || Rp;
- }
- function Ob(e) {
- return Oc(Sb, e);
- }
- function Oc(e, t, n = !0, r = !1) {
- const o = je || Ne;
- if (o) {
- const i = o.type;
- if (e === Ss) {
- const a = li(i, !1);
- if (a && (a === t || a === Ot(t) || a === Qn(Ot(t)))) return i;
- }
- const s = Lu(o[e] || i[e], t) || Lu(o.appContext[e], t);
- if (!s && r) return i;
- if (n && !s) {
- const a =
- e === Ss
- ? `
- If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`
- : '';
- L(`Failed to resolve ${e.slice(0, -1)}: ${t}${a}`);
- }
- return s;
- } else
- L(`resolve${Qn(e.slice(0, -1))} can only be used in render() or setup().`);
- }
- function Lu(e, t) {
- return e && (e[t] || e[Ot(t)] || e[Qn(Ot(t))]);
- }
- function Cb(e, t, n, r) {
- let o;
- const i = n && n[r];
- if (ne(e) || Ie(e)) {
- o = new Array(e.length);
- for (let s = 0, a = e.length; s < a; s++)
- o[s] = t(e[s], s, void 0, i && i[s]);
- } else if (typeof e == 'number') {
- Number.isInteger(e) ||
- L(`The v-for range expect an integer value but got ${e}.`),
- (o = new Array(e));
- for (let s = 0; s < e; s++) o[s] = t(s + 1, s, void 0, i && i[s]);
- } else if (Ce(e))
- if (e[Symbol.iterator])
- o = Array.from(e, (s, a) => t(s, a, void 0, i && i[a]));
- else {
- const s = Object.keys(e);
- o = new Array(s.length);
- for (let a = 0, c = s.length; a < c; a++) {
- const l = s[a];
- o[a] = t(e[l], l, a, i && i[a]);
- }
- }
- else o = [];
- return n && (n[r] = o), o;
- }
- function Tb(e, t) {
- for (let n = 0; n < t.length; n++) {
- const r = t[n];
- if (ne(r)) for (let o = 0; o < r.length; o++) e[r[o].name] = r[o].fn;
- else
- r &&
- (e[r.name] = r.key
- ? (...o) => {
- const i = r.fn(...o);
- return i && (i.key = r.key), i;
- }
- : r.fn);
- }
- return e;
- }
- function Ab(e, t, n = {}, r, o) {
- if (je.isCE || (je.parent && wr(je.parent) && je.parent.isCE))
- return t !== 'default' && (n.name = t), T('slot', n, r && r());
- let i = e[t];
- i &&
- i.length > 1 &&
- (L(
- 'SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.'
- ),
- (i = () => [])),
- i && i._c && (i._d = !1),
- oa();
- const s = i && kp(i(n)),
- a = Pc(
- Be,
- { key: n.key || (s && s.key) || `_${t}` },
- s || (r ? r() : []),
- s && e._ === 1 ? 64 : -2
- );
- return (
- !o && a.scopeId && (a.slotScopeIds = [a.scopeId + '-s']),
- i && i._c && (i._d = !0),
- a
- );
- }
- function kp(e) {
- return e.some(t =>
- an(t) ? !(t.type === Ue || (t.type === Be && !kp(t.children))) : !0
- )
- ? e
- : null;
- }
- function Pb(e, t) {
- const n = {};
- if (!Ce(e)) return L('v-on with no argument expects an object value.'), n;
- for (const r in e) n[t && /[A-Z]/.test(r) ? `on:${r}` : En(r)] = e[r];
- return n;
- }
- const ul = e => (e ? (th(e) ? sa(e) || e.proxy : ul(e.parent)) : null),
- Er = Te(Object.create(null), {
- $: e => e,
- $el: e => e.vnode.el,
- $data: e => e.data,
- $props: e => Gr(e.props),
- $attrs: e => Gr(e.attrs),
- $slots: e => Gr(e.slots),
- $refs: e => Gr(e.refs),
- $parent: e => ul(e.parent),
- $root: e => ul(e.root),
- $emit: e => e.emit,
- $options: e => Tc(e),
- $forceUpdate: e => e.f || (e.f = () => _i(e.update)),
- $nextTick: e => e.n || (e.n = St.bind(e.proxy)),
- $watch: e => yb.bind(e)
- }),
- Cc = e => e === '_' || e === '$',
- ka = (e, t) => e !== Pe && !e.__isScriptSetup && _e(e, t),
- Uo = {
- get({ _: e }, t) {
- const {
- ctx: n,
- setupState: r,
- data: o,
- props: i,
- accessCache: s,
- type: a,
- appContext: c
- } = e;
- if (t === '__isVue') return !0;
- let l;
- if (t[0] !== '$') {
- const h = s[t];
- if (h !== void 0)
- switch (h) {
- case 1:
- return r[t];
- case 2:
- return o[t];
- case 4:
- return n[t];
- case 3:
- return i[t];
- }
- else {
- if (ka(r, t)) return (s[t] = 1), r[t];
- if (o !== Pe && _e(o, t)) return (s[t] = 2), o[t];
- if ((l = e.propsOptions[0]) && _e(l, t)) return (s[t] = 3), i[t];
- if (n !== Pe && _e(n, t)) return (s[t] = 4), n[t];
- fl && (s[t] = 0);
- }
- }
- const u = Er[t];
- let f, d;
- if (u)
- return (
- t === '$attrs'
- ? (lt(e, 'get', t), Es())
- : t === '$slots' && lt(e, 'get', t),
- u(e)
- );
- if ((f = a.__cssModules) && (f = f[t])) return f;
- if (n !== Pe && _e(n, t)) return (s[t] = 4), n[t];
- if (((d = c.config.globalProperties), _e(d, t))) return d[t];
- je &&
- (!Ie(t) || t.indexOf('__v') !== 0) &&
- (o !== Pe && Cc(t[0]) && _e(o, t)
- ? L(
- `Property ${JSON.stringify(
- t
- )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
- )
- : e === je &&
- L(
- `Property ${JSON.stringify(
- t
- )} was accessed during render but is not defined on instance.`
- ));
- },
- set({ _: e }, t, n) {
- const { data: r, setupState: o, ctx: i } = e;
- return ka(o, t)
- ? ((o[t] = n), !0)
- : o.__isScriptSetup && _e(o, t)
- ? (L(`Cannot mutate <script setup> binding "${t}" from Options API.`),
- !1)
- : r !== Pe && _e(r, t)
- ? ((r[t] = n), !0)
- : _e(e.props, t)
- ? (L(`Attempting to mutate prop "${t}". Props are readonly.`), !1)
- : t[0] === '$' && t.slice(1) in e
- ? (L(
- `Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
- ),
- !1)
- : (t in e.appContext.config.globalProperties
- ? Object.defineProperty(i, t, {
- enumerable: !0,
- configurable: !0,
- value: n
- })
- : (i[t] = n),
- !0);
- },
- has(
- {
- _: {
- data: e,
- setupState: t,
- accessCache: n,
- ctx: r,
- appContext: o,
- propsOptions: i
- }
- },
- s
- ) {
- let a;
- return (
- !!n[s] ||
- (e !== Pe && _e(e, s)) ||
- ka(t, s) ||
- ((a = i[0]) && _e(a, s)) ||
- _e(r, s) ||
- _e(Er, s) ||
- _e(o.config.globalProperties, s)
- );
- },
- defineProperty(e, t, n) {
- return (
- n.get != null
- ? (e._.accessCache[t] = 0)
- : _e(n, 'value') && this.set(e, t, n.value, null),
- Reflect.defineProperty(e, t, n)
- );
- }
- };
- Uo.ownKeys = e => (
- L(
- 'Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.'
- ),
- Reflect.ownKeys(e)
- );
- const $b = Te({}, Uo, {
- get(e, t) {
- if (t !== Symbol.unscopables) return Uo.get(e, t, e);
- },
- has(e, t) {
- const n = t[0] !== '_' && !Fy(t);
- return (
- !n &&
- Uo.has(e, t) &&
- L(
- `Property ${JSON.stringify(
- t
- )} should not start with _ which is a reserved prefix for Vue internals.`
- ),
- n
- );
- }
- });
- function Ib(e) {
- const t = {};
- return (
- Object.defineProperty(t, '_', {
- configurable: !0,
- enumerable: !1,
- get: () => e
- }),
- Object.keys(Er).forEach(n => {
- Object.defineProperty(t, n, {
- configurable: !0,
- enumerable: !1,
- get: () => Er[n](e),
- set: Et
- });
- }),
- t
- );
- }
- function Rb(e) {
- const {
- ctx: t,
- propsOptions: [n]
- } = e;
- n &&
- Object.keys(n).forEach(r => {
- Object.defineProperty(t, r, {
- enumerable: !0,
- configurable: !0,
- get: () => e.props[r],
- set: Et
- });
- });
- }
- function kb(e) {
- const { ctx: t, setupState: n } = e;
- Object.keys(de(n)).forEach(r => {
- if (!n.__isScriptSetup) {
- if (Cc(r[0])) {
- L(
- `setup() return property ${JSON.stringify(
- r
- )} should not start with "$" or "_" which are reserved prefixes for Vue internals.`
- );
- return;
- }
- Object.defineProperty(t, r, {
- enumerable: !0,
- configurable: !0,
- get: () => n[r],
- set: Et
- });
- }
- });
- }
- const Br = e =>
- L(
- `${e}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`
- );
- function Mb() {
- return Br('defineProps'), null;
- }
- function Fb() {
- return Br('defineEmits'), null;
- }
- function Bb(e) {
- Br('defineExpose');
- }
- function Db(e) {
- Br('defineOptions');
- }
- function Lb() {
- return Br('defineSlots'), null;
- }
- function Nb() {
- Br('defineModel');
- }
- function jb(e, t) {
- return Br('withDefaults'), null;
- }
- function Ub() {
- return Mp().slots;
- }
- function Hb() {
- return Mp().attrs;
- }
- function Vb(e, t, n) {
- const r = Ze();
- if (!r) return L('useModel() called without active instance.'), Ee();
- if (!r.propsOptions[0][t])
- return L(`useModel() called with prop "${t}" which is not declared.`), Ee();
- if (n && n.local) {
- const o = Ee(e[t]);
- return (
- De(
- () => e[t],
- i => (o.value = i)
- ),
- De(o, i => {
- i !== e[t] && r.emit(`update:${t}`, i);
- }),
- o
- );
- } else
- return {
- __v_isRef: !0,
- get value() {
- return e[t];
- },
- set value(o) {
- r.emit(`update:${t}`, o);
- }
- };
- }
- function Mp() {
- const e = Ze();
- return (
- e || L('useContext() called without active instance.'),
- e.setupContext || (e.setupContext = oh(e))
- );
- }
- function si(e) {
- return ne(e) ? e.reduce((t, n) => ((t[n] = null), t), {}) : e;
- }
- function qb(e, t) {
- const n = si(e);
- for (const r in t) {
- if (r.startsWith('__skip')) continue;
- let o = n[r];
- o
- ? ne(o) || ce(o)
- ? (o = n[r] = { type: o, default: t[r] })
- : (o.default = t[r])
- : o === null
- ? (o = n[r] = { default: t[r] })
- : L(`props default key "${r}" has no corresponding declaration.`),
- o && t[`__skip_${r}`] && (o.skipFactory = !0);
- }
- return n;
- }
- function zb(e, t) {
- return !e || !t
- ? e || t
- : ne(e) && ne(t)
- ? e.concat(t)
- : Te({}, si(e), si(t));
- }
- function Wb(e, t) {
- const n = {};
- for (const r in e)
- t.includes(r) ||
- Object.defineProperty(n, r, { enumerable: !0, get: () => e[r] });
- return n;
- }
- function Kb(e) {
- const t = Ze();
- t ||
- L(
- 'withAsyncContext called without active current instance. This is likely a bug.'
- );
- let n = e();
- return (
- Gn(),
- qs(n) &&
- (n = n.catch(r => {
- throw (tr(t), r);
- })),
- [n, () => tr(t)]
- );
- }
- function Gb() {
- const e = Object.create(null);
- return (t, n) => {
- e[n]
- ? L(`${t} property "${n}" is already defined in ${e[n]}.`)
- : (e[n] = t);
- };
- }
- let fl = !0;
- function Yb(e) {
- const t = Tc(e),
- n = e.proxy,
- r = e.ctx;
- (fl = !1), t.beforeCreate && Nu(t.beforeCreate, e, 'bc');
- const {
- data: o,
- computed: i,
- methods: s,
- watch: a,
- provide: c,
- inject: l,
- created: u,
- beforeMount: f,
- mounted: d,
- beforeUpdate: h,
- updated: g,
- activated: w,
- deactivated: E,
- beforeDestroy: y,
- beforeUnmount: v,
- destroyed: O,
- unmounted: C,
- render: x,
- renderTracked: N,
- renderTriggered: A,
- errorCaptured: I,
- serverPrefetch: k,
- expose: S,
- inheritAttrs: R,
- components: B,
- directives: F,
- filters: $
- } = t,
- V = Gb();
- {
- const [H] = e.propsOptions;
- if (H) for (const K in H) V('Props', K);
- }
- if ((l && Jb(l, r, V), s))
- for (const H in s) {
- const K = s[H];
- ce(K)
- ? (Object.defineProperty(r, H, {
- value: K.bind(n),
- configurable: !0,
- enumerable: !0,
- writable: !0
- }),
- V('Methods', H))
- : L(
- `Method "${H}" has type "${typeof K}" in the component definition. Did you reference the function correctly?`
- );
- }
- if (o) {
- ce(o) ||
- L(
- 'The data option must be a function. Plain object usage is no longer supported.'
- );
- const H = o.call(n, n);
- if (
- (qs(H) &&
- L(
- 'data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>.'
- ),
- !Ce(H))
- )
- L('data() should return an object.');
- else {
- e.data = ct(H);
- for (const K in H)
- V('Data', K),
- Cc(K[0]) ||
- Object.defineProperty(r, K, {
- configurable: !0,
- enumerable: !0,
- get: () => H[K],
- set: Et
- });
- }
- }
- if (((fl = !0), i))
- for (const H in i) {
- const K = i[H],
- ie = ce(K) ? K.bind(n, n) : ce(K.get) ? K.get.bind(n, n) : Et;
- ie === Et && L(`Computed property "${H}" has no getter.`);
- const he =
- !ce(K) && ce(K.set)
- ? K.set.bind(n)
- : () => {
- L(
- `Write operation failed: computed property "${H}" is readonly.`
- );
- },
- Se = Me({ get: ie, set: he });
- Object.defineProperty(r, H, {
- enumerable: !0,
- configurable: !0,
- get: () => Se.value,
- set: ye => (Se.value = ye)
- }),
- V('Computed', H);
- }
- if (a) for (const H in a) Fp(a[H], r, n, H);
- if (c) {
- const H = ce(c) ? c.call(n) : c;
- Reflect.ownKeys(H).forEach(K => {
- Sr(K, H[K]);
- });
- }
- u && Nu(u, e, 'c');
- function Y(H, K) {
- ne(K) ? K.forEach(ie => H(ie.bind(n))) : K && H(K.bind(n));
- }
- if (
- (Y(Op, f),
- Y(kt, d),
- Y(Cp, h),
- Y(ra, g),
- Y(Si, w),
- Y(po, E),
- Y($p, I),
- Y(Pp, N),
- Y(Ap, A),
- Y(ho, v),
- Y(Fr, C),
- Y(Tp, k),
- ne(S))
- )
- if (S.length) {
- const H = e.exposed || (e.exposed = {});
- S.forEach(K => {
- Object.defineProperty(H, K, {
- get: () => n[K],
- set: ie => (n[K] = ie)
- });
- });
- } else e.exposed || (e.exposed = {});
- x && e.render === Et && (e.render = x),
- R != null && (e.inheritAttrs = R),
- B && (e.components = B),
- F && (e.directives = F);
- }
- function Jb(e, t, n = Et) {
- ne(e) && (e = dl(e));
- for (const r in e) {
- const o = e[r];
- let i;
- Ce(o)
- ? 'default' in o
- ? (i = rt(o.from || r, o.default, !0))
- : (i = rt(o.from || r))
- : (i = rt(o)),
- ke(i)
- ? Object.defineProperty(t, r, {
- enumerable: !0,
- configurable: !0,
- get: () => i.value,
- set: s => (i.value = s)
- })
- : (t[r] = i),
- n('Inject', r);
- }
- }
- function Nu(e, t, n) {
- It(ne(e) ? e.map(r => r.bind(t.proxy)) : e.bind(t.proxy), t, n);
- }
- function Fp(e, t, n, r) {
- const o = r.includes('.') ? _p(n, r) : () => n[r];
- if (Ie(e)) {
- const i = t[e];
- ce(i) ? De(o, i) : L(`Invalid watch handler specified by key "${e}"`, i);
- } else if (ce(e)) De(o, e.bind(n));
- else if (Ce(e))
- if (ne(e)) e.forEach(i => Fp(i, t, n, r));
- else {
- const i = ce(e.handler) ? e.handler.bind(n) : t[e.handler];
- ce(i)
- ? De(o, i, e)
- : L(`Invalid watch handler specified by key "${e.handler}"`, i);
- }
- else L(`Invalid watch option: "${r}"`, e);
- }
- function Tc(e) {
- const t = e.type,
- { mixins: n, extends: r } = t,
- {
- mixins: o,
- optionsCache: i,
- config: { optionMergeStrategies: s }
- } = e.appContext,
- a = i.get(t);
- let c;
- return (
- a
- ? (c = a)
- : !o.length && !n && !r
- ? (c = t)
- : ((c = {}), o.length && o.forEach(l => xs(c, l, s, !0)), xs(c, t, s)),
- Ce(t) && i.set(t, c),
- c
- );
- }
- function xs(e, t, n, r = !1) {
- const { mixins: o, extends: i } = t;
- i && xs(e, i, n, !0), o && o.forEach(s => xs(e, s, n, !0));
- for (const s in t)
- if (r && s === 'expose')
- L(
- '"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
- );
- else {
- const a = Qb[s] || (n && n[s]);
- e[s] = a ? a(e[s], t[s]) : t[s];
- }
- return e;
- }
- const Qb = {
- data: ju,
- props: Uu,
- emits: Uu,
- methods: Mo,
- computed: Mo,
- beforeCreate: ht,
- created: ht,
- beforeMount: ht,
- mounted: ht,
- beforeUpdate: ht,
- updated: ht,
- beforeDestroy: ht,
- beforeUnmount: ht,
- destroyed: ht,
- unmounted: ht,
- activated: ht,
- deactivated: ht,
- errorCaptured: ht,
- serverPrefetch: ht,
- components: Mo,
- directives: Mo,
- watch: Zb,
- provide: ju,
- inject: Xb
- };
- function ju(e, t) {
- return t
- ? e
- ? function () {
- return Te(
- ce(e) ? e.call(this, this) : e,
- ce(t) ? t.call(this, this) : t
- );
- }
- : t
- : e;
- }
- function Xb(e, t) {
- return Mo(dl(e), dl(t));
- }
- function dl(e) {
- if (ne(e)) {
- const t = {};
- for (let n = 0; n < e.length; n++) t[e[n]] = e[n];
- return t;
- }
- return e;
- }
- function ht(e, t) {
- return e ? [...new Set([].concat(e, t))] : t;
- }
- function Mo(e, t) {
- return e ? Te(Object.create(null), e, t) : t;
- }
- function Uu(e, t) {
- return e
- ? ne(e) && ne(t)
- ? [...new Set([...e, ...t])]
- : Te(Object.create(null), si(e), si(t != null ? t : {}))
- : t;
- }
- function Zb(e, t) {
- if (!e) return t;
- if (!t) return e;
- const n = Te(Object.create(null), e);
- for (const r in t) n[r] = ht(e[r], t[r]);
- return n;
- }
- function Bp() {
- return {
- app: null,
- config: {
- isNativeTag: Ld,
- performance: !1,
- globalProperties: {},
- optionMergeStrategies: {},
- errorHandler: void 0,
- warnHandler: void 0,
- compilerOptions: {}
- },
- mixins: [],
- components: {},
- directives: {},
- provides: Object.create(null),
- optionsCache: new WeakMap(),
- propsCache: new WeakMap(),
- emitsCache: new WeakMap()
- };
- }
- let e_ = 0;
- function t_(e, t) {
- return function (r, o = null) {
- ce(r) || (r = Te({}, r)),
- o != null &&
- !Ce(o) &&
- (L('root props passed to app.mount() must be an object.'), (o = null));
- const i = Bp();
- Object.defineProperty(i.config, 'unwrapInjectedRef', {
- get() {
- return !0;
- },
- set() {
- L(
- 'app.config.unwrapInjectedRef has been deprecated. 3.3 now alawys unwraps injected refs in Options API.'
- );
- }
- });
- const s = new Set();
- let a = !1;
- const c = (i.app = {
- _uid: e_++,
- _component: r,
- _props: o,
- _container: null,
- _context: i,
- _instance: null,
- version: wl,
- get config() {
- return i.config;
- },
- set config(l) {
- L('app.config cannot be replaced. Modify individual options instead.');
- },
- use(l, ...u) {
- return (
- s.has(l)
- ? L('Plugin has already been applied to target app.')
- : l && ce(l.install)
- ? (s.add(l), l.install(c, ...u))
- : ce(l)
- ? (s.add(l), l(c, ...u))
- : L(
- 'A plugin must either be a function or an object with an "install" function.'
- ),
- c
- );
- },
- mixin(l) {
- return (
- i.mixins.includes(l)
- ? L(
- 'Mixin has already been applied to target app' +
- (l.name ? `: ${l.name}` : '')
- )
- : i.mixins.push(l),
- c
- );
- },
- component(l, u) {
- return (
- vl(l, i.config),
- u
- ? (i.components[l] &&
- L(
- `Component "${l}" has already been registered in target app.`
- ),
- (i.components[l] = u),
- c)
- : i.components[l]
- );
- },
- directive(l, u) {
- return (
- wp(l),
- u
- ? (i.directives[l] &&
- L(
- `Directive "${l}" has already been registered in target app.`
- ),
- (i.directives[l] = u),
- c)
- : i.directives[l]
- );
- },
- mount(l, u, f) {
- if (a)
- L(
- 'App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`'
- );
- else {
- l.__vue_app__ &&
- L(
- 'There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.'
- );
- const d = T(r, o);
- return (
- (d.appContext = i),
- (i.reload = () => {
- e(Ut(d), l, f);
- }),
- u && t ? t(d, l) : e(d, l, f),
- (a = !0),
- (c._container = l),
- (l.__vue_app__ = c),
- (c._instance = d.component),
- Gv(c, wl),
- sa(d.component) || d.component.proxy
- );
- }
- },
- unmount() {
- a
- ? (e(null, c._container),
- (c._instance = null),
- Yv(c),
- delete c._container.__vue_app__)
- : L('Cannot unmount an app that is not mounted.');
- },
- provide(l, u) {
- return (
- l in i.provides &&
- L(
- `App already provides property with key "${String(
- l
- )}". It will be overwritten with the new value.`
- ),
- (i.provides[l] = u),
- c
- );
- },
- runWithContext(l) {
- ai = c;
- try {
- return l();
- } finally {
- ai = null;
- }
- }
- });
- return c;
- };
- }
- let ai = null;
- function Sr(e, t) {
- if (!Ne) L('provide() can only be used inside setup().');
- else {
- let n = Ne.provides;
- const r = Ne.parent && Ne.parent.provides;
- r === n && (n = Ne.provides = Object.create(r)), (n[e] = t);
- }
- }
- function rt(e, t, n = !1) {
- const r = Ne || je;
- if (r || ai) {
- const o = r
- ? r.parent == null
- ? r.vnode.appContext && r.vnode.appContext.provides
- : r.parent.provides
- : ai._context.provides;
- if (o && e in o) return o[e];
- if (arguments.length > 1) return n && ce(t) ? t.call(r && r.proxy) : t;
- L(`injection "${String(e)}" not found.`);
- } else
- L('inject() can only be used inside setup() or functional components.');
- }
- function Dp() {
- return !!(Ne || je || ai);
- }
- function n_(e, t, n, r = !1) {
- const o = {},
- i = {};
- ms(i, ia, 1), (e.propsDefaults = Object.create(null)), Lp(e, t, o, i);
- for (const s in e.propsOptions[0]) s in o || (o[s] = void 0);
- jp(t || {}, o, e),
- n
- ? (e.props = r ? o : op(o))
- : e.type.props
- ? (e.props = o)
- : (e.props = i),
- (e.attrs = i);
- }
- function r_(e) {
- for (; e; ) {
- if (e.type.__hmrId) return !0;
- e = e.parent;
- }
- }
- function o_(e, t, n, r) {
- const {
- props: o,
- attrs: i,
- vnode: { patchFlag: s }
- } = e,
- a = de(o),
- [c] = e.propsOptions;
- let l = !1;
- if (!r_(e) && (r || s > 0) && !(s & 16)) {
- if (s & 8) {
- const u = e.vnode.dynamicProps;
- for (let f = 0; f < u.length; f++) {
- let d = u[f];
- if (Zs(e.emitsOptions, d)) continue;
- const h = t[d];
- if (c)
- if (_e(i, d)) h !== i[d] && ((i[d] = h), (l = !0));
- else {
- const g = Ot(d);
- o[g] = pl(c, a, g, h, e, !1);
- }
- else h !== i[d] && ((i[d] = h), (l = !0));
- }
- }
- } else {
- Lp(e, t, o, i) && (l = !0);
- let u;
- for (const f in a)
- (!t || (!_e(t, f) && ((u = gt(f)) === f || !_e(t, u)))) &&
- (c
- ? n &&
- (n[f] !== void 0 || n[u] !== void 0) &&
- (o[f] = pl(c, a, f, void 0, e, !0))
- : delete o[f]);
- if (i !== a)
- for (const f in i) (!t || !_e(t, f)) && (delete i[f], (l = !0));
- }
- l && sn(e, 'set', '$attrs'), jp(t || {}, o, e);
- }
- function Lp(e, t, n, r) {
- const [o, i] = e.propsOptions;
- let s = !1,
- a;
- if (t)
- for (let c in t) {
- if (Do(c)) continue;
- const l = t[c];
- let u;
- o && _e(o, (u = Ot(c)))
- ? !i || !i.includes(u)
- ? (n[u] = l)
- : ((a || (a = {}))[u] = l)
- : Zs(e.emitsOptions, c) ||
- ((!(c in r) || l !== r[c]) && ((r[c] = l), (s = !0)));
- }
- if (i) {
- const c = de(n),
- l = a || Pe;
- for (let u = 0; u < i.length; u++) {
- const f = i[u];
- n[f] = pl(o, c, f, l[f], e, !_e(l, f));
- }
- }
- return s;
- }
- function pl(e, t, n, r, o, i) {
- const s = e[n];
- if (s != null) {
- const a = _e(s, 'default');
- if (a && r === void 0) {
- const c = s.default;
- if (s.type !== Function && !s.skipFactory && ce(c)) {
- const { propsDefaults: l } = o;
- n in l ? (r = l[n]) : (tr(o), (r = l[n] = c.call(null, t)), Gn());
- } else r = c;
- }
- s[0] &&
- (i && !a ? (r = !1) : s[1] && (r === '' || r === gt(n)) && (r = !0));
- }
- return r;
- }
- function Np(e, t, n = !1) {
- const r = t.propsCache,
- o = r.get(e);
- if (o) return o;
- const i = e.props,
- s = {},
- a = [];
- let c = !1;
- if (!ce(e)) {
- const u = f => {
- c = !0;
- const [d, h] = Np(f, t, !0);
- Te(s, d), h && a.push(...h);
- };
- !n && t.mixins.length && t.mixins.forEach(u),
- e.extends && u(e.extends),
- e.mixins && e.mixins.forEach(u);
- }
- if (!i && !c) return Ce(e) && r.set(e, Jr), Jr;
- if (ne(i))
- for (let u = 0; u < i.length; u++) {
- Ie(i[u]) || L('props must be strings when using array syntax.', i[u]);
- const f = Ot(i[u]);
- Hu(f) && (s[f] = Pe);
- }
- else if (i) {
- Ce(i) || L('invalid props options', i);
- for (const u in i) {
- const f = Ot(u);
- if (Hu(f)) {
- const d = i[u],
- h = (s[f] = ne(d) || ce(d) ? { type: d } : Te({}, d));
- if (h) {
- const g = qu(Boolean, h.type),
- w = qu(String, h.type);
- (h[0] = g > -1),
- (h[1] = w < 0 || g < w),
- (g > -1 || _e(h, 'default')) && a.push(f);
- }
- }
- }
- }
- const l = [s, a];
- return Ce(e) && r.set(e, l), l;
- }
- function Hu(e) {
- return e[0] !== '$'
- ? !0
- : (L(`Invalid prop name: "${e}" is a reserved property.`), !1);
- }
- function hl(e) {
- const t = e && e.toString().match(/^\s*(function|class) (\w+)/);
- return t ? t[2] : e === null ? 'null' : '';
- }
- function Vu(e, t) {
- return hl(e) === hl(t);
- }
- function qu(e, t) {
- return ne(t) ? t.findIndex(n => Vu(n, e)) : ce(t) && Vu(t, e) ? 0 : -1;
- }
- function jp(e, t, n) {
- const r = de(t),
- o = n.propsOptions[0];
- for (const i in o) {
- let s = o[i];
- s != null && i_(i, r[i], s, !_e(e, i) && !_e(e, gt(i)));
- }
- }
- function i_(e, t, n, r) {
- const { type: o, required: i, validator: s, skipCheck: a } = n;
- if (i && r) {
- L('Missing required prop: "' + e + '"');
- return;
- }
- if (!(t == null && !i)) {
- if (o != null && o !== !0 && !a) {
- let c = !1;
- const l = ne(o) ? o : [o],
- u = [];
- for (let f = 0; f < l.length && !c; f++) {
- const { valid: d, expectedType: h } = a_(t, l[f]);
- u.push(h || ''), (c = d);
- }
- if (!c) {
- L(l_(e, t, u));
- return;
- }
- }
- s &&
- !s(t) &&
- L('Invalid prop: custom validator check failed for prop "' + e + '".');
- }
- }
- const s_ = Tn('String,Number,Boolean,Function,Symbol,BigInt');
- function a_(e, t) {
- let n;
- const r = hl(t);
- if (s_(r)) {
- const o = typeof e;
- (n = o === r.toLowerCase()), !n && o === 'object' && (n = e instanceof t);
- } else
- r === 'Object'
- ? (n = Ce(e))
- : r === 'Array'
- ? (n = ne(e))
- : r === 'null'
- ? (n = e === null)
- : (n = e instanceof t);
- return { valid: n, expectedType: r };
- }
- function l_(e, t, n) {
- let r = `Invalid prop: type check failed for prop "${e}". Expected ${n
- .map(Qn)
- .join(' | ')}`;
- const o = n[0],
- i = tc(t),
- s = zu(t, o),
- a = zu(t, i);
- return (
- n.length === 1 && Wu(o) && !c_(o, i) && (r += ` with value ${s}`),
- (r += `, got ${i} `),
- Wu(i) && (r += `with value ${a}.`),
- r
- );
- }
- function zu(e, t) {
- return t === 'String' ? `"${e}"` : t === 'Number' ? `${Number(e)}` : `${e}`;
- }
- function Wu(e) {
- return ['string', 'number', 'boolean'].some(n => e.toLowerCase() === n);
- }
- function c_(...e) {
- return e.some(t => t.toLowerCase() === 'boolean');
- }
- const Up = e => e[0] === '_' || e === '$stable',
- Ac = e => (ne(e) ? e.map(wt) : [wt(e)]),
- u_ = (e, t, n) => {
- if (t._n) return t;
- const r = vc(
- (...o) => (
- Ne &&
- L(
- `Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
- ),
- Ac(t(...o))
- ),
- n
- );
- return (r._c = !1), r;
- },
- Hp = (e, t, n) => {
- const r = e._ctx;
- for (const o in e) {
- if (Up(o)) continue;
- const i = e[o];
- if (ce(i)) t[o] = u_(o, i, r);
- else if (i != null) {
- L(
- `Non-function value encountered for slot "${o}". Prefer function slots for better performance.`
- );
- const s = Ac(i);
- t[o] = () => s;
- }
- }
- },
- Vp = (e, t) => {
- fo(e.vnode) ||
- L(
- 'Non-function value encountered for default slot. Prefer function slots for better performance.'
- );
- const n = Ac(t);
- e.slots.default = () => n;
- },
- f_ = (e, t) => {
- if (e.vnode.shapeFlag & 32) {
- const n = t._;
- n ? ((e.slots = de(t)), ms(t, '_', n)) : Hp(t, (e.slots = {}));
- } else (e.slots = {}), t && Vp(e, t);
- ms(e.slots, ia, 1);
- },
- d_ = (e, t, n) => {
- const { vnode: r, slots: o } = e;
- let i = !0,
- s = Pe;
- if (r.shapeFlag & 32) {
- const a = t._;
- a
- ? Wn
- ? (Te(o, t), sn(e, 'set', '$slots'))
- : n && a === 1
- ? (i = !1)
- : (Te(o, t), !n && a === 1 && delete o._)
- : ((i = !t.$stable), Hp(t, o)),
- (s = t);
- } else t && (Vp(e, t), (s = { default: 1 }));
- if (i) for (const a in o) !Up(a) && !(a in s) && delete o[a];
- };
- function Os(e, t, n, r, o = !1) {
- if (ne(e)) {
- e.forEach((d, h) => Os(d, t && (ne(t) ? t[h] : t), n, r, o));
- return;
- }
- if (wr(r) && !o) return;
- const i = r.shapeFlag & 4 ? sa(r.component) || r.component.proxy : r.el,
- s = o ? null : i,
- { i: a, r: c } = e;
- if (!a) {
- L(
- 'Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.'
- );
- return;
- }
- const l = t && t.r,
- u = a.refs === Pe ? (a.refs = {}) : a.refs,
- f = a.setupState;
- if (
- (l != null &&
- l !== c &&
- (Ie(l)
- ? ((u[l] = null), _e(f, l) && (f[l] = null))
- : ke(l) && (l.value = null)),
- ce(c))
- )
- rn(c, a, 12, [s, u]);
- else {
- const d = Ie(c),
- h = ke(c);
- if (d || h) {
- const g = () => {
- if (e.f) {
- const w = d ? (_e(f, c) ? f[c] : u[c]) : c.value;
- o
- ? ne(w) && ec(w, i)
- : ne(w)
- ? w.includes(i) || w.push(i)
- : d
- ? ((u[c] = [i]), _e(f, c) && (f[c] = u[c]))
- : ((c.value = [i]), e.k && (u[e.k] = c.value));
- } else
- d
- ? ((u[c] = s), _e(f, c) && (f[c] = s))
- : h
- ? ((c.value = s), e.k && (u[e.k] = s))
- : L('Invalid template ref type:', c, `(${typeof c})`);
- };
- s ? ((g.id = -1), tt(g, n)) : g();
- } else L('Invalid template ref type:', c, `(${typeof c})`);
- }
- }
- let Rn = !1;
- const Ki = e => /svg/.test(e.namespaceURI) && e.tagName !== 'foreignObject',
- Eo = e => e.nodeType === 8;
- function p_(e) {
- const {
- mt: t,
- p: n,
- o: {
- patchProp: r,
- createText: o,
- nextSibling: i,
- parentNode: s,
- remove: a,
- insert: c,
- createComment: l
- }
- } = e,
- u = (y, v) => {
- if (!v.hasChildNodes()) {
- L(
- 'Attempting to hydrate existing markup but container is empty. Performing full mount instead.'
- ),
- n(null, y, v),
- ws(),
- (v._vnode = y);
- return;
- }
- (Rn = !1),
- f(v.firstChild, y, null, null, null),
- ws(),
- (v._vnode = y),
- Rn && console.error('Hydration completed but contains mismatches.');
- },
- f = (y, v, O, C, x, N = !1) => {
- const A = Eo(y) && y.data === '[',
- I = () => w(y, v, O, C, x, A),
- { type: k, ref: S, shapeFlag: R, patchFlag: B } = v;
- let F = y.nodeType;
- (v.el = y), B === -2 && ((N = !1), (v.dynamicChildren = null));
- let $ = null;
- switch (k) {
- case er:
- F !== 3
- ? v.children === ''
- ? (c((v.el = o('')), s(y), y), ($ = y))
- : ($ = I())
- : (y.data !== v.children &&
- ((Rn = !0),
- L(`Hydration text mismatch:
- - Client: ${JSON.stringify(y.data)}
- - Server: ${JSON.stringify(v.children)}`),
- (y.data = v.children)),
- ($ = i(y)));
- break;
- case Ue:
- F !== 8 || A ? ($ = I()) : ($ = i(y));
- break;
- case Kn:
- if ((A && ((y = i(y)), (F = y.nodeType)), F === 1 || F === 3)) {
- $ = y;
- const V = !v.children.length;
- for (let Y = 0; Y < v.staticCount; Y++)
- V && (v.children += $.nodeType === 1 ? $.outerHTML : $.data),
- Y === v.staticCount - 1 && (v.anchor = $),
- ($ = i($));
- return A ? i($) : $;
- } else I();
- break;
- case Be:
- A ? ($ = g(y, v, O, C, x, N)) : ($ = I());
- break;
- default:
- if (R & 1)
- F !== 1 || v.type.toLowerCase() !== y.tagName.toLowerCase()
- ? ($ = I())
- : ($ = d(y, v, O, C, x, N));
- else if (R & 6) {
- v.slotScopeIds = x;
- const V = s(y);
- if (
- (t(v, V, null, O, C, Ki(V), N),
- ($ = A ? E(y) : i(y)),
- $ && Eo($) && $.data === 'teleport end' && ($ = i($)),
- wr(v))
- ) {
- let Y;
- A
- ? ((Y = T(Be)),
- (Y.anchor = $ ? $.previousSibling : V.lastChild))
- : (Y = y.nodeType === 3 ? Ic('') : T('div')),
- (Y.el = y),
- (v.component.subTree = Y);
- }
- } else
- R & 64
- ? F !== 8
- ? ($ = I())
- : ($ = v.type.hydrate(y, v, O, C, x, N, e, h))
- : R & 128
- ? ($ = v.type.hydrate(y, v, O, C, Ki(s(y)), x, N, e, f))
- : L('Invalid HostVNode type:', k, `(${typeof k})`);
- }
- return S != null && Os(S, null, C, v), $;
- },
- d = (y, v, O, C, x, N) => {
- N = N || !!v.dynamicChildren;
- const { type: A, props: I, patchFlag: k, shapeFlag: S, dirs: R } = v,
- B = (A === 'input' && R) || A === 'option';
- {
- if ((R && Xt(v, null, O, 'created'), I))
- if (B || !N || k & 48)
- for (const $ in I)
- ((B && $.endsWith('value')) || (co($) && !Do($))) &&
- r(y, $, null, I[$], !1, void 0, O);
- else I.onClick && r(y, 'onClick', null, I.onClick, !1, void 0, O);
- let F;
- if (
- ((F = I && I.onVnodeBeforeMount) && vt(F, O, v),
- R && Xt(v, null, O, 'beforeMount'),
- ((F = I && I.onVnodeMounted) || R) &&
- yp(() => {
- F && vt(F, O, v), R && Xt(v, null, O, 'mounted');
- }, C),
- S & 16 && !(I && (I.innerHTML || I.textContent)))
- ) {
- let $ = h(y.firstChild, v, y, O, C, x, N),
- V = !1;
- for (; $; ) {
- (Rn = !0),
- V ||
- (L(
- `Hydration children mismatch in <${v.type}>: server rendered element contains more child nodes than client vdom.`
- ),
- (V = !0));
- const Y = $;
- ($ = $.nextSibling), a(Y);
- }
- } else
- S & 8 &&
- y.textContent !== v.children &&
- ((Rn = !0),
- L(`Hydration text content mismatch in <${v.type}>:
- - Client: ${y.textContent}
- - Server: ${v.children}`),
- (y.textContent = v.children));
- }
- return y.nextSibling;
- },
- h = (y, v, O, C, x, N, A) => {
- A = A || !!v.dynamicChildren;
- const I = v.children,
- k = I.length;
- let S = !1;
- for (let R = 0; R < k; R++) {
- const B = A ? I[R] : (I[R] = wt(I[R]));
- if (y) y = f(y, B, C, x, N, A);
- else {
- if (B.type === er && !B.children) continue;
- (Rn = !0),
- S ||
- (L(
- `Hydration children mismatch in <${O.tagName.toLowerCase()}>: server rendered element contains fewer child nodes than client vdom.`
- ),
- (S = !0)),
- n(null, B, O, null, C, x, Ki(O), N);
- }
- }
- return y;
- },
- g = (y, v, O, C, x, N) => {
- const { slotScopeIds: A } = v;
- A && (x = x ? x.concat(A) : A);
- const I = s(y),
- k = h(i(y), v, I, O, C, x, N);
- return k && Eo(k) && k.data === ']'
- ? i((v.anchor = k))
- : ((Rn = !0), c((v.anchor = l(']')), I, k), k);
- },
- w = (y, v, O, C, x, N) => {
- if (
- ((Rn = !0),
- L(
- `Hydration node mismatch:
- - Client vnode:`,
- v.type,
- `
- - Server rendered DOM:`,
- y,
- y.nodeType === 3
- ? '(text)'
- : Eo(y) && y.data === '['
- ? '(start of fragment)'
- : ''
- ),
- (v.el = null),
- N)
- ) {
- const k = E(y);
- for (;;) {
- const S = i(y);
- if (S && S !== k) a(S);
- else break;
- }
- }
- const A = i(y),
- I = s(y);
- return a(y), n(null, v, I, A, O, C, Ki(I), x), A;
- },
- E = y => {
- let v = 0;
- for (; y; )
- if (
- ((y = i(y)), y && Eo(y) && (y.data === '[' && v++, y.data === ']'))
- ) {
- if (v === 0) return i(y);
- v--;
- }
- return y;
- };
- return [u, f];
- }
- let So, Un;
- function bn(e, t) {
- e.appContext.config.performance && Cs() && Un.mark(`vue-${t}-${e.uid}`),
- Xv(e, t, Cs() ? Un.now() : Date.now());
- }
- function _n(e, t) {
- if (e.appContext.config.performance && Cs()) {
- const n = `vue-${t}-${e.uid}`,
- r = n + ':end';
- Un.mark(r),
- Un.measure(`<${aa(e, e.type)}> ${t}`, n, r),
- Un.clearMarks(n),
- Un.clearMarks(r);
- }
- Zv(e, t, Cs() ? Un.now() : Date.now());
- }
- function Cs() {
- return (
- So !== void 0 ||
- (typeof window < 'u' && window.performance
- ? ((So = !0), (Un = window.performance))
- : (So = !1)),
- So
- );
- }
- function h_() {
- const e = [];
- if (e.length) {
- const t = e.length > 1;
- console.warn(`Feature flag${t ? 's' : ''} ${e.join(', ')} ${
- t ? 'are' : 'is'
- } not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
- For more details, see https://link.vuejs.org/feature-flags.`);
- }
- }
- const tt = yp;
- function qp(e) {
- return Wp(e);
- }
- function zp(e) {
- return Wp(e, p_);
- }
- function Wp(e, t) {
- h_();
- const n = vs();
- (n.__VUE__ = !0), gc(n.__VUE_DEVTOOLS_GLOBAL_HOOK__, n);
- const {
- insert: r,
- remove: o,
- patchProp: i,
- createElement: s,
- createText: a,
- createComment: c,
- setText: l,
- setElementText: u,
- parentNode: f,
- nextSibling: d,
- setScopeId: h = Et,
- insertStaticContent: g
- } = e,
- w = (
- m,
- b,
- P,
- U = null,
- j = null,
- Q = null,
- ee = !1,
- G = null,
- Z = Wn ? !1 : !!b.dynamicChildren
- ) => {
- if (m === b) return;
- m && !Wt(m, b) && ((U = q(m)), xe(m, j, Q, !0), (m = null)),
- b.patchFlag === -2 && ((Z = !1), (b.dynamicChildren = null));
- const { type: W, ref: oe, shapeFlag: re } = b;
- switch (W) {
- case er:
- E(m, b, P, U);
- break;
- case Ue:
- y(m, b, P, U);
- break;
- case Kn:
- m == null ? v(b, P, U, ee) : O(m, b, P, ee);
- break;
- case Be:
- F(m, b, P, U, j, Q, ee, G, Z);
- break;
- default:
- re & 1
- ? N(m, b, P, U, j, Q, ee, G, Z)
- : re & 6
- ? $(m, b, P, U, j, Q, ee, G, Z)
- : re & 64 || re & 128
- ? W.process(m, b, P, U, j, Q, ee, G, Z, te)
- : L('Invalid VNode type:', W, `(${typeof W})`);
- }
- oe != null && j && Os(oe, m && m.ref, Q, b || m, !b);
- },
- E = (m, b, P, U) => {
- if (m == null) r((b.el = a(b.children)), P, U);
- else {
- const j = (b.el = m.el);
- b.children !== m.children && l(j, b.children);
- }
- },
- y = (m, b, P, U) => {
- m == null ? r((b.el = c(b.children || '')), P, U) : (b.el = m.el);
- },
- v = (m, b, P, U) => {
- [m.el, m.anchor] = g(m.children, b, P, U, m.el, m.anchor);
- },
- O = (m, b, P, U) => {
- if (b.children !== m.children) {
- const j = d(m.anchor);
- x(m), ([b.el, b.anchor] = g(b.children, P, j, U));
- } else (b.el = m.el), (b.anchor = m.anchor);
- },
- C = ({ el: m, anchor: b }, P, U) => {
- let j;
- for (; m && m !== b; ) (j = d(m)), r(m, P, U), (m = j);
- r(b, P, U);
- },
- x = ({ el: m, anchor: b }) => {
- let P;
- for (; m && m !== b; ) (P = d(m)), o(m), (m = P);
- o(b);
- },
- N = (m, b, P, U, j, Q, ee, G, Z) => {
- (ee = ee || b.type === 'svg'),
- m == null ? A(b, P, U, j, Q, ee, G, Z) : S(m, b, j, Q, ee, G, Z);
- },
- A = (m, b, P, U, j, Q, ee, G) => {
- let Z, W;
- const {
- type: oe,
- props: re,
- shapeFlag: se,
- transition: fe,
- dirs: me
- } = m;
- if (
- ((Z = m.el = s(m.type, Q, re && re.is, re)),
- se & 8
- ? u(Z, m.children)
- : se & 16 &&
- k(m.children, Z, null, U, j, Q && oe !== 'foreignObject', ee, G),
- me && Xt(m, null, U, 'created'),
- I(Z, m, m.scopeId, ee, U),
- re)
- ) {
- for (const ae in re)
- ae !== 'value' &&
- !Do(ae) &&
- i(Z, ae, null, re[ae], Q, m.children, U, j, M);
- 'value' in re && i(Z, 'value', null, re.value),
- (W = re.onVnodeBeforeMount) && vt(W, U, m);
- }
- Object.defineProperty(Z, '__vnode', { value: m, enumerable: !1 }),
- Object.defineProperty(Z, '__vueParentComponent', {
- value: U,
- enumerable: !1
- }),
- me && Xt(m, null, U, 'beforeMount');
- const z = (!j || (j && !j.pendingBranch)) && fe && !fe.persisted;
- z && fe.beforeEnter(Z),
- r(Z, b, P),
- ((W = re && re.onVnodeMounted) || z || me) &&
- tt(() => {
- W && vt(W, U, m), z && fe.enter(Z), me && Xt(m, null, U, 'mounted');
- }, j);
- },
- I = (m, b, P, U, j) => {
- if ((P && h(m, P), U)) for (let Q = 0; Q < U.length; Q++) h(m, U[Q]);
- if (j) {
- let Q = j.subTree;
- if (
- (Q.patchFlag > 0 && Q.patchFlag & 2048 && (Q = bc(Q.children) || Q),
- b === Q)
- ) {
- const ee = j.vnode;
- I(m, ee, ee.scopeId, ee.slotScopeIds, j.parent);
- }
- }
- },
- k = (m, b, P, U, j, Q, ee, G, Z = 0) => {
- for (let W = Z; W < m.length; W++) {
- const oe = (m[W] = G ? Dn(m[W]) : wt(m[W]));
- w(null, oe, b, P, U, j, Q, ee, G);
- }
- },
- S = (m, b, P, U, j, Q, ee) => {
- const G = (b.el = m.el);
- let { patchFlag: Z, dynamicChildren: W, dirs: oe } = b;
- Z |= m.patchFlag & 16;
- const re = m.props || Pe,
- se = b.props || Pe;
- let fe;
- P && ur(P, !1),
- (fe = se.onVnodeBeforeUpdate) && vt(fe, P, b, m),
- oe && Xt(b, m, P, 'beforeUpdate'),
- P && ur(P, !0),
- Wn && ((Z = 0), (ee = !1), (W = null));
- const me = j && b.type !== 'foreignObject';
- if (
- (W
- ? (R(m.dynamicChildren, W, G, P, U, me, Q), Ts(m, b))
- : ee || ie(m, b, G, null, P, U, me, Q, !1),
- Z > 0)
- ) {
- if (Z & 16) B(G, b, re, se, P, U, j);
- else if (
- (Z & 2 && re.class !== se.class && i(G, 'class', null, se.class, j),
- Z & 4 && i(G, 'style', re.style, se.style, j),
- Z & 8)
- ) {
- const z = b.dynamicProps;
- for (let ae = 0; ae < z.length; ae++) {
- const ve = z[ae],
- We = re[ve],
- cn = se[ve];
- (cn !== We || ve === 'value') &&
- i(G, ve, We, cn, j, m.children, P, U, M);
- }
- }
- Z & 1 && m.children !== b.children && u(G, b.children);
- } else !ee && W == null && B(G, b, re, se, P, U, j);
- ((fe = se.onVnodeUpdated) || oe) &&
- tt(() => {
- fe && vt(fe, P, b, m), oe && Xt(b, m, P, 'updated');
- }, U);
- },
- R = (m, b, P, U, j, Q, ee) => {
- for (let G = 0; G < b.length; G++) {
- const Z = m[G],
- W = b[G],
- oe =
- Z.el && (Z.type === Be || !Wt(Z, W) || Z.shapeFlag & 70)
- ? f(Z.el)
- : P;
- w(Z, W, oe, null, U, j, Q, ee, !0);
- }
- },
- B = (m, b, P, U, j, Q, ee) => {
- if (P !== U) {
- if (P !== Pe)
- for (const G in P)
- !Do(G) && !(G in U) && i(m, G, P[G], null, ee, b.children, j, Q, M);
- for (const G in U) {
- if (Do(G)) continue;
- const Z = U[G],
- W = P[G];
- Z !== W && G !== 'value' && i(m, G, W, Z, ee, b.children, j, Q, M);
- }
- 'value' in U && i(m, 'value', P.value, U.value);
- }
- },
- F = (m, b, P, U, j, Q, ee, G, Z) => {
- const W = (b.el = m ? m.el : a('')),
- oe = (b.anchor = m ? m.anchor : a(''));
- let { patchFlag: re, dynamicChildren: se, slotScopeIds: fe } = b;
- (Wn || re & 2048) && ((re = 0), (Z = !1), (se = null)),
- fe && (G = G ? G.concat(fe) : fe),
- m == null
- ? (r(W, P, U), r(oe, P, U), k(b.children, P, oe, j, Q, ee, G, Z))
- : re > 0 && re & 64 && se && m.dynamicChildren
- ? (R(m.dynamicChildren, se, P, j, Q, ee, G), Ts(m, b))
- : ie(m, b, P, oe, j, Q, ee, G, Z);
- },
- $ = (m, b, P, U, j, Q, ee, G, Z) => {
- (b.slotScopeIds = G),
- m == null
- ? b.shapeFlag & 512
- ? j.ctx.activate(b, P, U, ee, Z)
- : V(b, P, U, j, Q, ee, Z)
- : Y(m, b, Z);
- },
- V = (m, b, P, U, j, Q, ee) => {
- const G = (m.component = eh(m, U, j));
- if (
- (G.type.__hmrId && qv(G),
- Lo(m),
- bn(G, 'mount'),
- fo(m) && (G.ctx.renderer = te),
- bn(G, 'init'),
- nh(G),
- _n(G, 'init'),
- G.asyncDep)
- ) {
- if ((j && j.registerDep(G, H), !m.el)) {
- const Z = (G.subTree = T(Ue));
- y(null, Z, b, P);
- }
- return;
- }
- H(G, m, b, P, j, Q, ee), No(), _n(G, 'mount');
- },
- Y = (m, b, P) => {
- const U = (b.component = m.component);
- if (lb(m, b, P))
- if (U.asyncDep && !U.asyncResolved) {
- Lo(b), K(U, b, P), No();
- return;
- } else (U.next = b), Hv(U.update), U.update();
- else (b.el = m.el), (U.vnode = b);
- },
- H = (m, b, P, U, j, Q, ee) => {
- const G = () => {
- if (m.isMounted) {
- let { next: oe, bu: re, u: se, parent: fe, vnode: me } = m,
- z = oe,
- ae;
- Lo(oe || m.vnode),
- ur(m, !1),
- oe ? ((oe.el = me.el), K(m, oe, ee)) : (oe = me),
- re && jn(re),
- (ae = oe.props && oe.props.onVnodeBeforeUpdate) &&
- vt(ae, fe, oe, me),
- ur(m, !0),
- bn(m, 'render');
- const ve = ss(m);
- _n(m, 'render');
- const We = m.subTree;
- (m.subTree = ve),
- bn(m, 'patch'),
- w(We, ve, f(We.el), q(We), m, j, Q),
- _n(m, 'patch'),
- (oe.el = ve.el),
- z === null && _c(m, ve.el),
- se && tt(se, j),
- (ae = oe.props && oe.props.onVnodeUpdated) &&
- tt(() => vt(ae, fe, oe, me), j),
- pp(m),
- No();
- } else {
- let oe;
- const { el: re, props: se } = b,
- { bm: fe, m: me, parent: z } = m,
- ae = wr(b);
- if (
- (ur(m, !1),
- fe && jn(fe),
- !ae && (oe = se && se.onVnodeBeforeMount) && vt(oe, z, b),
- ur(m, !0),
- re && be)
- ) {
- const ve = () => {
- bn(m, 'render'),
- (m.subTree = ss(m)),
- _n(m, 'render'),
- bn(m, 'hydrate'),
- be(re, m.subTree, m, j, null),
- _n(m, 'hydrate');
- };
- ae
- ? b.type.__asyncLoader().then(() => !m.isUnmounted && ve())
- : ve();
- } else {
- bn(m, 'render');
- const ve = (m.subTree = ss(m));
- _n(m, 'render'),
- bn(m, 'patch'),
- w(null, ve, P, U, m, j, Q),
- _n(m, 'patch'),
- (b.el = ve.el);
- }
- if ((me && tt(me, j), !ae && (oe = se && se.onVnodeMounted))) {
- const ve = b;
- tt(() => vt(oe, z, ve), j);
- }
- (b.shapeFlag & 256 ||
- (z && wr(z.vnode) && z.vnode.shapeFlag & 256)) &&
- m.a &&
- tt(m.a, j),
- (m.isMounted = !0),
- ll(m),
- (b = P = U = null);
- }
- },
- Z = (m.effect = new bi(G, () => _i(W), m.scope)),
- W = (m.update = () => Z.run());
- (W.id = m.uid),
- ur(m, !0),
- (Z.onTrack = m.rtc ? oe => jn(m.rtc, oe) : void 0),
- (Z.onTrigger = m.rtg ? oe => jn(m.rtg, oe) : void 0),
- (W.ownerInstance = m),
- W();
- },
- K = (m, b, P) => {
- b.component = m;
- const U = m.vnode.props;
- (m.vnode = b),
- (m.next = null),
- o_(m, b.props, U, P),
- d_(m, b.children, P),
- Rr(),
- Iu(),
- kr();
- },
- ie = (m, b, P, U, j, Q, ee, G, Z = !1) => {
- const W = m && m.children,
- oe = m ? m.shapeFlag : 0,
- re = b.children,
- { patchFlag: se, shapeFlag: fe } = b;
- if (se > 0) {
- if (se & 128) {
- Se(W, re, P, U, j, Q, ee, G, Z);
- return;
- } else if (se & 256) {
- he(W, re, P, U, j, Q, ee, G, Z);
- return;
- }
- }
- fe & 8
- ? (oe & 16 && M(W, j, Q), re !== W && u(P, re))
- : oe & 16
- ? fe & 16
- ? Se(W, re, P, U, j, Q, ee, G, Z)
- : M(W, j, Q, !0)
- : (oe & 8 && u(P, ''), fe & 16 && k(re, P, U, j, Q, ee, G, Z));
- },
- he = (m, b, P, U, j, Q, ee, G, Z) => {
- (m = m || Jr), (b = b || Jr);
- const W = m.length,
- oe = b.length,
- re = Math.min(W, oe);
- let se;
- for (se = 0; se < re; se++) {
- const fe = (b[se] = Z ? Dn(b[se]) : wt(b[se]));
- w(m[se], fe, P, null, j, Q, ee, G, Z);
- }
- W > oe ? M(m, j, Q, !0, !1, re) : k(b, P, U, j, Q, ee, G, Z, re);
- },
- Se = (m, b, P, U, j, Q, ee, G, Z) => {
- let W = 0;
- const oe = b.length;
- let re = m.length - 1,
- se = oe - 1;
- for (; W <= re && W <= se; ) {
- const fe = m[W],
- me = (b[W] = Z ? Dn(b[W]) : wt(b[W]));
- if (Wt(fe, me)) w(fe, me, P, null, j, Q, ee, G, Z);
- else break;
- W++;
- }
- for (; W <= re && W <= se; ) {
- const fe = m[re],
- me = (b[se] = Z ? Dn(b[se]) : wt(b[se]));
- if (Wt(fe, me)) w(fe, me, P, null, j, Q, ee, G, Z);
- else break;
- re--, se--;
- }
- if (W > re) {
- if (W <= se) {
- const fe = se + 1,
- me = fe < oe ? b[fe].el : U;
- for (; W <= se; )
- w(null, (b[W] = Z ? Dn(b[W]) : wt(b[W])), P, me, j, Q, ee, G, Z),
- W++;
- }
- } else if (W > se) for (; W <= re; ) xe(m[W], j, Q, !0), W++;
- else {
- const fe = W,
- me = W,
- z = new Map();
- for (W = me; W <= se; W++) {
- const et = (b[W] = Z ? Dn(b[W]) : wt(b[W]));
- et.key != null &&
- (z.has(et.key) &&
- L(
- 'Duplicate keys found during update:',
- JSON.stringify(et.key),
- 'Make sure keys are unique.'
- ),
- z.set(et.key, W));
- }
- let ae,
- ve = 0;
- const We = se - me + 1;
- let cn = !1,
- vo = 0;
- const dt = new Array(We);
- for (W = 0; W < We; W++) dt[W] = 0;
- for (W = fe; W <= re; W++) {
- const et = m[W];
- if (ve >= We) {
- xe(et, j, Q, !0);
- continue;
- }
- let Pt;
- if (et.key != null) Pt = z.get(et.key);
- else
- for (ae = me; ae <= se; ae++)
- if (dt[ae - me] === 0 && Wt(et, b[ae])) {
- Pt = ae;
- break;
- }
- Pt === void 0
- ? xe(et, j, Q, !0)
- : ((dt[Pt - me] = W + 1),
- Pt >= vo ? (vo = Pt) : (cn = !0),
- w(et, b[Pt], P, null, j, Q, ee, G, Z),
- ve++);
- }
- const un = cn ? m_(dt) : Jr;
- for (ae = un.length - 1, W = We - 1; W >= 0; W--) {
- const et = me + W,
- Pt = b[et],
- bo = et + 1 < oe ? b[et + 1].el : U;
- dt[W] === 0
- ? w(null, Pt, P, bo, j, Q, ee, G, Z)
- : cn && (ae < 0 || W !== un[ae] ? ye(Pt, P, bo, 2) : ae--);
- }
- }
- },
- ye = (m, b, P, U, j = null) => {
- const { el: Q, type: ee, transition: G, children: Z, shapeFlag: W } = m;
- if (W & 6) {
- ye(m.component.subTree, b, P, U);
- return;
- }
- if (W & 128) {
- m.suspense.move(b, P, U);
- return;
- }
- if (W & 64) {
- ee.move(m, b, P, te);
- return;
- }
- if (ee === Be) {
- r(Q, b, P);
- for (let re = 0; re < Z.length; re++) ye(Z[re], b, P, U);
- r(m.anchor, b, P);
- return;
- }
- if (ee === Kn) {
- C(m, b, P);
- return;
- }
- if (U !== 2 && W & 1 && G)
- if (U === 0) G.beforeEnter(Q), r(Q, b, P), tt(() => G.enter(Q), j);
- else {
- const { leave: re, delayLeave: se, afterLeave: fe } = G,
- me = () => r(Q, b, P),
- z = () => {
- re(Q, () => {
- me(), fe && fe();
- });
- };
- se ? se(Q, me, z) : z();
- }
- else r(Q, b, P);
- },
- xe = (m, b, P, U = !1, j = !1) => {
- const {
- type: Q,
- props: ee,
- ref: G,
- children: Z,
- dynamicChildren: W,
- shapeFlag: oe,
- patchFlag: re,
- dirs: se
- } = m;
- if ((G != null && Os(G, null, P, m, !0), oe & 256)) {
- b.ctx.deactivate(m);
- return;
- }
- const fe = oe & 1 && se,
- me = !wr(m);
- let z;
- if ((me && (z = ee && ee.onVnodeBeforeUnmount) && vt(z, b, m), oe & 6))
- ze(m.component, P, U);
- else {
- if (oe & 128) {
- m.suspense.unmount(P, U);
- return;
- }
- fe && Xt(m, null, b, 'beforeUnmount'),
- oe & 64
- ? m.type.remove(m, b, P, j, te, U)
- : W && (Q !== Be || (re > 0 && re & 64))
- ? M(W, b, P, !1, !0)
- : ((Q === Be && re & 384) || (!j && oe & 16)) && M(Z, b, P),
- U && Le(m);
- }
- ((me && (z = ee && ee.onVnodeUnmounted)) || fe) &&
- tt(() => {
- z && vt(z, b, m), fe && Xt(m, null, b, 'unmounted');
- }, P);
- },
- Le = m => {
- const { type: b, el: P, anchor: U, transition: j } = m;
- if (b === Be) {
- m.patchFlag > 0 && m.patchFlag & 2048 && j && !j.persisted
- ? m.children.forEach(ee => {
- ee.type === Ue ? o(ee.el) : Le(ee);
- })
- : qe(P, U);
- return;
- }
- if (b === Kn) {
- x(m);
- return;
- }
- const Q = () => {
- o(P), j && !j.persisted && j.afterLeave && j.afterLeave();
- };
- if (m.shapeFlag & 1 && j && !j.persisted) {
- const { leave: ee, delayLeave: G } = j,
- Z = () => ee(P, Q);
- G ? G(m.el, Q, Z) : Z();
- } else Q();
- },
- qe = (m, b) => {
- let P;
- for (; m !== b; ) (P = d(m)), o(m), (m = P);
- o(b);
- },
- ze = (m, b, P) => {
- m.type.__hmrId && zv(m);
- const { bum: U, scope: j, update: Q, subTree: ee, um: G } = m;
- U && jn(U),
- j.stop(),
- Q && ((Q.active = !1), xe(ee, m, b, P)),
- G && tt(G, b),
- tt(() => {
- m.isUnmounted = !0;
- }, b),
- b &&
- b.pendingBranch &&
- !b.isUnmounted &&
- m.asyncDep &&
- !m.asyncResolved &&
- m.suspenseId === b.pendingId &&
- (b.deps--, b.deps === 0 && b.resolve()),
- Qv(m);
- },
- M = (m, b, P, U = !1, j = !1, Q = 0) => {
- for (let ee = Q; ee < m.length; ee++) xe(m[ee], b, P, U, j);
- },
- q = m =>
- m.shapeFlag & 6
- ? q(m.component.subTree)
- : m.shapeFlag & 128
- ? m.suspense.next()
- : d(m.anchor || m.el),
- J = (m, b, P) => {
- m == null
- ? b._vnode && xe(b._vnode, null, null, !0)
- : w(b._vnode || null, m, b, null, null, null, P),
- Iu(),
- ws(),
- (b._vnode = m);
- },
- te = {
- p: w,
- um: xe,
- m: ye,
- r: Le,
- mt: V,
- mc: k,
- pc: ie,
- pbc: R,
- n: q,
- o: e
- };
- let ue, be;
- return (
- t && ([ue, be] = t(te)), { render: J, hydrate: ue, createApp: t_(J, ue) }
- );
- }
- function ur({ effect: e, update: t }, n) {
- e.allowRecurse = t.allowRecurse = n;
- }
- function Ts(e, t, n = !1) {
- const r = e.children,
- o = t.children;
- if (ne(r) && ne(o))
- for (let i = 0; i < r.length; i++) {
- const s = r[i];
- let a = o[i];
- a.shapeFlag & 1 &&
- !a.dynamicChildren &&
- ((a.patchFlag <= 0 || a.patchFlag === 32) &&
- ((a = o[i] = Dn(o[i])), (a.el = s.el)),
- n || Ts(s, a)),
- a.type === er && (a.el = s.el),
- a.type === Ue && !a.el && (a.el = s.el);
- }
- }
- function m_(e) {
- const t = e.slice(),
- n = [0];
- let r, o, i, s, a;
- const c = e.length;
- for (r = 0; r < c; r++) {
- const l = e[r];
- if (l !== 0) {
- if (((o = n[n.length - 1]), e[o] < l)) {
- (t[r] = o), n.push(r);
- continue;
- }
- for (i = 0, s = n.length - 1; i < s; )
- (a = (i + s) >> 1), e[n[a]] < l ? (i = a + 1) : (s = a);
- l < e[n[i]] && (i > 0 && (t[r] = n[i - 1]), (n[i] = r));
- }
- }
- for (i = n.length, s = n[i - 1]; i-- > 0; ) (n[i] = s), (s = t[s]);
- return n;
- }
- const g_ = e => e.__isTeleport,
- Zr = e => e && (e.disabled || e.disabled === ''),
- Ku = e => typeof SVGElement < 'u' && e instanceof SVGElement,
- ml = (e, t) => {
- const n = e && e.to;
- if (Ie(n))
- if (t) {
- const r = t(n);
- return (
- r ||
- L(
- `Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`
- ),
- r
- );
- } else
- return (
- L(
- 'Current renderer does not support string target for Teleports. (missing querySelector renderer option)'
- ),
- null
- );
- else return !n && !Zr(e) && L(`Invalid Teleport target: ${n}`), n;
- },
- y_ = {
- __isTeleport: !0,
- process(e, t, n, r, o, i, s, a, c, l) {
- const {
- mc: u,
- pc: f,
- pbc: d,
- o: { insert: h, querySelector: g, createText: w, createComment: E }
- } = l,
- y = Zr(t.props);
- let { shapeFlag: v, children: O, dynamicChildren: C } = t;
- if ((Wn && ((c = !1), (C = null)), e == null)) {
- const x = (t.el = E('teleport start')),
- N = (t.anchor = E('teleport end'));
- h(x, n, r), h(N, n, r);
- const A = (t.target = ml(t.props, g)),
- I = (t.targetAnchor = w(''));
- A
- ? (h(I, A), (s = s || Ku(A)))
- : y || L('Invalid Teleport target on mount:', A, `(${typeof A})`);
- const k = (S, R) => {
- v & 16 && u(O, S, R, o, i, s, a, c);
- };
- y ? k(n, N) : A && k(A, I);
- } else {
- t.el = e.el;
- const x = (t.anchor = e.anchor),
- N = (t.target = e.target),
- A = (t.targetAnchor = e.targetAnchor),
- I = Zr(e.props),
- k = I ? n : N,
- S = I ? x : A;
- if (
- ((s = s || Ku(N)),
- C
- ? (d(e.dynamicChildren, C, k, o, i, s, a), Ts(e, t, !0))
- : c || f(e, t, k, S, o, i, s, a, !1),
- y)
- )
- I || Gi(t, n, x, l, 1);
- else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
- const R = (t.target = ml(t.props, g));
- R
- ? Gi(t, R, null, l, 0)
- : L('Invalid Teleport target on update:', N, `(${typeof N})`);
- } else I && Gi(t, N, A, l, 1);
- }
- Gp(t);
- },
- remove(e, t, n, r, { um: o, o: { remove: i } }, s) {
- const {
- shapeFlag: a,
- children: c,
- anchor: l,
- targetAnchor: u,
- target: f,
- props: d
- } = e;
- if ((f && i(u), (s || !Zr(d)) && (i(l), a & 16)))
- for (let h = 0; h < c.length; h++) {
- const g = c[h];
- o(g, t, n, !0, !!g.dynamicChildren);
- }
- },
- move: Gi,
- hydrate: v_
- };
- function Gi(e, t, n, { o: { insert: r }, m: o }, i = 2) {
- i === 0 && r(e.targetAnchor, t, n);
- const { el: s, anchor: a, shapeFlag: c, children: l, props: u } = e,
- f = i === 2;
- if ((f && r(s, t, n), (!f || Zr(u)) && c & 16))
- for (let d = 0; d < l.length; d++) o(l[d], t, n, 2);
- f && r(a, t, n);
- }
- function v_(
- e,
- t,
- n,
- r,
- o,
- i,
- { o: { nextSibling: s, parentNode: a, querySelector: c } },
- l
- ) {
- const u = (t.target = ml(t.props, c));
- if (u) {
- const f = u._lpa || u.firstChild;
- if (t.shapeFlag & 16)
- if (Zr(t.props))
- (t.anchor = l(s(e), t, a(e), n, r, o, i)), (t.targetAnchor = f);
- else {
- t.anchor = s(e);
- let d = f;
- for (; d; )
- if (
- ((d = s(d)), d && d.nodeType === 8 && d.data === 'teleport anchor')
- ) {
- (t.targetAnchor = d),
- (u._lpa = t.targetAnchor && s(t.targetAnchor));
- break;
- }
- l(f, t, u, n, r, o, i);
- }
- Gp(t);
- }
- return t.anchor && s(t.anchor);
- }
- const Kp = y_;
- function Gp(e) {
- const t = e.ctx;
- if (t && t.ut) {
- let n = e.children[0].el;
- for (; n !== e.targetAnchor; )
- n.nodeType === 1 && n.setAttribute('data-v-owner', t.uid),
- (n = n.nextSibling);
- t.ut();
- }
- }
- const Be = Symbol.for('v-fgt'),
- er = Symbol.for('v-txt'),
- Ue = Symbol.for('v-cmt'),
- Kn = Symbol.for('v-stc'),
- Ho = [];
- let xt = null;
- function oa(e = !1) {
- Ho.push((xt = e ? null : []));
- }
- function Yp() {
- Ho.pop(), (xt = Ho[Ho.length - 1] || null);
- }
- let Ar = 1;
- function gl(e) {
- Ar += e;
- }
- function Jp(e) {
- return (
- (e.dynamicChildren = Ar > 0 ? xt || Jr : null),
- Yp(),
- Ar > 0 && xt && xt.push(e),
- e
- );
- }
- function b_(e, t, n, r, o, i) {
- return Jp($c(e, t, n, r, o, i, !0));
- }
- function Pc(e, t, n, r, o) {
- return Jp(T(e, t, n, r, o, !0));
- }
- function an(e) {
- return e ? e.__v_isVNode === !0 : !1;
- }
- function Wt(e, t) {
- return t.shapeFlag & 6 && Wr.has(t.type)
- ? ((e.shapeFlag &= -257), (t.shapeFlag &= -513), !1)
- : e.type === t.type && e.key === t.key;
- }
- let yl;
- function __(e) {
- yl = e;
- }
- const w_ = (...e) => E_(...(yl ? yl(e, je) : e)),
- ia = '__vInternal',
- Qp = ({ key: e }) => (e != null ? e : null),
- as = ({ ref: e, ref_key: t, ref_for: n }) => (
- typeof e == 'number' && (e = '' + e),
- e != null
- ? Ie(e) || ke(e) || ce(e)
- ? { i: je, r: e, k: t, f: !!n }
- : e
- : null
- );
- function $c(
- e,
- t = null,
- n = null,
- r = 0,
- o = null,
- i = e === Be ? 0 : 1,
- s = !1,
- a = !1
- ) {
- const c = {
- __v_isVNode: !0,
- __v_skip: !0,
- type: e,
- props: t,
- key: t && Qp(t),
- ref: t && as(t),
- scopeId: ea,
- slotScopeIds: null,
- children: n,
- component: null,
- suspense: null,
- ssContent: null,
- ssFallback: null,
- dirs: null,
- transition: null,
- el: null,
- anchor: null,
- target: null,
- targetAnchor: null,
- staticCount: 0,
- shapeFlag: i,
- patchFlag: r,
- dynamicProps: o,
- dynamicChildren: null,
- appContext: null,
- ctx: je
- };
- return (
- a
- ? (Rc(c, n), i & 128 && e.normalize(c))
- : n && (c.shapeFlag |= Ie(n) ? 8 : 16),
- c.key !== c.key &&
- L('VNode created with invalid key (NaN). VNode type:', c.type),
- Ar > 0 &&
- !s &&
- xt &&
- (c.patchFlag > 0 || i & 6) &&
- c.patchFlag !== 32 &&
- xt.push(c),
- c
- );
- }
- const T = w_;
- function E_(e, t = null, n = null, r = 0, o = null, i = !1) {
- if (
- ((!e || e === Rp) &&
- (e || L(`Invalid vnode type when creating vnode: ${e}.`), (e = Ue)),
- an(e))
- ) {
- const a = Ut(e, t, !0);
- return (
- n && Rc(a, n),
- Ar > 0 &&
- !i &&
- xt &&
- (a.shapeFlag & 6 ? (xt[xt.indexOf(e)] = a) : xt.push(a)),
- (a.patchFlag |= -2),
- a
- );
- }
- if ((ih(e) && (e = e.__vccOpts), t)) {
- t = Xp(t);
- let { class: a, style: c } = t;
- a && !Ie(a) && (t.class = vi(a)),
- Ce(c) && (ei(c) && !ne(c) && (c = Te({}, c)), (t.style = yi(c)));
- }
- const s = Ie(e) ? 1 : gp(e) ? 128 : g_(e) ? 64 : Ce(e) ? 4 : ce(e) ? 2 : 0;
- return (
- s & 4 &&
- ei(e) &&
- ((e = de(e)),
- L(
- 'Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.',
- `
- Component that was made reactive: `,
- e
- )),
- $c(e, t, n, r, o, s, i, !0)
- );
- }
- function Xp(e) {
- return e ? (ei(e) || ia in e ? Te({}, e) : e) : null;
- }
- function Ut(e, t, n = !1) {
- const { props: r, ref: o, patchFlag: i, children: s } = e,
- a = t ? ir(r || {}, t) : r;
- return {
- __v_isVNode: !0,
- __v_skip: !0,
- type: e.type,
- props: a,
- key: a && Qp(a),
- ref:
- t && t.ref
- ? n && o
- ? ne(o)
- ? o.concat(as(t))
- : [o, as(t)]
- : as(t)
- : o,
- scopeId: e.scopeId,
- slotScopeIds: e.slotScopeIds,
- children: i === -1 && ne(s) ? s.map(Zp) : s,
- target: e.target,
- targetAnchor: e.targetAnchor,
- staticCount: e.staticCount,
- shapeFlag: e.shapeFlag,
- patchFlag: t && e.type !== Be ? (i === -1 ? 16 : i | 16) : i,
- dynamicProps: e.dynamicProps,
- dynamicChildren: e.dynamicChildren,
- appContext: e.appContext,
- dirs: e.dirs,
- transition: e.transition,
- component: e.component,
- suspense: e.suspense,
- ssContent: e.ssContent && Ut(e.ssContent),
- ssFallback: e.ssFallback && Ut(e.ssFallback),
- el: e.el,
- anchor: e.anchor,
- ctx: e.ctx,
- ce: e.ce
- };
- }
- function Zp(e) {
- const t = Ut(e);
- return ne(e.children) && (t.children = e.children.map(Zp)), t;
- }
- function Ic(e = ' ', t = 0) {
- return T(er, null, e, t);
- }
- function S_(e, t) {
- const n = T(Kn, null, e);
- return (n.staticCount = t), n;
- }
- function x_(e = '', t = !1) {
- return t ? (oa(), Pc(Ue, null, e)) : T(Ue, null, e);
- }
- function wt(e) {
- return e == null || typeof e == 'boolean'
- ? T(Ue)
- : ne(e)
- ? T(Be, null, e.slice())
- : typeof e == 'object'
- ? Dn(e)
- : T(er, null, String(e));
- }
- function Dn(e) {
- return (e.el === null && e.patchFlag !== -1) || e.memo ? e : Ut(e);
- }
- function Rc(e, t) {
- let n = 0;
- const { shapeFlag: r } = e;
- if (t == null) t = null;
- else if (ne(t)) n = 16;
- else if (typeof t == 'object')
- if (r & 65) {
- const o = t.default;
- o && (o._c && (o._d = !1), Rc(e, o()), o._c && (o._d = !0));
- return;
- } else {
- n = 32;
- const o = t._;
- !o && !(ia in t)
- ? (t._ctx = je)
- : o === 3 &&
- je &&
- (je.slots._ === 1 ? (t._ = 1) : ((t._ = 2), (e.patchFlag |= 1024)));
- }
- else
- ce(t)
- ? ((t = { default: t, _ctx: je }), (n = 32))
- : ((t = String(t)), r & 64 ? ((n = 16), (t = [Ic(t)])) : (n = 8));
- (e.children = t), (e.shapeFlag |= n);
- }
- function ir(...e) {
- const t = {};
- for (let n = 0; n < e.length; n++) {
- const r = e[n];
- for (const o in r)
- if (o === 'class')
- t.class !== r.class && (t.class = vi([t.class, r.class]));
- else if (o === 'style') t.style = yi([t.style, r.style]);
- else if (co(o)) {
- const i = t[o],
- s = r[o];
- s &&
- i !== s &&
- !(ne(i) && i.includes(s)) &&
- (t[o] = i ? [].concat(i, s) : s);
- } else o !== '' && (t[o] = r[o]);
- }
- return t;
- }
- function vt(e, t, n, r = null) {
- It(e, t, 7, [n, r]);
- }
- const O_ = Bp();
- let C_ = 0;
- function eh(e, t, n) {
- const r = e.type,
- o = (t ? t.appContext : e.appContext) || O_,
- i = {
- uid: C_++,
- vnode: e,
- type: r,
- parent: t,
- appContext: o,
- root: null,
- next: null,
- subTree: null,
- effect: null,
- update: null,
- scope: new rc(!0),
- render: null,
- proxy: null,
- exposed: null,
- exposeProxy: null,
- withProxy: null,
- provides: t ? t.provides : Object.create(o.provides),
- accessCache: null,
- renderCache: [],
- components: null,
- directives: null,
- propsOptions: Np(r, o),
- emitsOptions: mp(r, o),
- emit: null,
- emitted: null,
- propsDefaults: Pe,
- inheritAttrs: r.inheritAttrs,
- ctx: Pe,
- data: Pe,
- props: Pe,
- attrs: Pe,
- slots: Pe,
- refs: Pe,
- setupState: Pe,
- setupContext: null,
- attrsProxy: null,
- slotsProxy: null,
- suspense: n,
- suspenseId: n ? n.pendingId : 0,
- asyncDep: null,
- asyncResolved: !1,
- isMounted: !1,
- isUnmounted: !1,
- isDeactivated: !1,
- bc: null,
- c: null,
- bm: null,
- m: null,
- bu: null,
- u: null,
- um: null,
- bum: null,
- da: null,
- a: null,
- rtg: null,
- rtc: null,
- ec: null,
- sp: null
- };
- return (
- (i.ctx = Ib(i)),
- (i.root = t ? t.root : i),
- (i.emit = tb.bind(null, i)),
- e.ce && e.ce(i),
- i
- );
- }
- let Ne = null;
- const Ze = () => Ne || je;
- let kc,
- jr,
- Gu = '__VUE_INSTANCE_SETTERS__';
- (jr = vs()[Gu]) || (jr = vs()[Gu] = []),
- jr.push(e => (Ne = e)),
- (kc = e => {
- jr.length > 1 ? jr.forEach(t => t(e)) : jr[0](e);
- });
- const tr = e => {
- kc(e), e.scope.on();
- },
- Gn = () => {
- Ne && Ne.scope.off(), kc(null);
- },
- T_ = Tn('slot,component');
- function vl(e, t) {
- const n = t.isNativeTag || Ld;
- (T_(e) || n(e)) &&
- L('Do not use built-in or reserved HTML elements as component id: ' + e);
- }
- function th(e) {
- return e.vnode.shapeFlag & 4;
- }
- let ro = !1;
- function nh(e, t = !1) {
- ro = t;
- const { props: n, children: r } = e.vnode,
- o = th(e);
- n_(e, n, o, t), f_(e, r);
- const i = o ? A_(e, t) : void 0;
- return (ro = !1), i;
- }
- function A_(e, t) {
- var n;
- const r = e.type;
- {
- if ((r.name && vl(r.name, e.appContext.config), r.components)) {
- const i = Object.keys(r.components);
- for (let s = 0; s < i.length; s++) vl(i[s], e.appContext.config);
- }
- if (r.directives) {
- const i = Object.keys(r.directives);
- for (let s = 0; s < i.length; s++) wp(i[s]);
- }
- r.compilerOptions &&
- Mc() &&
- L(
- '"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.'
- );
- }
- (e.accessCache = Object.create(null)),
- (e.proxy = nn(new Proxy(e.ctx, Uo))),
- Rb(e);
- const { setup: o } = r;
- if (o) {
- const i = (e.setupContext = o.length > 1 ? oh(e) : null);
- tr(e), Rr();
- const s = rn(o, e, 0, [Gr(e.props), i]);
- if ((kr(), Gn(), qs(s))) {
- if ((s.then(Gn, Gn), t))
- return s
- .then(a => {
- bl(e, a, t);
- })
- .catch(a => {
- Mr(a, e, 0);
- });
- if (((e.asyncDep = s), !e.suspense)) {
- const a = (n = r.name) != null ? n : 'Anonymous';
- L(
- `Component <${a}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`
- );
- }
- } else bl(e, s, t);
- } else rh(e, t);
- }
- function bl(e, t, n) {
- ce(t)
- ? e.type.__ssrInlineRender
- ? (e.ssrRender = t)
- : (e.render = t)
- : Ce(t)
- ? (an(t) &&
- L(
- 'setup() should not return VNodes directly - return a render function instead.'
- ),
- (e.devtoolsRawSetupState = t),
- (e.setupState = fc(t)),
- kb(e))
- : t !== void 0 &&
- L(
- `setup() should return an object. Received: ${
- t === null ? 'null' : typeof t
- }`
- ),
- rh(e, n);
- }
- let Vo, _l;
- function P_(e) {
- (Vo = e),
- (_l = t => {
- t.render._rc && (t.withProxy = new Proxy(t.ctx, $b));
- });
- }
- const Mc = () => !Vo;
- function rh(e, t, n) {
- const r = e.type;
- if (!e.render) {
- if (!t && Vo && !r.render) {
- const o = r.template || Tc(e).template;
- if (o) {
- bn(e, 'compile');
- const { isCustomElement: i, compilerOptions: s } = e.appContext.config,
- { delimiters: a, compilerOptions: c } = r,
- l = Te(Te({ isCustomElement: i, delimiters: a }, s), c);
- (r.render = Vo(o, l)), _n(e, 'compile');
- }
- }
- (e.render = r.render || Et), _l && _l(e);
- }
- tr(e),
- Rr(),
- Yb(e),
- kr(),
- Gn(),
- !r.render &&
- e.render === Et &&
- !t &&
- (!Vo && r.template
- ? L(
- 'Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'
- )
- : L('Component is missing template or render function.'));
- }
- function $_(e) {
- return (
- e.attrsProxy ||
- (e.attrsProxy = new Proxy(e.attrs, {
- get(t, n) {
- return Es(), lt(e, 'get', '$attrs'), t[n];
- },
- set() {
- return L('setupContext.attrs is readonly.'), !1;
- },
- deleteProperty() {
- return L('setupContext.attrs is readonly.'), !1;
- }
- }))
- );
- }
- function I_(e) {
- return (
- e.slotsProxy ||
- (e.slotsProxy = new Proxy(e.slots, {
- get(t, n) {
- return lt(e, 'get', '$slots'), t[n];
- }
- }))
- );
- }
- function oh(e) {
- return Object.freeze({
- get attrs() {
- return $_(e);
- },
- get slots() {
- return I_(e);
- },
- get emit() {
- return (n, ...r) => e.emit(n, ...r);
- },
- expose: n => {
- if (
- (e.exposed && L('expose() should be called only once per setup().'),
- n != null)
- ) {
- let r = typeof n;
- r === 'object' && (ne(n) ? (r = 'array') : ke(n) && (r = 'ref')),
- r !== 'object' &&
- L(`expose() should be passed a plain object, received ${r}.`);
- }
- e.exposed = n || {};
- }
- });
- }
- function sa(e) {
- if (e.exposed)
- return (
- e.exposeProxy ||
- (e.exposeProxy = new Proxy(fc(nn(e.exposed)), {
- get(t, n) {
- if (n in t) return t[n];
- if (n in Er) return Er[n](e);
- },
- has(t, n) {
- return n in t || n in Er;
- }
- }))
- );
- }
- const R_ = /(?:^|[-_])(\w)/g,
- k_ = e => e.replace(R_, t => t.toUpperCase()).replace(/[-_]/g, '');
- function li(e, t = !0) {
- return ce(e) ? e.displayName || e.name : e.name || (t && e.__name);
- }
- function aa(e, t, n = !1) {
- let r = li(t);
- if (!r && t.__file) {
- const o = t.__file.match(/([^/\\]+)\.\w+$/);
- o && (r = o[1]);
- }
- if (!r && e && e.parent) {
- const o = i => {
- for (const s in i) if (i[s] === t) return s;
- };
- r =
- o(e.components || e.parent.type.components) || o(e.appContext.components);
- }
- return r ? k_(r) : n ? 'App' : 'Anonymous';
- }
- function ih(e) {
- return ce(e) && '__vccOpts' in e;
- }
- const Me = (e, t) => Mv(e, t, ro);
- function mo(e, t, n) {
- const r = arguments.length;
- return r === 2
- ? Ce(t) && !ne(t)
- ? an(t)
- ? T(e, null, [t])
- : T(e, t)
- : T(e, null, t)
- : (r > 3
- ? (n = Array.prototype.slice.call(arguments, 2))
- : r === 3 && an(n) && (n = [n]),
- T(e, t, n));
- }
- const sh = Symbol.for('v-scx'),
- ah = () => {
- {
- const e = rt(sh);
- return (
- e ||
- L(
- 'Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.'
- ),
- e
- );
- }
- };
- function Ma(e) {
- return !!(e && e.__v_isShallow);
- }
- function lh() {
- if (typeof window > 'u') return;
- const e = { style: 'color:#3ba776' },
- t = { style: 'color:#0b1bc9' },
- n = { style: 'color:#b62e24' },
- r = { style: 'color:#9d288c' },
- o = {
- header(f) {
- return Ce(f)
- ? f.__isVue
- ? ['div', e, 'VueInstance']
- : ke(f)
- ? ['div', {}, ['span', e, u(f)], '<', a(f.value), '>']
- : Gt(f)
- ? [
- 'div',
- {},
- ['span', e, Ma(f) ? 'ShallowReactive' : 'Reactive'],
- '<',
- a(f),
- `>${Cn(f) ? ' (readonly)' : ''}`
- ]
- : Cn(f)
- ? [
- 'div',
- {},
- ['span', e, Ma(f) ? 'ShallowReadonly' : 'Readonly'],
- '<',
- a(f),
- '>'
- ]
- : null
- : null;
- },
- hasBody(f) {
- return f && f.__isVue;
- },
- body(f) {
- if (f && f.__isVue) return ['div', {}, ...i(f.$)];
- }
- };
- function i(f) {
- const d = [];
- f.type.props && f.props && d.push(s('props', de(f.props))),
- f.setupState !== Pe && d.push(s('setup', f.setupState)),
- f.data !== Pe && d.push(s('data', de(f.data)));
- const h = c(f, 'computed');
- h && d.push(s('computed', h));
- const g = c(f, 'inject');
- return (
- g && d.push(s('injected', g)),
- d.push([
- 'div',
- {},
- ['span', { style: r.style + ';opacity:0.66' }, '$ (internal): '],
- ['object', { object: f }]
- ]),
- d
- );
- }
- function s(f, d) {
- return (
- (d = Te({}, d)),
- Object.keys(d).length
- ? [
- 'div',
- { style: 'line-height:1.25em;margin-bottom:0.6em' },
- ['div', { style: 'color:#476582' }, f],
- [
- 'div',
- { style: 'padding-left:1.25em' },
- ...Object.keys(d).map(h => [
- 'div',
- {},
- ['span', r, h + ': '],
- a(d[h], !1)
- ])
- ]
- ]
- : ['span', {}]
- );
- }
- function a(f, d = !0) {
- return typeof f == 'number'
- ? ['span', t, f]
- : typeof f == 'string'
- ? ['span', n, JSON.stringify(f)]
- : typeof f == 'boolean'
- ? ['span', r, f]
- : Ce(f)
- ? ['object', { object: d ? de(f) : f }]
- : ['span', n, String(f)];
- }
- function c(f, d) {
- const h = f.type;
- if (ce(h)) return;
- const g = {};
- for (const w in f.ctx) l(h, w, d) && (g[w] = f.ctx[w]);
- return g;
- }
- function l(f, d, h) {
- const g = f[h];
- if (
- (ne(g) && g.includes(d)) ||
- (Ce(g) && d in g) ||
- (f.extends && l(f.extends, d, h)) ||
- (f.mixins && f.mixins.some(w => l(w, d, h)))
- )
- return !0;
- }
- function u(f) {
- return Ma(f) ? 'ShallowRef' : f.effect ? 'ComputedRef' : 'Ref';
- }
- window.devtoolsFormatters
- ? window.devtoolsFormatters.push(o)
- : (window.devtoolsFormatters = [o]);
- }
- function M_(e, t, n, r) {
- const o = n[r];
- if (o && ch(o, e)) return o;
- const i = t();
- return (i.memo = e.slice()), (n[r] = i);
- }
- function ch(e, t) {
- const n = e.memo;
- if (n.length != t.length) return !1;
- for (let r = 0; r < n.length; r++) if (to(n[r], t[r])) return !1;
- return Ar > 0 && xt && xt.push(e), !0;
- }
- const wl = '3.3.4',
- F_ = {
- createComponentInstance: eh,
- setupComponent: nh,
- renderComponentRoot: ss,
- setCurrentRenderingInstance: oi,
- isVNode: an,
- normalizeVNode: wt
- },
- B_ = F_,
- D_ = null,
- L_ = null,
- N_ = 'http://www.w3.org/2000/svg',
- hr = typeof document < 'u' ? document : null,
- Yu = hr && hr.createElement('template'),
- j_ = {
- insert: (e, t, n) => {
- t.insertBefore(e, n || null);
- },
- remove: e => {
- const t = e.parentNode;
- t && t.removeChild(e);
- },
- createElement: (e, t, n, r) => {
- const o = t
- ? hr.createElementNS(N_, e)
- : hr.createElement(e, n ? { is: n } : void 0);
- return (
- e === 'select' &&
- r &&
- r.multiple != null &&
- o.setAttribute('multiple', r.multiple),
- o
- );
- },
- createText: e => hr.createTextNode(e),
- createComment: e => hr.createComment(e),
- setText: (e, t) => {
- e.nodeValue = t;
- },
- setElementText: (e, t) => {
- e.textContent = t;
- },
- parentNode: e => e.parentNode,
- nextSibling: e => e.nextSibling,
- querySelector: e => hr.querySelector(e),
- setScopeId(e, t) {
- e.setAttribute(t, '');
- },
- insertStaticContent(e, t, n, r, o, i) {
- const s = n ? n.previousSibling : t.lastChild;
- if (o && (o === i || o.nextSibling))
- for (
- ;
- t.insertBefore(o.cloneNode(!0), n),
- !(o === i || !(o = o.nextSibling));
- );
- else {
- Yu.innerHTML = r ? `<svg>${e}</svg>` : e;
- const a = Yu.content;
- if (r) {
- const c = a.firstChild;
- for (; c.firstChild; ) a.appendChild(c.firstChild);
- a.removeChild(c);
- }
- t.insertBefore(a, n);
- }
- return [
- s ? s.nextSibling : t.firstChild,
- n ? n.previousSibling : t.lastChild
- ];
- }
- };
- function U_(e, t, n) {
- const r = e._vtc;
- r && (t = (t ? [t, ...r] : [...r]).join(' ')),
- t == null
- ? e.removeAttribute('class')
- : n
- ? e.setAttribute('class', t)
- : (e.className = t);
- }
- function H_(e, t, n) {
- const r = e.style,
- o = Ie(n);
- if (n && !o) {
- if (t && !Ie(t)) for (const i in t) n[i] == null && El(r, i, '');
- for (const i in n) El(r, i, n[i]);
- } else {
- const i = r.display;
- o ? t !== n && (r.cssText = n) : t && e.removeAttribute('style'),
- '_vod' in e && (r.display = i);
- }
- }
- const V_ = /[^\\];\s*$/,
- Ju = /\s*!important$/;
- function El(e, t, n) {
- if (ne(n)) n.forEach(r => El(e, t, r));
- else if (
- (n == null && (n = ''),
- V_.test(n) &&
- L(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),
- t.startsWith('--'))
- )
- e.setProperty(t, n);
- else {
- const r = q_(e, t);
- Ju.test(n)
- ? e.setProperty(gt(r), n.replace(Ju, ''), 'important')
- : (e[r] = n);
- }
- }
- const Qu = ['Webkit', 'Moz', 'ms'],
- Fa = {};
- function q_(e, t) {
- const n = Fa[t];
- if (n) return n;
- let r = Ot(t);
- if (r !== 'filter' && r in e) return (Fa[t] = r);
- r = Qn(r);
- for (let o = 0; o < Qu.length; o++) {
- const i = Qu[o] + r;
- if (i in e) return (Fa[t] = i);
- }
- return t;
- }
- const Xu = 'http://www.w3.org/1999/xlink';
- function z_(e, t, n, r, o) {
- if (r && t.startsWith('xlink:'))
- n == null
- ? e.removeAttributeNS(Xu, t.slice(6, t.length))
- : e.setAttributeNS(Xu, t, n);
- else {
- const i = Wy(t);
- n == null || (i && !Ud(n))
- ? e.removeAttribute(t)
- : e.setAttribute(t, i ? '' : n);
- }
- }
- function W_(e, t, n, r, o, i, s) {
- if (t === 'innerHTML' || t === 'textContent') {
- r && s(r, o, i), (e[t] = n == null ? '' : n);
- return;
- }
- const a = e.tagName;
- if (t === 'value' && a !== 'PROGRESS' && !a.includes('-')) {
- e._value = n;
- const l = a === 'OPTION' ? e.getAttribute('value') : e.value,
- u = n == null ? '' : n;
- l !== u && (e.value = u), n == null && e.removeAttribute(t);
- return;
- }
- let c = !1;
- if (n === '' || n == null) {
- const l = typeof e[t];
- l === 'boolean'
- ? (n = Ud(n))
- : n == null && l === 'string'
- ? ((n = ''), (c = !0))
- : l === 'number' && ((n = 0), (c = !0));
- }
- try {
- e[t] = n;
- } catch (l) {
- c ||
- L(
- `Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${n} is invalid.`,
- l
- );
- }
- c && e.removeAttribute(t);
- }
- function On(e, t, n, r) {
- e.addEventListener(t, n, r);
- }
- function K_(e, t, n, r) {
- e.removeEventListener(t, n, r);
- }
- function G_(e, t, n, r, o = null) {
- const i = e._vei || (e._vei = {}),
- s = i[t];
- if (r && s) s.value = r;
- else {
- const [a, c] = Y_(t);
- if (r) {
- const l = (i[t] = X_(r, o));
- On(e, a, l, c);
- } else s && (K_(e, a, s, c), (i[t] = void 0));
- }
- }
- const Zu = /(?:Once|Passive|Capture)$/;
- function Y_(e) {
- let t;
- if (Zu.test(e)) {
- t = {};
- let r;
- for (; (r = e.match(Zu)); )
- (e = e.slice(0, e.length - r[0].length)), (t[r[0].toLowerCase()] = !0);
- }
- return [e[2] === ':' ? e.slice(3) : gt(e.slice(2)), t];
- }
- let Ba = 0;
- const J_ = Promise.resolve(),
- Q_ = () => Ba || (J_.then(() => (Ba = 0)), (Ba = Date.now()));
- function X_(e, t) {
- const n = r => {
- if (!r._vts) r._vts = Date.now();
- else if (r._vts <= n.attached) return;
- It(Z_(r, n.value), t, 5, [r]);
- };
- return (n.value = e), (n.attached = Q_()), n;
- }
- function Z_(e, t) {
- if (ne(t)) {
- const n = e.stopImmediatePropagation;
- return (
- (e.stopImmediatePropagation = () => {
- n.call(e), (e._stopped = !0);
- }),
- t.map(r => o => !o._stopped && r && r(o))
- );
- } else return t;
- }
- const ef = /^on[a-z]/,
- ew = (e, t, n, r, o = !1, i, s, a, c) => {
- t === 'class'
- ? U_(e, r, o)
- : t === 'style'
- ? H_(e, n, r)
- : co(t)
- ? hs(t) || G_(e, t, n, r, s)
- : (
- t[0] === '.'
- ? ((t = t.slice(1)), !0)
- : t[0] === '^'
- ? ((t = t.slice(1)), !1)
- : tw(e, t, r, o)
- )
- ? W_(e, t, r, i, s, a, c)
- : (t === 'true-value'
- ? (e._trueValue = r)
- : t === 'false-value' && (e._falseValue = r),
- z_(e, t, r, o));
- };
- function tw(e, t, n, r) {
- return r
- ? !!(
- t === 'innerHTML' ||
- t === 'textContent' ||
- (t in e && ef.test(t) && ce(n))
- )
- : t === 'spellcheck' ||
- t === 'draggable' ||
- t === 'translate' ||
- t === 'form' ||
- (t === 'list' && e.tagName === 'INPUT') ||
- (t === 'type' && e.tagName === 'TEXTAREA') ||
- (ef.test(t) && Ie(n))
- ? !1
- : t in e;
- }
- function uh(e, t) {
- const n = He(e);
- class r extends la {
- constructor(i) {
- super(n, i, t);
- }
- }
- return (r.def = n), r;
- }
- const nw = e => uh(e, Ch),
- rw = typeof HTMLElement < 'u' ? HTMLElement : class {};
- class la extends rw {
- constructor(t, n = {}, r) {
- super(),
- (this._def = t),
- (this._props = n),
- (this._instance = null),
- (this._connected = !1),
- (this._resolved = !1),
- (this._numberProps = null),
- this.shadowRoot && r
- ? r(this._createVNode(), this.shadowRoot)
- : (this.shadowRoot &&
- L(
- 'Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`.'
- ),
- this.attachShadow({ mode: 'open' }),
- this._def.__asyncLoader || this._resolveProps(this._def));
- }
- connectedCallback() {
- (this._connected = !0),
- this._instance || (this._resolved ? this._update() : this._resolveDef());
- }
- disconnectedCallback() {
- (this._connected = !1),
- St(() => {
- this._connected || (Ol(null, this.shadowRoot), (this._instance = null));
- });
- }
- _resolveDef() {
- this._resolved = !0;
- for (let r = 0; r < this.attributes.length; r++)
- this._setAttr(this.attributes[r].name);
- new MutationObserver(r => {
- for (const o of r) this._setAttr(o.attributeName);
- }).observe(this, { attributes: !0 });
- const t = (r, o = !1) => {
- const { props: i, styles: s } = r;
- let a;
- if (i && !ne(i))
- for (const c in i) {
- const l = i[c];
- (l === Number || (l && l.type === Number)) &&
- (c in this._props && (this._props[c] = ys(this._props[c])),
- ((a || (a = Object.create(null)))[Ot(c)] = !0));
- }
- (this._numberProps = a),
- o && this._resolveProps(r),
- this._applyStyles(s),
- this._update();
- },
- n = this._def.__asyncLoader;
- n ? n().then(r => t(r, !0)) : t(this._def);
- }
- _resolveProps(t) {
- const { props: n } = t,
- r = ne(n) ? n : Object.keys(n || {});
- for (const o of Object.keys(this))
- o[0] !== '_' && r.includes(o) && this._setProp(o, this[o], !0, !1);
- for (const o of r.map(Ot))
- Object.defineProperty(this, o, {
- get() {
- return this._getProp(o);
- },
- set(i) {
- this._setProp(o, i);
- }
- });
- }
- _setAttr(t) {
- let n = this.getAttribute(t);
- const r = Ot(t);
- this._numberProps && this._numberProps[r] && (n = ys(n)),
- this._setProp(r, n, !1);
- }
- _getProp(t) {
- return this._props[t];
- }
- _setProp(t, n, r = !0, o = !0) {
- n !== this._props[t] &&
- ((this._props[t] = n),
- o && this._instance && this._update(),
- r &&
- (n === !0
- ? this.setAttribute(gt(t), '')
- : typeof n == 'string' || typeof n == 'number'
- ? this.setAttribute(gt(t), n + '')
- : n || this.removeAttribute(gt(t))));
- }
- _update() {
- Ol(this._createVNode(), this.shadowRoot);
- }
- _createVNode() {
- const t = T(this._def, Te({}, this._props));
- return (
- this._instance ||
- (t.ce = n => {
- (this._instance = n),
- (n.isCE = !0),
- (n.ceReload = i => {
- this._styles &&
- (this._styles.forEach(s => this.shadowRoot.removeChild(s)),
- (this._styles.length = 0)),
- this._applyStyles(i),
- (this._instance = null),
- this._update();
- });
- const r = (i, s) => {
- this.dispatchEvent(new CustomEvent(i, { detail: s }));
- };
- n.emit = (i, ...s) => {
- r(i, s), gt(i) !== i && r(gt(i), s);
- };
- let o = this;
- for (; (o = o && (o.parentNode || o.host)); )
- if (o instanceof la) {
- (n.parent = o._instance), (n.provides = o._instance.provides);
- break;
- }
- }),
- t
- );
- }
- _applyStyles(t) {
- t &&
- t.forEach(n => {
- const r = document.createElement('style');
- (r.textContent = n),
- this.shadowRoot.appendChild(r),
- (this._styles || (this._styles = [])).push(r);
- });
- }
- }
- function ow(e = '$style') {
- {
- const t = Ze();
- if (!t) return L('useCssModule must be called inside setup()'), Pe;
- const n = t.type.__cssModules;
- if (!n)
- return L('Current instance does not have CSS modules injected.'), Pe;
- const r = n[e];
- return (
- r || (L(`Current instance does not have CSS module named "${e}".`), Pe)
- );
- }
- }
- function iw(e) {
- const t = Ze();
- if (!t) {
- L('useCssVars is called without current active component instance.');
- return;
- }
- const n = (t.ut = (o = e(t.proxy)) => {
- Array.from(
- document.querySelectorAll(`[data-v-owner="${t.uid}"]`)
- ).forEach(i => xl(i, o));
- }),
- r = () => {
- const o = e(t.proxy);
- Sl(t.subTree, o), n(o);
- };
- bp(r),
- kt(() => {
- const o = new MutationObserver(r);
- o.observe(t.subTree.el.parentNode, { childList: !0 }),
- Fr(() => o.disconnect());
- });
- }
- function Sl(e, t) {
- if (e.shapeFlag & 128) {
- const n = e.suspense;
- (e = n.activeBranch),
- n.pendingBranch &&
- !n.isHydrating &&
- n.effects.push(() => {
- Sl(n.activeBranch, t);
- });
- }
- for (; e.component; ) e = e.component.subTree;
- if (e.shapeFlag & 1 && e.el) xl(e.el, t);
- else if (e.type === Be) e.children.forEach(n => Sl(n, t));
- else if (e.type === Kn) {
- let { el: n, anchor: r } = e;
- for (; n && (xl(n, t), n !== r); ) n = n.nextSibling;
- }
- }
- function xl(e, t) {
- if (e.nodeType === 1) {
- const n = e.style;
- for (const r in t) n.setProperty(`--${r}`, t[r]);
- }
- }
- const kn = 'transition',
- xo = 'animation',
- xi = (e, { slots: t }) => mo(Ep, dh(e), t);
- xi.displayName = 'Transition';
- const fh = {
- name: String,
- type: String,
- css: { type: Boolean, default: !0 },
- duration: [String, Number, Object],
- enterFromClass: String,
- enterActiveClass: String,
- enterToClass: String,
- appearFromClass: String,
- appearActiveClass: String,
- appearToClass: String,
- leaveFromClass: String,
- leaveActiveClass: String,
- leaveToClass: String
- },
- sw = (xi.props = Te({}, xc, fh)),
- fr = (e, t = []) => {
- ne(e) ? e.forEach(n => n(...t)) : e && e(...t);
- },
- tf = e => (e ? (ne(e) ? e.some(t => t.length > 1) : e.length > 1) : !1);
- function dh(e) {
- const t = {};
- for (const B in e) B in fh || (t[B] = e[B]);
- if (e.css === !1) return t;
- const {
- name: n = 'v',
- type: r,
- duration: o,
- enterFromClass: i = `${n}-enter-from`,
- enterActiveClass: s = `${n}-enter-active`,
- enterToClass: a = `${n}-enter-to`,
- appearFromClass: c = i,
- appearActiveClass: l = s,
- appearToClass: u = a,
- leaveFromClass: f = `${n}-leave-from`,
- leaveActiveClass: d = `${n}-leave-active`,
- leaveToClass: h = `${n}-leave-to`
- } = e,
- g = aw(o),
- w = g && g[0],
- E = g && g[1],
- {
- onBeforeEnter: y,
- onEnter: v,
- onEnterCancelled: O,
- onLeave: C,
- onLeaveCancelled: x,
- onBeforeAppear: N = y,
- onAppear: A = v,
- onAppearCancelled: I = O
- } = t,
- k = (B, F, $) => {
- Fn(B, F ? u : a), Fn(B, F ? l : s), $ && $();
- },
- S = (B, F) => {
- (B._isLeaving = !1), Fn(B, f), Fn(B, h), Fn(B, d), F && F();
- },
- R = B => (F, $) => {
- const V = B ? A : v,
- Y = () => k(F, B, $);
- fr(V, [F, Y]),
- nf(() => {
- Fn(F, B ? c : i), wn(F, B ? u : a), tf(V) || rf(F, r, w, Y);
- });
- };
- return Te(t, {
- onBeforeEnter(B) {
- fr(y, [B]), wn(B, i), wn(B, s);
- },
- onBeforeAppear(B) {
- fr(N, [B]), wn(B, c), wn(B, l);
- },
- onEnter: R(!1),
- onAppear: R(!0),
- onLeave(B, F) {
- B._isLeaving = !0;
- const $ = () => S(B, F);
- wn(B, f),
- hh(),
- wn(B, d),
- nf(() => {
- B._isLeaving && (Fn(B, f), wn(B, h), tf(C) || rf(B, r, E, $));
- }),
- fr(C, [B, $]);
- },
- onEnterCancelled(B) {
- k(B, !1), fr(O, [B]);
- },
- onAppearCancelled(B) {
- k(B, !0), fr(I, [B]);
- },
- onLeaveCancelled(B) {
- S(B), fr(x, [B]);
- }
- });
- }
- function aw(e) {
- if (e == null) return null;
- if (Ce(e)) return [Da(e.enter), Da(e.leave)];
- {
- const t = Da(e);
- return [t, t];
- }
- }
- function Da(e) {
- const t = ys(e);
- return dc(t, '<transition> explicit duration'), t;
- }
- function wn(e, t) {
- t.split(/\s+/).forEach(n => n && e.classList.add(n)),
- (e._vtc || (e._vtc = new Set())).add(t);
- }
- function Fn(e, t) {
- t.split(/\s+/).forEach(r => r && e.classList.remove(r));
- const { _vtc: n } = e;
- n && (n.delete(t), n.size || (e._vtc = void 0));
- }
- function nf(e) {
- requestAnimationFrame(() => {
- requestAnimationFrame(e);
- });
- }
- let lw = 0;
- function rf(e, t, n, r) {
- const o = (e._endId = ++lw),
- i = () => {
- o === e._endId && r();
- };
- if (n) return setTimeout(i, n);
- const { type: s, timeout: a, propCount: c } = ph(e, t);
- if (!s) return r();
- const l = s + 'end';
- let u = 0;
- const f = () => {
- e.removeEventListener(l, d), i();
- },
- d = h => {
- h.target === e && ++u >= c && f();
- };
- setTimeout(() => {
- u < c && f();
- }, a + 1),
- e.addEventListener(l, d);
- }
- function ph(e, t) {
- const n = window.getComputedStyle(e),
- r = g => (n[g] || '').split(', '),
- o = r(`${kn}Delay`),
- i = r(`${kn}Duration`),
- s = of(o, i),
- a = r(`${xo}Delay`),
- c = r(`${xo}Duration`),
- l = of(a, c);
- let u = null,
- f = 0,
- d = 0;
- t === kn
- ? s > 0 && ((u = kn), (f = s), (d = i.length))
- : t === xo
- ? l > 0 && ((u = xo), (f = l), (d = c.length))
- : ((f = Math.max(s, l)),
- (u = f > 0 ? (s > l ? kn : xo) : null),
- (d = u ? (u === kn ? i.length : c.length) : 0));
- const h =
- u === kn && /\b(transform|all)(,|$)/.test(r(`${kn}Property`).toString());
- return { type: u, timeout: f, propCount: d, hasTransform: h };
- }
- function of(e, t) {
- for (; e.length < t.length; ) e = e.concat(e);
- return Math.max(...t.map((n, r) => sf(n) + sf(e[r])));
- }
- function sf(e) {
- return Number(e.slice(0, -1).replace(',', '.')) * 1e3;
- }
- function hh() {
- return document.body.offsetHeight;
- }
- const mh = new WeakMap(),
- gh = new WeakMap(),
- yh = {
- name: 'TransitionGroup',
- props: Te({}, sw, { tag: String, moveClass: String }),
- setup(e, { slots: t }) {
- const n = Ze(),
- r = Sc();
- let o, i;
- return (
- ra(() => {
- if (!o.length) return;
- const s = e.moveClass || `${e.name || 'v'}-move`;
- if (!hw(o[0].el, n.vnode.el, s)) return;
- o.forEach(fw), o.forEach(dw);
- const a = o.filter(pw);
- hh(),
- a.forEach(c => {
- const l = c.el,
- u = l.style;
- wn(l, s),
- (u.transform = u.webkitTransform = u.transitionDuration = '');
- const f = (l._moveCb = d => {
- (d && d.target !== l) ||
- ((!d || /transform$/.test(d.propertyName)) &&
- (l.removeEventListener('transitionend', f),
- (l._moveCb = null),
- Fn(l, s)));
- });
- l.addEventListener('transitionend', f);
- });
- }),
- () => {
- const s = de(e),
- a = dh(s);
- let c = s.tag || Be;
- (o = i), (i = t.default ? ta(t.default()) : []);
- for (let l = 0; l < i.length; l++) {
- const u = i[l];
- u.key != null
- ? Tr(u, no(u, a, r, n))
- : L('<TransitionGroup> children must be keyed.');
- }
- if (o)
- for (let l = 0; l < o.length; l++) {
- const u = o[l];
- Tr(u, no(u, a, r, n)), mh.set(u, u.el.getBoundingClientRect());
- }
- return T(c, null, i);
- }
- );
- }
- },
- cw = e => delete e.mode;
- yh.props;
- const uw = yh;
- function fw(e) {
- const t = e.el;
- t._moveCb && t._moveCb(), t._enterCb && t._enterCb();
- }
- function dw(e) {
- gh.set(e, e.el.getBoundingClientRect());
- }
- function pw(e) {
- const t = mh.get(e),
- n = gh.get(e),
- r = t.left - n.left,
- o = t.top - n.top;
- if (r || o) {
- const i = e.el.style;
- return (
- (i.transform = i.webkitTransform = `translate(${r}px,${o}px)`),
- (i.transitionDuration = '0s'),
- e
- );
- }
- }
- function hw(e, t, n) {
- const r = e.cloneNode();
- e._vtc &&
- e._vtc.forEach(s => {
- s.split(/\s+/).forEach(a => a && r.classList.remove(a));
- }),
- n.split(/\s+/).forEach(s => s && r.classList.add(s)),
- (r.style.display = 'none');
- const o = t.nodeType === 1 ? t : t.parentNode;
- o.appendChild(r);
- const { hasTransform: i } = ph(r);
- return o.removeChild(r), i;
- }
- const nr = e => {
- const t = e.props['onUpdate:modelValue'] || !1;
- return ne(t) ? n => jn(t, n) : t;
- };
- function mw(e) {
- e.target.composing = !0;
- }
- function af(e) {
- const t = e.target;
- t.composing && ((t.composing = !1), t.dispatchEvent(new Event('input')));
- }
- const As = {
- created(e, { modifiers: { lazy: t, trim: n, number: r } }, o) {
- e._assign = nr(o);
- const i = r || (o.props && o.props.type === 'number');
- On(e, t ? 'change' : 'input', s => {
- if (s.target.composing) return;
- let a = e.value;
- n && (a = a.trim()), i && (a = gs(a)), e._assign(a);
- }),
- n &&
- On(e, 'change', () => {
- e.value = e.value.trim();
- }),
- t ||
- (On(e, 'compositionstart', mw),
- On(e, 'compositionend', af),
- On(e, 'change', af));
- },
- mounted(e, { value: t }) {
- e.value = t == null ? '' : t;
- },
- beforeUpdate(
- e,
- { value: t, modifiers: { lazy: n, trim: r, number: o } },
- i
- ) {
- if (
- ((e._assign = nr(i)),
- e.composing ||
- (document.activeElement === e &&
- e.type !== 'range' &&
- (n ||
- (r && e.value.trim() === t) ||
- ((o || e.type === 'number') && gs(e.value) === t))))
- )
- return;
- const s = t == null ? '' : t;
- e.value !== s && (e.value = s);
- }
- },
- Fc = {
- deep: !0,
- created(e, t, n) {
- (e._assign = nr(n)),
- On(e, 'change', () => {
- const r = e._modelValue,
- o = oo(e),
- i = e.checked,
- s = e._assign;
- if (ne(r)) {
- const a = Ws(r, o),
- c = a !== -1;
- if (i && !c) s(r.concat(o));
- else if (!i && c) {
- const l = [...r];
- l.splice(a, 1), s(l);
- }
- } else if (Ir(r)) {
- const a = new Set(r);
- i ? a.add(o) : a.delete(o), s(a);
- } else s(bh(e, i));
- });
- },
- mounted: lf,
- beforeUpdate(e, t, n) {
- (e._assign = nr(n)), lf(e, t, n);
- }
- };
- function lf(e, { value: t, oldValue: n }, r) {
- (e._modelValue = t),
- ne(t)
- ? (e.checked = Ws(t, r.props.value) > -1)
- : Ir(t)
- ? (e.checked = t.has(r.props.value))
- : t !== n && (e.checked = Xn(t, bh(e, !0)));
- }
- const Bc = {
- created(e, { value: t }, n) {
- (e.checked = Xn(t, n.props.value)),
- (e._assign = nr(n)),
- On(e, 'change', () => {
- e._assign(oo(e));
- });
- },
- beforeUpdate(e, { value: t, oldValue: n }, r) {
- (e._assign = nr(r)), t !== n && (e.checked = Xn(t, r.props.value));
- }
- },
- vh = {
- deep: !0,
- created(e, { value: t, modifiers: { number: n } }, r) {
- const o = Ir(t);
- On(e, 'change', () => {
- const i = Array.prototype.filter
- .call(e.options, s => s.selected)
- .map(s => (n ? gs(oo(s)) : oo(s)));
- e._assign(e.multiple ? (o ? new Set(i) : i) : i[0]);
- }),
- (e._assign = nr(r));
- },
- mounted(e, { value: t }) {
- cf(e, t);
- },
- beforeUpdate(e, t, n) {
- e._assign = nr(n);
- },
- updated(e, { value: t }) {
- cf(e, t);
- }
- };
- function cf(e, t) {
- const n = e.multiple;
- if (n && !ne(t) && !Ir(t)) {
- L(
- `<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString
- .call(t)
- .slice(8, -1)}.`
- );
- return;
- }
- for (let r = 0, o = e.options.length; r < o; r++) {
- const i = e.options[r],
- s = oo(i);
- if (n) ne(t) ? (i.selected = Ws(t, s) > -1) : (i.selected = t.has(s));
- else if (Xn(oo(i), t)) {
- e.selectedIndex !== r && (e.selectedIndex = r);
- return;
- }
- }
- !n && e.selectedIndex !== -1 && (e.selectedIndex = -1);
- }
- function oo(e) {
- return '_value' in e ? e._value : e.value;
- }
- function bh(e, t) {
- const n = t ? '_trueValue' : '_falseValue';
- return n in e ? e[n] : t;
- }
- const _h = {
- created(e, t, n) {
- Yi(e, t, n, null, 'created');
- },
- mounted(e, t, n) {
- Yi(e, t, n, null, 'mounted');
- },
- beforeUpdate(e, t, n, r) {
- Yi(e, t, n, r, 'beforeUpdate');
- },
- updated(e, t, n, r) {
- Yi(e, t, n, r, 'updated');
- }
- };
- function wh(e, t) {
- switch (e) {
- case 'SELECT':
- return vh;
- case 'TEXTAREA':
- return As;
- default:
- switch (t) {
- case 'checkbox':
- return Fc;
- case 'radio':
- return Bc;
- default:
- return As;
- }
- }
- }
- function Yi(e, t, n, r, o) {
- const s = wh(e.tagName, n.props && n.props.type)[o];
- s && s(e, t, n, r);
- }
- function gw() {
- (As.getSSRProps = ({ value: e }) => ({ value: e })),
- (Bc.getSSRProps = ({ value: e }, t) => {
- if (t.props && Xn(t.props.value, e)) return { checked: !0 };
- }),
- (Fc.getSSRProps = ({ value: e }, t) => {
- if (ne(e)) {
- if (t.props && Ws(e, t.props.value) > -1) return { checked: !0 };
- } else if (Ir(e)) {
- if (t.props && e.has(t.props.value)) return { checked: !0 };
- } else if (e) return { checked: !0 };
- }),
- (_h.getSSRProps = (e, t) => {
- if (typeof t.type != 'string') return;
- const n = wh(t.type.toUpperCase(), t.props && t.props.type);
- if (n.getSSRProps) return n.getSSRProps(e, t);
- });
- }
- const yw = ['ctrl', 'shift', 'alt', 'meta'],
- vw = {
- stop: e => e.stopPropagation(),
- prevent: e => e.preventDefault(),
- self: e => e.target !== e.currentTarget,
- ctrl: e => !e.ctrlKey,
- shift: e => !e.shiftKey,
- alt: e => !e.altKey,
- meta: e => !e.metaKey,
- left: e => 'button' in e && e.button !== 0,
- middle: e => 'button' in e && e.button !== 1,
- right: e => 'button' in e && e.button !== 2,
- exact: (e, t) => yw.some(n => e[`${n}Key`] && !t.includes(n))
- },
- bw =
- (e, t) =>
- (n, ...r) => {
- for (let o = 0; o < t.length; o++) {
- const i = vw[t[o]];
- if (i && i(n, t)) return;
- }
- return e(n, ...r);
- },
- _w = {
- esc: 'escape',
- space: ' ',
- up: 'arrow-up',
- left: 'arrow-left',
- right: 'arrow-right',
- down: 'arrow-down',
- delete: 'backspace'
- },
- Eh = (e, t) => n => {
- if (!('key' in n)) return;
- const r = gt(n.key);
- if (t.some(o => o === r || _w[o] === r)) return e(n);
- },
- ca = {
- beforeMount(e, { value: t }, { transition: n }) {
- (e._vod = e.style.display === 'none' ? '' : e.style.display),
- n && t ? n.beforeEnter(e) : Oo(e, t);
- },
- mounted(e, { value: t }, { transition: n }) {
- n && t && n.enter(e);
- },
- updated(e, { value: t, oldValue: n }, { transition: r }) {
- !t != !n &&
- (r
- ? t
- ? (r.beforeEnter(e), Oo(e, !0), r.enter(e))
- : r.leave(e, () => {
- Oo(e, !1);
- })
- : Oo(e, t));
- },
- beforeUnmount(e, { value: t }) {
- Oo(e, t);
- }
- };
- function Oo(e, t) {
- e.style.display = t ? e._vod : 'none';
- }
- function ww() {
- ca.getSSRProps = ({ value: e }) => {
- if (!e) return { style: { display: 'none' } };
- };
- }
- const Sh = Te({ patchProp: ew }, j_);
- let qo,
- uf = !1;
- function xh() {
- return qo || (qo = qp(Sh));
- }
- function Oh() {
- return (qo = uf ? qo : zp(Sh)), (uf = !0), qo;
- }
- const Ol = (...e) => {
- xh().render(...e);
- },
- Ch = (...e) => {
- Oh().hydrate(...e);
- },
- Dc = (...e) => {
- const t = xh().createApp(...e);
- Th(t), Ah(t);
- const { mount: n } = t;
- return (
- (t.mount = r => {
- const o = Ph(r);
- if (!o) return;
- const i = t._component;
- !ce(i) && !i.render && !i.template && (i.template = o.innerHTML),
- (o.innerHTML = '');
- const s = n(o, !1, o instanceof SVGElement);
- return (
- o instanceof Element &&
- (o.removeAttribute('v-cloak'), o.setAttribute('data-v-app', '')),
- s
- );
- }),
- t
- );
- },
- Ew = (...e) => {
- const t = Oh().createApp(...e);
- Th(t), Ah(t);
- const { mount: n } = t;
- return (
- (t.mount = r => {
- const o = Ph(r);
- if (o) return n(o, !0, o instanceof SVGElement);
- }),
- t
- );
- };
- function Th(e) {
- Object.defineProperty(e.config, 'isNativeTag', {
- value: t => Vy(t) || qy(t),
- writable: !1
- });
- }
- function Ah(e) {
- if (Mc()) {
- const t = e.config.isCustomElement;
- Object.defineProperty(e.config, 'isCustomElement', {
- get() {
- return t;
- },
- set() {
- L(
- 'The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.'
- );
- }
- });
- const n = e.config.compilerOptions,
- r =
- 'The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';
- Object.defineProperty(e.config, 'compilerOptions', {
- get() {
- return L(r), n;
- },
- set() {
- L(r);
- }
- });
- }
- }
- function Ph(e) {
- if (Ie(e)) {
- const t = document.querySelector(e);
- return (
- t ||
- L(`Failed to mount app: mount target selector "${e}" returned null.`),
- t
- );
- }
- return (
- window.ShadowRoot &&
- e instanceof window.ShadowRoot &&
- e.mode === 'closed' &&
- L(
- 'mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'
- ),
- e
- );
- }
- let ff = !1;
- const Sw = () => {
- ff || ((ff = !0), gw(), ww());
- };
- function xw() {
- lh();
- }
- xw();
- const Ow = () => {
- L(
- 'Runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'
- );
- },
- ZC = Object.freeze(
- Object.defineProperty(
- {
- __proto__: null,
- BaseTransition: Ep,
- BaseTransitionPropsValidators: xc,
- Comment: Ue,
- EffectScope: rc,
- Fragment: Be,
- KeepAlive: wb,
- ReactiveEffect: bi,
- Static: Kn,
- Suspense: ub,
- Teleport: Kp,
- Text: er,
- Transition: xi,
- TransitionGroup: uw,
- VueElement: la,
- assertNumber: dc,
- callWithAsyncErrorHandling: It,
- callWithErrorHandling: rn,
- camelize: Ot,
- capitalize: Qn,
- cloneVNode: Ut,
- compatUtils: L_,
- compile: Ow,
- computed: Me,
- createApp: Dc,
- createBlock: Pc,
- createCommentVNode: x_,
- createElementBlock: b_,
- createElementVNode: $c,
- createHydrationRenderer: zp,
- createPropsRestProxy: Wb,
- createRenderer: qp,
- createSSRApp: Ew,
- createSlots: Tb,
- createStaticVNode: S_,
- createTextVNode: Ic,
- createVNode: T,
- customRef: $v,
- defineAsyncComponent: bb,
- defineComponent: He,
- defineCustomElement: uh,
- defineEmits: Fb,
- defineExpose: Bb,
- defineModel: Nb,
- defineOptions: Db,
- defineProps: Mb,
- defineSSRCustomElement: nw,
- defineSlots: Lb,
- get devtools() {
- return zt;
- },
- effect: Qy,
- effectScope: oc,
- getCurrentInstance: Ze,
- getCurrentScope: ic,
- getTransitionRawChildren: ta,
- guardReactiveProps: Xp,
- h: mo,
- handleError: Mr,
- hasInjectionContext: Dp,
- hydrate: Ch,
- initCustomFormatter: lh,
- initDirectivesForSSR: Sw,
- inject: rt,
- isMemoSame: ch,
- isProxy: ei,
- isReactive: Gt,
- isReadonly: Cn,
- isRef: ke,
- isRuntimeOnly: Mc,
- isShallow: Zo,
- isVNode: an,
- markRaw: nn,
- mergeDefaults: qb,
- mergeModels: zb,
- mergeProps: ir,
- nextTick: St,
- normalizeClass: vi,
- normalizeProps: jy,
- normalizeStyle: yi,
- onActivated: Si,
- onBeforeMount: Op,
- onBeforeUnmount: ho,
- onBeforeUpdate: Cp,
- onDeactivated: po,
- onErrorCaptured: $p,
- onMounted: kt,
- onRenderTracked: Pp,
- onRenderTriggered: Ap,
- onScopeDispose: qd,
- onServerPrefetch: Tp,
- onUnmounted: Fr,
- onUpdated: ra,
- openBlock: oa,
- popScopeId: rb,
- provide: Sr,
- proxyRefs: fc,
- pushScopeId: nb,
- queuePostFlushCb: Xs,
- reactive: ct,
- readonly: lc,
- ref: Ee,
- registerRuntimeCompiler: P_,
- render: Ol,
- renderList: Cb,
- renderSlot: Ab,
- resolveComponent: Ip,
- resolveDirective: Ob,
- resolveDynamicComponent: xb,
- resolveFilter: D_,
- resolveTransitionHooks: no,
- setBlockTracking: gl,
- setDevtoolsHook: gc,
- setTransitionHooks: Tr,
- shallowReactive: op,
- shallowReadonly: Gr,
- shallowRef: ip,
- ssrContextKey: sh,
- ssrUtils: B_,
- stop: Xy,
- toDisplayString: Gy,
- toHandlerKey: En,
- toHandlers: Pb,
- toRaw: de,
- toRef: is,
- toRefs: il,
- toValue: Tv,
- transformVNodeArgs: __,
- triggerRef: Cv,
- unref: Ct,
- useAttrs: Hb,
- useCssModule: ow,
- useCssVars: iw,
- useModel: Vb,
- useSSRContext: ah,
- useSlots: Ub,
- useTransitionState: Sc,
- vModelCheckbox: Fc,
- vModelDynamic: _h,
- vModelRadio: Bc,
- vModelSelect: vh,
- vModelText: As,
- vShow: ca,
- version: wl,
- warn: L,
- watch: De,
- watchEffect: vp,
- watchPostEffect: bp,
- watchSyncEffect: gb,
- withAsyncContext: Kb,
- withCtx: vc,
- withDefaults: jb,
- withDirectives: Ec,
- withKeys: Eh,
- withMemo: M_,
- withModifiers: bw,
- withScopeId: ob
- },
- Symbol.toStringTag,
- { value: 'Module' }
- )
- ),
- Cw = He({
- name: 'App',
- setup() {
- return () => T(Be, null, [T(Ip('router-view'), null, null)]);
- }
- });
- var Kt =
- typeof globalThis < 'u'
- ? globalThis
- : typeof window < 'u'
- ? window
- : typeof global < 'u'
- ? global
- : typeof self < 'u'
- ? self
- : {};
- function Lc(e) {
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default')
- ? e.default
- : e;
- }
- function Tw(e) {
- if (e.__esModule) return e;
- var t = e.default;
- if (typeof t == 'function') {
- var n = function r() {
- if (this instanceof r) {
- var o = [null];
- o.push.apply(o, arguments);
- var i = Function.bind.apply(t, o);
- return new i();
- }
- return t.apply(this, arguments);
- };
- n.prototype = t.prototype;
- } else n = {};
- return (
- Object.defineProperty(n, '__esModule', { value: !0 }),
- Object.keys(e).forEach(function (r) {
- var o = Object.getOwnPropertyDescriptor(e, r);
- Object.defineProperty(
- n,
- r,
- o.get
- ? o
- : {
- enumerable: !0,
- get: function () {
- return e[r];
- }
- }
- );
- }),
- n
- );
- }
- var $h = { exports: {} };
- /*! @preserve
- * numeral.js
- * version : 2.0.6
- * author : Adam Draper
- * license : MIT
- * http://adamwdraper.github.com/Numeral-js/
- */ (function (e) {
- (function (t, n) {
- e.exports ? (e.exports = n()) : (t.numeral = n());
- })(Kt, function () {
- var t,
- n,
- r = '2.0.6',
- o = {},
- i = {},
- s = {
- currentLocale: 'en',
- zeroFormat: null,
- nullFormat: null,
- defaultFormat: '0,0',
- scalePercentBy100: !0
- },
- a = {
- currentLocale: s.currentLocale,
- zeroFormat: s.zeroFormat,
- nullFormat: s.nullFormat,
- defaultFormat: s.defaultFormat,
- scalePercentBy100: s.scalePercentBy100
- };
- function c(l, u) {
- (this._input = l), (this._value = u);
- }
- return (
- (t = function (l) {
- var u, f, d, h;
- if (t.isNumeral(l)) u = l.value();
- else if (l === 0 || typeof l > 'u') u = 0;
- else if (l === null || n.isNaN(l)) u = null;
- else if (typeof l == 'string')
- if (a.zeroFormat && l === a.zeroFormat) u = 0;
- else if (
- (a.nullFormat && l === a.nullFormat) ||
- !l.replace(/[^0-9]+/g, '').length
- )
- u = null;
- else {
- for (f in o)
- if (
- ((h =
- typeof o[f].regexps.unformat == 'function'
- ? o[f].regexps.unformat()
- : o[f].regexps.unformat),
- h && l.match(h))
- ) {
- d = o[f].unformat;
- break;
- }
- (d = d || t._.stringToNumber), (u = d(l));
- }
- else u = Number(l) || null;
- return new c(l, u);
- }),
- (t.version = r),
- (t.isNumeral = function (l) {
- return l instanceof c;
- }),
- (t._ = n =
- {
- numberToFormat: function (l, u, f) {
- var d = i[t.options.currentLocale],
- h = !1,
- g = !1,
- w = 0,
- E = '',
- y = 1e12,
- v = 1e9,
- O = 1e6,
- C = 1e3,
- x = '',
- N = !1,
- A,
- I,
- k,
- S,
- R,
- B,
- F;
- if (
- ((l = l || 0),
- (I = Math.abs(l)),
- t._.includes(u, '(')
- ? ((h = !0), (u = u.replace(/[\(|\)]/g, '')))
- : (t._.includes(u, '+') || t._.includes(u, '-')) &&
- ((R = t._.includes(u, '+')
- ? u.indexOf('+')
- : l < 0
- ? u.indexOf('-')
- : -1),
- (u = u.replace(/[\+|\-]/g, ''))),
- t._.includes(u, 'a') &&
- ((A = u.match(/a(k|m|b|t)?/)),
- (A = A ? A[1] : !1),
- t._.includes(u, ' a') && (E = ' '),
- (u = u.replace(new RegExp(E + 'a[kmbt]?'), '')),
- (I >= y && !A) || A === 't'
- ? ((E += d.abbreviations.trillion), (l = l / y))
- : (I < y && I >= v && !A) || A === 'b'
- ? ((E += d.abbreviations.billion), (l = l / v))
- : (I < v && I >= O && !A) || A === 'm'
- ? ((E += d.abbreviations.million), (l = l / O))
- : ((I < O && I >= C && !A) || A === 'k') &&
- ((E += d.abbreviations.thousand), (l = l / C))),
- t._.includes(u, '[.]') && ((g = !0), (u = u.replace('[.]', '.'))),
- (k = l.toString().split('.')[0]),
- (S = u.split('.')[1]),
- (B = u.indexOf(',')),
- (w = (u.split('.')[0].split(',')[0].match(/0/g) || []).length),
- S
- ? (t._.includes(S, '[')
- ? ((S = S.replace(']', '')),
- (S = S.split('[')),
- (x = t._.toFixed(
- l,
- S[0].length + S[1].length,
- f,
- S[1].length
- )))
- : (x = t._.toFixed(l, S.length, f)),
- (k = x.split('.')[0]),
- t._.includes(x, '.')
- ? (x = d.delimiters.decimal + x.split('.')[1])
- : (x = ''),
- g && Number(x.slice(1)) === 0 && (x = ''))
- : (k = t._.toFixed(l, 0, f)),
- E && !A && Number(k) >= 1e3 && E !== d.abbreviations.trillion)
- )
- switch (((k = String(Number(k) / 1e3)), E)) {
- case d.abbreviations.thousand:
- E = d.abbreviations.million;
- break;
- case d.abbreviations.million:
- E = d.abbreviations.billion;
- break;
- case d.abbreviations.billion:
- E = d.abbreviations.trillion;
- break;
- }
- if (
- (t._.includes(k, '-') && ((k = k.slice(1)), (N = !0)),
- k.length < w)
- )
- for (var $ = w - k.length; $ > 0; $--) k = '0' + k;
- return (
- B > -1 &&
- (k = k
- .toString()
- .replace(
- /(\d)(?=(\d{3})+(?!\d))/g,
- '$1' + d.delimiters.thousands
- )),
- u.indexOf('.') === 0 && (k = ''),
- (F = k + x + (E || '')),
- h
- ? (F = (h && N ? '(' : '') + F + (h && N ? ')' : ''))
- : R >= 0
- ? (F = R === 0 ? (N ? '-' : '+') + F : F + (N ? '-' : '+'))
- : N && (F = '-' + F),
- F
- );
- },
- stringToNumber: function (l) {
- var u = i[a.currentLocale],
- f = l,
- d = { thousand: 3, million: 6, billion: 9, trillion: 12 },
- h,
- g,
- w;
- if (a.zeroFormat && l === a.zeroFormat) g = 0;
- else if (
- (a.nullFormat && l === a.nullFormat) ||
- !l.replace(/[^0-9]+/g, '').length
- )
- g = null;
- else {
- (g = 1),
- u.delimiters.decimal !== '.' &&
- (l = l.replace(/\./g, '').replace(u.delimiters.decimal, '.'));
- for (h in d)
- if (
- ((w = new RegExp(
- '[^a-zA-Z]' +
- u.abbreviations[h] +
- '(?:\\)|(\\' +
- u.currency.symbol +
- ')?(?:\\))?)?$'
- )),
- f.match(w))
- ) {
- g *= Math.pow(10, d[h]);
- break;
- }
- (g *=
- (l.split('-').length +
- Math.min(l.split('(').length - 1, l.split(')').length - 1)) %
- 2
- ? 1
- : -1),
- (l = l.replace(/[^0-9\.]+/g, '')),
- (g *= Number(l));
- }
- return g;
- },
- isNaN: function (l) {
- return typeof l == 'number' && isNaN(l);
- },
- includes: function (l, u) {
- return l.indexOf(u) !== -1;
- },
- insert: function (l, u, f) {
- return l.slice(0, f) + u + l.slice(f);
- },
- reduce: function (l, u) {
- if (this === null)
- throw new TypeError(
- 'Array.prototype.reduce called on null or undefined'
- );
- if (typeof u != 'function')
- throw new TypeError(u + ' is not a function');
- var f = Object(l),
- d = f.length >>> 0,
- h = 0,
- g;
- if (arguments.length === 3) g = arguments[2];
- else {
- for (; h < d && !(h in f); ) h++;
- if (h >= d)
- throw new TypeError(
- 'Reduce of empty array with no initial value'
- );
- g = f[h++];
- }
- for (; h < d; h++) h in f && (g = u(g, f[h], h, f));
- return g;
- },
- multiplier: function (l) {
- var u = l.toString().split('.');
- return u.length < 2 ? 1 : Math.pow(10, u[1].length);
- },
- correctionFactor: function () {
- var l = Array.prototype.slice.call(arguments);
- return l.reduce(function (u, f) {
- var d = n.multiplier(f);
- return u > d ? u : d;
- }, 1);
- },
- toFixed: function (l, u, f, d) {
- var h = l.toString().split('.'),
- g = u - (d || 0),
- w,
- E,
- y,
- v;
- return (
- h.length === 2
- ? (w = Math.min(Math.max(h[1].length, g), u))
- : (w = g),
- (y = Math.pow(10, w)),
- (v = (f(l + 'e+' + w) / y).toFixed(w)),
- d > u - w &&
- ((E = new RegExp('\\.?0{1,' + (d - (u - w)) + '}$')),
- (v = v.replace(E, ''))),
- v
- );
- }
- }),
- (t.options = a),
- (t.formats = o),
- (t.locales = i),
- (t.locale = function (l) {
- return l && (a.currentLocale = l.toLowerCase()), a.currentLocale;
- }),
- (t.localeData = function (l) {
- if (!l) return i[a.currentLocale];
- if (((l = l.toLowerCase()), !i[l]))
- throw new Error('Unknown locale : ' + l);
- return i[l];
- }),
- (t.reset = function () {
- for (var l in s) a[l] = s[l];
- }),
- (t.zeroFormat = function (l) {
- a.zeroFormat = typeof l == 'string' ? l : null;
- }),
- (t.nullFormat = function (l) {
- a.nullFormat = typeof l == 'string' ? l : null;
- }),
- (t.defaultFormat = function (l) {
- a.defaultFormat = typeof l == 'string' ? l : '0.0';
- }),
- (t.register = function (l, u, f) {
- if (((u = u.toLowerCase()), this[l + 's'][u]))
- throw new TypeError(u + ' ' + l + ' already registered.');
- return (this[l + 's'][u] = f), f;
- }),
- (t.validate = function (l, u) {
- var f, d, h, g, w, E, y, v;
- if (
- (typeof l != 'string' &&
- ((l += ''),
- console.warn &&
- console.warn(
- 'Numeral.js: Value is not string. It has been co-erced to: ',
- l
- )),
- (l = l.trim()),
- l.match(/^\d+$/))
- )
- return !0;
- if (l === '') return !1;
- try {
- y = t.localeData(u);
- } catch (O) {
- y = t.localeData(t.locale());
- }
- return (
- (h = y.currency.symbol),
- (w = y.abbreviations),
- (f = y.delimiters.decimal),
- y.delimiters.thousands === '.'
- ? (d = '\\.')
- : (d = y.delimiters.thousands),
- (v = l.match(/^[^\d]+/)),
- (v !== null && ((l = l.substr(1)), v[0] !== h)) ||
- ((v = l.match(/[^\d]+$/)),
- v !== null &&
- ((l = l.slice(0, -1)),
- v[0] !== w.thousand &&
- v[0] !== w.million &&
- v[0] !== w.billion &&
- v[0] !== w.trillion))
- ? !1
- : ((E = new RegExp(d + '{2}')),
- l.match(/[^\d.,]/g)
- ? !1
- : ((g = l.split(f)),
- g.length > 2
- ? !1
- : g.length < 2
- ? !!g[0].match(/^\d+.*\d$/) && !g[0].match(E)
- : g[0].length === 1
- ? !!g[0].match(/^\d+$/) &&
- !g[0].match(E) &&
- !!g[1].match(/^\d+$/)
- : !!g[0].match(/^\d+.*\d$/) &&
- !g[0].match(E) &&
- !!g[1].match(/^\d+$/)))
- );
- }),
- (t.fn = c.prototype =
- {
- clone: function () {
- return t(this);
- },
- format: function (l, u) {
- var f = this._value,
- d = l || a.defaultFormat,
- h,
- g,
- w;
- if (((u = u || Math.round), f === 0 && a.zeroFormat !== null))
- g = a.zeroFormat;
- else if (f === null && a.nullFormat !== null) g = a.nullFormat;
- else {
- for (h in o)
- if (d.match(o[h].regexps.format)) {
- w = o[h].format;
- break;
- }
- (w = w || t._.numberToFormat), (g = w(f, d, u));
- }
- return g;
- },
- value: function () {
- return this._value;
- },
- input: function () {
- return this._input;
- },
- set: function (l) {
- return (this._value = Number(l)), this;
- },
- add: function (l) {
- var u = n.correctionFactor.call(null, this._value, l);
- function f(d, h, g, w) {
- return d + Math.round(u * h);
- }
- return (this._value = n.reduce([this._value, l], f, 0) / u), this;
- },
- subtract: function (l) {
- var u = n.correctionFactor.call(null, this._value, l);
- function f(d, h, g, w) {
- return d - Math.round(u * h);
- }
- return (
- (this._value = n.reduce([l], f, Math.round(this._value * u)) / u),
- this
- );
- },
- multiply: function (l) {
- function u(f, d, h, g) {
- var w = n.correctionFactor(f, d);
- return (
- (Math.round(f * w) * Math.round(d * w)) / Math.round(w * w)
- );
- }
- return (this._value = n.reduce([this._value, l], u, 1)), this;
- },
- divide: function (l) {
- function u(f, d, h, g) {
- var w = n.correctionFactor(f, d);
- return Math.round(f * w) / Math.round(d * w);
- }
- return (this._value = n.reduce([this._value, l], u)), this;
- },
- difference: function (l) {
- return Math.abs(t(this._value).subtract(l).value());
- }
- }),
- t.register('locale', 'en', {
- delimiters: { thousands: ',', decimal: '.' },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (l) {
- var u = l % 10;
- return ~~((l % 100) / 10) === 1
- ? 'th'
- : u === 1
- ? 'st'
- : u === 2
- ? 'nd'
- : u === 3
- ? 'rd'
- : 'th';
- },
- currency: { symbol: '$' }
- }),
- (function () {
- t.register('format', 'bps', {
- regexps: { format: /(BPS)/, unformat: /(BPS)/ },
- format: function (l, u, f) {
- var d = t._.includes(u, ' BPS') ? ' ' : '',
- h;
- return (
- (l = l * 1e4),
- (u = u.replace(/\s?BPS/, '')),
- (h = t._.numberToFormat(l, u, f)),
- t._.includes(h, ')')
- ? ((h = h.split('')),
- h.splice(-1, 0, d + 'BPS'),
- (h = h.join('')))
- : (h = h + d + 'BPS'),
- h
- );
- },
- unformat: function (l) {
- return +(t._.stringToNumber(l) * 1e-4).toFixed(15);
- }
- });
- })(),
- (function () {
- var l = {
- base: 1e3,
- suffixes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']
- },
- u = {
- base: 1024,
- suffixes: [
- 'B',
- 'KiB',
- 'MiB',
- 'GiB',
- 'TiB',
- 'PiB',
- 'EiB',
- 'ZiB',
- 'YiB'
- ]
- },
- f = l.suffixes.concat(
- u.suffixes.filter(function (h) {
- return l.suffixes.indexOf(h) < 0;
- })
- ),
- d = f.join('|');
- (d = '(' + d.replace('B', 'B(?!PS)') + ')'),
- t.register('format', 'bytes', {
- regexps: { format: /([0\s]i?b)/, unformat: new RegExp(d) },
- format: function (h, g, w) {
- var E,
- y = t._.includes(g, 'ib') ? u : l,
- v = t._.includes(g, ' b') || t._.includes(g, ' ib') ? ' ' : '',
- O,
- C,
- x;
- for (
- g = g.replace(/\s?i?b/, ''), O = 0;
- O <= y.suffixes.length;
- O++
- )
- if (
- ((C = Math.pow(y.base, O)),
- (x = Math.pow(y.base, O + 1)),
- h === null || h === 0 || (h >= C && h < x))
- ) {
- (v += y.suffixes[O]), C > 0 && (h = h / C);
- break;
- }
- return (E = t._.numberToFormat(h, g, w)), E + v;
- },
- unformat: function (h) {
- var g = t._.stringToNumber(h),
- w,
- E;
- if (g) {
- for (w = l.suffixes.length - 1; w >= 0; w--) {
- if (t._.includes(h, l.suffixes[w])) {
- E = Math.pow(l.base, w);
- break;
- }
- if (t._.includes(h, u.suffixes[w])) {
- E = Math.pow(u.base, w);
- break;
- }
- }
- g *= E || 1;
- }
- return g;
- }
- });
- })(),
- (function () {
- t.register('format', 'currency', {
- regexps: { format: /(\$)/ },
- format: function (l, u, f) {
- var d = t.locales[t.options.currentLocale],
- h = {
- before: u.match(/^([\+|\-|\(|\s|\$]*)/)[0],
- after: u.match(/([\+|\-|\)|\s|\$]*)$/)[0]
- },
- g,
- w,
- E;
- for (
- u = u.replace(/\s?\$\s?/, ''),
- g = t._.numberToFormat(l, u, f),
- l >= 0
- ? ((h.before = h.before.replace(/[\-\(]/, '')),
- (h.after = h.after.replace(/[\-\)]/, '')))
- : l < 0 &&
- !t._.includes(h.before, '-') &&
- !t._.includes(h.before, '(') &&
- (h.before = '-' + h.before),
- E = 0;
- E < h.before.length;
- E++
- )
- switch (((w = h.before[E]), w)) {
- case '$':
- g = t._.insert(g, d.currency.symbol, E);
- break;
- case ' ':
- g = t._.insert(g, ' ', E + d.currency.symbol.length - 1);
- break;
- }
- for (E = h.after.length - 1; E >= 0; E--)
- switch (((w = h.after[E]), w)) {
- case '$':
- g =
- E === h.after.length - 1
- ? g + d.currency.symbol
- : t._.insert(
- g,
- d.currency.symbol,
- -(h.after.length - (1 + E))
- );
- break;
- case ' ':
- g =
- E === h.after.length - 1
- ? g + ' '
- : t._.insert(
- g,
- ' ',
- -(
- h.after.length -
- (1 + E) +
- d.currency.symbol.length -
- 1
- )
- );
- break;
- }
- return g;
- }
- });
- })(),
- (function () {
- t.register('format', 'exponential', {
- regexps: { format: /(e\+|e-)/, unformat: /(e\+|e-)/ },
- format: function (l, u, f) {
- var d,
- h =
- typeof l == 'number' && !t._.isNaN(l)
- ? l.toExponential()
- : '0e+0',
- g = h.split('e');
- return (
- (u = u.replace(/e[\+|\-]{1}0/, '')),
- (d = t._.numberToFormat(Number(g[0]), u, f)),
- d + 'e' + g[1]
- );
- },
- unformat: function (l) {
- var u = t._.includes(l, 'e+') ? l.split('e+') : l.split('e-'),
- f = Number(u[0]),
- d = Number(u[1]);
- d = t._.includes(l, 'e-') ? (d *= -1) : d;
- function h(g, w, E, y) {
- var v = t._.correctionFactor(g, w),
- O = (g * v * (w * v)) / (v * v);
- return O;
- }
- return t._.reduce([f, Math.pow(10, d)], h, 1);
- }
- });
- })(),
- (function () {
- t.register('format', 'ordinal', {
- regexps: { format: /(o)/ },
- format: function (l, u, f) {
- var d = t.locales[t.options.currentLocale],
- h,
- g = t._.includes(u, ' o') ? ' ' : '';
- return (
- (u = u.replace(/\s?o/, '')),
- (g += d.ordinal(l)),
- (h = t._.numberToFormat(l, u, f)),
- h + g
- );
- }
- });
- })(),
- (function () {
- t.register('format', 'percentage', {
- regexps: { format: /(%)/, unformat: /(%)/ },
- format: function (l, u, f) {
- var d = t._.includes(u, ' %') ? ' ' : '',
- h;
- return (
- t.options.scalePercentBy100 && (l = l * 100),
- (u = u.replace(/\s?\%/, '')),
- (h = t._.numberToFormat(l, u, f)),
- t._.includes(h, ')')
- ? ((h = h.split('')),
- h.splice(-1, 0, d + '%'),
- (h = h.join('')))
- : (h = h + d + '%'),
- h
- );
- },
- unformat: function (l) {
- var u = t._.stringToNumber(l);
- return t.options.scalePercentBy100 ? u * 0.01 : u;
- }
- });
- })(),
- (function () {
- t.register('format', 'time', {
- regexps: { format: /(:)/, unformat: /(:)/ },
- format: function (l, u, f) {
- var d = Math.floor(l / 60 / 60),
- h = Math.floor((l - d * 60 * 60) / 60),
- g = Math.round(l - d * 60 * 60 - h * 60);
- return (
- d + ':' + (h < 10 ? '0' + h : h) + ':' + (g < 10 ? '0' + g : g)
- );
- },
- unformat: function (l) {
- var u = l.split(':'),
- f = 0;
- return (
- u.length === 3
- ? ((f = f + Number(u[0]) * 60 * 60),
- (f = f + Number(u[1]) * 60),
- (f = f + Number(u[2])))
- : u.length === 2 &&
- ((f = f + Number(u[0]) * 60), (f = f + Number(u[1]))),
- Number(f)
- );
- }
- });
- })(),
- t
- );
- });
- })($h);
- var Aw = $h.exports;
- const Pw = Lc(Aw);
- var Ih = { exports: {} };
- (function (e, t) {
- (function (n, r) {
- e.exports = r();
- })(Kt, function () {
- var n = 1e3,
- r = 6e4,
- o = 36e5,
- i = 'millisecond',
- s = 'second',
- a = 'minute',
- c = 'hour',
- l = 'day',
- u = 'week',
- f = 'month',
- d = 'quarter',
- h = 'year',
- g = 'date',
- w = 'Invalid Date',
- E =
- /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
- y =
- /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
- v = {
- name: 'en',
- weekdays:
- 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
- months:
- 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
- '_'
- ),
- ordinal: function (F) {
- var $ = ['th', 'st', 'nd', 'rd'],
- V = F % 100;
- return '[' + F + ($[(V - 20) % 10] || $[V] || $[0]) + ']';
- }
- },
- O = function (F, $, V) {
- var Y = String(F);
- return !Y || Y.length >= $
- ? F
- : '' + Array($ + 1 - Y.length).join(V) + F;
- },
- C = {
- s: O,
- z: function (F) {
- var $ = -F.utcOffset(),
- V = Math.abs($),
- Y = Math.floor(V / 60),
- H = V % 60;
- return ($ <= 0 ? '+' : '-') + O(Y, 2, '0') + ':' + O(H, 2, '0');
- },
- m: function F($, V) {
- if ($.date() < V.date()) return -F(V, $);
- var Y = 12 * (V.year() - $.year()) + (V.month() - $.month()),
- H = $.clone().add(Y, f),
- K = V - H < 0,
- ie = $.clone().add(Y + (K ? -1 : 1), f);
- return +(-(Y + (V - H) / (K ? H - ie : ie - H)) || 0);
- },
- a: function (F) {
- return F < 0 ? Math.ceil(F) || 0 : Math.floor(F);
- },
- p: function (F) {
- return (
- { M: f, y: h, w: u, d: l, D: g, h: c, m: a, s, ms: i, Q: d }[F] ||
- String(F || '')
- .toLowerCase()
- .replace(/s$/, '')
- );
- },
- u: function (F) {
- return F === void 0;
- }
- },
- x = 'en',
- N = {};
- N[x] = v;
- var A = function (F) {
- return F instanceof R;
- },
- I = function F($, V, Y) {
- var H;
- if (!$) return x;
- if (typeof $ == 'string') {
- var K = $.toLowerCase();
- N[K] && (H = K), V && ((N[K] = V), (H = K));
- var ie = $.split('-');
- if (!H && ie.length > 1) return F(ie[0]);
- } else {
- var he = $.name;
- (N[he] = $), (H = he);
- }
- return !Y && H && (x = H), H || (!Y && x);
- },
- k = function (F, $) {
- if (A(F)) return F.clone();
- var V = typeof $ == 'object' ? $ : {};
- return (V.date = F), (V.args = arguments), new R(V);
- },
- S = C;
- (S.l = I),
- (S.i = A),
- (S.w = function (F, $) {
- return k(F, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
- });
- var R = (function () {
- function F(V) {
- (this.$L = I(V.locale, null, !0)), this.parse(V);
- }
- var $ = F.prototype;
- return (
- ($.parse = function (V) {
- (this.$d = (function (Y) {
- var H = Y.date,
- K = Y.utc;
- if (H === null) return new Date(NaN);
- if (S.u(H)) return new Date();
- if (H instanceof Date) return new Date(H);
- if (typeof H == 'string' && !/Z$/i.test(H)) {
- var ie = H.match(E);
- if (ie) {
- var he = ie[2] - 1 || 0,
- Se = (ie[7] || '0').substring(0, 3);
- return K
- ? new Date(
- Date.UTC(
- ie[1],
- he,
- ie[3] || 1,
- ie[4] || 0,
- ie[5] || 0,
- ie[6] || 0,
- Se
- )
- )
- : new Date(
- ie[1],
- he,
- ie[3] || 1,
- ie[4] || 0,
- ie[5] || 0,
- ie[6] || 0,
- Se
- );
- }
- }
- return new Date(H);
- })(V)),
- (this.$x = V.x || {}),
- this.init();
- }),
- ($.init = function () {
- var V = this.$d;
- (this.$y = V.getFullYear()),
- (this.$M = V.getMonth()),
- (this.$D = V.getDate()),
- (this.$W = V.getDay()),
- (this.$H = V.getHours()),
- (this.$m = V.getMinutes()),
- (this.$s = V.getSeconds()),
- (this.$ms = V.getMilliseconds());
- }),
- ($.$utils = function () {
- return S;
- }),
- ($.isValid = function () {
- return this.$d.toString() !== w;
- }),
- ($.isSame = function (V, Y) {
- var H = k(V);
- return this.startOf(Y) <= H && H <= this.endOf(Y);
- }),
- ($.isAfter = function (V, Y) {
- return k(V) < this.startOf(Y);
- }),
- ($.isBefore = function (V, Y) {
- return this.endOf(Y) < k(V);
- }),
- ($.$g = function (V, Y, H) {
- return S.u(V) ? this[Y] : this.set(H, V);
- }),
- ($.unix = function () {
- return Math.floor(this.valueOf() / 1e3);
- }),
- ($.valueOf = function () {
- return this.$d.getTime();
- }),
- ($.startOf = function (V, Y) {
- var H = this,
- K = !!S.u(Y) || Y,
- ie = S.p(V),
- he = function (q, J) {
- var te = S.w(
- H.$u ? Date.UTC(H.$y, J, q) : new Date(H.$y, J, q),
- H
- );
- return K ? te : te.endOf(l);
- },
- Se = function (q, J) {
- return S.w(
- H.toDate()[q].apply(
- H.toDate('s'),
- (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)
- ),
- H
- );
- },
- ye = this.$W,
- xe = this.$M,
- Le = this.$D,
- qe = 'set' + (this.$u ? 'UTC' : '');
- switch (ie) {
- case h:
- return K ? he(1, 0) : he(31, 11);
- case f:
- return K ? he(1, xe) : he(0, xe + 1);
- case u:
- var ze = this.$locale().weekStart || 0,
- M = (ye < ze ? ye + 7 : ye) - ze;
- return he(K ? Le - M : Le + (6 - M), xe);
- case l:
- case g:
- return Se(qe + 'Hours', 0);
- case c:
- return Se(qe + 'Minutes', 1);
- case a:
- return Se(qe + 'Seconds', 2);
- case s:
- return Se(qe + 'Milliseconds', 3);
- default:
- return this.clone();
- }
- }),
- ($.endOf = function (V) {
- return this.startOf(V, !1);
- }),
- ($.$set = function (V, Y) {
- var H,
- K = S.p(V),
- ie = 'set' + (this.$u ? 'UTC' : ''),
- he = ((H = {}),
- (H[l] = ie + 'Date'),
- (H[g] = ie + 'Date'),
- (H[f] = ie + 'Month'),
- (H[h] = ie + 'FullYear'),
- (H[c] = ie + 'Hours'),
- (H[a] = ie + 'Minutes'),
- (H[s] = ie + 'Seconds'),
- (H[i] = ie + 'Milliseconds'),
- H)[K],
- Se = K === l ? this.$D + (Y - this.$W) : Y;
- if (K === f || K === h) {
- var ye = this.clone().set(g, 1);
- ye.$d[he](Se),
- ye.init(),
- (this.$d = ye.set(g, Math.min(this.$D, ye.daysInMonth())).$d);
- } else he && this.$d[he](Se);
- return this.init(), this;
- }),
- ($.set = function (V, Y) {
- return this.clone().$set(V, Y);
- }),
- ($.get = function (V) {
- return this[S.p(V)]();
- }),
- ($.add = function (V, Y) {
- var H,
- K = this;
- V = Number(V);
- var ie = S.p(Y),
- he = function (xe) {
- var Le = k(K);
- return S.w(Le.date(Le.date() + Math.round(xe * V)), K);
- };
- if (ie === f) return this.set(f, this.$M + V);
- if (ie === h) return this.set(h, this.$y + V);
- if (ie === l) return he(1);
- if (ie === u) return he(7);
- var Se = ((H = {}), (H[a] = r), (H[c] = o), (H[s] = n), H)[ie] || 1,
- ye = this.$d.getTime() + V * Se;
- return S.w(ye, this);
- }),
- ($.subtract = function (V, Y) {
- return this.add(-1 * V, Y);
- }),
- ($.format = function (V) {
- var Y = this,
- H = this.$locale();
- if (!this.isValid()) return H.invalidDate || w;
- var K = V || 'YYYY-MM-DDTHH:mm:ssZ',
- ie = S.z(this),
- he = this.$H,
- Se = this.$m,
- ye = this.$M,
- xe = H.weekdays,
- Le = H.months,
- qe = function (J, te, ue, be) {
- return (J && (J[te] || J(Y, K))) || ue[te].slice(0, be);
- },
- ze = function (J) {
- return S.s(he % 12 || 12, J, '0');
- },
- M =
- H.meridiem ||
- function (J, te, ue) {
- var be = J < 12 ? 'AM' : 'PM';
- return ue ? be.toLowerCase() : be;
- },
- q = {
- YY: String(this.$y).slice(-2),
- YYYY: S.s(this.$y, 4, '0'),
- M: ye + 1,
- MM: S.s(ye + 1, 2, '0'),
- MMM: qe(H.monthsShort, ye, Le, 3),
- MMMM: qe(Le, ye),
- D: this.$D,
- DD: S.s(this.$D, 2, '0'),
- d: String(this.$W),
- dd: qe(H.weekdaysMin, this.$W, xe, 2),
- ddd: qe(H.weekdaysShort, this.$W, xe, 3),
- dddd: xe[this.$W],
- H: String(he),
- HH: S.s(he, 2, '0'),
- h: ze(1),
- hh: ze(2),
- a: M(he, Se, !0),
- A: M(he, Se, !1),
- m: String(Se),
- mm: S.s(Se, 2, '0'),
- s: String(this.$s),
- ss: S.s(this.$s, 2, '0'),
- SSS: S.s(this.$ms, 3, '0'),
- Z: ie
- };
- return K.replace(y, function (J, te) {
- return te || q[J] || ie.replace(':', '');
- });
- }),
- ($.utcOffset = function () {
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
- }),
- ($.diff = function (V, Y, H) {
- var K,
- ie = S.p(Y),
- he = k(V),
- Se = (he.utcOffset() - this.utcOffset()) * r,
- ye = this - he,
- xe = S.m(this, he);
- return (
- (xe =
- ((K = {}),
- (K[h] = xe / 12),
- (K[f] = xe),
- (K[d] = xe / 3),
- (K[u] = (ye - Se) / 6048e5),
- (K[l] = (ye - Se) / 864e5),
- (K[c] = ye / o),
- (K[a] = ye / r),
- (K[s] = ye / n),
- K)[ie] || ye),
- H ? xe : S.a(xe)
- );
- }),
- ($.daysInMonth = function () {
- return this.endOf(f).$D;
- }),
- ($.$locale = function () {
- return N[this.$L];
- }),
- ($.locale = function (V, Y) {
- if (!V) return this.$L;
- var H = this.clone(),
- K = I(V, Y, !0);
- return K && (H.$L = K), H;
- }),
- ($.clone = function () {
- return S.w(this.$d, this);
- }),
- ($.toDate = function () {
- return new Date(this.valueOf());
- }),
- ($.toJSON = function () {
- return this.isValid() ? this.toISOString() : null;
- }),
- ($.toISOString = function () {
- return this.$d.toISOString();
- }),
- ($.toString = function () {
- return this.$d.toUTCString();
- }),
- F
- );
- })(),
- B = R.prototype;
- return (
- (k.prototype = B),
- [
- ['$ms', i],
- ['$s', s],
- ['$m', a],
- ['$H', c],
- ['$W', l],
- ['$M', f],
- ['$y', h],
- ['$D', g]
- ].forEach(function (F) {
- B[F[1]] = function ($) {
- return this.$g($, F[0], F[1]);
- };
- }),
- (k.extend = function (F, $) {
- return F.$i || (F($, R, k), (F.$i = !0)), k;
- }),
- (k.locale = I),
- (k.isDayjs = A),
- (k.unix = function (F) {
- return k(1e3 * F);
- }),
- (k.en = N[x]),
- (k.Ls = N),
- (k.p = {}),
- k
- );
- });
- })(Ih);
- var Rh = Ih.exports;
- const $w = Lc(Rh),
- Oi = () => {
- const e = navigator.userAgent;
- return {
- trident: e.indexOf('Trident') > -1,
- presto: e.indexOf('Presto') > -1,
- webKit: e.indexOf('AppleWebKit') > -1,
- gecko: e.indexOf('Gecko') > -1 && e.indexOf('KHTML') == -1,
- mobile: !!e.match(/AppleWebKit.*Mobile.*/),
- ios: !!e.match(/Mac OS X/),
- android: e.indexOf('COLEXIUSTUDENT') > -1 || e.indexOf('Adr') > -1,
- iPhone: e.indexOf('COLEXIUAPPI') > -1,
- isApp:
- e.indexOf('COLEXIUAPPI') > -1 ||
- e.indexOf('COLEXIUAPPA') > -1 ||
- e.indexOf('Adr') > -1,
- iPad: e.indexOf('iPad') > -1,
- webApp: e.indexOf('Safari') == -1,
- weixin: e.indexOf('MicroMessenger') > -1,
- alipay: e.indexOf('AlipayClient') > -1,
- huawei: !!e.match(/huawei/i) || !!e.match(/honor/i),
- xiaomi: !!e.match(/mi\s/i) || !!e.match(/redmi/i) || !!e.match(/mix/i)
- };
- },
- eT = (e = 'code') => {
- const t = location.search,
- n = new Object();
- if (t.indexOf('?') != -1) {
- const o = t.substr(1).split('&');
- for (let i = 0; i < o.length; i++)
- n[o[i].split('=')[0]] = o[i].split('=')[1];
- }
- return console.log(n, 'theRequest'), n[e];
- },
- kh = () => '' + new Date().getTime() + Math.floor(Math.random() * 1e6);
- function tT(e) {
- return /^((13[0-9])|(14(0|[5-7]|9))|(15([0-3]|[5-9]))|(16(2|[5-7]))|(17[0-8])|(18[0-9])|(19([0-3]|[5-9])))\d{8}$/.test(
- e
- );
- }
- const nT = (e, t) => (
- e === 'year' && (t.text += '年'),
- e === 'month' && (t.text += '月'),
- e === 'day' && (t.text += '日'),
- t
- ),
- rT = (e, t) => {
- if (isNaN(e)) return '00:00';
- const n = Math.floor(e / 60)
- .toString()
- .padStart(2, '0'),
- r = Math.floor(e % 60)
- .toString()
- .padStart(2, '0');
- return t === 'cn' ? n + '分' + r + '秒' : n + ':' + r;
- },
- oT = (e, t = '0,0.00') => Pw(e).format(t),
- rr = e => e != null,
- Ps = e => typeof e == 'function',
- Ci = e => e !== null && typeof e == 'object',
- Iw = e => Ci(e) && Ps(e.then) && Ps(e.catch),
- iT = e =>
- Object.prototype.toString.call(e) === '[object Date]' &&
- !Number.isNaN(e.getTime()),
- Mh = e => typeof e == 'number' || /^\d+(\.\d+)?$/.test(e),
- Rw = () =>
- ua ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : !1;
- function ci() {}
- const At = Object.assign,
- ua = typeof window < 'u';
- function df(e, t) {
- const n = t.split('.');
- let r = e;
- return (
- n.forEach(o => {
- var i;
- r = Ci(r) && (i = r[o]) != null ? i : '';
- }),
- r
- );
- }
- function Fh(e, t, n) {
- return t.reduce((r, o) => ((!n || e[o] !== void 0) && (r[o] = e[o]), r), {});
- }
- const sT = (e, t) => JSON.stringify(e) === JSON.stringify(t),
- aT = e => (Array.isArray(e) ? e : [e]),
- ui = null,
- ut = [Number, String],
- jt = { type: Boolean, default: !0 },
- lT = e => ({ type: e, required: !0 }),
- cT = () => ({ type: Array, default: () => [] }),
- kw = e => ({ type: Number, default: e }),
- uT = e => ({ type: ut, default: e }),
- nt = e => ({ type: String, default: e });
- var Tt = typeof window < 'u';
- function $s(e) {
- return Tt ? requestAnimationFrame(e) : -1;
- }
- function Mw(e) {
- Tt && cancelAnimationFrame(e);
- }
- function fT(e) {
- $s(() => $s(e));
- }
- var Fw = e => e === window,
- pf = (e, t) => ({
- top: 0,
- left: 0,
- right: e,
- bottom: t,
- width: e,
- height: t
- }),
- Ti = e => {
- const t = Ct(e);
- if (Fw(t)) {
- const n = t.innerWidth,
- r = t.innerHeight;
- return pf(n, r);
- }
- return t != null && t.getBoundingClientRect
- ? t.getBoundingClientRect()
- : pf(0, 0);
- };
- function Bw(e) {
- const t = rt(e, null);
- if (t) {
- const n = Ze(),
- { link: r, unlink: o, internalChildren: i } = t;
- r(n), Fr(() => o(n));
- const s = Me(() => i.indexOf(n));
- return { parent: t, index: s };
- }
- return { parent: null, index: Ee(-1) };
- }
- function Dw(e) {
- const t = [],
- n = r => {
- Array.isArray(r) &&
- r.forEach(o => {
- var i;
- an(o) &&
- (t.push(o),
- (i = o.component) != null &&
- i.subTree &&
- (t.push(o.component.subTree), n(o.component.subTree.children)),
- o.children && n(o.children));
- });
- };
- return n(e), t;
- }
- var hf = (e, t) => {
- const n = e.indexOf(t);
- return n === -1
- ? e.findIndex(
- r =>
- t.key !== void 0 &&
- t.key !== null &&
- r.type === t.type &&
- r.key === t.key
- )
- : n;
- };
- function Lw(e, t, n) {
- const r = Dw(e.subTree.children);
- n.sort((i, s) => hf(r, i.vnode) - hf(r, s.vnode));
- const o = n.map(i => i.proxy);
- t.sort((i, s) => {
- const a = o.indexOf(i),
- c = o.indexOf(s);
- return a - c;
- });
- }
- function Nw(e) {
- const t = ct([]),
- n = ct([]),
- r = Ze();
- return {
- children: t,
- linkChildren: i => {
- Sr(
- e,
- Object.assign(
- {
- link: c => {
- c.proxy && (n.push(c), t.push(c.proxy), Lw(r, t, n));
- },
- unlink: c => {
- const l = n.indexOf(c);
- t.splice(l, 1), n.splice(l, 1);
- },
- children: t,
- internalChildren: n
- },
- i
- )
- );
- }
- };
- }
- var Cl = 1e3,
- Tl = 60 * Cl,
- Al = 60 * Tl,
- mf = 24 * Al;
- function jw(e) {
- const t = Math.floor(e / mf),
- n = Math.floor((e % mf) / Al),
- r = Math.floor((e % Al) / Tl),
- o = Math.floor((e % Tl) / Cl),
- i = Math.floor(e % Cl);
- return {
- total: e,
- days: t,
- hours: n,
- minutes: r,
- seconds: o,
- milliseconds: i
- };
- }
- function Uw(e, t) {
- return Math.floor(e / 1e3) === Math.floor(t / 1e3);
- }
- function dT(e) {
- let t, n, r, o;
- const i = Ee(e.time),
- s = Me(() => jw(i.value)),
- a = () => {
- (r = !1), Mw(t);
- },
- c = () => Math.max(n - Date.now(), 0),
- l = w => {
- var E, y;
- (i.value = w),
- (E = e.onChange) == null || E.call(e, s.value),
- w === 0 && (a(), (y = e.onFinish) == null || y.call(e));
- },
- u = () => {
- t = $s(() => {
- r && (l(c()), i.value > 0 && u());
- });
- },
- f = () => {
- t = $s(() => {
- if (r) {
- const w = c();
- (!Uw(w, i.value) || w === 0) && l(w), i.value > 0 && f();
- }
- });
- },
- d = () => {
- Tt && (e.millisecond ? u() : f());
- },
- h = () => {
- r || ((n = Date.now() + i.value), (r = !0), d());
- },
- g = (w = e.time) => {
- a(), (i.value = w);
- };
- return (
- ho(a),
- Si(() => {
- o && ((r = !0), (o = !1), d());
- }),
- po(() => {
- r && (a(), (o = !0));
- }),
- { start: h, pause: a, reset: g, current: s }
- );
- }
- function Bh(e) {
- let t;
- kt(() => {
- e(),
- St(() => {
- t = !0;
- });
- }),
- Si(() => {
- t && e();
- });
- }
- function Nc(e, t, n = {}) {
- if (!Tt) return;
- const { target: r = window, passive: o = !1, capture: i = !1 } = n;
- let s = !1,
- a;
- const c = f => {
- if (s) return;
- const d = Ct(f);
- d &&
- !a &&
- (d.addEventListener(e, t, { capture: i, passive: o }), (a = !0));
- },
- l = f => {
- if (s) return;
- const d = Ct(f);
- d && a && (d.removeEventListener(e, t, i), (a = !1));
- };
- Fr(() => l(r)), po(() => l(r)), Bh(() => c(r));
- let u;
- return (
- ke(r) &&
- (u = De(r, (f, d) => {
- l(d), c(f);
- })),
- () => {
- u == null || u(), l(r), (s = !0);
- }
- );
- }
- function pT(e, t, n = {}) {
- if (!Tt) return;
- const { eventName: r = 'click' } = n;
- Nc(
- r,
- i => {
- (Array.isArray(e) ? e : [e]).every(c => {
- const l = Ct(c);
- return l && !l.contains(i.target);
- }) && t(i);
- },
- { target: document }
- );
- }
- var Ji, La;
- function Hw() {
- if (!Ji && ((Ji = Ee(0)), (La = Ee(0)), Tt)) {
- const e = () => {
- (Ji.value = window.innerWidth), (La.value = window.innerHeight);
- };
- e(),
- window.addEventListener('resize', e, { passive: !0 }),
- window.addEventListener('orientationchange', e, { passive: !0 });
- }
- return { width: Ji, height: La };
- }
- var Vw = /scroll|auto|overlay/i,
- Dh = Tt ? window : void 0;
- function qw(e) {
- return e.tagName !== 'HTML' && e.tagName !== 'BODY' && e.nodeType === 1;
- }
- function jc(e, t = Dh) {
- let n = e;
- for (; n && n !== t && qw(n); ) {
- const { overflowY: r } = window.getComputedStyle(n);
- if (Vw.test(r)) return n;
- n = n.parentNode;
- }
- return t;
- }
- function hT(e, t = Dh) {
- const n = Ee();
- return (
- kt(() => {
- e.value && (n.value = jc(e.value, t));
- }),
- n
- );
- }
- var Qi;
- function mT() {
- if (!Qi && ((Qi = Ee('visible')), Tt)) {
- const e = () => {
- Qi.value = document.hidden ? 'hidden' : 'visible';
- };
- e(), window.addEventListener('visibilitychange', e);
- }
- return Qi;
- }
- var zw = Symbol('van-field');
- function gT(e) {
- const t = rt(zw, null);
- t &&
- !t.customValue.value &&
- ((t.customValue.value = e),
- De(e, () => {
- t.resetValidation(), t.validateWithTrigger('onChange');
- }));
- }
- function Ww(e) {
- const t = 'scrollTop' in e ? e.scrollTop : e.pageYOffset;
- return Math.max(t, 0);
- }
- function gf(e, t) {
- 'scrollTop' in e ? (e.scrollTop = t) : e.scrollTo(e.scrollX, t);
- }
- function Lh() {
- return (
- window.pageYOffset ||
- document.documentElement.scrollTop ||
- document.body.scrollTop ||
- 0
- );
- }
- function Kw(e) {
- gf(window, e), gf(document.body, e);
- }
- function yT(e, t) {
- if (e === window) return 0;
- const n = t ? Ww(t) : Lh();
- return Ti(e).top + n;
- }
- const Gw = Rw();
- function vT() {
- Gw && Kw(Lh());
- }
- const Yw = e => e.stopPropagation();
- function Uc(e, t) {
- (typeof e.cancelable != 'boolean' || e.cancelable) && e.preventDefault(),
- t && Yw(e);
- }
- function bT(e) {
- const t = Ct(e);
- if (!t) return !1;
- const n = window.getComputedStyle(t),
- r = n.display === 'none',
- o = t.offsetParent === null && n.position !== 'fixed';
- return r || o;
- }
- const { width: Nh, height: jh } = Hw();
- function Nt(e) {
- if (rr(e)) return Mh(e) ? `${e}px` : String(e);
- }
- function Uh(e) {
- if (rr(e)) {
- if (Array.isArray(e)) return { width: Nt(e[0]), height: Nt(e[1]) };
- const t = Nt(e);
- return { width: t, height: t };
- }
- }
- function Hh(e) {
- const t = {};
- return e !== void 0 && (t.zIndex = +e), t;
- }
- let Na;
- function Jw() {
- if (!Na) {
- const e = document.documentElement,
- t = e.style.fontSize || window.getComputedStyle(e).fontSize;
- Na = parseFloat(t);
- }
- return Na;
- }
- function Qw(e) {
- return (e = e.replace(/rem/g, '')), +e * Jw();
- }
- function Xw(e) {
- return (e = e.replace(/vw/g, '')), (+e * Nh.value) / 100;
- }
- function Zw(e) {
- return (e = e.replace(/vh/g, '')), (+e * jh.value) / 100;
- }
- function _T(e) {
- if (typeof e == 'number') return e;
- if (ua) {
- if (e.includes('rem')) return Qw(e);
- if (e.includes('vw')) return Xw(e);
- if (e.includes('vh')) return Zw(e);
- }
- return parseFloat(e);
- }
- const e0 = /-(\w)/g,
- Vh = e => e.replace(e0, (t, n) => n.toUpperCase());
- function wT(e, t = 2) {
- let n = e + '';
- for (; n.length < t; ) n = '0' + n;
- return n;
- }
- const ET = (e, t, n) => Math.min(Math.max(e, t), n);
- function yf(e, t, n) {
- const r = e.indexOf(t);
- return r === -1
- ? e
- : t === '-' && r !== 0
- ? e.slice(0, r)
- : e.slice(0, r + 1) + e.slice(r).replace(n, '');
- }
- function ST(e, t = !0, n = !0) {
- t ? (e = yf(e, '.', /\./g)) : (e = e.split('.')[0]),
- n ? (e = yf(e, '-', /-/g)) : (e = e.replace(/-/, ''));
- const r = t ? /[^-0-9.]/g : /[^-0-9]/g;
- return e.replace(r, '');
- }
- function xT(e, t) {
- return Math.round((e + t) * 1e10) / 1e10;
- }
- const { hasOwnProperty: t0 } = Object.prototype;
- function n0(e, t, n) {
- const r = t[n];
- rr(r) &&
- (!t0.call(e, n) || !Ci(r) ? (e[n] = r) : (e[n] = qh(Object(e[n]), r)));
- }
- function qh(e, t) {
- return (
- Object.keys(t).forEach(n => {
- n0(e, t, n);
- }),
- e
- );
- }
- var r0 = {
- name: '姓名',
- tel: '电话',
- save: '保存',
- clear: '清空',
- cancel: '取消',
- confirm: '确认',
- delete: '删除',
- loading: '加载中...',
- noCoupon: '暂无优惠券',
- nameEmpty: '请填写姓名',
- addContact: '添加联系人',
- telInvalid: '请填写正确的电话',
- vanCalendar: {
- end: '结束',
- start: '开始',
- title: '日期选择',
- weekdays: ['日', '一', '二', '三', '四', '五', '六'],
- monthTitle: (e, t) => `${e}年${t}月`,
- rangePrompt: e => `最多选择 ${e} 天`
- },
- vanCascader: { select: '请选择' },
- vanPagination: { prev: '上一页', next: '下一页' },
- vanPullRefresh: { pulling: '下拉即可刷新...', loosing: '释放即可刷新...' },
- vanSubmitBar: { label: '合计:' },
- vanCoupon: {
- unlimited: '无门槛',
- discount: e => `${e}折`,
- condition: e => `满${e}元可用`
- },
- vanCouponCell: { title: '优惠券', count: e => `${e}张可用` },
- vanCouponList: {
- exchange: '兑换',
- close: '不使用',
- enable: '可用',
- disabled: '不可用',
- placeholder: '输入优惠码'
- },
- vanAddressEdit: {
- area: '地区',
- areaEmpty: '请选择地区',
- addressEmpty: '请填写详细地址',
- addressDetail: '详细地址',
- defaultAddress: '设为默认收货地址'
- },
- vanAddressList: { add: '新增地址' }
- };
- const vf = Ee('zh-CN'),
- bf = ct({ 'zh-CN': r0 }),
- o0 = {
- messages() {
- return bf[vf.value];
- },
- use(e, t) {
- (vf.value = e), this.add({ [e]: t });
- },
- add(e = {}) {
- qh(bf, e);
- }
- };
- var i0 = o0;
- function s0(e) {
- const t = Vh(e) + '.';
- return (n, ...r) => {
- const o = i0.messages(),
- i = df(o, t + n) || df(o, n);
- return Ps(i) ? i(...r) : i;
- };
- }
- function Pl(e, t) {
- return t
- ? typeof t == 'string'
- ? ` ${e}--${t}`
- : Array.isArray(t)
- ? t.reduce((n, r) => n + Pl(e, r), '')
- : Object.keys(t).reduce((n, r) => n + (t[r] ? Pl(e, r) : ''), '')
- : '';
- }
- function a0(e) {
- return (t, n) => (
- t && typeof t != 'string' && ((n = t), (t = '')),
- (t = t ? `${e}__${t}` : e),
- `${t}${Pl(t, n)}`
- );
- }
- function Mt(e) {
- const t = `van-${e}`;
- return [t, a0(t), s0(t)];
- }
- const Dr = 'van-hairline',
- l0 = `${Dr}--top`,
- c0 = `${Dr}--left`,
- OT = `${Dr}--right`,
- u0 = `${Dr}--bottom`,
- f0 = `${Dr}--surround`,
- CT = `${Dr}--top-bottom`,
- TT = `${Dr}-unset--top-bottom`,
- $l = 'van-haptics-feedback',
- AT = Symbol('van-form'),
- PT = 500,
- _f = 5;
- function zh(e, { args: t = [], done: n, canceled: r }) {
- if (e) {
- const o = e.apply(null, t);
- Iw(o)
- ? o
- .then(i => {
- i ? n() : r && r();
- })
- .catch(ci)
- : o
- ? n()
- : r && r();
- } else n();
- }
- function Ht(e) {
- return (
- (e.install = t => {
- const { name: n } = e;
- n && (t.component(n, e), t.component(Vh(`-${n}`), e));
- }),
- e
- );
- }
- const Wh = Symbol();
- function d0(e) {
- const t = rt(Wh, null);
- t &&
- De(t, n => {
- n && e();
- });
- }
- const p0 = (e, t) => {
- const n = Ee(),
- r = () => {
- n.value = Ti(e).height;
- };
- return (
- kt(() => {
- if ((St(r), t)) for (let o = 1; o <= 3; o++) setTimeout(r, 100 * o);
- }),
- d0(() => St(r)),
- De([Nh, jh], r),
- n
- );
- };
- function Kh(e, t) {
- const n = p0(e, !0);
- return r =>
- T(
- 'div',
- {
- class: t('placeholder'),
- style: { height: n.value ? `${n.value}px` : void 0 }
- },
- [r()]
- );
- }
- const [Gh, wf] = Mt('action-bar'),
- Yh = Symbol(Gh),
- h0 = { placeholder: Boolean, safeAreaInsetBottom: jt };
- var m0 = He({
- name: Gh,
- props: h0,
- setup(e, { slots: t }) {
- const n = Ee(),
- r = Kh(n, wf),
- { linkChildren: o } = Nw(Yh);
- o();
- const i = () => {
- var s;
- return T(
- 'div',
- {
- ref: n,
- class: [wf(), { 'van-safe-area-bottom': e.safeAreaInsetBottom }]
- },
- [(s = t.default) == null ? void 0 : s.call(t)]
- );
- };
- return () => (e.placeholder ? r(i) : i());
- }
- });
- const g0 = Ht(m0);
- function Hc(e) {
- const t = Ze();
- t && At(t.proxy, e);
- }
- const Jh = { to: [String, Object], url: String, replace: Boolean };
- function y0({ to: e, url: t, replace: n, $router: r }) {
- e && r
- ? r[n ? 'replace' : 'push'](e)
- : t && (n ? location.replace(t) : (location.href = t));
- }
- function Qh() {
- const e = Ze().proxy;
- return () => y0(e);
- }
- const [v0, Ef] = Mt('badge'),
- b0 = {
- dot: Boolean,
- max: ut,
- tag: nt('div'),
- color: String,
- offset: Array,
- content: ut,
- showZero: jt,
- position: nt('top-right')
- };
- var _0 = He({
- name: v0,
- props: b0,
- setup(e, { slots: t }) {
- const n = () => {
- if (t.content) return !0;
- const { content: a, showZero: c } = e;
- return rr(a) && a !== '' && (c || (a !== 0 && a !== '0'));
- },
- r = () => {
- const { dot: a, max: c, content: l } = e;
- if (!a && n())
- return t.content
- ? t.content()
- : rr(c) && Mh(l) && +l > +c
- ? `${c}+`
- : l;
- },
- o = a => (a.startsWith('-') ? a.replace('-', '') : `-${a}`),
- i = Me(() => {
- const a = { background: e.color };
- if (e.offset) {
- const [c, l] = e.offset,
- { position: u } = e,
- [f, d] = u.split('-');
- t.default
- ? (typeof l == 'number'
- ? (a[f] = Nt(f === 'top' ? l : -l))
- : (a[f] = f === 'top' ? Nt(l) : o(l)),
- typeof c == 'number'
- ? (a[d] = Nt(d === 'left' ? c : -c))
- : (a[d] = d === 'left' ? Nt(c) : o(c)))
- : ((a.marginTop = Nt(l)), (a.marginLeft = Nt(c)));
- }
- return a;
- }),
- s = () => {
- if (n() || e.dot)
- return T(
- 'div',
- {
- class: Ef([e.position, { dot: e.dot, fixed: !!t.default }]),
- style: i.value
- },
- [r()]
- );
- };
- return () => {
- if (t.default) {
- const { tag: a } = e;
- return T(
- a,
- { class: Ef('wrapper') },
- { default: () => [t.default(), s()] }
- );
- }
- return s();
- };
- }
- });
- const w0 = Ht(_0);
- let E0 = 2e3;
- const S0 = () => ++E0,
- [x0, $T] = Mt('config-provider'),
- O0 = Symbol(x0),
- [C0, Sf] = Mt('icon'),
- T0 = e => (e == null ? void 0 : e.includes('/')),
- A0 = {
- dot: Boolean,
- tag: nt('i'),
- name: String,
- size: ut,
- badge: ut,
- color: String,
- badgeProps: Object,
- classPrefix: String
- };
- var P0 = He({
- name: C0,
- props: A0,
- setup(e, { slots: t }) {
- const n = rt(O0, null),
- r = Me(
- () => e.classPrefix || (n == null ? void 0 : n.iconPrefix) || Sf()
- );
- return () => {
- const { tag: o, dot: i, name: s, size: a, badge: c, color: l } = e,
- u = T0(s);
- return T(
- w0,
- ir(
- {
- dot: i,
- tag: o,
- class: [r.value, u ? '' : `${r.value}-${s}`],
- style: { color: l, fontSize: Nt(a) },
- content: c
- },
- e.badgeProps
- ),
- {
- default: () => {
- var f;
- return [
- (f = t.default) == null ? void 0 : f.call(t),
- u && T('img', { class: Sf('image'), src: s }, null)
- ];
- }
- }
- );
- };
- }
- });
- const fa = Ht(P0),
- [$0, zo] = Mt('loading'),
- I0 = Array(12)
- .fill(null)
- .map((e, t) => T('i', { class: zo('line', String(t + 1)) }, null)),
- R0 = T('svg', { class: zo('circular'), viewBox: '25 25 50 50' }, [
- T('circle', { cx: '50', cy: '50', r: '20', fill: 'none' }, null)
- ]),
- k0 = {
- size: ut,
- type: nt('circular'),
- color: String,
- vertical: Boolean,
- textSize: ut,
- textColor: String
- };
- var M0 = He({
- name: $0,
- props: k0,
- setup(e, { slots: t }) {
- const n = Me(() => At({ color: e.color }, Uh(e.size))),
- r = () => {
- const i = e.type === 'spinner' ? I0 : R0;
- return T('span', { class: zo('spinner', e.type), style: n.value }, [
- t.icon ? t.icon() : i
- ]);
- },
- o = () => {
- var i;
- if (t.default)
- return T(
- 'span',
- {
- class: zo('text'),
- style: {
- fontSize: Nt(e.textSize),
- color: (i = e.textColor) != null ? i : e.color
- }
- },
- [t.default()]
- );
- };
- return () => {
- const { type: i, vertical: s } = e;
- return T(
- 'div',
- {
- class: zo([i, { vertical: s }]),
- 'aria-live': 'polite',
- 'aria-busy': !0
- },
- [r(), o()]
- );
- };
- }
- });
- const Xh = Ht(M0),
- [F0, Ur] = Mt('button'),
- B0 = At({}, Jh, {
- tag: nt('button'),
- text: String,
- icon: String,
- type: nt('default'),
- size: nt('normal'),
- color: String,
- block: Boolean,
- plain: Boolean,
- round: Boolean,
- square: Boolean,
- loading: Boolean,
- hairline: Boolean,
- disabled: Boolean,
- iconPrefix: String,
- nativeType: nt('button'),
- loadingSize: ut,
- loadingText: String,
- loadingType: String,
- iconPosition: nt('left')
- });
- var D0 = He({
- name: F0,
- props: B0,
- emits: ['click'],
- setup(e, { emit: t, slots: n }) {
- const r = Qh(),
- o = () =>
- n.loading
- ? n.loading()
- : T(
- Xh,
- {
- size: e.loadingSize,
- type: e.loadingType,
- class: Ur('loading')
- },
- null
- ),
- i = () => {
- if (e.loading) return o();
- if (n.icon) return T('div', { class: Ur('icon') }, [n.icon()]);
- if (e.icon)
- return T(
- fa,
- { name: e.icon, class: Ur('icon'), classPrefix: e.iconPrefix },
- null
- );
- },
- s = () => {
- let l;
- if (
- (e.loading
- ? (l = e.loadingText)
- : (l = n.default ? n.default() : e.text),
- l)
- )
- return T('span', { class: Ur('text') }, [l]);
- },
- a = () => {
- const { color: l, plain: u } = e;
- if (l) {
- const f = { color: u ? l : 'white' };
- return (
- u || (f.background = l),
- l.includes('gradient') ? (f.border = 0) : (f.borderColor = l),
- f
- );
- }
- },
- c = l => {
- e.loading ? Uc(l) : e.disabled || (t('click', l), r());
- };
- return () => {
- const {
- tag: l,
- type: u,
- size: f,
- block: d,
- round: h,
- plain: g,
- square: w,
- loading: E,
- disabled: y,
- hairline: v,
- nativeType: O,
- iconPosition: C
- } = e,
- x = [
- Ur([
- u,
- f,
- {
- plain: g,
- block: d,
- round: h,
- square: w,
- loading: E,
- disabled: y,
- hairline: v
- }
- ]),
- { [f0]: v }
- ];
- return T(
- l,
- { type: O, class: x, style: a(), disabled: y, onClick: c },
- {
- default: () => [
- T('div', { class: Ur('content') }, [
- C === 'left' && i(),
- s(),
- C === 'right' && i()
- ])
- ]
- }
- );
- };
- }
- });
- const Is = Ht(D0),
- [L0, N0] = Mt('action-bar-button'),
- j0 = At({}, Jh, {
- type: String,
- text: String,
- icon: String,
- color: String,
- loading: Boolean,
- disabled: Boolean
- });
- var U0 = He({
- name: L0,
- props: j0,
- setup(e, { slots: t }) {
- const n = Qh(),
- { parent: r, index: o } = Bw(Yh),
- i = Me(() => {
- if (r) {
- const a = r.children[o.value - 1];
- return !(a && 'isButton' in a);
- }
- }),
- s = Me(() => {
- if (r) {
- const a = r.children[o.value + 1];
- return !(a && 'isButton' in a);
- }
- });
- return (
- Hc({ isButton: !0 }),
- () => {
- const {
- type: a,
- icon: c,
- text: l,
- color: u,
- loading: f,
- disabled: d
- } = e;
- return T(
- Is,
- {
- class: N0([a, { last: s.value, first: i.value }]),
- size: 'large',
- type: a,
- icon: c,
- color: u,
- loading: f,
- disabled: d,
- onClick: n
- },
- { default: () => [t.default ? t.default() : l] }
- );
- }
- );
- }
- });
- const xf = Ht(U0),
- Vc = {
- show: Boolean,
- zIndex: ut,
- overlay: jt,
- duration: ut,
- teleport: [String, Object],
- lockScroll: jt,
- lazyRender: jt,
- beforeClose: Function,
- overlayStyle: Object,
- overlayClass: ui,
- transitionAppear: Boolean,
- closeOnClickOverlay: jt
- },
- H0 = Object.keys(Vc);
- function V0(e, t) {
- return e > t ? 'horizontal' : t > e ? 'vertical' : '';
- }
- function q0() {
- const e = Ee(0),
- t = Ee(0),
- n = Ee(0),
- r = Ee(0),
- o = Ee(0),
- i = Ee(0),
- s = Ee(''),
- a = Ee(!0),
- c = () => s.value === 'vertical',
- l = () => s.value === 'horizontal',
- u = () => {
- (n.value = 0),
- (r.value = 0),
- (o.value = 0),
- (i.value = 0),
- (s.value = ''),
- (a.value = !0);
- };
- return {
- move: h => {
- const g = h.touches[0];
- (n.value = (g.clientX < 0 ? 0 : g.clientX) - e.value),
- (r.value = g.clientY - t.value),
- (o.value = Math.abs(n.value)),
- (i.value = Math.abs(r.value));
- const w = 10;
- (!s.value || (o.value < w && i.value < w)) &&
- (s.value = V0(o.value, i.value)),
- a.value && (o.value > _f || i.value > _f) && (a.value = !1);
- },
- start: h => {
- u(), (e.value = h.touches[0].clientX), (t.value = h.touches[0].clientY);
- },
- reset: u,
- startX: e,
- startY: t,
- deltaX: n,
- deltaY: r,
- offsetX: o,
- offsetY: i,
- direction: s,
- isVertical: c,
- isHorizontal: l,
- isTap: a
- };
- }
- let Co = 0;
- const Of = 'van-overflow-hidden';
- function z0(e, t) {
- const n = q0(),
- r = '01',
- o = '10',
- i = u => {
- n.move(u);
- const f = n.deltaY.value > 0 ? o : r,
- d = jc(u.target, e.value),
- { scrollHeight: h, offsetHeight: g, scrollTop: w } = d;
- let E = '11';
- w === 0 ? (E = g >= h ? '00' : '01') : w + g >= h && (E = '10'),
- E !== '11' &&
- n.isVertical() &&
- !(parseInt(E, 2) & parseInt(f, 2)) &&
- Uc(u, !0);
- },
- s = () => {
- document.addEventListener('touchstart', n.start),
- document.addEventListener('touchmove', i, { passive: !1 }),
- Co || document.body.classList.add(Of),
- Co++;
- },
- a = () => {
- Co &&
- (document.removeEventListener('touchstart', n.start),
- document.removeEventListener('touchmove', i),
- Co--,
- Co || document.body.classList.remove(Of));
- },
- c = () => t() && s(),
- l = () => t() && a();
- Bh(c),
- po(l),
- ho(l),
- De(t, u => {
- u ? s() : a();
- });
- }
- function Zh(e) {
- const t = Ee(!1);
- return (
- De(
- e,
- n => {
- n && (t.value = n);
- },
- { immediate: !0 }
- ),
- n => () => t.value ? n() : null
- );
- }
- const [W0, K0] = Mt('overlay'),
- G0 = {
- show: Boolean,
- zIndex: ut,
- duration: ut,
- className: ui,
- lockScroll: jt,
- lazyRender: jt,
- customStyle: Object
- };
- var Y0 = He({
- name: W0,
- props: G0,
- setup(e, { slots: t }) {
- const n = Ee(),
- r = Zh(() => e.show || !e.lazyRender),
- o = s => {
- e.lockScroll && Uc(s, !0);
- },
- i = r(() => {
- var s;
- const a = At(Hh(e.zIndex), e.customStyle);
- return (
- rr(e.duration) && (a.animationDuration = `${e.duration}s`),
- Ec(
- T('div', { ref: n, style: a, class: [K0(), e.className] }, [
- (s = t.default) == null ? void 0 : s.call(t)
- ]),
- [[ca, e.show]]
- )
- );
- });
- return (
- Nc('touchmove', o, { target: n }),
- () => T(xi, { name: 'van-fade', appear: !0 }, { default: i })
- );
- }
- });
- const J0 = Ht(Y0),
- Q0 = At({}, Vc, {
- round: Boolean,
- position: nt('center'),
- closeIcon: nt('cross'),
- closeable: Boolean,
- transition: String,
- iconPrefix: String,
- closeOnPopstate: Boolean,
- closeIconPosition: nt('top-right'),
- safeAreaInsetTop: Boolean,
- safeAreaInsetBottom: Boolean
- }),
- [X0, Cf] = Mt('popup');
- var Z0 = He({
- name: X0,
- inheritAttrs: !1,
- props: Q0,
- emits: [
- 'open',
- 'close',
- 'opened',
- 'closed',
- 'keydown',
- 'update:show',
- 'clickOverlay',
- 'clickCloseIcon'
- ],
- setup(e, { emit: t, attrs: n, slots: r }) {
- let o, i;
- const s = Ee(),
- a = Ee(),
- c = Zh(() => e.show || !e.lazyRender),
- l = Me(() => {
- const N = { zIndex: s.value };
- if (rr(e.duration)) {
- const A =
- e.position === 'center'
- ? 'animationDuration'
- : 'transitionDuration';
- N[A] = `${e.duration}s`;
- }
- return N;
- }),
- u = () => {
- o ||
- ((o = !0),
- (s.value = e.zIndex !== void 0 ? +e.zIndex : S0()),
- t('open'));
- },
- f = () => {
- o &&
- zh(e.beforeClose, {
- done() {
- (o = !1), t('close'), t('update:show', !1);
- }
- });
- },
- d = N => {
- t('clickOverlay', N), e.closeOnClickOverlay && f();
- },
- h = () => {
- if (e.overlay)
- return T(
- J0,
- {
- show: e.show,
- class: e.overlayClass,
- zIndex: s.value,
- duration: e.duration,
- customStyle: e.overlayStyle,
- role: e.closeOnClickOverlay ? 'button' : void 0,
- tabindex: e.closeOnClickOverlay ? 0 : void 0,
- onClick: d
- },
- { default: r['overlay-content'] }
- );
- },
- g = N => {
- t('clickCloseIcon', N), f();
- },
- w = () => {
- if (e.closeable)
- return T(
- fa,
- {
- role: 'button',
- tabindex: 0,
- name: e.closeIcon,
- class: [Cf('close-icon', e.closeIconPosition), $l],
- classPrefix: e.iconPrefix,
- onClick: g
- },
- null
- );
- };
- let E;
- const y = () => {
- E && clearTimeout(E),
- (E = setTimeout(() => {
- t('opened');
- }));
- },
- v = () => t('closed'),
- O = N => t('keydown', N),
- C = c(() => {
- var N;
- const {
- round: A,
- position: I,
- safeAreaInsetTop: k,
- safeAreaInsetBottom: S
- } = e;
- return Ec(
- T(
- 'div',
- ir(
- {
- ref: a,
- style: l.value,
- role: 'dialog',
- tabindex: 0,
- class: [
- Cf({ round: A, [I]: I }),
- { 'van-safe-area-top': k, 'van-safe-area-bottom': S }
- ],
- onKeydown: O
- },
- n
- ),
- [(N = r.default) == null ? void 0 : N.call(r), w()]
- ),
- [[ca, e.show]]
- );
- }),
- x = () => {
- const { position: N, transition: A, transitionAppear: I } = e,
- k = N === 'center' ? 'van-fade' : `van-popup-slide-${N}`;
- return T(
- xi,
- { name: A || k, appear: I, onAfterEnter: y, onAfterLeave: v },
- { default: C }
- );
- };
- return (
- De(
- () => e.show,
- N => {
- N &&
- !o &&
- (u(),
- n.tabindex === 0 &&
- St(() => {
- var A;
- (A = a.value) == null || A.focus();
- })),
- !N && o && ((o = !1), t('close'));
- }
- ),
- Hc({ popupRef: a }),
- z0(a, () => e.show && e.lockScroll),
- Nc('popstate', () => {
- e.closeOnPopstate && (f(), (i = !1));
- }),
- kt(() => {
- e.show && u();
- }),
- Si(() => {
- i && (t('update:show', !0), (i = !1));
- }),
- po(() => {
- e.show && e.teleport && (f(), (i = !0));
- }),
- Sr(Wh, () => e.show),
- () =>
- e.teleport
- ? T(Kp, { to: e.teleport }, { default: () => [h(), x()] })
- : T(Be, null, [h(), x()])
- );
- }
- });
- const em = Ht(Z0);
- let eE = 0;
- function tE() {
- const e = Ze(),
- { name: t = 'unknown' } = (e == null ? void 0 : e.type) || {};
- return `${t}-${++eE}`;
- }
- let To = 0;
- function nE(e) {
- e
- ? (To || document.body.classList.add('van-toast--unclickable'), To++)
- : To &&
- (To--, To || document.body.classList.remove('van-toast--unclickable'));
- }
- const [rE, Hr] = Mt('toast'),
- oE = [
- 'show',
- 'overlay',
- 'teleport',
- 'transition',
- 'overlayClass',
- 'overlayStyle',
- 'closeOnClickOverlay'
- ],
- iE = {
- icon: String,
- show: Boolean,
- type: nt('text'),
- overlay: Boolean,
- message: ut,
- iconSize: ut,
- duration: kw(2e3),
- position: nt('middle'),
- teleport: [String, Object],
- wordBreak: String,
- className: ui,
- iconPrefix: String,
- transition: nt('van-fade'),
- loadingType: String,
- forbidClick: Boolean,
- overlayClass: ui,
- overlayStyle: Object,
- closeOnClick: Boolean,
- closeOnClickOverlay: Boolean
- };
- var tm = He({
- name: rE,
- props: iE,
- emits: ['update:show'],
- setup(e, { emit: t, slots: n }) {
- let r,
- o = !1;
- const i = () => {
- const f = e.show && e.forbidClick;
- o !== f && ((o = f), nE(o));
- },
- s = f => t('update:show', f),
- a = () => {
- e.closeOnClick && s(!1);
- },
- c = () => clearTimeout(r),
- l = () => {
- const {
- icon: f,
- type: d,
- iconSize: h,
- iconPrefix: g,
- loadingType: w
- } = e;
- if (f || d === 'success' || d === 'fail')
- return T(
- fa,
- { name: f || d, size: h, class: Hr('icon'), classPrefix: g },
- null
- );
- if (d === 'loading')
- return T(Xh, { class: Hr('loading'), size: h, type: w }, null);
- },
- u = () => {
- const { type: f, message: d } = e;
- if (n.message) return T('div', { class: Hr('text') }, [n.message()]);
- if (rr(d) && d !== '')
- return f === 'html'
- ? T(
- 'div',
- { key: 0, class: Hr('text'), innerHTML: String(d) },
- null
- )
- : T('div', { class: Hr('text') }, [d]);
- };
- return (
- De(() => [e.show, e.forbidClick], i),
- De(
- () => [e.show, e.type, e.message, e.duration],
- () => {
- c(),
- e.show &&
- e.duration > 0 &&
- (r = setTimeout(() => {
- s(!1);
- }, e.duration));
- }
- ),
- kt(i),
- Fr(i),
- () =>
- T(
- em,
- ir(
- {
- class: [
- Hr([
- e.position,
- e.wordBreak === 'normal' ? 'break-normal' : e.wordBreak,
- { [e.type]: !e.icon }
- ]),
- e.className
- ],
- lockScroll: !1,
- onClick: a,
- onClosed: c,
- 'onUpdate:show': s
- },
- Fh(e, oE)
- ),
- { default: () => [l(), u()] }
- )
- );
- }
- });
- function nm() {
- const e = ct({ show: !1 }),
- t = o => {
- e.show = o;
- },
- n = o => {
- At(e, o, { transitionAppear: !0 }), t(!0);
- },
- r = () => t(!1);
- return (
- Hc({ open: n, close: r, toggle: t }),
- { open: n, close: r, state: e, toggle: t }
- );
- }
- function rm(e) {
- const t = Dc(e),
- n = document.createElement('div');
- return (
- document.body.appendChild(n),
- {
- instance: t.mount(n),
- unmount() {
- t.unmount(), document.body.removeChild(n);
- }
- }
- );
- }
- const sE = {
- icon: '',
- type: 'text',
- message: '',
- className: '',
- overlay: !1,
- onClose: void 0,
- onOpened: void 0,
- duration: 2e3,
- teleport: 'body',
- iconSize: void 0,
- iconPrefix: void 0,
- position: 'middle',
- transition: 'van-fade',
- forbidClick: !1,
- loadingType: void 0,
- overlayClass: '',
- overlayStyle: void 0,
- closeOnClick: !1,
- closeOnClickOverlay: !1
- };
- let Hn = [],
- aE = !1,
- Tf = At({}, sE);
- const lE = new Map();
- function om(e) {
- return Ci(e) ? e : { message: e };
- }
- function cE() {
- const { instance: e, unmount: t } = rm({
- setup() {
- const n = Ee(''),
- { open: r, state: o, close: i, toggle: s } = nm(),
- a = () => {},
- c = () => T(tm, ir(o, { onClosed: a, 'onUpdate:show': s }), null);
- return (
- De(n, l => {
- o.message = l;
- }),
- (Ze().render = c),
- { open: r, close: i, message: n }
- );
- }
- });
- return e;
- }
- function uE() {
- if (!Hn.length || aE) {
- const e = cE();
- Hn.push(e);
- }
- return Hn[Hn.length - 1];
- }
- function Il(e = {}) {
- if (!ua) return {};
- const t = uE(),
- n = om(e);
- return t.open(At({}, Tf, lE.get(n.type || Tf.type), n)), t;
- }
- const im = e => t => Il(At({ type: e }, om(t))),
- fE = im('loading'),
- IT = im('success'),
- dE = e => {
- Hn.length &&
- (e
- ? (Hn.forEach(t => {
- t.close();
- }),
- (Hn = []))
- : Hn[0].close());
- };
- Ht(tm);
- const Af =
- Tt &&
- 'IntersectionObserver' in window &&
- 'IntersectionObserverEntry' in window &&
- 'intersectionRatio' in window.IntersectionObserverEntry.prototype,
- dr = { event: 'event', observer: 'observer' };
- function Fo(e, t) {
- if (!e.length) return;
- const n = e.indexOf(t);
- if (n > -1) return e.splice(n, 1);
- }
- function Pf(e, t) {
- if (e.tagName !== 'IMG' || !e.getAttribute('data-srcset')) return;
- let n = e.getAttribute('data-srcset');
- const o = e.parentNode.offsetWidth * t;
- let i, s, a;
- n = n.trim().split(',');
- const c = n.map(
- f => (
- (f = f.trim()),
- (i = f.lastIndexOf(' ')),
- i === -1
- ? ((s = f), (a = 999998))
- : ((s = f.substr(0, i)),
- (a = parseInt(f.substr(i + 1, f.length - i - 2), 10))),
- [a, s]
- )
- );
- c.sort((f, d) => {
- if (f[0] < d[0]) return 1;
- if (f[0] > d[0]) return -1;
- if (f[0] === d[0]) {
- if (d[1].indexOf('.webp', d[1].length - 5) !== -1) return 1;
- if (f[1].indexOf('.webp', f[1].length - 5) !== -1) return -1;
- }
- return 0;
- });
- let l = '',
- u;
- for (let f = 0; f < c.length; f++) {
- (u = c[f]), (l = u[1]);
- const d = c[f + 1];
- if (d && d[0] < o) {
- l = u[1];
- break;
- } else if (!d) {
- l = u[1];
- break;
- }
- }
- return l;
- }
- const pE = (e = 1) => (Tt && window.devicePixelRatio) || e;
- function hE() {
- if (!Tt) return !1;
- let e = !0;
- try {
- const t = document.createElement('canvas');
- t.getContext &&
- t.getContext('2d') &&
- (e = t.toDataURL('image/webp').indexOf('data:image/webp') === 0);
- } catch (t) {
- e = !1;
- }
- return e;
- }
- function mE(e, t) {
- let n = null,
- r = 0;
- return function (...o) {
- if (n) return;
- const i = Date.now() - r,
- s = () => {
- (r = Date.now()), (n = !1), e.apply(this, o);
- };
- i >= t ? s() : (n = setTimeout(s, t));
- };
- }
- function gE(e, t, n) {
- e.addEventListener(t, n, { capture: !1, passive: !0 });
- }
- function yE(e, t, n) {
- e.removeEventListener(t, n, !1);
- }
- const Rl = (e, t, n) => {
- const r = new Image();
- if (!e || !e.src) return n(new Error('image src is required'));
- (r.src = e.src),
- e.cors && (r.crossOrigin = e.cors),
- (r.onload = () =>
- t({
- naturalHeight: r.naturalHeight,
- naturalWidth: r.naturalWidth,
- src: r.src
- })),
- (r.onerror = o => n(o));
- };
- class vE {
- constructor({ max: t }) {
- (this.options = { max: t || 100 }), (this.caches = []);
- }
- has(t) {
- return this.caches.indexOf(t) > -1;
- }
- add(t) {
- this.has(t) ||
- (this.caches.push(t),
- this.caches.length > this.options.max && this.free());
- }
- free() {
- this.caches.shift();
- }
- }
- const [bE, Xi] = Mt('empty'),
- _E = {
- image: nt('default'),
- imageSize: [Number, String, Array],
- description: String
- };
- var wE = He({
- name: bE,
- props: _E,
- setup(e, { slots: t }) {
- const n = () => {
- const y = t.description ? t.description() : e.description;
- if (y) return T('p', { class: Xi('description') }, [y]);
- },
- r = () => {
- if (t.default) return T('div', { class: Xi('bottom') }, [t.default()]);
- },
- o = tE(),
- i = y => `${o}-${y}`,
- s = y => `url(#${i(y)})`,
- a = (y, v, O) =>
- T(
- 'stop',
- { 'stop-color': y, offset: `${v}%`, 'stop-opacity': O },
- null
- ),
- c = (y, v) => [a(y, 0), a(v, 100)],
- l = y => [
- T('defs', null, [
- T(
- 'radialGradient',
- {
- id: i(y),
- cx: '50%',
- cy: '54%',
- fx: '50%',
- fy: '54%',
- r: '297%',
- gradientTransform: 'matrix(-.16 0 0 -.33 .58 .72)'
- },
- [a('#EBEDF0', 0), a('#F2F3F5', 100, 0.3)]
- )
- ]),
- T(
- 'ellipse',
- { fill: s(y), opacity: '.8', cx: '80', cy: '140', rx: '46', ry: '8' },
- null
- )
- ],
- u = () => [
- T('defs', null, [
- T(
- 'linearGradient',
- { id: i('a'), x1: '64%', y1: '100%', x2: '64%' },
- [a('#FFF', 0, 0.5), a('#F2F3F5', 100)]
- )
- ]),
- T('g', { opacity: '.8' }, [
- T('path', { d: 'M36 131V53H16v20H2v58h34z', fill: s('a') }, null),
- T('path', { d: 'M123 15h22v14h9v77h-31V15z', fill: s('a') }, null)
- ])
- ],
- f = () => [
- T('defs', null, [
- T(
- 'linearGradient',
- { id: i('b'), x1: '64%', y1: '97%', x2: '64%', y2: '0%' },
- [a('#F2F3F5', 0, 0.3), a('#F2F3F5', 100)]
- )
- ]),
- T('g', { opacity: '.8' }, [
- T(
- 'path',
- {
- d: 'M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z',
- fill: s('b')
- },
- null
- ),
- T(
- 'path',
- {
- d: 'M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z',
- fill: s('b')
- },
- null
- )
- ])
- ],
- d = () =>
- T('svg', { viewBox: '0 0 160 160' }, [
- T('defs', null, [
- T(
- 'linearGradient',
- { id: i(1), x1: '64%', y1: '100%', x2: '64%' },
- [a('#FFF', 0, 0.5), a('#F2F3F5', 100)]
- ),
- T('linearGradient', { id: i(2), x1: '50%', x2: '50%', y2: '84%' }, [
- a('#EBEDF0', 0),
- a('#DCDEE0', 100, 0)
- ]),
- T(
- 'linearGradient',
- { id: i(3), x1: '100%', x2: '100%', y2: '100%' },
- [c('#EAEDF0', '#DCDEE0')]
- ),
- T(
- 'radialGradient',
- {
- id: i(4),
- cx: '50%',
- cy: '0%',
- fx: '50%',
- fy: '0%',
- r: '100%',
- gradientTransform: 'matrix(0 1 -.54 0 .5 -.5)'
- },
- [a('#EBEDF0', 0), a('#FFF', 100, 0)]
- )
- ]),
- T('g', { fill: 'none' }, [
- u(),
- T('path', { fill: s(4), d: 'M0 139h160v21H0z' }, null),
- T(
- 'path',
- {
- d: 'M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z',
- fill: s(2)
- },
- null
- ),
- T(
- 'g',
- { opacity: '.6', 'stroke-linecap': 'round', 'stroke-width': '7' },
- [
- T(
- 'path',
- { d: 'M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13', stroke: s(3) },
- null
- ),
- T('path', { d: 'M53 36a34 34 0 0 0 0 48', stroke: s(3) }, null),
- T(
- 'path',
- { d: 'M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13', stroke: s(3) },
- null
- ),
- T('path', { d: 'M106 84a34 34 0 0 0 0-48', stroke: s(3) }, null)
- ]
- ),
- T('g', { transform: 'translate(31 105)' }, [
- T(
- 'rect',
- { fill: '#EBEDF0', width: '98', height: '34', rx: '2' },
- null
- ),
- T(
- 'rect',
- {
- fill: '#FFF',
- x: '9',
- y: '8',
- width: '80',
- height: '18',
- rx: '1.1'
- },
- null
- ),
- T(
- 'rect',
- {
- fill: '#EBEDF0',
- x: '15',
- y: '12',
- width: '18',
- height: '6',
- rx: '1.1'
- },
- null
- )
- ])
- ])
- ]),
- h = () =>
- T('svg', { viewBox: '0 0 160 160' }, [
- T('defs', null, [
- T(
- 'linearGradient',
- { x1: '50%', x2: '50%', y2: '100%', id: i(5) },
- [c('#F2F3F5', '#DCDEE0')]
- ),
- T(
- 'linearGradient',
- { x1: '95%', y1: '48%', x2: '5.5%', y2: '51%', id: i(6) },
- [c('#EAEDF1', '#DCDEE0')]
- ),
- T(
- 'linearGradient',
- { y1: '45%', x2: '100%', y2: '54%', id: i(7) },
- [c('#EAEDF1', '#DCDEE0')]
- )
- ]),
- u(),
- f(),
- T('g', { transform: 'translate(36 50)', fill: 'none' }, [
- T('g', { transform: 'translate(8)' }, [
- T(
- 'rect',
- {
- fill: '#EBEDF0',
- opacity: '.6',
- x: '38',
- y: '13',
- width: '36',
- height: '53',
- rx: '2'
- },
- null
- ),
- T(
- 'rect',
- { fill: s(5), width: '64', height: '66', rx: '2' },
- null
- ),
- T(
- 'rect',
- {
- fill: '#FFF',
- x: '6',
- y: '6',
- width: '52',
- height: '55',
- rx: '1'
- },
- null
- ),
- T('g', { transform: 'translate(15 17)', fill: s(6) }, [
- T('rect', { width: '34', height: '6', rx: '1' }, null),
- T('path', { d: 'M0 14h34v6H0z' }, null),
- T('rect', { y: '28', width: '34', height: '6', rx: '1' }, null)
- ])
- ]),
- T(
- 'rect',
- { fill: s(7), y: '61', width: '88', height: '28', rx: '1' },
- null
- ),
- T(
- 'rect',
- {
- fill: '#F7F8FA',
- x: '29',
- y: '72',
- width: '30',
- height: '6',
- rx: '1'
- },
- null
- )
- ])
- ]),
- g = () =>
- T('svg', { viewBox: '0 0 160 160' }, [
- T('defs', null, [
- T(
- 'linearGradient',
- { x1: '50%', x2: '50%', y2: '100%', id: i(8) },
- [c('#EAEDF1', '#DCDEE0')]
- )
- ]),
- u(),
- f(),
- l('c'),
- T(
- 'path',
- {
- d: 'm59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z',
- fill: s(8)
- },
- null
- )
- ]),
- w = () =>
- T('svg', { viewBox: '0 0 160 160' }, [
- T('defs', null, [
- T(
- 'linearGradient',
- { x1: '50%', y1: '100%', x2: '50%', id: i(9) },
- [c('#EEE', '#D8D8D8')]
- ),
- T(
- 'linearGradient',
- { x1: '100%', y1: '50%', y2: '50%', id: i(10) },
- [c('#F2F3F5', '#DCDEE0')]
- ),
- T(
- 'linearGradient',
- { x1: '50%', x2: '50%', y2: '100%', id: i(11) },
- [c('#F2F3F5', '#DCDEE0')]
- ),
- T(
- 'linearGradient',
- { x1: '50%', x2: '50%', y2: '100%', id: i(12) },
- [c('#FFF', '#F7F8FA')]
- )
- ]),
- u(),
- f(),
- l('d'),
- T('g', { transform: 'rotate(-45 113 -4)', fill: 'none' }, [
- T(
- 'rect',
- {
- fill: s(9),
- x: '24',
- y: '52.8',
- width: '5.8',
- height: '19',
- rx: '1'
- },
- null
- ),
- T(
- 'rect',
- {
- fill: s(10),
- x: '22.1',
- y: '67.3',
- width: '9.9',
- height: '28',
- rx: '1'
- },
- null
- ),
- T(
- 'circle',
- {
- stroke: s(11),
- 'stroke-width': '8',
- cx: '27',
- cy: '27',
- r: '27'
- },
- null
- ),
- T('circle', { fill: s(12), cx: '27', cy: '27', r: '16' }, null),
- T(
- 'path',
- {
- d: 'M37 7c-8 0-15 5-16 12',
- stroke: s(11),
- 'stroke-width': '3',
- opacity: '.5',
- 'stroke-linecap': 'round',
- transform: 'rotate(45 29 13)'
- },
- null
- )
- ])
- ]),
- E = () => {
- var y;
- if (t.image) return t.image();
- const v = { error: g, search: w, network: d, default: h };
- return (
- ((y = v[e.image]) == null ? void 0 : y.call(v)) ||
- T('img', { src: e.image }, null)
- );
- };
- return () =>
- T('div', { class: Xi() }, [
- T('div', { class: Xi('image'), style: Uh(e.imageSize) }, [E()]),
- n(),
- r()
- ]);
- }
- });
- const EE = Ht(wE),
- [SE, Vt, Zi] = Mt('dialog'),
- xE = At({}, Vc, {
- title: String,
- theme: String,
- width: ut,
- message: [String, Function],
- callback: Function,
- allowHtml: Boolean,
- className: ui,
- transition: nt('van-dialog-bounce'),
- messageAlign: String,
- closeOnPopstate: jt,
- showCancelButton: Boolean,
- cancelButtonText: String,
- cancelButtonColor: String,
- cancelButtonDisabled: Boolean,
- confirmButtonText: String,
- confirmButtonColor: String,
- confirmButtonDisabled: Boolean,
- showConfirmButton: jt,
- closeOnClickOverlay: Boolean
- }),
- OE = [...H0, 'transition', 'closeOnPopstate'];
- var sm = He({
- name: SE,
- props: xE,
- emits: ['confirm', 'cancel', 'keydown', 'update:show'],
- setup(e, { emit: t, slots: n }) {
- const r = Ee(),
- o = ct({ confirm: !1, cancel: !1 }),
- i = y => t('update:show', y),
- s = y => {
- var v;
- i(!1), (v = e.callback) == null || v.call(e, y);
- },
- a = y => () => {
- e.show &&
- (t(y),
- e.beforeClose
- ? ((o[y] = !0),
- zh(e.beforeClose, {
- args: [y],
- done() {
- s(y), (o[y] = !1);
- },
- canceled() {
- o[y] = !1;
- }
- }))
- : s(y));
- },
- c = a('cancel'),
- l = a('confirm'),
- u = Eh(
- y => {
- var v, O;
- if (
- y.target !==
- ((O = (v = r.value) == null ? void 0 : v.popupRef) == null
- ? void 0
- : O.value)
- )
- return;
- ({
- Enter: e.showConfirmButton ? l : ci,
- Escape: e.showCancelButton ? c : ci
- })[y.key](),
- t('keydown', y);
- },
- ['enter', 'esc']
- ),
- f = () => {
- const y = n.title ? n.title() : e.title;
- if (y)
- return T(
- 'div',
- { class: Vt('header', { isolated: !e.message && !n.default }) },
- [y]
- );
- },
- d = y => {
- const { message: v, allowHtml: O, messageAlign: C } = e,
- x = Vt('message', { 'has-title': y, [C]: C }),
- N = Ps(v) ? v() : v;
- return O && typeof N == 'string'
- ? T('div', { class: x, innerHTML: N }, null)
- : T('div', { class: x }, [N]);
- },
- h = () => {
- if (n.default) return T('div', { class: Vt('content') }, [n.default()]);
- const { title: y, message: v, allowHtml: O } = e;
- if (v) {
- const C = !!(y || n.title);
- return T(
- 'div',
- { key: O ? 1 : 0, class: Vt('content', { isolated: !C }) },
- [d(C)]
- );
- }
- },
- g = () =>
- T('div', { class: [l0, Vt('footer')] }, [
- e.showCancelButton &&
- T(
- Is,
- {
- size: 'large',
- text: e.cancelButtonText || Zi('cancel'),
- class: Vt('cancel'),
- style: { color: e.cancelButtonColor },
- loading: o.cancel,
- disabled: e.cancelButtonDisabled,
- onClick: c
- },
- null
- ),
- e.showConfirmButton &&
- T(
- Is,
- {
- size: 'large',
- text: e.confirmButtonText || Zi('confirm'),
- class: [Vt('confirm'), { [c0]: e.showCancelButton }],
- style: { color: e.confirmButtonColor },
- loading: o.confirm,
- disabled: e.confirmButtonDisabled,
- onClick: l
- },
- null
- )
- ]),
- w = () =>
- T(
- g0,
- { class: Vt('footer') },
- {
- default: () => [
- e.showCancelButton &&
- T(
- xf,
- {
- type: 'warning',
- text: e.cancelButtonText || Zi('cancel'),
- class: Vt('cancel'),
- color: e.cancelButtonColor,
- loading: o.cancel,
- disabled: e.cancelButtonDisabled,
- onClick: c
- },
- null
- ),
- e.showConfirmButton &&
- T(
- xf,
- {
- type: 'danger',
- text: e.confirmButtonText || Zi('confirm'),
- class: Vt('confirm'),
- color: e.confirmButtonColor,
- loading: o.confirm,
- disabled: e.confirmButtonDisabled,
- onClick: l
- },
- null
- )
- ]
- }
- ),
- E = () =>
- n.footer ? n.footer() : e.theme === 'round-button' ? w() : g();
- return () => {
- const { width: y, title: v, theme: O, message: C, className: x } = e;
- return T(
- em,
- ir(
- {
- ref: r,
- role: 'dialog',
- class: [Vt([O]), x],
- style: { width: Nt(y) },
- tabindex: 0,
- 'aria-labelledby': v || C,
- onKeydown: u,
- 'onUpdate:show': i
- },
- Fh(e, OE)
- ),
- { default: () => [f(), h(), E()] }
- );
- };
- }
- });
- let kl;
- const CE = {
- title: '',
- width: '',
- theme: null,
- message: '',
- overlay: !0,
- callback: null,
- teleport: 'body',
- className: '',
- allowHtml: !1,
- lockScroll: !0,
- transition: void 0,
- beforeClose: null,
- overlayClass: '',
- overlayStyle: void 0,
- messageAlign: '',
- cancelButtonText: '',
- cancelButtonColor: null,
- cancelButtonDisabled: !1,
- confirmButtonText: '',
- confirmButtonColor: null,
- confirmButtonDisabled: !1,
- showConfirmButton: !0,
- showCancelButton: !1,
- closeOnPopstate: !0,
- closeOnClickOverlay: !1
- };
- let TE = At({}, CE);
- function AE() {
- ({ instance: kl } = rm({
- setup() {
- const { state: t, toggle: n } = nm();
- return () => T(sm, ir(t, { 'onUpdate:show': n }), null);
- }
- }));
- }
- function am(e) {
- return ua
- ? new Promise((t, n) => {
- kl || AE(),
- kl.open(
- At({}, TE, e, {
- callback: r => {
- (r === 'confirm' ? t : n)(r);
- }
- })
- );
- })
- : Promise.resolve();
- }
- const RT = e => am(At({ showCancelButton: !0 }, e)),
- kT = Ht(sm),
- [PE, gn] = Mt('nav-bar'),
- $E = {
- title: String,
- fixed: Boolean,
- zIndex: ut,
- border: jt,
- leftText: String,
- rightText: String,
- leftArrow: Boolean,
- placeholder: Boolean,
- safeAreaInsetTop: Boolean,
- clickable: jt
- };
- var IE = He({
- name: PE,
- props: $E,
- emits: ['clickLeft', 'clickRight'],
- setup(e, { emit: t, slots: n }) {
- const r = Ee(),
- o = Kh(r, gn),
- i = u => t('clickLeft', u),
- s = u => t('clickRight', u),
- a = () =>
- n.left
- ? n.left()
- : [
- e.leftArrow &&
- T(fa, { class: gn('arrow'), name: 'arrow-left' }, null),
- e.leftText && T('span', { class: gn('text') }, [e.leftText])
- ],
- c = () =>
- n.right ? n.right() : T('span', { class: gn('text') }, [e.rightText]),
- l = () => {
- const { title: u, fixed: f, border: d, zIndex: h } = e,
- g = Hh(h),
- w = e.leftArrow || e.leftText || n.left,
- E = e.rightText || n.right;
- return T(
- 'div',
- {
- ref: r,
- style: g,
- class: [
- gn({ fixed: f }),
- { [u0]: d, 'van-safe-area-top': e.safeAreaInsetTop }
- ]
- },
- [
- T('div', { class: gn('content') }, [
- w &&
- T(
- 'div',
- { class: [gn('left'), e.clickable ? $l : ''], onClick: i },
- [a()]
- ),
- T('div', { class: [gn('title'), 'van-ellipsis'] }, [
- n.title ? n.title() : u
- ]),
- E &&
- T(
- 'div',
- { class: [gn('right'), e.clickable ? $l : ''], onClick: s },
- [c()]
- )
- ])
- ]
- );
- };
- return () => (e.fixed && e.placeholder ? o(l) : l());
- }
- });
- const RE = Ht(IE);
- class kE {
- constructor({
- el: t,
- src: n,
- error: r,
- loading: o,
- bindType: i,
- $parent: s,
- options: a,
- cors: c,
- elRenderer: l,
- imageCache: u
- }) {
- (this.el = t),
- (this.src = n),
- (this.error = r),
- (this.loading = o),
- (this.bindType = i),
- (this.attempt = 0),
- (this.cors = c),
- (this.naturalHeight = 0),
- (this.naturalWidth = 0),
- (this.options = a),
- (this.$parent = s),
- (this.elRenderer = l),
- (this.imageCache = u),
- (this.performanceData = { loadStart: 0, loadEnd: 0 }),
- this.filter(),
- this.initState(),
- this.render('loading', !1);
- }
- initState() {
- 'dataset' in this.el
- ? (this.el.dataset.src = this.src)
- : this.el.setAttribute('data-src', this.src),
- (this.state = { loading: !1, error: !1, loaded: !1, rendered: !1 });
- }
- record(t) {
- this.performanceData[t] = Date.now();
- }
- update({ src: t, loading: n, error: r }) {
- const o = this.src;
- (this.src = t),
- (this.loading = n),
- (this.error = r),
- this.filter(),
- o !== this.src && ((this.attempt = 0), this.initState());
- }
- checkInView() {
- const t = Ti(this.el);
- return (
- t.top < window.innerHeight * this.options.preLoad &&
- t.bottom > this.options.preLoadTop &&
- t.left < window.innerWidth * this.options.preLoad &&
- t.right > 0
- );
- }
- filter() {
- Object.keys(this.options.filter).forEach(t => {
- this.options.filter[t](this, this.options);
- });
- }
- renderLoading(t) {
- (this.state.loading = !0),
- Rl(
- { src: this.loading, cors: this.cors },
- () => {
- this.render('loading', !1), (this.state.loading = !1), t();
- },
- () => {
- t(),
- (this.state.loading = !1),
- this.options.silent ||
- console.warn(
- `[@vant/lazyload] load failed with loading image(${this.loading})`
- );
- }
- );
- }
- load(t = ci) {
- if (this.attempt > this.options.attempt - 1 && this.state.error) {
- this.options.silent ||
- console.log(
- `[@vant/lazyload] ${this.src} tried too more than ${this.options.attempt} times`
- ),
- t();
- return;
- }
- if (!(this.state.rendered && this.state.loaded)) {
- if (this.imageCache.has(this.src))
- return (
- (this.state.loaded = !0),
- this.render('loaded', !0),
- (this.state.rendered = !0),
- t()
- );
- this.renderLoading(() => {
- var n, r;
- this.attempt++,
- (r = (n = this.options.adapter).beforeLoad) == null ||
- r.call(n, this, this.options),
- this.record('loadStart'),
- Rl(
- { src: this.src, cors: this.cors },
- o => {
- (this.naturalHeight = o.naturalHeight),
- (this.naturalWidth = o.naturalWidth),
- (this.state.loaded = !0),
- (this.state.error = !1),
- this.record('loadEnd'),
- this.render('loaded', !1),
- (this.state.rendered = !0),
- this.imageCache.add(this.src),
- t();
- },
- o => {
- !this.options.silent && console.error(o),
- (this.state.error = !0),
- (this.state.loaded = !1),
- this.render('error', !1);
- }
- );
- });
- }
- }
- render(t, n) {
- this.elRenderer(this, t, n);
- }
- performance() {
- let t = 'loading',
- n = 0;
- return (
- this.state.loaded &&
- ((t = 'loaded'),
- (n =
- (this.performanceData.loadEnd - this.performanceData.loadStart) /
- 1e3)),
- this.state.error && (t = 'error'),
- { src: this.src, state: t, time: n }
- );
- }
- $destroy() {
- (this.el = null),
- (this.src = null),
- (this.error = null),
- (this.loading = null),
- (this.bindType = null),
- (this.attempt = 0);
- }
- }
- const $f =
- 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
- ME = [
- 'scroll',
- 'wheel',
- 'mousewheel',
- 'resize',
- 'animationend',
- 'transitionend',
- 'touchmove'
- ],
- FE = { rootMargin: '0px', threshold: 0 };
- function BE() {
- return class {
- constructor({
- preLoad: t,
- error: n,
- throttleWait: r,
- preLoadTop: o,
- dispatchEvent: i,
- loading: s,
- attempt: a,
- silent: c = !0,
- scale: l,
- listenEvents: u,
- filter: f,
- adapter: d,
- observer: h,
- observerOptions: g
- }) {
- (this.mode = dr.event),
- (this.listeners = []),
- (this.targetIndex = 0),
- (this.targets = []),
- (this.options = {
- silent: c,
- dispatchEvent: !!i,
- throttleWait: r || 200,
- preLoad: t || 1.3,
- preLoadTop: o || 0,
- error: n || $f,
- loading: s || $f,
- attempt: a || 3,
- scale: l || pE(l),
- ListenEvents: u || ME,
- supportWebp: hE(),
- filter: f || {},
- adapter: d || {},
- observer: !!h,
- observerOptions: g || FE
- }),
- this.initEvent(),
- (this.imageCache = new vE({ max: 200 })),
- (this.lazyLoadHandler = mE(
- this.lazyLoadHandler.bind(this),
- this.options.throttleWait
- )),
- this.setMode(this.options.observer ? dr.observer : dr.event);
- }
- config(t = {}) {
- Object.assign(this.options, t);
- }
- performance() {
- return this.listeners.map(t => t.performance());
- }
- addLazyBox(t) {
- this.listeners.push(t),
- Tt &&
- (this.addListenerTarget(window),
- this.observer && this.observer.observe(t.el),
- t.$el &&
- t.$el.parentNode &&
- this.addListenerTarget(t.$el.parentNode));
- }
- add(t, n, r) {
- if (this.listeners.some(s => s.el === t))
- return this.update(t, n), St(this.lazyLoadHandler);
- const o = this.valueFormatter(n.value);
- let { src: i } = o;
- St(() => {
- (i = Pf(t, this.options.scale) || i),
- this.observer && this.observer.observe(t);
- const s = Object.keys(n.modifiers)[0];
- let a;
- s &&
- ((a = r.context.$refs[s]),
- (a = a ? a.$el || a : document.getElementById(s))),
- a || (a = jc(t));
- const c = new kE({
- bindType: n.arg,
- $parent: a,
- el: t,
- src: i,
- loading: o.loading,
- error: o.error,
- cors: o.cors,
- elRenderer: this.elRenderer.bind(this),
- options: this.options,
- imageCache: this.imageCache
- });
- this.listeners.push(c),
- Tt && (this.addListenerTarget(window), this.addListenerTarget(a)),
- this.lazyLoadHandler(),
- St(() => this.lazyLoadHandler());
- });
- }
- update(t, n, r) {
- const o = this.valueFormatter(n.value);
- let { src: i } = o;
- i = Pf(t, this.options.scale) || i;
- const s = this.listeners.find(a => a.el === t);
- s
- ? s.update({ src: i, error: o.error, loading: o.loading })
- : this.add(t, n, r),
- this.observer && (this.observer.unobserve(t), this.observer.observe(t)),
- this.lazyLoadHandler(),
- St(() => this.lazyLoadHandler());
- }
- remove(t) {
- if (!t) return;
- this.observer && this.observer.unobserve(t);
- const n = this.listeners.find(r => r.el === t);
- n &&
- (this.removeListenerTarget(n.$parent),
- this.removeListenerTarget(window),
- Fo(this.listeners, n),
- n.$destroy());
- }
- removeComponent(t) {
- t &&
- (Fo(this.listeners, t),
- this.observer && this.observer.unobserve(t.el),
- t.$parent &&
- t.$el.parentNode &&
- this.removeListenerTarget(t.$el.parentNode),
- this.removeListenerTarget(window));
- }
- setMode(t) {
- !Af && t === dr.observer && (t = dr.event),
- (this.mode = t),
- t === dr.event
- ? (this.observer &&
- (this.listeners.forEach(n => {
- this.observer.unobserve(n.el);
- }),
- (this.observer = null)),
- this.targets.forEach(n => {
- this.initListen(n.el, !0);
- }))
- : (this.targets.forEach(n => {
- this.initListen(n.el, !1);
- }),
- this.initIntersectionObserver());
- }
- addListenerTarget(t) {
- if (!t) return;
- let n = this.targets.find(r => r.el === t);
- return (
- n
- ? n.childrenCount++
- : ((n = {
- el: t,
- id: ++this.targetIndex,
- childrenCount: 1,
- listened: !0
- }),
- this.mode === dr.event && this.initListen(n.el, !0),
- this.targets.push(n)),
- this.targetIndex
- );
- }
- removeListenerTarget(t) {
- this.targets.forEach((n, r) => {
- n.el === t &&
- (n.childrenCount--,
- n.childrenCount ||
- (this.initListen(n.el, !1), this.targets.splice(r, 1), (n = null)));
- });
- }
- initListen(t, n) {
- this.options.ListenEvents.forEach(r =>
- (n ? gE : yE)(t, r, this.lazyLoadHandler)
- );
- }
- initEvent() {
- (this.Event = { listeners: { loading: [], loaded: [], error: [] } }),
- (this.$on = (t, n) => {
- this.Event.listeners[t] || (this.Event.listeners[t] = []),
- this.Event.listeners[t].push(n);
- }),
- (this.$once = (t, n) => {
- const r = (...o) => {
- this.$off(t, r), n.apply(this, o);
- };
- this.$on(t, r);
- }),
- (this.$off = (t, n) => {
- if (!n) {
- if (!this.Event.listeners[t]) return;
- this.Event.listeners[t].length = 0;
- return;
- }
- Fo(this.Event.listeners[t], n);
- }),
- (this.$emit = (t, n, r) => {
- this.Event.listeners[t] &&
- this.Event.listeners[t].forEach(o => o(n, r));
- });
- }
- lazyLoadHandler() {
- const t = [];
- this.listeners.forEach(n => {
- (!n.el || !n.el.parentNode) && t.push(n), n.checkInView() && n.load();
- }),
- t.forEach(n => {
- Fo(this.listeners, n), n.$destroy();
- });
- }
- initIntersectionObserver() {
- Af &&
- ((this.observer = new IntersectionObserver(
- this.observerHandler.bind(this),
- this.options.observerOptions
- )),
- this.listeners.length &&
- this.listeners.forEach(t => {
- this.observer.observe(t.el);
- }));
- }
- observerHandler(t) {
- t.forEach(n => {
- n.isIntersecting &&
- this.listeners.forEach(r => {
- if (r.el === n.target) {
- if (r.state.loaded) return this.observer.unobserve(r.el);
- r.load();
- }
- });
- });
- }
- elRenderer(t, n, r) {
- if (!t.el) return;
- const { el: o, bindType: i } = t;
- let s;
- switch (n) {
- case 'loading':
- s = t.loading;
- break;
- case 'error':
- s = t.error;
- break;
- default:
- ({ src: s } = t);
- break;
- }
- if (
- (i
- ? (o.style[i] = 'url("' + s + '")')
- : o.getAttribute('src') !== s && o.setAttribute('src', s),
- o.setAttribute('lazy', n),
- this.$emit(n, t, r),
- this.options.adapter[n] && this.options.adapter[n](t, this.options),
- this.options.dispatchEvent)
- ) {
- const a = new CustomEvent(n, { detail: t });
- o.dispatchEvent(a);
- }
- }
- valueFormatter(t) {
- let n = t,
- { loading: r, error: o } = this.options;
- return (
- Ci(t) &&
- (!t.src &&
- !this.options.silent &&
- console.error('[@vant/lazyload] miss src with ' + t),
- ({ src: n } = t),
- (r = t.loading || this.options.loading),
- (o = t.error || this.options.error)),
- { src: n, loading: r, error: o }
- );
- }
- };
- }
- var DE = e => ({
- props: { tag: { type: String, default: 'div' } },
- emits: ['show'],
- render() {
- return mo(
- this.tag,
- this.show && this.$slots.default ? this.$slots.default() : null
- );
- },
- data() {
- return { el: null, state: { loaded: !1 }, show: !1 };
- },
- mounted() {
- (this.el = this.$el), e.addLazyBox(this), e.lazyLoadHandler();
- },
- beforeUnmount() {
- e.removeComponent(this);
- },
- methods: {
- checkInView() {
- const t = Ti(this.$el);
- return (
- Tt &&
- t.top < window.innerHeight * e.options.preLoad &&
- t.bottom > 0 &&
- t.left < window.innerWidth * e.options.preLoad &&
- t.right > 0
- );
- },
- load() {
- (this.show = !0), (this.state.loaded = !0), this.$emit('show', this);
- },
- destroy() {
- return this.$destroy;
- }
- }
- });
- const LE = { selector: 'img' };
- class NE {
- constructor({ el: t, binding: n, vnode: r, lazy: o }) {
- (this.el = null),
- (this.vnode = r),
- (this.binding = n),
- (this.options = {}),
- (this.lazy = o),
- (this.queue = []),
- this.update({ el: t, binding: n });
- }
- update({ el: t, binding: n }) {
- (this.el = t),
- (this.options = Object.assign({}, LE, n.value)),
- this.getImgs().forEach(o => {
- this.lazy.add(
- o,
- Object.assign({}, this.binding, {
- value: {
- src: 'dataset' in o ? o.dataset.src : o.getAttribute('data-src'),
- error:
- ('dataset' in o
- ? o.dataset.error
- : o.getAttribute('data-error')) || this.options.error,
- loading:
- ('dataset' in o
- ? o.dataset.loading
- : o.getAttribute('data-loading')) || this.options.loading
- }
- }),
- this.vnode
- );
- });
- }
- getImgs() {
- return Array.from(this.el.querySelectorAll(this.options.selector));
- }
- clear() {
- this.getImgs().forEach(n => this.lazy.remove(n)),
- (this.vnode = null),
- (this.binding = null),
- (this.lazy = null);
- }
- }
- class jE {
- constructor({ lazy: t }) {
- (this.lazy = t), (this.queue = []);
- }
- bind(t, n, r) {
- const o = new NE({ el: t, binding: n, vnode: r, lazy: this.lazy });
- this.queue.push(o);
- }
- update(t, n, r) {
- const o = this.queue.find(i => i.el === t);
- o && o.update({ el: t, binding: n, vnode: r });
- }
- unbind(t) {
- const n = this.queue.find(r => r.el === t);
- n && (n.clear(), Fo(this.queue, n));
- }
- }
- var UE = e => ({
- props: { src: [String, Object], tag: { type: String, default: 'img' } },
- render() {
- var t, n;
- return mo(
- this.tag,
- { src: this.renderSrc },
- (n = (t = this.$slots).default) == null ? void 0 : n.call(t)
- );
- },
- data() {
- return {
- el: null,
- options: { src: '', error: '', loading: '', attempt: e.options.attempt },
- state: { loaded: !1, error: !1, attempt: 0 },
- renderSrc: ''
- };
- },
- watch: {
- src() {
- this.init(), e.addLazyBox(this), e.lazyLoadHandler();
- }
- },
- created() {
- this.init();
- },
- mounted() {
- (this.el = this.$el), e.addLazyBox(this), e.lazyLoadHandler();
- },
- beforeUnmount() {
- e.removeComponent(this);
- },
- methods: {
- init() {
- const { src: t, loading: n, error: r } = e.valueFormatter(this.src);
- (this.state.loaded = !1),
- (this.options.src = t),
- (this.options.error = r),
- (this.options.loading = n),
- (this.renderSrc = this.options.loading);
- },
- checkInView() {
- const t = Ti(this.$el);
- return (
- t.top < window.innerHeight * e.options.preLoad &&
- t.bottom > 0 &&
- t.left < window.innerWidth * e.options.preLoad &&
- t.right > 0
- );
- },
- load(t = ci) {
- if (this.state.attempt > this.options.attempt - 1 && this.state.error) {
- e.options.silent ||
- console.log(
- `[@vant/lazyload] ${this.options.src} tried too more than ${this.options.attempt} times`
- ),
- t();
- return;
- }
- const { src: n } = this.options;
- Rl(
- { src: n },
- ({ src: r }) => {
- (this.renderSrc = r), (this.state.loaded = !0);
- },
- () => {
- this.state.attempt++,
- (this.renderSrc = this.options.error),
- (this.state.error = !0);
- }
- );
- }
- }
- });
- const HE = {
- install(e, t = {}) {
- const n = BE(),
- r = new n(t),
- o = new jE({ lazy: r });
- (e.config.globalProperties.$Lazyload = r),
- t.lazyComponent && e.component('LazyComponent', DE(r)),
- t.lazyImage && e.component('LazyImage', UE(r)),
- e.directive('lazy', {
- beforeMount: r.add.bind(r),
- updated: r.update.bind(r),
- unmounted: r.remove.bind(r)
- }),
- e.directive('lazy-container', {
- beforeMount: o.bind.bind(o),
- updated: o.update.bind(o),
- unmounted: o.unbind.bind(o)
- });
- }
- };
- function VE() {
- return lm().__VUE_DEVTOOLS_GLOBAL_HOOK__;
- }
- function lm() {
- return typeof navigator < 'u' && typeof window < 'u'
- ? window
- : typeof global < 'u'
- ? global
- : {};
- }
- const qE = typeof Proxy == 'function',
- zE = 'devtools-plugin:setup',
- WE = 'plugin:settings:set';
- let Vr, Ml;
- function KE() {
- var e;
- return (
- Vr !== void 0 ||
- (typeof window < 'u' && window.performance
- ? ((Vr = !0), (Ml = window.performance))
- : typeof global < 'u' &&
- !((e = global.perf_hooks) === null || e === void 0) &&
- e.performance
- ? ((Vr = !0), (Ml = global.perf_hooks.performance))
- : (Vr = !1)),
- Vr
- );
- }
- function GE() {
- return KE() ? Ml.now() : Date.now();
- }
- class YE {
- constructor(t, n) {
- (this.target = null),
- (this.targetQueue = []),
- (this.onQueue = []),
- (this.plugin = t),
- (this.hook = n);
- const r = {};
- if (t.settings)
- for (const s in t.settings) {
- const a = t.settings[s];
- r[s] = a.defaultValue;
- }
- const o = `__vue-devtools-plugin-settings__${t.id}`;
- let i = Object.assign({}, r);
- try {
- const s = localStorage.getItem(o),
- a = JSON.parse(s);
- Object.assign(i, a);
- } catch (s) {}
- (this.fallbacks = {
- getSettings() {
- return i;
- },
- setSettings(s) {
- try {
- localStorage.setItem(o, JSON.stringify(s));
- } catch (a) {}
- i = s;
- },
- now() {
- return GE();
- }
- }),
- n &&
- n.on(WE, (s, a) => {
- s === this.plugin.id && this.fallbacks.setSettings(a);
- }),
- (this.proxiedOn = new Proxy(
- {},
- {
- get: (s, a) =>
- this.target
- ? this.target.on[a]
- : (...c) => {
- this.onQueue.push({ method: a, args: c });
- }
- }
- )),
- (this.proxiedTarget = new Proxy(
- {},
- {
- get: (s, a) =>
- this.target
- ? this.target[a]
- : a === 'on'
- ? this.proxiedOn
- : Object.keys(this.fallbacks).includes(a)
- ? (...c) => (
- this.targetQueue.push({
- method: a,
- args: c,
- resolve: () => {}
- }),
- this.fallbacks[a](...c)
- )
- : (...c) =>
- new Promise(l => {
- this.targetQueue.push({ method: a, args: c, resolve: l });
- })
- }
- ));
- }
- async setRealTarget(t) {
- this.target = t;
- for (const n of this.onQueue) this.target.on[n.method](...n.args);
- for (const n of this.targetQueue)
- n.resolve(await this.target[n.method](...n.args));
- }
- }
- function qc(e, t) {
- const n = e,
- r = lm(),
- o = VE(),
- i = qE && n.enableEarlyProxy;
- if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !i)) o.emit(zE, e, t);
- else {
- const s = i ? new YE(n, o) : null;
- (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
- pluginDescriptor: n,
- setupFn: t,
- proxy: s
- }),
- s && t(s.proxiedTarget);
- }
- }
- /*!
- * vue-router v4.2.2
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */ const Sn = typeof window < 'u';
- function JE(e) {
- return e.__esModule || e[Symbol.toStringTag] === 'Module';
- }
- const $e = Object.assign;
- function ja(e, t) {
- const n = {};
- for (const r in t) {
- const o = t[r];
- n[r] = Rt(o) ? o.map(e) : e(o);
- }
- return n;
- }
- const Wo = () => {},
- Rt = Array.isArray;
- function Oe(e) {
- const t = Array.from(arguments).slice(1);
- console.warn.apply(console, ['[Vue Router warn]: ' + e].concat(t));
- }
- const QE = /\/$/,
- XE = e => e.replace(QE, '');
- function Ua(e, t, n = '/') {
- let r,
- o = {},
- i = '',
- s = '';
- const a = t.indexOf('#');
- let c = t.indexOf('?');
- return (
- a < c && a >= 0 && (c = -1),
- c > -1 &&
- ((r = t.slice(0, c)),
- (i = t.slice(c + 1, a > -1 ? a : t.length)),
- (o = e(i))),
- a > -1 && ((r = r || t.slice(0, a)), (s = t.slice(a, t.length))),
- (r = tS(r != null ? r : t, n)),
- { fullPath: r + (i && '?') + i + s, path: r, query: o, hash: s }
- );
- }
- function ZE(e, t) {
- const n = t.query ? e(t.query) : '';
- return t.path + (n && '?') + n + (t.hash || '');
- }
- function If(e, t) {
- return !t || !e.toLowerCase().startsWith(t.toLowerCase())
- ? e
- : e.slice(t.length) || '/';
- }
- function Rf(e, t, n) {
- const r = t.matched.length - 1,
- o = n.matched.length - 1;
- return (
- r > -1 &&
- r === o &&
- or(t.matched[r], n.matched[o]) &&
- cm(t.params, n.params) &&
- e(t.query) === e(n.query) &&
- t.hash === n.hash
- );
- }
- function or(e, t) {
- return (e.aliasOf || e) === (t.aliasOf || t);
- }
- function cm(e, t) {
- if (Object.keys(e).length !== Object.keys(t).length) return !1;
- for (const n in e) if (!eS(e[n], t[n])) return !1;
- return !0;
- }
- function eS(e, t) {
- return Rt(e) ? kf(e, t) : Rt(t) ? kf(t, e) : e === t;
- }
- function kf(e, t) {
- return Rt(t)
- ? e.length === t.length && e.every((n, r) => n === t[r])
- : e.length === 1 && e[0] === t;
- }
- function tS(e, t) {
- if (e.startsWith('/')) return e;
- if (!t.startsWith('/'))
- return (
- Oe(
- `Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`
- ),
- e
- );
- if (!e) return t;
- const n = t.split('/'),
- r = e.split('/'),
- o = r[r.length - 1];
- (o === '..' || o === '.') && r.push('');
- let i = n.length - 1,
- s,
- a;
- for (s = 0; s < r.length; s++)
- if (((a = r[s]), a !== '.'))
- if (a === '..') i > 1 && i--;
- else break;
- return (
- n.slice(0, i).join('/') +
- '/' +
- r.slice(s - (s === r.length ? 1 : 0)).join('/')
- );
- }
- var fi;
- (function (e) {
- (e.pop = 'pop'), (e.push = 'push');
- })(fi || (fi = {}));
- var Ko;
- (function (e) {
- (e.back = 'back'), (e.forward = 'forward'), (e.unknown = '');
- })(Ko || (Ko = {}));
- function nS(e) {
- if (!e)
- if (Sn) {
- const t = document.querySelector('base');
- (e = (t && t.getAttribute('href')) || '/'),
- (e = e.replace(/^\w+:\/\/[^\/]+/, ''));
- } else e = '/';
- return e[0] !== '/' && e[0] !== '#' && (e = '/' + e), XE(e);
- }
- const rS = /^[^#]+#/;
- function oS(e, t) {
- return e.replace(rS, '#') + t;
- }
- function iS(e, t) {
- const n = document.documentElement.getBoundingClientRect(),
- r = e.getBoundingClientRect();
- return {
- behavior: t.behavior,
- left: r.left - n.left - (t.left || 0),
- top: r.top - n.top - (t.top || 0)
- };
- }
- const da = () => ({ left: window.pageXOffset, top: window.pageYOffset });
- function sS(e) {
- let t;
- if ('el' in e) {
- const n = e.el,
- r = typeof n == 'string' && n.startsWith('#');
- if (
- typeof e.el == 'string' &&
- (!r || !document.getElementById(e.el.slice(1)))
- )
- try {
- const i = document.querySelector(e.el);
- if (r && i) {
- Oe(
- `The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`
- );
- return;
- }
- } catch (i) {
- Oe(
- `The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`
- );
- return;
- }
- const o =
- typeof n == 'string'
- ? r
- ? document.getElementById(n.slice(1))
- : document.querySelector(n)
- : n;
- if (!o) {
- Oe(
- `Couldn't find element using selector "${e.el}" returned by scrollBehavior.`
- );
- return;
- }
- t = iS(o, e);
- } else t = e;
- 'scrollBehavior' in document.documentElement.style
- ? window.scrollTo(t)
- : window.scrollTo(
- t.left != null ? t.left : window.pageXOffset,
- t.top != null ? t.top : window.pageYOffset
- );
- }
- function Mf(e, t) {
- return (history.state ? history.state.position - t : -1) + e;
- }
- const Fl = new Map();
- function aS(e, t) {
- Fl.set(e, t);
- }
- function lS(e) {
- const t = Fl.get(e);
- return Fl.delete(e), t;
- }
- let cS = () => location.protocol + '//' + location.host;
- function um(e, t) {
- const { pathname: n, search: r, hash: o } = t,
- i = e.indexOf('#');
- if (i > -1) {
- let a = o.includes(e.slice(i)) ? e.slice(i).length : 1,
- c = o.slice(a);
- return c[0] !== '/' && (c = '/' + c), If(c, '');
- }
- return If(n, e) + r + o;
- }
- function uS(e, t, n, r) {
- let o = [],
- i = [],
- s = null;
- const a = ({ state: d }) => {
- const h = um(e, location),
- g = n.value,
- w = t.value;
- let E = 0;
- if (d) {
- if (((n.value = h), (t.value = d), s && s === g)) {
- s = null;
- return;
- }
- E = w ? d.position - w.position : 0;
- } else r(h);
- o.forEach(y => {
- y(n.value, g, {
- delta: E,
- type: fi.pop,
- direction: E ? (E > 0 ? Ko.forward : Ko.back) : Ko.unknown
- });
- });
- };
- function c() {
- s = n.value;
- }
- function l(d) {
- o.push(d);
- const h = () => {
- const g = o.indexOf(d);
- g > -1 && o.splice(g, 1);
- };
- return i.push(h), h;
- }
- function u() {
- const { history: d } = window;
- d.state && d.replaceState($e({}, d.state, { scroll: da() }), '');
- }
- function f() {
- for (const d of i) d();
- (i = []),
- window.removeEventListener('popstate', a),
- window.removeEventListener('beforeunload', u);
- }
- return (
- window.addEventListener('popstate', a),
- window.addEventListener('beforeunload', u, { passive: !0 }),
- { pauseListeners: c, listen: l, destroy: f }
- );
- }
- function Ff(e, t, n, r = !1, o = !1) {
- return {
- back: e,
- current: t,
- forward: n,
- replaced: r,
- position: window.history.length,
- scroll: o ? da() : null
- };
- }
- function fS(e) {
- const { history: t, location: n } = window,
- r = { value: um(e, n) },
- o = { value: t.state };
- o.value ||
- i(
- r.value,
- {
- back: null,
- current: r.value,
- forward: null,
- position: t.length - 1,
- replaced: !0,
- scroll: null
- },
- !0
- );
- function i(c, l, u) {
- const f = e.indexOf('#'),
- d =
- f > -1
- ? (n.host && document.querySelector('base') ? e : e.slice(f)) + c
- : cS() + e + c;
- try {
- t[u ? 'replaceState' : 'pushState'](l, '', d), (o.value = l);
- } catch (h) {
- Oe('Error with push/replace State', h), n[u ? 'replace' : 'assign'](d);
- }
- }
- function s(c, l) {
- const u = $e({}, t.state, Ff(o.value.back, c, o.value.forward, !0), l, {
- position: o.value.position
- });
- i(c, u, !0), (r.value = c);
- }
- function a(c, l) {
- const u = $e({}, o.value, t.state, { forward: c, scroll: da() });
- t.state ||
- Oe(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
- history.replaceState(history.state, '', url)
- You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),
- i(u.current, u, !0);
- const f = $e({}, Ff(r.value, c, null), { position: u.position + 1 }, l);
- i(c, f, !1), (r.value = c);
- }
- return { location: r, state: o, push: a, replace: s };
- }
- function dS(e) {
- e = nS(e);
- const t = fS(e),
- n = uS(e, t.state, t.location, t.replace);
- function r(i, s = !0) {
- s || n.pauseListeners(), history.go(i);
- }
- const o = $e(
- { location: '', base: e, go: r, createHref: oS.bind(null, e) },
- t,
- n
- );
- return (
- Object.defineProperty(o, 'location', {
- enumerable: !0,
- get: () => t.location.value
- }),
- Object.defineProperty(o, 'state', {
- enumerable: !0,
- get: () => t.state.value
- }),
- o
- );
- }
- function pS(e) {
- return (
- (e = location.host ? e || location.pathname + location.search : ''),
- e.includes('#') || (e += '#'),
- !e.endsWith('#/') &&
- !e.endsWith('#') &&
- Oe(`A hash base must end with a "#":
- "${e}" should be "${e.replace(/#.*$/, '#')}".`),
- dS(e)
- );
- }
- function hS(e) {
- return typeof e == 'string' || (e && typeof e == 'object');
- }
- function fm(e) {
- return typeof e == 'string' || typeof e == 'symbol';
- }
- const Mn = {
- path: '/',
- name: void 0,
- params: {},
- query: {},
- hash: '',
- fullPath: '/',
- matched: [],
- meta: {},
- redirectedFrom: void 0
- },
- dm = Symbol('navigation failure');
- var Bf;
- (function (e) {
- (e[(e.aborted = 4)] = 'aborted'),
- (e[(e.cancelled = 8)] = 'cancelled'),
- (e[(e.duplicated = 16)] = 'duplicated');
- })(Bf || (Bf = {}));
- const mS = {
- [1]({ location: e, currentLocation: t }) {
- return `No match for
- ${JSON.stringify(e)}${
- t
- ? `
- while being at
- ` + JSON.stringify(t)
- : ''
- }`;
- },
- [2]({ from: e, to: t }) {
- return `Redirected from "${e.fullPath}" to "${yS(
- t
- )}" via a navigation guard.`;
- },
- [4]({ from: e, to: t }) {
- return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
- },
- [8]({ from: e, to: t }) {
- return `Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`;
- },
- [16]({ from: e, to: t }) {
- return `Avoided redundant navigation to current location: "${e.fullPath}".`;
- }
- };
- function io(e, t) {
- return $e(new Error(mS[e](t)), { type: e, [dm]: !0 }, t);
- }
- function yn(e, t) {
- return e instanceof Error && dm in e && (t == null || !!(e.type & t));
- }
- const gS = ['params', 'query', 'hash'];
- function yS(e) {
- if (typeof e == 'string') return e;
- if ('path' in e) return e.path;
- const t = {};
- for (const n of gS) n in e && (t[n] = e[n]);
- return JSON.stringify(t, null, 2);
- }
- const Df = '[^/]+?',
- vS = { sensitive: !1, strict: !1, start: !0, end: !0 },
- bS = /[.+*?^${}()[\]/\\]/g;
- function _S(e, t) {
- const n = $e({}, vS, t),
- r = [];
- let o = n.start ? '^' : '';
- const i = [];
- for (const l of e) {
- const u = l.length ? [] : [90];
- n.strict && !l.length && (o += '/');
- for (let f = 0; f < l.length; f++) {
- const d = l[f];
- let h = 40 + (n.sensitive ? 0.25 : 0);
- if (d.type === 0)
- f || (o += '/'), (o += d.value.replace(bS, '\\$&')), (h += 40);
- else if (d.type === 1) {
- const { value: g, repeatable: w, optional: E, regexp: y } = d;
- i.push({ name: g, repeatable: w, optional: E });
- const v = y || Df;
- if (v !== Df) {
- h += 10;
- try {
- new RegExp(`(${v})`);
- } catch (C) {
- throw new Error(
- `Invalid custom RegExp for param "${g}" (${v}): ` + C.message
- );
- }
- }
- let O = w ? `((?:${v})(?:/(?:${v}))*)` : `(${v})`;
- f || (O = E && l.length < 2 ? `(?:/${O})` : '/' + O),
- E && (O += '?'),
- (o += O),
- (h += 20),
- E && (h += -8),
- w && (h += -20),
- v === '.*' && (h += -50);
- }
- u.push(h);
- }
- r.push(u);
- }
- if (n.strict && n.end) {
- const l = r.length - 1;
- r[l][r[l].length - 1] += 0.7000000000000001;
- }
- n.strict || (o += '/?'), n.end ? (o += '$') : n.strict && (o += '(?:/|$)');
- const s = new RegExp(o, n.sensitive ? '' : 'i');
- function a(l) {
- const u = l.match(s),
- f = {};
- if (!u) return null;
- for (let d = 1; d < u.length; d++) {
- const h = u[d] || '',
- g = i[d - 1];
- f[g.name] = h && g.repeatable ? h.split('/') : h;
- }
- return f;
- }
- function c(l) {
- let u = '',
- f = !1;
- for (const d of e) {
- (!f || !u.endsWith('/')) && (u += '/'), (f = !1);
- for (const h of d)
- if (h.type === 0) u += h.value;
- else if (h.type === 1) {
- const { value: g, repeatable: w, optional: E } = h,
- y = g in l ? l[g] : '';
- if (Rt(y) && !w)
- throw new Error(
- `Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`
- );
- const v = Rt(y) ? y.join('/') : y;
- if (!v)
- if (E)
- d.length < 2 &&
- (u.endsWith('/') ? (u = u.slice(0, -1)) : (f = !0));
- else throw new Error(`Missing required param "${g}"`);
- u += v;
- }
- }
- return u || '/';
- }
- return { re: s, score: r, keys: i, parse: a, stringify: c };
- }
- function wS(e, t) {
- let n = 0;
- for (; n < e.length && n < t.length; ) {
- const r = t[n] - e[n];
- if (r) return r;
- n++;
- }
- return e.length < t.length
- ? e.length === 1 && e[0] === 40 + 40
- ? -1
- : 1
- : e.length > t.length
- ? t.length === 1 && t[0] === 40 + 40
- ? 1
- : -1
- : 0;
- }
- function ES(e, t) {
- let n = 0;
- const r = e.score,
- o = t.score;
- for (; n < r.length && n < o.length; ) {
- const i = wS(r[n], o[n]);
- if (i) return i;
- n++;
- }
- if (Math.abs(o.length - r.length) === 1) {
- if (Lf(r)) return 1;
- if (Lf(o)) return -1;
- }
- return o.length - r.length;
- }
- function Lf(e) {
- const t = e[e.length - 1];
- return e.length > 0 && t[t.length - 1] < 0;
- }
- const SS = { type: 0, value: '' },
- xS = /[a-zA-Z0-9_]/;
- function OS(e) {
- if (!e) return [[]];
- if (e === '/') return [[SS]];
- if (!e.startsWith('/'))
- throw new Error(
- `Route paths should start with a "/": "${e}" should be "/${e}".`
- );
- function t(h) {
- throw new Error(`ERR (${n})/"${l}": ${h}`);
- }
- let n = 0,
- r = n;
- const o = [];
- let i;
- function s() {
- i && o.push(i), (i = []);
- }
- let a = 0,
- c,
- l = '',
- u = '';
- function f() {
- l &&
- (n === 0
- ? i.push({ type: 0, value: l })
- : n === 1 || n === 2 || n === 3
- ? (i.length > 1 &&
- (c === '*' || c === '+') &&
- t(
- `A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`
- ),
- i.push({
- type: 1,
- value: l,
- regexp: u,
- repeatable: c === '*' || c === '+',
- optional: c === '*' || c === '?'
- }))
- : t('Invalid state to consume buffer'),
- (l = ''));
- }
- function d() {
- l += c;
- }
- for (; a < e.length; ) {
- if (((c = e[a++]), c === '\\' && n !== 2)) {
- (r = n), (n = 4);
- continue;
- }
- switch (n) {
- case 0:
- c === '/' ? (l && f(), s()) : c === ':' ? (f(), (n = 1)) : d();
- break;
- case 4:
- d(), (n = r);
- break;
- case 1:
- c === '('
- ? (n = 2)
- : xS.test(c)
- ? d()
- : (f(), (n = 0), c !== '*' && c !== '?' && c !== '+' && a--);
- break;
- case 2:
- c === ')'
- ? u[u.length - 1] == '\\'
- ? (u = u.slice(0, -1) + c)
- : (n = 3)
- : (u += c);
- break;
- case 3:
- f(), (n = 0), c !== '*' && c !== '?' && c !== '+' && a--, (u = '');
- break;
- default:
- t('Unknown state');
- break;
- }
- }
- return n === 2 && t(`Unfinished custom RegExp for param "${l}"`), f(), s(), o;
- }
- function CS(e, t, n) {
- const r = _S(OS(e.path), n);
- {
- const i = new Set();
- for (const s of r.keys)
- i.has(s.name) &&
- Oe(
- `Found duplicated params with name "${s.name}" for path "${e.path}". Only the last one will be available on "$route.params".`
- ),
- i.add(s.name);
- }
- const o = $e(r, { record: e, parent: t, children: [], alias: [] });
- return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o;
- }
- function TS(e, t) {
- const n = [],
- r = new Map();
- t = Uf({ strict: !1, end: !0, sensitive: !1 }, t);
- function o(u) {
- return r.get(u);
- }
- function i(u, f, d) {
- const h = !d,
- g = AS(u);
- RS(g, f), (g.aliasOf = d && d.record);
- const w = Uf(t, u),
- E = [g];
- if ('alias' in u) {
- const O = typeof u.alias == 'string' ? [u.alias] : u.alias;
- for (const C of O)
- E.push(
- $e({}, g, {
- components: d ? d.record.components : g.components,
- path: C,
- aliasOf: d ? d.record : g
- })
- );
- }
- let y, v;
- for (const O of E) {
- const { path: C } = O;
- if (f && C[0] !== '/') {
- const x = f.record.path,
- N = x[x.length - 1] === '/' ? '' : '/';
- O.path = f.record.path + (C && N + C);
- }
- if (O.path === '*')
- throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
- See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);
- if (
- ((y = CS(O, f, w)),
- f && C[0] === '/' && kS(y, f),
- d
- ? (d.alias.push(y), IS(d, y))
- : ((v = v || y),
- v !== y && v.alias.push(y),
- h && u.name && !jf(y) && s(u.name)),
- g.children)
- ) {
- const x = g.children;
- for (let N = 0; N < x.length; N++) i(x[N], y, d && d.children[N]);
- }
- (d = d || y),
- ((y.record.components && Object.keys(y.record.components).length) ||
- y.record.name ||
- y.record.redirect) &&
- c(y);
- }
- return v
- ? () => {
- s(v);
- }
- : Wo;
- }
- function s(u) {
- if (fm(u)) {
- const f = r.get(u);
- f &&
- (r.delete(u),
- n.splice(n.indexOf(f), 1),
- f.children.forEach(s),
- f.alias.forEach(s));
- } else {
- const f = n.indexOf(u);
- f > -1 &&
- (n.splice(f, 1),
- u.record.name && r.delete(u.record.name),
- u.children.forEach(s),
- u.alias.forEach(s));
- }
- }
- function a() {
- return n;
- }
- function c(u) {
- let f = 0;
- for (
- ;
- f < n.length &&
- ES(u, n[f]) >= 0 &&
- (u.record.path !== n[f].record.path || !pm(u, n[f]));
- )
- f++;
- n.splice(f, 0, u), u.record.name && !jf(u) && r.set(u.record.name, u);
- }
- function l(u, f) {
- let d,
- h = {},
- g,
- w;
- if ('name' in u && u.name) {
- if (((d = r.get(u.name)), !d)) throw io(1, { location: u });
- {
- const v = Object.keys(u.params || {}).filter(
- O => !d.keys.find(C => C.name === O)
- );
- v.length &&
- Oe(
- `Discarded invalid param(s) "${v.join(
- '", "'
- )}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`
- );
- }
- (w = d.record.name),
- (h = $e(
- Nf(
- f.params,
- d.keys.filter(v => !v.optional).map(v => v.name)
- ),
- u.params &&
- Nf(
- u.params,
- d.keys.map(v => v.name)
- )
- )),
- (g = d.stringify(h));
- } else if ('path' in u)
- (g = u.path),
- g.startsWith('/') ||
- Oe(
- `The Matcher cannot resolve relative paths but received "${g}". Unless you directly called \`matcher.resolve("${g}")\`, this is probably a bug in vue-router. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/router.`
- ),
- (d = n.find(v => v.re.test(g))),
- d && ((h = d.parse(g)), (w = d.record.name));
- else {
- if (((d = f.name ? r.get(f.name) : n.find(v => v.re.test(f.path))), !d))
- throw io(1, { location: u, currentLocation: f });
- (w = d.record.name),
- (h = $e({}, f.params, u.params)),
- (g = d.stringify(h));
- }
- const E = [];
- let y = d;
- for (; y; ) E.unshift(y.record), (y = y.parent);
- return { name: w, path: g, params: h, matched: E, meta: $S(E) };
- }
- return (
- e.forEach(u => i(u)),
- {
- addRoute: i,
- resolve: l,
- removeRoute: s,
- getRoutes: a,
- getRecordMatcher: o
- }
- );
- }
- function Nf(e, t) {
- const n = {};
- for (const r of t) r in e && (n[r] = e[r]);
- return n;
- }
- function AS(e) {
- return {
- path: e.path,
- redirect: e.redirect,
- name: e.name,
- meta: e.meta || {},
- aliasOf: void 0,
- beforeEnter: e.beforeEnter,
- props: PS(e),
- children: e.children || [],
- instances: {},
- leaveGuards: new Set(),
- updateGuards: new Set(),
- enterCallbacks: {},
- components:
- 'components' in e
- ? e.components || null
- : e.component && { default: e.component }
- };
- }
- function PS(e) {
- const t = {},
- n = e.props || !1;
- if ('component' in e) t.default = n;
- else for (const r in e.components) t[r] = typeof n == 'boolean' ? n : n[r];
- return t;
- }
- function jf(e) {
- for (; e; ) {
- if (e.record.aliasOf) return !0;
- e = e.parent;
- }
- return !1;
- }
- function $S(e) {
- return e.reduce((t, n) => $e(t, n.meta), {});
- }
- function Uf(e, t) {
- const n = {};
- for (const r in e) n[r] = r in t ? t[r] : e[r];
- return n;
- }
- function Bl(e, t) {
- return (
- e.name === t.name &&
- e.optional === t.optional &&
- e.repeatable === t.repeatable
- );
- }
- function IS(e, t) {
- for (const n of e.keys)
- if (!n.optional && !t.keys.find(Bl.bind(null, n)))
- return Oe(
- `Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`
- );
- for (const n of t.keys)
- if (!n.optional && !e.keys.find(Bl.bind(null, n)))
- return Oe(
- `Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`
- );
- }
- function RS(e, t) {
- t &&
- t.record.name &&
- !e.name &&
- !e.path &&
- Oe(
- `The route named "${String(
- t.record.name
- )}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`
- );
- }
- function kS(e, t) {
- for (const n of t.keys)
- if (!e.keys.find(Bl.bind(null, n)))
- return Oe(
- `Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`
- );
- }
- function pm(e, t) {
- return t.children.some(n => n === e || pm(e, n));
- }
- const hm = /#/g,
- MS = /&/g,
- FS = /\//g,
- BS = /=/g,
- DS = /\?/g,
- mm = /\+/g,
- LS = /%5B/g,
- NS = /%5D/g,
- gm = /%5E/g,
- jS = /%60/g,
- ym = /%7B/g,
- US = /%7C/g,
- vm = /%7D/g,
- HS = /%20/g;
- function zc(e) {
- return encodeURI('' + e)
- .replace(US, '|')
- .replace(LS, '[')
- .replace(NS, ']');
- }
- function VS(e) {
- return zc(e).replace(ym, '{').replace(vm, '}').replace(gm, '^');
- }
- function Dl(e) {
- return zc(e)
- .replace(mm, '%2B')
- .replace(HS, '+')
- .replace(hm, '%23')
- .replace(MS, '%26')
- .replace(jS, '`')
- .replace(ym, '{')
- .replace(vm, '}')
- .replace(gm, '^');
- }
- function qS(e) {
- return Dl(e).replace(BS, '%3D');
- }
- function zS(e) {
- return zc(e).replace(hm, '%23').replace(DS, '%3F');
- }
- function WS(e) {
- return e == null ? '' : zS(e).replace(FS, '%2F');
- }
- function di(e) {
- try {
- return decodeURIComponent('' + e);
- } catch (t) {
- Oe(`Error decoding "${e}". Using original value`);
- }
- return '' + e;
- }
- function KS(e) {
- const t = {};
- if (e === '' || e === '?') return t;
- const r = (e[0] === '?' ? e.slice(1) : e).split('&');
- for (let o = 0; o < r.length; ++o) {
- const i = r[o].replace(mm, ' '),
- s = i.indexOf('='),
- a = di(s < 0 ? i : i.slice(0, s)),
- c = s < 0 ? null : di(i.slice(s + 1));
- if (a in t) {
- let l = t[a];
- Rt(l) || (l = t[a] = [l]), l.push(c);
- } else t[a] = c;
- }
- return t;
- }
- function Hf(e) {
- let t = '';
- for (let n in e) {
- const r = e[n];
- if (((n = qS(n)), r == null)) {
- r !== void 0 && (t += (t.length ? '&' : '') + n);
- continue;
- }
- (Rt(r) ? r.map(i => i && Dl(i)) : [r && Dl(r)]).forEach(i => {
- i !== void 0 &&
- ((t += (t.length ? '&' : '') + n), i != null && (t += '=' + i));
- });
- }
- return t;
- }
- function GS(e) {
- const t = {};
- for (const n in e) {
- const r = e[n];
- r !== void 0 &&
- (t[n] = Rt(r)
- ? r.map(o => (o == null ? null : '' + o))
- : r == null
- ? r
- : '' + r);
- }
- return t;
- }
- const YS = Symbol('router view location matched'),
- Vf = Symbol('router view depth'),
- pa = Symbol('router'),
- Wc = Symbol('route location'),
- Ll = Symbol('router view location');
- function Ao() {
- let e = [];
- function t(r) {
- return (
- e.push(r),
- () => {
- const o = e.indexOf(r);
- o > -1 && e.splice(o, 1);
- }
- );
- }
- function n() {
- e = [];
- }
- return { add: t, list: () => e, reset: n };
- }
- function Ln(e, t, n, r, o) {
- const i = r && (r.enterCallbacks[o] = r.enterCallbacks[o] || []);
- return () =>
- new Promise((s, a) => {
- const c = f => {
- f === !1
- ? a(io(4, { from: n, to: t }))
- : f instanceof Error
- ? a(f)
- : hS(f)
- ? a(io(2, { from: t, to: f }))
- : (i &&
- r.enterCallbacks[o] === i &&
- typeof f == 'function' &&
- i.push(f),
- s());
- },
- l = e.call(r && r.instances[o], t, n, JS(c, t, n));
- let u = Promise.resolve(l);
- if ((e.length < 3 && (u = u.then(c)), e.length > 2)) {
- const f = `The "next" callback was never called inside of ${
- e.name ? '"' + e.name + '"' : ''
- }:
- ${e.toString()}
- . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
- if (typeof l == 'object' && 'then' in l)
- u = u.then(d =>
- c._called
- ? d
- : (Oe(f), Promise.reject(new Error('Invalid navigation guard')))
- );
- else if (l !== void 0 && !c._called) {
- Oe(f), a(new Error('Invalid navigation guard'));
- return;
- }
- }
- u.catch(f => a(f));
- });
- }
- function JS(e, t, n) {
- let r = 0;
- return function () {
- r++ === 1 &&
- Oe(
- `The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`
- ),
- (e._called = !0),
- r === 1 && e.apply(null, arguments);
- };
- }
- function Ha(e, t, n, r) {
- const o = [];
- for (const i of e) {
- !i.components &&
- !i.children.length &&
- Oe(
- `Record with path "${i.path}" is either missing a "component(s)" or "children" property.`
- );
- for (const s in i.components) {
- let a = i.components[s];
- {
- if (!a || (typeof a != 'object' && typeof a != 'function'))
- throw (
- (Oe(
- `Component "${s}" in record with path "${
- i.path
- }" is not a valid component. Received "${String(a)}".`
- ),
- new Error('Invalid route component'))
- );
- if ('then' in a) {
- Oe(
- `Component "${s}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`
- );
- const c = a;
- a = () => c;
- } else
- a.__asyncLoader &&
- !a.__warnedDefineAsync &&
- ((a.__warnedDefineAsync = !0),
- Oe(
- `Component "${s}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`
- ));
- }
- if (!(t !== 'beforeRouteEnter' && !i.instances[s]))
- if (QS(a)) {
- const l = (a.__vccOpts || a)[t];
- l && o.push(Ln(l, n, r, i, s));
- } else {
- let c = a();
- 'catch' in c ||
- (Oe(
- `Component "${s}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`
- ),
- (c = Promise.resolve(c))),
- o.push(() =>
- c.then(l => {
- if (!l)
- return Promise.reject(
- new Error(
- `Couldn't resolve component "${s}" at "${i.path}"`
- )
- );
- const u = JE(l) ? l.default : l;
- i.components[s] = u;
- const d = (u.__vccOpts || u)[t];
- return d && Ln(d, n, r, i, s)();
- })
- );
- }
- }
- }
- return o;
- }
- function QS(e) {
- return (
- typeof e == 'object' ||
- 'displayName' in e ||
- 'props' in e ||
- '__vccOpts' in e
- );
- }
- function qf(e) {
- const t = rt(pa),
- n = rt(Wc),
- r = Me(() => t.resolve(Ct(e.to))),
- o = Me(() => {
- const { matched: c } = r.value,
- { length: l } = c,
- u = c[l - 1],
- f = n.matched;
- if (!u || !f.length) return -1;
- const d = f.findIndex(or.bind(null, u));
- if (d > -1) return d;
- const h = zf(c[l - 2]);
- return l > 1 && zf(u) === h && f[f.length - 1].path !== h
- ? f.findIndex(or.bind(null, c[l - 2]))
- : d;
- }),
- i = Me(() => o.value > -1 && tx(n.params, r.value.params)),
- s = Me(
- () =>
- o.value > -1 &&
- o.value === n.matched.length - 1 &&
- cm(n.params, r.value.params)
- );
- function a(c = {}) {
- return ex(c)
- ? t[Ct(e.replace) ? 'replace' : 'push'](Ct(e.to)).catch(Wo)
- : Promise.resolve();
- }
- if (Sn) {
- const c = Ze();
- if (c) {
- const l = { route: r.value, isActive: i.value, isExactActive: s.value };
- (c.__vrl_devtools = c.__vrl_devtools || []),
- c.__vrl_devtools.push(l),
- vp(
- () => {
- (l.route = r.value),
- (l.isActive = i.value),
- (l.isExactActive = s.value);
- },
- { flush: 'post' }
- );
- }
- }
- return {
- route: r,
- href: Me(() => r.value.href),
- isActive: i,
- isExactActive: s,
- navigate: a
- };
- }
- const XS = He({
- name: 'RouterLink',
- compatConfig: { MODE: 3 },
- props: {
- to: { type: [String, Object], required: !0 },
- replace: Boolean,
- activeClass: String,
- exactActiveClass: String,
- custom: Boolean,
- ariaCurrentValue: { type: String, default: 'page' }
- },
- useLink: qf,
- setup(e, { slots: t }) {
- const n = ct(qf(e)),
- { options: r } = rt(pa),
- o = Me(() => ({
- [Wf(e.activeClass, r.linkActiveClass, 'router-link-active')]:
- n.isActive,
- [Wf(
- e.exactActiveClass,
- r.linkExactActiveClass,
- 'router-link-exact-active'
- )]: n.isExactActive
- }));
- return () => {
- const i = t.default && t.default(n);
- return e.custom
- ? i
- : mo(
- 'a',
- {
- 'aria-current': n.isExactActive ? e.ariaCurrentValue : null,
- href: n.href,
- onClick: n.navigate,
- class: o.value
- },
- i
- );
- };
- }
- }),
- ZS = XS;
- function ex(e) {
- if (
- !(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) &&
- !e.defaultPrevented &&
- !(e.button !== void 0 && e.button !== 0)
- ) {
- if (e.currentTarget && e.currentTarget.getAttribute) {
- const t = e.currentTarget.getAttribute('target');
- if (/\b_blank\b/i.test(t)) return;
- }
- return e.preventDefault && e.preventDefault(), !0;
- }
- }
- function tx(e, t) {
- for (const n in t) {
- const r = t[n],
- o = e[n];
- if (typeof r == 'string') {
- if (r !== o) return !1;
- } else if (!Rt(o) || o.length !== r.length || r.some((i, s) => i !== o[s]))
- return !1;
- }
- return !0;
- }
- function zf(e) {
- return e ? (e.aliasOf ? e.aliasOf.path : e.path) : '';
- }
- const Wf = (e, t, n) => (e != null ? e : t != null ? t : n),
- nx = He({
- name: 'RouterView',
- inheritAttrs: !1,
- props: { name: { type: String, default: 'default' }, route: Object },
- compatConfig: { MODE: 3 },
- setup(e, { attrs: t, slots: n }) {
- rx();
- const r = rt(Ll),
- o = Me(() => e.route || r.value),
- i = rt(Vf, 0),
- s = Me(() => {
- let l = Ct(i);
- const { matched: u } = o.value;
- let f;
- for (; (f = u[l]) && !f.components; ) l++;
- return l;
- }),
- a = Me(() => o.value.matched[s.value]);
- Sr(
- Vf,
- Me(() => s.value + 1)
- ),
- Sr(YS, a),
- Sr(Ll, o);
- const c = Ee();
- return (
- De(
- () => [c.value, a.value, e.name],
- ([l, u, f], [d, h, g]) => {
- u &&
- ((u.instances[f] = l),
- h &&
- h !== u &&
- l &&
- l === d &&
- (u.leaveGuards.size || (u.leaveGuards = h.leaveGuards),
- u.updateGuards.size || (u.updateGuards = h.updateGuards))),
- l &&
- u &&
- (!h || !or(u, h) || !d) &&
- (u.enterCallbacks[f] || []).forEach(w => w(l));
- },
- { flush: 'post' }
- ),
- () => {
- const l = o.value,
- u = e.name,
- f = a.value,
- d = f && f.components[u];
- if (!d) return Kf(n.default, { Component: d, route: l });
- const h = f.props[u],
- g = h
- ? h === !0
- ? l.params
- : typeof h == 'function'
- ? h(l)
- : h
- : null,
- E = mo(
- d,
- $e({}, g, t, {
- onVnodeUnmounted: y => {
- y.component.isUnmounted && (f.instances[u] = null);
- },
- ref: c
- })
- );
- if (Sn && E.ref) {
- const y = {
- depth: s.value,
- name: f.name,
- path: f.path,
- meta: f.meta
- };
- (Rt(E.ref) ? E.ref.map(O => O.i) : [E.ref.i]).forEach(O => {
- O.__vrv_devtools = y;
- });
- }
- return Kf(n.default, { Component: E, route: l }) || E;
- }
- );
- }
- });
- function Kf(e, t) {
- if (!e) return null;
- const n = e(t);
- return n.length === 1 ? n[0] : n;
- }
- const bm = nx;
- function rx() {
- const e = Ze(),
- t = e.parent && e.parent.type.name,
- n = e.parent && e.parent.subTree && e.parent.subTree.type;
- if (
- t &&
- (t === 'KeepAlive' || t.includes('Transition')) &&
- typeof n == 'object' &&
- n.name === 'RouterView'
- ) {
- const r = t === 'KeepAlive' ? 'keep-alive' : 'transition';
- Oe(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
- Use slot props instead:
- <router-view v-slot="{ Component }">
- <${r}>
- <component :is="Component" />
- </${r}>
- </router-view>`);
- }
- }
- function Po(e, t) {
- const n = $e({}, e, {
- matched: e.matched.map(r => dx(r, ['instances', 'children', 'aliasOf']))
- });
- return {
- _custom: {
- type: null,
- readOnly: !0,
- display: e.fullPath,
- tooltip: t,
- value: n
- }
- };
- }
- function es(e) {
- return { _custom: { display: e } };
- }
- let ox = 0;
- function ix(e, t, n) {
- if (t.__hasDevtools) return;
- t.__hasDevtools = !0;
- const r = ox++;
- qc(
- {
- id: 'org.vuejs.router' + (r ? '.' + r : ''),
- label: 'Vue Router',
- packageName: 'vue-router',
- homepage: 'https://router.vuejs.org',
- logo: 'https://router.vuejs.org/logo.png',
- componentStateTypes: ['Routing'],
- app: e
- },
- o => {
- typeof o.now != 'function' &&
- console.warn(
- '[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.'
- ),
- o.on.inspectComponent((u, f) => {
- u.instanceData &&
- u.instanceData.state.push({
- type: 'Routing',
- key: '$route',
- editable: !1,
- value: Po(t.currentRoute.value, 'Current Route')
- });
- }),
- o.on.visitComponentTree(({ treeNode: u, componentInstance: f }) => {
- if (f.__vrv_devtools) {
- const d = f.__vrv_devtools;
- u.tags.push({
- label: (d.name ? `${d.name.toString()}: ` : '') + d.path,
- textColor: 0,
- tooltip: 'This component is rendered by <router-view>',
- backgroundColor: _m
- });
- }
- Rt(f.__vrl_devtools) &&
- ((f.__devtoolsApi = o),
- f.__vrl_devtools.forEach(d => {
- let h = Sm,
- g = '';
- d.isExactActive
- ? ((h = Em), (g = 'This is exactly active'))
- : d.isActive && ((h = wm), (g = 'This link is active')),
- u.tags.push({
- label: d.route.path,
- textColor: 0,
- tooltip: g,
- backgroundColor: h
- });
- }));
- }),
- De(t.currentRoute, () => {
- c(),
- o.notifyComponentUpdate(),
- o.sendInspectorTree(a),
- o.sendInspectorState(a);
- });
- const i = 'router:navigations:' + r;
- o.addTimelineLayer({
- id: i,
- label: `Router${r ? ' ' + r : ''} Navigations`,
- color: 4237508
- }),
- t.onError((u, f) => {
- o.addTimelineEvent({
- layerId: i,
- event: {
- title: 'Error during Navigation',
- subtitle: f.fullPath,
- logType: 'error',
- time: o.now(),
- data: { error: u },
- groupId: f.meta.__navigationId
- }
- });
- });
- let s = 0;
- t.beforeEach((u, f) => {
- const d = {
- guard: es('beforeEach'),
- from: Po(f, 'Current Location during this navigation'),
- to: Po(u, 'Target location')
- };
- Object.defineProperty(u.meta, '__navigationId', { value: s++ }),
- o.addTimelineEvent({
- layerId: i,
- event: {
- time: o.now(),
- title: 'Start of navigation',
- subtitle: u.fullPath,
- data: d,
- groupId: u.meta.__navigationId
- }
- });
- }),
- t.afterEach((u, f, d) => {
- const h = { guard: es('afterEach') };
- d
- ? ((h.failure = {
- _custom: {
- type: Error,
- readOnly: !0,
- display: d ? d.message : '',
- tooltip: 'Navigation Failure',
- value: d
- }
- }),
- (h.status = es('❌')))
- : (h.status = es('✅')),
- (h.from = Po(f, 'Current Location during this navigation')),
- (h.to = Po(u, 'Target location')),
- o.addTimelineEvent({
- layerId: i,
- event: {
- title: 'End of navigation',
- subtitle: u.fullPath,
- time: o.now(),
- data: h,
- logType: d ? 'warning' : 'default',
- groupId: u.meta.__navigationId
- }
- });
- });
- const a = 'router-inspector:' + r;
- o.addInspector({
- id: a,
- label: 'Routes' + (r ? ' ' + r : ''),
- icon: 'book',
- treeFilterPlaceholder: 'Search routes'
- });
- function c() {
- if (!l) return;
- const u = l;
- let f = n.getRoutes().filter(d => !d.parent);
- f.forEach(Cm),
- u.filter && (f = f.filter(d => Nl(d, u.filter.toLowerCase()))),
- f.forEach(d => Om(d, t.currentRoute.value)),
- (u.rootNodes = f.map(xm));
- }
- let l;
- o.on.getInspectorTree(u => {
- (l = u), u.app === e && u.inspectorId === a && c();
- }),
- o.on.getInspectorState(u => {
- if (u.app === e && u.inspectorId === a) {
- const d = n.getRoutes().find(h => h.record.__vd_id === u.nodeId);
- d && (u.state = { options: ax(d) });
- }
- }),
- o.sendInspectorTree(a),
- o.sendInspectorState(a);
- }
- );
- }
- function sx(e) {
- return e.optional ? (e.repeatable ? '*' : '?') : e.repeatable ? '+' : '';
- }
- function ax(e) {
- const { record: t } = e,
- n = [{ editable: !1, key: 'path', value: t.path }];
- return (
- t.name != null && n.push({ editable: !1, key: 'name', value: t.name }),
- n.push({ editable: !1, key: 'regexp', value: e.re }),
- e.keys.length &&
- n.push({
- editable: !1,
- key: 'keys',
- value: {
- _custom: {
- type: null,
- readOnly: !0,
- display: e.keys.map(r => `${r.name}${sx(r)}`).join(' '),
- tooltip: 'Param keys',
- value: e.keys
- }
- }
- }),
- t.redirect != null &&
- n.push({ editable: !1, key: 'redirect', value: t.redirect }),
- e.alias.length &&
- n.push({
- editable: !1,
- key: 'aliases',
- value: e.alias.map(r => r.record.path)
- }),
- Object.keys(e.record.meta).length &&
- n.push({ editable: !1, key: 'meta', value: e.record.meta }),
- n.push({
- key: 'score',
- editable: !1,
- value: {
- _custom: {
- type: null,
- readOnly: !0,
- display: e.score.map(r => r.join(', ')).join(' | '),
- tooltip: 'Score used to sort routes',
- value: e.score
- }
- }
- }),
- n
- );
- }
- const _m = 15485081,
- wm = 2450411,
- Em = 8702998,
- lx = 2282478,
- Sm = 16486972,
- cx = 6710886;
- function xm(e) {
- const t = [],
- { record: n } = e;
- n.name != null &&
- t.push({ label: String(n.name), textColor: 0, backgroundColor: lx }),
- n.aliasOf && t.push({ label: 'alias', textColor: 0, backgroundColor: Sm }),
- e.__vd_match &&
- t.push({ label: 'matches', textColor: 0, backgroundColor: _m }),
- e.__vd_exactActive &&
- t.push({ label: 'exact', textColor: 0, backgroundColor: Em }),
- e.__vd_active &&
- t.push({ label: 'active', textColor: 0, backgroundColor: wm }),
- n.redirect &&
- t.push({
- label:
- typeof n.redirect == 'string'
- ? `redirect: ${n.redirect}`
- : 'redirects',
- textColor: 16777215,
- backgroundColor: cx
- });
- let r = n.__vd_id;
- return (
- r == null && ((r = String(ux++)), (n.__vd_id = r)),
- { id: r, label: n.path, tags: t, children: e.children.map(xm) }
- );
- }
- let ux = 0;
- const fx = /^\/(.*)\/([a-z]*)$/;
- function Om(e, t) {
- const n = t.matched.length && or(t.matched[t.matched.length - 1], e.record);
- (e.__vd_exactActive = e.__vd_active = n),
- n || (e.__vd_active = t.matched.some(r => or(r, e.record))),
- e.children.forEach(r => Om(r, t));
- }
- function Cm(e) {
- (e.__vd_match = !1), e.children.forEach(Cm);
- }
- function Nl(e, t) {
- const n = String(e.re).match(fx);
- if (((e.__vd_match = !1), !n || n.length < 3)) return !1;
- if (new RegExp(n[1].replace(/\$$/, ''), n[2]).test(t))
- return (
- e.children.forEach(s => Nl(s, t)),
- e.record.path !== '/' || t === '/'
- ? ((e.__vd_match = e.re.test(t)), !0)
- : !1
- );
- const o = e.record.path.toLowerCase(),
- i = di(o);
- return (!t.startsWith('/') && (i.includes(t) || o.includes(t))) ||
- i.startsWith(t) ||
- o.startsWith(t) ||
- (e.record.name && String(e.record.name).includes(t))
- ? !0
- : e.children.some(s => Nl(s, t));
- }
- function dx(e, t) {
- const n = {};
- for (const r in e) t.includes(r) || (n[r] = e[r]);
- return n;
- }
- function px(e) {
- const t = TS(e.routes, e),
- n = e.parseQuery || KS,
- r = e.stringifyQuery || Hf,
- o = e.history;
- if (!o)
- throw new Error(
- 'Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.'
- );
- const i = Ao(),
- s = Ao(),
- a = Ao(),
- c = ip(Mn);
- let l = Mn;
- Sn &&
- e.scrollBehavior &&
- 'scrollRestoration' in history &&
- (history.scrollRestoration = 'manual');
- const u = ja.bind(null, M => '' + M),
- f = ja.bind(null, WS),
- d = ja.bind(null, di);
- function h(M, q) {
- let J, te;
- return (
- fm(M) ? ((J = t.getRecordMatcher(M)), (te = q)) : (te = M),
- t.addRoute(te, J)
- );
- }
- function g(M) {
- const q = t.getRecordMatcher(M);
- q
- ? t.removeRoute(q)
- : Oe(`Cannot remove non-existent route "${String(M)}"`);
- }
- function w() {
- return t.getRoutes().map(M => M.record);
- }
- function E(M) {
- return !!t.getRecordMatcher(M);
- }
- function y(M, q) {
- if (((q = $e({}, q || c.value)), typeof M == 'string')) {
- const b = Ua(n, M, q.path),
- P = t.resolve({ path: b.path }, q),
- U = o.createHref(b.fullPath);
- return (
- U.startsWith('//')
- ? Oe(
- `Location "${M}" resolved to "${U}". A resolved location cannot start with multiple slashes.`
- )
- : P.matched.length ||
- Oe(`No match found for location with path "${M}"`),
- $e(b, P, {
- params: d(P.params),
- hash: di(b.hash),
- redirectedFrom: void 0,
- href: U
- })
- );
- }
- let J;
- if ('path' in M)
- 'params' in M &&
- !('name' in M) &&
- Object.keys(M.params).length &&
- Oe(
- `Path "${M.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`
- ),
- (J = $e({}, M, { path: Ua(n, M.path, q.path).path }));
- else {
- const b = $e({}, M.params);
- for (const P in b) b[P] == null && delete b[P];
- (J = $e({}, M, { params: f(b) })), (q.params = f(q.params));
- }
- const te = t.resolve(J, q),
- ue = M.hash || '';
- ue &&
- !ue.startsWith('#') &&
- Oe(
- `A \`hash\` should always start with the character "#". Replace "${ue}" with "#${ue}".`
- ),
- (te.params = u(d(te.params)));
- const be = ZE(r, $e({}, M, { hash: VS(ue), path: te.path })),
- m = o.createHref(be);
- return (
- m.startsWith('//')
- ? Oe(
- `Location "${M}" resolved to "${m}". A resolved location cannot start with multiple slashes.`
- )
- : te.matched.length ||
- Oe(
- `No match found for location with path "${
- 'path' in M ? M.path : M
- }"`
- ),
- $e(
- {
- fullPath: be,
- hash: ue,
- query: r === Hf ? GS(M.query) : M.query || {}
- },
- te,
- { redirectedFrom: void 0, href: m }
- )
- );
- }
- function v(M) {
- return typeof M == 'string' ? Ua(n, M, c.value.path) : $e({}, M);
- }
- function O(M, q) {
- if (l !== M) return io(8, { from: q, to: M });
- }
- function C(M) {
- return A(M);
- }
- function x(M) {
- return C($e(v(M), { replace: !0 }));
- }
- function N(M) {
- const q = M.matched[M.matched.length - 1];
- if (q && q.redirect) {
- const { redirect: J } = q;
- let te = typeof J == 'function' ? J(M) : J;
- if (
- (typeof te == 'string' &&
- ((te =
- te.includes('?') || te.includes('#') ? (te = v(te)) : { path: te }),
- (te.params = {})),
- !('path' in te) && !('name' in te))
- )
- throw (
- (Oe(`Invalid redirect found:
- ${JSON.stringify(te, null, 2)}
- when navigating to "${
- M.fullPath
- }". A redirect must contain a name or path. This will break in production.`),
- new Error('Invalid redirect'))
- );
- return $e(
- { query: M.query, hash: M.hash, params: 'path' in te ? {} : M.params },
- te
- );
- }
- }
- function A(M, q) {
- const J = (l = y(M)),
- te = c.value,
- ue = M.state,
- be = M.force,
- m = M.replace === !0,
- b = N(J);
- if (b)
- return A(
- $e(v(b), {
- state: typeof b == 'object' ? $e({}, ue, b.state) : ue,
- force: be,
- replace: m
- }),
- q || J
- );
- const P = J;
- P.redirectedFrom = q;
- let U;
- return (
- !be &&
- Rf(r, te, J) &&
- ((U = io(16, { to: P, from: te })), Se(te, te, !0, !1)),
- (U ? Promise.resolve(U) : S(P, te))
- .catch(j => (yn(j) ? (yn(j, 2) ? j : he(j)) : K(j, P, te)))
- .then(j => {
- if (j) {
- if (yn(j, 2))
- return Rf(r, y(j.to), P) &&
- q &&
- (q._count = q._count ? q._count + 1 : 1) > 30
- ? (Oe(`Detected a possibly infinite redirection in a navigation guard when going from "${te.fullPath}" to "${P.fullPath}". Aborting to avoid a Stack Overflow.
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),
- Promise.reject(
- new Error('Infinite redirect in navigation guard')
- ))
- : A(
- $e({ replace: m }, v(j.to), {
- state:
- typeof j.to == 'object' ? $e({}, ue, j.to.state) : ue,
- force: be
- }),
- q || P
- );
- } else j = B(P, te, !0, m, ue);
- return R(P, te, j), j;
- })
- );
- }
- function I(M, q) {
- const J = O(M, q);
- return J ? Promise.reject(J) : Promise.resolve();
- }
- function k(M) {
- const q = Le.values().next().value;
- return q && typeof q.runWithContext == 'function'
- ? q.runWithContext(M)
- : M();
- }
- function S(M, q) {
- let J;
- const [te, ue, be] = hx(M, q);
- J = Ha(te.reverse(), 'beforeRouteLeave', M, q);
- for (const b of te)
- b.leaveGuards.forEach(P => {
- J.push(Ln(P, M, q));
- });
- const m = I.bind(null, M, q);
- return (
- J.push(m),
- ze(J)
- .then(() => {
- J = [];
- for (const b of i.list()) J.push(Ln(b, M, q));
- return J.push(m), ze(J);
- })
- .then(() => {
- J = Ha(ue, 'beforeRouteUpdate', M, q);
- for (const b of ue)
- b.updateGuards.forEach(P => {
- J.push(Ln(P, M, q));
- });
- return J.push(m), ze(J);
- })
- .then(() => {
- J = [];
- for (const b of M.matched)
- if (b.beforeEnter && !q.matched.includes(b))
- if (Rt(b.beforeEnter))
- for (const P of b.beforeEnter) J.push(Ln(P, M, q));
- else J.push(Ln(b.beforeEnter, M, q));
- return J.push(m), ze(J);
- })
- .then(
- () => (
- M.matched.forEach(b => (b.enterCallbacks = {})),
- (J = Ha(be, 'beforeRouteEnter', M, q)),
- J.push(m),
- ze(J)
- )
- )
- .then(() => {
- J = [];
- for (const b of s.list()) J.push(Ln(b, M, q));
- return J.push(m), ze(J);
- })
- .catch(b => (yn(b, 8) ? b : Promise.reject(b)))
- );
- }
- function R(M, q, J) {
- for (const te of a.list()) k(() => te(M, q, J));
- }
- function B(M, q, J, te, ue) {
- const be = O(M, q);
- if (be) return be;
- const m = q === Mn,
- b = Sn ? history.state : {};
- J &&
- (te || m
- ? o.replace(M.fullPath, $e({ scroll: m && b && b.scroll }, ue))
- : o.push(M.fullPath, ue)),
- (c.value = M),
- Se(M, q, J, m),
- he();
- }
- let F;
- function $() {
- F ||
- (F = o.listen((M, q, J) => {
- if (!qe.listening) return;
- const te = y(M),
- ue = N(te);
- if (ue) {
- A($e(ue, { replace: !0 }), te).catch(Wo);
- return;
- }
- l = te;
- const be = c.value;
- Sn && aS(Mf(be.fullPath, J.delta), da()),
- S(te, be)
- .catch(m =>
- yn(m, 12)
- ? m
- : yn(m, 2)
- ? (A(m.to, te)
- .then(b => {
- yn(b, 20) &&
- !J.delta &&
- J.type === fi.pop &&
- o.go(-1, !1);
- })
- .catch(Wo),
- Promise.reject())
- : (J.delta && o.go(-J.delta, !1), K(m, te, be))
- )
- .then(m => {
- (m = m || B(te, be, !1)),
- m &&
- (J.delta && !yn(m, 8)
- ? o.go(-J.delta, !1)
- : J.type === fi.pop && yn(m, 20) && o.go(-1, !1)),
- R(te, be, m);
- })
- .catch(Wo);
- }));
- }
- let V = Ao(),
- Y = Ao(),
- H;
- function K(M, q, J) {
- he(M);
- const te = Y.list();
- return (
- te.length
- ? te.forEach(ue => ue(M, q, J))
- : (Oe('uncaught error during route navigation:'), console.error(M)),
- Promise.reject(M)
- );
- }
- function ie() {
- return H && c.value !== Mn
- ? Promise.resolve()
- : new Promise((M, q) => {
- V.add([M, q]);
- });
- }
- function he(M) {
- return (
- H ||
- ((H = !M),
- $(),
- V.list().forEach(([q, J]) => (M ? J(M) : q())),
- V.reset()),
- M
- );
- }
- function Se(M, q, J, te) {
- const { scrollBehavior: ue } = e;
- if (!Sn || !ue) return Promise.resolve();
- const be =
- (!J && lS(Mf(M.fullPath, 0))) ||
- ((te || !J) && history.state && history.state.scroll) ||
- null;
- return St()
- .then(() => ue(M, q, be))
- .then(m => m && sS(m))
- .catch(m => K(m, M, q));
- }
- const ye = M => o.go(M);
- let xe;
- const Le = new Set(),
- qe = {
- currentRoute: c,
- listening: !0,
- addRoute: h,
- removeRoute: g,
- hasRoute: E,
- getRoutes: w,
- resolve: y,
- options: e,
- push: C,
- replace: x,
- go: ye,
- back: () => ye(-1),
- forward: () => ye(1),
- beforeEach: i.add,
- beforeResolve: s.add,
- afterEach: a.add,
- onError: Y.add,
- isReady: ie,
- install(M) {
- const q = this;
- M.component('RouterLink', ZS),
- M.component('RouterView', bm),
- (M.config.globalProperties.$router = q),
- Object.defineProperty(M.config.globalProperties, '$route', {
- enumerable: !0,
- get: () => Ct(c)
- }),
- Sn &&
- !xe &&
- c.value === Mn &&
- ((xe = !0),
- C(o.location).catch(ue => {
- Oe('Unexpected error when starting the router:', ue);
- }));
- const J = {};
- for (const ue in Mn) J[ue] = Me(() => c.value[ue]);
- M.provide(pa, q), M.provide(Wc, ct(J)), M.provide(Ll, c);
- const te = M.unmount;
- Le.add(M),
- (M.unmount = function () {
- Le.delete(M),
- Le.size < 1 &&
- ((l = Mn),
- F && F(),
- (F = null),
- (c.value = Mn),
- (xe = !1),
- (H = !1)),
- te();
- }),
- Sn && ix(M, q, t);
- }
- };
- function ze(M) {
- return M.reduce((q, J) => q.then(() => k(J)), Promise.resolve());
- }
- return qe;
- }
- function hx(e, t) {
- const n = [],
- r = [],
- o = [],
- i = Math.max(t.matched.length, e.matched.length);
- for (let s = 0; s < i; s++) {
- const a = t.matched[s];
- a && (e.matched.find(l => or(l, a)) ? r.push(a) : n.push(a));
- const c = e.matched[s];
- c && (t.matched.find(l => or(l, c)) || o.push(c));
- }
- return [n, r, o];
- }
- function Tm() {
- return rt(pa);
- }
- function Am() {
- return rt(Wc);
- }
- const mx = window.postMessage;
- window.postMessage = e => {
- mx(e, '*');
- };
- const Rs = () => {},
- Yn = {};
- Oi();
- var Rd, kd, Md, Fd, Bd, Dd;
- const pi =
- window.DAYA ||
- ((kd = (Rd = window.webkit) == null ? void 0 : Rd.messageHandlers) == null
- ? void 0
- : kd.DAYA) ||
- window.COLEXIU ||
- ((Fd = (Md = window.webkit) == null ? void 0 : Md.messageHandlers) == null
- ? void 0
- : Fd.COLEXIU) ||
- window.ORCHESTRA ||
- ((Dd = (Bd = window.webkit) == null ? void 0 : Bd.messageHandlers) == null
- ? void 0
- : Dd.ORCHESTRA);
- pi &&
- window.addEventListener('message', e => {
- var t, n, r;
- try {
- console.log('app交互接受:', e.data);
- const o = e.data
- ? typeof e.data == 'object'
- ? e.data
- : JSON.parse(e.data)
- : {},
- i = ((t = o.content) == null ? void 0 : t.uuid) || o.uuid;
- console.log(i, o.content, 'uuid');
- try {
- o.content && (o.content = JSON.parse(o.content));
- } catch (c) {}
- if (((n = o == null ? void 0 : o.content) != null && n.uuid, !i)) {
- const c = Object.keys(Yn).filter(l => l.indexOf(o.api) === 0);
- for (const l of c) {
- const u = Yn[l] || Rs;
- typeof u == 'function' && u(o);
- }
- return;
- }
- const s =
- ((r = o.content) == null ? void 0 : r.uuid) ||
- o.uuid ||
- o.api + o.uuid,
- a = Yn[s] || Rs;
- typeof a == 'function' && a(o);
- } catch (o) {
- console.error('通信消息解析错误', o);
- }
- });
- const go = (e, t) => {
- if (pi) {
- const n = kh();
- (Yn[n] = t || Rs),
- (e.content = e.content ? { ...e.content, uuid: n } : { uuid: n }),
- console.log('app交互发送:', e),
- pi.postMessage(JSON.stringify(e));
- }
- },
- FT = (e, t) => {
- if (pi) {
- const n = e + kh();
- Yn[n] = t || Rs;
- }
- },
- BT = (e, t) => {
- if (pi) {
- const n = e;
- if (Array.isArray(Yn[n])) {
- const r = Yn[n].indexOf(t);
- Yn[n].splice(r, 1);
- }
- }
- },
- gx = e =>
- new Promise(t => {
- go(e, n => t(n));
- }),
- yx = 'modulepreload',
- vx = function (e, t) {
- return new URL(e, t).href;
- },
- Gf = {},
- ge = function (t, n, r) {
- if (!n || n.length === 0) return t();
- const o = document.getElementsByTagName('link');
- return Promise.all(
- n.map(i => {
- if (((i = vx(i, r)), i in Gf)) return;
- Gf[i] = !0;
- const s = i.endsWith('.css'),
- a = s ? '[rel="stylesheet"]' : '';
- if (!!r)
- for (let u = o.length - 1; u >= 0; u--) {
- const f = o[u];
- if (f.href === i && (!s || f.rel === 'stylesheet')) return;
- }
- else if (document.querySelector(`link[href="${i}"]${a}`)) return;
- const l = document.createElement('link');
- if (
- ((l.rel = s ? 'stylesheet' : yx),
- s || ((l.as = 'script'), (l.crossOrigin = '')),
- (l.href = i),
- document.head.appendChild(l),
- s)
- )
- return new Promise((u, f) => {
- l.addEventListener('load', u),
- l.addEventListener('error', () =>
- f(new Error(`Unable to preload CSS for ${i}`))
- );
- });
- })
- ).then(() => t());
- },
- bx = '_error_1i228_1',
- _x = '_info_1i228_9',
- wx = { error: bx, info: _x },
- Qe = ct({
- user: { status: 'init', data: {} },
- navBarHeight: 0,
- ossUploadUrl: 'https://ks3-cn-beijing.ksyuncs.com/'
- }),
- DT = () => {
- (Qe.user.status = 'init'), (Qe.user.data = null);
- },
- Ex = e => {
- (Qe.user.status = 'login'), (Qe.user.data = e);
- },
- jl = () => {
- (Qe.user.status = 'logout'), (Qe.user.data = null);
- },
- Pm = () => {
- (Qe.user.status = 'error'), (Qe.user.data = null);
- },
- LT = (e, t) => {
- {
- const n =
- `https://online.lexiaoya.cn/getWxCode?appid=${
- e || 'wx8654c671631cfade'
- }&state=STATE&redirect_uri=` +
- encodeURIComponent(t || window.location.href);
- window.location.replace(n);
- }
- },
- Yf = 60 * 60 * 24 * 7,
- Sx = ({ prefixKey: e = '', storage: t = sessionStorage } = {}) => {
- const n = class {
- constructor() {
- Ta(this, 'storage', t);
- Ta(this, 'prefixKey', e);
- }
- getKey(r) {
- return `${this.prefixKey}${r}`.toUpperCase();
- }
- set(r, o, i = Yf) {
- const s = JSON.stringify({
- value: o,
- expire: i !== null ? new Date().getTime() + i * 1e3 : null
- });
- this.storage.setItem(this.getKey(r), s);
- }
- get(r, o = null) {
- const i = this.storage.getItem(this.getKey(r));
- if (i)
- try {
- const s = JSON.parse(i),
- { value: a, expire: c } = s;
- if (c === null || c >= Date.now()) return a;
- this.remove(r);
- } catch (s) {
- return o;
- }
- return o;
- }
- remove(r) {
- this.storage.removeItem(this.getKey(r));
- }
- clear() {
- this.storage.clear();
- }
- setCookie(r, o, i = Yf) {
- document.cookie = `${this.getKey(r)}=${o}; Max-Age=${i}`;
- }
- getCookie(r) {
- const o = document.cookie.split('; ');
- for (let i = 0, s = o.length; i < s; i++) {
- const a = o[i].split('=');
- if (a[0] === this.getKey(r)) return a[1];
- }
- return '';
- }
- removeCookie(r) {
- this.setCookie(r, 1, -1);
- }
- clearCookie() {
- const r = document.cookie.match(/[^ =;]+(?==)/g);
- if (r)
- for (let o = r.length; o--; )
- document.cookie = r[o] + '=0;expire=' + new Date(0).toUTCString();
- }
- };
- return new n();
- },
- Kc = Sx(),
- Gc = 'ACCESS-TOKEN-STUDENT';
- var xx = function () {
- if (
- typeof Symbol != 'function' ||
- typeof Object.getOwnPropertySymbols != 'function'
- )
- return !1;
- if (typeof Symbol.iterator == 'symbol') return !0;
- var t = {},
- n = Symbol('test'),
- r = Object(n);
- if (
- typeof n == 'string' ||
- Object.prototype.toString.call(n) !== '[object Symbol]' ||
- Object.prototype.toString.call(r) !== '[object Symbol]'
- )
- return !1;
- var o = 42;
- t[n] = o;
- for (n in t) return !1;
- if (
- (typeof Object.keys == 'function' && Object.keys(t).length !== 0) ||
- (typeof Object.getOwnPropertyNames == 'function' &&
- Object.getOwnPropertyNames(t).length !== 0)
- )
- return !1;
- var i = Object.getOwnPropertySymbols(t);
- if (
- i.length !== 1 ||
- i[0] !== n ||
- !Object.prototype.propertyIsEnumerable.call(t, n)
- )
- return !1;
- if (typeof Object.getOwnPropertyDescriptor == 'function') {
- var s = Object.getOwnPropertyDescriptor(t, n);
- if (s.value !== o || s.enumerable !== !0) return !1;
- }
- return !0;
- },
- Jf = typeof Symbol < 'u' && Symbol,
- Ox = xx,
- Cx = function () {
- return typeof Jf != 'function' ||
- typeof Symbol != 'function' ||
- typeof Jf('foo') != 'symbol' ||
- typeof Symbol('bar') != 'symbol'
- ? !1
- : Ox();
- },
- Qf = { foo: {} },
- Tx = Object,
- Ax = function () {
- return (
- { __proto__: Qf }.foo === Qf.foo && !({ __proto__: null } instanceof Tx)
- );
- },
- Px = 'Function.prototype.bind called on incompatible ',
- Va = Array.prototype.slice,
- $x = Object.prototype.toString,
- Ix = '[object Function]',
- Rx = function (t) {
- var n = this;
- if (typeof n != 'function' || $x.call(n) !== Ix)
- throw new TypeError(Px + n);
- for (
- var r = Va.call(arguments, 1),
- o,
- i = function () {
- if (this instanceof o) {
- var u = n.apply(this, r.concat(Va.call(arguments)));
- return Object(u) === u ? u : this;
- } else return n.apply(t, r.concat(Va.call(arguments)));
- },
- s = Math.max(0, n.length - r.length),
- a = [],
- c = 0;
- c < s;
- c++
- )
- a.push('$' + c);
- if (
- ((o = Function(
- 'binder',
- 'return function (' +
- a.join(',') +
- '){ return binder.apply(this,arguments); }'
- )(i)),
- n.prototype)
- ) {
- var l = function () {};
- (l.prototype = n.prototype),
- (o.prototype = new l()),
- (l.prototype = null);
- }
- return o;
- },
- kx = Rx,
- Yc = Function.prototype.bind || kx,
- Mx = Yc,
- Fx = Mx.call(Function.call, Object.prototype.hasOwnProperty),
- we,
- so = SyntaxError,
- $m = Function,
- eo = TypeError,
- qa = function (e) {
- try {
- return $m('"use strict"; return (' + e + ').constructor;')();
- } catch (t) {}
- },
- xr = Object.getOwnPropertyDescriptor;
- if (xr)
- try {
- xr({}, '');
- } catch (e) {
- xr = null;
- }
- var za = function () {
- throw new eo();
- },
- Bx = xr
- ? (function () {
- try {
- return arguments.callee, za;
- } catch (e) {
- try {
- return xr(arguments, 'callee').get;
- } catch (t) {
- return za;
- }
- }
- })()
- : za,
- qr = Cx(),
- Dx = Ax(),
- Je =
- Object.getPrototypeOf ||
- (Dx
- ? function (e) {
- return e.__proto__;
- }
- : null),
- Kr = {},
- Lx = typeof Uint8Array > 'u' || !Je ? we : Je(Uint8Array),
- Or = {
- '%AggregateError%': typeof AggregateError > 'u' ? we : AggregateError,
- '%Array%': Array,
- '%ArrayBuffer%': typeof ArrayBuffer > 'u' ? we : ArrayBuffer,
- '%ArrayIteratorPrototype%': qr && Je ? Je([][Symbol.iterator]()) : we,
- '%AsyncFromSyncIteratorPrototype%': we,
- '%AsyncFunction%': Kr,
- '%AsyncGenerator%': Kr,
- '%AsyncGeneratorFunction%': Kr,
- '%AsyncIteratorPrototype%': Kr,
- '%Atomics%': typeof Atomics > 'u' ? we : Atomics,
- '%BigInt%': typeof BigInt > 'u' ? we : BigInt,
- '%BigInt64Array%': typeof BigInt64Array > 'u' ? we : BigInt64Array,
- '%BigUint64Array%': typeof BigUint64Array > 'u' ? we : BigUint64Array,
- '%Boolean%': Boolean,
- '%DataView%': typeof DataView > 'u' ? we : DataView,
- '%Date%': Date,
- '%decodeURI%': decodeURI,
- '%decodeURIComponent%': decodeURIComponent,
- '%encodeURI%': encodeURI,
- '%encodeURIComponent%': encodeURIComponent,
- '%Error%': Error,
- '%eval%': eval,
- '%EvalError%': EvalError,
- '%Float32Array%': typeof Float32Array > 'u' ? we : Float32Array,
- '%Float64Array%': typeof Float64Array > 'u' ? we : Float64Array,
- '%FinalizationRegistry%':
- typeof FinalizationRegistry > 'u' ? we : FinalizationRegistry,
- '%Function%': $m,
- '%GeneratorFunction%': Kr,
- '%Int8Array%': typeof Int8Array > 'u' ? we : Int8Array,
- '%Int16Array%': typeof Int16Array > 'u' ? we : Int16Array,
- '%Int32Array%': typeof Int32Array > 'u' ? we : Int32Array,
- '%isFinite%': isFinite,
- '%isNaN%': isNaN,
- '%IteratorPrototype%': qr && Je ? Je(Je([][Symbol.iterator]())) : we,
- '%JSON%': typeof JSON == 'object' ? JSON : we,
- '%Map%': typeof Map > 'u' ? we : Map,
- '%MapIteratorPrototype%':
- typeof Map > 'u' || !qr || !Je ? we : Je(new Map()[Symbol.iterator]()),
- '%Math%': Math,
- '%Number%': Number,
- '%Object%': Object,
- '%parseFloat%': parseFloat,
- '%parseInt%': parseInt,
- '%Promise%': typeof Promise > 'u' ? we : Promise,
- '%Proxy%': typeof Proxy > 'u' ? we : Proxy,
- '%RangeError%': RangeError,
- '%ReferenceError%': ReferenceError,
- '%Reflect%': typeof Reflect > 'u' ? we : Reflect,
- '%RegExp%': RegExp,
- '%Set%': typeof Set > 'u' ? we : Set,
- '%SetIteratorPrototype%':
- typeof Set > 'u' || !qr || !Je ? we : Je(new Set()[Symbol.iterator]()),
- '%SharedArrayBuffer%':
- typeof SharedArrayBuffer > 'u' ? we : SharedArrayBuffer,
- '%String%': String,
- '%StringIteratorPrototype%': qr && Je ? Je(''[Symbol.iterator]()) : we,
- '%Symbol%': qr ? Symbol : we,
- '%SyntaxError%': so,
- '%ThrowTypeError%': Bx,
- '%TypedArray%': Lx,
- '%TypeError%': eo,
- '%Uint8Array%': typeof Uint8Array > 'u' ? we : Uint8Array,
- '%Uint8ClampedArray%':
- typeof Uint8ClampedArray > 'u' ? we : Uint8ClampedArray,
- '%Uint16Array%': typeof Uint16Array > 'u' ? we : Uint16Array,
- '%Uint32Array%': typeof Uint32Array > 'u' ? we : Uint32Array,
- '%URIError%': URIError,
- '%WeakMap%': typeof WeakMap > 'u' ? we : WeakMap,
- '%WeakRef%': typeof WeakRef > 'u' ? we : WeakRef,
- '%WeakSet%': typeof WeakSet > 'u' ? we : WeakSet
- };
- if (Je)
- try {
- null.error;
- } catch (e) {
- var Nx = Je(Je(e));
- Or['%Error.prototype%'] = Nx;
- }
- var jx = function e(t) {
- var n;
- if (t === '%AsyncFunction%') n = qa('async function () {}');
- else if (t === '%GeneratorFunction%') n = qa('function* () {}');
- else if (t === '%AsyncGeneratorFunction%') n = qa('async function* () {}');
- else if (t === '%AsyncGenerator%') {
- var r = e('%AsyncGeneratorFunction%');
- r && (n = r.prototype);
- } else if (t === '%AsyncIteratorPrototype%') {
- var o = e('%AsyncGenerator%');
- o && Je && (n = Je(o.prototype));
- }
- return (Or[t] = n), n;
- },
- Xf = {
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
- '%ArrayPrototype%': ['Array', 'prototype'],
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
- '%AsyncGeneratorPrototype%': [
- 'AsyncGeneratorFunction',
- 'prototype',
- 'prototype'
- ],
- '%BooleanPrototype%': ['Boolean', 'prototype'],
- '%DataViewPrototype%': ['DataView', 'prototype'],
- '%DatePrototype%': ['Date', 'prototype'],
- '%ErrorPrototype%': ['Error', 'prototype'],
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
- '%FunctionPrototype%': ['Function', 'prototype'],
- '%Generator%': ['GeneratorFunction', 'prototype'],
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
- '%JSONParse%': ['JSON', 'parse'],
- '%JSONStringify%': ['JSON', 'stringify'],
- '%MapPrototype%': ['Map', 'prototype'],
- '%NumberPrototype%': ['Number', 'prototype'],
- '%ObjectPrototype%': ['Object', 'prototype'],
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
- '%PromisePrototype%': ['Promise', 'prototype'],
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
- '%Promise_all%': ['Promise', 'all'],
- '%Promise_reject%': ['Promise', 'reject'],
- '%Promise_resolve%': ['Promise', 'resolve'],
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
- '%RegExpPrototype%': ['RegExp', 'prototype'],
- '%SetPrototype%': ['Set', 'prototype'],
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
- '%StringPrototype%': ['String', 'prototype'],
- '%SymbolPrototype%': ['Symbol', 'prototype'],
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
- '%URIErrorPrototype%': ['URIError', 'prototype'],
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
- },
- Ai = Yc,
- ks = Fx,
- Ux = Ai.call(Function.call, Array.prototype.concat),
- Hx = Ai.call(Function.apply, Array.prototype.splice),
- Zf = Ai.call(Function.call, String.prototype.replace),
- Ms = Ai.call(Function.call, String.prototype.slice),
- Vx = Ai.call(Function.call, RegExp.prototype.exec),
- qx =
- /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
- zx = /\\(\\)?/g,
- Wx = function (t) {
- var n = Ms(t, 0, 1),
- r = Ms(t, -1);
- if (n === '%' && r !== '%')
- throw new so('invalid intrinsic syntax, expected closing `%`');
- if (r === '%' && n !== '%')
- throw new so('invalid intrinsic syntax, expected opening `%`');
- var o = [];
- return (
- Zf(t, qx, function (i, s, a, c) {
- o[o.length] = a ? Zf(c, zx, '$1') : s || i;
- }),
- o
- );
- },
- Kx = function (t, n) {
- var r = t,
- o;
- if ((ks(Xf, r) && ((o = Xf[r]), (r = '%' + o[0] + '%')), ks(Or, r))) {
- var i = Or[r];
- if ((i === Kr && (i = jx(r)), typeof i > 'u' && !n))
- throw new eo(
- 'intrinsic ' +
- t +
- ' exists, but is not available. Please file an issue!'
- );
- return { alias: o, name: r, value: i };
- }
- throw new so('intrinsic ' + t + ' does not exist!');
- },
- Jc = function (t, n) {
- if (typeof t != 'string' || t.length === 0)
- throw new eo('intrinsic name must be a non-empty string');
- if (arguments.length > 1 && typeof n != 'boolean')
- throw new eo('"allowMissing" argument must be a boolean');
- if (Vx(/^%?[^%]*%?$/, t) === null)
- throw new so(
- '`%` may not be present anywhere but at the beginning and end of the intrinsic name'
- );
- var r = Wx(t),
- o = r.length > 0 ? r[0] : '',
- i = Kx('%' + o + '%', n),
- s = i.name,
- a = i.value,
- c = !1,
- l = i.alias;
- l && ((o = l[0]), Hx(r, Ux([0, 1], l)));
- for (var u = 1, f = !0; u < r.length; u += 1) {
- var d = r[u],
- h = Ms(d, 0, 1),
- g = Ms(d, -1);
- if (
- (h === '"' ||
- h === "'" ||
- h === '`' ||
- g === '"' ||
- g === "'" ||
- g === '`') &&
- h !== g
- )
- throw new so('property names with quotes must have matching quotes');
- if (
- ((d === 'constructor' || !f) && (c = !0),
- (o += '.' + d),
- (s = '%' + o + '%'),
- ks(Or, s))
- )
- a = Or[s];
- else if (a != null) {
- if (!(d in a)) {
- if (!n)
- throw new eo(
- 'base intrinsic for ' +
- t +
- ' exists, but the property is not available.'
- );
- return;
- }
- if (xr && u + 1 >= r.length) {
- var w = xr(a, d);
- (f = !!w),
- f && 'get' in w && !('originalValue' in w.get)
- ? (a = w.get)
- : (a = a[d]);
- } else (f = ks(a, d)), (a = a[d]);
- f && !c && (Or[s] = a);
- }
- }
- return a;
- },
- Im = { exports: {} };
- (function (e) {
- var t = Yc,
- n = Jc,
- r = n('%Function.prototype.apply%'),
- o = n('%Function.prototype.call%'),
- i = n('%Reflect.apply%', !0) || t.call(o, r),
- s = n('%Object.getOwnPropertyDescriptor%', !0),
- a = n('%Object.defineProperty%', !0),
- c = n('%Math.max%');
- if (a)
- try {
- a({}, 'a', { value: 1 });
- } catch (u) {
- a = null;
- }
- e.exports = function (f) {
- var d = i(t, o, arguments);
- if (s && a) {
- var h = s(d, 'length');
- h.configurable &&
- a(d, 'length', { value: 1 + c(0, f.length - (arguments.length - 1)) });
- }
- return d;
- };
- var l = function () {
- return i(t, r, arguments);
- };
- a ? a(e.exports, 'apply', { value: l }) : (e.exports.apply = l);
- })(Im);
- var Gx = Im.exports,
- Rm = Jc,
- km = Gx,
- Yx = km(Rm('String.prototype.indexOf')),
- Jx = function (t, n) {
- var r = Rm(t, !!n);
- return typeof r == 'function' && Yx(t, '.prototype.') > -1 ? km(r) : r;
- };
- const Qx = new Proxy(
- {},
- {
- get(e, t) {
- throw new Error(
- `Module "" has been externalized for browser compatibility. Cannot access ".${t}" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`
- );
- }
- }
- ),
- Xx = Object.freeze(
- Object.defineProperty(
- { __proto__: null, default: Qx },
- Symbol.toStringTag,
- { value: 'Module' }
- )
- ),
- Zx = Tw(Xx);
- var Qc = typeof Map == 'function' && Map.prototype,
- Wa =
- Object.getOwnPropertyDescriptor && Qc
- ? Object.getOwnPropertyDescriptor(Map.prototype, 'size')
- : null,
- Fs = Qc && Wa && typeof Wa.get == 'function' ? Wa.get : null,
- ed = Qc && Map.prototype.forEach,
- Xc = typeof Set == 'function' && Set.prototype,
- Ka =
- Object.getOwnPropertyDescriptor && Xc
- ? Object.getOwnPropertyDescriptor(Set.prototype, 'size')
- : null,
- Bs = Xc && Ka && typeof Ka.get == 'function' ? Ka.get : null,
- td = Xc && Set.prototype.forEach,
- eO = typeof WeakMap == 'function' && WeakMap.prototype,
- Go = eO ? WeakMap.prototype.has : null,
- tO = typeof WeakSet == 'function' && WeakSet.prototype,
- Yo = tO ? WeakSet.prototype.has : null,
- nO = typeof WeakRef == 'function' && WeakRef.prototype,
- nd = nO ? WeakRef.prototype.deref : null,
- rO = Boolean.prototype.valueOf,
- oO = Object.prototype.toString,
- iO = Function.prototype.toString,
- sO = String.prototype.match,
- Zc = String.prototype.slice,
- Vn = String.prototype.replace,
- aO = String.prototype.toUpperCase,
- rd = String.prototype.toLowerCase,
- Mm = RegExp.prototype.test,
- od = Array.prototype.concat,
- Zt = Array.prototype.join,
- lO = Array.prototype.slice,
- id = Math.floor,
- Ul = typeof BigInt == 'function' ? BigInt.prototype.valueOf : null,
- Ga = Object.getOwnPropertySymbols,
- Hl =
- typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
- ? Symbol.prototype.toString
- : null,
- ao = typeof Symbol == 'function' && typeof Symbol.iterator == 'object',
- ft =
- typeof Symbol == 'function' &&
- Symbol.toStringTag &&
- (typeof Symbol.toStringTag === ao || 'symbol')
- ? Symbol.toStringTag
- : null,
- Fm = Object.prototype.propertyIsEnumerable,
- sd =
- (typeof Reflect == 'function'
- ? Reflect.getPrototypeOf
- : Object.getPrototypeOf) ||
- ([].__proto__ === Array.prototype
- ? function (e) {
- return e.__proto__;
- }
- : null);
- function ad(e, t) {
- if (
- e === 1 / 0 ||
- e === -1 / 0 ||
- e !== e ||
- (e && e > -1e3 && e < 1e3) ||
- Mm.call(/e/, t)
- )
- return t;
- var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
- if (typeof e == 'number') {
- var r = e < 0 ? -id(-e) : id(e);
- if (r !== e) {
- var o = String(r),
- i = Zc.call(t, o.length + 1);
- return (
- Vn.call(o, n, '$&_') +
- '.' +
- Vn.call(Vn.call(i, /([0-9]{3})/g, '$&_'), /_$/, '')
- );
- }
- }
- return Vn.call(t, n, '$&_');
- }
- var Vl = Zx,
- ld = Vl.custom,
- cd = Dm(ld) ? ld : null,
- cO = function e(t, n, r, o) {
- var i = n || {};
- if (
- Nn(i, 'quoteStyle') &&
- i.quoteStyle !== 'single' &&
- i.quoteStyle !== 'double'
- )
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
- if (
- Nn(i, 'maxStringLength') &&
- (typeof i.maxStringLength == 'number'
- ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0
- : i.maxStringLength !== null)
- )
- throw new TypeError(
- 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'
- );
- var s = Nn(i, 'customInspect') ? i.customInspect : !0;
- if (typeof s != 'boolean' && s !== 'symbol')
- throw new TypeError(
- 'option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'
- );
- if (
- Nn(i, 'indent') &&
- i.indent !== null &&
- i.indent !== ' ' &&
- !(parseInt(i.indent, 10) === i.indent && i.indent > 0)
- )
- throw new TypeError(
- 'option "indent" must be "\\t", an integer > 0, or `null`'
- );
- if (Nn(i, 'numericSeparator') && typeof i.numericSeparator != 'boolean')
- throw new TypeError(
- 'option "numericSeparator", if provided, must be `true` or `false`'
- );
- var a = i.numericSeparator;
- if (typeof t > 'u') return 'undefined';
- if (t === null) return 'null';
- if (typeof t == 'boolean') return t ? 'true' : 'false';
- if (typeof t == 'string') return Nm(t, i);
- if (typeof t == 'number') {
- if (t === 0) return 1 / 0 / t > 0 ? '0' : '-0';
- var c = String(t);
- return a ? ad(t, c) : c;
- }
- if (typeof t == 'bigint') {
- var l = String(t) + 'n';
- return a ? ad(t, l) : l;
- }
- var u = typeof i.depth > 'u' ? 5 : i.depth;
- if ((typeof r > 'u' && (r = 0), r >= u && u > 0 && typeof t == 'object'))
- return ql(t) ? '[Array]' : '[Object]';
- var f = TO(i, r);
- if (typeof o > 'u') o = [];
- else if (Lm(o, t) >= 0) return '[Circular]';
- function d(F, $, V) {
- if (($ && ((o = lO.call(o)), o.push($)), V)) {
- var Y = { depth: i.depth };
- return (
- Nn(i, 'quoteStyle') && (Y.quoteStyle = i.quoteStyle),
- e(F, Y, r + 1, o)
- );
- }
- return e(F, i, r + 1, o);
- }
- if (typeof t == 'function' && !ud(t)) {
- var h = vO(t),
- g = ts(t, d);
- return (
- '[Function' +
- (h ? ': ' + h : ' (anonymous)') +
- ']' +
- (g.length > 0 ? ' { ' + Zt.call(g, ', ') + ' }' : '')
- );
- }
- if (Dm(t)) {
- var w = ao
- ? Vn.call(String(t), /^(Symbol\(.*\))_[^)]*$/, '$1')
- : Hl.call(t);
- return typeof t == 'object' && !ao ? $o(w) : w;
- }
- if (xO(t)) {
- for (
- var E = '<' + rd.call(String(t.nodeName)),
- y = t.attributes || [],
- v = 0;
- v < y.length;
- v++
- )
- E += ' ' + y[v].name + '=' + Bm(uO(y[v].value), 'double', i);
- return (
- (E += '>'),
- t.childNodes && t.childNodes.length && (E += '...'),
- (E += '</' + rd.call(String(t.nodeName)) + '>'),
- E
- );
- }
- if (ql(t)) {
- if (t.length === 0) return '[]';
- var O = ts(t, d);
- return f && !CO(O)
- ? '[' + zl(O, f) + ']'
- : '[ ' + Zt.call(O, ', ') + ' ]';
- }
- if (dO(t)) {
- var C = ts(t, d);
- return !('cause' in Error.prototype) &&
- 'cause' in t &&
- !Fm.call(t, 'cause')
- ? '{ [' +
- String(t) +
- '] ' +
- Zt.call(od.call('[cause]: ' + d(t.cause), C), ', ') +
- ' }'
- : C.length === 0
- ? '[' + String(t) + ']'
- : '{ [' + String(t) + '] ' + Zt.call(C, ', ') + ' }';
- }
- if (typeof t == 'object' && s) {
- if (cd && typeof t[cd] == 'function' && Vl)
- return Vl(t, { depth: u - r });
- if (s !== 'symbol' && typeof t.inspect == 'function') return t.inspect();
- }
- if (bO(t)) {
- var x = [];
- return (
- ed &&
- ed.call(t, function (F, $) {
- x.push(d($, t, !0) + ' => ' + d(F, t));
- }),
- fd('Map', Fs.call(t), x, f)
- );
- }
- if (EO(t)) {
- var N = [];
- return (
- td &&
- td.call(t, function (F) {
- N.push(d(F, t));
- }),
- fd('Set', Bs.call(t), N, f)
- );
- }
- if (_O(t)) return Ya('WeakMap');
- if (SO(t)) return Ya('WeakSet');
- if (wO(t)) return Ya('WeakRef');
- if (hO(t)) return $o(d(Number(t)));
- if (gO(t)) return $o(d(Ul.call(t)));
- if (mO(t)) return $o(rO.call(t));
- if (pO(t)) return $o(d(String(t)));
- if (!fO(t) && !ud(t)) {
- var A = ts(t, d),
- I = sd
- ? sd(t) === Object.prototype
- : t instanceof Object || t.constructor === Object,
- k = t instanceof Object ? '' : 'null prototype',
- S =
- !I && ft && Object(t) === t && ft in t
- ? Zc.call(sr(t), 8, -1)
- : k
- ? 'Object'
- : '',
- R =
- I || typeof t.constructor != 'function'
- ? ''
- : t.constructor.name
- ? t.constructor.name + ' '
- : '',
- B =
- R +
- (S || k
- ? '[' + Zt.call(od.call([], S || [], k || []), ': ') + '] '
- : '');
- return A.length === 0
- ? B + '{}'
- : f
- ? B + '{' + zl(A, f) + '}'
- : B + '{ ' + Zt.call(A, ', ') + ' }';
- }
- return String(t);
- };
- function Bm(e, t, n) {
- var r = (n.quoteStyle || t) === 'double' ? '"' : "'";
- return r + e + r;
- }
- function uO(e) {
- return Vn.call(String(e), /"/g, '"');
- }
- function ql(e) {
- return (
- sr(e) === '[object Array]' && (!ft || !(typeof e == 'object' && ft in e))
- );
- }
- function fO(e) {
- return (
- sr(e) === '[object Date]' && (!ft || !(typeof e == 'object' && ft in e))
- );
- }
- function ud(e) {
- return (
- sr(e) === '[object RegExp]' && (!ft || !(typeof e == 'object' && ft in e))
- );
- }
- function dO(e) {
- return (
- sr(e) === '[object Error]' && (!ft || !(typeof e == 'object' && ft in e))
- );
- }
- function pO(e) {
- return (
- sr(e) === '[object String]' && (!ft || !(typeof e == 'object' && ft in e))
- );
- }
- function hO(e) {
- return (
- sr(e) === '[object Number]' && (!ft || !(typeof e == 'object' && ft in e))
- );
- }
- function mO(e) {
- return (
- sr(e) === '[object Boolean]' && (!ft || !(typeof e == 'object' && ft in e))
- );
- }
- function Dm(e) {
- if (ao) return e && typeof e == 'object' && e instanceof Symbol;
- if (typeof e == 'symbol') return !0;
- if (!e || typeof e != 'object' || !Hl) return !1;
- try {
- return Hl.call(e), !0;
- } catch (t) {}
- return !1;
- }
- function gO(e) {
- if (!e || typeof e != 'object' || !Ul) return !1;
- try {
- return Ul.call(e), !0;
- } catch (t) {}
- return !1;
- }
- var yO =
- Object.prototype.hasOwnProperty ||
- function (e) {
- return e in this;
- };
- function Nn(e, t) {
- return yO.call(e, t);
- }
- function sr(e) {
- return oO.call(e);
- }
- function vO(e) {
- if (e.name) return e.name;
- var t = sO.call(iO.call(e), /^function\s*([\w$]+)/);
- return t ? t[1] : null;
- }
- function Lm(e, t) {
- if (e.indexOf) return e.indexOf(t);
- for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
- return -1;
- }
- function bO(e) {
- if (!Fs || !e || typeof e != 'object') return !1;
- try {
- Fs.call(e);
- try {
- Bs.call(e);
- } catch (t) {
- return !0;
- }
- return e instanceof Map;
- } catch (t) {}
- return !1;
- }
- function _O(e) {
- if (!Go || !e || typeof e != 'object') return !1;
- try {
- Go.call(e, Go);
- try {
- Yo.call(e, Yo);
- } catch (t) {
- return !0;
- }
- return e instanceof WeakMap;
- } catch (t) {}
- return !1;
- }
- function wO(e) {
- if (!nd || !e || typeof e != 'object') return !1;
- try {
- return nd.call(e), !0;
- } catch (t) {}
- return !1;
- }
- function EO(e) {
- if (!Bs || !e || typeof e != 'object') return !1;
- try {
- Bs.call(e);
- try {
- Fs.call(e);
- } catch (t) {
- return !0;
- }
- return e instanceof Set;
- } catch (t) {}
- return !1;
- }
- function SO(e) {
- if (!Yo || !e || typeof e != 'object') return !1;
- try {
- Yo.call(e, Yo);
- try {
- Go.call(e, Go);
- } catch (t) {
- return !0;
- }
- return e instanceof WeakSet;
- } catch (t) {}
- return !1;
- }
- function xO(e) {
- return !e || typeof e != 'object'
- ? !1
- : typeof HTMLElement < 'u' && e instanceof HTMLElement
- ? !0
- : typeof e.nodeName == 'string' && typeof e.getAttribute == 'function';
- }
- function Nm(e, t) {
- if (e.length > t.maxStringLength) {
- var n = e.length - t.maxStringLength,
- r = '... ' + n + ' more character' + (n > 1 ? 's' : '');
- return Nm(Zc.call(e, 0, t.maxStringLength), t) + r;
- }
- var o = Vn.call(Vn.call(e, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, OO);
- return Bm(o, 'single', t);
- }
- function OO(e) {
- var t = e.charCodeAt(0),
- n = { 8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r' }[t];
- return n ? '\\' + n : '\\x' + (t < 16 ? '0' : '') + aO.call(t.toString(16));
- }
- function $o(e) {
- return 'Object(' + e + ')';
- }
- function Ya(e) {
- return e + ' { ? }';
- }
- function fd(e, t, n, r) {
- var o = r ? zl(n, r) : Zt.call(n, ', ');
- return e + ' (' + t + ') {' + o + '}';
- }
- function CO(e) {
- for (var t = 0; t < e.length; t++)
- if (
- Lm(
- e[t],
- `
- `
- ) >= 0
- )
- return !1;
- return !0;
- }
- function TO(e, t) {
- var n;
- if (e.indent === ' ') n = ' ';
- else if (typeof e.indent == 'number' && e.indent > 0)
- n = Zt.call(Array(e.indent + 1), ' ');
- else return null;
- return { base: n, prev: Zt.call(Array(t + 1), n) };
- }
- function zl(e, t) {
- if (e.length === 0) return '';
- var n =
- `
- ` +
- t.prev +
- t.base;
- return (
- n +
- Zt.call(e, ',' + n) +
- `
- ` +
- t.prev
- );
- }
- function ts(e, t) {
- var n = ql(e),
- r = [];
- if (n) {
- r.length = e.length;
- for (var o = 0; o < e.length; o++) r[o] = Nn(e, o) ? t(e[o], e) : '';
- }
- var i = typeof Ga == 'function' ? Ga(e) : [],
- s;
- if (ao) {
- s = {};
- for (var a = 0; a < i.length; a++) s['$' + i[a]] = i[a];
- }
- for (var c in e)
- Nn(e, c) &&
- ((n && String(Number(c)) === c && c < e.length) ||
- (ao && s['$' + c] instanceof Symbol) ||
- (Mm.call(/[^\w$]/, c)
- ? r.push(t(c, e) + ': ' + t(e[c], e))
- : r.push(c + ': ' + t(e[c], e))));
- if (typeof Ga == 'function')
- for (var l = 0; l < i.length; l++)
- Fm.call(e, i[l]) && r.push('[' + t(i[l]) + ']: ' + t(e[i[l]], e));
- return r;
- }
- var eu = Jc,
- yo = Jx,
- AO = cO,
- PO = eu('%TypeError%'),
- ns = eu('%WeakMap%', !0),
- rs = eu('%Map%', !0),
- $O = yo('WeakMap.prototype.get', !0),
- IO = yo('WeakMap.prototype.set', !0),
- RO = yo('WeakMap.prototype.has', !0),
- kO = yo('Map.prototype.get', !0),
- MO = yo('Map.prototype.set', !0),
- FO = yo('Map.prototype.has', !0),
- tu = function (e, t) {
- for (var n = e, r; (r = n.next) !== null; n = r)
- if (r.key === t)
- return (n.next = r.next), (r.next = e.next), (e.next = r), r;
- },
- BO = function (e, t) {
- var n = tu(e, t);
- return n && n.value;
- },
- DO = function (e, t, n) {
- var r = tu(e, t);
- r ? (r.value = n) : (e.next = { key: t, next: e.next, value: n });
- },
- LO = function (e, t) {
- return !!tu(e, t);
- },
- NO = function () {
- var t,
- n,
- r,
- o = {
- assert: function (i) {
- if (!o.has(i)) throw new PO('Side channel does not contain ' + AO(i));
- },
- get: function (i) {
- if (ns && i && (typeof i == 'object' || typeof i == 'function')) {
- if (t) return $O(t, i);
- } else if (rs) {
- if (n) return kO(n, i);
- } else if (r) return BO(r, i);
- },
- has: function (i) {
- if (ns && i && (typeof i == 'object' || typeof i == 'function')) {
- if (t) return RO(t, i);
- } else if (rs) {
- if (n) return FO(n, i);
- } else if (r) return LO(r, i);
- return !1;
- },
- set: function (i, s) {
- ns && i && (typeof i == 'object' || typeof i == 'function')
- ? (t || (t = new ns()), IO(t, i, s))
- : rs
- ? (n || (n = new rs()), MO(n, i, s))
- : (r || (r = { key: {}, next: null }), DO(r, i, s));
- }
- };
- return o;
- },
- jO = String.prototype.replace,
- UO = /%20/g,
- Ja = { RFC1738: 'RFC1738', RFC3986: 'RFC3986' },
- nu = {
- default: Ja.RFC3986,
- formatters: {
- RFC1738: function (e) {
- return jO.call(e, UO, '+');
- },
- RFC3986: function (e) {
- return String(e);
- }
- },
- RFC1738: Ja.RFC1738,
- RFC3986: Ja.RFC3986
- },
- HO = nu,
- Qa = Object.prototype.hasOwnProperty,
- mr = Array.isArray,
- Jt = (function () {
- for (var e = [], t = 0; t < 256; ++t)
- e.push('%' + ((t < 16 ? '0' : '') + t.toString(16)).toUpperCase());
- return e;
- })(),
- VO = function (t) {
- for (; t.length > 1; ) {
- var n = t.pop(),
- r = n.obj[n.prop];
- if (mr(r)) {
- for (var o = [], i = 0; i < r.length; ++i)
- typeof r[i] < 'u' && o.push(r[i]);
- n.obj[n.prop] = o;
- }
- }
- },
- jm = function (t, n) {
- for (
- var r = n && n.plainObjects ? Object.create(null) : {}, o = 0;
- o < t.length;
- ++o
- )
- typeof t[o] < 'u' && (r[o] = t[o]);
- return r;
- },
- qO = function e(t, n, r) {
- if (!n) return t;
- if (typeof n != 'object') {
- if (mr(t)) t.push(n);
- else if (t && typeof t == 'object')
- ((r && (r.plainObjects || r.allowPrototypes)) ||
- !Qa.call(Object.prototype, n)) &&
- (t[n] = !0);
- else return [t, n];
- return t;
- }
- if (!t || typeof t != 'object') return [t].concat(n);
- var o = t;
- return (
- mr(t) && !mr(n) && (o = jm(t, r)),
- mr(t) && mr(n)
- ? (n.forEach(function (i, s) {
- if (Qa.call(t, s)) {
- var a = t[s];
- a && typeof a == 'object' && i && typeof i == 'object'
- ? (t[s] = e(a, i, r))
- : t.push(i);
- } else t[s] = i;
- }),
- t)
- : Object.keys(n).reduce(function (i, s) {
- var a = n[s];
- return Qa.call(i, s) ? (i[s] = e(i[s], a, r)) : (i[s] = a), i;
- }, o)
- );
- },
- zO = function (t, n) {
- return Object.keys(n).reduce(function (r, o) {
- return (r[o] = n[o]), r;
- }, t);
- },
- WO = function (e, t, n) {
- var r = e.replace(/\+/g, ' ');
- if (n === 'iso-8859-1') return r.replace(/%[0-9a-f]{2}/gi, unescape);
- try {
- return decodeURIComponent(r);
- } catch (o) {
- return r;
- }
- },
- KO = function (t, n, r, o, i) {
- if (t.length === 0) return t;
- var s = t;
- if (
- (typeof t == 'symbol'
- ? (s = Symbol.prototype.toString.call(t))
- : typeof t != 'string' && (s = String(t)),
- r === 'iso-8859-1')
- )
- return escape(s).replace(/%u[0-9a-f]{4}/gi, function (u) {
- return '%26%23' + parseInt(u.slice(2), 16) + '%3B';
- });
- for (var a = '', c = 0; c < s.length; ++c) {
- var l = s.charCodeAt(c);
- if (
- l === 45 ||
- l === 46 ||
- l === 95 ||
- l === 126 ||
- (l >= 48 && l <= 57) ||
- (l >= 65 && l <= 90) ||
- (l >= 97 && l <= 122) ||
- (i === HO.RFC1738 && (l === 40 || l === 41))
- ) {
- a += s.charAt(c);
- continue;
- }
- if (l < 128) {
- a = a + Jt[l];
- continue;
- }
- if (l < 2048) {
- a = a + (Jt[192 | (l >> 6)] + Jt[128 | (l & 63)]);
- continue;
- }
- if (l < 55296 || l >= 57344) {
- a =
- a +
- (Jt[224 | (l >> 12)] +
- Jt[128 | ((l >> 6) & 63)] +
- Jt[128 | (l & 63)]);
- continue;
- }
- (c += 1),
- (l = 65536 + (((l & 1023) << 10) | (s.charCodeAt(c) & 1023))),
- (a +=
- Jt[240 | (l >> 18)] +
- Jt[128 | ((l >> 12) & 63)] +
- Jt[128 | ((l >> 6) & 63)] +
- Jt[128 | (l & 63)]);
- }
- return a;
- },
- GO = function (t) {
- for (
- var n = [{ obj: { o: t }, prop: 'o' }], r = [], o = 0;
- o < n.length;
- ++o
- )
- for (
- var i = n[o], s = i.obj[i.prop], a = Object.keys(s), c = 0;
- c < a.length;
- ++c
- ) {
- var l = a[c],
- u = s[l];
- typeof u == 'object' &&
- u !== null &&
- r.indexOf(u) === -1 &&
- (n.push({ obj: s, prop: l }), r.push(u));
- }
- return VO(n), t;
- },
- YO = function (t) {
- return Object.prototype.toString.call(t) === '[object RegExp]';
- },
- JO = function (t) {
- return !t || typeof t != 'object'
- ? !1
- : !!(
- t.constructor &&
- t.constructor.isBuffer &&
- t.constructor.isBuffer(t)
- );
- },
- QO = function (t, n) {
- return [].concat(t, n);
- },
- XO = function (t, n) {
- if (mr(t)) {
- for (var r = [], o = 0; o < t.length; o += 1) r.push(n(t[o]));
- return r;
- }
- return n(t);
- },
- Um = {
- arrayToObject: jm,
- assign: zO,
- combine: QO,
- compact: GO,
- decode: WO,
- encode: KO,
- isBuffer: JO,
- isRegExp: YO,
- maybeMap: XO,
- merge: qO
- },
- Hm = NO,
- ls = Um,
- Jo = nu,
- ZO = Object.prototype.hasOwnProperty,
- dd = {
- brackets: function (t) {
- return t + '[]';
- },
- comma: 'comma',
- indices: function (t, n) {
- return t + '[' + n + ']';
- },
- repeat: function (t) {
- return t;
- }
- },
- xn = Array.isArray,
- e1 = Array.prototype.push,
- Vm = function (e, t) {
- e1.apply(e, xn(t) ? t : [t]);
- },
- t1 = Date.prototype.toISOString,
- pd = Jo.default,
- ot = {
- addQueryPrefix: !1,
- allowDots: !1,
- charset: 'utf-8',
- charsetSentinel: !1,
- delimiter: '&',
- encode: !0,
- encoder: ls.encode,
- encodeValuesOnly: !1,
- format: pd,
- formatter: Jo.formatters[pd],
- indices: !1,
- serializeDate: function (t) {
- return t1.call(t);
- },
- skipNulls: !1,
- strictNullHandling: !1
- },
- n1 = function (t) {
- return (
- typeof t == 'string' ||
- typeof t == 'number' ||
- typeof t == 'boolean' ||
- typeof t == 'symbol' ||
- typeof t == 'bigint'
- );
- },
- Xa = {},
- r1 = function e(t, n, r, o, i, s, a, c, l, u, f, d, h, g, w, E) {
- for (var y = t, v = E, O = 0, C = !1; (v = v.get(Xa)) !== void 0 && !C; ) {
- var x = v.get(t);
- if (((O += 1), typeof x < 'u')) {
- if (x === O) throw new RangeError('Cyclic object value');
- C = !0;
- }
- typeof v.get(Xa) > 'u' && (O = 0);
- }
- if (
- (typeof c == 'function'
- ? (y = c(n, y))
- : y instanceof Date
- ? (y = f(y))
- : r === 'comma' &&
- xn(y) &&
- (y = ls.maybeMap(y, function (Y) {
- return Y instanceof Date ? f(Y) : Y;
- })),
- y === null)
- ) {
- if (i) return a && !g ? a(n, ot.encoder, w, 'key', d) : n;
- y = '';
- }
- if (n1(y) || ls.isBuffer(y)) {
- if (a) {
- var N = g ? n : a(n, ot.encoder, w, 'key', d);
- return [h(N) + '=' + h(a(y, ot.encoder, w, 'value', d))];
- }
- return [h(n) + '=' + h(String(y))];
- }
- var A = [];
- if (typeof y > 'u') return A;
- var I;
- if (r === 'comma' && xn(y))
- g && a && (y = ls.maybeMap(y, a)),
- (I = [{ value: y.length > 0 ? y.join(',') || null : void 0 }]);
- else if (xn(c)) I = c;
- else {
- var k = Object.keys(y);
- I = l ? k.sort(l) : k;
- }
- for (
- var S = o && xn(y) && y.length === 1 ? n + '[]' : n, R = 0;
- R < I.length;
- ++R
- ) {
- var B = I[R],
- F = typeof B == 'object' && typeof B.value < 'u' ? B.value : y[B];
- if (!(s && F === null)) {
- var $ = xn(y)
- ? typeof r == 'function'
- ? r(S, B)
- : S
- : S + (u ? '.' + B : '[' + B + ']');
- E.set(t, O);
- var V = Hm();
- V.set(Xa, E),
- Vm(
- A,
- e(
- F,
- $,
- r,
- o,
- i,
- s,
- r === 'comma' && g && xn(y) ? null : a,
- c,
- l,
- u,
- f,
- d,
- h,
- g,
- w,
- V
- )
- );
- }
- }
- return A;
- },
- o1 = function (t) {
- if (!t) return ot;
- if (
- t.encoder !== null &&
- typeof t.encoder < 'u' &&
- typeof t.encoder != 'function'
- )
- throw new TypeError('Encoder has to be a function.');
- var n = t.charset || ot.charset;
- if (
- typeof t.charset < 'u' &&
- t.charset !== 'utf-8' &&
- t.charset !== 'iso-8859-1'
- )
- throw new TypeError(
- 'The charset option must be either utf-8, iso-8859-1, or undefined'
- );
- var r = Jo.default;
- if (typeof t.format < 'u') {
- if (!ZO.call(Jo.formatters, t.format))
- throw new TypeError('Unknown format option provided.');
- r = t.format;
- }
- var o = Jo.formatters[r],
- i = ot.filter;
- return (
- (typeof t.filter == 'function' || xn(t.filter)) && (i = t.filter),
- {
- addQueryPrefix:
- typeof t.addQueryPrefix == 'boolean'
- ? t.addQueryPrefix
- : ot.addQueryPrefix,
- allowDots: typeof t.allowDots > 'u' ? ot.allowDots : !!t.allowDots,
- charset: n,
- charsetSentinel:
- typeof t.charsetSentinel == 'boolean'
- ? t.charsetSentinel
- : ot.charsetSentinel,
- delimiter: typeof t.delimiter > 'u' ? ot.delimiter : t.delimiter,
- encode: typeof t.encode == 'boolean' ? t.encode : ot.encode,
- encoder: typeof t.encoder == 'function' ? t.encoder : ot.encoder,
- encodeValuesOnly:
- typeof t.encodeValuesOnly == 'boolean'
- ? t.encodeValuesOnly
- : ot.encodeValuesOnly,
- filter: i,
- format: r,
- formatter: o,
- serializeDate:
- typeof t.serializeDate == 'function'
- ? t.serializeDate
- : ot.serializeDate,
- skipNulls: typeof t.skipNulls == 'boolean' ? t.skipNulls : ot.skipNulls,
- sort: typeof t.sort == 'function' ? t.sort : null,
- strictNullHandling:
- typeof t.strictNullHandling == 'boolean'
- ? t.strictNullHandling
- : ot.strictNullHandling
- }
- );
- },
- i1 = function (e, t) {
- var n = e,
- r = o1(t),
- o,
- i;
- typeof r.filter == 'function'
- ? ((i = r.filter), (n = i('', n)))
- : xn(r.filter) && ((i = r.filter), (o = i));
- var s = [];
- if (typeof n != 'object' || n === null) return '';
- var a;
- t && t.arrayFormat in dd
- ? (a = t.arrayFormat)
- : t && 'indices' in t
- ? (a = t.indices ? 'indices' : 'repeat')
- : (a = 'indices');
- var c = dd[a];
- if (t && 'commaRoundTrip' in t && typeof t.commaRoundTrip != 'boolean')
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
- var l = c === 'comma' && t && t.commaRoundTrip;
- o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
- for (var u = Hm(), f = 0; f < o.length; ++f) {
- var d = o[f];
- (r.skipNulls && n[d] === null) ||
- Vm(
- s,
- r1(
- n[d],
- d,
- c,
- l,
- r.strictNullHandling,
- r.skipNulls,
- r.encode ? r.encoder : null,
- r.filter,
- r.sort,
- r.allowDots,
- r.serializeDate,
- r.format,
- r.formatter,
- r.encodeValuesOnly,
- r.charset,
- u
- )
- );
- }
- var h = s.join(r.delimiter),
- g = r.addQueryPrefix === !0 ? '?' : '';
- return (
- r.charsetSentinel &&
- (r.charset === 'iso-8859-1'
- ? (g += 'utf8=%26%2310003%3B&')
- : (g += 'utf8=%E2%9C%93&')),
- h.length > 0 ? g + h : ''
- );
- },
- lo = Um,
- Wl = Object.prototype.hasOwnProperty,
- s1 = Array.isArray,
- Ye = {
- allowDots: !1,
- allowPrototypes: !1,
- allowSparse: !1,
- arrayLimit: 20,
- charset: 'utf-8',
- charsetSentinel: !1,
- comma: !1,
- decoder: lo.decode,
- delimiter: '&',
- depth: 5,
- ignoreQueryPrefix: !1,
- interpretNumericEntities: !1,
- parameterLimit: 1e3,
- parseArrays: !0,
- plainObjects: !1,
- strictNullHandling: !1
- },
- a1 = function (e) {
- return e.replace(/&#(\d+);/g, function (t, n) {
- return String.fromCharCode(parseInt(n, 10));
- });
- },
- qm = function (e, t) {
- return e && typeof e == 'string' && t.comma && e.indexOf(',') > -1
- ? e.split(',')
- : e;
- },
- l1 = 'utf8=%26%2310003%3B',
- c1 = 'utf8=%E2%9C%93',
- u1 = function (t, n) {
- var r = { __proto__: null },
- o = n.ignoreQueryPrefix ? t.replace(/^\?/, '') : t,
- i = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit,
- s = o.split(n.delimiter, i),
- a = -1,
- c,
- l = n.charset;
- if (n.charsetSentinel)
- for (c = 0; c < s.length; ++c)
- s[c].indexOf('utf8=') === 0 &&
- (s[c] === c1 ? (l = 'utf-8') : s[c] === l1 && (l = 'iso-8859-1'),
- (a = c),
- (c = s.length));
- for (c = 0; c < s.length; ++c)
- if (c !== a) {
- var u = s[c],
- f = u.indexOf(']='),
- d = f === -1 ? u.indexOf('=') : f + 1,
- h,
- g;
- d === -1
- ? ((h = n.decoder(u, Ye.decoder, l, 'key')),
- (g = n.strictNullHandling ? null : ''))
- : ((h = n.decoder(u.slice(0, d), Ye.decoder, l, 'key')),
- (g = lo.maybeMap(qm(u.slice(d + 1), n), function (w) {
- return n.decoder(w, Ye.decoder, l, 'value');
- }))),
- g && n.interpretNumericEntities && l === 'iso-8859-1' && (g = a1(g)),
- u.indexOf('[]=') > -1 && (g = s1(g) ? [g] : g),
- Wl.call(r, h) ? (r[h] = lo.combine(r[h], g)) : (r[h] = g);
- }
- return r;
- },
- f1 = function (e, t, n, r) {
- for (var o = r ? t : qm(t, n), i = e.length - 1; i >= 0; --i) {
- var s,
- a = e[i];
- if (a === '[]' && n.parseArrays) s = [].concat(o);
- else {
- s = n.plainObjects ? Object.create(null) : {};
- var c =
- a.charAt(0) === '[' && a.charAt(a.length - 1) === ']'
- ? a.slice(1, -1)
- : a,
- l = parseInt(c, 10);
- !n.parseArrays && c === ''
- ? (s = { 0: o })
- : !isNaN(l) &&
- a !== c &&
- String(l) === c &&
- l >= 0 &&
- n.parseArrays &&
- l <= n.arrayLimit
- ? ((s = []), (s[l] = o))
- : c !== '__proto__' && (s[c] = o);
- }
- o = s;
- }
- return o;
- },
- d1 = function (t, n, r, o) {
- if (t) {
- var i = r.allowDots ? t.replace(/\.([^.[]+)/g, '[$1]') : t,
- s = /(\[[^[\]]*])/,
- a = /(\[[^[\]]*])/g,
- c = r.depth > 0 && s.exec(i),
- l = c ? i.slice(0, c.index) : i,
- u = [];
- if (l) {
- if (
- !r.plainObjects &&
- Wl.call(Object.prototype, l) &&
- !r.allowPrototypes
- )
- return;
- u.push(l);
- }
- for (
- var f = 0;
- r.depth > 0 && (c = a.exec(i)) !== null && f < r.depth;
- ) {
- if (
- ((f += 1),
- !r.plainObjects &&
- Wl.call(Object.prototype, c[1].slice(1, -1)) &&
- !r.allowPrototypes)
- )
- return;
- u.push(c[1]);
- }
- return c && u.push('[' + i.slice(c.index) + ']'), f1(u, n, r, o);
- }
- },
- p1 = function (t) {
- if (!t) return Ye;
- if (
- t.decoder !== null &&
- t.decoder !== void 0 &&
- typeof t.decoder != 'function'
- )
- throw new TypeError('Decoder has to be a function.');
- if (
- typeof t.charset < 'u' &&
- t.charset !== 'utf-8' &&
- t.charset !== 'iso-8859-1'
- )
- throw new TypeError(
- 'The charset option must be either utf-8, iso-8859-1, or undefined'
- );
- var n = typeof t.charset > 'u' ? Ye.charset : t.charset;
- return {
- allowDots: typeof t.allowDots > 'u' ? Ye.allowDots : !!t.allowDots,
- allowPrototypes:
- typeof t.allowPrototypes == 'boolean'
- ? t.allowPrototypes
- : Ye.allowPrototypes,
- allowSparse:
- typeof t.allowSparse == 'boolean' ? t.allowSparse : Ye.allowSparse,
- arrayLimit:
- typeof t.arrayLimit == 'number' ? t.arrayLimit : Ye.arrayLimit,
- charset: n,
- charsetSentinel:
- typeof t.charsetSentinel == 'boolean'
- ? t.charsetSentinel
- : Ye.charsetSentinel,
- comma: typeof t.comma == 'boolean' ? t.comma : Ye.comma,
- decoder: typeof t.decoder == 'function' ? t.decoder : Ye.decoder,
- delimiter:
- typeof t.delimiter == 'string' || lo.isRegExp(t.delimiter)
- ? t.delimiter
- : Ye.delimiter,
- depth: typeof t.depth == 'number' || t.depth === !1 ? +t.depth : Ye.depth,
- ignoreQueryPrefix: t.ignoreQueryPrefix === !0,
- interpretNumericEntities:
- typeof t.interpretNumericEntities == 'boolean'
- ? t.interpretNumericEntities
- : Ye.interpretNumericEntities,
- parameterLimit:
- typeof t.parameterLimit == 'number'
- ? t.parameterLimit
- : Ye.parameterLimit,
- parseArrays: t.parseArrays !== !1,
- plainObjects:
- typeof t.plainObjects == 'boolean' ? t.plainObjects : Ye.plainObjects,
- strictNullHandling:
- typeof t.strictNullHandling == 'boolean'
- ? t.strictNullHandling
- : Ye.strictNullHandling
- };
- },
- h1 = function (e, t) {
- var n = p1(t);
- if (e === '' || e === null || typeof e > 'u')
- return n.plainObjects ? Object.create(null) : {};
- for (
- var r = typeof e == 'string' ? u1(e, n) : e,
- o = n.plainObjects ? Object.create(null) : {},
- i = Object.keys(r),
- s = 0;
- s < i.length;
- ++s
- ) {
- var a = i[s],
- c = d1(a, r[a], n, typeof e == 'string');
- o = lo.merge(o, c, n);
- }
- return n.allowSparse === !0 ? o : lo.compact(o);
- },
- m1 = i1,
- g1 = h1,
- y1 = nu,
- zm = { formats: y1, parse: g1, stringify: m1 },
- st =
- (typeof globalThis < 'u' && globalThis) ||
- (typeof self < 'u' && self) ||
- (typeof st < 'u' && st),
- bt = {
- searchParams: 'URLSearchParams' in st,
- iterable: 'Symbol' in st && 'iterator' in Symbol,
- blob:
- 'FileReader' in st &&
- 'Blob' in st &&
- (function () {
- try {
- return new Blob(), !0;
- } catch (e) {
- return !1;
- }
- })(),
- formData: 'FormData' in st,
- arrayBuffer: 'ArrayBuffer' in st
- };
- function v1(e) {
- return e && DataView.prototype.isPrototypeOf(e);
- }
- if (bt.arrayBuffer)
- var b1 = [
- '[object Int8Array]',
- '[object Uint8Array]',
- '[object Uint8ClampedArray]',
- '[object Int16Array]',
- '[object Uint16Array]',
- '[object Int32Array]',
- '[object Uint32Array]',
- '[object Float32Array]',
- '[object Float64Array]'
- ],
- _1 =
- ArrayBuffer.isView ||
- function (e) {
- return e && b1.indexOf(Object.prototype.toString.call(e)) > -1;
- };
- function Pi(e) {
- if (
- (typeof e != 'string' && (e = String(e)),
- /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === '')
- )
- throw new TypeError('Invalid character in header field name: "' + e + '"');
- return e.toLowerCase();
- }
- function ru(e) {
- return typeof e != 'string' && (e = String(e)), e;
- }
- function ou(e) {
- var t = {
- next: function () {
- var n = e.shift();
- return { done: n === void 0, value: n };
- }
- };
- return (
- bt.iterable &&
- (t[Symbol.iterator] = function () {
- return t;
- }),
- t
- );
- }
- function Ve(e) {
- (this.map = {}),
- e instanceof Ve
- ? e.forEach(function (t, n) {
- this.append(n, t);
- }, this)
- : Array.isArray(e)
- ? e.forEach(function (t) {
- this.append(t[0], t[1]);
- }, this)
- : e &&
- Object.getOwnPropertyNames(e).forEach(function (t) {
- this.append(t, e[t]);
- }, this);
- }
- Ve.prototype.append = function (e, t) {
- (e = Pi(e)), (t = ru(t));
- var n = this.map[e];
- this.map[e] = n ? n + ', ' + t : t;
- };
- Ve.prototype.delete = function (e) {
- delete this.map[Pi(e)];
- };
- Ve.prototype.get = function (e) {
- return (e = Pi(e)), this.has(e) ? this.map[e] : null;
- };
- Ve.prototype.has = function (e) {
- return this.map.hasOwnProperty(Pi(e));
- };
- Ve.prototype.set = function (e, t) {
- this.map[Pi(e)] = ru(t);
- };
- Ve.prototype.forEach = function (e, t) {
- for (var n in this.map)
- this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this);
- };
- Ve.prototype.keys = function () {
- var e = [];
- return (
- this.forEach(function (t, n) {
- e.push(n);
- }),
- ou(e)
- );
- };
- Ve.prototype.values = function () {
- var e = [];
- return (
- this.forEach(function (t) {
- e.push(t);
- }),
- ou(e)
- );
- };
- Ve.prototype.entries = function () {
- var e = [];
- return (
- this.forEach(function (t, n) {
- e.push([n, t]);
- }),
- ou(e)
- );
- };
- bt.iterable && (Ve.prototype[Symbol.iterator] = Ve.prototype.entries);
- function Za(e) {
- if (e.bodyUsed) return Promise.reject(new TypeError('Already read'));
- e.bodyUsed = !0;
- }
- function Wm(e) {
- return new Promise(function (t, n) {
- (e.onload = function () {
- t(e.result);
- }),
- (e.onerror = function () {
- n(e.error);
- });
- });
- }
- function w1(e) {
- var t = new FileReader(),
- n = Wm(t);
- return t.readAsArrayBuffer(e), n;
- }
- function E1(e) {
- var t = new FileReader(),
- n = Wm(t);
- return t.readAsText(e), n;
- }
- function S1(e) {
- for (
- var t = new Uint8Array(e), n = new Array(t.length), r = 0;
- r < t.length;
- r++
- )
- n[r] = String.fromCharCode(t[r]);
- return n.join('');
- }
- function hd(e) {
- if (e.slice) return e.slice(0);
- var t = new Uint8Array(e.byteLength);
- return t.set(new Uint8Array(e)), t.buffer;
- }
- function Km() {
- return (
- (this.bodyUsed = !1),
- (this._initBody = function (e) {
- (this.bodyUsed = this.bodyUsed),
- (this._bodyInit = e),
- e
- ? typeof e == 'string'
- ? (this._bodyText = e)
- : bt.blob && Blob.prototype.isPrototypeOf(e)
- ? (this._bodyBlob = e)
- : bt.formData && FormData.prototype.isPrototypeOf(e)
- ? (this._bodyFormData = e)
- : bt.searchParams && URLSearchParams.prototype.isPrototypeOf(e)
- ? (this._bodyText = e.toString())
- : bt.arrayBuffer && bt.blob && v1(e)
- ? ((this._bodyArrayBuffer = hd(e.buffer)),
- (this._bodyInit = new Blob([this._bodyArrayBuffer])))
- : bt.arrayBuffer &&
- (ArrayBuffer.prototype.isPrototypeOf(e) || _1(e))
- ? (this._bodyArrayBuffer = hd(e))
- : (this._bodyText = e = Object.prototype.toString.call(e))
- : (this._bodyText = ''),
- this.headers.get('content-type') ||
- (typeof e == 'string'
- ? this.headers.set('content-type', 'text/plain;charset=UTF-8')
- : this._bodyBlob && this._bodyBlob.type
- ? this.headers.set('content-type', this._bodyBlob.type)
- : bt.searchParams &&
- URLSearchParams.prototype.isPrototypeOf(e) &&
- this.headers.set(
- 'content-type',
- 'application/x-www-form-urlencoded;charset=UTF-8'
- ));
- }),
- bt.blob &&
- ((this.blob = function () {
- var e = Za(this);
- if (e) return e;
- if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
- if (this._bodyArrayBuffer)
- return Promise.resolve(new Blob([this._bodyArrayBuffer]));
- if (this._bodyFormData)
- throw new Error('could not read FormData body as blob');
- return Promise.resolve(new Blob([this._bodyText]));
- }),
- (this.arrayBuffer = function () {
- if (this._bodyArrayBuffer) {
- var e = Za(this);
- return (
- e ||
- (ArrayBuffer.isView(this._bodyArrayBuffer)
- ? Promise.resolve(
- this._bodyArrayBuffer.buffer.slice(
- this._bodyArrayBuffer.byteOffset,
- this._bodyArrayBuffer.byteOffset +
- this._bodyArrayBuffer.byteLength
- )
- )
- : Promise.resolve(this._bodyArrayBuffer))
- );
- } else return this.blob().then(w1);
- })),
- (this.text = function () {
- var e = Za(this);
- if (e) return e;
- if (this._bodyBlob) return E1(this._bodyBlob);
- if (this._bodyArrayBuffer)
- return Promise.resolve(S1(this._bodyArrayBuffer));
- if (this._bodyFormData)
- throw new Error('could not read FormData body as text');
- return Promise.resolve(this._bodyText);
- }),
- bt.formData &&
- (this.formData = function () {
- return this.text().then(C1);
- }),
- (this.json = function () {
- return this.text().then(JSON.parse);
- }),
- this
- );
- }
- var x1 = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
- function O1(e) {
- var t = e.toUpperCase();
- return x1.indexOf(t) > -1 ? t : e;
- }
- function Pr(e, t) {
- if (!(this instanceof Pr))
- throw new TypeError(
- 'Please use the "new" operator, this DOM object constructor cannot be called as a function.'
- );
- t = t || {};
- var n = t.body;
- if (e instanceof Pr) {
- if (e.bodyUsed) throw new TypeError('Already read');
- (this.url = e.url),
- (this.credentials = e.credentials),
- t.headers || (this.headers = new Ve(e.headers)),
- (this.method = e.method),
- (this.mode = e.mode),
- (this.signal = e.signal),
- !n && e._bodyInit != null && ((n = e._bodyInit), (e.bodyUsed = !0));
- } else this.url = String(e);
- if (
- ((this.credentials = t.credentials || this.credentials || 'same-origin'),
- (t.headers || !this.headers) && (this.headers = new Ve(t.headers)),
- (this.method = O1(t.method || this.method || 'GET')),
- (this.mode = t.mode || this.mode || null),
- (this.signal = t.signal || this.signal),
- (this.referrer = null),
- (this.method === 'GET' || this.method === 'HEAD') && n)
- )
- throw new TypeError('Body not allowed for GET or HEAD requests');
- if (
- (this._initBody(n),
- (this.method === 'GET' || this.method === 'HEAD') &&
- (t.cache === 'no-store' || t.cache === 'no-cache'))
- ) {
- var r = /([?&])_=[^&]*/;
- if (r.test(this.url))
- this.url = this.url.replace(r, '$1_=' + new Date().getTime());
- else {
- var o = /\?/;
- this.url += (o.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();
- }
- }
- }
- Pr.prototype.clone = function () {
- return new Pr(this, { body: this._bodyInit });
- };
- function C1(e) {
- var t = new FormData();
- return (
- e
- .trim()
- .split('&')
- .forEach(function (n) {
- if (n) {
- var r = n.split('='),
- o = r.shift().replace(/\+/g, ' '),
- i = r.join('=').replace(/\+/g, ' ');
- t.append(decodeURIComponent(o), decodeURIComponent(i));
- }
- }),
- t
- );
- }
- function T1(e) {
- var t = new Ve(),
- n = e.replace(/\r?\n[\t ]+/g, ' ');
- return (
- n
- .split('\r')
- .map(function (r) {
- return r.indexOf(`
- `) === 0
- ? r.substr(1, r.length)
- : r;
- })
- .forEach(function (r) {
- var o = r.split(':'),
- i = o.shift().trim();
- if (i) {
- var s = o.join(':').trim();
- t.append(i, s);
- }
- }),
- t
- );
- }
- Km.call(Pr.prototype);
- function ln(e, t) {
- if (!(this instanceof ln))
- throw new TypeError(
- 'Please use the "new" operator, this DOM object constructor cannot be called as a function.'
- );
- t || (t = {}),
- (this.type = 'default'),
- (this.status = t.status === void 0 ? 200 : t.status),
- (this.ok = this.status >= 200 && this.status < 300),
- (this.statusText = t.statusText === void 0 ? '' : '' + t.statusText),
- (this.headers = new Ve(t.headers)),
- (this.url = t.url || ''),
- this._initBody(e);
- }
- Km.call(ln.prototype);
- ln.prototype.clone = function () {
- return new ln(this._bodyInit, {
- status: this.status,
- statusText: this.statusText,
- headers: new Ve(this.headers),
- url: this.url
- });
- };
- ln.error = function () {
- var e = new ln(null, { status: 0, statusText: '' });
- return (e.type = 'error'), e;
- };
- var A1 = [301, 302, 303, 307, 308];
- ln.redirect = function (e, t) {
- if (A1.indexOf(t) === -1) throw new RangeError('Invalid status code');
- return new ln(null, { status: t, headers: { location: e } });
- };
- var gr = st.DOMException;
- try {
- new gr();
- } catch (e) {
- (gr = function (t, n) {
- (this.message = t), (this.name = n);
- var r = Error(t);
- this.stack = r.stack;
- }),
- (gr.prototype = Object.create(Error.prototype)),
- (gr.prototype.constructor = gr);
- }
- function Gm(e, t) {
- return new Promise(function (n, r) {
- var o = new Pr(e, t);
- if (o.signal && o.signal.aborted) return r(new gr('Aborted', 'AbortError'));
- var i = new XMLHttpRequest();
- function s() {
- i.abort();
- }
- (i.onload = function () {
- var c = {
- status: i.status,
- statusText: i.statusText,
- headers: T1(i.getAllResponseHeaders() || '')
- };
- c.url =
- 'responseURL' in i ? i.responseURL : c.headers.get('X-Request-URL');
- var l = 'response' in i ? i.response : i.responseText;
- setTimeout(function () {
- n(new ln(l, c));
- }, 0);
- }),
- (i.onerror = function () {
- setTimeout(function () {
- r(new TypeError('Network request failed'));
- }, 0);
- }),
- (i.ontimeout = function () {
- setTimeout(function () {
- r(new TypeError('Network request failed'));
- }, 0);
- }),
- (i.onabort = function () {
- setTimeout(function () {
- r(new gr('Aborted', 'AbortError'));
- }, 0);
- });
- function a(c) {
- try {
- return c === '' && st.location.href ? st.location.href : c;
- } catch (l) {
- return c;
- }
- }
- i.open(o.method, a(o.url), !0),
- o.credentials === 'include'
- ? (i.withCredentials = !0)
- : o.credentials === 'omit' && (i.withCredentials = !1),
- 'responseType' in i &&
- (bt.blob
- ? (i.responseType = 'blob')
- : bt.arrayBuffer &&
- o.headers.get('Content-Type') &&
- o.headers
- .get('Content-Type')
- .indexOf('application/octet-stream') !== -1 &&
- (i.responseType = 'arraybuffer')),
- t && typeof t.headers == 'object' && !(t.headers instanceof Ve)
- ? Object.getOwnPropertyNames(t.headers).forEach(function (c) {
- i.setRequestHeader(c, ru(t.headers[c]));
- })
- : o.headers.forEach(function (c, l) {
- i.setRequestHeader(l, c);
- }),
- o.signal &&
- (o.signal.addEventListener('abort', s),
- (i.onreadystatechange = function () {
- i.readyState === 4 && o.signal.removeEventListener('abort', s);
- })),
- i.send(typeof o._bodyInit > 'u' ? null : o._bodyInit);
- });
- }
- Gm.polyfill = !0;
- st.fetch ||
- ((st.fetch = Gm), (st.Headers = Ve), (st.Request = Pr), (st.Response = ln));
- self.fetch.bind(self);
- function md(e, t) {
- var n = Object.keys(e);
- if (Object.getOwnPropertySymbols) {
- var r = Object.getOwnPropertySymbols(e);
- t &&
- (r = r.filter(function (o) {
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
- })),
- n.push.apply(n, r);
- }
- return n;
- }
- function _t(e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t] != null ? arguments[t] : {};
- t % 2
- ? md(Object(n), !0).forEach(function (r) {
- P1(e, r, n[r]);
- })
- : Object.getOwnPropertyDescriptors
- ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
- : md(Object(n)).forEach(function (r) {
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
- });
- }
- return e;
- }
- function Jn(e) {
- '@babel/helpers - typeof';
- return (
- typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
- ? (Jn = function (t) {
- return typeof t;
- })
- : (Jn = function (t) {
- return t &&
- typeof Symbol == 'function' &&
- t.constructor === Symbol &&
- t !== Symbol.prototype
- ? 'symbol'
- : typeof t;
- }),
- Jn(e)
- );
- }
- function $i(e, t) {
- if (!(e instanceof t))
- throw new TypeError('Cannot call a class as a function');
- }
- function gd(e, t) {
- for (var n = 0; n < t.length; n++) {
- var r = t[n];
- (r.enumerable = r.enumerable || !1),
- (r.configurable = !0),
- 'value' in r && (r.writable = !0),
- Object.defineProperty(e, r.key, r);
- }
- }
- function iu(e, t, n) {
- return t && gd(e.prototype, t), n && gd(e, n), e;
- }
- function P1(e, t, n) {
- return (
- t in e
- ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0
- })
- : (e[t] = n),
- e
- );
- }
- function Ym(e, t) {
- if (typeof t != 'function' && t !== null)
- throw new TypeError('Super expression must either be null or a function');
- (e.prototype = Object.create(t && t.prototype, {
- constructor: { value: e, writable: !0, configurable: !0 }
- })),
- t && mi(e, t);
- }
- function hi(e) {
- return (
- (hi = Object.setPrototypeOf
- ? Object.getPrototypeOf
- : function (n) {
- return n.__proto__ || Object.getPrototypeOf(n);
- }),
- hi(e)
- );
- }
- function mi(e, t) {
- return (
- (mi =
- Object.setPrototypeOf ||
- function (r, o) {
- return (r.__proto__ = o), r;
- }),
- mi(e, t)
- );
- }
- function Jm() {
- if (typeof Reflect > 'u' || !Reflect.construct || Reflect.construct.sham)
- return !1;
- if (typeof Proxy == 'function') return !0;
- try {
- return (
- Boolean.prototype.valueOf.call(
- Reflect.construct(Boolean, [], function () {})
- ),
- !0
- );
- } catch (e) {
- return !1;
- }
- }
- function cs(e, t, n) {
- return (
- Jm()
- ? (cs = Reflect.construct)
- : (cs = function (o, i, s) {
- var a = [null];
- a.push.apply(a, i);
- var c = Function.bind.apply(o, a),
- l = new c();
- return s && mi(l, s.prototype), l;
- }),
- cs.apply(null, arguments)
- );
- }
- function $1(e) {
- return Function.toString.call(e).indexOf('[native code]') !== -1;
- }
- function Ds(e) {
- var t = typeof Map == 'function' ? new Map() : void 0;
- return (
- (Ds = function (r) {
- if (r === null || !$1(r)) return r;
- if (typeof r != 'function')
- throw new TypeError(
- 'Super expression must either be null or a function'
- );
- if (typeof t < 'u') {
- if (t.has(r)) return t.get(r);
- t.set(r, o);
- }
- function o() {
- return cs(r, arguments, hi(this).constructor);
- }
- return (
- (o.prototype = Object.create(r.prototype, {
- constructor: {
- value: o,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- })),
- mi(o, r)
- );
- }),
- Ds(e)
- );
- }
- function I1(e) {
- if (e === void 0)
- throw new ReferenceError(
- "this hasn't been initialised - super() hasn't been called"
- );
- return e;
- }
- function R1(e, t) {
- if (t && (typeof t == 'object' || typeof t == 'function')) return t;
- if (t !== void 0)
- throw new TypeError(
- 'Derived constructors may only return object or undefined'
- );
- return I1(e);
- }
- function Qm(e) {
- var t = Jm();
- return function () {
- var r = hi(e),
- o;
- if (t) {
- var i = hi(this).constructor;
- o = Reflect.construct(r, arguments, i);
- } else o = r.apply(this, arguments);
- return R1(this, o);
- };
- }
- function tn(e) {
- return k1(e) || M1(e) || F1(e) || B1();
- }
- function k1(e) {
- if (Array.isArray(e)) return Kl(e);
- }
- function M1(e) {
- if (
- (typeof Symbol < 'u' && e[Symbol.iterator] != null) ||
- e['@@iterator'] != null
- )
- return Array.from(e);
- }
- function F1(e, t) {
- if (e) {
- if (typeof e == 'string') return Kl(e, t);
- var n = Object.prototype.toString.call(e).slice(8, -1);
- if (
- (n === 'Object' && e.constructor && (n = e.constructor.name),
- n === 'Map' || n === 'Set')
- )
- return Array.from(e);
- if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return Kl(e, t);
- }
- }
- function Kl(e, t) {
- (t == null || t > e.length) && (t = e.length);
- for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
- return r;
- }
- function B1() {
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
- }
- function D1(e) {
- if (!Array.isArray(e)) throw new TypeError('Middlewares must be an array!');
- for (var t = e.length, n = 0; n < t; n++)
- if (typeof e[n] != 'function')
- throw new TypeError('Middleware must be componsed of function');
- return function (o, i) {
- var s = -1;
- function a(c) {
- if (c <= s)
- return Promise.reject(
- new Error(
- 'next() should not be called multiple times in one middleware!'
- )
- );
- s = c;
- var l = e[c] || i;
- if (!l) return Promise.resolve();
- try {
- return Promise.resolve(
- l(o, function () {
- return a(c + 1);
- })
- );
- } catch (u) {
- return Promise.reject(u);
- }
- }
- return a(0);
- };
- }
- var Yt = (function () {
- function e(t) {
- if (($i(this, e), !Array.isArray(t)))
- throw new TypeError('Default middlewares must be an array!');
- (this.defaultMiddlewares = tn(t)), (this.middlewares = []);
- }
- return (
- iu(e, [
- {
- key: 'use',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !1, core: !1, defaultInstance: !1 },
- o = !1,
- i = !1,
- s = !1;
- if (
- (typeof r == 'number'
- ? (process &&
- process.env &&
- console.warn(
- 'use() options should be object, number property would be deprecated in future,please update use() options to "{ core: true }".'
- ),
- (o = !0),
- (i = !1))
- : Jn(r) === 'object' &&
- r &&
- ((i = r.global || !1),
- (o = r.core || !1),
- (s = r.defaultInstance || !1)),
- i)
- ) {
- e.globalMiddlewares.splice(
- e.globalMiddlewares.length - e.defaultGlobalMiddlewaresLength,
- 0,
- n
- );
- return;
- }
- if (o) {
- e.coreMiddlewares.splice(
- e.coreMiddlewares.length - e.defaultCoreMiddlewaresLength,
- 0,
- n
- );
- return;
- }
- if (s) {
- this.defaultMiddlewares.push(n);
- return;
- }
- this.middlewares.push(n);
- }
- },
- {
- key: 'execute',
- value: function () {
- var n =
- arguments.length > 0 && arguments[0] !== void 0
- ? arguments[0]
- : null,
- r = D1(
- [].concat(
- tn(this.middlewares),
- tn(this.defaultMiddlewares),
- tn(e.globalMiddlewares),
- tn(e.coreMiddlewares)
- )
- );
- return r(n);
- }
- }
- ]),
- e
- );
- })();
- Yt.globalMiddlewares = [];
- Yt.defaultGlobalMiddlewaresLength = 0;
- Yt.coreMiddlewares = [];
- Yt.defaultCoreMiddlewaresLength = 0;
- var L1 = (function () {
- function e(t) {
- $i(this, e),
- (this.cache = new Map()),
- (this.timer = {}),
- this.extendOptions(t);
- }
- return (
- iu(e, [
- {
- key: 'extendOptions',
- value: function (n) {
- this.maxCache = n.maxCache || 0;
- }
- },
- {
- key: 'get',
- value: function (n) {
- return this.cache.get(JSON.stringify(n));
- }
- },
- {
- key: 'set',
- value: function (n, r) {
- var o = this,
- i =
- arguments.length > 2 && arguments[2] !== void 0
- ? arguments[2]
- : 6e4;
- if (this.maxCache > 0 && this.cache.size >= this.maxCache) {
- var s = tn(this.cache.keys())[0];
- this.cache.delete(s),
- this.timer[s] && clearTimeout(this.timer[s]);
- }
- var a = JSON.stringify(n);
- this.cache.set(a, r),
- i > 0 &&
- (this.timer[a] = setTimeout(function () {
- o.cache.delete(a), delete o.timer[a];
- }, i));
- }
- },
- {
- key: 'delete',
- value: function (n) {
- var r = JSON.stringify(n);
- return delete this.timer[r], this.cache.delete(r);
- }
- },
- {
- key: 'clear',
- value: function () {
- return (this.timer = {}), this.cache.clear();
- }
- }
- ]),
- e
- );
- })(),
- Xm = (function (e) {
- Ym(n, e);
- var t = Qm(n);
- function n(r, o) {
- var i,
- s =
- arguments.length > 2 && arguments[2] !== void 0
- ? arguments[2]
- : 'RequestError';
- return (
- $i(this, n),
- (i = t.call(this, r)),
- (i.name = 'RequestError'),
- (i.request = o),
- (i.type = s),
- i
- );
- }
- return n;
- })(Ds(Error)),
- Bo = (function (e) {
- Ym(n, e);
- var t = Qm(n);
- function n(r, o, i, s) {
- var a,
- c =
- arguments.length > 4 && arguments[4] !== void 0
- ? arguments[4]
- : 'ResponseError';
- return (
- $i(this, n),
- (a = t.call(this, o || r.statusText)),
- (a.name = 'ResponseError'),
- (a.data = i),
- (a.response = r),
- (a.request = s),
- (a.type = c),
- a
- );
- }
- return n;
- })(Ds(Error));
- function N1(e) {
- return new Promise(function (t, n) {
- var r = new FileReader();
- (r.onload = function () {
- t(r.result);
- }),
- (r.onerror = n),
- r.readAsText(e, 'GBK');
- });
- }
- function yd(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1,
- n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null,
- r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
- try {
- return JSON.parse(e);
- } catch (o) {
- if (t) throw new Bo(n, 'JSON.parse fail', e, r, 'ParseError');
- }
- return e;
- }
- function j1(e, t, n) {
- return new Promise(function (r, o) {
- setTimeout(function () {
- o(new Xm(t || 'timeout of '.concat(e, 'ms exceeded'), n, 'Timeout'));
- }, e);
- });
- }
- function vd(e) {
- return new Promise(function (t, n) {
- e.cancelToken &&
- e.cancelToken.promise.then(function (r) {
- n(r);
- });
- });
- }
- var U1 = Object.prototype.toString;
- function Zm() {
- var e;
- return (
- typeof process < 'u' &&
- U1.call(process) === '[object process]' &&
- (e = 'NODE'),
- typeof XMLHttpRequest < 'u' && (e = 'BROWSER'),
- e
- );
- }
- function Gl(e) {
- return (
- Jn(e) === 'object' && Object.prototype.toString.call(e) === '[object Array]'
- );
- }
- function eg(e) {
- return typeof URLSearchParams < 'u' && e instanceof URLSearchParams;
- }
- function H1(e) {
- return (
- Jn(e) === 'object' && Object.prototype.toString.call(e) === '[object Date]'
- );
- }
- function bd(e) {
- return e !== null && Jn(e) === 'object';
- }
- function _d(e, t) {
- if (e)
- if ((Jn(e) !== 'object' && (e = [e]), Gl(e)))
- for (var n = 0; n < e.length; n++) t.call(null, e[n], n, e);
- else
- for (var r in e)
- Object.prototype.hasOwnProperty.call(e, r) && t.call(null, e[r], r, e);
- }
- function wd(e) {
- return eg(e)
- ? zm.parse(e.toString(), { strictNullHandling: !0 })
- : typeof e == 'string'
- ? [e]
- : e;
- }
- function Yl(e) {
- return zm.stringify(e, { arrayFormat: 'repeat', strictNullHandling: !0 });
- }
- function tg(e, t) {
- return _t(
- _t(_t({}, e), t),
- {},
- {
- headers: _t(_t({}, e.headers), t.headers),
- params: _t(_t({}, wd(e.params)), wd(t.params)),
- method: (t.method || e.method || 'get').toLowerCase()
- }
- );
- }
- var V1 = function (t) {
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- r = n.prefix,
- o = n.suffix;
- return (
- r && (t = ''.concat(r).concat(t)),
- o && (t = ''.concat(t).concat(o)),
- { url: t, options: n }
- );
- },
- Ed = !1;
- function q1(e, t) {
- var n = t.method,
- r = n === void 0 ? 'get' : n;
- return r.toLowerCase() === 'get';
- }
- function z1(e, t) {
- if (!e) return t();
- var n = e.req;
- n = n === void 0 ? {} : n;
- var r = n.options,
- o = r === void 0 ? {} : r,
- i = n.url,
- s = i === void 0 ? '' : i,
- a = e.cache,
- c = e.responseInterceptors,
- l = o.timeout,
- u = l === void 0 ? 0 : l,
- f = o.timeoutMessage,
- d = o.__umiRequestCoreType__,
- h = d === void 0 ? 'normal' : d,
- g = o.useCache,
- w = g === void 0 ? !1 : g,
- E = o.method,
- y = E === void 0 ? 'get' : E,
- v = o.params,
- O = o.ttl,
- C = o.validateCache,
- x = C === void 0 ? q1 : C;
- if (h !== 'normal')
- return (
- process &&
- process.env &&
- Ed === !1 &&
- ((Ed = !0),
- console.warn(
- '__umiRequestCoreType__ is a internal property that use in umi-request, change its value would affect the behavior of request! It only use when you want to extend or use request core.'
- )),
- t()
- );
- var N = fetch;
- if (!N) throw new Error('Global fetch not exist!');
- var A = Zm() === 'BROWSER',
- I = x(s, o) && w && A;
- if (I) {
- var k = a.get({ url: s, params: v, method: y });
- if (k) return (k = k.clone()), (k.useCache = !0), (e.res = k), t();
- }
- var S;
- return (
- u > 0
- ? (S = Promise.race([vd(o), N(s, o), j1(u, f, e.req)]))
- : (S = Promise.race([vd(o), N(s, o)])),
- c.forEach(function (R) {
- S = S.then(function (B) {
- var F = typeof B.clone == 'function' ? B.clone() : B;
- return R(F, o);
- });
- }),
- S.then(function (R) {
- if (I && R.status === 200) {
- var B = R.clone();
- (B.useCache = !0), a.set({ url: s, params: v, method: y }, B, O);
- }
- return (e.res = R), t();
- })
- );
- }
- function W1(e, t) {
- var n;
- return t()
- .then(function () {
- if (e) {
- var r = e.res,
- o = r === void 0 ? {} : r,
- i = e.req,
- s = i === void 0 ? {} : i,
- a = s || {},
- c = a.options;
- c = c === void 0 ? {} : c;
- var l = c.responseType,
- u = l === void 0 ? 'json' : l,
- f = c.charset,
- d = f === void 0 ? 'utf8' : f;
- c.getResponse;
- var h = c.throwErrIfParseFail,
- g = h === void 0 ? !1 : h,
- w = c.parseResponse,
- E = w === void 0 ? !0 : w;
- if (E && !(!o || !o.clone)) {
- if (
- ((n = Zm() === 'BROWSER' ? o.clone() : o),
- (n.useCache = o.useCache || !1),
- d === 'gbk')
- )
- try {
- return o
- .blob()
- .then(N1)
- .then(function (y) {
- return yd(y, !1, n, s);
- });
- } catch (y) {
- throw new Bo(n, y.message, null, s, 'ParseError');
- }
- else if (u === 'json')
- return o.text().then(function (y) {
- return yd(y, g, n, s);
- });
- try {
- return o[u]();
- } catch (y) {
- throw new Bo(n, 'responseType not support', null, s, 'ParseError');
- }
- }
- }
- })
- .then(function (r) {
- if (e) {
- e.res;
- var o = e.req,
- i = o === void 0 ? {} : o,
- s = i || {},
- a = s.options;
- a = a === void 0 ? {} : a;
- var c = a.getResponse,
- l = c === void 0 ? !1 : c;
- if (n) {
- if (n.status >= 200 && n.status < 300) {
- if (l) {
- e.res = { data: r, response: n };
- return;
- }
- e.res = r;
- return;
- }
- throw new Bo(n, 'http error', r, i, 'HttpError');
- }
- }
- })
- .catch(function (r) {
- if (r instanceof Xm || r instanceof Bo) throw r;
- var o = e.req,
- i = e.res;
- throw (
- ((r.request = r.request || o),
- (r.response = r.response || i),
- (r.type = r.type || r.name),
- (r.data = r.data || void 0),
- r)
- );
- });
- }
- function K1(e, t) {
- if (!e) return t();
- var n = e.req;
- n = n === void 0 ? {} : n;
- var r = n.options,
- o = r === void 0 ? {} : r,
- i = o.method,
- s = i === void 0 ? 'get' : i;
- if (['post', 'put', 'patch', 'delete'].indexOf(s.toLowerCase()) === -1)
- return t();
- var a = o.requestType,
- c = a === void 0 ? 'json' : a,
- l = o.data;
- if (l) {
- var u = Object.prototype.toString.call(l);
- u === '[object Object]' || u === '[object Array]'
- ? c === 'json'
- ? ((o.headers = _t(
- {
- Accept: 'application/json',
- 'Content-Type': 'application/json;charset=UTF-8'
- },
- o.headers
- )),
- (o.body = JSON.stringify(l)))
- : c === 'form' &&
- ((o.headers = _t(
- {
- Accept: 'application/json',
- 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
- },
- o.headers
- )),
- (o.body = Yl(l)))
- : ((o.headers = _t({ Accept: 'application/json' }, o.headers)),
- (o.body = l));
- }
- return (e.req.options = o), t();
- }
- function G1(e, t) {
- var n, r;
- if (e)
- if (t) n = t(e);
- else if (eg(e)) n = e.toString();
- else if (Gl(e))
- (r = []),
- _d(e, function (i) {
- i === null || typeof i > 'u'
- ? r.push(i)
- : r.push(bd(i) ? JSON.stringify(i) : i);
- }),
- (n = Yl(r));
- else {
- (r = {}),
- _d(e, function (i, s) {
- var a = i;
- i === null || typeof i > 'u'
- ? (r[s] = i)
- : H1(i)
- ? (a = i.toISOString())
- : Gl(i)
- ? (a = i)
- : bd(i) && (a = JSON.stringify(i)),
- (r[s] = a);
- });
- var o = Yl(r);
- n = o;
- }
- return n;
- }
- function Y1(e, t) {
- if (!e) return t();
- var n = e.req;
- n = n === void 0 ? {} : n;
- var r = n.options,
- o = r === void 0 ? {} : r,
- i = o.paramsSerializer,
- s = o.params,
- a = e.req;
- a = a === void 0 ? {} : a;
- var c = a.url,
- l = c === void 0 ? '' : c;
- (o.method = o.method ? o.method.toUpperCase() : 'GET'),
- (o.credentials = o.credentials || 'same-origin');
- var u = G1(s, i);
- if (((e.req.originUrl = l), u)) {
- var f = l.indexOf('?') !== -1 ? '&' : '?';
- e.req.url = ''.concat(l).concat(f).concat(u);
- }
- return (e.req.options = o), t();
- }
- var ng = [K1, Y1, W1],
- rg = [z1];
- Yt.globalMiddlewares = ng;
- Yt.defaultGlobalMiddlewaresLength = ng.length;
- Yt.coreMiddlewares = rg;
- Yt.defaultCoreMiddlewaresLength = rg.length;
- var Qo = (function () {
- function e(t) {
- $i(this, e),
- (this.onion = new Yt([])),
- (this.fetchIndex = 0),
- (this.mapCache = new L1(t)),
- (this.initOptions = t),
- (this.instanceRequestInterceptors = []),
- (this.instanceResponseInterceptors = []);
- }
- return (
- iu(
- e,
- [
- {
- key: 'use',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !1, core: !1 };
- return this.onion.use(n, r), this;
- }
- },
- {
- key: 'extendOptions',
- value: function (n) {
- (this.initOptions = tg(this.initOptions, n)),
- this.mapCache.extendOptions(n);
- }
- },
- {
- key: 'dealRequestInterceptors',
- value: function (n) {
- var r = function (s, a) {
- return s.then(function () {
- var c =
- arguments.length > 0 && arguments[0] !== void 0
- ? arguments[0]
- : {};
- return (
- (n.req.url = c.url || n.req.url),
- (n.req.options = c.options || n.req.options),
- a(n.req.url, n.req.options)
- );
- });
- },
- o = [].concat(
- tn(e.requestInterceptors),
- tn(this.instanceRequestInterceptors)
- );
- return o.reduce(r, Promise.resolve()).then(function () {
- var i =
- arguments.length > 0 && arguments[0] !== void 0
- ? arguments[0]
- : {};
- return (
- (n.req.url = i.url || n.req.url),
- (n.req.options = i.options || n.req.options),
- Promise.resolve()
- );
- });
- }
- },
- {
- key: 'request',
- value: function (n, r) {
- var o = this,
- i = this.onion,
- s = {
- req: { url: n, options: _t(_t({}, r), {}, { url: n }) },
- res: null,
- cache: this.mapCache,
- responseInterceptors: [].concat(
- tn(e.responseInterceptors),
- tn(this.instanceResponseInterceptors)
- )
- };
- if (typeof n != 'string') throw new Error('url MUST be a string');
- return new Promise(function (a, c) {
- o.dealRequestInterceptors(s)
- .then(function () {
- return i.execute(s);
- })
- .then(function () {
- a(s.res);
- })
- .catch(function (l) {
- var u = s.req.options.errorHandler;
- if (u)
- try {
- var f = u(l);
- a(f);
- } catch (d) {
- c(d);
- }
- else c(l);
- });
- });
- }
- }
- ],
- [
- {
- key: 'requestUse',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !0 };
- if (typeof n != 'function')
- throw new TypeError('Interceptor must be function!');
- r.global
- ? e.requestInterceptors.push(n)
- : this.instanceRequestInterceptors.push(n);
- }
- },
- {
- key: 'responseUse',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !0 };
- if (typeof n != 'function')
- throw new TypeError('Interceptor must be function!');
- r.global
- ? e.responseInterceptors.push(n)
- : this.instanceResponseInterceptors.push(n);
- }
- }
- ]
- ),
- e
- );
- })();
- Qo.requestInterceptors = [V1];
- Qo.responseInterceptors = [];
- function ha(e) {
- this.message = e;
- }
- ha.prototype.toString = function () {
- return this.message ? 'Cancel: '.concat(this.message) : 'Cancel';
- };
- ha.prototype.__CANCEL__ = !0;
- function Ls(e) {
- if (typeof e != 'function')
- throw new TypeError('executor must be a function.');
- var t;
- this.promise = new Promise(function (o) {
- t = o;
- });
- var n = this;
- e(function (o) {
- n.reason || ((n.reason = new ha(o)), t(n.reason));
- });
- }
- Ls.prototype.throwIfRequested = function () {
- if (this.reason) throw this.reason;
- };
- Ls.source = function () {
- var t,
- n = new Ls(function (o) {
- t = o;
- });
- return { token: n, cancel: t };
- };
- function J1(e) {
- return !!(e && e.__CANCEL__);
- }
- var su = function () {
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
- n = new Qo(t),
- r = function (s) {
- var a =
- arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- c = tg(n.initOptions, a);
- return n.request(s, c);
- };
- (r.use = n.use.bind(n)),
- (r.fetchIndex = n.fetchIndex),
- (r.interceptors = {
- request: { use: Qo.requestUse.bind(n) },
- response: { use: Qo.responseUse.bind(n) }
- });
- var o = ['get', 'post', 'delete', 'put', 'patch', 'head', 'options', 'rpc'];
- return (
- o.forEach(function (i) {
- r[i] = function (s, a) {
- return r(s, _t(_t({}, a), {}, { method: i }));
- };
- }),
- (r.Cancel = ha),
- (r.CancelToken = Ls),
- (r.isCancel = J1),
- (r.extendOptions = n.extendOptions.bind(n)),
- (r.middlewares = {
- instance: n.onion.middlewares,
- defaultInstance: n.onion.defaultMiddlewares,
- global: Yt.globalMiddlewares,
- core: Yt.coreMiddlewares
- }),
- r
- );
- },
- Q1 = function (t) {
- return su(t);
- };
- su({ parseResponse: !1 });
- su({});
- var Ns = { exports: {} };
- Ns.exports;
- (function (e, t) {
- var n = 9007199254740991,
- r = '[object Arguments]',
- o = '[object Function]',
- i = '[object GeneratorFunction]',
- s = '[object Map]',
- a = '[object Object]',
- c = '[object Promise]',
- l = '[object Set]',
- u = '[object WeakMap]',
- f = '[object DataView]',
- d = /[\\^$.*+?()[\]{}|]/g,
- h = /^\[object .+?Constructor\]$/,
- g = typeof Kt == 'object' && Kt && Kt.Object === Object && Kt,
- w = typeof self == 'object' && self && self.Object === Object && self,
- E = g || w || Function('return this')(),
- y = t && !t.nodeType && t,
- v = y && !0 && e && !e.nodeType && e,
- O = v && v.exports === y;
- function C(z, ae) {
- return z == null ? void 0 : z[ae];
- }
- function x(z) {
- var ae = !1;
- if (z != null && typeof z.toString != 'function')
- try {
- ae = !!(z + '');
- } catch (ve) {}
- return ae;
- }
- function N(z, ae) {
- return function (ve) {
- return z(ae(ve));
- };
- }
- var A = Function.prototype,
- I = Object.prototype,
- k = E['__core-js_shared__'],
- S = (function () {
- var z = /[^.]+$/.exec((k && k.keys && k.keys.IE_PROTO) || '');
- return z ? 'Symbol(src)_1.' + z : '';
- })(),
- R = A.toString,
- B = I.hasOwnProperty,
- F = I.toString,
- $ = RegExp(
- '^' +
- R.call(B)
- .replace(d, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- ),
- V = O ? E.Buffer : void 0,
- Y = I.propertyIsEnumerable,
- H = V ? V.isBuffer : void 0,
- K = N(Object.keys, Object),
- ie = be(E, 'DataView'),
- he = be(E, 'Map'),
- Se = be(E, 'Promise'),
- ye = be(E, 'Set'),
- xe = be(E, 'WeakMap'),
- Le = !Y.call({ valueOf: 1 }, 'valueOf'),
- qe = U(ie),
- ze = U(he),
- M = U(Se),
- q = U(ye),
- J = U(xe);
- function te(z) {
- return F.call(z);
- }
- function ue(z) {
- if (!se(z) || b(z)) return !1;
- var ae = oe(z) || x(z) ? $ : h;
- return ae.test(U(z));
- }
- function be(z, ae) {
- var ve = C(z, ae);
- return ue(ve) ? ve : void 0;
- }
- var m = te;
- ((ie && m(new ie(new ArrayBuffer(1))) != f) ||
- (he && m(new he()) != s) ||
- (Se && m(Se.resolve()) != c) ||
- (ye && m(new ye()) != l) ||
- (xe && m(new xe()) != u)) &&
- (m = function (z) {
- var ae = F.call(z),
- ve = ae == a ? z.constructor : void 0,
- We = ve ? U(ve) : void 0;
- if (We)
- switch (We) {
- case qe:
- return f;
- case ze:
- return s;
- case M:
- return c;
- case q:
- return l;
- case J:
- return u;
- }
- return ae;
- });
- function b(z) {
- return !!S && S in z;
- }
- function P(z) {
- var ae = z && z.constructor,
- ve = (typeof ae == 'function' && ae.prototype) || I;
- return z === ve;
- }
- function U(z) {
- if (z != null) {
- try {
- return R.call(z);
- } catch (ae) {}
- try {
- return z + '';
- } catch (ae) {}
- }
- return '';
- }
- function j(z) {
- return (
- G(z) && B.call(z, 'callee') && (!Y.call(z, 'callee') || F.call(z) == r)
- );
- }
- var Q = Array.isArray;
- function ee(z) {
- return z != null && re(z.length) && !oe(z);
- }
- function G(z) {
- return fe(z) && ee(z);
- }
- var Z = H || me;
- function W(z) {
- if (
- ee(z) &&
- (Q(z) ||
- typeof z == 'string' ||
- typeof z.splice == 'function' ||
- Z(z) ||
- j(z))
- )
- return !z.length;
- var ae = m(z);
- if (ae == s || ae == l) return !z.size;
- if (Le || P(z)) return !K(z).length;
- for (var ve in z) if (B.call(z, ve)) return !1;
- return !0;
- }
- function oe(z) {
- var ae = se(z) ? F.call(z) : '';
- return ae == o || ae == i;
- }
- function re(z) {
- return typeof z == 'number' && z > -1 && z % 1 == 0 && z <= n;
- }
- function se(z) {
- var ae = typeof z;
- return !!z && (ae == 'object' || ae == 'function');
- }
- function fe(z) {
- return !!z && typeof z == 'object';
- }
- function me() {
- return !1;
- }
- e.exports = W;
- })(Ns, Ns.exports);
- var X1 = Ns.exports,
- Z1 = '[object Object]';
- function eC(e) {
- var t = !1;
- if (e != null && typeof e.toString != 'function')
- try {
- t = !!(e + '');
- } catch (n) {}
- return t;
- }
- function tC(e, t) {
- return function (n) {
- return e(t(n));
- };
- }
- var nC = Function.prototype,
- og = Object.prototype,
- ig = nC.toString,
- rC = og.hasOwnProperty,
- oC = ig.call(Object),
- iC = og.toString,
- sC = tC(Object.getPrototypeOf, Object);
- function aC(e) {
- return !!e && typeof e == 'object';
- }
- function lC(e) {
- if (!aC(e) || iC.call(e) != Z1 || eC(e)) return !1;
- var t = sC(e);
- if (t === null) return !0;
- var n = rC.call(t, 'constructor') && t.constructor;
- return typeof n == 'function' && n instanceof n && ig.call(n) == oC;
- }
- var cC = lC,
- js = { exports: {} };
- js.exports;
- (function (e, t) {
- var n = 200,
- r = 'Expected a function',
- o = '__lodash_hash_undefined__',
- i = 1,
- s = 2,
- a = 1 / 0,
- c = 9007199254740991,
- l = '[object Arguments]',
- u = '[object Array]',
- f = '[object Boolean]',
- d = '[object Date]',
- h = '[object Error]',
- g = '[object Function]',
- w = '[object GeneratorFunction]',
- E = '[object Map]',
- y = '[object Number]',
- v = '[object Object]',
- O = '[object Promise]',
- C = '[object RegExp]',
- x = '[object Set]',
- N = '[object String]',
- A = '[object Symbol]',
- I = '[object WeakMap]',
- k = '[object ArrayBuffer]',
- S = '[object DataView]',
- R = '[object Float32Array]',
- B = '[object Float64Array]',
- F = '[object Int8Array]',
- $ = '[object Int16Array]',
- V = '[object Int32Array]',
- Y = '[object Uint8Array]',
- H = '[object Uint8ClampedArray]',
- K = '[object Uint16Array]',
- ie = '[object Uint32Array]',
- he = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- Se = /^\w*$/,
- ye = /^\./,
- xe =
- /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
- Le = /[\\^$.*+?()[\]{}|]/g,
- qe = /\\(\\)?/g,
- ze = /^\[object .+?Constructor\]$/,
- M = /^(?:0|[1-9]\d*)$/,
- q = {};
- (q[R] = q[B] = q[F] = q[$] = q[V] = q[Y] = q[H] = q[K] = q[ie] = !0),
- (q[l] =
- q[u] =
- q[k] =
- q[f] =
- q[S] =
- q[d] =
- q[h] =
- q[g] =
- q[E] =
- q[y] =
- q[v] =
- q[C] =
- q[x] =
- q[N] =
- q[I] =
- !1);
- var J = typeof Kt == 'object' && Kt && Kt.Object === Object && Kt,
- te = typeof self == 'object' && self && self.Object === Object && self,
- ue = J || te || Function('return this')(),
- be = t && !t.nodeType && t,
- m = be && !0 && e && !e.nodeType && e,
- b = m && m.exports === be,
- P = b && J.process,
- U = (function () {
- try {
- return P && P.binding('util');
- } catch (p) {}
- })(),
- j = U && U.isTypedArray;
- function Q(p, _) {
- for (var D = -1, X = p ? p.length : 0; ++D < X && _(p[D], D, p) !== !1; );
- return p;
- }
- function ee(p, _) {
- for (var D = -1, X = p ? p.length : 0; ++D < X; )
- if (_(p[D], D, p)) return !0;
- return !1;
- }
- function G(p) {
- return function (_) {
- return _ == null ? void 0 : _[p];
- };
- }
- function Z(p, _) {
- for (var D = -1, X = Array(p); ++D < p; ) X[D] = _(D);
- return X;
- }
- function W(p) {
- return function (_) {
- return p(_);
- };
- }
- function oe(p, _) {
- return p == null ? void 0 : p[_];
- }
- function re(p) {
- var _ = !1;
- if (p != null && typeof p.toString != 'function')
- try {
- _ = !!(p + '');
- } catch (D) {}
- return _;
- }
- function se(p) {
- var _ = -1,
- D = Array(p.size);
- return (
- p.forEach(function (X, pe) {
- D[++_] = [pe, X];
- }),
- D
- );
- }
- function fe(p, _) {
- return function (D) {
- return p(_(D));
- };
- }
- function me(p) {
- var _ = -1,
- D = Array(p.size);
- return (
- p.forEach(function (X) {
- D[++_] = X;
- }),
- D
- );
- }
- var z = Array.prototype,
- ae = Function.prototype,
- ve = Object.prototype,
- We = ue['__core-js_shared__'],
- cn = (function () {
- var p = /[^.]+$/.exec((We && We.keys && We.keys.IE_PROTO) || '');
- return p ? 'Symbol(src)_1.' + p : '';
- })(),
- vo = ae.toString,
- dt = ve.hasOwnProperty,
- un = ve.toString,
- et = RegExp(
- '^' +
- vo
- .call(dt)
- .replace(Le, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- ),
- Pt = ue.Symbol,
- bo = ue.Uint8Array,
- gg = fe(Object.getPrototypeOf, Object),
- yg = Object.create,
- vg = ve.propertyIsEnumerable,
- bg = z.splice,
- _g = fe(Object.keys, Object),
- ya = Lr(ue, 'DataView'),
- _o = Lr(ue, 'Map'),
- va = Lr(ue, 'Promise'),
- ba = Lr(ue, 'Set'),
- _a = Lr(ue, 'WeakMap'),
- wo = Lr(Object, 'create'),
- wg = lr(ya),
- Eg = lr(_o),
- Sg = lr(va),
- xg = lr(ba),
- Og = lr(_a),
- Ii = Pt ? Pt.prototype : void 0,
- wa = Ii ? Ii.valueOf : void 0,
- uu = Ii ? Ii.toString : void 0;
- function ar(p) {
- var _ = -1,
- D = p ? p.length : 0;
- for (this.clear(); ++_ < D; ) {
- var X = p[_];
- this.set(X[0], X[1]);
- }
- }
- function Cg() {
- this.__data__ = wo ? wo(null) : {};
- }
- function Tg(p) {
- return this.has(p) && delete this.__data__[p];
- }
- function Ag(p) {
- var _ = this.__data__;
- if (wo) {
- var D = _[p];
- return D === o ? void 0 : D;
- }
- return dt.call(_, p) ? _[p] : void 0;
- }
- function Pg(p) {
- var _ = this.__data__;
- return wo ? _[p] !== void 0 : dt.call(_, p);
- }
- function $g(p, _) {
- var D = this.__data__;
- return (D[p] = wo && _ === void 0 ? o : _), this;
- }
- (ar.prototype.clear = Cg),
- (ar.prototype.delete = Tg),
- (ar.prototype.get = Ag),
- (ar.prototype.has = Pg),
- (ar.prototype.set = $g);
- function fn(p) {
- var _ = -1,
- D = p ? p.length : 0;
- for (this.clear(); ++_ < D; ) {
- var X = p[_];
- this.set(X[0], X[1]);
- }
- }
- function Ig() {
- this.__data__ = [];
- }
- function Rg(p) {
- var _ = this.__data__,
- D = ki(_, p);
- if (D < 0) return !1;
- var X = _.length - 1;
- return D == X ? _.pop() : bg.call(_, D, 1), !0;
- }
- function kg(p) {
- var _ = this.__data__,
- D = ki(_, p);
- return D < 0 ? void 0 : _[D][1];
- }
- function Mg(p) {
- return ki(this.__data__, p) > -1;
- }
- function Fg(p, _) {
- var D = this.__data__,
- X = ki(D, p);
- return X < 0 ? D.push([p, _]) : (D[X][1] = _), this;
- }
- (fn.prototype.clear = Ig),
- (fn.prototype.delete = Rg),
- (fn.prototype.get = kg),
- (fn.prototype.has = Mg),
- (fn.prototype.set = Fg);
- function dn(p) {
- var _ = -1,
- D = p ? p.length : 0;
- for (this.clear(); ++_ < D; ) {
- var X = p[_];
- this.set(X[0], X[1]);
- }
- }
- function Bg() {
- this.__data__ = { hash: new ar(), map: new (_o || fn)(), string: new ar() };
- }
- function Dg(p) {
- return Mi(this, p).delete(p);
- }
- function Lg(p) {
- return Mi(this, p).get(p);
- }
- function Ng(p) {
- return Mi(this, p).has(p);
- }
- function jg(p, _) {
- return Mi(this, p).set(p, _), this;
- }
- (dn.prototype.clear = Bg),
- (dn.prototype.delete = Dg),
- (dn.prototype.get = Lg),
- (dn.prototype.has = Ng),
- (dn.prototype.set = jg);
- function Ri(p) {
- var _ = -1,
- D = p ? p.length : 0;
- for (this.__data__ = new dn(); ++_ < D; ) this.add(p[_]);
- }
- function Ug(p) {
- return this.__data__.set(p, o), this;
- }
- function Hg(p) {
- return this.__data__.has(p);
- }
- (Ri.prototype.add = Ri.prototype.push = Ug), (Ri.prototype.has = Hg);
- function pn(p) {
- this.__data__ = new fn(p);
- }
- function Vg() {
- this.__data__ = new fn();
- }
- function qg(p) {
- return this.__data__.delete(p);
- }
- function zg(p) {
- return this.__data__.get(p);
- }
- function Wg(p) {
- return this.__data__.has(p);
- }
- function Kg(p, _) {
- var D = this.__data__;
- if (D instanceof fn) {
- var X = D.__data__;
- if (!_o || X.length < n - 1) return X.push([p, _]), this;
- D = this.__data__ = new dn(X);
- }
- return D.set(p, _), this;
- }
- (pn.prototype.clear = Vg),
- (pn.prototype.delete = qg),
- (pn.prototype.get = zg),
- (pn.prototype.has = Wg),
- (pn.prototype.set = Kg);
- function Gg(p, _) {
- var D = hn(p) || vu(p) ? Z(p.length, String) : [],
- X = D.length,
- pe = !!X;
- for (var le in p)
- (_ || dt.call(p, le)) &&
- !(pe && (le == 'length' || hu(le, X))) &&
- D.push(le);
- return D;
- }
- function ki(p, _) {
- for (var D = p.length; D--; ) if (yu(p[D][0], _)) return D;
- return -1;
- }
- function Yg(p) {
- return Nr(p) ? yg(p) : {};
- }
- var Jg = uy();
- function Qg(p, _) {
- return p && Jg(p, _, Li);
- }
- function fu(p, _) {
- _ = Fi(_, p) ? [_] : du(_);
- for (var D = 0, X = _.length; p != null && D < X; ) p = p[Bi(_[D++])];
- return D && D == X ? p : void 0;
- }
- function Xg(p) {
- return un.call(p);
- }
- function Zg(p, _) {
- return p != null && _ in Object(p);
- }
- function Ea(p, _, D, X, pe) {
- return p === _
- ? !0
- : p == null || _ == null || (!Nr(p) && !Di(_))
- ? p !== p && _ !== _
- : ey(p, _, Ea, D, X, pe);
- }
- function ey(p, _, D, X, pe, le) {
- var Ae = hn(p),
- Re = hn(_),
- Fe = u,
- Ke = u;
- Ae || ((Fe = Pn(p)), (Fe = Fe == l ? v : Fe)),
- Re || ((Ke = Pn(_)), (Ke = Ke == l ? v : Ke));
- var pt = Fe == v && !re(p),
- yt = Ke == v && !re(_),
- Ge = Fe == Ke;
- if (Ge && !pt)
- return (
- le || (le = new pn()),
- Ae || _u(p) ? pu(p, _, D, X, pe, le) : fy(p, _, Fe, D, X, pe, le)
- );
- if (!(pe & s)) {
- var Ft = pt && dt.call(p, '__wrapped__'),
- Bt = yt && dt.call(_, '__wrapped__');
- if (Ft || Bt) {
- var $n = Ft ? p.value() : p,
- mn = Bt ? _.value() : _;
- return le || (le = new pn()), D($n, mn, X, pe, le);
- }
- }
- return Ge ? (le || (le = new pn()), dy(p, _, D, X, pe, le)) : !1;
- }
- function ty(p, _, D, X) {
- var pe = D.length,
- le = pe,
- Ae = !X;
- if (p == null) return !le;
- for (p = Object(p); pe--; ) {
- var Re = D[pe];
- if (Ae && Re[2] ? Re[1] !== p[Re[0]] : !(Re[0] in p)) return !1;
- }
- for (; ++pe < le; ) {
- Re = D[pe];
- var Fe = Re[0],
- Ke = p[Fe],
- pt = Re[1];
- if (Ae && Re[2]) {
- if (Ke === void 0 && !(Fe in p)) return !1;
- } else {
- var yt = new pn();
- if (X) var Ge = X(Ke, pt, Fe, p, _, yt);
- if (!(Ge === void 0 ? Ea(pt, Ke, X, i | s, yt) : Ge)) return !1;
- }
- }
- return !0;
- }
- function ny(p) {
- if (!Nr(p) || gy(p)) return !1;
- var _ = xa(p) || re(p) ? et : ze;
- return _.test(lr(p));
- }
- function ry(p) {
- return Di(p) && Oa(p.length) && !!q[un.call(p)];
- }
- function oy(p) {
- return typeof p == 'function'
- ? p
- : p == null
- ? xy
- : typeof p == 'object'
- ? hn(p)
- ? ay(p[0], p[1])
- : sy(p)
- : Oy(p);
- }
- function iy(p) {
- if (!yy(p)) return _g(p);
- var _ = [];
- for (var D in Object(p)) dt.call(p, D) && D != 'constructor' && _.push(D);
- return _;
- }
- function sy(p) {
- var _ = py(p);
- return _.length == 1 && _[0][2]
- ? gu(_[0][0], _[0][1])
- : function (D) {
- return D === p || ty(D, p, _);
- };
- }
- function ay(p, _) {
- return Fi(p) && mu(_)
- ? gu(Bi(p), _)
- : function (D) {
- var X = wy(D, p);
- return X === void 0 && X === _ ? Ey(D, p) : Ea(_, X, void 0, i | s);
- };
- }
- function ly(p) {
- return function (_) {
- return fu(_, p);
- };
- }
- function cy(p) {
- if (typeof p == 'string') return p;
- if (Ca(p)) return uu ? uu.call(p) : '';
- var _ = p + '';
- return _ == '0' && 1 / p == -a ? '-0' : _;
- }
- function du(p) {
- return hn(p) ? p : vy(p);
- }
- function uy(p) {
- return function (_, D, X) {
- for (var pe = -1, le = Object(_), Ae = X(_), Re = Ae.length; Re--; ) {
- var Fe = Ae[p ? Re : ++pe];
- if (D(le[Fe], Fe, le) === !1) break;
- }
- return _;
- };
- }
- function pu(p, _, D, X, pe, le) {
- var Ae = pe & s,
- Re = p.length,
- Fe = _.length;
- if (Re != Fe && !(Ae && Fe > Re)) return !1;
- var Ke = le.get(p);
- if (Ke && le.get(_)) return Ke == _;
- var pt = -1,
- yt = !0,
- Ge = pe & i ? new Ri() : void 0;
- for (le.set(p, _), le.set(_, p); ++pt < Re; ) {
- var Ft = p[pt],
- Bt = _[pt];
- if (X) var $n = Ae ? X(Bt, Ft, pt, _, p, le) : X(Ft, Bt, pt, p, _, le);
- if ($n !== void 0) {
- if ($n) continue;
- yt = !1;
- break;
- }
- if (Ge) {
- if (
- !ee(_, function (mn, cr) {
- if (!Ge.has(cr) && (Ft === mn || D(Ft, mn, X, pe, le)))
- return Ge.add(cr);
- })
- ) {
- yt = !1;
- break;
- }
- } else if (!(Ft === Bt || D(Ft, Bt, X, pe, le))) {
- yt = !1;
- break;
- }
- }
- return le.delete(p), le.delete(_), yt;
- }
- function fy(p, _, D, X, pe, le, Ae) {
- switch (D) {
- case S:
- if (p.byteLength != _.byteLength || p.byteOffset != _.byteOffset)
- return !1;
- (p = p.buffer), (_ = _.buffer);
- case k:
- return !(p.byteLength != _.byteLength || !X(new bo(p), new bo(_)));
- case f:
- case d:
- case y:
- return yu(+p, +_);
- case h:
- return p.name == _.name && p.message == _.message;
- case C:
- case N:
- return p == _ + '';
- case E:
- var Re = se;
- case x:
- var Fe = le & s;
- if ((Re || (Re = me), p.size != _.size && !Fe)) return !1;
- var Ke = Ae.get(p);
- if (Ke) return Ke == _;
- (le |= i), Ae.set(p, _);
- var pt = pu(Re(p), Re(_), X, pe, le, Ae);
- return Ae.delete(p), pt;
- case A:
- if (wa) return wa.call(p) == wa.call(_);
- }
- return !1;
- }
- function dy(p, _, D, X, pe, le) {
- var Ae = pe & s,
- Re = Li(p),
- Fe = Re.length,
- Ke = Li(_),
- pt = Ke.length;
- if (Fe != pt && !Ae) return !1;
- for (var yt = Fe; yt--; ) {
- var Ge = Re[yt];
- if (!(Ae ? Ge in _ : dt.call(_, Ge))) return !1;
- }
- var Ft = le.get(p);
- if (Ft && le.get(_)) return Ft == _;
- var Bt = !0;
- le.set(p, _), le.set(_, p);
- for (var $n = Ae; ++yt < Fe; ) {
- Ge = Re[yt];
- var mn = p[Ge],
- cr = _[Ge];
- if (X) var wu = Ae ? X(cr, mn, Ge, _, p, le) : X(mn, cr, Ge, p, _, le);
- if (!(wu === void 0 ? mn === cr || D(mn, cr, X, pe, le) : wu)) {
- Bt = !1;
- break;
- }
- $n || ($n = Ge == 'constructor');
- }
- if (Bt && !$n) {
- var Ni = p.constructor,
- ji = _.constructor;
- Ni != ji &&
- 'constructor' in p &&
- 'constructor' in _ &&
- !(
- typeof Ni == 'function' &&
- Ni instanceof Ni &&
- typeof ji == 'function' &&
- ji instanceof ji
- ) &&
- (Bt = !1);
- }
- return le.delete(p), le.delete(_), Bt;
- }
- function Mi(p, _) {
- var D = p.__data__;
- return my(_) ? D[typeof _ == 'string' ? 'string' : 'hash'] : D.map;
- }
- function py(p) {
- for (var _ = Li(p), D = _.length; D--; ) {
- var X = _[D],
- pe = p[X];
- _[D] = [X, pe, mu(pe)];
- }
- return _;
- }
- function Lr(p, _) {
- var D = oe(p, _);
- return ny(D) ? D : void 0;
- }
- var Pn = Xg;
- ((ya && Pn(new ya(new ArrayBuffer(1))) != S) ||
- (_o && Pn(new _o()) != E) ||
- (va && Pn(va.resolve()) != O) ||
- (ba && Pn(new ba()) != x) ||
- (_a && Pn(new _a()) != I)) &&
- (Pn = function (p) {
- var _ = un.call(p),
- D = _ == v ? p.constructor : void 0,
- X = D ? lr(D) : void 0;
- if (X)
- switch (X) {
- case wg:
- return S;
- case Eg:
- return E;
- case Sg:
- return O;
- case xg:
- return x;
- case Og:
- return I;
- }
- return _;
- });
- function hy(p, _, D) {
- _ = Fi(_, p) ? [_] : du(_);
- for (var X, pe = -1, Ae = _.length; ++pe < Ae; ) {
- var le = Bi(_[pe]);
- if (!(X = p != null && D(p, le))) break;
- p = p[le];
- }
- if (X) return X;
- var Ae = p ? p.length : 0;
- return !!Ae && Oa(Ae) && hu(le, Ae) && (hn(p) || vu(p));
- }
- function hu(p, _) {
- return (
- (_ = _ == null ? c : _),
- !!_ &&
- (typeof p == 'number' || M.test(p)) &&
- p > -1 &&
- p % 1 == 0 &&
- p < _
- );
- }
- function Fi(p, _) {
- if (hn(p)) return !1;
- var D = typeof p;
- return D == 'number' ||
- D == 'symbol' ||
- D == 'boolean' ||
- p == null ||
- Ca(p)
- ? !0
- : Se.test(p) || !he.test(p) || (_ != null && p in Object(_));
- }
- function my(p) {
- var _ = typeof p;
- return _ == 'string' || _ == 'number' || _ == 'symbol' || _ == 'boolean'
- ? p !== '__proto__'
- : p === null;
- }
- function gy(p) {
- return !!cn && cn in p;
- }
- function yy(p) {
- var _ = p && p.constructor,
- D = (typeof _ == 'function' && _.prototype) || ve;
- return p === D;
- }
- function mu(p) {
- return p === p && !Nr(p);
- }
- function gu(p, _) {
- return function (D) {
- return D == null ? !1 : D[p] === _ && (_ !== void 0 || p in Object(D));
- };
- }
- var vy = Sa(function (p) {
- p = _y(p);
- var _ = [];
- return (
- ye.test(p) && _.push(''),
- p.replace(xe, function (D, X, pe, le) {
- _.push(pe ? le.replace(qe, '$1') : X || D);
- }),
- _
- );
- });
- function Bi(p) {
- if (typeof p == 'string' || Ca(p)) return p;
- var _ = p + '';
- return _ == '0' && 1 / p == -a ? '-0' : _;
- }
- function lr(p) {
- if (p != null) {
- try {
- return vo.call(p);
- } catch (_) {}
- try {
- return p + '';
- } catch (_) {}
- }
- return '';
- }
- function Sa(p, _) {
- if (typeof p != 'function' || (_ && typeof _ != 'function'))
- throw new TypeError(r);
- var D = function () {
- var X = arguments,
- pe = _ ? _.apply(this, X) : X[0],
- le = D.cache;
- if (le.has(pe)) return le.get(pe);
- var Ae = p.apply(this, X);
- return (D.cache = le.set(pe, Ae)), Ae;
- };
- return (D.cache = new (Sa.Cache || dn)()), D;
- }
- Sa.Cache = dn;
- function yu(p, _) {
- return p === _ || (p !== p && _ !== _);
- }
- function vu(p) {
- return (
- by(p) &&
- dt.call(p, 'callee') &&
- (!vg.call(p, 'callee') || un.call(p) == l)
- );
- }
- var hn = Array.isArray;
- function bu(p) {
- return p != null && Oa(p.length) && !xa(p);
- }
- function by(p) {
- return Di(p) && bu(p);
- }
- function xa(p) {
- var _ = Nr(p) ? un.call(p) : '';
- return _ == g || _ == w;
- }
- function Oa(p) {
- return typeof p == 'number' && p > -1 && p % 1 == 0 && p <= c;
- }
- function Nr(p) {
- var _ = typeof p;
- return !!p && (_ == 'object' || _ == 'function');
- }
- function Di(p) {
- return !!p && typeof p == 'object';
- }
- function Ca(p) {
- return typeof p == 'symbol' || (Di(p) && un.call(p) == A);
- }
- var _u = j ? W(j) : ry;
- function _y(p) {
- return p == null ? '' : cy(p);
- }
- function wy(p, _, D) {
- var X = p == null ? void 0 : fu(p, _);
- return X === void 0 ? D : X;
- }
- function Ey(p, _) {
- return p != null && hy(p, _, Zg);
- }
- function Li(p) {
- return bu(p) ? Gg(p) : iy(p);
- }
- function Sy(p, _, D) {
- var X = hn(p) || _u(p);
- if (((_ = oy(_)), D == null))
- if (X || Nr(p)) {
- var pe = p.constructor;
- X ? (D = hn(p) ? new pe() : []) : (D = xa(pe) ? Yg(gg(p)) : {});
- } else D = {};
- return (
- (X ? Q : Qg)(p, function (le, Ae, Re) {
- return _(D, le, Ae, Re);
- }),
- D
- );
- }
- function xy(p) {
- return p;
- }
- function Oy(p) {
- return Fi(p) ? G(Bi(p)) : ly(p);
- }
- e.exports = Sy;
- })(js, js.exports);
- var uC = js.exports;
- const fC = X1,
- Sd = cC,
- dC = uC;
- var pC = function e(
- t,
- {
- cleanKeys: n = [],
- cleanValues: r = [],
- emptyArrays: o = !0,
- emptyObjects: i = !0,
- emptyStrings: s = !0,
- NaNValues: a = !1,
- nullValues: c = !0,
- undefinedValues: l = !0
- } = {}
- ) {
- return dC(t, (u, f, d) => {
- if (
- !n.includes(d) &&
- ((Array.isArray(f) || Sd(f)) &&
- (f = e(f, {
- NaNValues: a,
- cleanKeys: n,
- cleanValues: r,
- emptyArrays: o,
- emptyObjects: i,
- emptyStrings: s,
- nullValues: c,
- undefinedValues: l
- })),
- !r.includes(f) &&
- !(i && Sd(f) && fC(f)) &&
- !(o && Array.isArray(f) && !f.length) &&
- !(s && f === '') &&
- !(a && Number.isNaN(f)) &&
- !(c && f === null) &&
- !(l && f === void 0))
- ) {
- if (Array.isArray(u)) return u.push(f);
- u[d] = f;
- }
- });
- };
- const xd = Lc(pC),
- au = Q1({
- noAuthorization: !1,
- hideLoading: !0,
- timeout: 2e4,
- timeoutMessage: '请求超时'
- });
- let sg = !1,
- us;
- au.interceptors.request.use(
- (e, t) => {
- t.hideLoading ||
- (clearTimeout(us),
- fE({ message: '加载中...', forbidClick: !0, duration: 0 })),
- (sg = t.initRequest || !1);
- const n = Kc.get(Gc) || '',
- r = {};
- return (
- n &&
- ![
- '/edu-app/userlogin',
- '/edu-app/smsLogin',
- '/edu-app/open/sendSms'
- ].includes(e) &&
- !t.noAuthorization &&
- (r.Authorization = n),
- {
- url: e,
- options: {
- ...t,
- params: xd(t.params),
- data: xd(t.data),
- headers: { ...t.headers, ...r }
- }
- }
- );
- },
- { global: !1 }
- );
- au.interceptors.response.use(
- async e => {
- if (
- ((us = setTimeout(() => {
- dE();
- }, 100)),
- e.status > 299 || e.status < 200)
- ) {
- const n = '服务器错误,状态码' + e.status;
- throw (
- (clearTimeout(us),
- setTimeout(() => {
- Il(n);
- }, 60),
- new Error(n))
- );
- }
- const t = await e.clone().json();
- if (t.code !== 200 && t.errCode !== 0 && t.code !== 999) {
- let n = t.msg || t.message || '处理失败,请重试';
- sg && (t.code === 403 || t.code === 5e3 ? jl() : Pm()),
- t.code === 403 ||
- t.code === 5e3 ||
- (clearTimeout(us),
- setTimeout(() => {
- Il(n);
- }, 60));
- const r = Oi();
- throw (
- ((t.code === 5e3 || t.code === 403) &&
- ((n += ' authentication ' + t.code),
- r.isApp ? go({ api: 'login' }) : jl()),
- new Error(n))
- );
- }
- return e;
- },
- { global: !1 }
- );
- const el = {},
- hC = He({
- name: 'm-header',
- props: {
- title: { type: String, default: '' },
- isBack: { type: Boolean, default: !0 },
- border: { type: Boolean, default: !1 },
- isFixed: { type: Boolean, default: !0 },
- styleName: { type: Object, default: () => ({}) },
- background: { type: String, default: 'white' },
- color: { type: String, default: '#323233' },
- rightText: { type: String, default: '' }
- },
- emits: ['rightClick'],
- setup(e, { emit: t, slots: n }) {
- const r = Am(),
- o = Tm(),
- i = ct({ title: '', navBarHeight: Qe.navBarHeight }),
- s = () => {
- Oi().isApp ? go({ api: 'goBack' }) : o.back();
- },
- a = () => {
- t('rightClick');
- };
- return (
- kt(() => {
- (i.title = e.title || r.meta.title),
- (i.navBarHeight = Qe.navBarHeight);
- }),
- De(
- () => e.title,
- () => {
- i.title = e.title || r.meta.title;
- }
- ),
- () =>
- T(Be, null, [
- n.content
- ? T(
- 'div',
- {
- style: {
- paddingTop: `${i.navBarHeight}px`,
- background: e.background
- },
- class: el.headerSection
- },
- [n.content(i.navBarHeight)]
- )
- : T(Be, null, [
- T(
- 'div',
- {
- style: {
- minHeight: `calc(var(--van-nav-bar-height) + ${i.navBarHeight}px)`
- },
- class: el.headerSection
- },
- [
- T(
- RE,
- {
- title: i.title,
- class: [el.colHeader],
- style: {
- background: e.background,
- color: e.color,
- paddingTop: `${i.navBarHeight}px`
- },
- 'left-arrow': e.isBack,
- rightText: e.rightText,
- fixed: e.isFixed,
- zIndex: 2e3,
- border: e.border,
- onClickLeft: s,
- onClickRight: a
- },
- {
- right: () => (n.right && n.right()) || e.rightText,
- title: () => (n.title && n.title()) || i.title
- }
- )
- ]
- ),
- n.default ? n.default() : null
- ])
- ])
- );
- }
- }),
- mC = '_mEmpty_1tkx0_1',
- gC = '_button_1tkx0_16',
- Od = { mEmpty: mC, button: gC },
- yC = '' + new URL('network-427e6a08.png', import.meta.url).href,
- vC = '' + new URL('404-f6306b9c.png', import.meta.url).href,
- bC = '' + new URL('icon_empty-98fd6d3a.png', import.meta.url).href,
- _C = He({
- name: 'm-empty',
- props: {
- description: { type: String, default: '' },
- image: { type: String, default: 'icon_empty' },
- showButton: { type: Boolean, default: !1 },
- buttonText: { type: String, default: '返回' }
- },
- emits: ['click'],
- setup(e, { emit: t }) {
- const n = ct({ image: bC });
- return (
- kt(() => {
- e.image === 'network'
- ? (n.image = yC)
- : e.image === '404' && (n.image = vC);
- }),
- () =>
- T(
- EE,
- {
- style: { paddingTop: 0 },
- class: Od.mEmpty,
- image: n.image,
- description: e.description
- },
- {
- default: () => [
- e.showButton &&
- T(
- Is,
- {
- type: 'primary',
- plain: !0,
- round: !0,
- class: Od.button,
- onClick: () => t('click')
- },
- { default: () => [e.buttonText] }
- )
- ]
- }
- )
- );
- }
- }),
- wC = He({
- name: 'Auth-loayout',
- setup() {
- const e = Am(),
- t = Tm(),
- n = ct({ loading: !1 }),
- r = Me(() => e.meta.isExternal || !1),
- o = Me(
- () => Qe.user.status === 'login' || e.path === '/login' || r.value
- ),
- i = async () => {
- const { query: a } = e,
- c = a.userInfo || a.Authorization;
- if (
- (c && Kc.set(Gc, c),
- !n.loading &&
- (Qe.user.status === 'init' || Qe.user.status === 'error'))
- ) {
- n.loading = !0;
- try {
- const l = await au.get('/edu-app/user/getUserInfo', {
- initRequest: !0,
- requestType: 'form',
- hideLoading: !0
- });
- (l == null ? void 0 : l.code) === 200 && Ex(l.data);
- } catch (l) {
- const u = l.message;
- u.indexOf('5000') === -1 && u.indexOf('authentication') === -1
- ? Pm()
- : jl();
- }
- n.loading = !1;
- }
- },
- s = () => {
- if (Qe.user.status === 'logout')
- if (Oi().isApp) go({ api: 'login' });
- else
- try {
- const a = { returnUrl: e.path, ...e.query };
- e.meta.isRegister && (a.isRegister = e.meta.isRegister),
- t.replace({ path: '/login', query: a });
- } catch (a) {}
- };
- return (
- De(
- () => Qe.user.status,
- () => {
- Qe.user.status === 'logout' && s();
- }
- ),
- kt(() => {
- !r.value && i();
- }),
- () =>
- T(Be, null, [
- Qe.user.status === 'error'
- ? T('div', { class: wx.error }, [
- T(hC, null, null),
- T(
- _C,
- {
- image: 'network',
- description: '加载失败,请稍后重试',
- buttonText: '重新加载',
- showButton: !0,
- onClick: i
- },
- null
- )
- ])
- : o.value
- ? T(bm, null, null)
- : null
- ])
- );
- }
- }),
- EC = [
- {
- path: '/student-register',
- name: 'student-register',
- component: () =>
- ge(
- () => import('./index-fefdd7c2.js'),
- [
- './index-fefdd7c2.js',
- './icon-gift-94736468.js',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-e812dab6.js',
- './index-1d6b282a.css',
- './plyr-aeb30ba4.css',
- './index-a25e1c12.js',
- './index-c814200a.js',
- './Checker-65584c7b.js',
- './index-f21ea025.css',
- './student-register-store-530e204e.js',
- './index-7f161d6e.js',
- './index-a4ff0f6f.js',
- './index-730bdae4.js',
- './index-61a6f012.js',
- './index-c497da86.js',
- './index-b0472578.js',
- './index-e6baae88.js',
- './index-7c8aab9e.js',
- './index-27783e29.css',
- './index-6930c802.js',
- './index-abfd8ed1.css'
- ],
- import.meta.url
- ),
- meta: { title: '学生登记' }
- },
- {
- path: '/goods-list',
- component: () =>
- ge(
- () => import('./index-41250836.js'),
- [
- './index-41250836.js',
- './index-6896330c.js',
- './student-register-store-530e204e.js',
- './index-a4ff0f6f.js',
- './index-730bdae4.js',
- './index-c497da86.js',
- './Checker-65584c7b.js',
- './index-b0472578.js',
- './index-eb3870af.css',
- './index-6843dc62.js',
- './use-tab-status-c62c3a43.js',
- './index-19ac50e3.js',
- './index-7f161d6e.js',
- './index-d83ecade.css',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-7d3713b9.js',
- './index-6ed33f61.js',
- './index-c571072f.css'
- ],
- import.meta.url
- ),
- meta: { title: '商品列表' }
- },
- {
- path: '/goodsDetail',
- component: () =>
- ge(
- () => import('./index-aabc9773.js'),
- [
- './index-aabc9773.js',
- './index-6896330c.js',
- './student-register-store-530e204e.js',
- './index-a4ff0f6f.js',
- './index-730bdae4.js',
- './index-c497da86.js',
- './Checker-65584c7b.js',
- './index-b0472578.js',
- './index-eb3870af.css',
- './index-6ed33f61.js',
- './index-6930c802.js',
- './index-0da4dadf.css'
- ],
- import.meta.url
- ),
- meta: { title: '商品列表' }
- },
- {
- path: '/student-digital-tools',
- component: () =>
- ge(
- () => import('./index-66e33168.js'),
- [
- './index-66e33168.js',
- './index-e812dab6.js',
- './index-1d6b282a.css',
- './plyr-aeb30ba4.css',
- './index-94dc9c61.css'
- ],
- import.meta.url
- ),
- meta: { title: '数字化乐器学练工具' }
- },
- {
- path: '/courseware-play',
- component: () =>
- ge(
- () => import('./index-162c933f.js'),
- [
- './index-162c933f.js',
- './base-aba1ba3e.js',
- './index-927ee4eb.js',
- './fade-in-scale-up.cssr-d5127039.js',
- './index-00846096.css',
- './plyr-aeb30ba4.css'
- ],
- import.meta.url
- ),
- meta: { title: '课件播放' }
- },
- {
- path: '/payment-result',
- name: 'payment-result',
- component: () =>
- ge(
- () => import('./index-d8c8b170.js'),
- [
- './index-d8c8b170.js',
- './index-3f751ee0.js',
- './index-730bdae4.js',
- './index-6930c802.js',
- './index-a4ff0f6f.js',
- './index-b0472578.js',
- './index-d883681a.css'
- ],
- import.meta.url
- ),
- meta: { title: '支付详情' }
- },
- {
- path: '/payCenter',
- name: 'payCenter',
- component: () =>
- ge(
- () => import('./index-ea51660b.js'),
- ['./index-ea51660b.js', './index-39cc4081.css'],
- import.meta.url
- ),
- meta: { title: '支付' }
- },
- {
- path: '/payDefine',
- name: 'payDefine',
- component: () =>
- ge(
- () => import('./index-2e76e3b5.js'),
- [
- './index-2e76e3b5.js',
- './index-6930c802.js',
- './index-a4ff0f6f.js',
- './index-41816eda.css'
- ],
- import.meta.url
- ),
- meta: { title: '支付' }
- },
- {
- path: '/payResult',
- name: 'payResult',
- component: () =>
- ge(
- () => import('./index-ad1e6f6f.js'),
- [
- './index-ad1e6f6f.js',
- './index-6930c802.js',
- './index-a4ff0f6f.js',
- './index-8918521d.css'
- ],
- import.meta.url
- ),
- meta: { title: '支付' }
- },
- {
- path: '/preview-protocol',
- name: 'preview-protocol',
- component: () =>
- ge(
- () => import('./index-92c3752f.js'),
- ['./index-92c3752f.js', './index-376e8aea.css'],
- import.meta.url
- ),
- meta: { title: '音乐数字课堂注册协议' }
- },
- {
- path: '/privacy-protocol',
- name: 'privacy-protocol',
- component: () =>
- ge(
- () => import('./privacy-7fb52735.js'),
- ['./privacy-7fb52735.js', './privacy-dff82a6c.css'],
- import.meta.url
- ),
- meta: { title: '音乐数字课堂隐私政策' }
- },
- {
- path: '/download',
- name: 'download',
- component: () =>
- ge(
- () => import('./index-83227fe3.js'),
- [
- './index-83227fe3.js',
- './student-center-c423a8f7.js',
- './student-center-37aa8ec2.css',
- './index-730bdae4.js'
- ],
- import.meta.url
- ),
- meta: { title: '下载酷乐秀音乐数字课堂' }
- },
- {
- path: '/transfer',
- name: 'transfer',
- component: () =>
- ge(
- () => import('./transfer-3e4ca5f2.js'),
- [
- './transfer-3e4ca5f2.js',
- './student-center-c423a8f7.js',
- './student-center-37aa8ec2.css',
- './base-aba1ba3e.js',
- './index-730bdae4.js'
- ],
- import.meta.url
- ),
- meta: { title: '下载酷乐秀音乐数字课堂' }
- },
- {
- path: '/help-center',
- name: 'help-center',
- component: () =>
- ge(
- () => import('./index-56c2fe7c.js'),
- [
- './index-56c2fe7c.js',
- './index-19ac50e3.js',
- './index-7f161d6e.js',
- './index-a4ff0f6f.js',
- './index-d83ecade.css',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index.module-caa3742e.js',
- './index-07447a22.css',
- './index-6843dc62.js',
- './use-tab-status-c62c3a43.js'
- ],
- import.meta.url
- ),
- meta: { title: '帮助中心' }
- },
- {
- path: '/help-detail',
- name: 'help-detail',
- component: () =>
- ge(
- () => import('./detail-c5025c9b.js'),
- [
- './detail-c5025c9b.js',
- './information-detail.module-c7143413.js',
- './information-detail-f6438f31.css'
- ],
- import.meta.url
- ),
- meta: { title: '帮助中心详情' }
- },
- {
- path: '/information-list',
- name: 'information-list',
- component: () =>
- ge(
- () => import('./index-3a896c3c.js'),
- [
- './index-3a896c3c.js',
- './index-19ac50e3.js',
- './index-7f161d6e.js',
- './index-a4ff0f6f.js',
- './index-d83ecade.css',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index.module-caa3742e.js',
- './index-07447a22.css',
- './index-6843dc62.js',
- './use-tab-status-c62c3a43.js'
- ],
- import.meta.url
- ),
- meta: { title: '资讯列表' }
- },
- {
- path: '/information-detail',
- name: 'information-detail',
- component: () =>
- ge(
- () => import('./information-detail-7a22085d.js'),
- [
- './information-detail-7a22085d.js',
- './information-detail.module-c7143413.js',
- './information-detail-f6438f31.css'
- ],
- import.meta.url
- ),
- meta: { title: '资讯详情' }
- },
- {
- path: '/notice-detail',
- name: 'notice-detail',
- component: () =>
- ge(
- () => import('./notice-detail-2ddeb50f.js'),
- [
- './notice-detail-2ddeb50f.js',
- './information-detail.module-c7143413.js',
- './information-detail-f6438f31.css'
- ],
- import.meta.url
- ),
- meta: { title: '公告详情' }
- },
- {
- path: '/school-register',
- name: 'school-register',
- component: () =>
- ge(
- () => import('./index-8c9a6d7f.js'),
- [
- './index-8c9a6d7f.js',
- './index-064e7df8.js',
- './index-e6baae88.js',
- './index-61a6f012.js',
- './index-6930c802.js',
- './index-7f161d6e.js',
- './index-a4ff0f6f.js',
- './index-bc62bb12.css'
- ],
- import.meta.url
- ),
- meta: { title: '学校登记' }
- },
- {
- path: '/teaher-register',
- name: 'teaher-register',
- component: () =>
- ge(
- () => import('./index-1089f88b.js'),
- [
- './index-1089f88b.js',
- './index-61a6f012.js',
- './index-6930c802.js',
- './index-7f161d6e.js',
- './index-a4ff0f6f.js',
- './index-c814200a.js',
- './Checker-65584c7b.js',
- './index-064e7df8.js',
- './index-e6baae88.js',
- './index-d3dd259f.css'
- ],
- import.meta.url
- ),
- meta: { title: '老师注册' }
- },
- {
- path: '/guide',
- name: 'guide',
- component: () =>
- ge(
- () => import('./guide-da63f922.js'),
- ['./guide-da63f922.js', './guide-78aaaba8.css'],
- import.meta.url
- ),
- meta: { title: '投屏帮助' }
- },
- {
- path: '/:pathMatch(.*)*',
- component: () =>
- ge(() => import('./index-615a2d14.js'), [], import.meta.url),
- meta: { title: '404' }
- }
- ],
- SC = [
- {
- path: '/',
- component: wC,
- children: [
- {
- path: '/login',
- name: 'login',
- component: () =>
- ge(
- () => import('./login-68d83dee.js'),
- [
- './login-68d83dee.js',
- './index-29cade8a.js',
- './base-aba1ba3e.js',
- './index-6930c802.js',
- './index-7f161d6e.js',
- './index-a4ff0f6f.js',
- './login-5bf32bae.css'
- ],
- import.meta.url
- ),
- meta: { isRegister: !1 }
- },
- {
- path: '/order-detail',
- name: 'order-detail',
- component: () =>
- ge(
- () => import('./order-detail-508b9b8d.js'),
- [
- './order-detail-508b9b8d.js',
- './index-a4ff0f6f.js',
- './index-b0472578.js',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-c497da86.js',
- './Checker-65584c7b.js',
- './index-6930c802.js',
- './index-a25e1c12.js',
- './index-c814200a.js',
- './index-f21ea025.css',
- './index-29cade8a.js',
- './base-aba1ba3e.js',
- './index-61a6f012.js',
- './index-7f161d6e.js',
- './index-7c8aab9e.js',
- './index-27783e29.css',
- './index-730bdae4.js',
- './order-detail-6d5d832a.css'
- ],
- import.meta.url
- ),
- meta: { title: '订单详情' }
- },
- {
- path: '/shopAddress',
- name: 'shopAddress',
- component: () =>
- ge(
- () => import('./index-981c962d.js'),
- [
- './index-981c962d.js',
- './index.module-12f0c168.js',
- './index-01fd46df.css',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-6843dc62.js',
- './use-tab-status-c62c3a43.js',
- './index-a4ff0f6f.js',
- './index-b0472578.js'
- ],
- import.meta.url
- ),
- meta: { title: '支付详情' }
- },
- {
- path: '/addressOperation',
- name: 'addressOperation',
- component: () =>
- ge(
- () => import('./address-operation-599b98d4.js'),
- [
- './address-operation-599b98d4.js',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index.module-12f0c168.js',
- './index-01fd46df.css',
- './index-6930c802.js',
- './index-7f161d6e.js',
- './index-a4ff0f6f.js',
- './index-e6baae88.js'
- ],
- import.meta.url
- ),
- meta: { title: '收货地址' }
- },
- {
- path: '/member-center',
- name: 'member-center',
- component: () =>
- ge(
- () => import('./index-0664b0da.js'),
- [
- './index-0664b0da.js',
- './icon-student-36c056f8.js',
- './icon-gift-94736468.js',
- './index-7c8aab9e.js',
- './index-27783e29.css',
- './index-3f751ee0.js',
- './index-a4ff0f6f.js',
- './index-730bdae4.js',
- './index-5806243f.css'
- ],
- import.meta.url
- ),
- meta: { title: '数字化器乐学练工具' }
- },
- {
- path: '/exercise-record',
- name: 'exercise-record',
- component: () =>
- ge(
- () => import('./exercis-detail-5966badb.js'),
- [
- './exercis-detail-5966badb.js',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-e2a3ee9d.js',
- './index-e6baae88.js',
- './index-730bdae4.js',
- './index-8914beb8.css',
- './icon-student-36c056f8.js',
- './index-3f751ee0.js',
- './index-6930c802.js',
- './index-a4ff0f6f.js',
- './index-6843dc62.js',
- './use-tab-status-c62c3a43.js',
- './exercis-detail-5185b922.css'
- ],
- import.meta.url
- ),
- meta: { title: '练习统计' }
- },
- {
- path: '/knowledge-library',
- name: 'knowledge-library',
- component: () =>
- ge(
- () => import('./index-1251c393.js'),
- [
- './index-1251c393.js',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index.module-a86fa758.js',
- './index-bed1048f.css',
- './index-3f751ee0.js',
- './index-a4ff0f6f.js',
- './index-730bdae4.js'
- ],
- import.meta.url
- ),
- meta: { title: '知识库' }
- },
- {
- path: '/unit-detail',
- name: 'unit-detail',
- component: () =>
- ge(
- () => import('./unit-detail-25b0ac53.js'),
- [
- './unit-detail-25b0ac53.js',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index.module-a86fa758.js',
- './index-bed1048f.css',
- './index-3f751ee0.js'
- ],
- import.meta.url
- ),
- meta: { title: '知识库' }
- },
- {
- path: '/wroing-book',
- name: 'wroing-book',
- component: () =>
- ge(
- () => import('./index-44a06908.js'),
- [
- './index-44a06908.js',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-730bdae4.js',
- './index-627a875b.css'
- ],
- import.meta.url
- ),
- meta: { title: '错题本' }
- },
- {
- path: '/wroing-stat',
- name: 'wroing-stat',
- component: () =>
- ge(
- () => import('./index-0e1ad2dc.js'),
- [
- './index-0e1ad2dc.js',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-3f751ee0.js',
- './index-a1ff8db8.js',
- './index-730bdae4.js',
- './index-81318131.css'
- ],
- import.meta.url
- ),
- meta: { title: '错题统计' }
- },
- {
- path: '/ai-exam',
- name: 'ai-exam',
- component: () =>
- ge(
- () => import('./index-90b3c725.js'),
- [
- './index-90b3c725.js',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-c814200a.js',
- './Checker-65584c7b.js',
- './index-6930c802.js',
- './index-a4ff0f6f.js',
- './index-730bdae4.js',
- './index-53930355.css'
- ],
- import.meta.url
- ),
- meta: { title: '智能组卷' }
- },
- {
- path: '/practice-mode',
- name: 'practice-mode',
- component: () =>
- ge(
- () => import('./index-d05f8d30.js'),
- [
- './index-d05f8d30.js',
- './index-0de1db82.js',
- './index-730bdae4.js',
- './index-a1ff8db8.js',
- './index-b0472578.js',
- './index-a4ff0f6f.js',
- './index-6771b45f.css',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-b792454d.js',
- './index-d2268f7e.css',
- './index-3f751ee0.js',
- './index-6ed33f61.js',
- './index-362890b2.css'
- ],
- import.meta.url
- ),
- meta: { title: '练习模式' }
- },
- {
- path: '/error-question-mode',
- name: 'error-question-mode',
- component: () =>
- ge(
- () => import('./index-38a2d8c3.js'),
- [
- './index-38a2d8c3.js',
- './index-0de1db82.js',
- './index-730bdae4.js',
- './index-a1ff8db8.js',
- './index-b0472578.js',
- './index-a4ff0f6f.js',
- './index-6771b45f.css',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-b792454d.js',
- './index-d2268f7e.css',
- './index-3f751ee0.js',
- './index-6ed33f61.js',
- './index-293cfb71.css'
- ],
- import.meta.url
- ),
- meta: { title: '错题练习' }
- },
- {
- path: '/examination-mode',
- name: 'examination-mode',
- component: () =>
- ge(
- () => import('./index-0622dc54.js'),
- [
- './index-0622dc54.js',
- './index-0de1db82.js',
- './index-730bdae4.js',
- './index-a1ff8db8.js',
- './index-b0472578.js',
- './index-a4ff0f6f.js',
- './index-6771b45f.css',
- './index-10f99a75.js',
- './index-80afb136.css',
- './index-3f751ee0.js',
- './index-6ed33f61.js',
- './index-42d7b56a.css'
- ],
- import.meta.url
- ),
- meta: { title: '模拟测试' }
- },
- {
- path: '/courseware-list',
- name: 'courseware-list',
- component: () =>
- ge(
- () => import('./index-aa8d9716.js'),
- [
- './index-aa8d9716.js',
- './base-aba1ba3e.js',
- './fade-in-scale-up.cssr-d5127039.js',
- './index-7d3713b9.js',
- './use-tab-status-c62c3a43.js',
- './index-6ed33f61.js',
- './index-508cf0ee.css'
- ],
- import.meta.url
- ),
- meta: { title: '教材列表' }
- },
- {
- path: '/collection-record',
- name: 'collection-record',
- component: () =>
- ge(
- () => import('./index-bbd9556d.js'),
- [
- './index-bbd9556d.js',
- './api-a4f6cab9.js',
- './index-6930c802.js',
- './index-a4ff0f6f.js',
- './index-c497da86.js',
- './Checker-65584c7b.js',
- './index-7f161d6e.js',
- './index-e2a3ee9d.js',
- './index-e6baae88.js',
- './index-730bdae4.js',
- './index-8914beb8.css',
- './index-927ee4eb.js',
- './index-6843dc62.js',
- './use-tab-status-c62c3a43.js',
- './index-7d3713b9.js',
- './index-6ed33f61.js',
- './index-70dc569a.css'
- ],
- import.meta.url
- ),
- meta: { title: '领取记录' }
- },
- {
- path: '/collection-record-detail',
- name: 'collection-record-detail',
- component: () =>
- ge(
- () => import('./index-2c7cb536.js'),
- [
- './index-2c7cb536.js',
- './index-3f751ee0.js',
- './api-a4f6cab9.js',
- './index-730bdae4.js',
- './index-6930c802.js',
- './index-a4ff0f6f.js',
- './index-b0472578.js',
- './index-d2a0c110.css'
- ],
- import.meta.url
- ),
- meta: { title: '领取详情' }
- },
- {
- path: '/co-ai',
- component: () =>
- ge(
- () => import('./index-64d734ab.js'),
- [
- './index-64d734ab.js',
- './index-19ac50e3.js',
- './index-7f161d6e.js',
- './index-a4ff0f6f.js',
- './index-d83ecade.css',
- './index-5a6a8099.css'
- ],
- import.meta.url
- ),
- meta: { title: '小酷AI' }
- }
- ]
- },
- ...EC
- ],
- Us = px({
- history: pS(),
- routes: SC,
- scrollBehavior(e) {
- if (e.hash) return { el: e.hash, behavior: 'smooth' };
- }
- });
- Us.beforeEach((e, t, n) => {
- (document.title = e.meta.title || '学生端'), n();
- });
- let Cd = !1;
- Us.onError(e => {
- if (e instanceof Error) {
- const t = e.name.indexOf('chunk'),
- n = Us.currentRoute.value.fullPath;
- console.log(e),
- t &&
- !Cd &&
- ((Cd = !0),
- am({
- title: '更新提示',
- message: 'APP有更新请点击确定刷新页面?',
- confirmButtonColor: 'var(--van-primary)'
- }).then(() => {
- Oi().isApp
- ? go({ api: 'back' })
- : ((location.hash = n), window.location.reload());
- }));
- }
- });
- var xC = { exports: {} };
- (function (e, t) {
- (function (n, r) {
- e.exports = r(Rh);
- })(Kt, function (n) {
- function r(s) {
- return s && typeof s == 'object' && 'default' in s ? s : { default: s };
- }
- var o = r(n),
- i = {
- name: 'zh-cn',
- weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
- weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
- weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
- months:
- '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
- '_'
- ),
- monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
- '_'
- ),
- ordinal: function (s, a) {
- return a === 'W' ? s + '周' : s + '日';
- },
- weekStart: 1,
- yearStart: 4,
- formats: {
- LT: 'HH:mm',
- LTS: 'HH:mm:ss',
- L: 'YYYY/MM/DD',
- LL: 'YYYY年M月D日',
- LLL: 'YYYY年M月D日Ah点mm分',
- LLLL: 'YYYY年M月D日ddddAh点mm分',
- l: 'YYYY/M/D',
- ll: 'YYYY年M月D日',
- lll: 'YYYY年M月D日 HH:mm',
- llll: 'YYYY年M月D日dddd HH:mm'
- },
- relativeTime: {
- future: '%s内',
- past: '%s前',
- s: '几秒',
- m: '1 分钟',
- mm: '%d 分钟',
- h: '1 小时',
- hh: '%d 小时',
- d: '1 天',
- dd: '%d 天',
- M: '1 个月',
- MM: '%d 个月',
- y: '1 年',
- yy: '%d 年'
- },
- meridiem: function (s, a) {
- var c = 100 * s + a;
- return c < 600
- ? '凌晨'
- : c < 900
- ? '早上'
- : c < 1100
- ? '上午'
- : c < 1300
- ? '中午'
- : c < 1800
- ? '下午'
- : '晚上';
- }
- };
- return o.default.locale(i, null, !0), i;
- });
- })(xC);
- var OC = !1;
- function os(e, t, n) {
- return Array.isArray(e)
- ? ((e.length = Math.max(e.length, t)), e.splice(t, 1, n), n)
- : ((e[t] = n), n);
- }
- function tl(e, t) {
- if (Array.isArray(e)) {
- e.splice(t, 1);
- return;
- }
- delete e[t];
- }
- /*!
- * pinia v2.1.4
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */ let Jl;
- const gi = e => (Jl = e),
- ag = Symbol('pinia');
- function $r(e) {
- return (
- e &&
- typeof e == 'object' &&
- Object.prototype.toString.call(e) === '[object Object]' &&
- typeof e.toJSON != 'function'
- );
- }
- var on;
- (function (e) {
- (e.direct = 'direct'),
- (e.patchObject = 'patch object'),
- (e.patchFunction = 'patch function');
- })(on || (on = {}));
- const ma = typeof window < 'u',
- Hs = ma,
- Td = (() =>
- typeof window == 'object' && window.window === window
- ? window
- : typeof self == 'object' && self.self === self
- ? self
- : typeof global == 'object' && global.global === global
- ? global
- : typeof globalThis == 'object'
- ? globalThis
- : { HTMLElement: null })();
- function CC(e, { autoBom: t = !1 } = {}) {
- return t &&
- /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(
- e.type
- )
- ? new Blob([String.fromCharCode(65279), e], { type: e.type })
- : e;
- }
- function lu(e, t, n) {
- const r = new XMLHttpRequest();
- r.open('GET', e),
- (r.responseType = 'blob'),
- (r.onload = function () {
- ug(r.response, t, n);
- }),
- (r.onerror = function () {
- console.error('could not download file');
- }),
- r.send();
- }
- function lg(e) {
- const t = new XMLHttpRequest();
- t.open('HEAD', e, !1);
- try {
- t.send();
- } catch (n) {}
- return t.status >= 200 && t.status <= 299;
- }
- function fs(e) {
- try {
- e.dispatchEvent(new MouseEvent('click'));
- } catch (t) {
- const n = document.createEvent('MouseEvents');
- n.initMouseEvent(
- 'click',
- !0,
- !0,
- window,
- 0,
- 0,
- 0,
- 80,
- 20,
- !1,
- !1,
- !1,
- !1,
- 0,
- null
- ),
- e.dispatchEvent(n);
- }
- }
- const ds = typeof navigator == 'object' ? navigator : { userAgent: '' },
- cg = (() =>
- /Macintosh/.test(ds.userAgent) &&
- /AppleWebKit/.test(ds.userAgent) &&
- !/Safari/.test(ds.userAgent))(),
- ug = ma
- ? typeof HTMLAnchorElement < 'u' &&
- 'download' in HTMLAnchorElement.prototype &&
- !cg
- ? TC
- : 'msSaveOrOpenBlob' in ds
- ? AC
- : PC
- : () => {};
- function TC(e, t = 'download', n) {
- const r = document.createElement('a');
- (r.download = t),
- (r.rel = 'noopener'),
- typeof e == 'string'
- ? ((r.href = e),
- r.origin !== location.origin
- ? lg(r.href)
- ? lu(e, t, n)
- : ((r.target = '_blank'), fs(r))
- : fs(r))
- : ((r.href = URL.createObjectURL(e)),
- setTimeout(function () {
- URL.revokeObjectURL(r.href);
- }, 4e4),
- setTimeout(function () {
- fs(r);
- }, 0));
- }
- function AC(e, t = 'download', n) {
- if (typeof e == 'string')
- if (lg(e)) lu(e, t, n);
- else {
- const r = document.createElement('a');
- (r.href = e),
- (r.target = '_blank'),
- setTimeout(function () {
- fs(r);
- });
- }
- else navigator.msSaveOrOpenBlob(CC(e, n), t);
- }
- function PC(e, t, n, r) {
- if (
- ((r = r || open('', '_blank')),
- r && (r.document.title = r.document.body.innerText = 'downloading...'),
- typeof e == 'string')
- )
- return lu(e, t, n);
- const o = e.type === 'application/octet-stream',
- i = /constructor/i.test(String(Td.HTMLElement)) || 'safari' in Td,
- s = /CriOS\/[\d]+/.test(navigator.userAgent);
- if ((s || (o && i) || cg) && typeof FileReader < 'u') {
- const a = new FileReader();
- (a.onloadend = function () {
- let c = a.result;
- if (typeof c != 'string')
- throw ((r = null), new Error('Wrong reader.result type'));
- (c = s ? c : c.replace(/^data:[^;]*;/, 'data:attachment/file;')),
- r ? (r.location.href = c) : location.assign(c),
- (r = null);
- }),
- a.readAsDataURL(e);
- } else {
- const a = URL.createObjectURL(e);
- r ? r.location.assign(a) : (location.href = a),
- (r = null),
- setTimeout(function () {
- URL.revokeObjectURL(a);
- }, 4e4);
- }
- }
- function Xe(e, t) {
- const n = '🍍 ' + e;
- typeof __VUE_DEVTOOLS_TOAST__ == 'function'
- ? __VUE_DEVTOOLS_TOAST__(n, t)
- : t === 'error'
- ? console.error(n)
- : t === 'warn'
- ? console.warn(n)
- : console.log(n);
- }
- function cu(e) {
- return '_a' in e && 'install' in e;
- }
- function fg() {
- if (!('clipboard' in navigator))
- return Xe("Your browser doesn't support the Clipboard API", 'error'), !0;
- }
- function dg(e) {
- return e instanceof Error &&
- e.message.toLowerCase().includes('document is not focused')
- ? (Xe(
- 'You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',
- 'warn'
- ),
- !0)
- : !1;
- }
- async function $C(e) {
- if (!fg())
- try {
- await navigator.clipboard.writeText(JSON.stringify(e.state.value)),
- Xe('Global state copied to clipboard.');
- } catch (t) {
- if (dg(t)) return;
- Xe(
- 'Failed to serialize the state. Check the console for more details.',
- 'error'
- ),
- console.error(t);
- }
- }
- async function IC(e) {
- if (!fg())
- try {
- (e.state.value = JSON.parse(await navigator.clipboard.readText())),
- Xe('Global state pasted from clipboard.');
- } catch (t) {
- if (dg(t)) return;
- Xe(
- 'Failed to deserialize the state from clipboard. Check the console for more details.',
- 'error'
- ),
- console.error(t);
- }
- }
- async function RC(e) {
- try {
- ug(
- new Blob([JSON.stringify(e.state.value)], {
- type: 'text/plain;charset=utf-8'
- }),
- 'pinia-state.json'
- );
- } catch (t) {
- Xe(
- 'Failed to export the state as JSON. Check the console for more details.',
- 'error'
- ),
- console.error(t);
- }
- }
- let vn;
- function kC() {
- vn ||
- ((vn = document.createElement('input')),
- (vn.type = 'file'),
- (vn.accept = '.json'));
- function e() {
- return new Promise((t, n) => {
- (vn.onchange = async () => {
- const r = vn.files;
- if (!r) return t(null);
- const o = r.item(0);
- return t(o ? { text: await o.text(), file: o } : null);
- }),
- (vn.oncancel = () => t(null)),
- (vn.onerror = n),
- vn.click();
- });
- }
- return e;
- }
- async function MC(e) {
- try {
- const n = await (await kC())();
- if (!n) return;
- const { text: r, file: o } = n;
- (e.state.value = JSON.parse(r)),
- Xe(`Global state imported from "${o.name}".`);
- } catch (t) {
- Xe(
- 'Failed to export the state as JSON. Check the console for more details.',
- 'error'
- ),
- console.error(t);
- }
- }
- function qt(e) {
- return { _custom: { display: e } };
- }
- const pg = '🍍 Pinia (root)',
- Ql = '_root';
- function FC(e) {
- return cu(e) ? { id: Ql, label: pg } : { id: e.$id, label: e.$id };
- }
- function BC(e) {
- if (cu(e)) {
- const n = Array.from(e._s.keys()),
- r = e._s;
- return {
- state: n.map(i => ({ editable: !0, key: i, value: e.state.value[i] })),
- getters: n
- .filter(i => r.get(i)._getters)
- .map(i => {
- const s = r.get(i);
- return {
- editable: !1,
- key: i,
- value: s._getters.reduce((a, c) => ((a[c] = s[c]), a), {})
- };
- })
- };
- }
- const t = {
- state: Object.keys(e.$state).map(n => ({
- editable: !0,
- key: n,
- value: e.$state[n]
- }))
- };
- return (
- e._getters &&
- e._getters.length &&
- (t.getters = e._getters.map(n => ({
- editable: !1,
- key: n,
- value: e[n]
- }))),
- e._customProperties.size &&
- (t.customProperties = Array.from(e._customProperties).map(n => ({
- editable: !0,
- key: n,
- value: e[n]
- }))),
- t
- );
- }
- function DC(e) {
- return e
- ? Array.isArray(e)
- ? e.reduce(
- (t, n) => (
- t.keys.push(n.key),
- t.operations.push(n.type),
- (t.oldValue[n.key] = n.oldValue),
- (t.newValue[n.key] = n.newValue),
- t
- ),
- { oldValue: {}, keys: [], operations: [], newValue: {} }
- )
- : {
- operation: qt(e.type),
- key: qt(e.key),
- oldValue: e.oldValue,
- newValue: e.newValue
- }
- : {};
- }
- function LC(e) {
- switch (e) {
- case on.direct:
- return 'mutation';
- case on.patchFunction:
- return '$patch';
- case on.patchObject:
- return '$patch';
- default:
- return 'unknown';
- }
- }
- let Yr = !0;
- const ps = [],
- pr = 'pinia:mutations',
- it = 'pinia',
- { assign: NC } = Object,
- Vs = e => '🍍 ' + e;
- function jC(e, t) {
- qc(
- {
- id: 'dev.esm.pinia',
- label: 'Pinia 🍍',
- logo: 'https://pinia.vuejs.org/logo.svg',
- packageName: 'pinia',
- homepage: 'https://pinia.vuejs.org',
- componentStateTypes: ps,
- app: e
- },
- n => {
- typeof n.now != 'function' &&
- Xe(
- 'You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html.'
- ),
- n.addTimelineLayer({ id: pr, label: 'Pinia 🍍', color: 15064968 }),
- n.addInspector({
- id: it,
- label: 'Pinia 🍍',
- icon: 'storage',
- treeFilterPlaceholder: 'Search stores',
- actions: [
- {
- icon: 'content_copy',
- action: () => {
- $C(t);
- },
- tooltip: 'Serialize and copy the state'
- },
- {
- icon: 'content_paste',
- action: async () => {
- await IC(t), n.sendInspectorTree(it), n.sendInspectorState(it);
- },
- tooltip: 'Replace the state with the content of your clipboard'
- },
- {
- icon: 'save',
- action: () => {
- RC(t);
- },
- tooltip: 'Save the state as a JSON file'
- },
- {
- icon: 'folder_open',
- action: async () => {
- await MC(t), n.sendInspectorTree(it), n.sendInspectorState(it);
- },
- tooltip: 'Import the state from a JSON file'
- }
- ],
- nodeActions: [
- {
- icon: 'restore',
- tooltip: 'Reset the state (with "$reset")',
- action: r => {
- const o = t._s.get(r);
- o
- ? typeof o.$reset != 'function'
- ? Xe(
- `Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,
- 'warn'
- )
- : (o.$reset(), Xe(`Store "${r}" reset.`))
- : Xe(
- `Cannot reset "${r}" store because it wasn't found.`,
- 'warn'
- );
- }
- }
- ]
- }),
- n.on.inspectComponent((r, o) => {
- const i = r.componentInstance && r.componentInstance.proxy;
- if (i && i._pStores) {
- const s = r.componentInstance.proxy._pStores;
- Object.values(s).forEach(a => {
- r.instanceData.state.push({
- type: Vs(a.$id),
- key: 'state',
- editable: !0,
- value: a._isOptionsAPI
- ? {
- _custom: {
- value: de(a.$state),
- actions: [
- {
- icon: 'restore',
- tooltip: 'Reset the state of this store',
- action: () => a.$reset()
- }
- ]
- }
- }
- : Object.keys(a.$state).reduce(
- (c, l) => ((c[l] = a.$state[l]), c),
- {}
- )
- }),
- a._getters &&
- a._getters.length &&
- r.instanceData.state.push({
- type: Vs(a.$id),
- key: 'getters',
- editable: !1,
- value: a._getters.reduce((c, l) => {
- try {
- c[l] = a[l];
- } catch (u) {
- c[l] = u;
- }
- return c;
- }, {})
- });
- });
- }
- }),
- n.on.getInspectorTree(r => {
- if (r.app === e && r.inspectorId === it) {
- let o = [t];
- (o = o.concat(Array.from(t._s.values()))),
- (r.rootNodes = (
- r.filter
- ? o.filter(i =>
- '$id' in i
- ? i.$id.toLowerCase().includes(r.filter.toLowerCase())
- : pg.toLowerCase().includes(r.filter.toLowerCase())
- )
- : o
- ).map(FC));
- }
- }),
- n.on.getInspectorState(r => {
- if (r.app === e && r.inspectorId === it) {
- const o = r.nodeId === Ql ? t : t._s.get(r.nodeId);
- if (!o) return;
- o && (r.state = BC(o));
- }
- }),
- n.on.editInspectorState((r, o) => {
- if (r.app === e && r.inspectorId === it) {
- const i = r.nodeId === Ql ? t : t._s.get(r.nodeId);
- if (!i) return Xe(`store "${r.nodeId}" not found`, 'error');
- const { path: s } = r;
- cu(i)
- ? s.unshift('state')
- : (s.length !== 1 ||
- !i._customProperties.has(s[0]) ||
- s[0] in i.$state) &&
- s.unshift('$state'),
- (Yr = !1),
- r.set(i, s, r.state.value),
- (Yr = !0);
- }
- }),
- n.on.editComponentState(r => {
- if (r.type.startsWith('🍍')) {
- const o = r.type.replace(/^🍍\s*/, ''),
- i = t._s.get(o);
- if (!i) return Xe(`store "${o}" not found`, 'error');
- const { path: s } = r;
- if (s[0] !== 'state')
- return Xe(`Invalid path for store "${o}":
- ${s}
- Only state can be modified.`);
- (s[0] = '$state'), (Yr = !1), r.set(i, s, r.state.value), (Yr = !0);
- }
- });
- }
- );
- }
- function UC(e, t) {
- ps.includes(Vs(t.$id)) || ps.push(Vs(t.$id)),
- qc(
- {
- id: 'dev.esm.pinia',
- label: 'Pinia 🍍',
- logo: 'https://pinia.vuejs.org/logo.svg',
- packageName: 'pinia',
- homepage: 'https://pinia.vuejs.org',
- componentStateTypes: ps,
- app: e,
- settings: {
- logStoreChanges: {
- label: 'Notify about new/deleted stores',
- type: 'boolean',
- defaultValue: !0
- }
- }
- },
- n => {
- const r = typeof n.now == 'function' ? n.now.bind(n) : Date.now;
- t.$onAction(({ after: s, onError: a, name: c, args: l }) => {
- const u = hg++;
- n.addTimelineEvent({
- layerId: pr,
- event: {
- time: r(),
- title: '🛫 ' + c,
- subtitle: 'start',
- data: { store: qt(t.$id), action: qt(c), args: l },
- groupId: u
- }
- }),
- s(f => {
- (qn = void 0),
- n.addTimelineEvent({
- layerId: pr,
- event: {
- time: r(),
- title: '🛬 ' + c,
- subtitle: 'end',
- data: {
- store: qt(t.$id),
- action: qt(c),
- args: l,
- result: f
- },
- groupId: u
- }
- });
- }),
- a(f => {
- (qn = void 0),
- n.addTimelineEvent({
- layerId: pr,
- event: {
- time: r(),
- logType: 'error',
- title: '💥 ' + c,
- subtitle: 'end',
- data: {
- store: qt(t.$id),
- action: qt(c),
- args: l,
- error: f
- },
- groupId: u
- }
- });
- });
- }, !0),
- t._customProperties.forEach(s => {
- De(
- () => Ct(t[s]),
- (a, c) => {
- n.notifyComponentUpdate(),
- n.sendInspectorState(it),
- Yr &&
- n.addTimelineEvent({
- layerId: pr,
- event: {
- time: r(),
- title: 'Change',
- subtitle: s,
- data: { newValue: a, oldValue: c },
- groupId: qn
- }
- });
- },
- { deep: !0 }
- );
- }),
- t.$subscribe(
- ({ events: s, type: a }, c) => {
- if ((n.notifyComponentUpdate(), n.sendInspectorState(it), !Yr))
- return;
- const l = {
- time: r(),
- title: LC(a),
- data: NC({ store: qt(t.$id) }, DC(s)),
- groupId: qn
- };
- a === on.patchFunction
- ? (l.subtitle = '⤵️')
- : a === on.patchObject
- ? (l.subtitle = '🧩')
- : s && !Array.isArray(s) && (l.subtitle = s.type),
- s &&
- (l.data['rawEvent(s)'] = {
- _custom: {
- display: 'DebuggerEvent',
- type: 'object',
- tooltip: 'raw DebuggerEvent[]',
- value: s
- }
- }),
- n.addTimelineEvent({ layerId: pr, event: l });
- },
- { detached: !0, flush: 'sync' }
- );
- const o = t._hotUpdate;
- t._hotUpdate = nn(s => {
- o(s),
- n.addTimelineEvent({
- layerId: pr,
- event: {
- time: r(),
- title: '🔥 ' + t.$id,
- subtitle: 'HMR update',
- data: { store: qt(t.$id), info: qt('HMR update') }
- }
- }),
- n.notifyComponentUpdate(),
- n.sendInspectorTree(it),
- n.sendInspectorState(it);
- });
- const { $dispose: i } = t;
- (t.$dispose = () => {
- i(),
- n.notifyComponentUpdate(),
- n.sendInspectorTree(it),
- n.sendInspectorState(it),
- n.getSettings().logStoreChanges &&
- Xe(`Disposed "${t.$id}" store 🗑`);
- }),
- n.notifyComponentUpdate(),
- n.sendInspectorTree(it),
- n.sendInspectorState(it),
- n.getSettings().logStoreChanges &&
- Xe(`"${t.$id}" store installed 🆕`);
- }
- );
- }
- let hg = 0,
- qn;
- function Ad(e, t, n) {
- const r = t.reduce((o, i) => ((o[i] = de(e)[i]), o), {});
- for (const o in r)
- e[o] = function () {
- const i = hg,
- s = n
- ? new Proxy(e, {
- get(...c) {
- return (qn = i), Reflect.get(...c);
- },
- set(...c) {
- return (qn = i), Reflect.set(...c);
- }
- })
- : e;
- qn = i;
- const a = r[o].apply(s, arguments);
- return (qn = void 0), a;
- };
- }
- function HC({ app: e, store: t, options: n }) {
- if (t.$id.startsWith('__hot:')) return;
- (t._isOptionsAPI = !!n.state), Ad(t, Object.keys(n.actions), t._isOptionsAPI);
- const r = t._hotUpdate;
- (de(t)._hotUpdate = function (o) {
- r.apply(this, arguments),
- Ad(t, Object.keys(o._hmrPayload.actions), !!t._isOptionsAPI);
- }),
- UC(e, t);
- }
- function VC() {
- const e = oc(!0),
- t = e.run(() => Ee({}));
- let n = [],
- r = [];
- const o = nn({
- install(i) {
- gi(o),
- (o._a = i),
- i.provide(ag, o),
- (i.config.globalProperties.$pinia = o),
- Hs && jC(i, o),
- r.forEach(s => n.push(s)),
- (r = []);
- },
- use(i) {
- return !this._a && !OC ? r.push(i) : n.push(i), this;
- },
- _p: n,
- _a: null,
- _e: e,
- _s: new Map(),
- state: t
- });
- return Hs && typeof Proxy < 'u' && o.use(HC), o;
- }
- function mg(e, t) {
- for (const n in t) {
- const r = t[n];
- if (!(n in e)) continue;
- const o = e[n];
- $r(o) && $r(r) && !ke(r) && !Gt(r) ? (e[n] = mg(o, r)) : (e[n] = r);
- }
- return e;
- }
- const qC = () => {};
- function Pd(e, t, n, r = qC) {
- e.push(t);
- const o = () => {
- const i = e.indexOf(t);
- i > -1 && (e.splice(i, 1), r());
- };
- return !n && ic() && qd(o), o;
- }
- function zr(e, ...t) {
- e.slice().forEach(n => {
- n(...t);
- });
- }
- const zC = e => e();
- function Xl(e, t) {
- e instanceof Map && t instanceof Map && t.forEach((n, r) => e.set(r, n)),
- e instanceof Set && t instanceof Set && t.forEach(e.add, e);
- for (const n in t) {
- if (!t.hasOwnProperty(n)) continue;
- const r = t[n],
- o = e[n];
- $r(o) && $r(r) && e.hasOwnProperty(n) && !ke(r) && !Gt(r)
- ? (e[n] = Xl(o, r))
- : (e[n] = r);
- }
- return e;
- }
- const WC = Symbol('pinia:skipHydration');
- function KC(e) {
- return !$r(e) || !e.hasOwnProperty(WC);
- }
- const { assign: Lt } = Object;
- function $d(e) {
- return !!(ke(e) && e.effect);
- }
- function Id(e, t, n, r) {
- const { state: o, actions: i, getters: s } = t,
- a = n.state.value[e];
- let c;
- function l() {
- !a && !r && (n.state.value[e] = o ? o() : {});
- const u = il(r ? Ee(o ? o() : {}).value : n.state.value[e]);
- return Lt(
- u,
- i,
- Object.keys(s || {}).reduce(
- (f, d) => (
- d in u &&
- console.warn(
- `[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${d}" in store "${e}".`
- ),
- (f[d] = nn(
- Me(() => {
- gi(n);
- const h = n._s.get(e);
- return s[d].call(h, h);
- })
- )),
- f
- ),
- {}
- )
- );
- }
- return (c = Zl(e, l, t, n, r, !0)), c;
- }
- function Zl(e, t, n = {}, r, o, i) {
- let s;
- const a = Lt({ actions: {} }, n);
- if (!r._e.active) throw new Error('Pinia destroyed');
- const c = { deep: !0 };
- c.onTrigger = S => {
- l
- ? (h = S)
- : l == !1 &&
- !A._hotUpdating &&
- (Array.isArray(h)
- ? h.push(S)
- : console.error(
- '🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug.'
- ));
- };
- let l,
- u,
- f = [],
- d = [],
- h;
- const g = r.state.value[e];
- !i && !g && !o && (r.state.value[e] = {});
- const w = Ee({});
- let E;
- function y(S) {
- let R;
- (l = u = !1),
- (h = []),
- typeof S == 'function'
- ? (S(r.state.value[e]),
- (R = { type: on.patchFunction, storeId: e, events: h }))
- : (Xl(r.state.value[e], S),
- (R = { type: on.patchObject, payload: S, storeId: e, events: h }));
- const B = (E = Symbol());
- St().then(() => {
- E === B && (l = !0);
- }),
- (u = !0),
- zr(f, R, r.state.value[e]);
- }
- const v = i
- ? function () {
- const { state: R } = n,
- B = R ? R() : {};
- this.$patch(F => {
- Lt(F, B);
- });
- }
- : () => {
- throw new Error(
- `🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`
- );
- };
- function O() {
- s.stop(), (f = []), (d = []), r._s.delete(e);
- }
- function C(S, R) {
- return function () {
- gi(r);
- const B = Array.from(arguments),
- F = [],
- $ = [];
- function V(K) {
- F.push(K);
- }
- function Y(K) {
- $.push(K);
- }
- zr(d, { args: B, name: S, store: A, after: V, onError: Y });
- let H;
- try {
- H = R.apply(this && this.$id === e ? this : A, B);
- } catch (K) {
- throw (zr($, K), K);
- }
- return H instanceof Promise
- ? H.then(K => (zr(F, K), K)).catch(K => (zr($, K), Promise.reject(K)))
- : (zr(F, H), H);
- };
- }
- const x = nn({ actions: {}, getters: {}, state: [], hotState: w }),
- N = {
- _p: r,
- $id: e,
- $onAction: Pd.bind(null, d),
- $patch: y,
- $reset: v,
- $subscribe(S, R = {}) {
- const B = Pd(f, S, R.detached, () => F()),
- F = s.run(() =>
- De(
- () => r.state.value[e],
- $ => {
- (R.flush === 'sync' ? u : l) &&
- S({ storeId: e, type: on.direct, events: h }, $);
- },
- Lt({}, c, R)
- )
- );
- return B;
- },
- $dispose: O
- },
- A = ct(Lt({ _hmrPayload: x, _customProperties: nn(new Set()) }, N));
- r._s.set(e, A);
- const I = (r._a && r._a.runWithContext) || zC,
- k = r._e.run(() => ((s = oc()), I(() => s.run(t))));
- for (const S in k) {
- const R = k[S];
- if ((ke(R) && !$d(R)) || Gt(R))
- o
- ? os(w.value, S, is(k, S))
- : i ||
- (g && KC(R) && (ke(R) ? (R.value = g[S]) : Xl(R, g[S])),
- (r.state.value[e][S] = R)),
- x.state.push(S);
- else if (typeof R == 'function') {
- const B = o ? R : C(S, R);
- (k[S] = B), (x.actions[S] = R), (a.actions[S] = R);
- } else
- $d(R) &&
- ((x.getters[S] = i ? n.getters[S] : R),
- ma && (k._getters || (k._getters = nn([]))).push(S));
- }
- if (
- (Lt(A, k),
- Lt(de(A), k),
- Object.defineProperty(A, '$state', {
- get: () => (o ? w.value : r.state.value[e]),
- set: S => {
- if (o) throw new Error('cannot set hotState');
- y(R => {
- Lt(R, S);
- });
- }
- }),
- (A._hotUpdate = nn(S => {
- (A._hotUpdating = !0),
- S._hmrPayload.state.forEach(R => {
- if (R in A.$state) {
- const B = S.$state[R],
- F = A.$state[R];
- typeof B == 'object' && $r(B) && $r(F)
- ? mg(B, F)
- : (S.$state[R] = F);
- }
- os(A, R, is(S.$state, R));
- }),
- Object.keys(A.$state).forEach(R => {
- R in S.$state || tl(A, R);
- }),
- (l = !1),
- (u = !1),
- (r.state.value[e] = is(S._hmrPayload, 'hotState')),
- (u = !0),
- St().then(() => {
- l = !0;
- });
- for (const R in S._hmrPayload.actions) {
- const B = S[R];
- os(A, R, C(R, B));
- }
- for (const R in S._hmrPayload.getters) {
- const B = S._hmrPayload.getters[R],
- F = i ? Me(() => (gi(r), B.call(A, A))) : B;
- os(A, R, F);
- }
- Object.keys(A._hmrPayload.getters).forEach(R => {
- R in S._hmrPayload.getters || tl(A, R);
- }),
- Object.keys(A._hmrPayload.actions).forEach(R => {
- R in S._hmrPayload.actions || tl(A, R);
- }),
- (A._hmrPayload = S._hmrPayload),
- (A._getters = S._getters),
- (A._hotUpdating = !1);
- })),
- Hs)
- ) {
- const S = { writable: !0, configurable: !0, enumerable: !1 };
- ['_p', '_hmrPayload', '_getters', '_customProperties'].forEach(R => {
- Object.defineProperty(A, R, Lt({ value: A[R] }, S));
- });
- }
- return (
- r._p.forEach(S => {
- if (Hs) {
- const R = s.run(() => S({ store: A, app: r._a, pinia: r, options: a }));
- Object.keys(R || {}).forEach(B => A._customProperties.add(B)), Lt(A, R);
- } else
- Lt(
- A,
- s.run(() => S({ store: A, app: r._a, pinia: r, options: a }))
- );
- }),
- A.$state &&
- typeof A.$state == 'object' &&
- typeof A.$state.constructor == 'function' &&
- !A.$state.constructor.toString().includes('[native code]') &&
- console.warn(`[🍍]: The "state" must be a plain object. It cannot be
- state: () => new MyClass()
- Found in store "${A.$id}".`),
- g && i && n.hydrate && n.hydrate(A.$state, g),
- (l = !0),
- (u = !0),
- A
- );
- }
- function NT(e, t, n) {
- let r, o;
- const i = typeof t == 'function';
- if (typeof e == 'string') (r = e), (o = i ? n : t);
- else if (((o = e), (r = e.id), typeof r != 'string'))
- throw new Error(
- '[🍍]: "defineStore()" must be passed a store id as its first argument.'
- );
- function s(a, c) {
- const l = Dp();
- if (((a = a || (l ? rt(ag, null) : null)), a && gi(a), !Jl))
- throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
- const pinia = createPinia()
- app.use(pinia)
- This will fail in production.`);
- (a = Jl), a._s.has(r) || (i ? Zl(r, t, o, a) : Id(r, o, a), (s._pinia = a));
- const u = a._s.get(r);
- if (c) {
- const f = '__hot:' + r,
- d = i ? Zl(f, t, o, a, !0) : Id(f, Lt({}, o), a, !0);
- c._hotUpdate(d), delete a.state.value[f], a._s.delete(f);
- }
- if (ma) {
- const f = Ze();
- if (f && f.proxy && !c) {
- const d = f.proxy,
- h = '_pStores' in d ? d._pStores : (d._pStores = {});
- h[r] = u;
- }
- }
- return u;
- }
- return (s.$id = r), s;
- }
- const GC = VC();
- function YC(e) {
- e.use(GC);
- }
- gx({ api: 'getToken' }).then(e => {
- const t = e.content;
- t != null && t.accessToken && Kc.set(Gc, t.tokenType + ' ' + t.accessToken);
- });
- go({ api: 'getNavHeight' }, e => {
- const { content: t } = e,
- n = t.dpi || 2;
- if (t.navHeight) {
- const r = t.navHeight / n;
- console.log(r, 'navHeight'), (Qe.navBarHeight = r);
- }
- });
- const ga = Dc(Cw);
- ga.use(HE);
- YC(ga);
- $w.locale('zh-ch');
- ga.use(Us);
- ga.mount('#app');
- export {
- zh as $,
- Ic as A,
- f0 as B,
- Is as C,
- au as D,
- Il as E,
- Be as F,
- Kc as G,
- $l as H,
- fa as I,
- Gc as J,
- Ex as K,
- Xh as L,
- Qe as M,
- tT as N,
- Us as O,
- oT as P,
- RT as Q,
- Oi as R,
- hC as S,
- xi as T,
- Am as U,
- em as V,
- rr as W,
- Hc as X,
- Nc as Y,
- Ti as Z,
- ET as _,
- QC as __vite_legacy_guard,
- T as a,
- gf as a$,
- _C as a0,
- an as a1,
- gT as a2,
- ui as a3,
- go as a4,
- $w as a5,
- nT as a6,
- Nw as a7,
- CT as a8,
- At as a9,
- OT as aA,
- u0 as aB,
- Ue as aC,
- Ze as aD,
- Ab as aE,
- mo as aF,
- Si as aG,
- po as aH,
- rt as aI,
- Op as aJ,
- is as aK,
- Sr as aL,
- Ut as aM,
- er as aN,
- yi as aO,
- wT as aP,
- iT as aQ,
- sT as aR,
- hT as aS,
- Ww as aT,
- d0 as aU,
- Bh as aV,
- uw as aW,
- fE as aX,
- DT as aY,
- kT as aZ,
- Mw as a_,
- Bw as aa,
- Zh as ab,
- fT as ac,
- $s as ad,
- Fh as ae,
- nn as af,
- Fr as ag,
- dT as ah,
- Vc as ai,
- cT as aj,
- H0 as ak,
- Lc as al,
- Kt as am,
- Tw as an,
- ZC as ao,
- FT as ap,
- gx as aq,
- BT as ar,
- l0 as as,
- Jh as at,
- Qh as au,
- Dr as av,
- w0 as aw,
- vp as ax,
- ho as ay,
- ua as az,
- uT as b,
- Cp as b0,
- _T as b1,
- bT as b2,
- Nh as b3,
- jh as b4,
- lT as b5,
- tE as b6,
- Kw as b7,
- yT as b8,
- y0 as b9,
- eT as bA,
- LT as bB,
- Ob as bC,
- Lh as bD,
- Ci as bE,
- Iw as bF,
- Ps as bG,
- zw as bH,
- AT as bI,
- aT as bJ,
- ra as bK,
- TT as bL,
- RE as bM,
- vi as ba,
- XC as bb,
- _f as bc,
- PT as bd,
- rm as be,
- nm as bf,
- Kh as bg,
- xf as bh,
- IT as bi,
- mT as bj,
- Uh as bk,
- ST as bl,
- vT as bm,
- xT as bn,
- NT as bo,
- Sx as bp,
- oa as bq,
- b_ as br,
- il as bs,
- rT as bt,
- dE as bu,
- lc as bv,
- ic as bw,
- qd as bx,
- Ct as by,
- ke as bz,
- Mt as c,
- He as d,
- Me as e,
- pT as f,
- Ec as g,
- ir as h,
- Hh as i,
- Kp as j,
- Ht as k,
- c0 as l,
- nt as m,
- ut as n,
- Nt as o,
- Uc as p,
- Tm as q,
- Ee as r,
- Yw as s,
- jt as t,
- q0 as u,
- ca as v,
- De as w,
- ct as x,
- kt as y,
- St as z
- };
|