vendor.js 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  68. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  87. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook, params) {
  243. return function (data) {
  244. return hook(data, params) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data, params) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook, params));
  256. } else {
  257. var res = hook(data, params);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res, options).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  330. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  331. });
  332. } else {
  333. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  334. }
  335. }
  336. return api.apply(void 0, [options].concat(params));
  337. }
  338. var promiseInterceptor = {
  339. returnValue: function returnValue(res) {
  340. if (!isPromise(res)) {
  341. return res;
  342. }
  343. return new Promise(function (resolve, reject) {
  344. res.then(function (res) {
  345. if (res[0]) {
  346. reject(res[0]);
  347. } else {
  348. resolve(res[1]);
  349. }
  350. });
  351. });
  352. }
  353. };
  354. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  355. var CONTEXT_API_RE = /^create|Manager$/;
  356. // Context例外情况
  357. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  358. // 同步例外情况
  359. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  360. var CALLBACK_API_RE = /^on|^off/;
  361. function isContextApi(name) {
  362. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  363. }
  364. function isSyncApi(name) {
  365. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  366. }
  367. function isCallbackApi(name) {
  368. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  369. }
  370. function handlePromise(promise) {
  371. return promise.then(function (data) {
  372. return [null, data];
  373. }).catch(function (err) {
  374. return [err];
  375. });
  376. }
  377. function shouldPromise(name) {
  378. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  379. return false;
  380. }
  381. return true;
  382. }
  383. /* eslint-disable no-extend-native */
  384. if (!Promise.prototype.finally) {
  385. Promise.prototype.finally = function (callback) {
  386. var promise = this.constructor;
  387. return this.then(function (value) {
  388. return promise.resolve(callback()).then(function () {
  389. return value;
  390. });
  391. }, function (reason) {
  392. return promise.resolve(callback()).then(function () {
  393. throw reason;
  394. });
  395. });
  396. };
  397. }
  398. function promisify(name, api) {
  399. if (!shouldPromise(name) || !isFn(api)) {
  400. return api;
  401. }
  402. return function promiseApi() {
  403. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  404. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  405. params[_key2 - 1] = arguments[_key2];
  406. }
  407. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  408. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  409. }
  410. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  411. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  412. success: resolve,
  413. fail: reject
  414. })].concat(params));
  415. })));
  416. };
  417. }
  418. var EPS = 1e-4;
  419. var BASE_DEVICE_WIDTH = 750;
  420. var isIOS = false;
  421. var deviceWidth = 0;
  422. var deviceDPR = 0;
  423. function checkDeviceWidth() {
  424. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  425. platform = _wx$getSystemInfoSync.platform,
  426. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  427. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  428. deviceWidth = windowWidth;
  429. deviceDPR = pixelRatio;
  430. isIOS = platform === 'ios';
  431. }
  432. function upx2px(number, newDeviceWidth) {
  433. if (deviceWidth === 0) {
  434. checkDeviceWidth();
  435. }
  436. number = Number(number);
  437. if (number === 0) {
  438. return 0;
  439. }
  440. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  441. if (result < 0) {
  442. result = -result;
  443. }
  444. result = Math.floor(result + EPS);
  445. if (result === 0) {
  446. if (deviceDPR === 1 || !isIOS) {
  447. result = 1;
  448. } else {
  449. result = 0.5;
  450. }
  451. }
  452. return number < 0 ? -result : result;
  453. }
  454. var LOCALE_ZH_HANS = 'zh-Hans';
  455. var LOCALE_ZH_HANT = 'zh-Hant';
  456. var LOCALE_EN = 'en';
  457. var LOCALE_FR = 'fr';
  458. var LOCALE_ES = 'es';
  459. var messages = {};
  460. var locale;
  461. {
  462. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  463. }
  464. function initI18nMessages() {
  465. if (!isEnableLocale()) {
  466. return;
  467. }
  468. var localeKeys = Object.keys(__uniConfig.locales);
  469. if (localeKeys.length) {
  470. localeKeys.forEach(function (locale) {
  471. var curMessages = messages[locale];
  472. var userMessages = __uniConfig.locales[locale];
  473. if (curMessages) {
  474. Object.assign(curMessages, userMessages);
  475. } else {
  476. messages[locale] = userMessages;
  477. }
  478. });
  479. }
  480. }
  481. initI18nMessages();
  482. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  483. var t = i18n.t;
  484. var i18nMixin = i18n.mixin = {
  485. beforeCreate: function beforeCreate() {
  486. var _this = this;
  487. var unwatch = i18n.i18n.watchLocale(function () {
  488. _this.$forceUpdate();
  489. });
  490. this.$once('hook:beforeDestroy', function () {
  491. unwatch();
  492. });
  493. },
  494. methods: {
  495. $$t: function $$t(key, values) {
  496. return t(key, values);
  497. }
  498. }
  499. };
  500. var setLocale = i18n.setLocale;
  501. var getLocale = i18n.getLocale;
  502. function initAppLocale(Vue, appVm, locale) {
  503. var state = Vue.observable({
  504. locale: locale || i18n.getLocale()
  505. });
  506. var localeWatchers = [];
  507. appVm.$watchLocale = function (fn) {
  508. localeWatchers.push(fn);
  509. };
  510. Object.defineProperty(appVm, '$locale', {
  511. get: function get() {
  512. return state.locale;
  513. },
  514. set: function set(v) {
  515. state.locale = v;
  516. localeWatchers.forEach(function (watch) {
  517. return watch(v);
  518. });
  519. }
  520. });
  521. }
  522. function isEnableLocale() {
  523. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  524. }
  525. function include(str, parts) {
  526. return !!parts.find(function (part) {
  527. return str.indexOf(part) !== -1;
  528. });
  529. }
  530. function startsWith(str, parts) {
  531. return parts.find(function (part) {
  532. return str.indexOf(part) === 0;
  533. });
  534. }
  535. function normalizeLocale(locale, messages) {
  536. if (!locale) {
  537. return;
  538. }
  539. locale = locale.trim().replace(/_/g, '-');
  540. if (messages && messages[locale]) {
  541. return locale;
  542. }
  543. locale = locale.toLowerCase();
  544. if (locale === 'chinese') {
  545. // 支付宝
  546. return LOCALE_ZH_HANS;
  547. }
  548. if (locale.indexOf('zh') === 0) {
  549. if (locale.indexOf('-hans') > -1) {
  550. return LOCALE_ZH_HANS;
  551. }
  552. if (locale.indexOf('-hant') > -1) {
  553. return LOCALE_ZH_HANT;
  554. }
  555. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  556. return LOCALE_ZH_HANT;
  557. }
  558. return LOCALE_ZH_HANS;
  559. }
  560. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  561. if (lang) {
  562. return lang;
  563. }
  564. }
  565. // export function initI18n() {
  566. // const localeKeys = Object.keys(__uniConfig.locales || {})
  567. // if (localeKeys.length) {
  568. // localeKeys.forEach((locale) =>
  569. // i18n.add(locale, __uniConfig.locales[locale])
  570. // )
  571. // }
  572. // }
  573. function getLocale$1() {
  574. // 优先使用 $locale
  575. if (isFn(getApp)) {
  576. var app = getApp({
  577. allowDefault: true
  578. });
  579. if (app && app.$vm) {
  580. return app.$vm.$locale;
  581. }
  582. }
  583. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  584. }
  585. function setLocale$1(locale) {
  586. var app = isFn(getApp) ? getApp() : false;
  587. if (!app) {
  588. return false;
  589. }
  590. var oldLocale = app.$vm.$locale;
  591. if (oldLocale !== locale) {
  592. app.$vm.$locale = locale;
  593. onLocaleChangeCallbacks.forEach(function (fn) {
  594. return fn({
  595. locale: locale
  596. });
  597. });
  598. return true;
  599. }
  600. return false;
  601. }
  602. var onLocaleChangeCallbacks = [];
  603. function onLocaleChange(fn) {
  604. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  605. onLocaleChangeCallbacks.push(fn);
  606. }
  607. }
  608. if (typeof global !== 'undefined') {
  609. global.getLocale = getLocale$1;
  610. }
  611. var interceptors = {
  612. promiseInterceptor: promiseInterceptor
  613. };
  614. var baseApi = /*#__PURE__*/Object.freeze({
  615. __proto__: null,
  616. upx2px: upx2px,
  617. getLocale: getLocale$1,
  618. setLocale: setLocale$1,
  619. onLocaleChange: onLocaleChange,
  620. addInterceptor: addInterceptor,
  621. removeInterceptor: removeInterceptor,
  622. interceptors: interceptors
  623. });
  624. function findExistsPageIndex(url) {
  625. var pages = getCurrentPages();
  626. var len = pages.length;
  627. while (len--) {
  628. var page = pages[len];
  629. if (page.$page && page.$page.fullPath === url) {
  630. return len;
  631. }
  632. }
  633. return -1;
  634. }
  635. var redirectTo = {
  636. name: function name(fromArgs) {
  637. if (fromArgs.exists === 'back' && fromArgs.delta) {
  638. return 'navigateBack';
  639. }
  640. return 'redirectTo';
  641. },
  642. args: function args(fromArgs) {
  643. if (fromArgs.exists === 'back' && fromArgs.url) {
  644. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  645. if (existsPageIndex !== -1) {
  646. var delta = getCurrentPages().length - 1 - existsPageIndex;
  647. if (delta > 0) {
  648. fromArgs.delta = delta;
  649. }
  650. }
  651. }
  652. }
  653. };
  654. var previewImage = {
  655. args: function args(fromArgs) {
  656. var currentIndex = parseInt(fromArgs.current);
  657. if (isNaN(currentIndex)) {
  658. return;
  659. }
  660. var urls = fromArgs.urls;
  661. if (!Array.isArray(urls)) {
  662. return;
  663. }
  664. var len = urls.length;
  665. if (!len) {
  666. return;
  667. }
  668. if (currentIndex < 0) {
  669. currentIndex = 0;
  670. } else if (currentIndex >= len) {
  671. currentIndex = len - 1;
  672. }
  673. if (currentIndex > 0) {
  674. fromArgs.current = urls[currentIndex];
  675. fromArgs.urls = urls.filter(function (item, index) {
  676. return index < currentIndex ? item !== urls[currentIndex] : true;
  677. });
  678. } else {
  679. fromArgs.current = urls[0];
  680. }
  681. return {
  682. indicator: false,
  683. loop: false
  684. };
  685. }
  686. };
  687. var UUID_KEY = '__DC_STAT_UUID';
  688. var deviceId;
  689. function useDeviceId(result) {
  690. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  691. if (!deviceId) {
  692. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  693. wx.setStorage({
  694. key: UUID_KEY,
  695. data: deviceId
  696. });
  697. }
  698. result.deviceId = deviceId;
  699. }
  700. function addSafeAreaInsets(result) {
  701. if (result.safeArea) {
  702. var safeArea = result.safeArea;
  703. result.safeAreaInsets = {
  704. top: safeArea.top,
  705. left: safeArea.left,
  706. right: result.windowWidth - safeArea.right,
  707. bottom: result.screenHeight - safeArea.bottom
  708. };
  709. }
  710. }
  711. function populateParameters(result) {
  712. var _result$brand = result.brand,
  713. brand = _result$brand === void 0 ? '' : _result$brand,
  714. _result$model = result.model,
  715. model = _result$model === void 0 ? '' : _result$model,
  716. _result$system = result.system,
  717. system = _result$system === void 0 ? '' : _result$system,
  718. _result$language = result.language,
  719. language = _result$language === void 0 ? '' : _result$language,
  720. theme = result.theme,
  721. version = result.version,
  722. platform = result.platform,
  723. fontSizeSetting = result.fontSizeSetting,
  724. SDKVersion = result.SDKVersion,
  725. pixelRatio = result.pixelRatio,
  726. deviceOrientation = result.deviceOrientation;
  727. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  728. var extraParam = {};
  729. // osName osVersion
  730. var osName = '';
  731. var osVersion = '';
  732. {
  733. osName = system.split(' ')[0] || '';
  734. osVersion = system.split(' ')[1] || '';
  735. }
  736. var hostVersion = version;
  737. // deviceType
  738. var deviceType = getGetDeviceType(result, model);
  739. // deviceModel
  740. var deviceBrand = getDeviceBrand(brand);
  741. // hostName
  742. var _hostName = getHostName(result);
  743. // deviceOrientation
  744. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  745. // devicePixelRatio
  746. var _devicePixelRatio = pixelRatio;
  747. // SDKVersion
  748. var _SDKVersion = SDKVersion;
  749. // hostLanguage
  750. var hostLanguage = language.replace(/_/g, '-');
  751. // wx.getAccountInfoSync
  752. var parameters = {
  753. appId: "__UNI__56B53F4",
  754. appName: "xcx",
  755. appVersion: "1.0.0",
  756. appVersionCode: "100",
  757. appLanguage: getAppLanguage(hostLanguage),
  758. uniCompileVersion: "4.29",
  759. uniRuntimeVersion: "4.29",
  760. uniPlatform: undefined || "mp-weixin",
  761. deviceBrand: deviceBrand,
  762. deviceModel: model,
  763. deviceType: deviceType,
  764. devicePixelRatio: _devicePixelRatio,
  765. deviceOrientation: _deviceOrientation,
  766. osName: osName.toLocaleLowerCase(),
  767. osVersion: osVersion,
  768. hostTheme: theme,
  769. hostVersion: hostVersion,
  770. hostLanguage: hostLanguage,
  771. hostName: _hostName,
  772. hostSDKVersion: _SDKVersion,
  773. hostFontSizeSetting: fontSizeSetting,
  774. windowTop: 0,
  775. windowBottom: 0,
  776. // TODO
  777. osLanguage: undefined,
  778. osTheme: undefined,
  779. ua: undefined,
  780. hostPackageName: undefined,
  781. browserName: undefined,
  782. browserVersion: undefined
  783. };
  784. Object.assign(result, parameters, extraParam);
  785. }
  786. function getGetDeviceType(result, model) {
  787. var deviceType = result.deviceType || 'phone';
  788. {
  789. var deviceTypeMaps = {
  790. ipad: 'pad',
  791. windows: 'pc',
  792. mac: 'pc'
  793. };
  794. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  795. var _model = model.toLocaleLowerCase();
  796. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  797. var _m = deviceTypeMapsKeys[index];
  798. if (_model.indexOf(_m) !== -1) {
  799. deviceType = deviceTypeMaps[_m];
  800. break;
  801. }
  802. }
  803. }
  804. return deviceType;
  805. }
  806. function getDeviceBrand(brand) {
  807. var deviceBrand = brand;
  808. if (deviceBrand) {
  809. deviceBrand = brand.toLocaleLowerCase();
  810. }
  811. return deviceBrand;
  812. }
  813. function getAppLanguage(defaultLanguage) {
  814. return getLocale$1 ? getLocale$1() : defaultLanguage;
  815. }
  816. function getHostName(result) {
  817. var _platform = 'WeChat';
  818. var _hostName = result.hostName || _platform; // mp-jd
  819. {
  820. if (result.environment) {
  821. _hostName = result.environment;
  822. } else if (result.host && result.host.env) {
  823. _hostName = result.host.env;
  824. }
  825. }
  826. return _hostName;
  827. }
  828. var getSystemInfo = {
  829. returnValue: function returnValue(result) {
  830. useDeviceId(result);
  831. addSafeAreaInsets(result);
  832. populateParameters(result);
  833. }
  834. };
  835. var showActionSheet = {
  836. args: function args(fromArgs) {
  837. if ((0, _typeof2.default)(fromArgs) === 'object') {
  838. fromArgs.alertText = fromArgs.title;
  839. }
  840. }
  841. };
  842. var getAppBaseInfo = {
  843. returnValue: function returnValue(result) {
  844. var _result = result,
  845. version = _result.version,
  846. language = _result.language,
  847. SDKVersion = _result.SDKVersion,
  848. theme = _result.theme;
  849. var _hostName = getHostName(result);
  850. var hostLanguage = language.replace('_', '-');
  851. result = sortObject(Object.assign(result, {
  852. appId: "__UNI__56B53F4",
  853. appName: "xcx",
  854. appVersion: "1.0.0",
  855. appVersionCode: "100",
  856. appLanguage: getAppLanguage(hostLanguage),
  857. hostVersion: version,
  858. hostLanguage: hostLanguage,
  859. hostName: _hostName,
  860. hostSDKVersion: SDKVersion,
  861. hostTheme: theme
  862. }));
  863. }
  864. };
  865. var getDeviceInfo = {
  866. returnValue: function returnValue(result) {
  867. var _result2 = result,
  868. brand = _result2.brand,
  869. model = _result2.model;
  870. var deviceType = getGetDeviceType(result, model);
  871. var deviceBrand = getDeviceBrand(brand);
  872. useDeviceId(result);
  873. result = sortObject(Object.assign(result, {
  874. deviceType: deviceType,
  875. deviceBrand: deviceBrand,
  876. deviceModel: model
  877. }));
  878. }
  879. };
  880. var getWindowInfo = {
  881. returnValue: function returnValue(result) {
  882. addSafeAreaInsets(result);
  883. result = sortObject(Object.assign(result, {
  884. windowTop: 0,
  885. windowBottom: 0
  886. }));
  887. }
  888. };
  889. var getAppAuthorizeSetting = {
  890. returnValue: function returnValue(result) {
  891. var locationReducedAccuracy = result.locationReducedAccuracy;
  892. result.locationAccuracy = 'unsupported';
  893. if (locationReducedAccuracy === true) {
  894. result.locationAccuracy = 'reduced';
  895. } else if (locationReducedAccuracy === false) {
  896. result.locationAccuracy = 'full';
  897. }
  898. }
  899. };
  900. // import navigateTo from 'uni-helpers/navigate-to'
  901. var compressImage = {
  902. args: function args(fromArgs) {
  903. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  904. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  905. fromArgs.compressHeight = fromArgs.compressedHeight;
  906. }
  907. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  908. fromArgs.compressWidth = fromArgs.compressedWidth;
  909. }
  910. }
  911. };
  912. var protocols = {
  913. redirectTo: redirectTo,
  914. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  915. previewImage: previewImage,
  916. getSystemInfo: getSystemInfo,
  917. getSystemInfoSync: getSystemInfo,
  918. showActionSheet: showActionSheet,
  919. getAppBaseInfo: getAppBaseInfo,
  920. getDeviceInfo: getDeviceInfo,
  921. getWindowInfo: getWindowInfo,
  922. getAppAuthorizeSetting: getAppAuthorizeSetting,
  923. compressImage: compressImage
  924. };
  925. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  926. var canIUses = [];
  927. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  928. function processCallback(methodName, method, returnValue) {
  929. return function (res) {
  930. return method(processReturnValue(methodName, res, returnValue));
  931. };
  932. }
  933. function processArgs(methodName, fromArgs) {
  934. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  935. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  936. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  937. if (isPlainObject(fromArgs)) {
  938. // 一般 api 的参数解析
  939. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  940. if (isFn(argsOption)) {
  941. argsOption = argsOption(fromArgs, toArgs) || {};
  942. }
  943. for (var key in fromArgs) {
  944. if (hasOwn(argsOption, key)) {
  945. var keyOption = argsOption[key];
  946. if (isFn(keyOption)) {
  947. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  948. }
  949. if (!keyOption) {
  950. // 不支持的参数
  951. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  952. } else if (isStr(keyOption)) {
  953. // 重写参数 key
  954. toArgs[keyOption] = fromArgs[key];
  955. } else if (isPlainObject(keyOption)) {
  956. // {name:newName,value:value}可重新指定参数 key:value
  957. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  958. }
  959. } else if (CALLBACKS.indexOf(key) !== -1) {
  960. if (isFn(fromArgs[key])) {
  961. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  962. }
  963. } else {
  964. if (!keepFromArgs) {
  965. toArgs[key] = fromArgs[key];
  966. }
  967. }
  968. }
  969. return toArgs;
  970. } else if (isFn(fromArgs)) {
  971. fromArgs = processCallback(methodName, fromArgs, returnValue);
  972. }
  973. return fromArgs;
  974. }
  975. function processReturnValue(methodName, res, returnValue) {
  976. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  977. if (isFn(protocols.returnValue)) {
  978. // 处理通用 returnValue
  979. res = protocols.returnValue(methodName, res);
  980. }
  981. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  982. }
  983. function wrapper(methodName, method) {
  984. if (hasOwn(protocols, methodName)) {
  985. var protocol = protocols[methodName];
  986. if (!protocol) {
  987. // 暂不支持的 api
  988. return function () {
  989. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  990. };
  991. }
  992. return function (arg1, arg2) {
  993. // 目前 api 最多两个参数
  994. var options = protocol;
  995. if (isFn(protocol)) {
  996. options = protocol(arg1);
  997. }
  998. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  999. var args = [arg1];
  1000. if (typeof arg2 !== 'undefined') {
  1001. args.push(arg2);
  1002. }
  1003. if (isFn(options.name)) {
  1004. methodName = options.name(arg1);
  1005. } else if (isStr(options.name)) {
  1006. methodName = options.name;
  1007. }
  1008. var returnValue = wx[methodName].apply(wx, args);
  1009. if (isSyncApi(methodName)) {
  1010. // 同步 api
  1011. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1012. }
  1013. return returnValue;
  1014. };
  1015. }
  1016. return method;
  1017. }
  1018. var todoApis = Object.create(null);
  1019. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1020. function createTodoApi(name) {
  1021. return function todoApi(_ref) {
  1022. var fail = _ref.fail,
  1023. complete = _ref.complete;
  1024. var res = {
  1025. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1026. };
  1027. isFn(fail) && fail(res);
  1028. isFn(complete) && complete(res);
  1029. };
  1030. }
  1031. TODOS.forEach(function (name) {
  1032. todoApis[name] = createTodoApi(name);
  1033. });
  1034. var providers = {
  1035. oauth: ['weixin'],
  1036. share: ['weixin'],
  1037. payment: ['wxpay'],
  1038. push: ['weixin']
  1039. };
  1040. function getProvider(_ref2) {
  1041. var service = _ref2.service,
  1042. success = _ref2.success,
  1043. fail = _ref2.fail,
  1044. complete = _ref2.complete;
  1045. var res = false;
  1046. if (providers[service]) {
  1047. res = {
  1048. errMsg: 'getProvider:ok',
  1049. service: service,
  1050. provider: providers[service]
  1051. };
  1052. isFn(success) && success(res);
  1053. } else {
  1054. res = {
  1055. errMsg: 'getProvider:fail service not found'
  1056. };
  1057. isFn(fail) && fail(res);
  1058. }
  1059. isFn(complete) && complete(res);
  1060. }
  1061. var extraApi = /*#__PURE__*/Object.freeze({
  1062. __proto__: null,
  1063. getProvider: getProvider
  1064. });
  1065. var getEmitter = function () {
  1066. var Emitter;
  1067. return function getUniEmitter() {
  1068. if (!Emitter) {
  1069. Emitter = new _vue.default();
  1070. }
  1071. return Emitter;
  1072. };
  1073. }();
  1074. function apply(ctx, method, args) {
  1075. return ctx[method].apply(ctx, args);
  1076. }
  1077. function $on() {
  1078. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1079. }
  1080. function $off() {
  1081. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1082. }
  1083. function $once() {
  1084. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1085. }
  1086. function $emit() {
  1087. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1088. }
  1089. var eventApi = /*#__PURE__*/Object.freeze({
  1090. __proto__: null,
  1091. $on: $on,
  1092. $off: $off,
  1093. $once: $once,
  1094. $emit: $emit
  1095. });
  1096. /**
  1097. * 框架内 try-catch
  1098. */
  1099. /**
  1100. * 开发者 try-catch
  1101. */
  1102. function tryCatch(fn) {
  1103. return function () {
  1104. try {
  1105. return fn.apply(fn, arguments);
  1106. } catch (e) {
  1107. // TODO
  1108. console.error(e);
  1109. }
  1110. };
  1111. }
  1112. function getApiCallbacks(params) {
  1113. var apiCallbacks = {};
  1114. for (var name in params) {
  1115. var param = params[name];
  1116. if (isFn(param)) {
  1117. apiCallbacks[name] = tryCatch(param);
  1118. delete params[name];
  1119. }
  1120. }
  1121. return apiCallbacks;
  1122. }
  1123. var cid;
  1124. var cidErrMsg;
  1125. var enabled;
  1126. function normalizePushMessage(message) {
  1127. try {
  1128. return JSON.parse(message);
  1129. } catch (e) {}
  1130. return message;
  1131. }
  1132. function invokePushCallback(args) {
  1133. if (args.type === 'enabled') {
  1134. enabled = true;
  1135. } else if (args.type === 'clientId') {
  1136. cid = args.cid;
  1137. cidErrMsg = args.errMsg;
  1138. invokeGetPushCidCallbacks(cid, args.errMsg);
  1139. } else if (args.type === 'pushMsg') {
  1140. var message = {
  1141. type: 'receive',
  1142. data: normalizePushMessage(args.message)
  1143. };
  1144. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1145. var callback = onPushMessageCallbacks[i];
  1146. callback(message);
  1147. // 该消息已被阻止
  1148. if (message.stopped) {
  1149. break;
  1150. }
  1151. }
  1152. } else if (args.type === 'click') {
  1153. onPushMessageCallbacks.forEach(function (callback) {
  1154. callback({
  1155. type: 'click',
  1156. data: normalizePushMessage(args.message)
  1157. });
  1158. });
  1159. }
  1160. }
  1161. var getPushCidCallbacks = [];
  1162. function invokeGetPushCidCallbacks(cid, errMsg) {
  1163. getPushCidCallbacks.forEach(function (callback) {
  1164. callback(cid, errMsg);
  1165. });
  1166. getPushCidCallbacks.length = 0;
  1167. }
  1168. function getPushClientId(args) {
  1169. if (!isPlainObject(args)) {
  1170. args = {};
  1171. }
  1172. var _getApiCallbacks = getApiCallbacks(args),
  1173. success = _getApiCallbacks.success,
  1174. fail = _getApiCallbacks.fail,
  1175. complete = _getApiCallbacks.complete;
  1176. var hasSuccess = isFn(success);
  1177. var hasFail = isFn(fail);
  1178. var hasComplete = isFn(complete);
  1179. Promise.resolve().then(function () {
  1180. if (typeof enabled === 'undefined') {
  1181. enabled = false;
  1182. cid = '';
  1183. cidErrMsg = 'uniPush is not enabled';
  1184. }
  1185. getPushCidCallbacks.push(function (cid, errMsg) {
  1186. var res;
  1187. if (cid) {
  1188. res = {
  1189. errMsg: 'getPushClientId:ok',
  1190. cid: cid
  1191. };
  1192. hasSuccess && success(res);
  1193. } else {
  1194. res = {
  1195. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1196. };
  1197. hasFail && fail(res);
  1198. }
  1199. hasComplete && complete(res);
  1200. });
  1201. if (typeof cid !== 'undefined') {
  1202. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1203. }
  1204. });
  1205. }
  1206. var onPushMessageCallbacks = [];
  1207. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1208. var onPushMessage = function onPushMessage(fn) {
  1209. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1210. onPushMessageCallbacks.push(fn);
  1211. }
  1212. };
  1213. var offPushMessage = function offPushMessage(fn) {
  1214. if (!fn) {
  1215. onPushMessageCallbacks.length = 0;
  1216. } else {
  1217. var index = onPushMessageCallbacks.indexOf(fn);
  1218. if (index > -1) {
  1219. onPushMessageCallbacks.splice(index, 1);
  1220. }
  1221. }
  1222. };
  1223. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1224. if (!baseInfo) {
  1225. baseInfo = wx.getSystemInfoSync();
  1226. }
  1227. var host = baseInfo ? baseInfo.host : null;
  1228. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1229. var api = /*#__PURE__*/Object.freeze({
  1230. __proto__: null,
  1231. shareVideoMessage: shareVideoMessage,
  1232. getPushClientId: getPushClientId,
  1233. onPushMessage: onPushMessage,
  1234. offPushMessage: offPushMessage,
  1235. invokePushCallback: invokePushCallback
  1236. });
  1237. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1238. function findVmByVueId(vm, vuePid) {
  1239. var $children = vm.$children;
  1240. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1241. for (var i = $children.length - 1; i >= 0; i--) {
  1242. var childVm = $children[i];
  1243. if (childVm.$scope._$vueId === vuePid) {
  1244. return childVm;
  1245. }
  1246. }
  1247. // 反向递归查找
  1248. var parentVm;
  1249. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1250. parentVm = findVmByVueId($children[_i], vuePid);
  1251. if (parentVm) {
  1252. return parentVm;
  1253. }
  1254. }
  1255. }
  1256. function initBehavior(options) {
  1257. return Behavior(options);
  1258. }
  1259. function isPage() {
  1260. return !!this.route;
  1261. }
  1262. function initRelation(detail) {
  1263. this.triggerEvent('__l', detail);
  1264. }
  1265. function selectAllComponents(mpInstance, selector, $refs) {
  1266. var components = mpInstance.selectAllComponents(selector) || [];
  1267. components.forEach(function (component) {
  1268. var ref = component.dataset.ref;
  1269. $refs[ref] = component.$vm || toSkip(component);
  1270. {
  1271. if (component.dataset.vueGeneric === 'scoped') {
  1272. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1273. selectAllComponents(scopedComponent, selector, $refs);
  1274. });
  1275. }
  1276. }
  1277. });
  1278. }
  1279. function syncRefs(refs, newRefs) {
  1280. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1281. var newKeys = Object.keys(newRefs);
  1282. newKeys.forEach(function (key) {
  1283. var oldValue = refs[key];
  1284. var newValue = newRefs[key];
  1285. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1286. return oldValue.includes(value);
  1287. })) {
  1288. return;
  1289. }
  1290. refs[key] = newValue;
  1291. oldKeys.delete(key);
  1292. });
  1293. oldKeys.forEach(function (key) {
  1294. delete refs[key];
  1295. });
  1296. return refs;
  1297. }
  1298. function initRefs(vm) {
  1299. var mpInstance = vm.$scope;
  1300. var refs = {};
  1301. Object.defineProperty(vm, '$refs', {
  1302. get: function get() {
  1303. var $refs = {};
  1304. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1305. // TODO 暂不考虑 for 中的 scoped
  1306. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1307. forComponents.forEach(function (component) {
  1308. var ref = component.dataset.ref;
  1309. if (!$refs[ref]) {
  1310. $refs[ref] = [];
  1311. }
  1312. $refs[ref].push(component.$vm || toSkip(component));
  1313. });
  1314. return syncRefs(refs, $refs);
  1315. }
  1316. });
  1317. }
  1318. function handleLink(event) {
  1319. var _ref3 = event.detail || event.value,
  1320. vuePid = _ref3.vuePid,
  1321. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1322. var parentVm;
  1323. if (vuePid) {
  1324. parentVm = findVmByVueId(this.$vm, vuePid);
  1325. }
  1326. if (!parentVm) {
  1327. parentVm = this.$vm;
  1328. }
  1329. vueOptions.parent = parentVm;
  1330. }
  1331. function markMPComponent(component) {
  1332. // 在 Vue 中标记为小程序组件
  1333. var IS_MP = '__v_isMPComponent';
  1334. Object.defineProperty(component, IS_MP, {
  1335. configurable: true,
  1336. enumerable: false,
  1337. value: true
  1338. });
  1339. return component;
  1340. }
  1341. function toSkip(obj) {
  1342. var OB = '__ob__';
  1343. var SKIP = '__v_skip';
  1344. if (isObject(obj) && Object.isExtensible(obj)) {
  1345. // 避免被 @vue/composition-api 观测
  1346. Object.defineProperty(obj, OB, {
  1347. configurable: true,
  1348. enumerable: false,
  1349. value: (0, _defineProperty2.default)({}, SKIP, true)
  1350. });
  1351. }
  1352. return obj;
  1353. }
  1354. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1355. function initWorkletMethods(mpMethods, vueMethods) {
  1356. if (vueMethods) {
  1357. Object.keys(vueMethods).forEach(function (name) {
  1358. var matches = name.match(WORKLET_RE);
  1359. if (matches) {
  1360. var workletName = matches[1];
  1361. mpMethods[name] = vueMethods[name];
  1362. mpMethods[workletName] = vueMethods[workletName];
  1363. }
  1364. });
  1365. }
  1366. }
  1367. var MPPage = Page;
  1368. var MPComponent = Component;
  1369. var customizeRE = /:/g;
  1370. var customize = cached(function (str) {
  1371. return camelize(str.replace(customizeRE, '-'));
  1372. });
  1373. function initTriggerEvent(mpInstance) {
  1374. var oldTriggerEvent = mpInstance.triggerEvent;
  1375. var newTriggerEvent = function newTriggerEvent(event) {
  1376. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1377. args[_key3 - 1] = arguments[_key3];
  1378. }
  1379. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1380. if (this.$vm || this.dataset && this.dataset.comType) {
  1381. event = customize(event);
  1382. } else {
  1383. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1384. var newEvent = customize(event);
  1385. if (newEvent !== event) {
  1386. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1387. }
  1388. }
  1389. return oldTriggerEvent.apply(this, [event].concat(args));
  1390. };
  1391. try {
  1392. // 京东小程序 triggerEvent 为只读
  1393. mpInstance.triggerEvent = newTriggerEvent;
  1394. } catch (error) {
  1395. mpInstance._triggerEvent = newTriggerEvent;
  1396. }
  1397. }
  1398. function initHook(name, options, isComponent) {
  1399. var oldHook = options[name];
  1400. options[name] = function () {
  1401. markMPComponent(this);
  1402. initTriggerEvent(this);
  1403. if (oldHook) {
  1404. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1405. args[_key4] = arguments[_key4];
  1406. }
  1407. return oldHook.apply(this, args);
  1408. }
  1409. };
  1410. }
  1411. if (!MPPage.__$wrappered) {
  1412. MPPage.__$wrappered = true;
  1413. Page = function Page() {
  1414. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1415. initHook('onLoad', options);
  1416. return MPPage(options);
  1417. };
  1418. Page.after = MPPage.after;
  1419. Component = function Component() {
  1420. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1421. initHook('created', options);
  1422. return MPComponent(options);
  1423. };
  1424. }
  1425. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1426. function initMocks(vm, mocks) {
  1427. var mpInstance = vm.$mp[vm.mpType];
  1428. mocks.forEach(function (mock) {
  1429. if (hasOwn(mpInstance, mock)) {
  1430. vm[mock] = mpInstance[mock];
  1431. }
  1432. });
  1433. }
  1434. function hasHook(hook, vueOptions) {
  1435. if (!vueOptions) {
  1436. return true;
  1437. }
  1438. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1439. return true;
  1440. }
  1441. vueOptions = vueOptions.default || vueOptions;
  1442. if (isFn(vueOptions)) {
  1443. if (isFn(vueOptions.extendOptions[hook])) {
  1444. return true;
  1445. }
  1446. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1447. return true;
  1448. }
  1449. return false;
  1450. }
  1451. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1452. return true;
  1453. }
  1454. var mixins = vueOptions.mixins;
  1455. if (Array.isArray(mixins)) {
  1456. return !!mixins.find(function (mixin) {
  1457. return hasHook(hook, mixin);
  1458. });
  1459. }
  1460. }
  1461. function initHooks(mpOptions, hooks, vueOptions) {
  1462. hooks.forEach(function (hook) {
  1463. if (hasHook(hook, vueOptions)) {
  1464. mpOptions[hook] = function (args) {
  1465. return this.$vm && this.$vm.__call_hook(hook, args);
  1466. };
  1467. }
  1468. });
  1469. }
  1470. function initUnknownHooks(mpOptions, vueOptions) {
  1471. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1472. findHooks(vueOptions).forEach(function (hook) {
  1473. return initHook$1(mpOptions, hook, excludes);
  1474. });
  1475. }
  1476. function findHooks(vueOptions) {
  1477. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1478. if (vueOptions) {
  1479. Object.keys(vueOptions).forEach(function (name) {
  1480. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1481. hooks.push(name);
  1482. }
  1483. });
  1484. }
  1485. return hooks;
  1486. }
  1487. function initHook$1(mpOptions, hook, excludes) {
  1488. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1489. mpOptions[hook] = function (args) {
  1490. return this.$vm && this.$vm.__call_hook(hook, args);
  1491. };
  1492. }
  1493. }
  1494. function initVueComponent(Vue, vueOptions) {
  1495. vueOptions = vueOptions.default || vueOptions;
  1496. var VueComponent;
  1497. if (isFn(vueOptions)) {
  1498. VueComponent = vueOptions;
  1499. } else {
  1500. VueComponent = Vue.extend(vueOptions);
  1501. }
  1502. vueOptions = VueComponent.options;
  1503. return [VueComponent, vueOptions];
  1504. }
  1505. function initSlots(vm, vueSlots) {
  1506. if (Array.isArray(vueSlots) && vueSlots.length) {
  1507. var $slots = Object.create(null);
  1508. vueSlots.forEach(function (slotName) {
  1509. $slots[slotName] = true;
  1510. });
  1511. vm.$scopedSlots = vm.$slots = $slots;
  1512. }
  1513. }
  1514. function initVueIds(vueIds, mpInstance) {
  1515. vueIds = (vueIds || '').split(',');
  1516. var len = vueIds.length;
  1517. if (len === 1) {
  1518. mpInstance._$vueId = vueIds[0];
  1519. } else if (len === 2) {
  1520. mpInstance._$vueId = vueIds[0];
  1521. mpInstance._$vuePid = vueIds[1];
  1522. }
  1523. }
  1524. function initData(vueOptions, context) {
  1525. var data = vueOptions.data || {};
  1526. var methods = vueOptions.methods || {};
  1527. if (typeof data === 'function') {
  1528. try {
  1529. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1530. } catch (e) {
  1531. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xcx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1532. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1533. }
  1534. }
  1535. } else {
  1536. try {
  1537. // 对 data 格式化
  1538. data = JSON.parse(JSON.stringify(data));
  1539. } catch (e) {}
  1540. }
  1541. if (!isPlainObject(data)) {
  1542. data = {};
  1543. }
  1544. Object.keys(methods).forEach(function (methodName) {
  1545. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1546. data[methodName] = methods[methodName];
  1547. }
  1548. });
  1549. return data;
  1550. }
  1551. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1552. function createObserver(name) {
  1553. return function observer(newVal, oldVal) {
  1554. if (this.$vm) {
  1555. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1556. }
  1557. };
  1558. }
  1559. function initBehaviors(vueOptions, initBehavior) {
  1560. var vueBehaviors = vueOptions.behaviors;
  1561. var vueExtends = vueOptions.extends;
  1562. var vueMixins = vueOptions.mixins;
  1563. var vueProps = vueOptions.props;
  1564. if (!vueProps) {
  1565. vueOptions.props = vueProps = [];
  1566. }
  1567. var behaviors = [];
  1568. if (Array.isArray(vueBehaviors)) {
  1569. vueBehaviors.forEach(function (behavior) {
  1570. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1571. if (behavior === 'uni://form-field') {
  1572. if (Array.isArray(vueProps)) {
  1573. vueProps.push('name');
  1574. vueProps.push('value');
  1575. } else {
  1576. vueProps.name = {
  1577. type: String,
  1578. default: ''
  1579. };
  1580. vueProps.value = {
  1581. type: [String, Number, Boolean, Array, Object, Date],
  1582. default: ''
  1583. };
  1584. }
  1585. }
  1586. });
  1587. }
  1588. if (isPlainObject(vueExtends) && vueExtends.props) {
  1589. behaviors.push(initBehavior({
  1590. properties: initProperties(vueExtends.props, true)
  1591. }));
  1592. }
  1593. if (Array.isArray(vueMixins)) {
  1594. vueMixins.forEach(function (vueMixin) {
  1595. if (isPlainObject(vueMixin) && vueMixin.props) {
  1596. behaviors.push(initBehavior({
  1597. properties: initProperties(vueMixin.props, true)
  1598. }));
  1599. }
  1600. });
  1601. }
  1602. return behaviors;
  1603. }
  1604. function parsePropType(key, type, defaultValue, file) {
  1605. // [String]=>String
  1606. if (Array.isArray(type) && type.length === 1) {
  1607. return type[0];
  1608. }
  1609. return type;
  1610. }
  1611. function initProperties(props) {
  1612. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1613. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1614. var options = arguments.length > 3 ? arguments[3] : undefined;
  1615. var properties = {};
  1616. if (!isBehavior) {
  1617. properties.vueId = {
  1618. type: String,
  1619. value: ''
  1620. };
  1621. {
  1622. if (options.virtualHost) {
  1623. properties.virtualHostStyle = {
  1624. type: null,
  1625. value: ''
  1626. };
  1627. properties.virtualHostClass = {
  1628. type: null,
  1629. value: ''
  1630. };
  1631. }
  1632. }
  1633. // scopedSlotsCompiler auto
  1634. properties.scopedSlotsCompiler = {
  1635. type: String,
  1636. value: ''
  1637. };
  1638. properties.vueSlots = {
  1639. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1640. type: null,
  1641. value: [],
  1642. observer: function observer(newVal, oldVal) {
  1643. var $slots = Object.create(null);
  1644. newVal.forEach(function (slotName) {
  1645. $slots[slotName] = true;
  1646. });
  1647. this.setData({
  1648. $slots: $slots
  1649. });
  1650. }
  1651. };
  1652. }
  1653. if (Array.isArray(props)) {
  1654. // ['title']
  1655. props.forEach(function (key) {
  1656. properties[key] = {
  1657. type: null,
  1658. observer: createObserver(key)
  1659. };
  1660. });
  1661. } else if (isPlainObject(props)) {
  1662. // {title:{type:String,default:''},content:String}
  1663. Object.keys(props).forEach(function (key) {
  1664. var opts = props[key];
  1665. if (isPlainObject(opts)) {
  1666. // title:{type:String,default:''}
  1667. var value = opts.default;
  1668. if (isFn(value)) {
  1669. value = value();
  1670. }
  1671. opts.type = parsePropType(key, opts.type);
  1672. properties[key] = {
  1673. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1674. value: value,
  1675. observer: createObserver(key)
  1676. };
  1677. } else {
  1678. // content:String
  1679. var type = parsePropType(key, opts);
  1680. properties[key] = {
  1681. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1682. observer: createObserver(key)
  1683. };
  1684. }
  1685. });
  1686. }
  1687. return properties;
  1688. }
  1689. function wrapper$1(event) {
  1690. // TODO 又得兼容 mpvue 的 mp 对象
  1691. try {
  1692. event.mp = JSON.parse(JSON.stringify(event));
  1693. } catch (e) {}
  1694. event.stopPropagation = noop;
  1695. event.preventDefault = noop;
  1696. event.target = event.target || {};
  1697. if (!hasOwn(event, 'detail')) {
  1698. event.detail = {};
  1699. }
  1700. if (hasOwn(event, 'markerId')) {
  1701. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1702. event.detail.markerId = event.markerId;
  1703. }
  1704. if (isPlainObject(event.detail)) {
  1705. event.target = Object.assign({}, event.target, event.detail);
  1706. }
  1707. return event;
  1708. }
  1709. function getExtraValue(vm, dataPathsArray) {
  1710. var context = vm;
  1711. dataPathsArray.forEach(function (dataPathArray) {
  1712. var dataPath = dataPathArray[0];
  1713. var value = dataPathArray[2];
  1714. if (dataPath || typeof value !== 'undefined') {
  1715. // ['','',index,'disable']
  1716. var propPath = dataPathArray[1];
  1717. var valuePath = dataPathArray[3];
  1718. var vFor;
  1719. if (Number.isInteger(dataPath)) {
  1720. vFor = dataPath;
  1721. } else if (!dataPath) {
  1722. vFor = context;
  1723. } else if (typeof dataPath === 'string' && dataPath) {
  1724. if (dataPath.indexOf('#s#') === 0) {
  1725. vFor = dataPath.substr(3);
  1726. } else {
  1727. vFor = vm.__get_value(dataPath, context);
  1728. }
  1729. }
  1730. if (Number.isInteger(vFor)) {
  1731. context = value;
  1732. } else if (!propPath) {
  1733. context = vFor[value];
  1734. } else {
  1735. if (Array.isArray(vFor)) {
  1736. context = vFor.find(function (vForItem) {
  1737. return vm.__get_value(propPath, vForItem) === value;
  1738. });
  1739. } else if (isPlainObject(vFor)) {
  1740. context = Object.keys(vFor).find(function (vForKey) {
  1741. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1742. });
  1743. } else {
  1744. console.error('v-for 暂不支持循环数据:', vFor);
  1745. }
  1746. }
  1747. if (valuePath) {
  1748. context = vm.__get_value(valuePath, context);
  1749. }
  1750. }
  1751. });
  1752. return context;
  1753. }
  1754. function processEventExtra(vm, extra, event, __args__) {
  1755. var extraObj = {};
  1756. if (Array.isArray(extra) && extra.length) {
  1757. /**
  1758. *[
  1759. * ['data.items', 'data.id', item.data.id],
  1760. * ['metas', 'id', meta.id]
  1761. *],
  1762. *[
  1763. * ['data.items', 'data.id', item.data.id],
  1764. * ['metas', 'id', meta.id]
  1765. *],
  1766. *'test'
  1767. */
  1768. extra.forEach(function (dataPath, index) {
  1769. if (typeof dataPath === 'string') {
  1770. if (!dataPath) {
  1771. // model,prop.sync
  1772. extraObj['$' + index] = vm;
  1773. } else {
  1774. if (dataPath === '$event') {
  1775. // $event
  1776. extraObj['$' + index] = event;
  1777. } else if (dataPath === 'arguments') {
  1778. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1779. } else if (dataPath.indexOf('$event.') === 0) {
  1780. // $event.target.value
  1781. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1782. } else {
  1783. extraObj['$' + index] = vm.__get_value(dataPath);
  1784. }
  1785. }
  1786. } else {
  1787. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1788. }
  1789. });
  1790. }
  1791. return extraObj;
  1792. }
  1793. function getObjByArray(arr) {
  1794. var obj = {};
  1795. for (var i = 1; i < arr.length; i++) {
  1796. var element = arr[i];
  1797. obj[element[0]] = element[1];
  1798. }
  1799. return obj;
  1800. }
  1801. function processEventArgs(vm, event) {
  1802. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1803. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1804. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1805. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1806. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1807. // fixed 用户直接触发 mpInstance.triggerEvent
  1808. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1809. if (isCustom) {
  1810. // 自定义事件
  1811. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1812. if (!args.length) {
  1813. // 无参数,直接传入 event 或 detail 数组
  1814. if (isCustomMPEvent) {
  1815. return [event];
  1816. }
  1817. return __args__;
  1818. }
  1819. }
  1820. var extraObj = processEventExtra(vm, extra, event, __args__);
  1821. var ret = [];
  1822. args.forEach(function (arg) {
  1823. if (arg === '$event') {
  1824. if (methodName === '__set_model' && !isCustom) {
  1825. // input v-model value
  1826. ret.push(event.target.value);
  1827. } else {
  1828. if (isCustom && !isCustomMPEvent) {
  1829. ret.push(__args__[0]);
  1830. } else {
  1831. // wxcomponent 组件或内置组件
  1832. ret.push(event);
  1833. }
  1834. }
  1835. } else {
  1836. if (Array.isArray(arg) && arg[0] === 'o') {
  1837. ret.push(getObjByArray(arg));
  1838. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1839. ret.push(extraObj[arg]);
  1840. } else {
  1841. ret.push(arg);
  1842. }
  1843. }
  1844. });
  1845. return ret;
  1846. }
  1847. var ONCE = '~';
  1848. var CUSTOM = '^';
  1849. function isMatchEventType(eventType, optType) {
  1850. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1851. }
  1852. function getContextVm(vm) {
  1853. var $parent = vm.$parent;
  1854. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1855. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1856. $parent = $parent.$parent;
  1857. }
  1858. return $parent && $parent.$parent;
  1859. }
  1860. function handleEvent(event) {
  1861. var _this2 = this;
  1862. event = wrapper$1(event);
  1863. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1864. var dataset = (event.currentTarget || event.target).dataset;
  1865. if (!dataset) {
  1866. return console.warn('事件信息不存在');
  1867. }
  1868. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1869. if (!eventOpts) {
  1870. return console.warn('事件信息不存在');
  1871. }
  1872. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1873. var eventType = event.type;
  1874. var ret = [];
  1875. eventOpts.forEach(function (eventOpt) {
  1876. var type = eventOpt[0];
  1877. var eventsArray = eventOpt[1];
  1878. var isCustom = type.charAt(0) === CUSTOM;
  1879. type = isCustom ? type.slice(1) : type;
  1880. var isOnce = type.charAt(0) === ONCE;
  1881. type = isOnce ? type.slice(1) : type;
  1882. if (eventsArray && isMatchEventType(eventType, type)) {
  1883. eventsArray.forEach(function (eventArray) {
  1884. var methodName = eventArray[0];
  1885. if (methodName) {
  1886. var handlerCtx = _this2.$vm;
  1887. if (handlerCtx.$options.generic) {
  1888. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1889. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1890. }
  1891. if (methodName === '$emit') {
  1892. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1893. return;
  1894. }
  1895. var handler = handlerCtx[methodName];
  1896. if (!isFn(handler)) {
  1897. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1898. var path = _this2.route || _this2.is;
  1899. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1900. }
  1901. if (isOnce) {
  1902. if (handler.once) {
  1903. return;
  1904. }
  1905. handler.once = true;
  1906. }
  1907. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1908. params = Array.isArray(params) ? params : [];
  1909. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1910. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1911. // eslint-disable-next-line no-sparse-arrays
  1912. params = params.concat([,,,,,,,,,, event]);
  1913. }
  1914. ret.push(handler.apply(handlerCtx, params));
  1915. }
  1916. });
  1917. }
  1918. });
  1919. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1920. return ret[0];
  1921. }
  1922. }
  1923. var eventChannels = {};
  1924. function getEventChannel(id) {
  1925. var eventChannel = eventChannels[id];
  1926. delete eventChannels[id];
  1927. return eventChannel;
  1928. }
  1929. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1930. function initEventChannel() {
  1931. _vue.default.prototype.getOpenerEventChannel = function () {
  1932. // 微信小程序使用自身getOpenerEventChannel
  1933. {
  1934. return this.$scope.getOpenerEventChannel();
  1935. }
  1936. };
  1937. var callHook = _vue.default.prototype.__call_hook;
  1938. _vue.default.prototype.__call_hook = function (hook, args) {
  1939. if (hook === 'onLoad' && args && args.__id__) {
  1940. this.__eventChannel__ = getEventChannel(args.__id__);
  1941. delete args.__id__;
  1942. }
  1943. return callHook.call(this, hook, args);
  1944. };
  1945. }
  1946. function initScopedSlotsParams() {
  1947. var center = {};
  1948. var parents = {};
  1949. function currentId(fn) {
  1950. var vueIds = this.$options.propsData.vueId;
  1951. if (vueIds) {
  1952. var vueId = vueIds.split(',')[0];
  1953. fn(vueId);
  1954. }
  1955. }
  1956. _vue.default.prototype.$hasSSP = function (vueId) {
  1957. var slot = center[vueId];
  1958. if (!slot) {
  1959. parents[vueId] = this;
  1960. this.$on('hook:destroyed', function () {
  1961. delete parents[vueId];
  1962. });
  1963. }
  1964. return slot;
  1965. };
  1966. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1967. var slot = center[vueId];
  1968. if (slot) {
  1969. var params = slot[name] || [];
  1970. if (needAll) {
  1971. return params;
  1972. }
  1973. return params[0];
  1974. }
  1975. };
  1976. _vue.default.prototype.$setSSP = function (name, value) {
  1977. var index = 0;
  1978. currentId.call(this, function (vueId) {
  1979. var slot = center[vueId];
  1980. var params = slot[name] = slot[name] || [];
  1981. params.push(value);
  1982. index = params.length - 1;
  1983. });
  1984. return index;
  1985. };
  1986. _vue.default.prototype.$initSSP = function () {
  1987. currentId.call(this, function (vueId) {
  1988. center[vueId] = {};
  1989. });
  1990. };
  1991. _vue.default.prototype.$callSSP = function () {
  1992. currentId.call(this, function (vueId) {
  1993. if (parents[vueId]) {
  1994. parents[vueId].$forceUpdate();
  1995. }
  1996. });
  1997. };
  1998. _vue.default.mixin({
  1999. destroyed: function destroyed() {
  2000. var propsData = this.$options.propsData;
  2001. var vueId = propsData && propsData.vueId;
  2002. if (vueId) {
  2003. delete center[vueId];
  2004. delete parents[vueId];
  2005. }
  2006. }
  2007. });
  2008. }
  2009. function parseBaseApp(vm, _ref4) {
  2010. var mocks = _ref4.mocks,
  2011. initRefs = _ref4.initRefs;
  2012. initEventChannel();
  2013. {
  2014. initScopedSlotsParams();
  2015. }
  2016. if (vm.$options.store) {
  2017. _vue.default.prototype.$store = vm.$options.store;
  2018. }
  2019. uniIdMixin(_vue.default);
  2020. _vue.default.prototype.mpHost = "mp-weixin";
  2021. _vue.default.mixin({
  2022. beforeCreate: function beforeCreate() {
  2023. if (!this.$options.mpType) {
  2024. return;
  2025. }
  2026. this.mpType = this.$options.mpType;
  2027. this.$mp = (0, _defineProperty2.default)({
  2028. data: {}
  2029. }, this.mpType, this.$options.mpInstance);
  2030. this.$scope = this.$options.mpInstance;
  2031. delete this.$options.mpType;
  2032. delete this.$options.mpInstance;
  2033. if (this.mpType === 'page' && typeof getApp === 'function') {
  2034. // hack vue-i18n
  2035. var app = getApp();
  2036. if (app.$vm && app.$vm.$i18n) {
  2037. this._i18n = app.$vm.$i18n;
  2038. }
  2039. }
  2040. if (this.mpType !== 'app') {
  2041. initRefs(this);
  2042. initMocks(this, mocks);
  2043. }
  2044. }
  2045. });
  2046. var appOptions = {
  2047. onLaunch: function onLaunch(args) {
  2048. if (this.$vm) {
  2049. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2050. return;
  2051. }
  2052. {
  2053. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2054. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2055. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2056. }
  2057. }
  2058. this.$vm = vm;
  2059. this.$vm.$mp = {
  2060. app: this
  2061. };
  2062. this.$vm.$scope = this;
  2063. // vm 上也挂载 globalData
  2064. this.$vm.globalData = this.globalData;
  2065. this.$vm._isMounted = true;
  2066. this.$vm.__call_hook('mounted', args);
  2067. this.$vm.__call_hook('onLaunch', args);
  2068. }
  2069. };
  2070. // 兼容旧版本 globalData
  2071. appOptions.globalData = vm.$options.globalData || {};
  2072. // 将 methods 中的方法挂在 getApp() 中
  2073. var methods = vm.$options.methods;
  2074. if (methods) {
  2075. Object.keys(methods).forEach(function (name) {
  2076. appOptions[name] = methods[name];
  2077. });
  2078. }
  2079. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  2080. initHooks(appOptions, hooks);
  2081. initUnknownHooks(appOptions, vm.$options);
  2082. return appOptions;
  2083. }
  2084. function parseApp(vm) {
  2085. return parseBaseApp(vm, {
  2086. mocks: mocks,
  2087. initRefs: initRefs
  2088. });
  2089. }
  2090. function createApp(vm) {
  2091. App(parseApp(vm));
  2092. return vm;
  2093. }
  2094. var encodeReserveRE = /[!'()*]/g;
  2095. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2096. return '%' + c.charCodeAt(0).toString(16);
  2097. };
  2098. var commaRE = /%2C/g;
  2099. // fixed encodeURIComponent which is more conformant to RFC3986:
  2100. // - escapes [!'()*]
  2101. // - preserve commas
  2102. var encode = function encode(str) {
  2103. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2104. };
  2105. function stringifyQuery(obj) {
  2106. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2107. var res = obj ? Object.keys(obj).map(function (key) {
  2108. var val = obj[key];
  2109. if (val === undefined) {
  2110. return '';
  2111. }
  2112. if (val === null) {
  2113. return encodeStr(key);
  2114. }
  2115. if (Array.isArray(val)) {
  2116. var result = [];
  2117. val.forEach(function (val2) {
  2118. if (val2 === undefined) {
  2119. return;
  2120. }
  2121. if (val2 === null) {
  2122. result.push(encodeStr(key));
  2123. } else {
  2124. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2125. }
  2126. });
  2127. return result.join('&');
  2128. }
  2129. return encodeStr(key) + '=' + encodeStr(val);
  2130. }).filter(function (x) {
  2131. return x.length > 0;
  2132. }).join('&') : null;
  2133. return res ? "?".concat(res) : '';
  2134. }
  2135. function parseBaseComponent(vueComponentOptions) {
  2136. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2137. isPage = _ref5.isPage,
  2138. initRelation = _ref5.initRelation;
  2139. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2140. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2141. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2142. VueComponent = _initVueComponent2[0],
  2143. vueOptions = _initVueComponent2[1];
  2144. var options = _objectSpread({
  2145. multipleSlots: true,
  2146. // styleIsolation: 'apply-shared',
  2147. addGlobalClass: true
  2148. }, vueOptions.options || {});
  2149. {
  2150. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2151. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2152. Object.assign(options, vueOptions['mp-weixin'].options);
  2153. }
  2154. }
  2155. var componentOptions = {
  2156. options: options,
  2157. data: initData(vueOptions, _vue.default.prototype),
  2158. behaviors: initBehaviors(vueOptions, initBehavior),
  2159. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2160. lifetimes: {
  2161. attached: function attached() {
  2162. var properties = this.properties;
  2163. var options = {
  2164. mpType: isPage.call(this) ? 'page' : 'component',
  2165. mpInstance: this,
  2166. propsData: properties
  2167. };
  2168. initVueIds(properties.vueId, this);
  2169. // 处理父子关系
  2170. initRelation.call(this, {
  2171. vuePid: this._$vuePid,
  2172. vueOptions: options
  2173. });
  2174. // 初始化 vue 实例
  2175. this.$vm = new VueComponent(options);
  2176. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2177. initSlots(this.$vm, properties.vueSlots);
  2178. // 触发首次 setData
  2179. this.$vm.$mount();
  2180. },
  2181. ready: function ready() {
  2182. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2183. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2184. if (this.$vm) {
  2185. this.$vm._isMounted = true;
  2186. this.$vm.__call_hook('mounted');
  2187. this.$vm.__call_hook('onReady');
  2188. }
  2189. },
  2190. detached: function detached() {
  2191. this.$vm && this.$vm.$destroy();
  2192. }
  2193. },
  2194. pageLifetimes: {
  2195. show: function show(args) {
  2196. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2197. },
  2198. hide: function hide() {
  2199. this.$vm && this.$vm.__call_hook('onPageHide');
  2200. },
  2201. resize: function resize(size) {
  2202. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2203. }
  2204. },
  2205. methods: {
  2206. __l: handleLink,
  2207. __e: handleEvent
  2208. }
  2209. };
  2210. // externalClasses
  2211. if (vueOptions.externalClasses) {
  2212. componentOptions.externalClasses = vueOptions.externalClasses;
  2213. }
  2214. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2215. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2216. componentOptions.methods[callMethod] = function (args) {
  2217. return this.$vm[callMethod](args);
  2218. };
  2219. });
  2220. }
  2221. if (needVueOptions) {
  2222. return [componentOptions, vueOptions, VueComponent];
  2223. }
  2224. if (isPage) {
  2225. return componentOptions;
  2226. }
  2227. return [componentOptions, VueComponent];
  2228. }
  2229. function parseComponent(vueComponentOptions, needVueOptions) {
  2230. return parseBaseComponent(vueComponentOptions, {
  2231. isPage: isPage,
  2232. initRelation: initRelation
  2233. }, needVueOptions);
  2234. }
  2235. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2236. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2237. function parseBasePage(vuePageOptions) {
  2238. var _parseComponent = parseComponent(vuePageOptions, true),
  2239. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2240. pageOptions = _parseComponent2[0],
  2241. vueOptions = _parseComponent2[1];
  2242. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2243. pageOptions.methods.onLoad = function (query) {
  2244. this.options = query;
  2245. var copyQuery = Object.assign({}, query);
  2246. delete copyQuery.__id__;
  2247. this.$page = {
  2248. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2249. };
  2250. this.$vm.$mp.query = query; // 兼容 mpvue
  2251. this.$vm.__call_hook('onLoad', query);
  2252. };
  2253. {
  2254. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2255. }
  2256. {
  2257. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2258. }
  2259. return pageOptions;
  2260. }
  2261. function parsePage(vuePageOptions) {
  2262. return parseBasePage(vuePageOptions);
  2263. }
  2264. function createPage(vuePageOptions) {
  2265. {
  2266. return Component(parsePage(vuePageOptions));
  2267. }
  2268. }
  2269. function createComponent(vueOptions) {
  2270. {
  2271. return Component(parseComponent(vueOptions));
  2272. }
  2273. }
  2274. function createSubpackageApp(vm) {
  2275. var appOptions = parseApp(vm);
  2276. var app = getApp({
  2277. allowDefault: true
  2278. });
  2279. vm.$scope = app;
  2280. var globalData = app.globalData;
  2281. if (globalData) {
  2282. Object.keys(appOptions.globalData).forEach(function (name) {
  2283. if (!hasOwn(globalData, name)) {
  2284. globalData[name] = appOptions.globalData[name];
  2285. }
  2286. });
  2287. }
  2288. Object.keys(appOptions).forEach(function (name) {
  2289. if (!hasOwn(app, name)) {
  2290. app[name] = appOptions[name];
  2291. }
  2292. });
  2293. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2294. wx.onAppShow(function () {
  2295. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2296. args[_key5] = arguments[_key5];
  2297. }
  2298. vm.__call_hook('onShow', args);
  2299. });
  2300. }
  2301. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2302. wx.onAppHide(function () {
  2303. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2304. args[_key6] = arguments[_key6];
  2305. }
  2306. vm.__call_hook('onHide', args);
  2307. });
  2308. }
  2309. if (isFn(appOptions.onLaunch)) {
  2310. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2311. vm.__call_hook('onLaunch', args);
  2312. }
  2313. return vm;
  2314. }
  2315. function createPlugin(vm) {
  2316. var appOptions = parseApp(vm);
  2317. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2318. wx.onAppShow(function () {
  2319. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2320. args[_key7] = arguments[_key7];
  2321. }
  2322. vm.__call_hook('onShow', args);
  2323. });
  2324. }
  2325. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2326. wx.onAppHide(function () {
  2327. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2328. args[_key8] = arguments[_key8];
  2329. }
  2330. vm.__call_hook('onHide', args);
  2331. });
  2332. }
  2333. if (isFn(appOptions.onLaunch)) {
  2334. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2335. vm.__call_hook('onLaunch', args);
  2336. }
  2337. return vm;
  2338. }
  2339. todos.forEach(function (todoApi) {
  2340. protocols[todoApi] = false;
  2341. });
  2342. canIUses.forEach(function (canIUseApi) {
  2343. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2344. if (!wx.canIUse(apiName)) {
  2345. protocols[canIUseApi] = false;
  2346. }
  2347. });
  2348. var uni = {};
  2349. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2350. uni = new Proxy({}, {
  2351. get: function get(target, name) {
  2352. if (hasOwn(target, name)) {
  2353. return target[name];
  2354. }
  2355. if (baseApi[name]) {
  2356. return baseApi[name];
  2357. }
  2358. if (api[name]) {
  2359. return promisify(name, api[name]);
  2360. }
  2361. {
  2362. if (extraApi[name]) {
  2363. return promisify(name, extraApi[name]);
  2364. }
  2365. if (todoApis[name]) {
  2366. return promisify(name, todoApis[name]);
  2367. }
  2368. }
  2369. if (eventApi[name]) {
  2370. return eventApi[name];
  2371. }
  2372. return promisify(name, wrapper(name, wx[name]));
  2373. },
  2374. set: function set(target, name, value) {
  2375. target[name] = value;
  2376. return true;
  2377. }
  2378. });
  2379. } else {
  2380. Object.keys(baseApi).forEach(function (name) {
  2381. uni[name] = baseApi[name];
  2382. });
  2383. {
  2384. Object.keys(todoApis).forEach(function (name) {
  2385. uni[name] = promisify(name, todoApis[name]);
  2386. });
  2387. Object.keys(extraApi).forEach(function (name) {
  2388. uni[name] = promisify(name, extraApi[name]);
  2389. });
  2390. }
  2391. Object.keys(eventApi).forEach(function (name) {
  2392. uni[name] = eventApi[name];
  2393. });
  2394. Object.keys(api).forEach(function (name) {
  2395. uni[name] = promisify(name, api[name]);
  2396. });
  2397. Object.keys(wx).forEach(function (name) {
  2398. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2399. uni[name] = promisify(name, wrapper(name, wx[name]));
  2400. }
  2401. });
  2402. }
  2403. wx.createApp = createApp;
  2404. wx.createPage = createPage;
  2405. wx.createComponent = createComponent;
  2406. wx.createSubpackageApp = createSubpackageApp;
  2407. wx.createPlugin = createPlugin;
  2408. var uni$1 = uni;
  2409. var _default = uni$1;
  2410. exports.default = _default;
  2411. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  2412. /***/ }),
  2413. /* 3 */
  2414. /*!***********************************!*\
  2415. !*** (webpack)/buildin/global.js ***!
  2416. \***********************************/
  2417. /*! no static exports found */
  2418. /***/ (function(module, exports) {
  2419. var g;
  2420. // This works in non-strict mode
  2421. g = (function() {
  2422. return this;
  2423. })();
  2424. try {
  2425. // This works if eval is allowed (see CSP)
  2426. g = g || new Function("return this")();
  2427. } catch (e) {
  2428. // This works if the window reference is available
  2429. if (typeof window === "object") g = window;
  2430. }
  2431. // g can still be undefined, but nothing to do about it...
  2432. // We return undefined, instead of nothing here, so it's
  2433. // easier to handle this case. if(!global) { ...}
  2434. module.exports = g;
  2435. /***/ }),
  2436. /* 4 */
  2437. /*!**********************************************************************!*\
  2438. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2439. \**********************************************************************/
  2440. /*! no static exports found */
  2441. /***/ (function(module, exports) {
  2442. function _interopRequireDefault(obj) {
  2443. return obj && obj.__esModule ? obj : {
  2444. "default": obj
  2445. };
  2446. }
  2447. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2448. /***/ }),
  2449. /* 5 */
  2450. /*!**************************************************************!*\
  2451. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2452. \**************************************************************/
  2453. /*! no static exports found */
  2454. /***/ (function(module, exports, __webpack_require__) {
  2455. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2456. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2457. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2458. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2459. function _slicedToArray(arr, i) {
  2460. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2461. }
  2462. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2463. /***/ }),
  2464. /* 6 */
  2465. /*!***************************************************************!*\
  2466. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2467. \***************************************************************/
  2468. /*! no static exports found */
  2469. /***/ (function(module, exports) {
  2470. function _arrayWithHoles(arr) {
  2471. if (Array.isArray(arr)) return arr;
  2472. }
  2473. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2474. /***/ }),
  2475. /* 7 */
  2476. /*!*********************************************************************!*\
  2477. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2478. \*********************************************************************/
  2479. /*! no static exports found */
  2480. /***/ (function(module, exports) {
  2481. function _iterableToArrayLimit(r, l) {
  2482. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  2483. if (null != t) {
  2484. var e,
  2485. n,
  2486. i,
  2487. u,
  2488. a = [],
  2489. f = !0,
  2490. o = !1;
  2491. try {
  2492. if (i = (t = t.call(r)).next, 0 === l) {
  2493. if (Object(t) !== t) return;
  2494. f = !1;
  2495. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  2496. ;
  2497. }
  2498. } catch (r) {
  2499. o = !0, n = r;
  2500. } finally {
  2501. try {
  2502. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  2503. } finally {
  2504. if (o) throw n;
  2505. }
  2506. }
  2507. return a;
  2508. }
  2509. }
  2510. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2511. /***/ }),
  2512. /* 8 */
  2513. /*!***************************************************************************!*\
  2514. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2515. \***************************************************************************/
  2516. /*! no static exports found */
  2517. /***/ (function(module, exports, __webpack_require__) {
  2518. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2519. function _unsupportedIterableToArray(o, minLen) {
  2520. if (!o) return;
  2521. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2522. var n = Object.prototype.toString.call(o).slice(8, -1);
  2523. if (n === "Object" && o.constructor) n = o.constructor.name;
  2524. if (n === "Map" || n === "Set") return Array.from(o);
  2525. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2526. }
  2527. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2528. /***/ }),
  2529. /* 9 */
  2530. /*!*****************************************************************!*\
  2531. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2532. \*****************************************************************/
  2533. /*! no static exports found */
  2534. /***/ (function(module, exports) {
  2535. function _arrayLikeToArray(arr, len) {
  2536. if (len == null || len > arr.length) len = arr.length;
  2537. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2538. arr2[i] = arr[i];
  2539. }
  2540. return arr2;
  2541. }
  2542. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2543. /***/ }),
  2544. /* 10 */
  2545. /*!****************************************************************!*\
  2546. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2547. \****************************************************************/
  2548. /*! no static exports found */
  2549. /***/ (function(module, exports) {
  2550. function _nonIterableRest() {
  2551. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2552. }
  2553. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2554. /***/ }),
  2555. /* 11 */
  2556. /*!***************************************************************!*\
  2557. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2558. \***************************************************************/
  2559. /*! no static exports found */
  2560. /***/ (function(module, exports, __webpack_require__) {
  2561. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2562. function _defineProperty(obj, key, value) {
  2563. key = toPropertyKey(key);
  2564. if (key in obj) {
  2565. Object.defineProperty(obj, key, {
  2566. value: value,
  2567. enumerable: true,
  2568. configurable: true,
  2569. writable: true
  2570. });
  2571. } else {
  2572. obj[key] = value;
  2573. }
  2574. return obj;
  2575. }
  2576. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2577. /***/ }),
  2578. /* 12 */
  2579. /*!**************************************************************!*\
  2580. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2581. \**************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2585. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2586. function toPropertyKey(t) {
  2587. var i = toPrimitive(t, "string");
  2588. return "symbol" == _typeof(i) ? i : i + "";
  2589. }
  2590. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 13 */
  2593. /*!*******************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2595. \*******************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports) {
  2598. function _typeof(o) {
  2599. "@babel/helpers - typeof";
  2600. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2601. return typeof o;
  2602. } : function (o) {
  2603. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2604. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2605. }
  2606. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2607. /***/ }),
  2608. /* 14 */
  2609. /*!************************************************************!*\
  2610. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2611. \************************************************************/
  2612. /*! no static exports found */
  2613. /***/ (function(module, exports, __webpack_require__) {
  2614. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2615. function toPrimitive(t, r) {
  2616. if ("object" != _typeof(t) || !t) return t;
  2617. var e = t[Symbol.toPrimitive];
  2618. if (void 0 !== e) {
  2619. var i = e.call(t, r || "default");
  2620. if ("object" != _typeof(i)) return i;
  2621. throw new TypeError("@@toPrimitive must return a primitive value.");
  2622. }
  2623. return ("string" === r ? String : Number)(t);
  2624. }
  2625. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2626. /***/ }),
  2627. /* 15 */
  2628. /*!**********************************************************!*\
  2629. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2630. \**********************************************************/
  2631. /*! no static exports found */
  2632. /***/ (function(module, exports, __webpack_require__) {
  2633. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2634. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2635. function _construct(t, e, r) {
  2636. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2637. var o = [null];
  2638. o.push.apply(o, e);
  2639. var p = new (t.bind.apply(t, o))();
  2640. return r && setPrototypeOf(p, r.prototype), p;
  2641. }
  2642. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2643. /***/ }),
  2644. /* 16 */
  2645. /*!***************************************************************!*\
  2646. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2647. \***************************************************************/
  2648. /*! no static exports found */
  2649. /***/ (function(module, exports) {
  2650. function _setPrototypeOf(o, p) {
  2651. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2652. o.__proto__ = p;
  2653. return o;
  2654. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2655. return _setPrototypeOf(o, p);
  2656. }
  2657. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2658. /***/ }),
  2659. /* 17 */
  2660. /*!*************************************************************************!*\
  2661. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2662. \*************************************************************************/
  2663. /*! no static exports found */
  2664. /***/ (function(module, exports) {
  2665. function _isNativeReflectConstruct() {
  2666. try {
  2667. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2668. } catch (t) {}
  2669. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2670. return !!t;
  2671. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2672. }
  2673. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2674. /***/ }),
  2675. /* 18 */
  2676. /*!******************************************************************!*\
  2677. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2678. \******************************************************************/
  2679. /*! no static exports found */
  2680. /***/ (function(module, exports, __webpack_require__) {
  2681. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2682. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2683. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2684. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2685. function _toConsumableArray(arr) {
  2686. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2687. }
  2688. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2689. /***/ }),
  2690. /* 19 */
  2691. /*!******************************************************************!*\
  2692. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2693. \******************************************************************/
  2694. /*! no static exports found */
  2695. /***/ (function(module, exports, __webpack_require__) {
  2696. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2697. function _arrayWithoutHoles(arr) {
  2698. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2699. }
  2700. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2701. /***/ }),
  2702. /* 20 */
  2703. /*!****************************************************************!*\
  2704. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2705. \****************************************************************/
  2706. /*! no static exports found */
  2707. /***/ (function(module, exports) {
  2708. function _iterableToArray(iter) {
  2709. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2710. }
  2711. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2712. /***/ }),
  2713. /* 21 */
  2714. /*!******************************************************************!*\
  2715. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2716. \******************************************************************/
  2717. /*! no static exports found */
  2718. /***/ (function(module, exports) {
  2719. function _nonIterableSpread() {
  2720. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2721. }
  2722. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2723. /***/ }),
  2724. /* 22 */
  2725. /*!*************************************************************!*\
  2726. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2727. \*************************************************************/
  2728. /*! no static exports found */
  2729. /***/ (function(module, exports, __webpack_require__) {
  2730. "use strict";
  2731. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2732. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2733. Object.defineProperty(exports, "__esModule", {
  2734. value: true
  2735. });
  2736. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2737. exports.compileI18nJsonStr = compileI18nJsonStr;
  2738. exports.hasI18nJson = hasI18nJson;
  2739. exports.initVueI18n = initVueI18n;
  2740. exports.isI18nStr = isI18nStr;
  2741. exports.isString = void 0;
  2742. exports.normalizeLocale = normalizeLocale;
  2743. exports.parseI18nJson = parseI18nJson;
  2744. exports.resolveLocale = resolveLocale;
  2745. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2746. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2747. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2748. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2749. var isObject = function isObject(val) {
  2750. return val !== null && (0, _typeof2.default)(val) === 'object';
  2751. };
  2752. var defaultDelimiters = ['{', '}'];
  2753. var BaseFormatter = /*#__PURE__*/function () {
  2754. function BaseFormatter() {
  2755. (0, _classCallCheck2.default)(this, BaseFormatter);
  2756. this._caches = Object.create(null);
  2757. }
  2758. (0, _createClass2.default)(BaseFormatter, [{
  2759. key: "interpolate",
  2760. value: function interpolate(message, values) {
  2761. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2762. if (!values) {
  2763. return [message];
  2764. }
  2765. var tokens = this._caches[message];
  2766. if (!tokens) {
  2767. tokens = parse(message, delimiters);
  2768. this._caches[message] = tokens;
  2769. }
  2770. return compile(tokens, values);
  2771. }
  2772. }]);
  2773. return BaseFormatter;
  2774. }();
  2775. exports.Formatter = BaseFormatter;
  2776. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2777. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2778. function parse(format, _ref) {
  2779. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2780. startDelimiter = _ref2[0],
  2781. endDelimiter = _ref2[1];
  2782. var tokens = [];
  2783. var position = 0;
  2784. var text = '';
  2785. while (position < format.length) {
  2786. var char = format[position++];
  2787. if (char === startDelimiter) {
  2788. if (text) {
  2789. tokens.push({
  2790. type: 'text',
  2791. value: text
  2792. });
  2793. }
  2794. text = '';
  2795. var sub = '';
  2796. char = format[position++];
  2797. while (char !== undefined && char !== endDelimiter) {
  2798. sub += char;
  2799. char = format[position++];
  2800. }
  2801. var isClosed = char === endDelimiter;
  2802. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2803. tokens.push({
  2804. value: sub,
  2805. type: type
  2806. });
  2807. }
  2808. // else if (char === '%') {
  2809. // // when found rails i18n syntax, skip text capture
  2810. // if (format[position] !== '{') {
  2811. // text += char
  2812. // }
  2813. // }
  2814. else {
  2815. text += char;
  2816. }
  2817. }
  2818. text && tokens.push({
  2819. type: 'text',
  2820. value: text
  2821. });
  2822. return tokens;
  2823. }
  2824. function compile(tokens, values) {
  2825. var compiled = [];
  2826. var index = 0;
  2827. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2828. if (mode === 'unknown') {
  2829. return compiled;
  2830. }
  2831. while (index < tokens.length) {
  2832. var token = tokens[index];
  2833. switch (token.type) {
  2834. case 'text':
  2835. compiled.push(token.value);
  2836. break;
  2837. case 'list':
  2838. compiled.push(values[parseInt(token.value, 10)]);
  2839. break;
  2840. case 'named':
  2841. if (mode === 'named') {
  2842. compiled.push(values[token.value]);
  2843. } else {
  2844. if (true) {
  2845. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2846. }
  2847. }
  2848. break;
  2849. case 'unknown':
  2850. if (true) {
  2851. console.warn("Detect 'unknown' type of token!");
  2852. }
  2853. break;
  2854. }
  2855. index++;
  2856. }
  2857. return compiled;
  2858. }
  2859. var LOCALE_ZH_HANS = 'zh-Hans';
  2860. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2861. var LOCALE_ZH_HANT = 'zh-Hant';
  2862. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2863. var LOCALE_EN = 'en';
  2864. exports.LOCALE_EN = LOCALE_EN;
  2865. var LOCALE_FR = 'fr';
  2866. exports.LOCALE_FR = LOCALE_FR;
  2867. var LOCALE_ES = 'es';
  2868. exports.LOCALE_ES = LOCALE_ES;
  2869. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2870. var hasOwn = function hasOwn(val, key) {
  2871. return hasOwnProperty.call(val, key);
  2872. };
  2873. var defaultFormatter = new BaseFormatter();
  2874. function include(str, parts) {
  2875. return !!parts.find(function (part) {
  2876. return str.indexOf(part) !== -1;
  2877. });
  2878. }
  2879. function startsWith(str, parts) {
  2880. return parts.find(function (part) {
  2881. return str.indexOf(part) === 0;
  2882. });
  2883. }
  2884. function normalizeLocale(locale, messages) {
  2885. if (!locale) {
  2886. return;
  2887. }
  2888. locale = locale.trim().replace(/_/g, '-');
  2889. if (messages && messages[locale]) {
  2890. return locale;
  2891. }
  2892. locale = locale.toLowerCase();
  2893. if (locale === 'chinese') {
  2894. // 支付宝
  2895. return LOCALE_ZH_HANS;
  2896. }
  2897. if (locale.indexOf('zh') === 0) {
  2898. if (locale.indexOf('-hans') > -1) {
  2899. return LOCALE_ZH_HANS;
  2900. }
  2901. if (locale.indexOf('-hant') > -1) {
  2902. return LOCALE_ZH_HANT;
  2903. }
  2904. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2905. return LOCALE_ZH_HANT;
  2906. }
  2907. return LOCALE_ZH_HANS;
  2908. }
  2909. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2910. if (messages && Object.keys(messages).length > 0) {
  2911. locales = Object.keys(messages);
  2912. }
  2913. var lang = startsWith(locale, locales);
  2914. if (lang) {
  2915. return lang;
  2916. }
  2917. }
  2918. var I18n = /*#__PURE__*/function () {
  2919. function I18n(_ref3) {
  2920. var locale = _ref3.locale,
  2921. fallbackLocale = _ref3.fallbackLocale,
  2922. messages = _ref3.messages,
  2923. watcher = _ref3.watcher,
  2924. formater = _ref3.formater;
  2925. (0, _classCallCheck2.default)(this, I18n);
  2926. this.locale = LOCALE_EN;
  2927. this.fallbackLocale = LOCALE_EN;
  2928. this.message = {};
  2929. this.messages = {};
  2930. this.watchers = [];
  2931. if (fallbackLocale) {
  2932. this.fallbackLocale = fallbackLocale;
  2933. }
  2934. this.formater = formater || defaultFormatter;
  2935. this.messages = messages || {};
  2936. this.setLocale(locale || LOCALE_EN);
  2937. if (watcher) {
  2938. this.watchLocale(watcher);
  2939. }
  2940. }
  2941. (0, _createClass2.default)(I18n, [{
  2942. key: "setLocale",
  2943. value: function setLocale(locale) {
  2944. var _this = this;
  2945. var oldLocale = this.locale;
  2946. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2947. if (!this.messages[this.locale]) {
  2948. // 可能初始化时不存在
  2949. this.messages[this.locale] = {};
  2950. }
  2951. this.message = this.messages[this.locale];
  2952. // 仅发生变化时,通知
  2953. if (oldLocale !== this.locale) {
  2954. this.watchers.forEach(function (watcher) {
  2955. watcher(_this.locale, oldLocale);
  2956. });
  2957. }
  2958. }
  2959. }, {
  2960. key: "getLocale",
  2961. value: function getLocale() {
  2962. return this.locale;
  2963. }
  2964. }, {
  2965. key: "watchLocale",
  2966. value: function watchLocale(fn) {
  2967. var _this2 = this;
  2968. var index = this.watchers.push(fn) - 1;
  2969. return function () {
  2970. _this2.watchers.splice(index, 1);
  2971. };
  2972. }
  2973. }, {
  2974. key: "add",
  2975. value: function add(locale, message) {
  2976. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2977. var curMessages = this.messages[locale];
  2978. if (curMessages) {
  2979. if (override) {
  2980. Object.assign(curMessages, message);
  2981. } else {
  2982. Object.keys(message).forEach(function (key) {
  2983. if (!hasOwn(curMessages, key)) {
  2984. curMessages[key] = message[key];
  2985. }
  2986. });
  2987. }
  2988. } else {
  2989. this.messages[locale] = message;
  2990. }
  2991. }
  2992. }, {
  2993. key: "f",
  2994. value: function f(message, values, delimiters) {
  2995. return this.formater.interpolate(message, values, delimiters).join('');
  2996. }
  2997. }, {
  2998. key: "t",
  2999. value: function t(key, locale, values) {
  3000. var message = this.message;
  3001. if (typeof locale === 'string') {
  3002. locale = normalizeLocale(locale, this.messages);
  3003. locale && (message = this.messages[locale]);
  3004. } else {
  3005. values = locale;
  3006. }
  3007. if (!hasOwn(message, key)) {
  3008. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3009. return key;
  3010. }
  3011. return this.formater.interpolate(message[key], values).join('');
  3012. }
  3013. }]);
  3014. return I18n;
  3015. }();
  3016. exports.I18n = I18n;
  3017. function watchAppLocale(appVm, i18n) {
  3018. // 需要保证 watch 的触发在组件渲染之前
  3019. if (appVm.$watchLocale) {
  3020. // vue2
  3021. appVm.$watchLocale(function (newLocale) {
  3022. i18n.setLocale(newLocale);
  3023. });
  3024. } else {
  3025. appVm.$watch(function () {
  3026. return appVm.$locale;
  3027. }, function (newLocale) {
  3028. i18n.setLocale(newLocale);
  3029. });
  3030. }
  3031. }
  3032. function getDefaultLocale() {
  3033. if (typeof uni !== 'undefined' && uni.getLocale) {
  3034. return uni.getLocale();
  3035. }
  3036. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3037. if (typeof global !== 'undefined' && global.getLocale) {
  3038. return global.getLocale();
  3039. }
  3040. return LOCALE_EN;
  3041. }
  3042. function initVueI18n(locale) {
  3043. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3044. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3045. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3046. // 兼容旧版本入参
  3047. if (typeof locale !== 'string') {
  3048. var _ref4 = [messages, locale];
  3049. locale = _ref4[0];
  3050. messages = _ref4[1];
  3051. }
  3052. if (typeof locale !== 'string') {
  3053. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3054. locale = getDefaultLocale();
  3055. }
  3056. if (typeof fallbackLocale !== 'string') {
  3057. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3058. }
  3059. var i18n = new I18n({
  3060. locale: locale,
  3061. fallbackLocale: fallbackLocale,
  3062. messages: messages,
  3063. watcher: watcher
  3064. });
  3065. var _t = function t(key, values) {
  3066. if (typeof getApp !== 'function') {
  3067. // app view
  3068. /* eslint-disable no-func-assign */
  3069. _t = function t(key, values) {
  3070. return i18n.t(key, values);
  3071. };
  3072. } else {
  3073. var isWatchedAppLocale = false;
  3074. _t = function t(key, values) {
  3075. var appVm = getApp().$vm;
  3076. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3077. // options: {
  3078. // type: Array,
  3079. // default () {
  3080. // return [{
  3081. // icon: 'shop',
  3082. // text: t("uni-goods-nav.options.shop"),
  3083. // }, {
  3084. // icon: 'cart',
  3085. // text: t("uni-goods-nav.options.cart")
  3086. // }]
  3087. // }
  3088. // },
  3089. if (appVm) {
  3090. // 触发响应式
  3091. appVm.$locale;
  3092. if (!isWatchedAppLocale) {
  3093. isWatchedAppLocale = true;
  3094. watchAppLocale(appVm, i18n);
  3095. }
  3096. }
  3097. return i18n.t(key, values);
  3098. };
  3099. }
  3100. return _t(key, values);
  3101. };
  3102. return {
  3103. i18n: i18n,
  3104. f: function f(message, values, delimiters) {
  3105. return i18n.f(message, values, delimiters);
  3106. },
  3107. t: function t(key, values) {
  3108. return _t(key, values);
  3109. },
  3110. add: function add(locale, message) {
  3111. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3112. return i18n.add(locale, message, override);
  3113. },
  3114. watch: function watch(fn) {
  3115. return i18n.watchLocale(fn);
  3116. },
  3117. getLocale: function getLocale() {
  3118. return i18n.getLocale();
  3119. },
  3120. setLocale: function setLocale(newLocale) {
  3121. return i18n.setLocale(newLocale);
  3122. }
  3123. };
  3124. }
  3125. var isString = function isString(val) {
  3126. return typeof val === 'string';
  3127. };
  3128. exports.isString = isString;
  3129. var formater;
  3130. function hasI18nJson(jsonObj, delimiters) {
  3131. if (!formater) {
  3132. formater = new BaseFormatter();
  3133. }
  3134. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3135. var value = jsonObj[key];
  3136. if (isString(value)) {
  3137. if (isI18nStr(value, delimiters)) {
  3138. return true;
  3139. }
  3140. } else {
  3141. return hasI18nJson(value, delimiters);
  3142. }
  3143. });
  3144. }
  3145. function parseI18nJson(jsonObj, values, delimiters) {
  3146. if (!formater) {
  3147. formater = new BaseFormatter();
  3148. }
  3149. walkJsonObj(jsonObj, function (jsonObj, key) {
  3150. var value = jsonObj[key];
  3151. if (isString(value)) {
  3152. if (isI18nStr(value, delimiters)) {
  3153. jsonObj[key] = compileStr(value, values, delimiters);
  3154. }
  3155. } else {
  3156. parseI18nJson(value, values, delimiters);
  3157. }
  3158. });
  3159. return jsonObj;
  3160. }
  3161. function compileI18nJsonStr(jsonStr, _ref5) {
  3162. var locale = _ref5.locale,
  3163. locales = _ref5.locales,
  3164. delimiters = _ref5.delimiters;
  3165. if (!isI18nStr(jsonStr, delimiters)) {
  3166. return jsonStr;
  3167. }
  3168. if (!formater) {
  3169. formater = new BaseFormatter();
  3170. }
  3171. var localeValues = [];
  3172. Object.keys(locales).forEach(function (name) {
  3173. if (name !== locale) {
  3174. localeValues.push({
  3175. locale: name,
  3176. values: locales[name]
  3177. });
  3178. }
  3179. });
  3180. localeValues.unshift({
  3181. locale: locale,
  3182. values: locales[locale]
  3183. });
  3184. try {
  3185. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3186. } catch (e) {}
  3187. return jsonStr;
  3188. }
  3189. function isI18nStr(value, delimiters) {
  3190. return value.indexOf(delimiters[0]) > -1;
  3191. }
  3192. function compileStr(value, values, delimiters) {
  3193. return formater.interpolate(value, values, delimiters).join('');
  3194. }
  3195. function compileValue(jsonObj, key, localeValues, delimiters) {
  3196. var value = jsonObj[key];
  3197. if (isString(value)) {
  3198. // 存在国际化
  3199. if (isI18nStr(value, delimiters)) {
  3200. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3201. if (localeValues.length > 1) {
  3202. // 格式化国际化语言
  3203. var valueLocales = jsonObj[key + 'Locales'] = {};
  3204. localeValues.forEach(function (localValue) {
  3205. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3206. });
  3207. }
  3208. }
  3209. } else {
  3210. compileJsonObj(value, localeValues, delimiters);
  3211. }
  3212. }
  3213. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3214. walkJsonObj(jsonObj, function (jsonObj, key) {
  3215. compileValue(jsonObj, key, localeValues, delimiters);
  3216. });
  3217. return jsonObj;
  3218. }
  3219. function walkJsonObj(jsonObj, walk) {
  3220. if (Array.isArray(jsonObj)) {
  3221. for (var i = 0; i < jsonObj.length; i++) {
  3222. if (walk(jsonObj, i)) {
  3223. return true;
  3224. }
  3225. }
  3226. } else if (isObject(jsonObj)) {
  3227. for (var key in jsonObj) {
  3228. if (walk(jsonObj, key)) {
  3229. return true;
  3230. }
  3231. }
  3232. }
  3233. return false;
  3234. }
  3235. function resolveLocale(locales) {
  3236. return function (locale) {
  3237. if (!locale) {
  3238. return locale;
  3239. }
  3240. locale = normalizeLocale(locale) || locale;
  3241. return resolveLocaleChain(locale).find(function (locale) {
  3242. return locales.indexOf(locale) > -1;
  3243. });
  3244. };
  3245. }
  3246. function resolveLocaleChain(locale) {
  3247. var chain = [];
  3248. var tokens = locale.split('-');
  3249. while (tokens.length) {
  3250. chain.push(tokens.join('-'));
  3251. tokens.pop();
  3252. }
  3253. return chain;
  3254. }
  3255. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  3256. /***/ }),
  3257. /* 23 */
  3258. /*!***************************************************************!*\
  3259. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3260. \***************************************************************/
  3261. /*! no static exports found */
  3262. /***/ (function(module, exports) {
  3263. function _classCallCheck(instance, Constructor) {
  3264. if (!(instance instanceof Constructor)) {
  3265. throw new TypeError("Cannot call a class as a function");
  3266. }
  3267. }
  3268. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3269. /***/ }),
  3270. /* 24 */
  3271. /*!************************************************************!*\
  3272. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3273. \************************************************************/
  3274. /*! no static exports found */
  3275. /***/ (function(module, exports, __webpack_require__) {
  3276. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3277. function _defineProperties(target, props) {
  3278. for (var i = 0; i < props.length; i++) {
  3279. var descriptor = props[i];
  3280. descriptor.enumerable = descriptor.enumerable || false;
  3281. descriptor.configurable = true;
  3282. if ("value" in descriptor) descriptor.writable = true;
  3283. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3284. }
  3285. }
  3286. function _createClass(Constructor, protoProps, staticProps) {
  3287. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3288. if (staticProps) _defineProperties(Constructor, staticProps);
  3289. Object.defineProperty(Constructor, "prototype", {
  3290. writable: false
  3291. });
  3292. return Constructor;
  3293. }
  3294. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3295. /***/ }),
  3296. /* 25 */
  3297. /*!******************************************************************************************!*\
  3298. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3299. \******************************************************************************************/
  3300. /*! exports provided: default */
  3301. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3302. "use strict";
  3303. __webpack_require__.r(__webpack_exports__);
  3304. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3305. * Vue.js v2.6.11
  3306. * (c) 2014-2023 Evan You
  3307. * Released under the MIT License.
  3308. */
  3309. /* */
  3310. var emptyObject = Object.freeze({});
  3311. // These helpers produce better VM code in JS engines due to their
  3312. // explicitness and function inlining.
  3313. function isUndef (v) {
  3314. return v === undefined || v === null
  3315. }
  3316. function isDef (v) {
  3317. return v !== undefined && v !== null
  3318. }
  3319. function isTrue (v) {
  3320. return v === true
  3321. }
  3322. function isFalse (v) {
  3323. return v === false
  3324. }
  3325. /**
  3326. * Check if value is primitive.
  3327. */
  3328. function isPrimitive (value) {
  3329. return (
  3330. typeof value === 'string' ||
  3331. typeof value === 'number' ||
  3332. // $flow-disable-line
  3333. typeof value === 'symbol' ||
  3334. typeof value === 'boolean'
  3335. )
  3336. }
  3337. /**
  3338. * Quick object check - this is primarily used to tell
  3339. * Objects from primitive values when we know the value
  3340. * is a JSON-compliant type.
  3341. */
  3342. function isObject (obj) {
  3343. return obj !== null && typeof obj === 'object'
  3344. }
  3345. /**
  3346. * Get the raw type string of a value, e.g., [object Object].
  3347. */
  3348. var _toString = Object.prototype.toString;
  3349. function toRawType (value) {
  3350. return _toString.call(value).slice(8, -1)
  3351. }
  3352. /**
  3353. * Strict object type check. Only returns true
  3354. * for plain JavaScript objects.
  3355. */
  3356. function isPlainObject (obj) {
  3357. return _toString.call(obj) === '[object Object]'
  3358. }
  3359. function isRegExp (v) {
  3360. return _toString.call(v) === '[object RegExp]'
  3361. }
  3362. /**
  3363. * Check if val is a valid array index.
  3364. */
  3365. function isValidArrayIndex (val) {
  3366. var n = parseFloat(String(val));
  3367. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3368. }
  3369. function isPromise (val) {
  3370. return (
  3371. isDef(val) &&
  3372. typeof val.then === 'function' &&
  3373. typeof val.catch === 'function'
  3374. )
  3375. }
  3376. /**
  3377. * Convert a value to a string that is actually rendered.
  3378. */
  3379. function toString (val) {
  3380. return val == null
  3381. ? ''
  3382. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3383. ? JSON.stringify(val, null, 2)
  3384. : String(val)
  3385. }
  3386. /**
  3387. * Convert an input value to a number for persistence.
  3388. * If the conversion fails, return original string.
  3389. */
  3390. function toNumber (val) {
  3391. var n = parseFloat(val);
  3392. return isNaN(n) ? val : n
  3393. }
  3394. /**
  3395. * Make a map and return a function for checking if a key
  3396. * is in that map.
  3397. */
  3398. function makeMap (
  3399. str,
  3400. expectsLowerCase
  3401. ) {
  3402. var map = Object.create(null);
  3403. var list = str.split(',');
  3404. for (var i = 0; i < list.length; i++) {
  3405. map[list[i]] = true;
  3406. }
  3407. return expectsLowerCase
  3408. ? function (val) { return map[val.toLowerCase()]; }
  3409. : function (val) { return map[val]; }
  3410. }
  3411. /**
  3412. * Check if a tag is a built-in tag.
  3413. */
  3414. var isBuiltInTag = makeMap('slot,component', true);
  3415. /**
  3416. * Check if an attribute is a reserved attribute.
  3417. */
  3418. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3419. /**
  3420. * Remove an item from an array.
  3421. */
  3422. function remove (arr, item) {
  3423. if (arr.length) {
  3424. var index = arr.indexOf(item);
  3425. if (index > -1) {
  3426. return arr.splice(index, 1)
  3427. }
  3428. }
  3429. }
  3430. /**
  3431. * Check whether an object has the property.
  3432. */
  3433. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3434. function hasOwn (obj, key) {
  3435. return hasOwnProperty.call(obj, key)
  3436. }
  3437. /**
  3438. * Create a cached version of a pure function.
  3439. */
  3440. function cached (fn) {
  3441. var cache = Object.create(null);
  3442. return (function cachedFn (str) {
  3443. var hit = cache[str];
  3444. return hit || (cache[str] = fn(str))
  3445. })
  3446. }
  3447. /**
  3448. * Camelize a hyphen-delimited string.
  3449. */
  3450. var camelizeRE = /-(\w)/g;
  3451. var camelize = cached(function (str) {
  3452. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3453. });
  3454. /**
  3455. * Capitalize a string.
  3456. */
  3457. var capitalize = cached(function (str) {
  3458. return str.charAt(0).toUpperCase() + str.slice(1)
  3459. });
  3460. /**
  3461. * Hyphenate a camelCase string.
  3462. */
  3463. var hyphenateRE = /\B([A-Z])/g;
  3464. var hyphenate = cached(function (str) {
  3465. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3466. });
  3467. /**
  3468. * Simple bind polyfill for environments that do not support it,
  3469. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3470. * since native bind is now performant enough in most browsers.
  3471. * But removing it would mean breaking code that was able to run in
  3472. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3473. */
  3474. /* istanbul ignore next */
  3475. function polyfillBind (fn, ctx) {
  3476. function boundFn (a) {
  3477. var l = arguments.length;
  3478. return l
  3479. ? l > 1
  3480. ? fn.apply(ctx, arguments)
  3481. : fn.call(ctx, a)
  3482. : fn.call(ctx)
  3483. }
  3484. boundFn._length = fn.length;
  3485. return boundFn
  3486. }
  3487. function nativeBind (fn, ctx) {
  3488. return fn.bind(ctx)
  3489. }
  3490. var bind = Function.prototype.bind
  3491. ? nativeBind
  3492. : polyfillBind;
  3493. /**
  3494. * Convert an Array-like object to a real Array.
  3495. */
  3496. function toArray (list, start) {
  3497. start = start || 0;
  3498. var i = list.length - start;
  3499. var ret = new Array(i);
  3500. while (i--) {
  3501. ret[i] = list[i + start];
  3502. }
  3503. return ret
  3504. }
  3505. /**
  3506. * Mix properties into target object.
  3507. */
  3508. function extend (to, _from) {
  3509. for (var key in _from) {
  3510. to[key] = _from[key];
  3511. }
  3512. return to
  3513. }
  3514. /**
  3515. * Merge an Array of Objects into a single Object.
  3516. */
  3517. function toObject (arr) {
  3518. var res = {};
  3519. for (var i = 0; i < arr.length; i++) {
  3520. if (arr[i]) {
  3521. extend(res, arr[i]);
  3522. }
  3523. }
  3524. return res
  3525. }
  3526. /* eslint-disable no-unused-vars */
  3527. /**
  3528. * Perform no operation.
  3529. * Stubbing args to make Flow happy without leaving useless transpiled code
  3530. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3531. */
  3532. function noop (a, b, c) {}
  3533. /**
  3534. * Always return false.
  3535. */
  3536. var no = function (a, b, c) { return false; };
  3537. /* eslint-enable no-unused-vars */
  3538. /**
  3539. * Return the same value.
  3540. */
  3541. var identity = function (_) { return _; };
  3542. /**
  3543. * Check if two values are loosely equal - that is,
  3544. * if they are plain objects, do they have the same shape?
  3545. */
  3546. function looseEqual (a, b) {
  3547. if (a === b) { return true }
  3548. var isObjectA = isObject(a);
  3549. var isObjectB = isObject(b);
  3550. if (isObjectA && isObjectB) {
  3551. try {
  3552. var isArrayA = Array.isArray(a);
  3553. var isArrayB = Array.isArray(b);
  3554. if (isArrayA && isArrayB) {
  3555. return a.length === b.length && a.every(function (e, i) {
  3556. return looseEqual(e, b[i])
  3557. })
  3558. } else if (a instanceof Date && b instanceof Date) {
  3559. return a.getTime() === b.getTime()
  3560. } else if (!isArrayA && !isArrayB) {
  3561. var keysA = Object.keys(a);
  3562. var keysB = Object.keys(b);
  3563. return keysA.length === keysB.length && keysA.every(function (key) {
  3564. return looseEqual(a[key], b[key])
  3565. })
  3566. } else {
  3567. /* istanbul ignore next */
  3568. return false
  3569. }
  3570. } catch (e) {
  3571. /* istanbul ignore next */
  3572. return false
  3573. }
  3574. } else if (!isObjectA && !isObjectB) {
  3575. return String(a) === String(b)
  3576. } else {
  3577. return false
  3578. }
  3579. }
  3580. /**
  3581. * Return the first index at which a loosely equal value can be
  3582. * found in the array (if value is a plain object, the array must
  3583. * contain an object of the same shape), or -1 if it is not present.
  3584. */
  3585. function looseIndexOf (arr, val) {
  3586. for (var i = 0; i < arr.length; i++) {
  3587. if (looseEqual(arr[i], val)) { return i }
  3588. }
  3589. return -1
  3590. }
  3591. /**
  3592. * Ensure a function is called only once.
  3593. */
  3594. function once (fn) {
  3595. var called = false;
  3596. return function () {
  3597. if (!called) {
  3598. called = true;
  3599. fn.apply(this, arguments);
  3600. }
  3601. }
  3602. }
  3603. var ASSET_TYPES = [
  3604. 'component',
  3605. 'directive',
  3606. 'filter'
  3607. ];
  3608. var LIFECYCLE_HOOKS = [
  3609. 'beforeCreate',
  3610. 'created',
  3611. 'beforeMount',
  3612. 'mounted',
  3613. 'beforeUpdate',
  3614. 'updated',
  3615. 'beforeDestroy',
  3616. 'destroyed',
  3617. 'activated',
  3618. 'deactivated',
  3619. 'errorCaptured',
  3620. 'serverPrefetch'
  3621. ];
  3622. /* */
  3623. var config = ({
  3624. /**
  3625. * Option merge strategies (used in core/util/options)
  3626. */
  3627. // $flow-disable-line
  3628. optionMergeStrategies: Object.create(null),
  3629. /**
  3630. * Whether to suppress warnings.
  3631. */
  3632. silent: false,
  3633. /**
  3634. * Show production mode tip message on boot?
  3635. */
  3636. productionTip: "development" !== 'production',
  3637. /**
  3638. * Whether to enable devtools
  3639. */
  3640. devtools: "development" !== 'production',
  3641. /**
  3642. * Whether to record perf
  3643. */
  3644. performance: false,
  3645. /**
  3646. * Error handler for watcher errors
  3647. */
  3648. errorHandler: null,
  3649. /**
  3650. * Warn handler for watcher warns
  3651. */
  3652. warnHandler: null,
  3653. /**
  3654. * Ignore certain custom elements
  3655. */
  3656. ignoredElements: [],
  3657. /**
  3658. * Custom user key aliases for v-on
  3659. */
  3660. // $flow-disable-line
  3661. keyCodes: Object.create(null),
  3662. /**
  3663. * Check if a tag is reserved so that it cannot be registered as a
  3664. * component. This is platform-dependent and may be overwritten.
  3665. */
  3666. isReservedTag: no,
  3667. /**
  3668. * Check if an attribute is reserved so that it cannot be used as a component
  3669. * prop. This is platform-dependent and may be overwritten.
  3670. */
  3671. isReservedAttr: no,
  3672. /**
  3673. * Check if a tag is an unknown element.
  3674. * Platform-dependent.
  3675. */
  3676. isUnknownElement: no,
  3677. /**
  3678. * Get the namespace of an element
  3679. */
  3680. getTagNamespace: noop,
  3681. /**
  3682. * Parse the real tag name for the specific platform.
  3683. */
  3684. parsePlatformTagName: identity,
  3685. /**
  3686. * Check if an attribute must be bound using property, e.g. value
  3687. * Platform-dependent.
  3688. */
  3689. mustUseProp: no,
  3690. /**
  3691. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3692. * This will significantly reduce performance if set to false.
  3693. */
  3694. async: true,
  3695. /**
  3696. * Exposed for legacy reasons
  3697. */
  3698. _lifecycleHooks: LIFECYCLE_HOOKS
  3699. });
  3700. /* */
  3701. /**
  3702. * unicode letters used for parsing html tags, component names and property paths.
  3703. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3704. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3705. */
  3706. var unicodeRegExp = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;
  3707. /**
  3708. * Check if a string starts with $ or _
  3709. */
  3710. function isReserved (str) {
  3711. var c = (str + '').charCodeAt(0);
  3712. return c === 0x24 || c === 0x5F
  3713. }
  3714. /**
  3715. * Define a property.
  3716. */
  3717. function def (obj, key, val, enumerable) {
  3718. Object.defineProperty(obj, key, {
  3719. value: val,
  3720. enumerable: !!enumerable,
  3721. writable: true,
  3722. configurable: true
  3723. });
  3724. }
  3725. /**
  3726. * Parse simple path.
  3727. */
  3728. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3729. function parsePath (path) {
  3730. if (bailRE.test(path)) {
  3731. return
  3732. }
  3733. var segments = path.split('.');
  3734. return function (obj) {
  3735. for (var i = 0; i < segments.length; i++) {
  3736. if (!obj) { return }
  3737. obj = obj[segments[i]];
  3738. }
  3739. return obj
  3740. }
  3741. }
  3742. /* */
  3743. // can we use __proto__?
  3744. var hasProto = '__proto__' in {};
  3745. // Browser environment sniffing
  3746. var inBrowser = typeof window !== 'undefined';
  3747. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3748. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3749. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  3750. var isIE = UA && /msie|trident/.test(UA);
  3751. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3752. var isEdge = UA && UA.indexOf('edge/') > 0;
  3753. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3754. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3755. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3756. var isPhantomJS = UA && /phantomjs/.test(UA);
  3757. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3758. // Firefox has a "watch" function on Object.prototype...
  3759. var nativeWatch = ({}).watch;
  3760. if (inBrowser) {
  3761. try {
  3762. var opts = {};
  3763. Object.defineProperty(opts, 'passive', ({
  3764. get: function get () {
  3765. }
  3766. })); // https://github.com/facebook/flow/issues/285
  3767. window.addEventListener('test-passive', null, opts);
  3768. } catch (e) {}
  3769. }
  3770. // this needs to be lazy-evaled because vue may be required before
  3771. // vue-server-renderer can set VUE_ENV
  3772. var _isServer;
  3773. var isServerRendering = function () {
  3774. if (_isServer === undefined) {
  3775. /* istanbul ignore if */
  3776. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3777. // detect presence of vue-server-renderer and avoid
  3778. // Webpack shimming the process
  3779. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3780. } else {
  3781. _isServer = false;
  3782. }
  3783. }
  3784. return _isServer
  3785. };
  3786. // detect devtools
  3787. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3788. /* istanbul ignore next */
  3789. function isNative (Ctor) {
  3790. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3791. }
  3792. var hasSymbol =
  3793. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3794. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3795. var _Set;
  3796. /* istanbul ignore if */ // $flow-disable-line
  3797. if (typeof Set !== 'undefined' && isNative(Set)) {
  3798. // use native Set when available.
  3799. _Set = Set;
  3800. } else {
  3801. // a non-standard Set polyfill that only works with primitive keys.
  3802. _Set = /*@__PURE__*/(function () {
  3803. function Set () {
  3804. this.set = Object.create(null);
  3805. }
  3806. Set.prototype.has = function has (key) {
  3807. return this.set[key] === true
  3808. };
  3809. Set.prototype.add = function add (key) {
  3810. this.set[key] = true;
  3811. };
  3812. Set.prototype.clear = function clear () {
  3813. this.set = Object.create(null);
  3814. };
  3815. return Set;
  3816. }());
  3817. }
  3818. /* */
  3819. var warn = noop;
  3820. var tip = noop;
  3821. var generateComponentTrace = (noop); // work around flow check
  3822. var formatComponentName = (noop);
  3823. if (true) {
  3824. var hasConsole = typeof console !== 'undefined';
  3825. var classifyRE = /(?:^|[-_])(\w)/g;
  3826. var classify = function (str) { return str
  3827. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3828. .replace(/[-_]/g, ''); };
  3829. warn = function (msg, vm) {
  3830. var trace = vm ? generateComponentTrace(vm) : '';
  3831. if (config.warnHandler) {
  3832. config.warnHandler.call(null, msg, vm, trace);
  3833. } else if (hasConsole && (!config.silent)) {
  3834. console.error(("[Vue warn]: " + msg + trace));
  3835. }
  3836. };
  3837. tip = function (msg, vm) {
  3838. if (hasConsole && (!config.silent)) {
  3839. console.warn("[Vue tip]: " + msg + (
  3840. vm ? generateComponentTrace(vm) : ''
  3841. ));
  3842. }
  3843. };
  3844. formatComponentName = function (vm, includeFile) {
  3845. if (vm.$root === vm) {
  3846. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3847. return ('') + vm.$options.__file
  3848. }
  3849. return '<Root>'
  3850. }
  3851. var options = typeof vm === 'function' && vm.cid != null
  3852. ? vm.options
  3853. : vm._isVue
  3854. ? vm.$options || vm.constructor.options
  3855. : vm;
  3856. var name = options.name || options._componentTag;
  3857. var file = options.__file;
  3858. if (!name && file) {
  3859. var match = file.match(/([^/\\]+)\.vue$/);
  3860. name = match && match[1];
  3861. }
  3862. return (
  3863. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3864. (file && includeFile !== false ? (" at " + file) : '')
  3865. )
  3866. };
  3867. var repeat = function (str, n) {
  3868. var res = '';
  3869. while (n) {
  3870. if (n % 2 === 1) { res += str; }
  3871. if (n > 1) { str += str; }
  3872. n >>= 1;
  3873. }
  3874. return res
  3875. };
  3876. generateComponentTrace = function (vm) {
  3877. if (vm._isVue && vm.$parent) {
  3878. var tree = [];
  3879. var currentRecursiveSequence = 0;
  3880. while (vm && vm.$options.name !== 'PageBody') {
  3881. if (tree.length > 0) {
  3882. var last = tree[tree.length - 1];
  3883. if (last.constructor === vm.constructor) {
  3884. currentRecursiveSequence++;
  3885. vm = vm.$parent;
  3886. continue
  3887. } else if (currentRecursiveSequence > 0) {
  3888. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3889. currentRecursiveSequence = 0;
  3890. }
  3891. }
  3892. !vm.$options.isReserved && tree.push(vm);
  3893. vm = vm.$parent;
  3894. }
  3895. return '\n\nfound in\n\n' + tree
  3896. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3897. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3898. : formatComponentName(vm))); })
  3899. .join('\n')
  3900. } else {
  3901. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3902. }
  3903. };
  3904. }
  3905. /* */
  3906. var uid = 0;
  3907. /**
  3908. * A dep is an observable that can have multiple
  3909. * directives subscribing to it.
  3910. */
  3911. var Dep = function Dep () {
  3912. this.id = uid++;
  3913. this.subs = [];
  3914. };
  3915. Dep.prototype.addSub = function addSub (sub) {
  3916. this.subs.push(sub);
  3917. };
  3918. Dep.prototype.removeSub = function removeSub (sub) {
  3919. remove(this.subs, sub);
  3920. };
  3921. Dep.prototype.depend = function depend () {
  3922. if (Dep.SharedObject.target) {
  3923. Dep.SharedObject.target.addDep(this);
  3924. }
  3925. };
  3926. Dep.prototype.notify = function notify () {
  3927. // stabilize the subscriber list first
  3928. var subs = this.subs.slice();
  3929. if ( true && !config.async) {
  3930. // subs aren't sorted in scheduler if not running async
  3931. // we need to sort them now to make sure they fire in correct
  3932. // order
  3933. subs.sort(function (a, b) { return a.id - b.id; });
  3934. }
  3935. for (var i = 0, l = subs.length; i < l; i++) {
  3936. subs[i].update();
  3937. }
  3938. };
  3939. // The current target watcher being evaluated.
  3940. // This is globally unique because only one watcher
  3941. // can be evaluated at a time.
  3942. // fixed by xxxxxx (nvue shared vuex)
  3943. /* eslint-disable no-undef */
  3944. Dep.SharedObject = {};
  3945. Dep.SharedObject.target = null;
  3946. Dep.SharedObject.targetStack = [];
  3947. function pushTarget (target) {
  3948. Dep.SharedObject.targetStack.push(target);
  3949. Dep.SharedObject.target = target;
  3950. Dep.target = target;
  3951. }
  3952. function popTarget () {
  3953. Dep.SharedObject.targetStack.pop();
  3954. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3955. Dep.target = Dep.SharedObject.target;
  3956. }
  3957. /* */
  3958. var VNode = function VNode (
  3959. tag,
  3960. data,
  3961. children,
  3962. text,
  3963. elm,
  3964. context,
  3965. componentOptions,
  3966. asyncFactory
  3967. ) {
  3968. this.tag = tag;
  3969. this.data = data;
  3970. this.children = children;
  3971. this.text = text;
  3972. this.elm = elm;
  3973. this.ns = undefined;
  3974. this.context = context;
  3975. this.fnContext = undefined;
  3976. this.fnOptions = undefined;
  3977. this.fnScopeId = undefined;
  3978. this.key = data && data.key;
  3979. this.componentOptions = componentOptions;
  3980. this.componentInstance = undefined;
  3981. this.parent = undefined;
  3982. this.raw = false;
  3983. this.isStatic = false;
  3984. this.isRootInsert = true;
  3985. this.isComment = false;
  3986. this.isCloned = false;
  3987. this.isOnce = false;
  3988. this.asyncFactory = asyncFactory;
  3989. this.asyncMeta = undefined;
  3990. this.isAsyncPlaceholder = false;
  3991. };
  3992. var prototypeAccessors = { child: { configurable: true } };
  3993. // DEPRECATED: alias for componentInstance for backwards compat.
  3994. /* istanbul ignore next */
  3995. prototypeAccessors.child.get = function () {
  3996. return this.componentInstance
  3997. };
  3998. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3999. var createEmptyVNode = function (text) {
  4000. if ( text === void 0 ) text = '';
  4001. var node = new VNode();
  4002. node.text = text;
  4003. node.isComment = true;
  4004. return node
  4005. };
  4006. function createTextVNode (val) {
  4007. return new VNode(undefined, undefined, undefined, String(val))
  4008. }
  4009. // optimized shallow clone
  4010. // used for static nodes and slot nodes because they may be reused across
  4011. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4012. // on their elm reference.
  4013. function cloneVNode (vnode) {
  4014. var cloned = new VNode(
  4015. vnode.tag,
  4016. vnode.data,
  4017. // #7975
  4018. // clone children array to avoid mutating original in case of cloning
  4019. // a child.
  4020. vnode.children && vnode.children.slice(),
  4021. vnode.text,
  4022. vnode.elm,
  4023. vnode.context,
  4024. vnode.componentOptions,
  4025. vnode.asyncFactory
  4026. );
  4027. cloned.ns = vnode.ns;
  4028. cloned.isStatic = vnode.isStatic;
  4029. cloned.key = vnode.key;
  4030. cloned.isComment = vnode.isComment;
  4031. cloned.fnContext = vnode.fnContext;
  4032. cloned.fnOptions = vnode.fnOptions;
  4033. cloned.fnScopeId = vnode.fnScopeId;
  4034. cloned.asyncMeta = vnode.asyncMeta;
  4035. cloned.isCloned = true;
  4036. return cloned
  4037. }
  4038. /*
  4039. * not type checking this file because flow doesn't play well with
  4040. * dynamically accessing methods on Array prototype
  4041. */
  4042. var arrayProto = Array.prototype;
  4043. var arrayMethods = Object.create(arrayProto);
  4044. var methodsToPatch = [
  4045. 'push',
  4046. 'pop',
  4047. 'shift',
  4048. 'unshift',
  4049. 'splice',
  4050. 'sort',
  4051. 'reverse'
  4052. ];
  4053. /**
  4054. * Intercept mutating methods and emit events
  4055. */
  4056. methodsToPatch.forEach(function (method) {
  4057. // cache original method
  4058. var original = arrayProto[method];
  4059. def(arrayMethods, method, function mutator () {
  4060. var args = [], len = arguments.length;
  4061. while ( len-- ) args[ len ] = arguments[ len ];
  4062. var result = original.apply(this, args);
  4063. var ob = this.__ob__;
  4064. var inserted;
  4065. switch (method) {
  4066. case 'push':
  4067. case 'unshift':
  4068. inserted = args;
  4069. break
  4070. case 'splice':
  4071. inserted = args.slice(2);
  4072. break
  4073. }
  4074. if (inserted) { ob.observeArray(inserted); }
  4075. // notify change
  4076. ob.dep.notify();
  4077. return result
  4078. });
  4079. });
  4080. /* */
  4081. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4082. /**
  4083. * In some cases we may want to disable observation inside a component's
  4084. * update computation.
  4085. */
  4086. var shouldObserve = true;
  4087. function toggleObserving (value) {
  4088. shouldObserve = value;
  4089. }
  4090. /**
  4091. * Observer class that is attached to each observed
  4092. * object. Once attached, the observer converts the target
  4093. * object's property keys into getter/setters that
  4094. * collect dependencies and dispatch updates.
  4095. */
  4096. var Observer = function Observer (value) {
  4097. this.value = value;
  4098. this.dep = new Dep();
  4099. this.vmCount = 0;
  4100. def(value, '__ob__', this);
  4101. if (Array.isArray(value)) {
  4102. if (hasProto) {
  4103. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4104. if(value.push !== value.__proto__.push){
  4105. copyAugment(value, arrayMethods, arrayKeys);
  4106. } else {
  4107. protoAugment(value, arrayMethods);
  4108. }
  4109. }
  4110. } else {
  4111. copyAugment(value, arrayMethods, arrayKeys);
  4112. }
  4113. this.observeArray(value);
  4114. } else {
  4115. this.walk(value);
  4116. }
  4117. };
  4118. /**
  4119. * Walk through all properties and convert them into
  4120. * getter/setters. This method should only be called when
  4121. * value type is Object.
  4122. */
  4123. Observer.prototype.walk = function walk (obj) {
  4124. var keys = Object.keys(obj);
  4125. for (var i = 0; i < keys.length; i++) {
  4126. defineReactive$$1(obj, keys[i]);
  4127. }
  4128. };
  4129. /**
  4130. * Observe a list of Array items.
  4131. */
  4132. Observer.prototype.observeArray = function observeArray (items) {
  4133. for (var i = 0, l = items.length; i < l; i++) {
  4134. observe(items[i]);
  4135. }
  4136. };
  4137. // helpers
  4138. /**
  4139. * Augment a target Object or Array by intercepting
  4140. * the prototype chain using __proto__
  4141. */
  4142. function protoAugment (target, src) {
  4143. /* eslint-disable no-proto */
  4144. target.__proto__ = src;
  4145. /* eslint-enable no-proto */
  4146. }
  4147. /**
  4148. * Augment a target Object or Array by defining
  4149. * hidden properties.
  4150. */
  4151. /* istanbul ignore next */
  4152. function copyAugment (target, src, keys) {
  4153. for (var i = 0, l = keys.length; i < l; i++) {
  4154. var key = keys[i];
  4155. def(target, key, src[key]);
  4156. }
  4157. }
  4158. /**
  4159. * Attempt to create an observer instance for a value,
  4160. * returns the new observer if successfully observed,
  4161. * or the existing observer if the value already has one.
  4162. */
  4163. function observe (value, asRootData) {
  4164. if (!isObject(value) || value instanceof VNode) {
  4165. return
  4166. }
  4167. var ob;
  4168. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4169. ob = value.__ob__;
  4170. } else if (
  4171. shouldObserve &&
  4172. !isServerRendering() &&
  4173. (Array.isArray(value) || isPlainObject(value)) &&
  4174. Object.isExtensible(value) &&
  4175. !value._isVue &&
  4176. !value.__v_isMPComponent
  4177. ) {
  4178. ob = new Observer(value);
  4179. }
  4180. if (asRootData && ob) {
  4181. ob.vmCount++;
  4182. }
  4183. return ob
  4184. }
  4185. /**
  4186. * Define a reactive property on an Object.
  4187. */
  4188. function defineReactive$$1 (
  4189. obj,
  4190. key,
  4191. val,
  4192. customSetter,
  4193. shallow
  4194. ) {
  4195. var dep = new Dep();
  4196. var property = Object.getOwnPropertyDescriptor(obj, key);
  4197. if (property && property.configurable === false) {
  4198. return
  4199. }
  4200. // cater for pre-defined getter/setters
  4201. var getter = property && property.get;
  4202. var setter = property && property.set;
  4203. if ((!getter || setter) && arguments.length === 2) {
  4204. val = obj[key];
  4205. }
  4206. var childOb = !shallow && observe(val);
  4207. Object.defineProperty(obj, key, {
  4208. enumerable: true,
  4209. configurable: true,
  4210. get: function reactiveGetter () {
  4211. var value = getter ? getter.call(obj) : val;
  4212. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4213. dep.depend();
  4214. if (childOb) {
  4215. childOb.dep.depend();
  4216. if (Array.isArray(value)) {
  4217. dependArray(value);
  4218. }
  4219. }
  4220. }
  4221. return value
  4222. },
  4223. set: function reactiveSetter (newVal) {
  4224. var value = getter ? getter.call(obj) : val;
  4225. /* eslint-disable no-self-compare */
  4226. if (newVal === value || (newVal !== newVal && value !== value)) {
  4227. return
  4228. }
  4229. /* eslint-enable no-self-compare */
  4230. if ( true && customSetter) {
  4231. customSetter();
  4232. }
  4233. // #7981: for accessor properties without setter
  4234. if (getter && !setter) { return }
  4235. if (setter) {
  4236. setter.call(obj, newVal);
  4237. } else {
  4238. val = newVal;
  4239. }
  4240. childOb = !shallow && observe(newVal);
  4241. dep.notify();
  4242. }
  4243. });
  4244. }
  4245. /**
  4246. * Set a property on an object. Adds the new property and
  4247. * triggers change notification if the property doesn't
  4248. * already exist.
  4249. */
  4250. function set (target, key, val) {
  4251. if ( true &&
  4252. (isUndef(target) || isPrimitive(target))
  4253. ) {
  4254. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4255. }
  4256. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4257. target.length = Math.max(target.length, key);
  4258. target.splice(key, 1, val);
  4259. return val
  4260. }
  4261. if (key in target && !(key in Object.prototype)) {
  4262. target[key] = val;
  4263. return val
  4264. }
  4265. var ob = (target).__ob__;
  4266. if (target._isVue || (ob && ob.vmCount)) {
  4267. true && warn(
  4268. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4269. 'at runtime - declare it upfront in the data option.'
  4270. );
  4271. return val
  4272. }
  4273. if (!ob) {
  4274. target[key] = val;
  4275. return val
  4276. }
  4277. defineReactive$$1(ob.value, key, val);
  4278. ob.dep.notify();
  4279. return val
  4280. }
  4281. /**
  4282. * Delete a property and trigger change if necessary.
  4283. */
  4284. function del (target, key) {
  4285. if ( true &&
  4286. (isUndef(target) || isPrimitive(target))
  4287. ) {
  4288. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4289. }
  4290. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4291. target.splice(key, 1);
  4292. return
  4293. }
  4294. var ob = (target).__ob__;
  4295. if (target._isVue || (ob && ob.vmCount)) {
  4296. true && warn(
  4297. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4298. '- just set it to null.'
  4299. );
  4300. return
  4301. }
  4302. if (!hasOwn(target, key)) {
  4303. return
  4304. }
  4305. delete target[key];
  4306. if (!ob) {
  4307. return
  4308. }
  4309. ob.dep.notify();
  4310. }
  4311. /**
  4312. * Collect dependencies on array elements when the array is touched, since
  4313. * we cannot intercept array element access like property getters.
  4314. */
  4315. function dependArray (value) {
  4316. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4317. e = value[i];
  4318. e && e.__ob__ && e.__ob__.dep.depend();
  4319. if (Array.isArray(e)) {
  4320. dependArray(e);
  4321. }
  4322. }
  4323. }
  4324. /* */
  4325. /**
  4326. * Option overwriting strategies are functions that handle
  4327. * how to merge a parent option value and a child option
  4328. * value into the final value.
  4329. */
  4330. var strats = config.optionMergeStrategies;
  4331. /**
  4332. * Options with restrictions
  4333. */
  4334. if (true) {
  4335. strats.el = strats.propsData = function (parent, child, vm, key) {
  4336. if (!vm) {
  4337. warn(
  4338. "option \"" + key + "\" can only be used during instance " +
  4339. 'creation with the `new` keyword.'
  4340. );
  4341. }
  4342. return defaultStrat(parent, child)
  4343. };
  4344. }
  4345. /**
  4346. * Helper that recursively merges two data objects together.
  4347. */
  4348. function mergeData (to, from) {
  4349. if (!from) { return to }
  4350. var key, toVal, fromVal;
  4351. var keys = hasSymbol
  4352. ? Reflect.ownKeys(from)
  4353. : Object.keys(from);
  4354. for (var i = 0; i < keys.length; i++) {
  4355. key = keys[i];
  4356. // in case the object is already observed...
  4357. if (key === '__ob__') { continue }
  4358. toVal = to[key];
  4359. fromVal = from[key];
  4360. if (!hasOwn(to, key)) {
  4361. set(to, key, fromVal);
  4362. } else if (
  4363. toVal !== fromVal &&
  4364. isPlainObject(toVal) &&
  4365. isPlainObject(fromVal)
  4366. ) {
  4367. mergeData(toVal, fromVal);
  4368. }
  4369. }
  4370. return to
  4371. }
  4372. /**
  4373. * Data
  4374. */
  4375. function mergeDataOrFn (
  4376. parentVal,
  4377. childVal,
  4378. vm
  4379. ) {
  4380. if (!vm) {
  4381. // in a Vue.extend merge, both should be functions
  4382. if (!childVal) {
  4383. return parentVal
  4384. }
  4385. if (!parentVal) {
  4386. return childVal
  4387. }
  4388. // when parentVal & childVal are both present,
  4389. // we need to return a function that returns the
  4390. // merged result of both functions... no need to
  4391. // check if parentVal is a function here because
  4392. // it has to be a function to pass previous merges.
  4393. return function mergedDataFn () {
  4394. return mergeData(
  4395. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4396. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4397. )
  4398. }
  4399. } else {
  4400. return function mergedInstanceDataFn () {
  4401. // instance merge
  4402. var instanceData = typeof childVal === 'function'
  4403. ? childVal.call(vm, vm)
  4404. : childVal;
  4405. var defaultData = typeof parentVal === 'function'
  4406. ? parentVal.call(vm, vm)
  4407. : parentVal;
  4408. if (instanceData) {
  4409. return mergeData(instanceData, defaultData)
  4410. } else {
  4411. return defaultData
  4412. }
  4413. }
  4414. }
  4415. }
  4416. strats.data = function (
  4417. parentVal,
  4418. childVal,
  4419. vm
  4420. ) {
  4421. if (!vm) {
  4422. if (childVal && typeof childVal !== 'function') {
  4423. true && warn(
  4424. 'The "data" option should be a function ' +
  4425. 'that returns a per-instance value in component ' +
  4426. 'definitions.',
  4427. vm
  4428. );
  4429. return parentVal
  4430. }
  4431. return mergeDataOrFn(parentVal, childVal)
  4432. }
  4433. return mergeDataOrFn(parentVal, childVal, vm)
  4434. };
  4435. /**
  4436. * Hooks and props are merged as arrays.
  4437. */
  4438. function mergeHook (
  4439. parentVal,
  4440. childVal
  4441. ) {
  4442. var res = childVal
  4443. ? parentVal
  4444. ? parentVal.concat(childVal)
  4445. : Array.isArray(childVal)
  4446. ? childVal
  4447. : [childVal]
  4448. : parentVal;
  4449. return res
  4450. ? dedupeHooks(res)
  4451. : res
  4452. }
  4453. function dedupeHooks (hooks) {
  4454. var res = [];
  4455. for (var i = 0; i < hooks.length; i++) {
  4456. if (res.indexOf(hooks[i]) === -1) {
  4457. res.push(hooks[i]);
  4458. }
  4459. }
  4460. return res
  4461. }
  4462. LIFECYCLE_HOOKS.forEach(function (hook) {
  4463. strats[hook] = mergeHook;
  4464. });
  4465. /**
  4466. * Assets
  4467. *
  4468. * When a vm is present (instance creation), we need to do
  4469. * a three-way merge between constructor options, instance
  4470. * options and parent options.
  4471. */
  4472. function mergeAssets (
  4473. parentVal,
  4474. childVal,
  4475. vm,
  4476. key
  4477. ) {
  4478. var res = Object.create(parentVal || null);
  4479. if (childVal) {
  4480. true && assertObjectType(key, childVal, vm);
  4481. return extend(res, childVal)
  4482. } else {
  4483. return res
  4484. }
  4485. }
  4486. ASSET_TYPES.forEach(function (type) {
  4487. strats[type + 's'] = mergeAssets;
  4488. });
  4489. /**
  4490. * Watchers.
  4491. *
  4492. * Watchers hashes should not overwrite one
  4493. * another, so we merge them as arrays.
  4494. */
  4495. strats.watch = function (
  4496. parentVal,
  4497. childVal,
  4498. vm,
  4499. key
  4500. ) {
  4501. // work around Firefox's Object.prototype.watch...
  4502. if (parentVal === nativeWatch) { parentVal = undefined; }
  4503. if (childVal === nativeWatch) { childVal = undefined; }
  4504. /* istanbul ignore if */
  4505. if (!childVal) { return Object.create(parentVal || null) }
  4506. if (true) {
  4507. assertObjectType(key, childVal, vm);
  4508. }
  4509. if (!parentVal) { return childVal }
  4510. var ret = {};
  4511. extend(ret, parentVal);
  4512. for (var key$1 in childVal) {
  4513. var parent = ret[key$1];
  4514. var child = childVal[key$1];
  4515. if (parent && !Array.isArray(parent)) {
  4516. parent = [parent];
  4517. }
  4518. ret[key$1] = parent
  4519. ? parent.concat(child)
  4520. : Array.isArray(child) ? child : [child];
  4521. }
  4522. return ret
  4523. };
  4524. /**
  4525. * Other object hashes.
  4526. */
  4527. strats.props =
  4528. strats.methods =
  4529. strats.inject =
  4530. strats.computed = function (
  4531. parentVal,
  4532. childVal,
  4533. vm,
  4534. key
  4535. ) {
  4536. if (childVal && "development" !== 'production') {
  4537. assertObjectType(key, childVal, vm);
  4538. }
  4539. if (!parentVal) { return childVal }
  4540. var ret = Object.create(null);
  4541. extend(ret, parentVal);
  4542. if (childVal) { extend(ret, childVal); }
  4543. return ret
  4544. };
  4545. strats.provide = mergeDataOrFn;
  4546. /**
  4547. * Default strategy.
  4548. */
  4549. var defaultStrat = function (parentVal, childVal) {
  4550. return childVal === undefined
  4551. ? parentVal
  4552. : childVal
  4553. };
  4554. /**
  4555. * Validate component names
  4556. */
  4557. function checkComponents (options) {
  4558. for (var key in options.components) {
  4559. validateComponentName(key);
  4560. }
  4561. }
  4562. function validateComponentName (name) {
  4563. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4564. warn(
  4565. 'Invalid component name: "' + name + '". Component names ' +
  4566. 'should conform to valid custom element name in html5 specification.'
  4567. );
  4568. }
  4569. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4570. warn(
  4571. 'Do not use built-in or reserved HTML elements as component ' +
  4572. 'id: ' + name
  4573. );
  4574. }
  4575. }
  4576. /**
  4577. * Ensure all props option syntax are normalized into the
  4578. * Object-based format.
  4579. */
  4580. function normalizeProps (options, vm) {
  4581. var props = options.props;
  4582. if (!props) { return }
  4583. var res = {};
  4584. var i, val, name;
  4585. if (Array.isArray(props)) {
  4586. i = props.length;
  4587. while (i--) {
  4588. val = props[i];
  4589. if (typeof val === 'string') {
  4590. name = camelize(val);
  4591. res[name] = { type: null };
  4592. } else if (true) {
  4593. warn('props must be strings when using array syntax.');
  4594. }
  4595. }
  4596. } else if (isPlainObject(props)) {
  4597. for (var key in props) {
  4598. val = props[key];
  4599. name = camelize(key);
  4600. res[name] = isPlainObject(val)
  4601. ? val
  4602. : { type: val };
  4603. }
  4604. } else if (true) {
  4605. warn(
  4606. "Invalid value for option \"props\": expected an Array or an Object, " +
  4607. "but got " + (toRawType(props)) + ".",
  4608. vm
  4609. );
  4610. }
  4611. options.props = res;
  4612. }
  4613. /**
  4614. * Normalize all injections into Object-based format
  4615. */
  4616. function normalizeInject (options, vm) {
  4617. var inject = options.inject;
  4618. if (!inject) { return }
  4619. var normalized = options.inject = {};
  4620. if (Array.isArray(inject)) {
  4621. for (var i = 0; i < inject.length; i++) {
  4622. normalized[inject[i]] = { from: inject[i] };
  4623. }
  4624. } else if (isPlainObject(inject)) {
  4625. for (var key in inject) {
  4626. var val = inject[key];
  4627. normalized[key] = isPlainObject(val)
  4628. ? extend({ from: key }, val)
  4629. : { from: val };
  4630. }
  4631. } else if (true) {
  4632. warn(
  4633. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4634. "but got " + (toRawType(inject)) + ".",
  4635. vm
  4636. );
  4637. }
  4638. }
  4639. /**
  4640. * Normalize raw function directives into object format.
  4641. */
  4642. function normalizeDirectives (options) {
  4643. var dirs = options.directives;
  4644. if (dirs) {
  4645. for (var key in dirs) {
  4646. var def$$1 = dirs[key];
  4647. if (typeof def$$1 === 'function') {
  4648. dirs[key] = { bind: def$$1, update: def$$1 };
  4649. }
  4650. }
  4651. }
  4652. }
  4653. function assertObjectType (name, value, vm) {
  4654. if (!isPlainObject(value)) {
  4655. warn(
  4656. "Invalid value for option \"" + name + "\": expected an Object, " +
  4657. "but got " + (toRawType(value)) + ".",
  4658. vm
  4659. );
  4660. }
  4661. }
  4662. /**
  4663. * Merge two option objects into a new one.
  4664. * Core utility used in both instantiation and inheritance.
  4665. */
  4666. function mergeOptions (
  4667. parent,
  4668. child,
  4669. vm
  4670. ) {
  4671. if (true) {
  4672. checkComponents(child);
  4673. }
  4674. if (typeof child === 'function') {
  4675. child = child.options;
  4676. }
  4677. normalizeProps(child, vm);
  4678. normalizeInject(child, vm);
  4679. normalizeDirectives(child);
  4680. // Apply extends and mixins on the child options,
  4681. // but only if it is a raw options object that isn't
  4682. // the result of another mergeOptions call.
  4683. // Only merged options has the _base property.
  4684. if (!child._base) {
  4685. if (child.extends) {
  4686. parent = mergeOptions(parent, child.extends, vm);
  4687. }
  4688. if (child.mixins) {
  4689. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4690. parent = mergeOptions(parent, child.mixins[i], vm);
  4691. }
  4692. }
  4693. }
  4694. var options = {};
  4695. var key;
  4696. for (key in parent) {
  4697. mergeField(key);
  4698. }
  4699. for (key in child) {
  4700. if (!hasOwn(parent, key)) {
  4701. mergeField(key);
  4702. }
  4703. }
  4704. function mergeField (key) {
  4705. var strat = strats[key] || defaultStrat;
  4706. options[key] = strat(parent[key], child[key], vm, key);
  4707. }
  4708. return options
  4709. }
  4710. /**
  4711. * Resolve an asset.
  4712. * This function is used because child instances need access
  4713. * to assets defined in its ancestor chain.
  4714. */
  4715. function resolveAsset (
  4716. options,
  4717. type,
  4718. id,
  4719. warnMissing
  4720. ) {
  4721. /* istanbul ignore if */
  4722. if (typeof id !== 'string') {
  4723. return
  4724. }
  4725. var assets = options[type];
  4726. // check local registration variations first
  4727. if (hasOwn(assets, id)) { return assets[id] }
  4728. var camelizedId = camelize(id);
  4729. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4730. var PascalCaseId = capitalize(camelizedId);
  4731. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4732. // fallback to prototype chain
  4733. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4734. if ( true && warnMissing && !res) {
  4735. warn(
  4736. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4737. options
  4738. );
  4739. }
  4740. return res
  4741. }
  4742. /* */
  4743. function validateProp (
  4744. key,
  4745. propOptions,
  4746. propsData,
  4747. vm
  4748. ) {
  4749. var prop = propOptions[key];
  4750. var absent = !hasOwn(propsData, key);
  4751. var value = propsData[key];
  4752. // boolean casting
  4753. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4754. if (booleanIndex > -1) {
  4755. if (absent && !hasOwn(prop, 'default')) {
  4756. value = false;
  4757. } else if (value === '' || value === hyphenate(key)) {
  4758. // only cast empty string / same name to boolean if
  4759. // boolean has higher priority
  4760. var stringIndex = getTypeIndex(String, prop.type);
  4761. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4762. value = true;
  4763. }
  4764. }
  4765. }
  4766. // check default value
  4767. if (value === undefined) {
  4768. value = getPropDefaultValue(vm, prop, key);
  4769. // since the default value is a fresh copy,
  4770. // make sure to observe it.
  4771. var prevShouldObserve = shouldObserve;
  4772. toggleObserving(true);
  4773. observe(value);
  4774. toggleObserving(prevShouldObserve);
  4775. }
  4776. if (
  4777. true
  4778. ) {
  4779. assertProp(prop, key, value, vm, absent);
  4780. }
  4781. return value
  4782. }
  4783. /**
  4784. * Get the default value of a prop.
  4785. */
  4786. function getPropDefaultValue (vm, prop, key) {
  4787. // no default, return undefined
  4788. if (!hasOwn(prop, 'default')) {
  4789. return undefined
  4790. }
  4791. var def = prop.default;
  4792. // warn against non-factory defaults for Object & Array
  4793. if ( true && isObject(def)) {
  4794. warn(
  4795. 'Invalid default value for prop "' + key + '": ' +
  4796. 'Props with type Object/Array must use a factory function ' +
  4797. 'to return the default value.',
  4798. vm
  4799. );
  4800. }
  4801. // the raw prop value was also undefined from previous render,
  4802. // return previous default value to avoid unnecessary watcher trigger
  4803. if (vm && vm.$options.propsData &&
  4804. vm.$options.propsData[key] === undefined &&
  4805. vm._props[key] !== undefined
  4806. ) {
  4807. return vm._props[key]
  4808. }
  4809. // call factory function for non-Function types
  4810. // a value is Function if its prototype is function even across different execution context
  4811. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4812. ? def.call(vm)
  4813. : def
  4814. }
  4815. /**
  4816. * Assert whether a prop is valid.
  4817. */
  4818. function assertProp (
  4819. prop,
  4820. name,
  4821. value,
  4822. vm,
  4823. absent
  4824. ) {
  4825. if (prop.required && absent) {
  4826. warn(
  4827. 'Missing required prop: "' + name + '"',
  4828. vm
  4829. );
  4830. return
  4831. }
  4832. if (value == null && !prop.required) {
  4833. return
  4834. }
  4835. var type = prop.type;
  4836. var valid = !type || type === true;
  4837. var expectedTypes = [];
  4838. if (type) {
  4839. if (!Array.isArray(type)) {
  4840. type = [type];
  4841. }
  4842. for (var i = 0; i < type.length && !valid; i++) {
  4843. var assertedType = assertType(value, type[i]);
  4844. expectedTypes.push(assertedType.expectedType || '');
  4845. valid = assertedType.valid;
  4846. }
  4847. }
  4848. if (!valid) {
  4849. warn(
  4850. getInvalidTypeMessage(name, value, expectedTypes),
  4851. vm
  4852. );
  4853. return
  4854. }
  4855. var validator = prop.validator;
  4856. if (validator) {
  4857. if (!validator(value)) {
  4858. warn(
  4859. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4860. vm
  4861. );
  4862. }
  4863. }
  4864. }
  4865. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4866. function assertType (value, type) {
  4867. var valid;
  4868. var expectedType = getType(type);
  4869. if (simpleCheckRE.test(expectedType)) {
  4870. var t = typeof value;
  4871. valid = t === expectedType.toLowerCase();
  4872. // for primitive wrapper objects
  4873. if (!valid && t === 'object') {
  4874. valid = value instanceof type;
  4875. }
  4876. } else if (expectedType === 'Object') {
  4877. valid = isPlainObject(value);
  4878. } else if (expectedType === 'Array') {
  4879. valid = Array.isArray(value);
  4880. } else {
  4881. valid = value instanceof type;
  4882. }
  4883. return {
  4884. valid: valid,
  4885. expectedType: expectedType
  4886. }
  4887. }
  4888. /**
  4889. * Use function string name to check built-in types,
  4890. * because a simple equality check will fail when running
  4891. * across different vms / iframes.
  4892. */
  4893. function getType (fn) {
  4894. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4895. return match ? match[1] : ''
  4896. }
  4897. function isSameType (a, b) {
  4898. return getType(a) === getType(b)
  4899. }
  4900. function getTypeIndex (type, expectedTypes) {
  4901. if (!Array.isArray(expectedTypes)) {
  4902. return isSameType(expectedTypes, type) ? 0 : -1
  4903. }
  4904. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4905. if (isSameType(expectedTypes[i], type)) {
  4906. return i
  4907. }
  4908. }
  4909. return -1
  4910. }
  4911. function getInvalidTypeMessage (name, value, expectedTypes) {
  4912. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4913. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4914. var expectedType = expectedTypes[0];
  4915. var receivedType = toRawType(value);
  4916. var expectedValue = styleValue(value, expectedType);
  4917. var receivedValue = styleValue(value, receivedType);
  4918. // check if we need to specify expected value
  4919. if (expectedTypes.length === 1 &&
  4920. isExplicable(expectedType) &&
  4921. !isBoolean(expectedType, receivedType)) {
  4922. message += " with value " + expectedValue;
  4923. }
  4924. message += ", got " + receivedType + " ";
  4925. // check if we need to specify received value
  4926. if (isExplicable(receivedType)) {
  4927. message += "with value " + receivedValue + ".";
  4928. }
  4929. return message
  4930. }
  4931. function styleValue (value, type) {
  4932. if (type === 'String') {
  4933. return ("\"" + value + "\"")
  4934. } else if (type === 'Number') {
  4935. return ("" + (Number(value)))
  4936. } else {
  4937. return ("" + value)
  4938. }
  4939. }
  4940. function isExplicable (value) {
  4941. var explicitTypes = ['string', 'number', 'boolean'];
  4942. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4943. }
  4944. function isBoolean () {
  4945. var args = [], len = arguments.length;
  4946. while ( len-- ) args[ len ] = arguments[ len ];
  4947. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4948. }
  4949. /* */
  4950. function handleError (err, vm, info) {
  4951. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4952. // See: https://github.com/vuejs/vuex/issues/1505
  4953. pushTarget();
  4954. try {
  4955. if (vm) {
  4956. var cur = vm;
  4957. while ((cur = cur.$parent)) {
  4958. var hooks = cur.$options.errorCaptured;
  4959. if (hooks) {
  4960. for (var i = 0; i < hooks.length; i++) {
  4961. try {
  4962. var capture = hooks[i].call(cur, err, vm, info) === false;
  4963. if (capture) { return }
  4964. } catch (e) {
  4965. globalHandleError(e, cur, 'errorCaptured hook');
  4966. }
  4967. }
  4968. }
  4969. }
  4970. }
  4971. globalHandleError(err, vm, info);
  4972. } finally {
  4973. popTarget();
  4974. }
  4975. }
  4976. function invokeWithErrorHandling (
  4977. handler,
  4978. context,
  4979. args,
  4980. vm,
  4981. info
  4982. ) {
  4983. var res;
  4984. try {
  4985. res = args ? handler.apply(context, args) : handler.call(context);
  4986. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4987. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4988. // issue #9511
  4989. // avoid catch triggering multiple times when nested calls
  4990. res._handled = true;
  4991. }
  4992. } catch (e) {
  4993. handleError(e, vm, info);
  4994. }
  4995. return res
  4996. }
  4997. function globalHandleError (err, vm, info) {
  4998. if (config.errorHandler) {
  4999. try {
  5000. return config.errorHandler.call(null, err, vm, info)
  5001. } catch (e) {
  5002. // if the user intentionally throws the original error in the handler,
  5003. // do not log it twice
  5004. if (e !== err) {
  5005. logError(e, null, 'config.errorHandler');
  5006. }
  5007. }
  5008. }
  5009. logError(err, vm, info);
  5010. }
  5011. function logError (err, vm, info) {
  5012. if (true) {
  5013. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5014. }
  5015. /* istanbul ignore else */
  5016. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5017. console.error(err);
  5018. } else {
  5019. throw err
  5020. }
  5021. }
  5022. /* */
  5023. var callbacks = [];
  5024. var pending = false;
  5025. function flushCallbacks () {
  5026. pending = false;
  5027. var copies = callbacks.slice(0);
  5028. callbacks.length = 0;
  5029. for (var i = 0; i < copies.length; i++) {
  5030. copies[i]();
  5031. }
  5032. }
  5033. // Here we have async deferring wrappers using microtasks.
  5034. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5035. // However, it has subtle problems when state is changed right before repaint
  5036. // (e.g. #6813, out-in transitions).
  5037. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5038. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5039. // So we now use microtasks everywhere, again.
  5040. // A major drawback of this tradeoff is that there are some scenarios
  5041. // where microtasks have too high a priority and fire in between supposedly
  5042. // sequential events (e.g. #4521, #6690, which have workarounds)
  5043. // or even between bubbling of the same event (#6566).
  5044. var timerFunc;
  5045. // The nextTick behavior leverages the microtask queue, which can be accessed
  5046. // via either native Promise.then or MutationObserver.
  5047. // MutationObserver has wider support, however it is seriously bugged in
  5048. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5049. // completely stops working after triggering a few times... so, if native
  5050. // Promise is available, we will use it:
  5051. /* istanbul ignore next, $flow-disable-line */
  5052. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5053. var p = Promise.resolve();
  5054. timerFunc = function () {
  5055. p.then(flushCallbacks);
  5056. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5057. // it can get stuck in a weird state where callbacks are pushed into the
  5058. // microtask queue but the queue isn't being flushed, until the browser
  5059. // needs to do some other work, e.g. handle a timer. Therefore we can
  5060. // "force" the microtask queue to be flushed by adding an empty timer.
  5061. if (isIOS) { setTimeout(noop); }
  5062. };
  5063. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5064. isNative(MutationObserver) ||
  5065. // PhantomJS and iOS 7.x
  5066. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5067. )) {
  5068. // Use MutationObserver where native Promise is not available,
  5069. // e.g. PhantomJS, iOS7, Android 4.4
  5070. // (#6466 MutationObserver is unreliable in IE11)
  5071. var counter = 1;
  5072. var observer = new MutationObserver(flushCallbacks);
  5073. var textNode = document.createTextNode(String(counter));
  5074. observer.observe(textNode, {
  5075. characterData: true
  5076. });
  5077. timerFunc = function () {
  5078. counter = (counter + 1) % 2;
  5079. textNode.data = String(counter);
  5080. };
  5081. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5082. // Fallback to setImmediate.
  5083. // Technically it leverages the (macro) task queue,
  5084. // but it is still a better choice than setTimeout.
  5085. timerFunc = function () {
  5086. setImmediate(flushCallbacks);
  5087. };
  5088. } else {
  5089. // Fallback to setTimeout.
  5090. timerFunc = function () {
  5091. setTimeout(flushCallbacks, 0);
  5092. };
  5093. }
  5094. function nextTick (cb, ctx) {
  5095. var _resolve;
  5096. callbacks.push(function () {
  5097. if (cb) {
  5098. try {
  5099. cb.call(ctx);
  5100. } catch (e) {
  5101. handleError(e, ctx, 'nextTick');
  5102. }
  5103. } else if (_resolve) {
  5104. _resolve(ctx);
  5105. }
  5106. });
  5107. if (!pending) {
  5108. pending = true;
  5109. timerFunc();
  5110. }
  5111. // $flow-disable-line
  5112. if (!cb && typeof Promise !== 'undefined') {
  5113. return new Promise(function (resolve) {
  5114. _resolve = resolve;
  5115. })
  5116. }
  5117. }
  5118. /* */
  5119. /* not type checking this file because flow doesn't play well with Proxy */
  5120. var initProxy;
  5121. if (true) {
  5122. var allowedGlobals = makeMap(
  5123. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5124. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5125. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5126. 'require' // for Webpack/Browserify
  5127. );
  5128. var warnNonPresent = function (target, key) {
  5129. warn(
  5130. "Property or method \"" + key + "\" is not defined on the instance but " +
  5131. 'referenced during render. Make sure that this property is reactive, ' +
  5132. 'either in the data option, or for class-based components, by ' +
  5133. 'initializing the property. ' +
  5134. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5135. target
  5136. );
  5137. };
  5138. var warnReservedPrefix = function (target, key) {
  5139. warn(
  5140. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5141. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5142. 'prevent conflicts with Vue internals. ' +
  5143. 'See: https://vuejs.org/v2/api/#data',
  5144. target
  5145. );
  5146. };
  5147. var hasProxy =
  5148. typeof Proxy !== 'undefined' && isNative(Proxy);
  5149. if (hasProxy) {
  5150. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5151. config.keyCodes = new Proxy(config.keyCodes, {
  5152. set: function set (target, key, value) {
  5153. if (isBuiltInModifier(key)) {
  5154. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5155. return false
  5156. } else {
  5157. target[key] = value;
  5158. return true
  5159. }
  5160. }
  5161. });
  5162. }
  5163. var hasHandler = {
  5164. has: function has (target, key) {
  5165. var has = key in target;
  5166. var isAllowed = allowedGlobals(key) ||
  5167. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5168. if (!has && !isAllowed) {
  5169. if (key in target.$data) { warnReservedPrefix(target, key); }
  5170. else { warnNonPresent(target, key); }
  5171. }
  5172. return has || !isAllowed
  5173. }
  5174. };
  5175. var getHandler = {
  5176. get: function get (target, key) {
  5177. if (typeof key === 'string' && !(key in target)) {
  5178. if (key in target.$data) { warnReservedPrefix(target, key); }
  5179. else { warnNonPresent(target, key); }
  5180. }
  5181. return target[key]
  5182. }
  5183. };
  5184. initProxy = function initProxy (vm) {
  5185. if (hasProxy) {
  5186. // determine which proxy handler to use
  5187. var options = vm.$options;
  5188. var handlers = options.render && options.render._withStripped
  5189. ? getHandler
  5190. : hasHandler;
  5191. vm._renderProxy = new Proxy(vm, handlers);
  5192. } else {
  5193. vm._renderProxy = vm;
  5194. }
  5195. };
  5196. }
  5197. /* */
  5198. var seenObjects = new _Set();
  5199. /**
  5200. * Recursively traverse an object to evoke all converted
  5201. * getters, so that every nested property inside the object
  5202. * is collected as a "deep" dependency.
  5203. */
  5204. function traverse (val) {
  5205. _traverse(val, seenObjects);
  5206. seenObjects.clear();
  5207. }
  5208. function _traverse (val, seen) {
  5209. var i, keys;
  5210. var isA = Array.isArray(val);
  5211. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5212. return
  5213. }
  5214. if (val.__ob__) {
  5215. var depId = val.__ob__.dep.id;
  5216. if (seen.has(depId)) {
  5217. return
  5218. }
  5219. seen.add(depId);
  5220. }
  5221. if (isA) {
  5222. i = val.length;
  5223. while (i--) { _traverse(val[i], seen); }
  5224. } else {
  5225. keys = Object.keys(val);
  5226. i = keys.length;
  5227. while (i--) { _traverse(val[keys[i]], seen); }
  5228. }
  5229. }
  5230. var mark;
  5231. var measure;
  5232. if (true) {
  5233. var perf = inBrowser && window.performance;
  5234. /* istanbul ignore if */
  5235. if (
  5236. perf &&
  5237. perf.mark &&
  5238. perf.measure &&
  5239. perf.clearMarks &&
  5240. perf.clearMeasures
  5241. ) {
  5242. mark = function (tag) { return perf.mark(tag); };
  5243. measure = function (name, startTag, endTag) {
  5244. perf.measure(name, startTag, endTag);
  5245. perf.clearMarks(startTag);
  5246. perf.clearMarks(endTag);
  5247. // perf.clearMeasures(name)
  5248. };
  5249. }
  5250. }
  5251. /* */
  5252. var normalizeEvent = cached(function (name) {
  5253. var passive = name.charAt(0) === '&';
  5254. name = passive ? name.slice(1) : name;
  5255. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5256. name = once$$1 ? name.slice(1) : name;
  5257. var capture = name.charAt(0) === '!';
  5258. name = capture ? name.slice(1) : name;
  5259. return {
  5260. name: name,
  5261. once: once$$1,
  5262. capture: capture,
  5263. passive: passive
  5264. }
  5265. });
  5266. function createFnInvoker (fns, vm) {
  5267. function invoker () {
  5268. var arguments$1 = arguments;
  5269. var fns = invoker.fns;
  5270. if (Array.isArray(fns)) {
  5271. var cloned = fns.slice();
  5272. for (var i = 0; i < cloned.length; i++) {
  5273. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5274. }
  5275. } else {
  5276. // return handler return value for single handlers
  5277. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5278. }
  5279. }
  5280. invoker.fns = fns;
  5281. return invoker
  5282. }
  5283. function updateListeners (
  5284. on,
  5285. oldOn,
  5286. add,
  5287. remove$$1,
  5288. createOnceHandler,
  5289. vm
  5290. ) {
  5291. var name, def$$1, cur, old, event;
  5292. for (name in on) {
  5293. def$$1 = cur = on[name];
  5294. old = oldOn[name];
  5295. event = normalizeEvent(name);
  5296. if (isUndef(cur)) {
  5297. true && warn(
  5298. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5299. vm
  5300. );
  5301. } else if (isUndef(old)) {
  5302. if (isUndef(cur.fns)) {
  5303. cur = on[name] = createFnInvoker(cur, vm);
  5304. }
  5305. if (isTrue(event.once)) {
  5306. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5307. }
  5308. add(event.name, cur, event.capture, event.passive, event.params);
  5309. } else if (cur !== old) {
  5310. old.fns = cur;
  5311. on[name] = old;
  5312. }
  5313. }
  5314. for (name in oldOn) {
  5315. if (isUndef(on[name])) {
  5316. event = normalizeEvent(name);
  5317. remove$$1(event.name, oldOn[name], event.capture);
  5318. }
  5319. }
  5320. }
  5321. /* */
  5322. /* */
  5323. // fixed by xxxxxx (mp properties)
  5324. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5325. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5326. if (isUndef(propOptions)) {
  5327. return res
  5328. }
  5329. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5330. var attrs = data.attrs;
  5331. var props = data.props;
  5332. if (isDef(attrs) || isDef(props)) {
  5333. for (var key in propOptions) {
  5334. var altKey = hyphenate(key);
  5335. var result = checkProp(res, props, key, altKey, true) ||
  5336. checkProp(res, attrs, key, altKey, false);
  5337. // externalClass
  5338. if (
  5339. result &&
  5340. res[key] &&
  5341. externalClasses.indexOf(altKey) !== -1 &&
  5342. context[camelize(res[key])]
  5343. ) {
  5344. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5345. res[key] = context[camelize(res[key])];
  5346. }
  5347. }
  5348. }
  5349. return res
  5350. }
  5351. function extractPropsFromVNodeData (
  5352. data,
  5353. Ctor,
  5354. tag,
  5355. context// fixed by xxxxxx
  5356. ) {
  5357. // we are only extracting raw values here.
  5358. // validation and default values are handled in the child
  5359. // component itself.
  5360. var propOptions = Ctor.options.props;
  5361. if (isUndef(propOptions)) {
  5362. // fixed by xxxxxx
  5363. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5364. }
  5365. var res = {};
  5366. var attrs = data.attrs;
  5367. var props = data.props;
  5368. if (isDef(attrs) || isDef(props)) {
  5369. for (var key in propOptions) {
  5370. var altKey = hyphenate(key);
  5371. if (true) {
  5372. var keyInLowerCase = key.toLowerCase();
  5373. if (
  5374. key !== keyInLowerCase &&
  5375. attrs && hasOwn(attrs, keyInLowerCase)
  5376. ) {
  5377. tip(
  5378. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5379. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5380. " \"" + key + "\". " +
  5381. "Note that HTML attributes are case-insensitive and camelCased " +
  5382. "props need to use their kebab-case equivalents when using in-DOM " +
  5383. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5384. );
  5385. }
  5386. }
  5387. checkProp(res, props, key, altKey, true) ||
  5388. checkProp(res, attrs, key, altKey, false);
  5389. }
  5390. }
  5391. // fixed by xxxxxx
  5392. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5393. }
  5394. function checkProp (
  5395. res,
  5396. hash,
  5397. key,
  5398. altKey,
  5399. preserve
  5400. ) {
  5401. if (isDef(hash)) {
  5402. if (hasOwn(hash, key)) {
  5403. res[key] = hash[key];
  5404. if (!preserve) {
  5405. delete hash[key];
  5406. }
  5407. return true
  5408. } else if (hasOwn(hash, altKey)) {
  5409. res[key] = hash[altKey];
  5410. if (!preserve) {
  5411. delete hash[altKey];
  5412. }
  5413. return true
  5414. }
  5415. }
  5416. return false
  5417. }
  5418. /* */
  5419. // The template compiler attempts to minimize the need for normalization by
  5420. // statically analyzing the template at compile time.
  5421. //
  5422. // For plain HTML markup, normalization can be completely skipped because the
  5423. // generated render function is guaranteed to return Array<VNode>. There are
  5424. // two cases where extra normalization is needed:
  5425. // 1. When the children contains components - because a functional component
  5426. // may return an Array instead of a single root. In this case, just a simple
  5427. // normalization is needed - if any child is an Array, we flatten the whole
  5428. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5429. // because functional components already normalize their own children.
  5430. function simpleNormalizeChildren (children) {
  5431. for (var i = 0; i < children.length; i++) {
  5432. if (Array.isArray(children[i])) {
  5433. return Array.prototype.concat.apply([], children)
  5434. }
  5435. }
  5436. return children
  5437. }
  5438. // 2. When the children contains constructs that always generated nested Arrays,
  5439. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5440. // with hand-written render functions / JSX. In such cases a full normalization
  5441. // is needed to cater to all possible types of children values.
  5442. function normalizeChildren (children) {
  5443. return isPrimitive(children)
  5444. ? [createTextVNode(children)]
  5445. : Array.isArray(children)
  5446. ? normalizeArrayChildren(children)
  5447. : undefined
  5448. }
  5449. function isTextNode (node) {
  5450. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5451. }
  5452. function normalizeArrayChildren (children, nestedIndex) {
  5453. var res = [];
  5454. var i, c, lastIndex, last;
  5455. for (i = 0; i < children.length; i++) {
  5456. c = children[i];
  5457. if (isUndef(c) || typeof c === 'boolean') { continue }
  5458. lastIndex = res.length - 1;
  5459. last = res[lastIndex];
  5460. // nested
  5461. if (Array.isArray(c)) {
  5462. if (c.length > 0) {
  5463. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5464. // merge adjacent text nodes
  5465. if (isTextNode(c[0]) && isTextNode(last)) {
  5466. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5467. c.shift();
  5468. }
  5469. res.push.apply(res, c);
  5470. }
  5471. } else if (isPrimitive(c)) {
  5472. if (isTextNode(last)) {
  5473. // merge adjacent text nodes
  5474. // this is necessary for SSR hydration because text nodes are
  5475. // essentially merged when rendered to HTML strings
  5476. res[lastIndex] = createTextVNode(last.text + c);
  5477. } else if (c !== '') {
  5478. // convert primitive to vnode
  5479. res.push(createTextVNode(c));
  5480. }
  5481. } else {
  5482. if (isTextNode(c) && isTextNode(last)) {
  5483. // merge adjacent text nodes
  5484. res[lastIndex] = createTextVNode(last.text + c.text);
  5485. } else {
  5486. // default key for nested array children (likely generated by v-for)
  5487. if (isTrue(children._isVList) &&
  5488. isDef(c.tag) &&
  5489. isUndef(c.key) &&
  5490. isDef(nestedIndex)) {
  5491. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5492. }
  5493. res.push(c);
  5494. }
  5495. }
  5496. }
  5497. return res
  5498. }
  5499. /* */
  5500. function initProvide (vm) {
  5501. var provide = vm.$options.provide;
  5502. if (provide) {
  5503. vm._provided = typeof provide === 'function'
  5504. ? provide.call(vm)
  5505. : provide;
  5506. }
  5507. }
  5508. function initInjections (vm) {
  5509. var result = resolveInject(vm.$options.inject, vm);
  5510. if (result) {
  5511. toggleObserving(false);
  5512. Object.keys(result).forEach(function (key) {
  5513. /* istanbul ignore else */
  5514. if (true) {
  5515. defineReactive$$1(vm, key, result[key], function () {
  5516. warn(
  5517. "Avoid mutating an injected value directly since the changes will be " +
  5518. "overwritten whenever the provided component re-renders. " +
  5519. "injection being mutated: \"" + key + "\"",
  5520. vm
  5521. );
  5522. });
  5523. } else {}
  5524. });
  5525. toggleObserving(true);
  5526. }
  5527. }
  5528. function resolveInject (inject, vm) {
  5529. if (inject) {
  5530. // inject is :any because flow is not smart enough to figure out cached
  5531. var result = Object.create(null);
  5532. var keys = hasSymbol
  5533. ? Reflect.ownKeys(inject)
  5534. : Object.keys(inject);
  5535. for (var i = 0; i < keys.length; i++) {
  5536. var key = keys[i];
  5537. // #6574 in case the inject object is observed...
  5538. if (key === '__ob__') { continue }
  5539. var provideKey = inject[key].from;
  5540. var source = vm;
  5541. while (source) {
  5542. if (source._provided && hasOwn(source._provided, provideKey)) {
  5543. result[key] = source._provided[provideKey];
  5544. break
  5545. }
  5546. source = source.$parent;
  5547. }
  5548. if (!source) {
  5549. if ('default' in inject[key]) {
  5550. var provideDefault = inject[key].default;
  5551. result[key] = typeof provideDefault === 'function'
  5552. ? provideDefault.call(vm)
  5553. : provideDefault;
  5554. } else if (true) {
  5555. warn(("Injection \"" + key + "\" not found"), vm);
  5556. }
  5557. }
  5558. }
  5559. return result
  5560. }
  5561. }
  5562. /* */
  5563. /**
  5564. * Runtime helper for resolving raw children VNodes into a slot object.
  5565. */
  5566. function resolveSlots (
  5567. children,
  5568. context
  5569. ) {
  5570. if (!children || !children.length) {
  5571. return {}
  5572. }
  5573. var slots = {};
  5574. for (var i = 0, l = children.length; i < l; i++) {
  5575. var child = children[i];
  5576. var data = child.data;
  5577. // remove slot attribute if the node is resolved as a Vue slot node
  5578. if (data && data.attrs && data.attrs.slot) {
  5579. delete data.attrs.slot;
  5580. }
  5581. // named slots should only be respected if the vnode was rendered in the
  5582. // same context.
  5583. if ((child.context === context || child.fnContext === context) &&
  5584. data && data.slot != null
  5585. ) {
  5586. var name = data.slot;
  5587. var slot = (slots[name] || (slots[name] = []));
  5588. if (child.tag === 'template') {
  5589. slot.push.apply(slot, child.children || []);
  5590. } else {
  5591. slot.push(child);
  5592. }
  5593. } else {
  5594. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5595. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5596. (slots['page'] || (slots['page'] = [])).push(child);
  5597. }else{
  5598. (slots.default || (slots.default = [])).push(child);
  5599. }
  5600. }
  5601. }
  5602. // ignore slots that contains only whitespace
  5603. for (var name$1 in slots) {
  5604. if (slots[name$1].every(isWhitespace)) {
  5605. delete slots[name$1];
  5606. }
  5607. }
  5608. return slots
  5609. }
  5610. function isWhitespace (node) {
  5611. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5612. }
  5613. /* */
  5614. function normalizeScopedSlots (
  5615. slots,
  5616. normalSlots,
  5617. prevSlots
  5618. ) {
  5619. var res;
  5620. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5621. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5622. var key = slots && slots.$key;
  5623. if (!slots) {
  5624. res = {};
  5625. } else if (slots._normalized) {
  5626. // fast path 1: child component re-render only, parent did not change
  5627. return slots._normalized
  5628. } else if (
  5629. isStable &&
  5630. prevSlots &&
  5631. prevSlots !== emptyObject &&
  5632. key === prevSlots.$key &&
  5633. !hasNormalSlots &&
  5634. !prevSlots.$hasNormal
  5635. ) {
  5636. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5637. // only need to normalize once
  5638. return prevSlots
  5639. } else {
  5640. res = {};
  5641. for (var key$1 in slots) {
  5642. if (slots[key$1] && key$1[0] !== '$') {
  5643. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5644. }
  5645. }
  5646. }
  5647. // expose normal slots on scopedSlots
  5648. for (var key$2 in normalSlots) {
  5649. if (!(key$2 in res)) {
  5650. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5651. }
  5652. }
  5653. // avoriaz seems to mock a non-extensible $scopedSlots object
  5654. // and when that is passed down this would cause an error
  5655. if (slots && Object.isExtensible(slots)) {
  5656. (slots)._normalized = res;
  5657. }
  5658. def(res, '$stable', isStable);
  5659. def(res, '$key', key);
  5660. def(res, '$hasNormal', hasNormalSlots);
  5661. return res
  5662. }
  5663. function normalizeScopedSlot(normalSlots, key, fn) {
  5664. var normalized = function () {
  5665. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5666. res = res && typeof res === 'object' && !Array.isArray(res)
  5667. ? [res] // single vnode
  5668. : normalizeChildren(res);
  5669. return res && (
  5670. res.length === 0 ||
  5671. (res.length === 1 && res[0].isComment) // #9658
  5672. ) ? undefined
  5673. : res
  5674. };
  5675. // this is a slot using the new v-slot syntax without scope. although it is
  5676. // compiled as a scoped slot, render fn users would expect it to be present
  5677. // on this.$slots because the usage is semantically a normal slot.
  5678. if (fn.proxy) {
  5679. Object.defineProperty(normalSlots, key, {
  5680. get: normalized,
  5681. enumerable: true,
  5682. configurable: true
  5683. });
  5684. }
  5685. return normalized
  5686. }
  5687. function proxyNormalSlot(slots, key) {
  5688. return function () { return slots[key]; }
  5689. }
  5690. /* */
  5691. /**
  5692. * Runtime helper for rendering v-for lists.
  5693. */
  5694. function renderList (
  5695. val,
  5696. render
  5697. ) {
  5698. var ret, i, l, keys, key;
  5699. if (Array.isArray(val) || typeof val === 'string') {
  5700. ret = new Array(val.length);
  5701. for (i = 0, l = val.length; i < l; i++) {
  5702. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5703. }
  5704. } else if (typeof val === 'number') {
  5705. ret = new Array(val);
  5706. for (i = 0; i < val; i++) {
  5707. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5708. }
  5709. } else if (isObject(val)) {
  5710. if (hasSymbol && val[Symbol.iterator]) {
  5711. ret = [];
  5712. var iterator = val[Symbol.iterator]();
  5713. var result = iterator.next();
  5714. while (!result.done) {
  5715. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5716. result = iterator.next();
  5717. }
  5718. } else {
  5719. keys = Object.keys(val);
  5720. ret = new Array(keys.length);
  5721. for (i = 0, l = keys.length; i < l; i++) {
  5722. key = keys[i];
  5723. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5724. }
  5725. }
  5726. }
  5727. if (!isDef(ret)) {
  5728. ret = [];
  5729. }
  5730. (ret)._isVList = true;
  5731. return ret
  5732. }
  5733. /* */
  5734. /**
  5735. * Runtime helper for rendering <slot>
  5736. */
  5737. function renderSlot (
  5738. name,
  5739. fallback,
  5740. props,
  5741. bindObject
  5742. ) {
  5743. var scopedSlotFn = this.$scopedSlots[name];
  5744. var nodes;
  5745. if (scopedSlotFn) { // scoped slot
  5746. props = props || {};
  5747. if (bindObject) {
  5748. if ( true && !isObject(bindObject)) {
  5749. warn(
  5750. 'slot v-bind without argument expects an Object',
  5751. this
  5752. );
  5753. }
  5754. props = extend(extend({}, bindObject), props);
  5755. }
  5756. // fixed by xxxxxx app-plus scopedSlot
  5757. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5758. } else {
  5759. nodes = this.$slots[name] || fallback;
  5760. }
  5761. var target = props && props.slot;
  5762. if (target) {
  5763. return this.$createElement('template', { slot: target }, nodes)
  5764. } else {
  5765. return nodes
  5766. }
  5767. }
  5768. /* */
  5769. /**
  5770. * Runtime helper for resolving filters
  5771. */
  5772. function resolveFilter (id) {
  5773. return resolveAsset(this.$options, 'filters', id, true) || identity
  5774. }
  5775. /* */
  5776. function isKeyNotMatch (expect, actual) {
  5777. if (Array.isArray(expect)) {
  5778. return expect.indexOf(actual) === -1
  5779. } else {
  5780. return expect !== actual
  5781. }
  5782. }
  5783. /**
  5784. * Runtime helper for checking keyCodes from config.
  5785. * exposed as Vue.prototype._k
  5786. * passing in eventKeyName as last argument separately for backwards compat
  5787. */
  5788. function checkKeyCodes (
  5789. eventKeyCode,
  5790. key,
  5791. builtInKeyCode,
  5792. eventKeyName,
  5793. builtInKeyName
  5794. ) {
  5795. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5796. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5797. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5798. } else if (mappedKeyCode) {
  5799. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5800. } else if (eventKeyName) {
  5801. return hyphenate(eventKeyName) !== key
  5802. }
  5803. }
  5804. /* */
  5805. /**
  5806. * Runtime helper for merging v-bind="object" into a VNode's data.
  5807. */
  5808. function bindObjectProps (
  5809. data,
  5810. tag,
  5811. value,
  5812. asProp,
  5813. isSync
  5814. ) {
  5815. if (value) {
  5816. if (!isObject(value)) {
  5817. true && warn(
  5818. 'v-bind without argument expects an Object or Array value',
  5819. this
  5820. );
  5821. } else {
  5822. if (Array.isArray(value)) {
  5823. value = toObject(value);
  5824. }
  5825. var hash;
  5826. var loop = function ( key ) {
  5827. if (
  5828. key === 'class' ||
  5829. key === 'style' ||
  5830. isReservedAttribute(key)
  5831. ) {
  5832. hash = data;
  5833. } else {
  5834. var type = data.attrs && data.attrs.type;
  5835. hash = asProp || config.mustUseProp(tag, type, key)
  5836. ? data.domProps || (data.domProps = {})
  5837. : data.attrs || (data.attrs = {});
  5838. }
  5839. var camelizedKey = camelize(key);
  5840. var hyphenatedKey = hyphenate(key);
  5841. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5842. hash[key] = value[key];
  5843. if (isSync) {
  5844. var on = data.on || (data.on = {});
  5845. on[("update:" + key)] = function ($event) {
  5846. value[key] = $event;
  5847. };
  5848. }
  5849. }
  5850. };
  5851. for (var key in value) loop( key );
  5852. }
  5853. }
  5854. return data
  5855. }
  5856. /* */
  5857. /**
  5858. * Runtime helper for rendering static trees.
  5859. */
  5860. function renderStatic (
  5861. index,
  5862. isInFor
  5863. ) {
  5864. var cached = this._staticTrees || (this._staticTrees = []);
  5865. var tree = cached[index];
  5866. // if has already-rendered static tree and not inside v-for,
  5867. // we can reuse the same tree.
  5868. if (tree && !isInFor) {
  5869. return tree
  5870. }
  5871. // otherwise, render a fresh tree.
  5872. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5873. this._renderProxy,
  5874. null,
  5875. this // for render fns generated for functional component templates
  5876. );
  5877. markStatic(tree, ("__static__" + index), false);
  5878. return tree
  5879. }
  5880. /**
  5881. * Runtime helper for v-once.
  5882. * Effectively it means marking the node as static with a unique key.
  5883. */
  5884. function markOnce (
  5885. tree,
  5886. index,
  5887. key
  5888. ) {
  5889. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5890. return tree
  5891. }
  5892. function markStatic (
  5893. tree,
  5894. key,
  5895. isOnce
  5896. ) {
  5897. if (Array.isArray(tree)) {
  5898. for (var i = 0; i < tree.length; i++) {
  5899. if (tree[i] && typeof tree[i] !== 'string') {
  5900. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5901. }
  5902. }
  5903. } else {
  5904. markStaticNode(tree, key, isOnce);
  5905. }
  5906. }
  5907. function markStaticNode (node, key, isOnce) {
  5908. node.isStatic = true;
  5909. node.key = key;
  5910. node.isOnce = isOnce;
  5911. }
  5912. /* */
  5913. function bindObjectListeners (data, value) {
  5914. if (value) {
  5915. if (!isPlainObject(value)) {
  5916. true && warn(
  5917. 'v-on without argument expects an Object value',
  5918. this
  5919. );
  5920. } else {
  5921. var on = data.on = data.on ? extend({}, data.on) : {};
  5922. for (var key in value) {
  5923. var existing = on[key];
  5924. var ours = value[key];
  5925. on[key] = existing ? [].concat(existing, ours) : ours;
  5926. }
  5927. }
  5928. }
  5929. return data
  5930. }
  5931. /* */
  5932. function resolveScopedSlots (
  5933. fns, // see flow/vnode
  5934. res,
  5935. // the following are added in 2.6
  5936. hasDynamicKeys,
  5937. contentHashKey
  5938. ) {
  5939. res = res || { $stable: !hasDynamicKeys };
  5940. for (var i = 0; i < fns.length; i++) {
  5941. var slot = fns[i];
  5942. if (Array.isArray(slot)) {
  5943. resolveScopedSlots(slot, res, hasDynamicKeys);
  5944. } else if (slot) {
  5945. // marker for reverse proxying v-slot without scope on this.$slots
  5946. if (slot.proxy) {
  5947. slot.fn.proxy = true;
  5948. }
  5949. res[slot.key] = slot.fn;
  5950. }
  5951. }
  5952. if (contentHashKey) {
  5953. (res).$key = contentHashKey;
  5954. }
  5955. return res
  5956. }
  5957. /* */
  5958. function bindDynamicKeys (baseObj, values) {
  5959. for (var i = 0; i < values.length; i += 2) {
  5960. var key = values[i];
  5961. if (typeof key === 'string' && key) {
  5962. baseObj[values[i]] = values[i + 1];
  5963. } else if ( true && key !== '' && key !== null) {
  5964. // null is a special value for explicitly removing a binding
  5965. warn(
  5966. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5967. this
  5968. );
  5969. }
  5970. }
  5971. return baseObj
  5972. }
  5973. // helper to dynamically append modifier runtime markers to event names.
  5974. // ensure only append when value is already string, otherwise it will be cast
  5975. // to string and cause the type check to miss.
  5976. function prependModifier (value, symbol) {
  5977. return typeof value === 'string' ? symbol + value : value
  5978. }
  5979. /* */
  5980. function installRenderHelpers (target) {
  5981. target._o = markOnce;
  5982. target._n = toNumber;
  5983. target._s = toString;
  5984. target._l = renderList;
  5985. target._t = renderSlot;
  5986. target._q = looseEqual;
  5987. target._i = looseIndexOf;
  5988. target._m = renderStatic;
  5989. target._f = resolveFilter;
  5990. target._k = checkKeyCodes;
  5991. target._b = bindObjectProps;
  5992. target._v = createTextVNode;
  5993. target._e = createEmptyVNode;
  5994. target._u = resolveScopedSlots;
  5995. target._g = bindObjectListeners;
  5996. target._d = bindDynamicKeys;
  5997. target._p = prependModifier;
  5998. }
  5999. /* */
  6000. function FunctionalRenderContext (
  6001. data,
  6002. props,
  6003. children,
  6004. parent,
  6005. Ctor
  6006. ) {
  6007. var this$1 = this;
  6008. var options = Ctor.options;
  6009. // ensure the createElement function in functional components
  6010. // gets a unique context - this is necessary for correct named slot check
  6011. var contextVm;
  6012. if (hasOwn(parent, '_uid')) {
  6013. contextVm = Object.create(parent);
  6014. // $flow-disable-line
  6015. contextVm._original = parent;
  6016. } else {
  6017. // the context vm passed in is a functional context as well.
  6018. // in this case we want to make sure we are able to get a hold to the
  6019. // real context instance.
  6020. contextVm = parent;
  6021. // $flow-disable-line
  6022. parent = parent._original;
  6023. }
  6024. var isCompiled = isTrue(options._compiled);
  6025. var needNormalization = !isCompiled;
  6026. this.data = data;
  6027. this.props = props;
  6028. this.children = children;
  6029. this.parent = parent;
  6030. this.listeners = data.on || emptyObject;
  6031. this.injections = resolveInject(options.inject, parent);
  6032. this.slots = function () {
  6033. if (!this$1.$slots) {
  6034. normalizeScopedSlots(
  6035. data.scopedSlots,
  6036. this$1.$slots = resolveSlots(children, parent)
  6037. );
  6038. }
  6039. return this$1.$slots
  6040. };
  6041. Object.defineProperty(this, 'scopedSlots', ({
  6042. enumerable: true,
  6043. get: function get () {
  6044. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6045. }
  6046. }));
  6047. // support for compiled functional template
  6048. if (isCompiled) {
  6049. // exposing $options for renderStatic()
  6050. this.$options = options;
  6051. // pre-resolve slots for renderSlot()
  6052. this.$slots = this.slots();
  6053. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6054. }
  6055. if (options._scopeId) {
  6056. this._c = function (a, b, c, d) {
  6057. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6058. if (vnode && !Array.isArray(vnode)) {
  6059. vnode.fnScopeId = options._scopeId;
  6060. vnode.fnContext = parent;
  6061. }
  6062. return vnode
  6063. };
  6064. } else {
  6065. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6066. }
  6067. }
  6068. installRenderHelpers(FunctionalRenderContext.prototype);
  6069. function createFunctionalComponent (
  6070. Ctor,
  6071. propsData,
  6072. data,
  6073. contextVm,
  6074. children
  6075. ) {
  6076. var options = Ctor.options;
  6077. var props = {};
  6078. var propOptions = options.props;
  6079. if (isDef(propOptions)) {
  6080. for (var key in propOptions) {
  6081. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6082. }
  6083. } else {
  6084. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6085. if (isDef(data.props)) { mergeProps(props, data.props); }
  6086. }
  6087. var renderContext = new FunctionalRenderContext(
  6088. data,
  6089. props,
  6090. children,
  6091. contextVm,
  6092. Ctor
  6093. );
  6094. var vnode = options.render.call(null, renderContext._c, renderContext);
  6095. if (vnode instanceof VNode) {
  6096. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6097. } else if (Array.isArray(vnode)) {
  6098. var vnodes = normalizeChildren(vnode) || [];
  6099. var res = new Array(vnodes.length);
  6100. for (var i = 0; i < vnodes.length; i++) {
  6101. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6102. }
  6103. return res
  6104. }
  6105. }
  6106. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6107. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6108. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6109. // that should not be matched to match.
  6110. var clone = cloneVNode(vnode);
  6111. clone.fnContext = contextVm;
  6112. clone.fnOptions = options;
  6113. if (true) {
  6114. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6115. }
  6116. if (data.slot) {
  6117. (clone.data || (clone.data = {})).slot = data.slot;
  6118. }
  6119. return clone
  6120. }
  6121. function mergeProps (to, from) {
  6122. for (var key in from) {
  6123. to[camelize(key)] = from[key];
  6124. }
  6125. }
  6126. /* */
  6127. /* */
  6128. /* */
  6129. /* */
  6130. // inline hooks to be invoked on component VNodes during patch
  6131. var componentVNodeHooks = {
  6132. init: function init (vnode, hydrating) {
  6133. if (
  6134. vnode.componentInstance &&
  6135. !vnode.componentInstance._isDestroyed &&
  6136. vnode.data.keepAlive
  6137. ) {
  6138. // kept-alive components, treat as a patch
  6139. var mountedNode = vnode; // work around flow
  6140. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6141. } else {
  6142. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6143. vnode,
  6144. activeInstance
  6145. );
  6146. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6147. }
  6148. },
  6149. prepatch: function prepatch (oldVnode, vnode) {
  6150. var options = vnode.componentOptions;
  6151. var child = vnode.componentInstance = oldVnode.componentInstance;
  6152. updateChildComponent(
  6153. child,
  6154. options.propsData, // updated props
  6155. options.listeners, // updated listeners
  6156. vnode, // new parent vnode
  6157. options.children // new children
  6158. );
  6159. },
  6160. insert: function insert (vnode) {
  6161. var context = vnode.context;
  6162. var componentInstance = vnode.componentInstance;
  6163. if (!componentInstance._isMounted) {
  6164. callHook(componentInstance, 'onServiceCreated');
  6165. callHook(componentInstance, 'onServiceAttached');
  6166. componentInstance._isMounted = true;
  6167. callHook(componentInstance, 'mounted');
  6168. }
  6169. if (vnode.data.keepAlive) {
  6170. if (context._isMounted) {
  6171. // vue-router#1212
  6172. // During updates, a kept-alive component's child components may
  6173. // change, so directly walking the tree here may call activated hooks
  6174. // on incorrect children. Instead we push them into a queue which will
  6175. // be processed after the whole patch process ended.
  6176. queueActivatedComponent(componentInstance);
  6177. } else {
  6178. activateChildComponent(componentInstance, true /* direct */);
  6179. }
  6180. }
  6181. },
  6182. destroy: function destroy (vnode) {
  6183. var componentInstance = vnode.componentInstance;
  6184. if (!componentInstance._isDestroyed) {
  6185. if (!vnode.data.keepAlive) {
  6186. componentInstance.$destroy();
  6187. } else {
  6188. deactivateChildComponent(componentInstance, true /* direct */);
  6189. }
  6190. }
  6191. }
  6192. };
  6193. var hooksToMerge = Object.keys(componentVNodeHooks);
  6194. function createComponent (
  6195. Ctor,
  6196. data,
  6197. context,
  6198. children,
  6199. tag
  6200. ) {
  6201. if (isUndef(Ctor)) {
  6202. return
  6203. }
  6204. var baseCtor = context.$options._base;
  6205. // plain options object: turn it into a constructor
  6206. if (isObject(Ctor)) {
  6207. Ctor = baseCtor.extend(Ctor);
  6208. }
  6209. // if at this stage it's not a constructor or an async component factory,
  6210. // reject.
  6211. if (typeof Ctor !== 'function') {
  6212. if (true) {
  6213. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6214. }
  6215. return
  6216. }
  6217. // async component
  6218. var asyncFactory;
  6219. if (isUndef(Ctor.cid)) {
  6220. asyncFactory = Ctor;
  6221. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6222. if (Ctor === undefined) {
  6223. // return a placeholder node for async component, which is rendered
  6224. // as a comment node but preserves all the raw information for the node.
  6225. // the information will be used for async server-rendering and hydration.
  6226. return createAsyncPlaceholder(
  6227. asyncFactory,
  6228. data,
  6229. context,
  6230. children,
  6231. tag
  6232. )
  6233. }
  6234. }
  6235. data = data || {};
  6236. // resolve constructor options in case global mixins are applied after
  6237. // component constructor creation
  6238. resolveConstructorOptions(Ctor);
  6239. // transform component v-model data into props & events
  6240. if (isDef(data.model)) {
  6241. transformModel(Ctor.options, data);
  6242. }
  6243. // extract props
  6244. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6245. // functional component
  6246. if (isTrue(Ctor.options.functional)) {
  6247. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6248. }
  6249. // extract listeners, since these needs to be treated as
  6250. // child component listeners instead of DOM listeners
  6251. var listeners = data.on;
  6252. // replace with listeners with .native modifier
  6253. // so it gets processed during parent component patch.
  6254. data.on = data.nativeOn;
  6255. if (isTrue(Ctor.options.abstract)) {
  6256. // abstract components do not keep anything
  6257. // other than props & listeners & slot
  6258. // work around flow
  6259. var slot = data.slot;
  6260. data = {};
  6261. if (slot) {
  6262. data.slot = slot;
  6263. }
  6264. }
  6265. // install component management hooks onto the placeholder node
  6266. installComponentHooks(data);
  6267. // return a placeholder vnode
  6268. var name = Ctor.options.name || tag;
  6269. var vnode = new VNode(
  6270. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6271. data, undefined, undefined, undefined, context,
  6272. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6273. asyncFactory
  6274. );
  6275. return vnode
  6276. }
  6277. function createComponentInstanceForVnode (
  6278. vnode, // we know it's MountedComponentVNode but flow doesn't
  6279. parent // activeInstance in lifecycle state
  6280. ) {
  6281. var options = {
  6282. _isComponent: true,
  6283. _parentVnode: vnode,
  6284. parent: parent
  6285. };
  6286. // check inline-template render functions
  6287. var inlineTemplate = vnode.data.inlineTemplate;
  6288. if (isDef(inlineTemplate)) {
  6289. options.render = inlineTemplate.render;
  6290. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6291. }
  6292. return new vnode.componentOptions.Ctor(options)
  6293. }
  6294. function installComponentHooks (data) {
  6295. var hooks = data.hook || (data.hook = {});
  6296. for (var i = 0; i < hooksToMerge.length; i++) {
  6297. var key = hooksToMerge[i];
  6298. var existing = hooks[key];
  6299. var toMerge = componentVNodeHooks[key];
  6300. if (existing !== toMerge && !(existing && existing._merged)) {
  6301. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6302. }
  6303. }
  6304. }
  6305. function mergeHook$1 (f1, f2) {
  6306. var merged = function (a, b) {
  6307. // flow complains about extra args which is why we use any
  6308. f1(a, b);
  6309. f2(a, b);
  6310. };
  6311. merged._merged = true;
  6312. return merged
  6313. }
  6314. // transform component v-model info (value and callback) into
  6315. // prop and event handler respectively.
  6316. function transformModel (options, data) {
  6317. var prop = (options.model && options.model.prop) || 'value';
  6318. var event = (options.model && options.model.event) || 'input'
  6319. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6320. var on = data.on || (data.on = {});
  6321. var existing = on[event];
  6322. var callback = data.model.callback;
  6323. if (isDef(existing)) {
  6324. if (
  6325. Array.isArray(existing)
  6326. ? existing.indexOf(callback) === -1
  6327. : existing !== callback
  6328. ) {
  6329. on[event] = [callback].concat(existing);
  6330. }
  6331. } else {
  6332. on[event] = callback;
  6333. }
  6334. }
  6335. /* */
  6336. var SIMPLE_NORMALIZE = 1;
  6337. var ALWAYS_NORMALIZE = 2;
  6338. // wrapper function for providing a more flexible interface
  6339. // without getting yelled at by flow
  6340. function createElement (
  6341. context,
  6342. tag,
  6343. data,
  6344. children,
  6345. normalizationType,
  6346. alwaysNormalize
  6347. ) {
  6348. if (Array.isArray(data) || isPrimitive(data)) {
  6349. normalizationType = children;
  6350. children = data;
  6351. data = undefined;
  6352. }
  6353. if (isTrue(alwaysNormalize)) {
  6354. normalizationType = ALWAYS_NORMALIZE;
  6355. }
  6356. return _createElement(context, tag, data, children, normalizationType)
  6357. }
  6358. function _createElement (
  6359. context,
  6360. tag,
  6361. data,
  6362. children,
  6363. normalizationType
  6364. ) {
  6365. if (isDef(data) && isDef((data).__ob__)) {
  6366. true && warn(
  6367. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6368. 'Always create fresh vnode data objects in each render!',
  6369. context
  6370. );
  6371. return createEmptyVNode()
  6372. }
  6373. // object syntax in v-bind
  6374. if (isDef(data) && isDef(data.is)) {
  6375. tag = data.is;
  6376. }
  6377. if (!tag) {
  6378. // in case of component :is set to falsy value
  6379. return createEmptyVNode()
  6380. }
  6381. // warn against non-primitive key
  6382. if ( true &&
  6383. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6384. ) {
  6385. {
  6386. warn(
  6387. 'Avoid using non-primitive value as key, ' +
  6388. 'use string/number value instead.',
  6389. context
  6390. );
  6391. }
  6392. }
  6393. // support single function children as default scoped slot
  6394. if (Array.isArray(children) &&
  6395. typeof children[0] === 'function'
  6396. ) {
  6397. data = data || {};
  6398. data.scopedSlots = { default: children[0] };
  6399. children.length = 0;
  6400. }
  6401. if (normalizationType === ALWAYS_NORMALIZE) {
  6402. children = normalizeChildren(children);
  6403. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6404. children = simpleNormalizeChildren(children);
  6405. }
  6406. var vnode, ns;
  6407. if (typeof tag === 'string') {
  6408. var Ctor;
  6409. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6410. if (config.isReservedTag(tag)) {
  6411. // platform built-in elements
  6412. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6413. warn(
  6414. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6415. context
  6416. );
  6417. }
  6418. vnode = new VNode(
  6419. config.parsePlatformTagName(tag), data, children,
  6420. undefined, undefined, context
  6421. );
  6422. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6423. // component
  6424. vnode = createComponent(Ctor, data, context, children, tag);
  6425. } else {
  6426. // unknown or unlisted namespaced elements
  6427. // check at runtime because it may get assigned a namespace when its
  6428. // parent normalizes children
  6429. vnode = new VNode(
  6430. tag, data, children,
  6431. undefined, undefined, context
  6432. );
  6433. }
  6434. } else {
  6435. // direct component options / constructor
  6436. vnode = createComponent(tag, data, context, children);
  6437. }
  6438. if (Array.isArray(vnode)) {
  6439. return vnode
  6440. } else if (isDef(vnode)) {
  6441. if (isDef(ns)) { applyNS(vnode, ns); }
  6442. if (isDef(data)) { registerDeepBindings(data); }
  6443. return vnode
  6444. } else {
  6445. return createEmptyVNode()
  6446. }
  6447. }
  6448. function applyNS (vnode, ns, force) {
  6449. vnode.ns = ns;
  6450. if (vnode.tag === 'foreignObject') {
  6451. // use default namespace inside foreignObject
  6452. ns = undefined;
  6453. force = true;
  6454. }
  6455. if (isDef(vnode.children)) {
  6456. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6457. var child = vnode.children[i];
  6458. if (isDef(child.tag) && (
  6459. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6460. applyNS(child, ns, force);
  6461. }
  6462. }
  6463. }
  6464. }
  6465. // ref #5318
  6466. // necessary to ensure parent re-render when deep bindings like :style and
  6467. // :class are used on slot nodes
  6468. function registerDeepBindings (data) {
  6469. if (isObject(data.style)) {
  6470. traverse(data.style);
  6471. }
  6472. if (isObject(data.class)) {
  6473. traverse(data.class);
  6474. }
  6475. }
  6476. /* */
  6477. function initRender (vm) {
  6478. vm._vnode = null; // the root of the child tree
  6479. vm._staticTrees = null; // v-once cached trees
  6480. var options = vm.$options;
  6481. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6482. var renderContext = parentVnode && parentVnode.context;
  6483. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6484. vm.$scopedSlots = emptyObject;
  6485. // bind the createElement fn to this instance
  6486. // so that we get proper render context inside it.
  6487. // args order: tag, data, children, normalizationType, alwaysNormalize
  6488. // internal version is used by render functions compiled from templates
  6489. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6490. // normalization is always applied for the public version, used in
  6491. // user-written render functions.
  6492. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6493. // $attrs & $listeners are exposed for easier HOC creation.
  6494. // they need to be reactive so that HOCs using them are always updated
  6495. var parentData = parentVnode && parentVnode.data;
  6496. /* istanbul ignore else */
  6497. if (true) {
  6498. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6499. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6500. }, true);
  6501. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6502. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6503. }, true);
  6504. } else {}
  6505. }
  6506. var currentRenderingInstance = null;
  6507. function renderMixin (Vue) {
  6508. // install runtime convenience helpers
  6509. installRenderHelpers(Vue.prototype);
  6510. Vue.prototype.$nextTick = function (fn) {
  6511. return nextTick(fn, this)
  6512. };
  6513. Vue.prototype._render = function () {
  6514. var vm = this;
  6515. var ref = vm.$options;
  6516. var render = ref.render;
  6517. var _parentVnode = ref._parentVnode;
  6518. if (_parentVnode) {
  6519. vm.$scopedSlots = normalizeScopedSlots(
  6520. _parentVnode.data.scopedSlots,
  6521. vm.$slots,
  6522. vm.$scopedSlots
  6523. );
  6524. }
  6525. // set parent vnode. this allows render functions to have access
  6526. // to the data on the placeholder node.
  6527. vm.$vnode = _parentVnode;
  6528. // render self
  6529. var vnode;
  6530. try {
  6531. // There's no need to maintain a stack because all render fns are called
  6532. // separately from one another. Nested component's render fns are called
  6533. // when parent component is patched.
  6534. currentRenderingInstance = vm;
  6535. vnode = render.call(vm._renderProxy, vm.$createElement);
  6536. } catch (e) {
  6537. handleError(e, vm, "render");
  6538. // return error render result,
  6539. // or previous vnode to prevent render error causing blank component
  6540. /* istanbul ignore else */
  6541. if ( true && vm.$options.renderError) {
  6542. try {
  6543. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6544. } catch (e) {
  6545. handleError(e, vm, "renderError");
  6546. vnode = vm._vnode;
  6547. }
  6548. } else {
  6549. vnode = vm._vnode;
  6550. }
  6551. } finally {
  6552. currentRenderingInstance = null;
  6553. }
  6554. // if the returned array contains only a single node, allow it
  6555. if (Array.isArray(vnode) && vnode.length === 1) {
  6556. vnode = vnode[0];
  6557. }
  6558. // return empty vnode in case the render function errored out
  6559. if (!(vnode instanceof VNode)) {
  6560. if ( true && Array.isArray(vnode)) {
  6561. warn(
  6562. 'Multiple root nodes returned from render function. Render function ' +
  6563. 'should return a single root node.',
  6564. vm
  6565. );
  6566. }
  6567. vnode = createEmptyVNode();
  6568. }
  6569. // set parent
  6570. vnode.parent = _parentVnode;
  6571. return vnode
  6572. };
  6573. }
  6574. /* */
  6575. function ensureCtor (comp, base) {
  6576. if (
  6577. comp.__esModule ||
  6578. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6579. ) {
  6580. comp = comp.default;
  6581. }
  6582. return isObject(comp)
  6583. ? base.extend(comp)
  6584. : comp
  6585. }
  6586. function createAsyncPlaceholder (
  6587. factory,
  6588. data,
  6589. context,
  6590. children,
  6591. tag
  6592. ) {
  6593. var node = createEmptyVNode();
  6594. node.asyncFactory = factory;
  6595. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6596. return node
  6597. }
  6598. function resolveAsyncComponent (
  6599. factory,
  6600. baseCtor
  6601. ) {
  6602. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6603. return factory.errorComp
  6604. }
  6605. if (isDef(factory.resolved)) {
  6606. return factory.resolved
  6607. }
  6608. var owner = currentRenderingInstance;
  6609. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6610. // already pending
  6611. factory.owners.push(owner);
  6612. }
  6613. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6614. return factory.loadingComp
  6615. }
  6616. if (owner && !isDef(factory.owners)) {
  6617. var owners = factory.owners = [owner];
  6618. var sync = true;
  6619. var timerLoading = null;
  6620. var timerTimeout = null
  6621. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6622. var forceRender = function (renderCompleted) {
  6623. for (var i = 0, l = owners.length; i < l; i++) {
  6624. (owners[i]).$forceUpdate();
  6625. }
  6626. if (renderCompleted) {
  6627. owners.length = 0;
  6628. if (timerLoading !== null) {
  6629. clearTimeout(timerLoading);
  6630. timerLoading = null;
  6631. }
  6632. if (timerTimeout !== null) {
  6633. clearTimeout(timerTimeout);
  6634. timerTimeout = null;
  6635. }
  6636. }
  6637. };
  6638. var resolve = once(function (res) {
  6639. // cache resolved
  6640. factory.resolved = ensureCtor(res, baseCtor);
  6641. // invoke callbacks only if this is not a synchronous resolve
  6642. // (async resolves are shimmed as synchronous during SSR)
  6643. if (!sync) {
  6644. forceRender(true);
  6645. } else {
  6646. owners.length = 0;
  6647. }
  6648. });
  6649. var reject = once(function (reason) {
  6650. true && warn(
  6651. "Failed to resolve async component: " + (String(factory)) +
  6652. (reason ? ("\nReason: " + reason) : '')
  6653. );
  6654. if (isDef(factory.errorComp)) {
  6655. factory.error = true;
  6656. forceRender(true);
  6657. }
  6658. });
  6659. var res = factory(resolve, reject);
  6660. if (isObject(res)) {
  6661. if (isPromise(res)) {
  6662. // () => Promise
  6663. if (isUndef(factory.resolved)) {
  6664. res.then(resolve, reject);
  6665. }
  6666. } else if (isPromise(res.component)) {
  6667. res.component.then(resolve, reject);
  6668. if (isDef(res.error)) {
  6669. factory.errorComp = ensureCtor(res.error, baseCtor);
  6670. }
  6671. if (isDef(res.loading)) {
  6672. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6673. if (res.delay === 0) {
  6674. factory.loading = true;
  6675. } else {
  6676. timerLoading = setTimeout(function () {
  6677. timerLoading = null;
  6678. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6679. factory.loading = true;
  6680. forceRender(false);
  6681. }
  6682. }, res.delay || 200);
  6683. }
  6684. }
  6685. if (isDef(res.timeout)) {
  6686. timerTimeout = setTimeout(function () {
  6687. timerTimeout = null;
  6688. if (isUndef(factory.resolved)) {
  6689. reject(
  6690. true
  6691. ? ("timeout (" + (res.timeout) + "ms)")
  6692. : undefined
  6693. );
  6694. }
  6695. }, res.timeout);
  6696. }
  6697. }
  6698. }
  6699. sync = false;
  6700. // return in case resolved synchronously
  6701. return factory.loading
  6702. ? factory.loadingComp
  6703. : factory.resolved
  6704. }
  6705. }
  6706. /* */
  6707. function isAsyncPlaceholder (node) {
  6708. return node.isComment && node.asyncFactory
  6709. }
  6710. /* */
  6711. function getFirstComponentChild (children) {
  6712. if (Array.isArray(children)) {
  6713. for (var i = 0; i < children.length; i++) {
  6714. var c = children[i];
  6715. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6716. return c
  6717. }
  6718. }
  6719. }
  6720. }
  6721. /* */
  6722. /* */
  6723. function initEvents (vm) {
  6724. vm._events = Object.create(null);
  6725. vm._hasHookEvent = false;
  6726. // init parent attached events
  6727. var listeners = vm.$options._parentListeners;
  6728. if (listeners) {
  6729. updateComponentListeners(vm, listeners);
  6730. }
  6731. }
  6732. var target;
  6733. function add (event, fn) {
  6734. target.$on(event, fn);
  6735. }
  6736. function remove$1 (event, fn) {
  6737. target.$off(event, fn);
  6738. }
  6739. function createOnceHandler (event, fn) {
  6740. var _target = target;
  6741. return function onceHandler () {
  6742. var res = fn.apply(null, arguments);
  6743. if (res !== null) {
  6744. _target.$off(event, onceHandler);
  6745. }
  6746. }
  6747. }
  6748. function updateComponentListeners (
  6749. vm,
  6750. listeners,
  6751. oldListeners
  6752. ) {
  6753. target = vm;
  6754. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6755. target = undefined;
  6756. }
  6757. function eventsMixin (Vue) {
  6758. var hookRE = /^hook:/;
  6759. Vue.prototype.$on = function (event, fn) {
  6760. var vm = this;
  6761. if (Array.isArray(event)) {
  6762. for (var i = 0, l = event.length; i < l; i++) {
  6763. vm.$on(event[i], fn);
  6764. }
  6765. } else {
  6766. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6767. // optimize hook:event cost by using a boolean flag marked at registration
  6768. // instead of a hash lookup
  6769. if (hookRE.test(event)) {
  6770. vm._hasHookEvent = true;
  6771. }
  6772. }
  6773. return vm
  6774. };
  6775. Vue.prototype.$once = function (event, fn) {
  6776. var vm = this;
  6777. function on () {
  6778. vm.$off(event, on);
  6779. fn.apply(vm, arguments);
  6780. }
  6781. on.fn = fn;
  6782. vm.$on(event, on);
  6783. return vm
  6784. };
  6785. Vue.prototype.$off = function (event, fn) {
  6786. var vm = this;
  6787. // all
  6788. if (!arguments.length) {
  6789. vm._events = Object.create(null);
  6790. return vm
  6791. }
  6792. // array of events
  6793. if (Array.isArray(event)) {
  6794. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6795. vm.$off(event[i$1], fn);
  6796. }
  6797. return vm
  6798. }
  6799. // specific event
  6800. var cbs = vm._events[event];
  6801. if (!cbs) {
  6802. return vm
  6803. }
  6804. if (!fn) {
  6805. vm._events[event] = null;
  6806. return vm
  6807. }
  6808. // specific handler
  6809. var cb;
  6810. var i = cbs.length;
  6811. while (i--) {
  6812. cb = cbs[i];
  6813. if (cb === fn || cb.fn === fn) {
  6814. cbs.splice(i, 1);
  6815. break
  6816. }
  6817. }
  6818. return vm
  6819. };
  6820. Vue.prototype.$emit = function (event) {
  6821. var vm = this;
  6822. if (true) {
  6823. var lowerCaseEvent = event.toLowerCase();
  6824. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6825. tip(
  6826. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6827. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6828. "Note that HTML attributes are case-insensitive and you cannot use " +
  6829. "v-on to listen to camelCase events when using in-DOM templates. " +
  6830. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6831. );
  6832. }
  6833. }
  6834. var cbs = vm._events[event];
  6835. if (cbs) {
  6836. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6837. var args = toArray(arguments, 1);
  6838. var info = "event handler for \"" + event + "\"";
  6839. for (var i = 0, l = cbs.length; i < l; i++) {
  6840. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6841. }
  6842. }
  6843. return vm
  6844. };
  6845. }
  6846. /* */
  6847. var activeInstance = null;
  6848. var isUpdatingChildComponent = false;
  6849. function setActiveInstance(vm) {
  6850. var prevActiveInstance = activeInstance;
  6851. activeInstance = vm;
  6852. return function () {
  6853. activeInstance = prevActiveInstance;
  6854. }
  6855. }
  6856. function initLifecycle (vm) {
  6857. var options = vm.$options;
  6858. // locate first non-abstract parent
  6859. var parent = options.parent;
  6860. if (parent && !options.abstract) {
  6861. while (parent.$options.abstract && parent.$parent) {
  6862. parent = parent.$parent;
  6863. }
  6864. parent.$children.push(vm);
  6865. }
  6866. vm.$parent = parent;
  6867. vm.$root = parent ? parent.$root : vm;
  6868. vm.$children = [];
  6869. vm.$refs = {};
  6870. vm._watcher = null;
  6871. vm._inactive = null;
  6872. vm._directInactive = false;
  6873. vm._isMounted = false;
  6874. vm._isDestroyed = false;
  6875. vm._isBeingDestroyed = false;
  6876. }
  6877. function lifecycleMixin (Vue) {
  6878. Vue.prototype._update = function (vnode, hydrating) {
  6879. var vm = this;
  6880. var prevEl = vm.$el;
  6881. var prevVnode = vm._vnode;
  6882. var restoreActiveInstance = setActiveInstance(vm);
  6883. vm._vnode = vnode;
  6884. // Vue.prototype.__patch__ is injected in entry points
  6885. // based on the rendering backend used.
  6886. if (!prevVnode) {
  6887. // initial render
  6888. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6889. } else {
  6890. // updates
  6891. vm.$el = vm.__patch__(prevVnode, vnode);
  6892. }
  6893. restoreActiveInstance();
  6894. // update __vue__ reference
  6895. if (prevEl) {
  6896. prevEl.__vue__ = null;
  6897. }
  6898. if (vm.$el) {
  6899. vm.$el.__vue__ = vm;
  6900. }
  6901. // if parent is an HOC, update its $el as well
  6902. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6903. vm.$parent.$el = vm.$el;
  6904. }
  6905. // updated hook is called by the scheduler to ensure that children are
  6906. // updated in a parent's updated hook.
  6907. };
  6908. Vue.prototype.$forceUpdate = function () {
  6909. var vm = this;
  6910. if (vm._watcher) {
  6911. vm._watcher.update();
  6912. }
  6913. };
  6914. Vue.prototype.$destroy = function () {
  6915. var vm = this;
  6916. if (vm._isBeingDestroyed) {
  6917. return
  6918. }
  6919. callHook(vm, 'beforeDestroy');
  6920. vm._isBeingDestroyed = true;
  6921. // remove self from parent
  6922. var parent = vm.$parent;
  6923. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6924. remove(parent.$children, vm);
  6925. }
  6926. // teardown watchers
  6927. if (vm._watcher) {
  6928. vm._watcher.teardown();
  6929. }
  6930. var i = vm._watchers.length;
  6931. while (i--) {
  6932. vm._watchers[i].teardown();
  6933. }
  6934. // remove reference from data ob
  6935. // frozen object may not have observer.
  6936. if (vm._data.__ob__) {
  6937. vm._data.__ob__.vmCount--;
  6938. }
  6939. // call the last hook...
  6940. vm._isDestroyed = true;
  6941. // invoke destroy hooks on current rendered tree
  6942. vm.__patch__(vm._vnode, null);
  6943. // fire destroyed hook
  6944. callHook(vm, 'destroyed');
  6945. // turn off all instance listeners.
  6946. vm.$off();
  6947. // remove __vue__ reference
  6948. if (vm.$el) {
  6949. vm.$el.__vue__ = null;
  6950. }
  6951. // release circular reference (#6759)
  6952. if (vm.$vnode) {
  6953. vm.$vnode.parent = null;
  6954. }
  6955. };
  6956. }
  6957. function updateChildComponent (
  6958. vm,
  6959. propsData,
  6960. listeners,
  6961. parentVnode,
  6962. renderChildren
  6963. ) {
  6964. if (true) {
  6965. isUpdatingChildComponent = true;
  6966. }
  6967. // determine whether component has slot children
  6968. // we need to do this before overwriting $options._renderChildren.
  6969. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6970. // dynamic slot names). Static scoped slots compiled from template has the
  6971. // "$stable" marker.
  6972. var newScopedSlots = parentVnode.data.scopedSlots;
  6973. var oldScopedSlots = vm.$scopedSlots;
  6974. var hasDynamicScopedSlot = !!(
  6975. (newScopedSlots && !newScopedSlots.$stable) ||
  6976. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6977. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6978. );
  6979. // Any static slot children from the parent may have changed during parent's
  6980. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6981. // update is necessary to ensure correctness.
  6982. var needsForceUpdate = !!(
  6983. renderChildren || // has new static slots
  6984. vm.$options._renderChildren || // has old static slots
  6985. hasDynamicScopedSlot
  6986. );
  6987. vm.$options._parentVnode = parentVnode;
  6988. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6989. if (vm._vnode) { // update child tree's parent
  6990. vm._vnode.parent = parentVnode;
  6991. }
  6992. vm.$options._renderChildren = renderChildren;
  6993. // update $attrs and $listeners hash
  6994. // these are also reactive so they may trigger child update if the child
  6995. // used them during render
  6996. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6997. vm.$listeners = listeners || emptyObject;
  6998. // update props
  6999. if (propsData && vm.$options.props) {
  7000. toggleObserving(false);
  7001. var props = vm._props;
  7002. var propKeys = vm.$options._propKeys || [];
  7003. for (var i = 0; i < propKeys.length; i++) {
  7004. var key = propKeys[i];
  7005. var propOptions = vm.$options.props; // wtf flow?
  7006. props[key] = validateProp(key, propOptions, propsData, vm);
  7007. }
  7008. toggleObserving(true);
  7009. // keep a copy of raw propsData
  7010. vm.$options.propsData = propsData;
  7011. }
  7012. // fixed by xxxxxx update properties(mp runtime)
  7013. vm._$updateProperties && vm._$updateProperties(vm);
  7014. // update listeners
  7015. listeners = listeners || emptyObject;
  7016. var oldListeners = vm.$options._parentListeners;
  7017. vm.$options._parentListeners = listeners;
  7018. updateComponentListeners(vm, listeners, oldListeners);
  7019. // resolve slots + force update if has children
  7020. if (needsForceUpdate) {
  7021. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7022. vm.$forceUpdate();
  7023. }
  7024. if (true) {
  7025. isUpdatingChildComponent = false;
  7026. }
  7027. }
  7028. function isInInactiveTree (vm) {
  7029. while (vm && (vm = vm.$parent)) {
  7030. if (vm._inactive) { return true }
  7031. }
  7032. return false
  7033. }
  7034. function activateChildComponent (vm, direct) {
  7035. if (direct) {
  7036. vm._directInactive = false;
  7037. if (isInInactiveTree(vm)) {
  7038. return
  7039. }
  7040. } else if (vm._directInactive) {
  7041. return
  7042. }
  7043. if (vm._inactive || vm._inactive === null) {
  7044. vm._inactive = false;
  7045. for (var i = 0; i < vm.$children.length; i++) {
  7046. activateChildComponent(vm.$children[i]);
  7047. }
  7048. callHook(vm, 'activated');
  7049. }
  7050. }
  7051. function deactivateChildComponent (vm, direct) {
  7052. if (direct) {
  7053. vm._directInactive = true;
  7054. if (isInInactiveTree(vm)) {
  7055. return
  7056. }
  7057. }
  7058. if (!vm._inactive) {
  7059. vm._inactive = true;
  7060. for (var i = 0; i < vm.$children.length; i++) {
  7061. deactivateChildComponent(vm.$children[i]);
  7062. }
  7063. callHook(vm, 'deactivated');
  7064. }
  7065. }
  7066. function callHook (vm, hook) {
  7067. // #7573 disable dep collection when invoking lifecycle hooks
  7068. pushTarget();
  7069. var handlers = vm.$options[hook];
  7070. var info = hook + " hook";
  7071. if (handlers) {
  7072. for (var i = 0, j = handlers.length; i < j; i++) {
  7073. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7074. }
  7075. }
  7076. if (vm._hasHookEvent) {
  7077. vm.$emit('hook:' + hook);
  7078. }
  7079. popTarget();
  7080. }
  7081. /* */
  7082. var MAX_UPDATE_COUNT = 100;
  7083. var queue = [];
  7084. var activatedChildren = [];
  7085. var has = {};
  7086. var circular = {};
  7087. var waiting = false;
  7088. var flushing = false;
  7089. var index = 0;
  7090. /**
  7091. * Reset the scheduler's state.
  7092. */
  7093. function resetSchedulerState () {
  7094. index = queue.length = activatedChildren.length = 0;
  7095. has = {};
  7096. if (true) {
  7097. circular = {};
  7098. }
  7099. waiting = flushing = false;
  7100. }
  7101. // Async edge case #6566 requires saving the timestamp when event listeners are
  7102. // attached. However, calling performance.now() has a perf overhead especially
  7103. // if the page has thousands of event listeners. Instead, we take a timestamp
  7104. // every time the scheduler flushes and use that for all event listeners
  7105. // attached during that flush.
  7106. var currentFlushTimestamp = 0;
  7107. // Async edge case fix requires storing an event listener's attach timestamp.
  7108. var getNow = Date.now;
  7109. // Determine what event timestamp the browser is using. Annoyingly, the
  7110. // timestamp can either be hi-res (relative to page load) or low-res
  7111. // (relative to UNIX epoch), so in order to compare time we have to use the
  7112. // same timestamp type when saving the flush timestamp.
  7113. // All IE versions use low-res event timestamps, and have problematic clock
  7114. // implementations (#9632)
  7115. if (inBrowser && !isIE) {
  7116. var performance = window.performance;
  7117. if (
  7118. performance &&
  7119. typeof performance.now === 'function' &&
  7120. getNow() > document.createEvent('Event').timeStamp
  7121. ) {
  7122. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7123. // smaller than it, it means the event is using a hi-res timestamp,
  7124. // and we need to use the hi-res version for event listener timestamps as
  7125. // well.
  7126. getNow = function () { return performance.now(); };
  7127. }
  7128. }
  7129. /**
  7130. * Flush both queues and run the watchers.
  7131. */
  7132. function flushSchedulerQueue () {
  7133. currentFlushTimestamp = getNow();
  7134. flushing = true;
  7135. var watcher, id;
  7136. // Sort queue before flush.
  7137. // This ensures that:
  7138. // 1. Components are updated from parent to child. (because parent is always
  7139. // created before the child)
  7140. // 2. A component's user watchers are run before its render watcher (because
  7141. // user watchers are created before the render watcher)
  7142. // 3. If a component is destroyed during a parent component's watcher run,
  7143. // its watchers can be skipped.
  7144. queue.sort(function (a, b) { return a.id - b.id; });
  7145. // do not cache length because more watchers might be pushed
  7146. // as we run existing watchers
  7147. for (index = 0; index < queue.length; index++) {
  7148. watcher = queue[index];
  7149. if (watcher.before) {
  7150. watcher.before();
  7151. }
  7152. id = watcher.id;
  7153. has[id] = null;
  7154. watcher.run();
  7155. // in dev build, check and stop circular updates.
  7156. if ( true && has[id] != null) {
  7157. circular[id] = (circular[id] || 0) + 1;
  7158. if (circular[id] > MAX_UPDATE_COUNT) {
  7159. warn(
  7160. 'You may have an infinite update loop ' + (
  7161. watcher.user
  7162. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7163. : "in a component render function."
  7164. ),
  7165. watcher.vm
  7166. );
  7167. break
  7168. }
  7169. }
  7170. }
  7171. // keep copies of post queues before resetting state
  7172. var activatedQueue = activatedChildren.slice();
  7173. var updatedQueue = queue.slice();
  7174. resetSchedulerState();
  7175. // call component updated and activated hooks
  7176. callActivatedHooks(activatedQueue);
  7177. callUpdatedHooks(updatedQueue);
  7178. // devtool hook
  7179. /* istanbul ignore if */
  7180. if (devtools && config.devtools) {
  7181. devtools.emit('flush');
  7182. }
  7183. }
  7184. function callUpdatedHooks (queue) {
  7185. var i = queue.length;
  7186. while (i--) {
  7187. var watcher = queue[i];
  7188. var vm = watcher.vm;
  7189. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7190. callHook(vm, 'updated');
  7191. }
  7192. }
  7193. }
  7194. /**
  7195. * Queue a kept-alive component that was activated during patch.
  7196. * The queue will be processed after the entire tree has been patched.
  7197. */
  7198. function queueActivatedComponent (vm) {
  7199. // setting _inactive to false here so that a render function can
  7200. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7201. vm._inactive = false;
  7202. activatedChildren.push(vm);
  7203. }
  7204. function callActivatedHooks (queue) {
  7205. for (var i = 0; i < queue.length; i++) {
  7206. queue[i]._inactive = true;
  7207. activateChildComponent(queue[i], true /* true */);
  7208. }
  7209. }
  7210. /**
  7211. * Push a watcher into the watcher queue.
  7212. * Jobs with duplicate IDs will be skipped unless it's
  7213. * pushed when the queue is being flushed.
  7214. */
  7215. function queueWatcher (watcher) {
  7216. var id = watcher.id;
  7217. if (has[id] == null) {
  7218. has[id] = true;
  7219. if (!flushing) {
  7220. queue.push(watcher);
  7221. } else {
  7222. // if already flushing, splice the watcher based on its id
  7223. // if already past its id, it will be run next immediately.
  7224. var i = queue.length - 1;
  7225. while (i > index && queue[i].id > watcher.id) {
  7226. i--;
  7227. }
  7228. queue.splice(i + 1, 0, watcher);
  7229. }
  7230. // queue the flush
  7231. if (!waiting) {
  7232. waiting = true;
  7233. if ( true && !config.async) {
  7234. flushSchedulerQueue();
  7235. return
  7236. }
  7237. nextTick(flushSchedulerQueue);
  7238. }
  7239. }
  7240. }
  7241. /* */
  7242. var uid$2 = 0;
  7243. /**
  7244. * A watcher parses an expression, collects dependencies,
  7245. * and fires callback when the expression value changes.
  7246. * This is used for both the $watch() api and directives.
  7247. */
  7248. var Watcher = function Watcher (
  7249. vm,
  7250. expOrFn,
  7251. cb,
  7252. options,
  7253. isRenderWatcher
  7254. ) {
  7255. this.vm = vm;
  7256. if (isRenderWatcher) {
  7257. vm._watcher = this;
  7258. }
  7259. vm._watchers.push(this);
  7260. // options
  7261. if (options) {
  7262. this.deep = !!options.deep;
  7263. this.user = !!options.user;
  7264. this.lazy = !!options.lazy;
  7265. this.sync = !!options.sync;
  7266. this.before = options.before;
  7267. } else {
  7268. this.deep = this.user = this.lazy = this.sync = false;
  7269. }
  7270. this.cb = cb;
  7271. this.id = ++uid$2; // uid for batching
  7272. this.active = true;
  7273. this.dirty = this.lazy; // for lazy watchers
  7274. this.deps = [];
  7275. this.newDeps = [];
  7276. this.depIds = new _Set();
  7277. this.newDepIds = new _Set();
  7278. this.expression = true
  7279. ? expOrFn.toString()
  7280. : undefined;
  7281. // parse expression for getter
  7282. if (typeof expOrFn === 'function') {
  7283. this.getter = expOrFn;
  7284. } else {
  7285. this.getter = parsePath(expOrFn);
  7286. if (!this.getter) {
  7287. this.getter = noop;
  7288. true && warn(
  7289. "Failed watching path: \"" + expOrFn + "\" " +
  7290. 'Watcher only accepts simple dot-delimited paths. ' +
  7291. 'For full control, use a function instead.',
  7292. vm
  7293. );
  7294. }
  7295. }
  7296. this.value = this.lazy
  7297. ? undefined
  7298. : this.get();
  7299. };
  7300. /**
  7301. * Evaluate the getter, and re-collect dependencies.
  7302. */
  7303. Watcher.prototype.get = function get () {
  7304. pushTarget(this);
  7305. var value;
  7306. var vm = this.vm;
  7307. try {
  7308. value = this.getter.call(vm, vm);
  7309. } catch (e) {
  7310. if (this.user) {
  7311. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7312. } else {
  7313. throw e
  7314. }
  7315. } finally {
  7316. // "touch" every property so they are all tracked as
  7317. // dependencies for deep watching
  7318. if (this.deep) {
  7319. traverse(value);
  7320. }
  7321. popTarget();
  7322. this.cleanupDeps();
  7323. }
  7324. return value
  7325. };
  7326. /**
  7327. * Add a dependency to this directive.
  7328. */
  7329. Watcher.prototype.addDep = function addDep (dep) {
  7330. var id = dep.id;
  7331. if (!this.newDepIds.has(id)) {
  7332. this.newDepIds.add(id);
  7333. this.newDeps.push(dep);
  7334. if (!this.depIds.has(id)) {
  7335. dep.addSub(this);
  7336. }
  7337. }
  7338. };
  7339. /**
  7340. * Clean up for dependency collection.
  7341. */
  7342. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7343. var i = this.deps.length;
  7344. while (i--) {
  7345. var dep = this.deps[i];
  7346. if (!this.newDepIds.has(dep.id)) {
  7347. dep.removeSub(this);
  7348. }
  7349. }
  7350. var tmp = this.depIds;
  7351. this.depIds = this.newDepIds;
  7352. this.newDepIds = tmp;
  7353. this.newDepIds.clear();
  7354. tmp = this.deps;
  7355. this.deps = this.newDeps;
  7356. this.newDeps = tmp;
  7357. this.newDeps.length = 0;
  7358. };
  7359. /**
  7360. * Subscriber interface.
  7361. * Will be called when a dependency changes.
  7362. */
  7363. Watcher.prototype.update = function update () {
  7364. /* istanbul ignore else */
  7365. if (this.lazy) {
  7366. this.dirty = true;
  7367. } else if (this.sync) {
  7368. this.run();
  7369. } else {
  7370. queueWatcher(this);
  7371. }
  7372. };
  7373. /**
  7374. * Scheduler job interface.
  7375. * Will be called by the scheduler.
  7376. */
  7377. Watcher.prototype.run = function run () {
  7378. if (this.active) {
  7379. var value = this.get();
  7380. if (
  7381. value !== this.value ||
  7382. // Deep watchers and watchers on Object/Arrays should fire even
  7383. // when the value is the same, because the value may
  7384. // have mutated.
  7385. isObject(value) ||
  7386. this.deep
  7387. ) {
  7388. // set new value
  7389. var oldValue = this.value;
  7390. this.value = value;
  7391. if (this.user) {
  7392. try {
  7393. this.cb.call(this.vm, value, oldValue);
  7394. } catch (e) {
  7395. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7396. }
  7397. } else {
  7398. this.cb.call(this.vm, value, oldValue);
  7399. }
  7400. }
  7401. }
  7402. };
  7403. /**
  7404. * Evaluate the value of the watcher.
  7405. * This only gets called for lazy watchers.
  7406. */
  7407. Watcher.prototype.evaluate = function evaluate () {
  7408. this.value = this.get();
  7409. this.dirty = false;
  7410. };
  7411. /**
  7412. * Depend on all deps collected by this watcher.
  7413. */
  7414. Watcher.prototype.depend = function depend () {
  7415. var i = this.deps.length;
  7416. while (i--) {
  7417. this.deps[i].depend();
  7418. }
  7419. };
  7420. /**
  7421. * Remove self from all dependencies' subscriber list.
  7422. */
  7423. Watcher.prototype.teardown = function teardown () {
  7424. if (this.active) {
  7425. // remove self from vm's watcher list
  7426. // this is a somewhat expensive operation so we skip it
  7427. // if the vm is being destroyed.
  7428. if (!this.vm._isBeingDestroyed) {
  7429. remove(this.vm._watchers, this);
  7430. }
  7431. var i = this.deps.length;
  7432. while (i--) {
  7433. this.deps[i].removeSub(this);
  7434. }
  7435. this.active = false;
  7436. }
  7437. };
  7438. /* */
  7439. var sharedPropertyDefinition = {
  7440. enumerable: true,
  7441. configurable: true,
  7442. get: noop,
  7443. set: noop
  7444. };
  7445. function proxy (target, sourceKey, key) {
  7446. sharedPropertyDefinition.get = function proxyGetter () {
  7447. return this[sourceKey][key]
  7448. };
  7449. sharedPropertyDefinition.set = function proxySetter (val) {
  7450. this[sourceKey][key] = val;
  7451. };
  7452. Object.defineProperty(target, key, sharedPropertyDefinition);
  7453. }
  7454. function initState (vm) {
  7455. vm._watchers = [];
  7456. var opts = vm.$options;
  7457. if (opts.props) { initProps(vm, opts.props); }
  7458. if (opts.methods) { initMethods(vm, opts.methods); }
  7459. if (opts.data) {
  7460. initData(vm);
  7461. } else {
  7462. observe(vm._data = {}, true /* asRootData */);
  7463. }
  7464. if (opts.computed) { initComputed(vm, opts.computed); }
  7465. if (opts.watch && opts.watch !== nativeWatch) {
  7466. initWatch(vm, opts.watch);
  7467. }
  7468. }
  7469. function initProps (vm, propsOptions) {
  7470. var propsData = vm.$options.propsData || {};
  7471. var props = vm._props = {};
  7472. // cache prop keys so that future props updates can iterate using Array
  7473. // instead of dynamic object key enumeration.
  7474. var keys = vm.$options._propKeys = [];
  7475. var isRoot = !vm.$parent;
  7476. // root instance props should be converted
  7477. if (!isRoot) {
  7478. toggleObserving(false);
  7479. }
  7480. var loop = function ( key ) {
  7481. keys.push(key);
  7482. var value = validateProp(key, propsOptions, propsData, vm);
  7483. /* istanbul ignore else */
  7484. if (true) {
  7485. var hyphenatedKey = hyphenate(key);
  7486. if (isReservedAttribute(hyphenatedKey) ||
  7487. config.isReservedAttr(hyphenatedKey)) {
  7488. warn(
  7489. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7490. vm
  7491. );
  7492. }
  7493. defineReactive$$1(props, key, value, function () {
  7494. if (!isRoot && !isUpdatingChildComponent) {
  7495. {
  7496. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7497. return
  7498. }
  7499. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7500. if(
  7501. key === 'value' &&
  7502. Array.isArray(vm.$options.behaviors) &&
  7503. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7504. ){
  7505. return
  7506. }
  7507. if(vm._getFormData){
  7508. return
  7509. }
  7510. var $parent = vm.$parent;
  7511. while($parent){
  7512. if($parent.__next_tick_pending){
  7513. return
  7514. }
  7515. $parent = $parent.$parent;
  7516. }
  7517. }
  7518. warn(
  7519. "Avoid mutating a prop directly since the value will be " +
  7520. "overwritten whenever the parent component re-renders. " +
  7521. "Instead, use a data or computed property based on the prop's " +
  7522. "value. Prop being mutated: \"" + key + "\"",
  7523. vm
  7524. );
  7525. }
  7526. });
  7527. } else {}
  7528. // static props are already proxied on the component's prototype
  7529. // during Vue.extend(). We only need to proxy props defined at
  7530. // instantiation here.
  7531. if (!(key in vm)) {
  7532. proxy(vm, "_props", key);
  7533. }
  7534. };
  7535. for (var key in propsOptions) loop( key );
  7536. toggleObserving(true);
  7537. }
  7538. function initData (vm) {
  7539. var data = vm.$options.data;
  7540. data = vm._data = typeof data === 'function'
  7541. ? getData(data, vm)
  7542. : data || {};
  7543. if (!isPlainObject(data)) {
  7544. data = {};
  7545. true && warn(
  7546. 'data functions should return an object:\n' +
  7547. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7548. vm
  7549. );
  7550. }
  7551. // proxy data on instance
  7552. var keys = Object.keys(data);
  7553. var props = vm.$options.props;
  7554. var methods = vm.$options.methods;
  7555. var i = keys.length;
  7556. while (i--) {
  7557. var key = keys[i];
  7558. if (true) {
  7559. if (methods && hasOwn(methods, key)) {
  7560. warn(
  7561. ("Method \"" + key + "\" has already been defined as a data property."),
  7562. vm
  7563. );
  7564. }
  7565. }
  7566. if (props && hasOwn(props, key)) {
  7567. true && warn(
  7568. "The data property \"" + key + "\" is already declared as a prop. " +
  7569. "Use prop default value instead.",
  7570. vm
  7571. );
  7572. } else if (!isReserved(key)) {
  7573. proxy(vm, "_data", key);
  7574. }
  7575. }
  7576. // observe data
  7577. observe(data, true /* asRootData */);
  7578. }
  7579. function getData (data, vm) {
  7580. // #7573 disable dep collection when invoking data getters
  7581. pushTarget();
  7582. try {
  7583. return data.call(vm, vm)
  7584. } catch (e) {
  7585. handleError(e, vm, "data()");
  7586. return {}
  7587. } finally {
  7588. popTarget();
  7589. }
  7590. }
  7591. var computedWatcherOptions = { lazy: true };
  7592. function initComputed (vm, computed) {
  7593. // $flow-disable-line
  7594. var watchers = vm._computedWatchers = Object.create(null);
  7595. // computed properties are just getters during SSR
  7596. var isSSR = isServerRendering();
  7597. for (var key in computed) {
  7598. var userDef = computed[key];
  7599. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7600. if ( true && getter == null) {
  7601. warn(
  7602. ("Getter is missing for computed property \"" + key + "\"."),
  7603. vm
  7604. );
  7605. }
  7606. if (!isSSR) {
  7607. // create internal watcher for the computed property.
  7608. watchers[key] = new Watcher(
  7609. vm,
  7610. getter || noop,
  7611. noop,
  7612. computedWatcherOptions
  7613. );
  7614. }
  7615. // component-defined computed properties are already defined on the
  7616. // component prototype. We only need to define computed properties defined
  7617. // at instantiation here.
  7618. if (!(key in vm)) {
  7619. defineComputed(vm, key, userDef);
  7620. } else if (true) {
  7621. if (key in vm.$data) {
  7622. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7623. } else if (vm.$options.props && key in vm.$options.props) {
  7624. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7625. }
  7626. }
  7627. }
  7628. }
  7629. function defineComputed (
  7630. target,
  7631. key,
  7632. userDef
  7633. ) {
  7634. var shouldCache = !isServerRendering();
  7635. if (typeof userDef === 'function') {
  7636. sharedPropertyDefinition.get = shouldCache
  7637. ? createComputedGetter(key)
  7638. : createGetterInvoker(userDef);
  7639. sharedPropertyDefinition.set = noop;
  7640. } else {
  7641. sharedPropertyDefinition.get = userDef.get
  7642. ? shouldCache && userDef.cache !== false
  7643. ? createComputedGetter(key)
  7644. : createGetterInvoker(userDef.get)
  7645. : noop;
  7646. sharedPropertyDefinition.set = userDef.set || noop;
  7647. }
  7648. if ( true &&
  7649. sharedPropertyDefinition.set === noop) {
  7650. sharedPropertyDefinition.set = function () {
  7651. warn(
  7652. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7653. this
  7654. );
  7655. };
  7656. }
  7657. Object.defineProperty(target, key, sharedPropertyDefinition);
  7658. }
  7659. function createComputedGetter (key) {
  7660. return function computedGetter () {
  7661. var watcher = this._computedWatchers && this._computedWatchers[key];
  7662. if (watcher) {
  7663. if (watcher.dirty) {
  7664. watcher.evaluate();
  7665. }
  7666. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7667. watcher.depend();
  7668. }
  7669. return watcher.value
  7670. }
  7671. }
  7672. }
  7673. function createGetterInvoker(fn) {
  7674. return function computedGetter () {
  7675. return fn.call(this, this)
  7676. }
  7677. }
  7678. function initMethods (vm, methods) {
  7679. var props = vm.$options.props;
  7680. for (var key in methods) {
  7681. if (true) {
  7682. if (typeof methods[key] !== 'function') {
  7683. warn(
  7684. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7685. "Did you reference the function correctly?",
  7686. vm
  7687. );
  7688. }
  7689. if (props && hasOwn(props, key)) {
  7690. warn(
  7691. ("Method \"" + key + "\" has already been defined as a prop."),
  7692. vm
  7693. );
  7694. }
  7695. if ((key in vm) && isReserved(key)) {
  7696. warn(
  7697. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7698. "Avoid defining component methods that start with _ or $."
  7699. );
  7700. }
  7701. }
  7702. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7703. }
  7704. }
  7705. function initWatch (vm, watch) {
  7706. for (var key in watch) {
  7707. var handler = watch[key];
  7708. if (Array.isArray(handler)) {
  7709. for (var i = 0; i < handler.length; i++) {
  7710. createWatcher(vm, key, handler[i]);
  7711. }
  7712. } else {
  7713. createWatcher(vm, key, handler);
  7714. }
  7715. }
  7716. }
  7717. function createWatcher (
  7718. vm,
  7719. expOrFn,
  7720. handler,
  7721. options
  7722. ) {
  7723. if (isPlainObject(handler)) {
  7724. options = handler;
  7725. handler = handler.handler;
  7726. }
  7727. if (typeof handler === 'string') {
  7728. handler = vm[handler];
  7729. }
  7730. return vm.$watch(expOrFn, handler, options)
  7731. }
  7732. function stateMixin (Vue) {
  7733. // flow somehow has problems with directly declared definition object
  7734. // when using Object.defineProperty, so we have to procedurally build up
  7735. // the object here.
  7736. var dataDef = {};
  7737. dataDef.get = function () { return this._data };
  7738. var propsDef = {};
  7739. propsDef.get = function () { return this._props };
  7740. if (true) {
  7741. dataDef.set = function () {
  7742. warn(
  7743. 'Avoid replacing instance root $data. ' +
  7744. 'Use nested data properties instead.',
  7745. this
  7746. );
  7747. };
  7748. propsDef.set = function () {
  7749. warn("$props is readonly.", this);
  7750. };
  7751. }
  7752. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7753. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7754. Vue.prototype.$set = set;
  7755. Vue.prototype.$delete = del;
  7756. Vue.prototype.$watch = function (
  7757. expOrFn,
  7758. cb,
  7759. options
  7760. ) {
  7761. var vm = this;
  7762. if (isPlainObject(cb)) {
  7763. return createWatcher(vm, expOrFn, cb, options)
  7764. }
  7765. options = options || {};
  7766. options.user = true;
  7767. var watcher = new Watcher(vm, expOrFn, cb, options);
  7768. if (options.immediate) {
  7769. try {
  7770. cb.call(vm, watcher.value);
  7771. } catch (error) {
  7772. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7773. }
  7774. }
  7775. return function unwatchFn () {
  7776. watcher.teardown();
  7777. }
  7778. };
  7779. }
  7780. /* */
  7781. var uid$3 = 0;
  7782. function initMixin (Vue) {
  7783. Vue.prototype._init = function (options) {
  7784. var vm = this;
  7785. // a uid
  7786. vm._uid = uid$3++;
  7787. var startTag, endTag;
  7788. /* istanbul ignore if */
  7789. if ( true && config.performance && mark) {
  7790. startTag = "vue-perf-start:" + (vm._uid);
  7791. endTag = "vue-perf-end:" + (vm._uid);
  7792. mark(startTag);
  7793. }
  7794. // a flag to avoid this being observed
  7795. vm._isVue = true;
  7796. // merge options
  7797. if (options && options._isComponent) {
  7798. // optimize internal component instantiation
  7799. // since dynamic options merging is pretty slow, and none of the
  7800. // internal component options needs special treatment.
  7801. initInternalComponent(vm, options);
  7802. } else {
  7803. vm.$options = mergeOptions(
  7804. resolveConstructorOptions(vm.constructor),
  7805. options || {},
  7806. vm
  7807. );
  7808. }
  7809. /* istanbul ignore else */
  7810. if (true) {
  7811. initProxy(vm);
  7812. } else {}
  7813. // expose real self
  7814. vm._self = vm;
  7815. initLifecycle(vm);
  7816. initEvents(vm);
  7817. initRender(vm);
  7818. callHook(vm, 'beforeCreate');
  7819. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7820. initState(vm);
  7821. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7822. !vm._$fallback && callHook(vm, 'created');
  7823. /* istanbul ignore if */
  7824. if ( true && config.performance && mark) {
  7825. vm._name = formatComponentName(vm, false);
  7826. mark(endTag);
  7827. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7828. }
  7829. if (vm.$options.el) {
  7830. vm.$mount(vm.$options.el);
  7831. }
  7832. };
  7833. }
  7834. function initInternalComponent (vm, options) {
  7835. var opts = vm.$options = Object.create(vm.constructor.options);
  7836. // doing this because it's faster than dynamic enumeration.
  7837. var parentVnode = options._parentVnode;
  7838. opts.parent = options.parent;
  7839. opts._parentVnode = parentVnode;
  7840. var vnodeComponentOptions = parentVnode.componentOptions;
  7841. opts.propsData = vnodeComponentOptions.propsData;
  7842. opts._parentListeners = vnodeComponentOptions.listeners;
  7843. opts._renderChildren = vnodeComponentOptions.children;
  7844. opts._componentTag = vnodeComponentOptions.tag;
  7845. if (options.render) {
  7846. opts.render = options.render;
  7847. opts.staticRenderFns = options.staticRenderFns;
  7848. }
  7849. }
  7850. function resolveConstructorOptions (Ctor) {
  7851. var options = Ctor.options;
  7852. if (Ctor.super) {
  7853. var superOptions = resolveConstructorOptions(Ctor.super);
  7854. var cachedSuperOptions = Ctor.superOptions;
  7855. if (superOptions !== cachedSuperOptions) {
  7856. // super option changed,
  7857. // need to resolve new options.
  7858. Ctor.superOptions = superOptions;
  7859. // check if there are any late-modified/attached options (#4976)
  7860. var modifiedOptions = resolveModifiedOptions(Ctor);
  7861. // update base extend options
  7862. if (modifiedOptions) {
  7863. extend(Ctor.extendOptions, modifiedOptions);
  7864. }
  7865. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7866. if (options.name) {
  7867. options.components[options.name] = Ctor;
  7868. }
  7869. }
  7870. }
  7871. return options
  7872. }
  7873. function resolveModifiedOptions (Ctor) {
  7874. var modified;
  7875. var latest = Ctor.options;
  7876. var sealed = Ctor.sealedOptions;
  7877. for (var key in latest) {
  7878. if (latest[key] !== sealed[key]) {
  7879. if (!modified) { modified = {}; }
  7880. modified[key] = latest[key];
  7881. }
  7882. }
  7883. return modified
  7884. }
  7885. function Vue (options) {
  7886. if ( true &&
  7887. !(this instanceof Vue)
  7888. ) {
  7889. warn('Vue is a constructor and should be called with the `new` keyword');
  7890. }
  7891. this._init(options);
  7892. }
  7893. initMixin(Vue);
  7894. stateMixin(Vue);
  7895. eventsMixin(Vue);
  7896. lifecycleMixin(Vue);
  7897. renderMixin(Vue);
  7898. /* */
  7899. function initUse (Vue) {
  7900. Vue.use = function (plugin) {
  7901. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7902. if (installedPlugins.indexOf(plugin) > -1) {
  7903. return this
  7904. }
  7905. // additional parameters
  7906. var args = toArray(arguments, 1);
  7907. args.unshift(this);
  7908. if (typeof plugin.install === 'function') {
  7909. plugin.install.apply(plugin, args);
  7910. } else if (typeof plugin === 'function') {
  7911. plugin.apply(null, args);
  7912. }
  7913. installedPlugins.push(plugin);
  7914. return this
  7915. };
  7916. }
  7917. /* */
  7918. function initMixin$1 (Vue) {
  7919. Vue.mixin = function (mixin) {
  7920. this.options = mergeOptions(this.options, mixin);
  7921. return this
  7922. };
  7923. }
  7924. /* */
  7925. function initExtend (Vue) {
  7926. /**
  7927. * Each instance constructor, including Vue, has a unique
  7928. * cid. This enables us to create wrapped "child
  7929. * constructors" for prototypal inheritance and cache them.
  7930. */
  7931. Vue.cid = 0;
  7932. var cid = 1;
  7933. /**
  7934. * Class inheritance
  7935. */
  7936. Vue.extend = function (extendOptions) {
  7937. extendOptions = extendOptions || {};
  7938. var Super = this;
  7939. var SuperId = Super.cid;
  7940. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7941. if (cachedCtors[SuperId]) {
  7942. return cachedCtors[SuperId]
  7943. }
  7944. var name = extendOptions.name || Super.options.name;
  7945. if ( true && name) {
  7946. validateComponentName(name);
  7947. }
  7948. var Sub = function VueComponent (options) {
  7949. this._init(options);
  7950. };
  7951. Sub.prototype = Object.create(Super.prototype);
  7952. Sub.prototype.constructor = Sub;
  7953. Sub.cid = cid++;
  7954. Sub.options = mergeOptions(
  7955. Super.options,
  7956. extendOptions
  7957. );
  7958. Sub['super'] = Super;
  7959. // For props and computed properties, we define the proxy getters on
  7960. // the Vue instances at extension time, on the extended prototype. This
  7961. // avoids Object.defineProperty calls for each instance created.
  7962. if (Sub.options.props) {
  7963. initProps$1(Sub);
  7964. }
  7965. if (Sub.options.computed) {
  7966. initComputed$1(Sub);
  7967. }
  7968. // allow further extension/mixin/plugin usage
  7969. Sub.extend = Super.extend;
  7970. Sub.mixin = Super.mixin;
  7971. Sub.use = Super.use;
  7972. // create asset registers, so extended classes
  7973. // can have their private assets too.
  7974. ASSET_TYPES.forEach(function (type) {
  7975. Sub[type] = Super[type];
  7976. });
  7977. // enable recursive self-lookup
  7978. if (name) {
  7979. Sub.options.components[name] = Sub;
  7980. }
  7981. // keep a reference to the super options at extension time.
  7982. // later at instantiation we can check if Super's options have
  7983. // been updated.
  7984. Sub.superOptions = Super.options;
  7985. Sub.extendOptions = extendOptions;
  7986. Sub.sealedOptions = extend({}, Sub.options);
  7987. // cache constructor
  7988. cachedCtors[SuperId] = Sub;
  7989. return Sub
  7990. };
  7991. }
  7992. function initProps$1 (Comp) {
  7993. var props = Comp.options.props;
  7994. for (var key in props) {
  7995. proxy(Comp.prototype, "_props", key);
  7996. }
  7997. }
  7998. function initComputed$1 (Comp) {
  7999. var computed = Comp.options.computed;
  8000. for (var key in computed) {
  8001. defineComputed(Comp.prototype, key, computed[key]);
  8002. }
  8003. }
  8004. /* */
  8005. function initAssetRegisters (Vue) {
  8006. /**
  8007. * Create asset registration methods.
  8008. */
  8009. ASSET_TYPES.forEach(function (type) {
  8010. Vue[type] = function (
  8011. id,
  8012. definition
  8013. ) {
  8014. if (!definition) {
  8015. return this.options[type + 's'][id]
  8016. } else {
  8017. /* istanbul ignore if */
  8018. if ( true && type === 'component') {
  8019. validateComponentName(id);
  8020. }
  8021. if (type === 'component' && isPlainObject(definition)) {
  8022. definition.name = definition.name || id;
  8023. definition = this.options._base.extend(definition);
  8024. }
  8025. if (type === 'directive' && typeof definition === 'function') {
  8026. definition = { bind: definition, update: definition };
  8027. }
  8028. this.options[type + 's'][id] = definition;
  8029. return definition
  8030. }
  8031. };
  8032. });
  8033. }
  8034. /* */
  8035. function getComponentName (opts) {
  8036. return opts && (opts.Ctor.options.name || opts.tag)
  8037. }
  8038. function matches (pattern, name) {
  8039. if (Array.isArray(pattern)) {
  8040. return pattern.indexOf(name) > -1
  8041. } else if (typeof pattern === 'string') {
  8042. return pattern.split(',').indexOf(name) > -1
  8043. } else if (isRegExp(pattern)) {
  8044. return pattern.test(name)
  8045. }
  8046. /* istanbul ignore next */
  8047. return false
  8048. }
  8049. function pruneCache (keepAliveInstance, filter) {
  8050. var cache = keepAliveInstance.cache;
  8051. var keys = keepAliveInstance.keys;
  8052. var _vnode = keepAliveInstance._vnode;
  8053. for (var key in cache) {
  8054. var cachedNode = cache[key];
  8055. if (cachedNode) {
  8056. var name = getComponentName(cachedNode.componentOptions);
  8057. if (name && !filter(name)) {
  8058. pruneCacheEntry(cache, key, keys, _vnode);
  8059. }
  8060. }
  8061. }
  8062. }
  8063. function pruneCacheEntry (
  8064. cache,
  8065. key,
  8066. keys,
  8067. current
  8068. ) {
  8069. var cached$$1 = cache[key];
  8070. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8071. cached$$1.componentInstance.$destroy();
  8072. }
  8073. cache[key] = null;
  8074. remove(keys, key);
  8075. }
  8076. var patternTypes = [String, RegExp, Array];
  8077. var KeepAlive = {
  8078. name: 'keep-alive',
  8079. abstract: true,
  8080. props: {
  8081. include: patternTypes,
  8082. exclude: patternTypes,
  8083. max: [String, Number]
  8084. },
  8085. created: function created () {
  8086. this.cache = Object.create(null);
  8087. this.keys = [];
  8088. },
  8089. destroyed: function destroyed () {
  8090. for (var key in this.cache) {
  8091. pruneCacheEntry(this.cache, key, this.keys);
  8092. }
  8093. },
  8094. mounted: function mounted () {
  8095. var this$1 = this;
  8096. this.$watch('include', function (val) {
  8097. pruneCache(this$1, function (name) { return matches(val, name); });
  8098. });
  8099. this.$watch('exclude', function (val) {
  8100. pruneCache(this$1, function (name) { return !matches(val, name); });
  8101. });
  8102. },
  8103. render: function render () {
  8104. var slot = this.$slots.default;
  8105. var vnode = getFirstComponentChild(slot);
  8106. var componentOptions = vnode && vnode.componentOptions;
  8107. if (componentOptions) {
  8108. // check pattern
  8109. var name = getComponentName(componentOptions);
  8110. var ref = this;
  8111. var include = ref.include;
  8112. var exclude = ref.exclude;
  8113. if (
  8114. // not included
  8115. (include && (!name || !matches(include, name))) ||
  8116. // excluded
  8117. (exclude && name && matches(exclude, name))
  8118. ) {
  8119. return vnode
  8120. }
  8121. var ref$1 = this;
  8122. var cache = ref$1.cache;
  8123. var keys = ref$1.keys;
  8124. var key = vnode.key == null
  8125. // same constructor may get registered as different local components
  8126. // so cid alone is not enough (#3269)
  8127. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8128. : vnode.key;
  8129. if (cache[key]) {
  8130. vnode.componentInstance = cache[key].componentInstance;
  8131. // make current key freshest
  8132. remove(keys, key);
  8133. keys.push(key);
  8134. } else {
  8135. cache[key] = vnode;
  8136. keys.push(key);
  8137. // prune oldest entry
  8138. if (this.max && keys.length > parseInt(this.max)) {
  8139. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8140. }
  8141. }
  8142. vnode.data.keepAlive = true;
  8143. }
  8144. return vnode || (slot && slot[0])
  8145. }
  8146. };
  8147. var builtInComponents = {
  8148. KeepAlive: KeepAlive
  8149. };
  8150. /* */
  8151. function initGlobalAPI (Vue) {
  8152. // config
  8153. var configDef = {};
  8154. configDef.get = function () { return config; };
  8155. if (true) {
  8156. configDef.set = function () {
  8157. warn(
  8158. 'Do not replace the Vue.config object, set individual fields instead.'
  8159. );
  8160. };
  8161. }
  8162. Object.defineProperty(Vue, 'config', configDef);
  8163. // exposed util methods.
  8164. // NOTE: these are not considered part of the public API - avoid relying on
  8165. // them unless you are aware of the risk.
  8166. Vue.util = {
  8167. warn: warn,
  8168. extend: extend,
  8169. mergeOptions: mergeOptions,
  8170. defineReactive: defineReactive$$1
  8171. };
  8172. Vue.set = set;
  8173. Vue.delete = del;
  8174. Vue.nextTick = nextTick;
  8175. // 2.6 explicit observable API
  8176. Vue.observable = function (obj) {
  8177. observe(obj);
  8178. return obj
  8179. };
  8180. Vue.options = Object.create(null);
  8181. ASSET_TYPES.forEach(function (type) {
  8182. Vue.options[type + 's'] = Object.create(null);
  8183. });
  8184. // this is used to identify the "base" constructor to extend all plain-object
  8185. // components with in Weex's multi-instance scenarios.
  8186. Vue.options._base = Vue;
  8187. extend(Vue.options.components, builtInComponents);
  8188. initUse(Vue);
  8189. initMixin$1(Vue);
  8190. initExtend(Vue);
  8191. initAssetRegisters(Vue);
  8192. }
  8193. initGlobalAPI(Vue);
  8194. Object.defineProperty(Vue.prototype, '$isServer', {
  8195. get: isServerRendering
  8196. });
  8197. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8198. get: function get () {
  8199. /* istanbul ignore next */
  8200. return this.$vnode && this.$vnode.ssrContext
  8201. }
  8202. });
  8203. // expose FunctionalRenderContext for ssr runtime helper installation
  8204. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8205. value: FunctionalRenderContext
  8206. });
  8207. Vue.version = '2.6.11';
  8208. /**
  8209. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8210. */
  8211. var ARRAYTYPE = '[object Array]';
  8212. var OBJECTTYPE = '[object Object]';
  8213. var NULLTYPE = '[object Null]';
  8214. var UNDEFINEDTYPE = '[object Undefined]';
  8215. // const FUNCTIONTYPE = '[object Function]'
  8216. function diff(current, pre) {
  8217. var result = {};
  8218. syncKeys(current, pre);
  8219. _diff(current, pre, '', result);
  8220. return result
  8221. }
  8222. function syncKeys(current, pre) {
  8223. if (current === pre) { return }
  8224. var rootCurrentType = type(current);
  8225. var rootPreType = type(pre);
  8226. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8227. if(Object.keys(current).length >= Object.keys(pre).length){
  8228. for (var key in pre) {
  8229. var currentValue = current[key];
  8230. if (currentValue === undefined) {
  8231. current[key] = null;
  8232. } else {
  8233. syncKeys(currentValue, pre[key]);
  8234. }
  8235. }
  8236. }
  8237. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8238. if (current.length >= pre.length) {
  8239. pre.forEach(function (item, index) {
  8240. syncKeys(current[index], item);
  8241. });
  8242. }
  8243. }
  8244. }
  8245. function nullOrUndefined(currentType, preType) {
  8246. if(
  8247. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8248. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8249. ) {
  8250. return false
  8251. }
  8252. return true
  8253. }
  8254. function _diff(current, pre, path, result) {
  8255. if (current === pre) { return }
  8256. var rootCurrentType = type(current);
  8257. var rootPreType = type(pre);
  8258. if (rootCurrentType == OBJECTTYPE) {
  8259. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8260. setResult(result, path, current);
  8261. } else {
  8262. var loop = function ( key ) {
  8263. var currentValue = current[key];
  8264. var preValue = pre[key];
  8265. var currentType = type(currentValue);
  8266. var preType = type(preValue);
  8267. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8268. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8269. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8270. }
  8271. } else if (currentType == ARRAYTYPE) {
  8272. if (preType != ARRAYTYPE) {
  8273. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8274. } else {
  8275. if (currentValue.length < preValue.length) {
  8276. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8277. } else {
  8278. currentValue.forEach(function (item, index) {
  8279. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8280. });
  8281. }
  8282. }
  8283. } else if (currentType == OBJECTTYPE) {
  8284. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8285. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8286. } else {
  8287. for (var subKey in currentValue) {
  8288. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8289. }
  8290. }
  8291. }
  8292. };
  8293. for (var key in current) loop( key );
  8294. }
  8295. } else if (rootCurrentType == ARRAYTYPE) {
  8296. if (rootPreType != ARRAYTYPE) {
  8297. setResult(result, path, current);
  8298. } else {
  8299. if (current.length < pre.length) {
  8300. setResult(result, path, current);
  8301. } else {
  8302. current.forEach(function (item, index) {
  8303. _diff(item, pre[index], path + '[' + index + ']', result);
  8304. });
  8305. }
  8306. }
  8307. } else {
  8308. setResult(result, path, current);
  8309. }
  8310. }
  8311. function setResult(result, k, v) {
  8312. // if (type(v) != FUNCTIONTYPE) {
  8313. result[k] = v;
  8314. // }
  8315. }
  8316. function type(obj) {
  8317. return Object.prototype.toString.call(obj)
  8318. }
  8319. /* */
  8320. function flushCallbacks$1(vm) {
  8321. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8322. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xcx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8323. var mpInstance = vm.$scope;
  8324. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8325. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8326. }
  8327. var copies = vm.__next_tick_callbacks.slice(0);
  8328. vm.__next_tick_callbacks.length = 0;
  8329. for (var i = 0; i < copies.length; i++) {
  8330. copies[i]();
  8331. }
  8332. }
  8333. }
  8334. function hasRenderWatcher(vm) {
  8335. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8336. }
  8337. function nextTick$1(vm, cb) {
  8338. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8339. //2.nextTick 之前存在 render watcher
  8340. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8341. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xcx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8342. var mpInstance = vm.$scope;
  8343. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8344. ']:nextVueTick');
  8345. }
  8346. return nextTick(cb, vm)
  8347. }else{
  8348. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xcx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  8349. var mpInstance$1 = vm.$scope;
  8350. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8351. ']:nextMPTick');
  8352. }
  8353. }
  8354. var _resolve;
  8355. if (!vm.__next_tick_callbacks) {
  8356. vm.__next_tick_callbacks = [];
  8357. }
  8358. vm.__next_tick_callbacks.push(function () {
  8359. if (cb) {
  8360. try {
  8361. cb.call(vm);
  8362. } catch (e) {
  8363. handleError(e, vm, 'nextTick');
  8364. }
  8365. } else if (_resolve) {
  8366. _resolve(vm);
  8367. }
  8368. });
  8369. // $flow-disable-line
  8370. if (!cb && typeof Promise !== 'undefined') {
  8371. return new Promise(function (resolve) {
  8372. _resolve = resolve;
  8373. })
  8374. }
  8375. }
  8376. /* */
  8377. function clearInstance(key, value) {
  8378. // 简易去除 Vue 和小程序组件实例
  8379. if (value) {
  8380. if (value._isVue || value.__v_isMPComponent) {
  8381. return {}
  8382. }
  8383. }
  8384. return value
  8385. }
  8386. function cloneWithData(vm) {
  8387. // 确保当前 vm 所有数据被同步
  8388. var ret = Object.create(null);
  8389. var dataKeys = [].concat(
  8390. Object.keys(vm._data || {}),
  8391. Object.keys(vm._computedWatchers || {}));
  8392. dataKeys.reduce(function(ret, key) {
  8393. ret[key] = vm[key];
  8394. return ret
  8395. }, ret);
  8396. // vue-composition-api
  8397. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8398. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8399. if (rawBindings) {
  8400. Object.keys(rawBindings).forEach(function (key) {
  8401. ret[key] = vm[key];
  8402. });
  8403. }
  8404. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8405. Object.assign(ret, vm.$mp.data || {});
  8406. if (
  8407. Array.isArray(vm.$options.behaviors) &&
  8408. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8409. ) { //form-field
  8410. ret['name'] = vm.name;
  8411. ret['value'] = vm.value;
  8412. }
  8413. return JSON.parse(JSON.stringify(ret, clearInstance))
  8414. }
  8415. var patch = function(oldVnode, vnode) {
  8416. var this$1 = this;
  8417. if (vnode === null) { //destroy
  8418. return
  8419. }
  8420. if (this.mpType === 'page' || this.mpType === 'component') {
  8421. var mpInstance = this.$scope;
  8422. var data = Object.create(null);
  8423. try {
  8424. data = cloneWithData(this);
  8425. } catch (err) {
  8426. console.error(err);
  8427. }
  8428. data.__webviewId__ = mpInstance.data.__webviewId__;
  8429. var mpData = Object.create(null);
  8430. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8431. mpData[key] = mpInstance.data[key];
  8432. });
  8433. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8434. if (Object.keys(diffData).length) {
  8435. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xcx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8436. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8437. ']差量更新',
  8438. JSON.stringify(diffData));
  8439. }
  8440. this.__next_tick_pending = true;
  8441. mpInstance.setData(diffData, function () {
  8442. this$1.__next_tick_pending = false;
  8443. flushCallbacks$1(this$1);
  8444. });
  8445. } else {
  8446. flushCallbacks$1(this);
  8447. }
  8448. }
  8449. };
  8450. /* */
  8451. function createEmptyRender() {
  8452. }
  8453. function mountComponent$1(
  8454. vm,
  8455. el,
  8456. hydrating
  8457. ) {
  8458. if (!vm.mpType) {//main.js 中的 new Vue
  8459. return vm
  8460. }
  8461. if (vm.mpType === 'app') {
  8462. vm.$options.render = createEmptyRender;
  8463. }
  8464. if (!vm.$options.render) {
  8465. vm.$options.render = createEmptyRender;
  8466. if (true) {
  8467. /* istanbul ignore if */
  8468. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8469. vm.$options.el || el) {
  8470. warn(
  8471. 'You are using the runtime-only build of Vue where the template ' +
  8472. 'compiler is not available. Either pre-compile the templates into ' +
  8473. 'render functions, or use the compiler-included build.',
  8474. vm
  8475. );
  8476. } else {
  8477. warn(
  8478. 'Failed to mount component: template or render function not defined.',
  8479. vm
  8480. );
  8481. }
  8482. }
  8483. }
  8484. !vm._$fallback && callHook(vm, 'beforeMount');
  8485. var updateComponent = function () {
  8486. vm._update(vm._render(), hydrating);
  8487. };
  8488. // we set this to vm._watcher inside the watcher's constructor
  8489. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8490. // component's mounted hook), which relies on vm._watcher being already defined
  8491. new Watcher(vm, updateComponent, noop, {
  8492. before: function before() {
  8493. if (vm._isMounted && !vm._isDestroyed) {
  8494. callHook(vm, 'beforeUpdate');
  8495. }
  8496. }
  8497. }, true /* isRenderWatcher */);
  8498. hydrating = false;
  8499. return vm
  8500. }
  8501. /* */
  8502. function renderClass (
  8503. staticClass,
  8504. dynamicClass
  8505. ) {
  8506. if (isDef(staticClass) || isDef(dynamicClass)) {
  8507. return concat(staticClass, stringifyClass(dynamicClass))
  8508. }
  8509. /* istanbul ignore next */
  8510. return ''
  8511. }
  8512. function concat (a, b) {
  8513. return a ? b ? (a + ' ' + b) : a : (b || '')
  8514. }
  8515. function stringifyClass (value) {
  8516. if (Array.isArray(value)) {
  8517. return stringifyArray(value)
  8518. }
  8519. if (isObject(value)) {
  8520. return stringifyObject(value)
  8521. }
  8522. if (typeof value === 'string') {
  8523. return value
  8524. }
  8525. /* istanbul ignore next */
  8526. return ''
  8527. }
  8528. function stringifyArray (value) {
  8529. var res = '';
  8530. var stringified;
  8531. for (var i = 0, l = value.length; i < l; i++) {
  8532. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8533. if (res) { res += ' '; }
  8534. res += stringified;
  8535. }
  8536. }
  8537. return res
  8538. }
  8539. function stringifyObject (value) {
  8540. var res = '';
  8541. for (var key in value) {
  8542. if (value[key]) {
  8543. if (res) { res += ' '; }
  8544. res += key;
  8545. }
  8546. }
  8547. return res
  8548. }
  8549. /* */
  8550. var parseStyleText = cached(function (cssText) {
  8551. var res = {};
  8552. var listDelimiter = /;(?![^(]*\))/g;
  8553. var propertyDelimiter = /:(.+)/;
  8554. cssText.split(listDelimiter).forEach(function (item) {
  8555. if (item) {
  8556. var tmp = item.split(propertyDelimiter);
  8557. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8558. }
  8559. });
  8560. return res
  8561. });
  8562. // normalize possible array / string values into Object
  8563. function normalizeStyleBinding (bindingStyle) {
  8564. if (Array.isArray(bindingStyle)) {
  8565. return toObject(bindingStyle)
  8566. }
  8567. if (typeof bindingStyle === 'string') {
  8568. return parseStyleText(bindingStyle)
  8569. }
  8570. return bindingStyle
  8571. }
  8572. /* */
  8573. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8574. function getTarget(obj, path) {
  8575. var parts = path.split('.');
  8576. var key = parts[0];
  8577. if (key.indexOf('__$n') === 0) { //number index
  8578. key = parseInt(key.replace('__$n', ''));
  8579. }
  8580. if (parts.length === 1) {
  8581. return obj[key]
  8582. }
  8583. return getTarget(obj[key], parts.slice(1).join('.'))
  8584. }
  8585. function internalMixin(Vue) {
  8586. Vue.config.errorHandler = function(err, vm, info) {
  8587. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8588. console.error(err);
  8589. /* eslint-disable no-undef */
  8590. var app = typeof getApp === 'function' && getApp();
  8591. if (app && app.onError) {
  8592. app.onError(err);
  8593. }
  8594. };
  8595. var oldEmit = Vue.prototype.$emit;
  8596. Vue.prototype.$emit = function(event) {
  8597. if (this.$scope && event) {
  8598. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8599. if (triggerEvent) {
  8600. try {
  8601. triggerEvent.call(this.$scope, event, {
  8602. __args__: toArray(arguments, 1)
  8603. });
  8604. } catch (error) {
  8605. }
  8606. }
  8607. }
  8608. return oldEmit.apply(this, arguments)
  8609. };
  8610. Vue.prototype.$nextTick = function(fn) {
  8611. return nextTick$1(this, fn)
  8612. };
  8613. MP_METHODS.forEach(function (method) {
  8614. Vue.prototype[method] = function(args) {
  8615. if (this.$scope && this.$scope[method]) {
  8616. return this.$scope[method](args)
  8617. }
  8618. // mp-alipay
  8619. if (typeof my === 'undefined') {
  8620. return
  8621. }
  8622. if (method === 'createSelectorQuery') {
  8623. /* eslint-disable no-undef */
  8624. return my.createSelectorQuery(args)
  8625. } else if (method === 'createIntersectionObserver') {
  8626. /* eslint-disable no-undef */
  8627. return my.createIntersectionObserver(args)
  8628. }
  8629. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8630. };
  8631. });
  8632. Vue.prototype.__init_provide = initProvide;
  8633. Vue.prototype.__init_injections = initInjections;
  8634. Vue.prototype.__call_hook = function(hook, args) {
  8635. var vm = this;
  8636. // #7573 disable dep collection when invoking lifecycle hooks
  8637. pushTarget();
  8638. var handlers = vm.$options[hook];
  8639. var info = hook + " hook";
  8640. var ret;
  8641. if (handlers) {
  8642. for (var i = 0, j = handlers.length; i < j; i++) {
  8643. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8644. }
  8645. }
  8646. if (vm._hasHookEvent) {
  8647. vm.$emit('hook:' + hook, args);
  8648. }
  8649. popTarget();
  8650. return ret
  8651. };
  8652. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8653. if (Array.isArray(modifiers)) {
  8654. if (modifiers.indexOf('trim') !== -1) {
  8655. value = value.trim();
  8656. }
  8657. if (modifiers.indexOf('number') !== -1) {
  8658. value = this._n(value);
  8659. }
  8660. }
  8661. if (!target) {
  8662. target = this;
  8663. }
  8664. // 解决动态属性添加
  8665. Vue.set(target, key, value);
  8666. };
  8667. Vue.prototype.__set_sync = function(target, key, value) {
  8668. if (!target) {
  8669. target = this;
  8670. }
  8671. // 解决动态属性添加
  8672. Vue.set(target, key, value);
  8673. };
  8674. Vue.prototype.__get_orig = function(item) {
  8675. if (isPlainObject(item)) {
  8676. return item['$orig'] || item
  8677. }
  8678. return item
  8679. };
  8680. Vue.prototype.__get_value = function(dataPath, target) {
  8681. return getTarget(target || this, dataPath)
  8682. };
  8683. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8684. return renderClass(staticClass, dynamicClass)
  8685. };
  8686. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8687. if (!dynamicStyle && !staticStyle) {
  8688. return ''
  8689. }
  8690. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8691. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8692. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8693. };
  8694. Vue.prototype.__map = function(val, iteratee) {
  8695. //TODO 暂不考虑 string
  8696. var ret, i, l, keys, key;
  8697. if (Array.isArray(val)) {
  8698. ret = new Array(val.length);
  8699. for (i = 0, l = val.length; i < l; i++) {
  8700. ret[i] = iteratee(val[i], i);
  8701. }
  8702. return ret
  8703. } else if (isObject(val)) {
  8704. keys = Object.keys(val);
  8705. ret = Object.create(null);
  8706. for (i = 0, l = keys.length; i < l; i++) {
  8707. key = keys[i];
  8708. ret[key] = iteratee(val[key], key, i);
  8709. }
  8710. return ret
  8711. } else if (typeof val === 'number') {
  8712. ret = new Array(val);
  8713. for (i = 0, l = val; i < l; i++) {
  8714. // 第一个参数暂时仍和小程序一致
  8715. ret[i] = iteratee(i, i);
  8716. }
  8717. return ret
  8718. }
  8719. return []
  8720. };
  8721. }
  8722. /* */
  8723. var LIFECYCLE_HOOKS$1 = [
  8724. //App
  8725. 'onLaunch',
  8726. 'onShow',
  8727. 'onHide',
  8728. 'onUniNViewMessage',
  8729. 'onPageNotFound',
  8730. 'onThemeChange',
  8731. 'onError',
  8732. 'onUnhandledRejection',
  8733. //Page
  8734. 'onInit',
  8735. 'onLoad',
  8736. // 'onShow',
  8737. 'onReady',
  8738. // 'onHide',
  8739. 'onUnload',
  8740. 'onPullDownRefresh',
  8741. 'onReachBottom',
  8742. 'onTabItemTap',
  8743. 'onAddToFavorites',
  8744. 'onShareTimeline',
  8745. 'onShareAppMessage',
  8746. 'onResize',
  8747. 'onPageScroll',
  8748. 'onNavigationBarButtonTap',
  8749. 'onBackPress',
  8750. 'onNavigationBarSearchInputChanged',
  8751. 'onNavigationBarSearchInputConfirmed',
  8752. 'onNavigationBarSearchInputClicked',
  8753. 'onUploadDouyinVideo',
  8754. 'onNFCReadMessage',
  8755. //Component
  8756. // 'onReady', // 兼容旧版本,应该移除该事件
  8757. 'onPageShow',
  8758. 'onPageHide',
  8759. 'onPageResize'
  8760. ];
  8761. function lifecycleMixin$1(Vue) {
  8762. //fixed vue-class-component
  8763. var oldExtend = Vue.extend;
  8764. Vue.extend = function(extendOptions) {
  8765. extendOptions = extendOptions || {};
  8766. var methods = extendOptions.methods;
  8767. if (methods) {
  8768. Object.keys(methods).forEach(function (methodName) {
  8769. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8770. extendOptions[methodName] = methods[methodName];
  8771. delete methods[methodName];
  8772. }
  8773. });
  8774. }
  8775. return oldExtend.call(this, extendOptions)
  8776. };
  8777. var strategies = Vue.config.optionMergeStrategies;
  8778. var mergeHook = strategies.created;
  8779. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8780. strategies[hook] = mergeHook;
  8781. });
  8782. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8783. }
  8784. /* */
  8785. // install platform patch function
  8786. Vue.prototype.__patch__ = patch;
  8787. // public mount method
  8788. Vue.prototype.$mount = function(
  8789. el ,
  8790. hydrating
  8791. ) {
  8792. return mountComponent$1(this, el, hydrating)
  8793. };
  8794. lifecycleMixin$1(Vue);
  8795. internalMixin(Vue);
  8796. /* */
  8797. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8798. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8799. /***/ }),
  8800. /* 26 */
  8801. /*!***********************************************!*\
  8802. !*** D:/2024/HBuilderProjects/xcx/pages.json ***!
  8803. \***********************************************/
  8804. /*! no static exports found */
  8805. /***/ (function(module, exports) {
  8806. /***/ }),
  8807. /* 27 */,
  8808. /* 28 */,
  8809. /* 29 */,
  8810. /* 30 */,
  8811. /* 31 */,
  8812. /* 32 */
  8813. /*!**********************************************************************************************************!*\
  8814. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8815. \**********************************************************************************************************/
  8816. /*! exports provided: default */
  8817. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8818. "use strict";
  8819. __webpack_require__.r(__webpack_exports__);
  8820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8821. /* globals __VUE_SSR_CONTEXT__ */
  8822. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8823. // This module is a runtime utility for cleaner component module output and will
  8824. // be included in the final webpack user bundle.
  8825. function normalizeComponent (
  8826. scriptExports,
  8827. render,
  8828. staticRenderFns,
  8829. functionalTemplate,
  8830. injectStyles,
  8831. scopeId,
  8832. moduleIdentifier, /* server only */
  8833. shadowMode, /* vue-cli only */
  8834. components, // fixed by xxxxxx auto components
  8835. renderjs // fixed by xxxxxx renderjs
  8836. ) {
  8837. // Vue.extend constructor export interop
  8838. var options = typeof scriptExports === 'function'
  8839. ? scriptExports.options
  8840. : scriptExports
  8841. // fixed by xxxxxx auto components
  8842. if (components) {
  8843. if (!options.components) {
  8844. options.components = {}
  8845. }
  8846. var hasOwn = Object.prototype.hasOwnProperty
  8847. for (var name in components) {
  8848. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8849. options.components[name] = components[name]
  8850. }
  8851. }
  8852. }
  8853. // fixed by xxxxxx renderjs
  8854. if (renderjs) {
  8855. if(typeof renderjs.beforeCreate === 'function'){
  8856. renderjs.beforeCreate = [renderjs.beforeCreate]
  8857. }
  8858. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8859. this[renderjs.__module] = this
  8860. });
  8861. (options.mixins || (options.mixins = [])).push(renderjs)
  8862. }
  8863. // render functions
  8864. if (render) {
  8865. options.render = render
  8866. options.staticRenderFns = staticRenderFns
  8867. options._compiled = true
  8868. }
  8869. // functional template
  8870. if (functionalTemplate) {
  8871. options.functional = true
  8872. }
  8873. // scopedId
  8874. if (scopeId) {
  8875. options._scopeId = 'data-v-' + scopeId
  8876. }
  8877. var hook
  8878. if (moduleIdentifier) { // server build
  8879. hook = function (context) {
  8880. // 2.3 injection
  8881. context =
  8882. context || // cached call
  8883. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8884. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8885. // 2.2 with runInNewContext: true
  8886. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8887. context = __VUE_SSR_CONTEXT__
  8888. }
  8889. // inject component styles
  8890. if (injectStyles) {
  8891. injectStyles.call(this, context)
  8892. }
  8893. // register component module identifier for async chunk inferrence
  8894. if (context && context._registeredComponents) {
  8895. context._registeredComponents.add(moduleIdentifier)
  8896. }
  8897. }
  8898. // used by ssr in case component is cached and beforeCreate
  8899. // never gets called
  8900. options._ssrRegister = hook
  8901. } else if (injectStyles) {
  8902. hook = shadowMode
  8903. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8904. : injectStyles
  8905. }
  8906. if (hook) {
  8907. if (options.functional) {
  8908. // for template-only hot-reload because in that case the render fn doesn't
  8909. // go through the normalizer
  8910. options._injectStyles = hook
  8911. // register for functioal component in vue file
  8912. var originalRender = options.render
  8913. options.render = function renderWithStyleInjection (h, context) {
  8914. hook.call(context)
  8915. return originalRender(h, context)
  8916. }
  8917. } else {
  8918. // inject component registration as beforeCreate hook
  8919. var existing = options.beforeCreate
  8920. options.beforeCreate = existing
  8921. ? [].concat(existing, hook)
  8922. : [hook]
  8923. }
  8924. }
  8925. return {
  8926. exports: scriptExports,
  8927. options: options
  8928. }
  8929. }
  8930. /***/ }),
  8931. /* 33 */
  8932. /*!******************************************************************!*\
  8933. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/index.js ***!
  8934. \******************************************************************/
  8935. /*! no static exports found */
  8936. /***/ (function(module, exports, __webpack_require__) {
  8937. "use strict";
  8938. /* WEBPACK VAR INJECTION */(function(uni) {
  8939. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8940. Object.defineProperty(exports, "__esModule", {
  8941. value: true
  8942. });
  8943. exports.default = void 0;
  8944. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  8945. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 34));
  8946. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 35));
  8947. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 36));
  8948. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 54));
  8949. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 58));
  8950. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 59));
  8951. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 60));
  8952. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 61));
  8953. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 62));
  8954. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 65));
  8955. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 66));
  8956. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 156));
  8957. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 114));
  8958. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 157));
  8959. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  8960. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  8961. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  8962. var pleaseSetTranspileDependencies = {},
  8963. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  8964. // 引入全局mixin
  8965. var $u = _objectSpread(_objectSpread({
  8966. route: _route.default,
  8967. date: _index.default.timeFormat,
  8968. // 另名date
  8969. colorGradient: _colorGradient.default.colorGradient,
  8970. hexToRgb: _colorGradient.default.hexToRgb,
  8971. rgbToHex: _colorGradient.default.rgbToHex,
  8972. colorToRgba: _colorGradient.default.colorToRgba,
  8973. test: _test.default,
  8974. type: ['primary', 'success', 'error', 'warning', 'info'],
  8975. http: new _luchRequest.default(),
  8976. config: _config.default,
  8977. // uView配置信息相关,比如版本号
  8978. zIndex: _zIndex.default,
  8979. debounce: _debounce.default,
  8980. throttle: _throttle.default,
  8981. mixin: _mixin.default,
  8982. mpMixin: _mpMixin.default,
  8983. props: _props.default
  8984. }, _index.default), {}, {
  8985. color: _color.default,
  8986. platform: _platform.default
  8987. });
  8988. // $u挂载到uni对象上
  8989. uni.$u = $u;
  8990. var install = function install(Vue) {
  8991. // 时间格式化,同时两个名称,date和timeFormat
  8992. Vue.filter('timeFormat', function (timestamp, format) {
  8993. return uni.$u.timeFormat(timestamp, format);
  8994. });
  8995. Vue.filter('date', function (timestamp, format) {
  8996. return uni.$u.timeFormat(timestamp, format);
  8997. });
  8998. // 将多久以前的方法,注入到全局过滤器
  8999. Vue.filter('timeFrom', function (timestamp, format) {
  9000. return uni.$u.timeFrom(timestamp, format);
  9001. });
  9002. // 同时挂载到uni和Vue.prototype中
  9003. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9004. Vue.prototype.$u = $u;
  9005. Vue.mixin(_mixin.default);
  9006. };
  9007. var _default = {
  9008. install: install
  9009. };
  9010. exports.default = _default;
  9011. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9012. /***/ }),
  9013. /* 34 */
  9014. /*!*****************************************************************************!*\
  9015. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  9016. \*****************************************************************************/
  9017. /*! no static exports found */
  9018. /***/ (function(module, exports, __webpack_require__) {
  9019. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9020. // 定义每个组件都可能需要用到的外部样式以及类名
  9021. props: {
  9022. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9023. customStyle: {
  9024. type: [Object, String],
  9025. default: function _default() {
  9026. return {};
  9027. }
  9028. },
  9029. customClass: {
  9030. type: String,
  9031. default: ''
  9032. },
  9033. // 跳转的页面路径
  9034. url: {
  9035. type: String,
  9036. default: ''
  9037. },
  9038. // 页面跳转的类型
  9039. linkType: {
  9040. type: String,
  9041. default: 'navigateTo'
  9042. }
  9043. },
  9044. data: function data() {
  9045. return {};
  9046. },
  9047. onLoad: function onLoad() {
  9048. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9049. this.$u.getRect = this.$uGetRect;
  9050. },
  9051. created: function created() {
  9052. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9053. this.$u.getRect = this.$uGetRect;
  9054. },
  9055. computed: {
  9056. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9057. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9058. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9059. $u: function $u() {
  9060. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9061. return uni.$u.deepMerge(uni.$u, {
  9062. props: undefined,
  9063. http: undefined,
  9064. mixin: undefined
  9065. });
  9066. },
  9067. /**
  9068. * 生成bem规则类名
  9069. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9070. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9071. * @param {String} name 组件名称
  9072. * @param {Array} fixed 一直会存在的类名
  9073. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9074. * @returns {Array|string}
  9075. */
  9076. bem: function bem() {
  9077. return function (name, fixed, change) {
  9078. var _this = this;
  9079. // 类名前缀
  9080. var prefix = "u-".concat(name, "--");
  9081. var classes = {};
  9082. if (fixed) {
  9083. fixed.map(function (item) {
  9084. // 这里的类名,会一直存在
  9085. classes[prefix + _this[item]] = true;
  9086. });
  9087. }
  9088. if (change) {
  9089. change.map(function (item) {
  9090. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9091. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9092. });
  9093. }
  9094. return Object.keys(classes);
  9095. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9096. };
  9097. }
  9098. },
  9099. methods: {
  9100. // 跳转某一个页面
  9101. openPage: function openPage() {
  9102. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9103. var url = this[urlKey];
  9104. if (url) {
  9105. // 执行类似uni.navigateTo的方法
  9106. uni[this.linkType]({
  9107. url: url
  9108. });
  9109. }
  9110. },
  9111. // 查询节点信息
  9112. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9113. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9114. $uGetRect: function $uGetRect(selector, all) {
  9115. var _this2 = this;
  9116. return new Promise(function (resolve) {
  9117. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9118. if (all && Array.isArray(rect) && rect.length) {
  9119. resolve(rect);
  9120. }
  9121. if (!all && rect) {
  9122. resolve(rect);
  9123. }
  9124. }).exec();
  9125. });
  9126. },
  9127. getParentData: function getParentData() {
  9128. var _this3 = this;
  9129. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9130. // 避免在created中去定义parent变量
  9131. if (!this.parent) this.parent = {};
  9132. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9133. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9134. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9135. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9136. this.parent = uni.$u.$parent.call(this, parentName);
  9137. if (this.parent.children) {
  9138. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9139. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9140. }
  9141. if (this.parent && this.parentData) {
  9142. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9143. Object.keys(this.parentData).map(function (key) {
  9144. _this3.parentData[key] = _this3.parent[key];
  9145. });
  9146. }
  9147. },
  9148. // 阻止事件冒泡
  9149. preventEvent: function preventEvent(e) {
  9150. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9151. },
  9152. // 空操作
  9153. noop: function noop(e) {
  9154. this.preventEvent(e);
  9155. }
  9156. },
  9157. onReachBottom: function onReachBottom() {
  9158. uni.$emit('uOnReachBottom');
  9159. },
  9160. beforeDestroy: function beforeDestroy() {
  9161. var _this4 = this;
  9162. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9163. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9164. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9165. // 组件销毁时,移除父组件中的children数组中对应的实例
  9166. var childrenList = this.parent.children;
  9167. childrenList.map(function (child, index) {
  9168. // 如果相等,则移除
  9169. if (child === _this4) {
  9170. childrenList.splice(index, 1);
  9171. }
  9172. });
  9173. }
  9174. }
  9175. };
  9176. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9177. /***/ }),
  9178. /* 35 */
  9179. /*!*******************************************************************************!*\
  9180. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9181. \*******************************************************************************/
  9182. /*! no static exports found */
  9183. /***/ (function(module, exports, __webpack_require__) {
  9184. "use strict";
  9185. Object.defineProperty(exports, "__esModule", {
  9186. value: true
  9187. });
  9188. exports.default = void 0;
  9189. var _default = {
  9190. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9191. options: {
  9192. virtualHost: true
  9193. }
  9194. };
  9195. exports.default = _default;
  9196. /***/ }),
  9197. /* 36 */
  9198. /*!************************************************************************************!*\
  9199. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/index.js ***!
  9200. \************************************************************************************/
  9201. /*! no static exports found */
  9202. /***/ (function(module, exports, __webpack_require__) {
  9203. "use strict";
  9204. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9205. Object.defineProperty(exports, "__esModule", {
  9206. value: true
  9207. });
  9208. exports.default = void 0;
  9209. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 37));
  9210. var _default = _Request.default;
  9211. exports.default = _default;
  9212. /***/ }),
  9213. /* 37 */
  9214. /*!*******************************************************************************************!*\
  9215. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9216. \*******************************************************************************************/
  9217. /*! no static exports found */
  9218. /***/ (function(module, exports, __webpack_require__) {
  9219. "use strict";
  9220. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9221. Object.defineProperty(exports, "__esModule", {
  9222. value: true
  9223. });
  9224. exports.default = void 0;
  9225. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9226. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9227. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9228. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 38));
  9229. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 46));
  9230. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 47));
  9231. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 48));
  9232. var _utils = __webpack_require__(/*! ../utils */ 41);
  9233. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 49));
  9234. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  9235. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  9236. var Request = /*#__PURE__*/function () {
  9237. /**
  9238. * @param {Object} arg - 全局配置
  9239. * @param {String} arg.baseURL - 全局根路径
  9240. * @param {Object} arg.header - 全局header
  9241. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9242. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9243. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9244. * @param {Object} arg.custom - 全局默认的自定义参数
  9245. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9246. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9247. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9248. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9249. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9250. */
  9251. function Request() {
  9252. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9253. (0, _classCallCheck2.default)(this, Request);
  9254. if (!(0, _utils.isPlainObject)(arg)) {
  9255. arg = {};
  9256. console.warn('设置全局参数必须接收一个Object');
  9257. }
  9258. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9259. this.interceptors = {
  9260. request: new _InterceptorManager.default(),
  9261. response: new _InterceptorManager.default()
  9262. };
  9263. }
  9264. /**
  9265. * @Function
  9266. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9267. */
  9268. (0, _createClass2.default)(Request, [{
  9269. key: "setConfig",
  9270. value: function setConfig(f) {
  9271. this.config = f(this.config);
  9272. }
  9273. }, {
  9274. key: "middleware",
  9275. value: function middleware(config) {
  9276. config = (0, _mergeConfig.default)(this.config, config);
  9277. var chain = [_dispatchRequest.default, undefined];
  9278. var promise = Promise.resolve(config);
  9279. this.interceptors.request.forEach(function (interceptor) {
  9280. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9281. });
  9282. this.interceptors.response.forEach(function (interceptor) {
  9283. chain.push(interceptor.fulfilled, interceptor.rejected);
  9284. });
  9285. while (chain.length) {
  9286. promise = promise.then(chain.shift(), chain.shift());
  9287. }
  9288. return promise;
  9289. }
  9290. /**
  9291. * @Function
  9292. * @param {Object} config - 请求配置项
  9293. * @prop {String} options.url - 请求路径
  9294. * @prop {Object} options.data - 请求参数
  9295. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9296. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9297. * @prop {Object} [options.header = config.header] - 请求header
  9298. * @prop {Object} [options.method = config.method] - 请求方法
  9299. * @returns {Promise<unknown>}
  9300. */
  9301. }, {
  9302. key: "request",
  9303. value: function request() {
  9304. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9305. return this.middleware(config);
  9306. }
  9307. }, {
  9308. key: "get",
  9309. value: function get(url) {
  9310. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9311. return this.middleware(_objectSpread({
  9312. url: url,
  9313. method: 'GET'
  9314. }, options));
  9315. }
  9316. }, {
  9317. key: "post",
  9318. value: function post(url, data) {
  9319. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9320. return this.middleware(_objectSpread({
  9321. url: url,
  9322. data: data,
  9323. method: 'POST'
  9324. }, options));
  9325. }
  9326. }, {
  9327. key: "put",
  9328. value: function put(url, data) {
  9329. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9330. return this.middleware(_objectSpread({
  9331. url: url,
  9332. data: data,
  9333. method: 'PUT'
  9334. }, options));
  9335. }
  9336. }, {
  9337. key: "delete",
  9338. value: function _delete(url, data) {
  9339. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9340. return this.middleware(_objectSpread({
  9341. url: url,
  9342. data: data,
  9343. method: 'DELETE'
  9344. }, options));
  9345. }
  9346. }, {
  9347. key: "connect",
  9348. value: function connect(url, data) {
  9349. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9350. return this.middleware(_objectSpread({
  9351. url: url,
  9352. data: data,
  9353. method: 'CONNECT'
  9354. }, options));
  9355. }
  9356. }, {
  9357. key: "head",
  9358. value: function head(url, data) {
  9359. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9360. return this.middleware(_objectSpread({
  9361. url: url,
  9362. data: data,
  9363. method: 'HEAD'
  9364. }, options));
  9365. }
  9366. }, {
  9367. key: "options",
  9368. value: function options(url, data) {
  9369. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9370. return this.middleware(_objectSpread({
  9371. url: url,
  9372. data: data,
  9373. method: 'OPTIONS'
  9374. }, _options));
  9375. }
  9376. }, {
  9377. key: "trace",
  9378. value: function trace(url, data) {
  9379. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9380. return this.middleware(_objectSpread({
  9381. url: url,
  9382. data: data,
  9383. method: 'TRACE'
  9384. }, options));
  9385. }
  9386. }, {
  9387. key: "upload",
  9388. value: function upload(url) {
  9389. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9390. config.url = url;
  9391. config.method = 'UPLOAD';
  9392. return this.middleware(config);
  9393. }
  9394. }, {
  9395. key: "download",
  9396. value: function download(url) {
  9397. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9398. config.url = url;
  9399. config.method = 'DOWNLOAD';
  9400. return this.middleware(config);
  9401. }
  9402. }]);
  9403. return Request;
  9404. }();
  9405. /**
  9406. * setConfig回调
  9407. * @return {Object} - 返回操作后的config
  9408. * @callback Request~setConfigCallback
  9409. * @param {Object} config - 全局默认config
  9410. */
  9411. exports.default = Request;
  9412. /***/ }),
  9413. /* 38 */
  9414. /*!***************************************************************************************************!*\
  9415. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9416. \***************************************************************************************************/
  9417. /*! no static exports found */
  9418. /***/ (function(module, exports, __webpack_require__) {
  9419. "use strict";
  9420. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9421. Object.defineProperty(exports, "__esModule", {
  9422. value: true
  9423. });
  9424. exports.default = void 0;
  9425. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 39));
  9426. var _default = function _default(config) {
  9427. return (0, _index.default)(config);
  9428. };
  9429. exports.default = _default;
  9430. /***/ }),
  9431. /* 39 */
  9432. /*!*********************************************************************************************!*\
  9433. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9434. \*********************************************************************************************/
  9435. /*! no static exports found */
  9436. /***/ (function(module, exports, __webpack_require__) {
  9437. "use strict";
  9438. /* WEBPACK VAR INJECTION */(function(uni) {
  9439. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9440. Object.defineProperty(exports, "__esModule", {
  9441. value: true
  9442. });
  9443. exports.default = void 0;
  9444. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9445. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 40));
  9446. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 42));
  9447. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 45));
  9448. var _utils = __webpack_require__(/*! ../utils */ 41);
  9449. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  9450. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  9451. /**
  9452. * 返回可选值存在的配置
  9453. * @param {Array} keys - 可选值数组
  9454. * @param {Object} config2 - 配置
  9455. * @return {{}} - 存在的配置项
  9456. */
  9457. var mergeKeys = function mergeKeys(keys, config2) {
  9458. var config = {};
  9459. keys.forEach(function (prop) {
  9460. if (!(0, _utils.isUndefined)(config2[prop])) {
  9461. config[prop] = config2[prop];
  9462. }
  9463. });
  9464. return config;
  9465. };
  9466. var _default = function _default(config) {
  9467. return new Promise(function (resolve, reject) {
  9468. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9469. var _config = {
  9470. url: fullPath,
  9471. header: config.header,
  9472. complete: function complete(response) {
  9473. config.fullPath = fullPath;
  9474. response.config = config;
  9475. try {
  9476. // 对可能字符串不是json 的情况容错
  9477. if (typeof response.data === 'string') {
  9478. response.data = JSON.parse(response.data);
  9479. }
  9480. // eslint-disable-next-line no-empty
  9481. } catch (e) {}
  9482. (0, _settle.default)(resolve, reject, response);
  9483. }
  9484. };
  9485. var requestTask;
  9486. if (config.method === 'UPLOAD') {
  9487. delete _config.header['content-type'];
  9488. delete _config.header['Content-Type'];
  9489. var otherConfig = {
  9490. filePath: config.filePath,
  9491. name: config.name
  9492. };
  9493. var optionalKeys = ['formData'];
  9494. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9495. } else if (config.method === 'DOWNLOAD') {
  9496. requestTask = uni.downloadFile(_config);
  9497. } else {
  9498. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9499. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9500. }
  9501. if (config.getTask) {
  9502. config.getTask(requestTask, config);
  9503. }
  9504. });
  9505. };
  9506. exports.default = _default;
  9507. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9508. /***/ }),
  9509. /* 40 */
  9510. /*!***********************************************************************************************!*\
  9511. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9512. \***********************************************************************************************/
  9513. /*! no static exports found */
  9514. /***/ (function(module, exports, __webpack_require__) {
  9515. "use strict";
  9516. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9517. Object.defineProperty(exports, "__esModule", {
  9518. value: true
  9519. });
  9520. exports.default = buildURL;
  9521. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 41));
  9522. function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
  9523. function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  9524. function encode(val) {
  9525. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9526. }
  9527. /**
  9528. * Build a URL by appending params to the end
  9529. *
  9530. * @param {string} url The base of the url (e.g., http://www.google.com)
  9531. * @param {object} [params] The params to be appended
  9532. * @returns {string} The formatted url
  9533. */
  9534. function buildURL(url, params) {
  9535. /* eslint no-param-reassign:0 */
  9536. if (!params) {
  9537. return url;
  9538. }
  9539. var serializedParams;
  9540. if (utils.isURLSearchParams(params)) {
  9541. serializedParams = params.toString();
  9542. } else {
  9543. var parts = [];
  9544. utils.forEach(params, function (val, key) {
  9545. if (val === null || typeof val === 'undefined') {
  9546. return;
  9547. }
  9548. if (utils.isArray(val)) {
  9549. key = "".concat(key, "[]");
  9550. } else {
  9551. val = [val];
  9552. }
  9553. utils.forEach(val, function (v) {
  9554. if (utils.isDate(v)) {
  9555. v = v.toISOString();
  9556. } else if (utils.isObject(v)) {
  9557. v = JSON.stringify(v);
  9558. }
  9559. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9560. });
  9561. });
  9562. serializedParams = parts.join('&');
  9563. }
  9564. if (serializedParams) {
  9565. var hashmarkIndex = url.indexOf('#');
  9566. if (hashmarkIndex !== -1) {
  9567. url = url.slice(0, hashmarkIndex);
  9568. }
  9569. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9570. }
  9571. return url;
  9572. }
  9573. /***/ }),
  9574. /* 41 */
  9575. /*!************************************************************************************!*\
  9576. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  9577. \************************************************************************************/
  9578. /*! no static exports found */
  9579. /***/ (function(module, exports, __webpack_require__) {
  9580. "use strict";
  9581. // utils is a library of generic helper functions non-specific to axios
  9582. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9583. Object.defineProperty(exports, "__esModule", {
  9584. value: true
  9585. });
  9586. exports.deepMerge = deepMerge;
  9587. exports.forEach = forEach;
  9588. exports.isArray = isArray;
  9589. exports.isBoolean = isBoolean;
  9590. exports.isDate = isDate;
  9591. exports.isObject = isObject;
  9592. exports.isPlainObject = isPlainObject;
  9593. exports.isURLSearchParams = isURLSearchParams;
  9594. exports.isUndefined = isUndefined;
  9595. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9596. var toString = Object.prototype.toString;
  9597. /**
  9598. * Determine if a value is an Array
  9599. *
  9600. * @param {Object} val The value to test
  9601. * @returns {boolean} True if value is an Array, otherwise false
  9602. */
  9603. function isArray(val) {
  9604. return toString.call(val) === '[object Array]';
  9605. }
  9606. /**
  9607. * Determine if a value is an Object
  9608. *
  9609. * @param {Object} val The value to test
  9610. * @returns {boolean} True if value is an Object, otherwise false
  9611. */
  9612. function isObject(val) {
  9613. return val !== null && (0, _typeof2.default)(val) === 'object';
  9614. }
  9615. /**
  9616. * Determine if a value is a Date
  9617. *
  9618. * @param {Object} val The value to test
  9619. * @returns {boolean} True if value is a Date, otherwise false
  9620. */
  9621. function isDate(val) {
  9622. return toString.call(val) === '[object Date]';
  9623. }
  9624. /**
  9625. * Determine if a value is a URLSearchParams object
  9626. *
  9627. * @param {Object} val The value to test
  9628. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9629. */
  9630. function isURLSearchParams(val) {
  9631. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9632. }
  9633. /**
  9634. * Iterate over an Array or an Object invoking a function for each item.
  9635. *
  9636. * If `obj` is an Array callback will be called passing
  9637. * the value, index, and complete array for each item.
  9638. *
  9639. * If 'obj' is an Object callback will be called passing
  9640. * the value, key, and complete object for each property.
  9641. *
  9642. * @param {Object|Array} obj The object to iterate
  9643. * @param {Function} fn The callback to invoke for each item
  9644. */
  9645. function forEach(obj, fn) {
  9646. // Don't bother if no value provided
  9647. if (obj === null || typeof obj === 'undefined') {
  9648. return;
  9649. }
  9650. // Force an array if not already something iterable
  9651. if ((0, _typeof2.default)(obj) !== 'object') {
  9652. /* eslint no-param-reassign:0 */
  9653. obj = [obj];
  9654. }
  9655. if (isArray(obj)) {
  9656. // Iterate over array values
  9657. for (var i = 0, l = obj.length; i < l; i++) {
  9658. fn.call(null, obj[i], i, obj);
  9659. }
  9660. } else {
  9661. // Iterate over object keys
  9662. for (var key in obj) {
  9663. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9664. fn.call(null, obj[key], key, obj);
  9665. }
  9666. }
  9667. }
  9668. }
  9669. /**
  9670. * 是否为boolean 值
  9671. * @param val
  9672. * @returns {boolean}
  9673. */
  9674. function isBoolean(val) {
  9675. return typeof val === 'boolean';
  9676. }
  9677. /**
  9678. * 是否为真正的对象{} new Object
  9679. * @param {any} obj - 检测的对象
  9680. * @returns {boolean}
  9681. */
  9682. function isPlainObject(obj) {
  9683. return Object.prototype.toString.call(obj) === '[object Object]';
  9684. }
  9685. /**
  9686. * Function equal to merge with the difference being that no reference
  9687. * to original objects is kept.
  9688. *
  9689. * @see merge
  9690. * @param {Object} obj1 Object to merge
  9691. * @returns {Object} Result of all merge properties
  9692. */
  9693. function deepMerge( /* obj1, obj2, obj3, ... */
  9694. ) {
  9695. var result = {};
  9696. function assignValue(val, key) {
  9697. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9698. result[key] = deepMerge(result[key], val);
  9699. } else if ((0, _typeof2.default)(val) === 'object') {
  9700. result[key] = deepMerge({}, val);
  9701. } else {
  9702. result[key] = val;
  9703. }
  9704. }
  9705. for (var i = 0, l = arguments.length; i < l; i++) {
  9706. forEach(arguments[i], assignValue);
  9707. }
  9708. return result;
  9709. }
  9710. function isUndefined(val) {
  9711. return typeof val === 'undefined';
  9712. }
  9713. /***/ }),
  9714. /* 42 */
  9715. /*!*************************************************************************************************!*\
  9716. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9717. \*************************************************************************************************/
  9718. /*! no static exports found */
  9719. /***/ (function(module, exports, __webpack_require__) {
  9720. "use strict";
  9721. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9722. Object.defineProperty(exports, "__esModule", {
  9723. value: true
  9724. });
  9725. exports.default = buildFullPath;
  9726. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 43));
  9727. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 44));
  9728. /**
  9729. * Creates a new URL by combining the baseURL with the requestedURL,
  9730. * only when the requestedURL is not already an absolute URL.
  9731. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9732. *
  9733. * @param {string} baseURL The base URL
  9734. * @param {string} requestedURL Absolute or relative URL to combine
  9735. * @returns {string} The combined full path
  9736. */
  9737. function buildFullPath(baseURL, requestedURL) {
  9738. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9739. return (0, _combineURLs.default)(baseURL, requestedURL);
  9740. }
  9741. return requestedURL;
  9742. }
  9743. /***/ }),
  9744. /* 43 */
  9745. /*!****************************************************************************************************!*\
  9746. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9747. \****************************************************************************************************/
  9748. /*! no static exports found */
  9749. /***/ (function(module, exports, __webpack_require__) {
  9750. "use strict";
  9751. /**
  9752. * Determines whether the specified URL is absolute
  9753. *
  9754. * @param {string} url The URL to test
  9755. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9756. */
  9757. Object.defineProperty(exports, "__esModule", {
  9758. value: true
  9759. });
  9760. exports.default = isAbsoluteURL;
  9761. function isAbsoluteURL(url) {
  9762. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9763. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9764. // by any combination of letters, digits, plus, period, or hyphen.
  9765. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9766. }
  9767. /***/ }),
  9768. /* 44 */
  9769. /*!**************************************************************************************************!*\
  9770. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9771. \**************************************************************************************************/
  9772. /*! no static exports found */
  9773. /***/ (function(module, exports, __webpack_require__) {
  9774. "use strict";
  9775. /**
  9776. * Creates a new URL by combining the specified URLs
  9777. *
  9778. * @param {string} baseURL The base URL
  9779. * @param {string} relativeURL The relative URL
  9780. * @returns {string} The combined URL
  9781. */
  9782. Object.defineProperty(exports, "__esModule", {
  9783. value: true
  9784. });
  9785. exports.default = combineURLs;
  9786. function combineURLs(baseURL, relativeURL) {
  9787. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9788. }
  9789. /***/ }),
  9790. /* 45 */
  9791. /*!******************************************************************************************!*\
  9792. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  9793. \******************************************************************************************/
  9794. /*! no static exports found */
  9795. /***/ (function(module, exports, __webpack_require__) {
  9796. "use strict";
  9797. Object.defineProperty(exports, "__esModule", {
  9798. value: true
  9799. });
  9800. exports.default = settle;
  9801. /**
  9802. * Resolve or reject a Promise based on response status.
  9803. *
  9804. * @param {Function} resolve A function that resolves the promise.
  9805. * @param {Function} reject A function that rejects the promise.
  9806. * @param {object} response The response.
  9807. */
  9808. function settle(resolve, reject, response) {
  9809. var validateStatus = response.config.validateStatus;
  9810. var status = response.statusCode;
  9811. if (status && (!validateStatus || validateStatus(status))) {
  9812. resolve(response);
  9813. } else {
  9814. reject(response);
  9815. }
  9816. }
  9817. /***/ }),
  9818. /* 46 */
  9819. /*!******************************************************************************************************!*\
  9820. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  9821. \******************************************************************************************************/
  9822. /*! no static exports found */
  9823. /***/ (function(module, exports, __webpack_require__) {
  9824. "use strict";
  9825. Object.defineProperty(exports, "__esModule", {
  9826. value: true
  9827. });
  9828. exports.default = void 0;
  9829. function InterceptorManager() {
  9830. this.handlers = [];
  9831. }
  9832. /**
  9833. * Add a new interceptor to the stack
  9834. *
  9835. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  9836. * @param {Function} rejected The function to handle `reject` for a `Promise`
  9837. *
  9838. * @return {Number} An ID used to remove interceptor later
  9839. */
  9840. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  9841. this.handlers.push({
  9842. fulfilled: fulfilled,
  9843. rejected: rejected
  9844. });
  9845. return this.handlers.length - 1;
  9846. };
  9847. /**
  9848. * Remove an interceptor from the stack
  9849. *
  9850. * @param {Number} id The ID that was returned by `use`
  9851. */
  9852. InterceptorManager.prototype.eject = function eject(id) {
  9853. if (this.handlers[id]) {
  9854. this.handlers[id] = null;
  9855. }
  9856. };
  9857. /**
  9858. * Iterate over all the registered interceptors
  9859. *
  9860. * This method is particularly useful for skipping over any
  9861. * interceptors that may have become `null` calling `eject`.
  9862. *
  9863. * @param {Function} fn The function to call for each interceptor
  9864. */
  9865. InterceptorManager.prototype.forEach = function forEach(fn) {
  9866. this.handlers.forEach(function (h) {
  9867. if (h !== null) {
  9868. fn(h);
  9869. }
  9870. });
  9871. };
  9872. var _default = InterceptorManager;
  9873. exports.default = _default;
  9874. /***/ }),
  9875. /* 47 */
  9876. /*!***********************************************************************************************!*\
  9877. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  9878. \***********************************************************************************************/
  9879. /*! no static exports found */
  9880. /***/ (function(module, exports, __webpack_require__) {
  9881. "use strict";
  9882. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9883. Object.defineProperty(exports, "__esModule", {
  9884. value: true
  9885. });
  9886. exports.default = void 0;
  9887. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9888. var _utils = __webpack_require__(/*! ../utils */ 41);
  9889. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  9890. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  9891. /**
  9892. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  9893. * @param {Array} keys - 配置项
  9894. * @param {Object} globalsConfig - 当前的全局配置
  9895. * @param {Object} config2 - 局部配置
  9896. * @return {{}}
  9897. */
  9898. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  9899. var config = {};
  9900. keys.forEach(function (prop) {
  9901. if (!(0, _utils.isUndefined)(config2[prop])) {
  9902. config[prop] = config2[prop];
  9903. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  9904. config[prop] = globalsConfig[prop];
  9905. }
  9906. });
  9907. return config;
  9908. };
  9909. /**
  9910. *
  9911. * @param globalsConfig - 当前实例的全局配置
  9912. * @param config2 - 当前的局部配置
  9913. * @return - 合并后的配置
  9914. */
  9915. var _default = function _default(globalsConfig) {
  9916. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9917. var method = config2.method || globalsConfig.method || 'GET';
  9918. var config = {
  9919. baseURL: globalsConfig.baseURL || '',
  9920. method: method,
  9921. url: config2.url || '',
  9922. params: config2.params || {},
  9923. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  9924. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  9925. };
  9926. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  9927. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  9928. // eslint-disable-next-line no-empty
  9929. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  9930. delete config.header['content-type'];
  9931. delete config.header['Content-Type'];
  9932. var uploadKeys = ['filePath', 'name', 'formData'];
  9933. uploadKeys.forEach(function (prop) {
  9934. if (!(0, _utils.isUndefined)(config2[prop])) {
  9935. config[prop] = config2[prop];
  9936. }
  9937. });
  9938. } else {
  9939. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  9940. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  9941. }
  9942. return config;
  9943. };
  9944. exports.default = _default;
  9945. /***/ }),
  9946. /* 48 */
  9947. /*!********************************************************************************************!*\
  9948. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  9949. \********************************************************************************************/
  9950. /*! no static exports found */
  9951. /***/ (function(module, exports, __webpack_require__) {
  9952. "use strict";
  9953. Object.defineProperty(exports, "__esModule", {
  9954. value: true
  9955. });
  9956. exports.default = void 0;
  9957. /**
  9958. * 默认的全局配置
  9959. */
  9960. var _default = {
  9961. baseURL: '',
  9962. header: {},
  9963. method: 'GET',
  9964. dataType: 'json',
  9965. responseType: 'text',
  9966. custom: {},
  9967. timeout: 60000,
  9968. validateStatus: function validateStatus(status) {
  9969. return status >= 200 && status < 300;
  9970. }
  9971. };
  9972. exports.default = _default;
  9973. /***/ }),
  9974. /* 49 */
  9975. /*!******************************************************************************************!*\
  9976. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  9977. \******************************************************************************************/
  9978. /*! no static exports found */
  9979. /***/ (function(module, exports, __webpack_require__) {
  9980. "use strict";
  9981. /* WEBPACK VAR INJECTION */(function(Buffer) {
  9982. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9983. Object.defineProperty(exports, "__esModule", {
  9984. value: true
  9985. });
  9986. exports.default = void 0;
  9987. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9988. /* eslint-disable */
  9989. var clone = function () {
  9990. 'use strict';
  9991. function _instanceof(obj, type) {
  9992. return type != null && obj instanceof type;
  9993. }
  9994. var nativeMap;
  9995. try {
  9996. nativeMap = Map;
  9997. } catch (_) {
  9998. // maybe a reference error because no `Map`. Give it a dummy value that no
  9999. // value will ever be an instanceof.
  10000. nativeMap = function nativeMap() {};
  10001. }
  10002. var nativeSet;
  10003. try {
  10004. nativeSet = Set;
  10005. } catch (_) {
  10006. nativeSet = function nativeSet() {};
  10007. }
  10008. var nativePromise;
  10009. try {
  10010. nativePromise = Promise;
  10011. } catch (_) {
  10012. nativePromise = function nativePromise() {};
  10013. }
  10014. /**
  10015. * Clones (copies) an Object using deep copying.
  10016. *
  10017. * This function supports circular references by default, but if you are certain
  10018. * there are no circular references in your object, you can save some CPU time
  10019. * by calling clone(obj, false).
  10020. *
  10021. * Caution: if `circular` is false and `parent` contains circular references,
  10022. * your program may enter an infinite loop and crash.
  10023. *
  10024. * @param `parent` - the object to be cloned
  10025. * @param `circular` - set to true if the object to be cloned may contain
  10026. * circular references. (optional - true by default)
  10027. * @param `depth` - set to a number if the object is only to be cloned to
  10028. * a particular depth. (optional - defaults to Infinity)
  10029. * @param `prototype` - sets the prototype to be used when cloning an object.
  10030. * (optional - defaults to parent prototype).
  10031. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10032. * should be cloned as well. Non-enumerable properties on the prototype
  10033. * chain will be ignored. (optional - false by default)
  10034. */
  10035. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10036. if ((0, _typeof2.default)(circular) === 'object') {
  10037. depth = circular.depth;
  10038. prototype = circular.prototype;
  10039. includeNonEnumerable = circular.includeNonEnumerable;
  10040. circular = circular.circular;
  10041. }
  10042. // maintain two arrays for circular references, where corresponding parents
  10043. // and children have the same index
  10044. var allParents = [];
  10045. var allChildren = [];
  10046. var useBuffer = typeof Buffer != 'undefined';
  10047. if (typeof circular == 'undefined') circular = true;
  10048. if (typeof depth == 'undefined') depth = Infinity;
  10049. // recurse this function so we don't reset allParents and allChildren
  10050. function _clone(parent, depth) {
  10051. // cloning null always returns null
  10052. if (parent === null) return null;
  10053. if (depth === 0) return parent;
  10054. var child;
  10055. var proto;
  10056. if ((0, _typeof2.default)(parent) != 'object') {
  10057. return parent;
  10058. }
  10059. if (_instanceof(parent, nativeMap)) {
  10060. child = new nativeMap();
  10061. } else if (_instanceof(parent, nativeSet)) {
  10062. child = new nativeSet();
  10063. } else if (_instanceof(parent, nativePromise)) {
  10064. child = new nativePromise(function (resolve, reject) {
  10065. parent.then(function (value) {
  10066. resolve(_clone(value, depth - 1));
  10067. }, function (err) {
  10068. reject(_clone(err, depth - 1));
  10069. });
  10070. });
  10071. } else if (clone.__isArray(parent)) {
  10072. child = [];
  10073. } else if (clone.__isRegExp(parent)) {
  10074. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10075. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10076. } else if (clone.__isDate(parent)) {
  10077. child = new Date(parent.getTime());
  10078. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10079. if (Buffer.from) {
  10080. // Node.js >= 5.10.0
  10081. child = Buffer.from(parent);
  10082. } else {
  10083. // Older Node.js versions
  10084. child = new Buffer(parent.length);
  10085. parent.copy(child);
  10086. }
  10087. return child;
  10088. } else if (_instanceof(parent, Error)) {
  10089. child = Object.create(parent);
  10090. } else {
  10091. if (typeof prototype == 'undefined') {
  10092. proto = Object.getPrototypeOf(parent);
  10093. child = Object.create(proto);
  10094. } else {
  10095. child = Object.create(prototype);
  10096. proto = prototype;
  10097. }
  10098. }
  10099. if (circular) {
  10100. var index = allParents.indexOf(parent);
  10101. if (index != -1) {
  10102. return allChildren[index];
  10103. }
  10104. allParents.push(parent);
  10105. allChildren.push(child);
  10106. }
  10107. if (_instanceof(parent, nativeMap)) {
  10108. parent.forEach(function (value, key) {
  10109. var keyChild = _clone(key, depth - 1);
  10110. var valueChild = _clone(value, depth - 1);
  10111. child.set(keyChild, valueChild);
  10112. });
  10113. }
  10114. if (_instanceof(parent, nativeSet)) {
  10115. parent.forEach(function (value) {
  10116. var entryChild = _clone(value, depth - 1);
  10117. child.add(entryChild);
  10118. });
  10119. }
  10120. for (var i in parent) {
  10121. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10122. if (attrs) {
  10123. child[i] = _clone(parent[i], depth - 1);
  10124. }
  10125. try {
  10126. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10127. if (objProperty.set === 'undefined') {
  10128. // no setter defined. Skip cloning this property
  10129. continue;
  10130. }
  10131. child[i] = _clone(parent[i], depth - 1);
  10132. } catch (e) {
  10133. if (e instanceof TypeError) {
  10134. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10135. // we can't do anything about this, other than inform the user that this property cannot be set.
  10136. continue;
  10137. } else if (e instanceof ReferenceError) {
  10138. //this may happen in non strict mode
  10139. continue;
  10140. }
  10141. }
  10142. }
  10143. if (Object.getOwnPropertySymbols) {
  10144. var symbols = Object.getOwnPropertySymbols(parent);
  10145. for (var i = 0; i < symbols.length; i++) {
  10146. // Don't need to worry about cloning a symbol because it is a primitive,
  10147. // like a number or string.
  10148. var symbol = symbols[i];
  10149. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10150. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10151. continue;
  10152. }
  10153. child[symbol] = _clone(parent[symbol], depth - 1);
  10154. Object.defineProperty(child, symbol, descriptor);
  10155. }
  10156. }
  10157. if (includeNonEnumerable) {
  10158. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10159. for (var i = 0; i < allPropertyNames.length; i++) {
  10160. var propertyName = allPropertyNames[i];
  10161. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10162. if (descriptor && descriptor.enumerable) {
  10163. continue;
  10164. }
  10165. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10166. Object.defineProperty(child, propertyName, descriptor);
  10167. }
  10168. }
  10169. return child;
  10170. }
  10171. return _clone(parent, depth);
  10172. }
  10173. /**
  10174. * Simple flat clone using prototype, accepts only objects, usefull for property
  10175. * override on FLAT configuration object (no nested props).
  10176. *
  10177. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10178. * works.
  10179. */
  10180. clone.clonePrototype = function clonePrototype(parent) {
  10181. if (parent === null) return null;
  10182. var c = function c() {};
  10183. c.prototype = parent;
  10184. return new c();
  10185. };
  10186. // private utility functions
  10187. function __objToStr(o) {
  10188. return Object.prototype.toString.call(o);
  10189. }
  10190. clone.__objToStr = __objToStr;
  10191. function __isDate(o) {
  10192. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10193. }
  10194. clone.__isDate = __isDate;
  10195. function __isArray(o) {
  10196. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10197. }
  10198. clone.__isArray = __isArray;
  10199. function __isRegExp(o) {
  10200. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10201. }
  10202. clone.__isRegExp = __isRegExp;
  10203. function __getRegExpFlags(re) {
  10204. var flags = '';
  10205. if (re.global) flags += 'g';
  10206. if (re.ignoreCase) flags += 'i';
  10207. if (re.multiline) flags += 'm';
  10208. return flags;
  10209. }
  10210. clone.__getRegExpFlags = __getRegExpFlags;
  10211. return clone;
  10212. }();
  10213. var _default = clone;
  10214. exports.default = _default;
  10215. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../软件工具/开发工具/HBuilderX/plugins/uniapp-cli/node_modules/buffer/index.js */ 50).Buffer))
  10216. /***/ }),
  10217. /* 50 */
  10218. /*!**************************************!*\
  10219. !*** ./node_modules/buffer/index.js ***!
  10220. \**************************************/
  10221. /*! no static exports found */
  10222. /***/ (function(module, exports, __webpack_require__) {
  10223. "use strict";
  10224. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10225. * The buffer module from node.js, for the browser.
  10226. *
  10227. * @author Feross Aboukhadijeh <http://feross.org>
  10228. * @license MIT
  10229. */
  10230. /* eslint-disable no-proto */
  10231. var base64 = __webpack_require__(/*! base64-js */ 51)
  10232. var ieee754 = __webpack_require__(/*! ieee754 */ 52)
  10233. var isArray = __webpack_require__(/*! isarray */ 53)
  10234. exports.Buffer = Buffer
  10235. exports.SlowBuffer = SlowBuffer
  10236. exports.INSPECT_MAX_BYTES = 50
  10237. /**
  10238. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10239. * === true Use Uint8Array implementation (fastest)
  10240. * === false Use Object implementation (most compatible, even IE6)
  10241. *
  10242. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10243. * Opera 11.6+, iOS 4.2+.
  10244. *
  10245. * Due to various browser bugs, sometimes the Object implementation will be used even
  10246. * when the browser supports typed arrays.
  10247. *
  10248. * Note:
  10249. *
  10250. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10251. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10252. *
  10253. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10254. *
  10255. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10256. * incorrect length in some situations.
  10257. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10258. * get the Object implementation, which is slower but behaves correctly.
  10259. */
  10260. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10261. ? global.TYPED_ARRAY_SUPPORT
  10262. : typedArraySupport()
  10263. /*
  10264. * Export kMaxLength after typed array support is determined.
  10265. */
  10266. exports.kMaxLength = kMaxLength()
  10267. function typedArraySupport () {
  10268. try {
  10269. var arr = new Uint8Array(1)
  10270. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10271. return arr.foo() === 42 && // typed array instances can be augmented
  10272. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10273. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10274. } catch (e) {
  10275. return false
  10276. }
  10277. }
  10278. function kMaxLength () {
  10279. return Buffer.TYPED_ARRAY_SUPPORT
  10280. ? 0x7fffffff
  10281. : 0x3fffffff
  10282. }
  10283. function createBuffer (that, length) {
  10284. if (kMaxLength() < length) {
  10285. throw new RangeError('Invalid typed array length')
  10286. }
  10287. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10288. // Return an augmented `Uint8Array` instance, for best performance
  10289. that = new Uint8Array(length)
  10290. that.__proto__ = Buffer.prototype
  10291. } else {
  10292. // Fallback: Return an object instance of the Buffer class
  10293. if (that === null) {
  10294. that = new Buffer(length)
  10295. }
  10296. that.length = length
  10297. }
  10298. return that
  10299. }
  10300. /**
  10301. * The Buffer constructor returns instances of `Uint8Array` that have their
  10302. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10303. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10304. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10305. * returns a single octet.
  10306. *
  10307. * The `Uint8Array` prototype remains unmodified.
  10308. */
  10309. function Buffer (arg, encodingOrOffset, length) {
  10310. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10311. return new Buffer(arg, encodingOrOffset, length)
  10312. }
  10313. // Common case.
  10314. if (typeof arg === 'number') {
  10315. if (typeof encodingOrOffset === 'string') {
  10316. throw new Error(
  10317. 'If encoding is specified then the first argument must be a string'
  10318. )
  10319. }
  10320. return allocUnsafe(this, arg)
  10321. }
  10322. return from(this, arg, encodingOrOffset, length)
  10323. }
  10324. Buffer.poolSize = 8192 // not used by this implementation
  10325. // TODO: Legacy, not needed anymore. Remove in next major version.
  10326. Buffer._augment = function (arr) {
  10327. arr.__proto__ = Buffer.prototype
  10328. return arr
  10329. }
  10330. function from (that, value, encodingOrOffset, length) {
  10331. if (typeof value === 'number') {
  10332. throw new TypeError('"value" argument must not be a number')
  10333. }
  10334. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10335. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10336. }
  10337. if (typeof value === 'string') {
  10338. return fromString(that, value, encodingOrOffset)
  10339. }
  10340. return fromObject(that, value)
  10341. }
  10342. /**
  10343. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10344. * if value is a number.
  10345. * Buffer.from(str[, encoding])
  10346. * Buffer.from(array)
  10347. * Buffer.from(buffer)
  10348. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10349. **/
  10350. Buffer.from = function (value, encodingOrOffset, length) {
  10351. return from(null, value, encodingOrOffset, length)
  10352. }
  10353. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10354. Buffer.prototype.__proto__ = Uint8Array.prototype
  10355. Buffer.__proto__ = Uint8Array
  10356. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10357. Buffer[Symbol.species] === Buffer) {
  10358. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10359. Object.defineProperty(Buffer, Symbol.species, {
  10360. value: null,
  10361. configurable: true
  10362. })
  10363. }
  10364. }
  10365. function assertSize (size) {
  10366. if (typeof size !== 'number') {
  10367. throw new TypeError('"size" argument must be a number')
  10368. } else if (size < 0) {
  10369. throw new RangeError('"size" argument must not be negative')
  10370. }
  10371. }
  10372. function alloc (that, size, fill, encoding) {
  10373. assertSize(size)
  10374. if (size <= 0) {
  10375. return createBuffer(that, size)
  10376. }
  10377. if (fill !== undefined) {
  10378. // Only pay attention to encoding if it's a string. This
  10379. // prevents accidentally sending in a number that would
  10380. // be interpretted as a start offset.
  10381. return typeof encoding === 'string'
  10382. ? createBuffer(that, size).fill(fill, encoding)
  10383. : createBuffer(that, size).fill(fill)
  10384. }
  10385. return createBuffer(that, size)
  10386. }
  10387. /**
  10388. * Creates a new filled Buffer instance.
  10389. * alloc(size[, fill[, encoding]])
  10390. **/
  10391. Buffer.alloc = function (size, fill, encoding) {
  10392. return alloc(null, size, fill, encoding)
  10393. }
  10394. function allocUnsafe (that, size) {
  10395. assertSize(size)
  10396. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10397. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10398. for (var i = 0; i < size; ++i) {
  10399. that[i] = 0
  10400. }
  10401. }
  10402. return that
  10403. }
  10404. /**
  10405. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10406. * */
  10407. Buffer.allocUnsafe = function (size) {
  10408. return allocUnsafe(null, size)
  10409. }
  10410. /**
  10411. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10412. */
  10413. Buffer.allocUnsafeSlow = function (size) {
  10414. return allocUnsafe(null, size)
  10415. }
  10416. function fromString (that, string, encoding) {
  10417. if (typeof encoding !== 'string' || encoding === '') {
  10418. encoding = 'utf8'
  10419. }
  10420. if (!Buffer.isEncoding(encoding)) {
  10421. throw new TypeError('"encoding" must be a valid string encoding')
  10422. }
  10423. var length = byteLength(string, encoding) | 0
  10424. that = createBuffer(that, length)
  10425. var actual = that.write(string, encoding)
  10426. if (actual !== length) {
  10427. // Writing a hex string, for example, that contains invalid characters will
  10428. // cause everything after the first invalid character to be ignored. (e.g.
  10429. // 'abxxcd' will be treated as 'ab')
  10430. that = that.slice(0, actual)
  10431. }
  10432. return that
  10433. }
  10434. function fromArrayLike (that, array) {
  10435. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10436. that = createBuffer(that, length)
  10437. for (var i = 0; i < length; i += 1) {
  10438. that[i] = array[i] & 255
  10439. }
  10440. return that
  10441. }
  10442. function fromArrayBuffer (that, array, byteOffset, length) {
  10443. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10444. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10445. throw new RangeError('\'offset\' is out of bounds')
  10446. }
  10447. if (array.byteLength < byteOffset + (length || 0)) {
  10448. throw new RangeError('\'length\' is out of bounds')
  10449. }
  10450. if (byteOffset === undefined && length === undefined) {
  10451. array = new Uint8Array(array)
  10452. } else if (length === undefined) {
  10453. array = new Uint8Array(array, byteOffset)
  10454. } else {
  10455. array = new Uint8Array(array, byteOffset, length)
  10456. }
  10457. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10458. // Return an augmented `Uint8Array` instance, for best performance
  10459. that = array
  10460. that.__proto__ = Buffer.prototype
  10461. } else {
  10462. // Fallback: Return an object instance of the Buffer class
  10463. that = fromArrayLike(that, array)
  10464. }
  10465. return that
  10466. }
  10467. function fromObject (that, obj) {
  10468. if (Buffer.isBuffer(obj)) {
  10469. var len = checked(obj.length) | 0
  10470. that = createBuffer(that, len)
  10471. if (that.length === 0) {
  10472. return that
  10473. }
  10474. obj.copy(that, 0, 0, len)
  10475. return that
  10476. }
  10477. if (obj) {
  10478. if ((typeof ArrayBuffer !== 'undefined' &&
  10479. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10480. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10481. return createBuffer(that, 0)
  10482. }
  10483. return fromArrayLike(that, obj)
  10484. }
  10485. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10486. return fromArrayLike(that, obj.data)
  10487. }
  10488. }
  10489. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10490. }
  10491. function checked (length) {
  10492. // Note: cannot use `length < kMaxLength()` here because that fails when
  10493. // length is NaN (which is otherwise coerced to zero.)
  10494. if (length >= kMaxLength()) {
  10495. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10496. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10497. }
  10498. return length | 0
  10499. }
  10500. function SlowBuffer (length) {
  10501. if (+length != length) { // eslint-disable-line eqeqeq
  10502. length = 0
  10503. }
  10504. return Buffer.alloc(+length)
  10505. }
  10506. Buffer.isBuffer = function isBuffer (b) {
  10507. return !!(b != null && b._isBuffer)
  10508. }
  10509. Buffer.compare = function compare (a, b) {
  10510. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10511. throw new TypeError('Arguments must be Buffers')
  10512. }
  10513. if (a === b) return 0
  10514. var x = a.length
  10515. var y = b.length
  10516. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10517. if (a[i] !== b[i]) {
  10518. x = a[i]
  10519. y = b[i]
  10520. break
  10521. }
  10522. }
  10523. if (x < y) return -1
  10524. if (y < x) return 1
  10525. return 0
  10526. }
  10527. Buffer.isEncoding = function isEncoding (encoding) {
  10528. switch (String(encoding).toLowerCase()) {
  10529. case 'hex':
  10530. case 'utf8':
  10531. case 'utf-8':
  10532. case 'ascii':
  10533. case 'latin1':
  10534. case 'binary':
  10535. case 'base64':
  10536. case 'ucs2':
  10537. case 'ucs-2':
  10538. case 'utf16le':
  10539. case 'utf-16le':
  10540. return true
  10541. default:
  10542. return false
  10543. }
  10544. }
  10545. Buffer.concat = function concat (list, length) {
  10546. if (!isArray(list)) {
  10547. throw new TypeError('"list" argument must be an Array of Buffers')
  10548. }
  10549. if (list.length === 0) {
  10550. return Buffer.alloc(0)
  10551. }
  10552. var i
  10553. if (length === undefined) {
  10554. length = 0
  10555. for (i = 0; i < list.length; ++i) {
  10556. length += list[i].length
  10557. }
  10558. }
  10559. var buffer = Buffer.allocUnsafe(length)
  10560. var pos = 0
  10561. for (i = 0; i < list.length; ++i) {
  10562. var buf = list[i]
  10563. if (!Buffer.isBuffer(buf)) {
  10564. throw new TypeError('"list" argument must be an Array of Buffers')
  10565. }
  10566. buf.copy(buffer, pos)
  10567. pos += buf.length
  10568. }
  10569. return buffer
  10570. }
  10571. function byteLength (string, encoding) {
  10572. if (Buffer.isBuffer(string)) {
  10573. return string.length
  10574. }
  10575. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10576. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10577. return string.byteLength
  10578. }
  10579. if (typeof string !== 'string') {
  10580. string = '' + string
  10581. }
  10582. var len = string.length
  10583. if (len === 0) return 0
  10584. // Use a for loop to avoid recursion
  10585. var loweredCase = false
  10586. for (;;) {
  10587. switch (encoding) {
  10588. case 'ascii':
  10589. case 'latin1':
  10590. case 'binary':
  10591. return len
  10592. case 'utf8':
  10593. case 'utf-8':
  10594. case undefined:
  10595. return utf8ToBytes(string).length
  10596. case 'ucs2':
  10597. case 'ucs-2':
  10598. case 'utf16le':
  10599. case 'utf-16le':
  10600. return len * 2
  10601. case 'hex':
  10602. return len >>> 1
  10603. case 'base64':
  10604. return base64ToBytes(string).length
  10605. default:
  10606. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10607. encoding = ('' + encoding).toLowerCase()
  10608. loweredCase = true
  10609. }
  10610. }
  10611. }
  10612. Buffer.byteLength = byteLength
  10613. function slowToString (encoding, start, end) {
  10614. var loweredCase = false
  10615. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10616. // property of a typed array.
  10617. // This behaves neither like String nor Uint8Array in that we set start/end
  10618. // to their upper/lower bounds if the value passed is out of range.
  10619. // undefined is handled specially as per ECMA-262 6th Edition,
  10620. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10621. if (start === undefined || start < 0) {
  10622. start = 0
  10623. }
  10624. // Return early if start > this.length. Done here to prevent potential uint32
  10625. // coercion fail below.
  10626. if (start > this.length) {
  10627. return ''
  10628. }
  10629. if (end === undefined || end > this.length) {
  10630. end = this.length
  10631. }
  10632. if (end <= 0) {
  10633. return ''
  10634. }
  10635. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10636. end >>>= 0
  10637. start >>>= 0
  10638. if (end <= start) {
  10639. return ''
  10640. }
  10641. if (!encoding) encoding = 'utf8'
  10642. while (true) {
  10643. switch (encoding) {
  10644. case 'hex':
  10645. return hexSlice(this, start, end)
  10646. case 'utf8':
  10647. case 'utf-8':
  10648. return utf8Slice(this, start, end)
  10649. case 'ascii':
  10650. return asciiSlice(this, start, end)
  10651. case 'latin1':
  10652. case 'binary':
  10653. return latin1Slice(this, start, end)
  10654. case 'base64':
  10655. return base64Slice(this, start, end)
  10656. case 'ucs2':
  10657. case 'ucs-2':
  10658. case 'utf16le':
  10659. case 'utf-16le':
  10660. return utf16leSlice(this, start, end)
  10661. default:
  10662. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10663. encoding = (encoding + '').toLowerCase()
  10664. loweredCase = true
  10665. }
  10666. }
  10667. }
  10668. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10669. // Buffer instances.
  10670. Buffer.prototype._isBuffer = true
  10671. function swap (b, n, m) {
  10672. var i = b[n]
  10673. b[n] = b[m]
  10674. b[m] = i
  10675. }
  10676. Buffer.prototype.swap16 = function swap16 () {
  10677. var len = this.length
  10678. if (len % 2 !== 0) {
  10679. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10680. }
  10681. for (var i = 0; i < len; i += 2) {
  10682. swap(this, i, i + 1)
  10683. }
  10684. return this
  10685. }
  10686. Buffer.prototype.swap32 = function swap32 () {
  10687. var len = this.length
  10688. if (len % 4 !== 0) {
  10689. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10690. }
  10691. for (var i = 0; i < len; i += 4) {
  10692. swap(this, i, i + 3)
  10693. swap(this, i + 1, i + 2)
  10694. }
  10695. return this
  10696. }
  10697. Buffer.prototype.swap64 = function swap64 () {
  10698. var len = this.length
  10699. if (len % 8 !== 0) {
  10700. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10701. }
  10702. for (var i = 0; i < len; i += 8) {
  10703. swap(this, i, i + 7)
  10704. swap(this, i + 1, i + 6)
  10705. swap(this, i + 2, i + 5)
  10706. swap(this, i + 3, i + 4)
  10707. }
  10708. return this
  10709. }
  10710. Buffer.prototype.toString = function toString () {
  10711. var length = this.length | 0
  10712. if (length === 0) return ''
  10713. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10714. return slowToString.apply(this, arguments)
  10715. }
  10716. Buffer.prototype.equals = function equals (b) {
  10717. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10718. if (this === b) return true
  10719. return Buffer.compare(this, b) === 0
  10720. }
  10721. Buffer.prototype.inspect = function inspect () {
  10722. var str = ''
  10723. var max = exports.INSPECT_MAX_BYTES
  10724. if (this.length > 0) {
  10725. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10726. if (this.length > max) str += ' ... '
  10727. }
  10728. return '<Buffer ' + str + '>'
  10729. }
  10730. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10731. if (!Buffer.isBuffer(target)) {
  10732. throw new TypeError('Argument must be a Buffer')
  10733. }
  10734. if (start === undefined) {
  10735. start = 0
  10736. }
  10737. if (end === undefined) {
  10738. end = target ? target.length : 0
  10739. }
  10740. if (thisStart === undefined) {
  10741. thisStart = 0
  10742. }
  10743. if (thisEnd === undefined) {
  10744. thisEnd = this.length
  10745. }
  10746. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10747. throw new RangeError('out of range index')
  10748. }
  10749. if (thisStart >= thisEnd && start >= end) {
  10750. return 0
  10751. }
  10752. if (thisStart >= thisEnd) {
  10753. return -1
  10754. }
  10755. if (start >= end) {
  10756. return 1
  10757. }
  10758. start >>>= 0
  10759. end >>>= 0
  10760. thisStart >>>= 0
  10761. thisEnd >>>= 0
  10762. if (this === target) return 0
  10763. var x = thisEnd - thisStart
  10764. var y = end - start
  10765. var len = Math.min(x, y)
  10766. var thisCopy = this.slice(thisStart, thisEnd)
  10767. var targetCopy = target.slice(start, end)
  10768. for (var i = 0; i < len; ++i) {
  10769. if (thisCopy[i] !== targetCopy[i]) {
  10770. x = thisCopy[i]
  10771. y = targetCopy[i]
  10772. break
  10773. }
  10774. }
  10775. if (x < y) return -1
  10776. if (y < x) return 1
  10777. return 0
  10778. }
  10779. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10780. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10781. //
  10782. // Arguments:
  10783. // - buffer - a Buffer to search
  10784. // - val - a string, Buffer, or number
  10785. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10786. // - encoding - an optional encoding, relevant is val is a string
  10787. // - dir - true for indexOf, false for lastIndexOf
  10788. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10789. // Empty buffer means no match
  10790. if (buffer.length === 0) return -1
  10791. // Normalize byteOffset
  10792. if (typeof byteOffset === 'string') {
  10793. encoding = byteOffset
  10794. byteOffset = 0
  10795. } else if (byteOffset > 0x7fffffff) {
  10796. byteOffset = 0x7fffffff
  10797. } else if (byteOffset < -0x80000000) {
  10798. byteOffset = -0x80000000
  10799. }
  10800. byteOffset = +byteOffset // Coerce to Number.
  10801. if (isNaN(byteOffset)) {
  10802. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10803. byteOffset = dir ? 0 : (buffer.length - 1)
  10804. }
  10805. // Normalize byteOffset: negative offsets start from the end of the buffer
  10806. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  10807. if (byteOffset >= buffer.length) {
  10808. if (dir) return -1
  10809. else byteOffset = buffer.length - 1
  10810. } else if (byteOffset < 0) {
  10811. if (dir) byteOffset = 0
  10812. else return -1
  10813. }
  10814. // Normalize val
  10815. if (typeof val === 'string') {
  10816. val = Buffer.from(val, encoding)
  10817. }
  10818. // Finally, search either indexOf (if dir is true) or lastIndexOf
  10819. if (Buffer.isBuffer(val)) {
  10820. // Special case: looking for empty string/buffer always fails
  10821. if (val.length === 0) {
  10822. return -1
  10823. }
  10824. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  10825. } else if (typeof val === 'number') {
  10826. val = val & 0xFF // Search for a byte value [0-255]
  10827. if (Buffer.TYPED_ARRAY_SUPPORT &&
  10828. typeof Uint8Array.prototype.indexOf === 'function') {
  10829. if (dir) {
  10830. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  10831. } else {
  10832. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  10833. }
  10834. }
  10835. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  10836. }
  10837. throw new TypeError('val must be string, number or Buffer')
  10838. }
  10839. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  10840. var indexSize = 1
  10841. var arrLength = arr.length
  10842. var valLength = val.length
  10843. if (encoding !== undefined) {
  10844. encoding = String(encoding).toLowerCase()
  10845. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  10846. encoding === 'utf16le' || encoding === 'utf-16le') {
  10847. if (arr.length < 2 || val.length < 2) {
  10848. return -1
  10849. }
  10850. indexSize = 2
  10851. arrLength /= 2
  10852. valLength /= 2
  10853. byteOffset /= 2
  10854. }
  10855. }
  10856. function read (buf, i) {
  10857. if (indexSize === 1) {
  10858. return buf[i]
  10859. } else {
  10860. return buf.readUInt16BE(i * indexSize)
  10861. }
  10862. }
  10863. var i
  10864. if (dir) {
  10865. var foundIndex = -1
  10866. for (i = byteOffset; i < arrLength; i++) {
  10867. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  10868. if (foundIndex === -1) foundIndex = i
  10869. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  10870. } else {
  10871. if (foundIndex !== -1) i -= i - foundIndex
  10872. foundIndex = -1
  10873. }
  10874. }
  10875. } else {
  10876. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  10877. for (i = byteOffset; i >= 0; i--) {
  10878. var found = true
  10879. for (var j = 0; j < valLength; j++) {
  10880. if (read(arr, i + j) !== read(val, j)) {
  10881. found = false
  10882. break
  10883. }
  10884. }
  10885. if (found) return i
  10886. }
  10887. }
  10888. return -1
  10889. }
  10890. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  10891. return this.indexOf(val, byteOffset, encoding) !== -1
  10892. }
  10893. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  10894. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  10895. }
  10896. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  10897. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  10898. }
  10899. function hexWrite (buf, string, offset, length) {
  10900. offset = Number(offset) || 0
  10901. var remaining = buf.length - offset
  10902. if (!length) {
  10903. length = remaining
  10904. } else {
  10905. length = Number(length)
  10906. if (length > remaining) {
  10907. length = remaining
  10908. }
  10909. }
  10910. // must be an even number of digits
  10911. var strLen = string.length
  10912. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  10913. if (length > strLen / 2) {
  10914. length = strLen / 2
  10915. }
  10916. for (var i = 0; i < length; ++i) {
  10917. var parsed = parseInt(string.substr(i * 2, 2), 16)
  10918. if (isNaN(parsed)) return i
  10919. buf[offset + i] = parsed
  10920. }
  10921. return i
  10922. }
  10923. function utf8Write (buf, string, offset, length) {
  10924. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  10925. }
  10926. function asciiWrite (buf, string, offset, length) {
  10927. return blitBuffer(asciiToBytes(string), buf, offset, length)
  10928. }
  10929. function latin1Write (buf, string, offset, length) {
  10930. return asciiWrite(buf, string, offset, length)
  10931. }
  10932. function base64Write (buf, string, offset, length) {
  10933. return blitBuffer(base64ToBytes(string), buf, offset, length)
  10934. }
  10935. function ucs2Write (buf, string, offset, length) {
  10936. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  10937. }
  10938. Buffer.prototype.write = function write (string, offset, length, encoding) {
  10939. // Buffer#write(string)
  10940. if (offset === undefined) {
  10941. encoding = 'utf8'
  10942. length = this.length
  10943. offset = 0
  10944. // Buffer#write(string, encoding)
  10945. } else if (length === undefined && typeof offset === 'string') {
  10946. encoding = offset
  10947. length = this.length
  10948. offset = 0
  10949. // Buffer#write(string, offset[, length][, encoding])
  10950. } else if (isFinite(offset)) {
  10951. offset = offset | 0
  10952. if (isFinite(length)) {
  10953. length = length | 0
  10954. if (encoding === undefined) encoding = 'utf8'
  10955. } else {
  10956. encoding = length
  10957. length = undefined
  10958. }
  10959. // legacy write(string, encoding, offset, length) - remove in v0.13
  10960. } else {
  10961. throw new Error(
  10962. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  10963. )
  10964. }
  10965. var remaining = this.length - offset
  10966. if (length === undefined || length > remaining) length = remaining
  10967. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  10968. throw new RangeError('Attempt to write outside buffer bounds')
  10969. }
  10970. if (!encoding) encoding = 'utf8'
  10971. var loweredCase = false
  10972. for (;;) {
  10973. switch (encoding) {
  10974. case 'hex':
  10975. return hexWrite(this, string, offset, length)
  10976. case 'utf8':
  10977. case 'utf-8':
  10978. return utf8Write(this, string, offset, length)
  10979. case 'ascii':
  10980. return asciiWrite(this, string, offset, length)
  10981. case 'latin1':
  10982. case 'binary':
  10983. return latin1Write(this, string, offset, length)
  10984. case 'base64':
  10985. // Warning: maxLength not taken into account in base64Write
  10986. return base64Write(this, string, offset, length)
  10987. case 'ucs2':
  10988. case 'ucs-2':
  10989. case 'utf16le':
  10990. case 'utf-16le':
  10991. return ucs2Write(this, string, offset, length)
  10992. default:
  10993. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10994. encoding = ('' + encoding).toLowerCase()
  10995. loweredCase = true
  10996. }
  10997. }
  10998. }
  10999. Buffer.prototype.toJSON = function toJSON () {
  11000. return {
  11001. type: 'Buffer',
  11002. data: Array.prototype.slice.call(this._arr || this, 0)
  11003. }
  11004. }
  11005. function base64Slice (buf, start, end) {
  11006. if (start === 0 && end === buf.length) {
  11007. return base64.fromByteArray(buf)
  11008. } else {
  11009. return base64.fromByteArray(buf.slice(start, end))
  11010. }
  11011. }
  11012. function utf8Slice (buf, start, end) {
  11013. end = Math.min(buf.length, end)
  11014. var res = []
  11015. var i = start
  11016. while (i < end) {
  11017. var firstByte = buf[i]
  11018. var codePoint = null
  11019. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11020. : (firstByte > 0xDF) ? 3
  11021. : (firstByte > 0xBF) ? 2
  11022. : 1
  11023. if (i + bytesPerSequence <= end) {
  11024. var secondByte, thirdByte, fourthByte, tempCodePoint
  11025. switch (bytesPerSequence) {
  11026. case 1:
  11027. if (firstByte < 0x80) {
  11028. codePoint = firstByte
  11029. }
  11030. break
  11031. case 2:
  11032. secondByte = buf[i + 1]
  11033. if ((secondByte & 0xC0) === 0x80) {
  11034. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11035. if (tempCodePoint > 0x7F) {
  11036. codePoint = tempCodePoint
  11037. }
  11038. }
  11039. break
  11040. case 3:
  11041. secondByte = buf[i + 1]
  11042. thirdByte = buf[i + 2]
  11043. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11044. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11045. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11046. codePoint = tempCodePoint
  11047. }
  11048. }
  11049. break
  11050. case 4:
  11051. secondByte = buf[i + 1]
  11052. thirdByte = buf[i + 2]
  11053. fourthByte = buf[i + 3]
  11054. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11055. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11056. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11057. codePoint = tempCodePoint
  11058. }
  11059. }
  11060. }
  11061. }
  11062. if (codePoint === null) {
  11063. // we did not generate a valid codePoint so insert a
  11064. // replacement char (U+FFFD) and advance only 1 byte
  11065. codePoint = 0xFFFD
  11066. bytesPerSequence = 1
  11067. } else if (codePoint > 0xFFFF) {
  11068. // encode to utf16 (surrogate pair dance)
  11069. codePoint -= 0x10000
  11070. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11071. codePoint = 0xDC00 | codePoint & 0x3FF
  11072. }
  11073. res.push(codePoint)
  11074. i += bytesPerSequence
  11075. }
  11076. return decodeCodePointsArray(res)
  11077. }
  11078. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11079. // the lowest limit is Chrome, with 0x10000 args.
  11080. // We go 1 magnitude less, for safety
  11081. var MAX_ARGUMENTS_LENGTH = 0x1000
  11082. function decodeCodePointsArray (codePoints) {
  11083. var len = codePoints.length
  11084. if (len <= MAX_ARGUMENTS_LENGTH) {
  11085. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11086. }
  11087. // Decode in chunks to avoid "call stack size exceeded".
  11088. var res = ''
  11089. var i = 0
  11090. while (i < len) {
  11091. res += String.fromCharCode.apply(
  11092. String,
  11093. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11094. )
  11095. }
  11096. return res
  11097. }
  11098. function asciiSlice (buf, start, end) {
  11099. var ret = ''
  11100. end = Math.min(buf.length, end)
  11101. for (var i = start; i < end; ++i) {
  11102. ret += String.fromCharCode(buf[i] & 0x7F)
  11103. }
  11104. return ret
  11105. }
  11106. function latin1Slice (buf, start, end) {
  11107. var ret = ''
  11108. end = Math.min(buf.length, end)
  11109. for (var i = start; i < end; ++i) {
  11110. ret += String.fromCharCode(buf[i])
  11111. }
  11112. return ret
  11113. }
  11114. function hexSlice (buf, start, end) {
  11115. var len = buf.length
  11116. if (!start || start < 0) start = 0
  11117. if (!end || end < 0 || end > len) end = len
  11118. var out = ''
  11119. for (var i = start; i < end; ++i) {
  11120. out += toHex(buf[i])
  11121. }
  11122. return out
  11123. }
  11124. function utf16leSlice (buf, start, end) {
  11125. var bytes = buf.slice(start, end)
  11126. var res = ''
  11127. for (var i = 0; i < bytes.length; i += 2) {
  11128. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11129. }
  11130. return res
  11131. }
  11132. Buffer.prototype.slice = function slice (start, end) {
  11133. var len = this.length
  11134. start = ~~start
  11135. end = end === undefined ? len : ~~end
  11136. if (start < 0) {
  11137. start += len
  11138. if (start < 0) start = 0
  11139. } else if (start > len) {
  11140. start = len
  11141. }
  11142. if (end < 0) {
  11143. end += len
  11144. if (end < 0) end = 0
  11145. } else if (end > len) {
  11146. end = len
  11147. }
  11148. if (end < start) end = start
  11149. var newBuf
  11150. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11151. newBuf = this.subarray(start, end)
  11152. newBuf.__proto__ = Buffer.prototype
  11153. } else {
  11154. var sliceLen = end - start
  11155. newBuf = new Buffer(sliceLen, undefined)
  11156. for (var i = 0; i < sliceLen; ++i) {
  11157. newBuf[i] = this[i + start]
  11158. }
  11159. }
  11160. return newBuf
  11161. }
  11162. /*
  11163. * Need to make sure that buffer isn't trying to write out of bounds.
  11164. */
  11165. function checkOffset (offset, ext, length) {
  11166. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11167. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11168. }
  11169. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11170. offset = offset | 0
  11171. byteLength = byteLength | 0
  11172. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11173. var val = this[offset]
  11174. var mul = 1
  11175. var i = 0
  11176. while (++i < byteLength && (mul *= 0x100)) {
  11177. val += this[offset + i] * mul
  11178. }
  11179. return val
  11180. }
  11181. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11182. offset = offset | 0
  11183. byteLength = byteLength | 0
  11184. if (!noAssert) {
  11185. checkOffset(offset, byteLength, this.length)
  11186. }
  11187. var val = this[offset + --byteLength]
  11188. var mul = 1
  11189. while (byteLength > 0 && (mul *= 0x100)) {
  11190. val += this[offset + --byteLength] * mul
  11191. }
  11192. return val
  11193. }
  11194. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11195. if (!noAssert) checkOffset(offset, 1, this.length)
  11196. return this[offset]
  11197. }
  11198. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11199. if (!noAssert) checkOffset(offset, 2, this.length)
  11200. return this[offset] | (this[offset + 1] << 8)
  11201. }
  11202. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11203. if (!noAssert) checkOffset(offset, 2, this.length)
  11204. return (this[offset] << 8) | this[offset + 1]
  11205. }
  11206. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11207. if (!noAssert) checkOffset(offset, 4, this.length)
  11208. return ((this[offset]) |
  11209. (this[offset + 1] << 8) |
  11210. (this[offset + 2] << 16)) +
  11211. (this[offset + 3] * 0x1000000)
  11212. }
  11213. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11214. if (!noAssert) checkOffset(offset, 4, this.length)
  11215. return (this[offset] * 0x1000000) +
  11216. ((this[offset + 1] << 16) |
  11217. (this[offset + 2] << 8) |
  11218. this[offset + 3])
  11219. }
  11220. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11221. offset = offset | 0
  11222. byteLength = byteLength | 0
  11223. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11224. var val = this[offset]
  11225. var mul = 1
  11226. var i = 0
  11227. while (++i < byteLength && (mul *= 0x100)) {
  11228. val += this[offset + i] * mul
  11229. }
  11230. mul *= 0x80
  11231. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11232. return val
  11233. }
  11234. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11235. offset = offset | 0
  11236. byteLength = byteLength | 0
  11237. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11238. var i = byteLength
  11239. var mul = 1
  11240. var val = this[offset + --i]
  11241. while (i > 0 && (mul *= 0x100)) {
  11242. val += this[offset + --i] * mul
  11243. }
  11244. mul *= 0x80
  11245. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11246. return val
  11247. }
  11248. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11249. if (!noAssert) checkOffset(offset, 1, this.length)
  11250. if (!(this[offset] & 0x80)) return (this[offset])
  11251. return ((0xff - this[offset] + 1) * -1)
  11252. }
  11253. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11254. if (!noAssert) checkOffset(offset, 2, this.length)
  11255. var val = this[offset] | (this[offset + 1] << 8)
  11256. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11257. }
  11258. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11259. if (!noAssert) checkOffset(offset, 2, this.length)
  11260. var val = this[offset + 1] | (this[offset] << 8)
  11261. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11262. }
  11263. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11264. if (!noAssert) checkOffset(offset, 4, this.length)
  11265. return (this[offset]) |
  11266. (this[offset + 1] << 8) |
  11267. (this[offset + 2] << 16) |
  11268. (this[offset + 3] << 24)
  11269. }
  11270. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11271. if (!noAssert) checkOffset(offset, 4, this.length)
  11272. return (this[offset] << 24) |
  11273. (this[offset + 1] << 16) |
  11274. (this[offset + 2] << 8) |
  11275. (this[offset + 3])
  11276. }
  11277. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11278. if (!noAssert) checkOffset(offset, 4, this.length)
  11279. return ieee754.read(this, offset, true, 23, 4)
  11280. }
  11281. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11282. if (!noAssert) checkOffset(offset, 4, this.length)
  11283. return ieee754.read(this, offset, false, 23, 4)
  11284. }
  11285. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11286. if (!noAssert) checkOffset(offset, 8, this.length)
  11287. return ieee754.read(this, offset, true, 52, 8)
  11288. }
  11289. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11290. if (!noAssert) checkOffset(offset, 8, this.length)
  11291. return ieee754.read(this, offset, false, 52, 8)
  11292. }
  11293. function checkInt (buf, value, offset, ext, max, min) {
  11294. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11295. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11296. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11297. }
  11298. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11299. value = +value
  11300. offset = offset | 0
  11301. byteLength = byteLength | 0
  11302. if (!noAssert) {
  11303. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11304. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11305. }
  11306. var mul = 1
  11307. var i = 0
  11308. this[offset] = value & 0xFF
  11309. while (++i < byteLength && (mul *= 0x100)) {
  11310. this[offset + i] = (value / mul) & 0xFF
  11311. }
  11312. return offset + byteLength
  11313. }
  11314. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11315. value = +value
  11316. offset = offset | 0
  11317. byteLength = byteLength | 0
  11318. if (!noAssert) {
  11319. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11320. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11321. }
  11322. var i = byteLength - 1
  11323. var mul = 1
  11324. this[offset + i] = value & 0xFF
  11325. while (--i >= 0 && (mul *= 0x100)) {
  11326. this[offset + i] = (value / mul) & 0xFF
  11327. }
  11328. return offset + byteLength
  11329. }
  11330. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11331. value = +value
  11332. offset = offset | 0
  11333. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11334. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11335. this[offset] = (value & 0xff)
  11336. return offset + 1
  11337. }
  11338. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11339. if (value < 0) value = 0xffff + value + 1
  11340. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11341. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11342. (littleEndian ? i : 1 - i) * 8
  11343. }
  11344. }
  11345. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11346. value = +value
  11347. offset = offset | 0
  11348. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11349. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11350. this[offset] = (value & 0xff)
  11351. this[offset + 1] = (value >>> 8)
  11352. } else {
  11353. objectWriteUInt16(this, value, offset, true)
  11354. }
  11355. return offset + 2
  11356. }
  11357. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11358. value = +value
  11359. offset = offset | 0
  11360. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11361. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11362. this[offset] = (value >>> 8)
  11363. this[offset + 1] = (value & 0xff)
  11364. } else {
  11365. objectWriteUInt16(this, value, offset, false)
  11366. }
  11367. return offset + 2
  11368. }
  11369. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11370. if (value < 0) value = 0xffffffff + value + 1
  11371. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11372. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11373. }
  11374. }
  11375. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11376. value = +value
  11377. offset = offset | 0
  11378. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11379. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11380. this[offset + 3] = (value >>> 24)
  11381. this[offset + 2] = (value >>> 16)
  11382. this[offset + 1] = (value >>> 8)
  11383. this[offset] = (value & 0xff)
  11384. } else {
  11385. objectWriteUInt32(this, value, offset, true)
  11386. }
  11387. return offset + 4
  11388. }
  11389. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11390. value = +value
  11391. offset = offset | 0
  11392. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11393. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11394. this[offset] = (value >>> 24)
  11395. this[offset + 1] = (value >>> 16)
  11396. this[offset + 2] = (value >>> 8)
  11397. this[offset + 3] = (value & 0xff)
  11398. } else {
  11399. objectWriteUInt32(this, value, offset, false)
  11400. }
  11401. return offset + 4
  11402. }
  11403. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11404. value = +value
  11405. offset = offset | 0
  11406. if (!noAssert) {
  11407. var limit = Math.pow(2, 8 * byteLength - 1)
  11408. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11409. }
  11410. var i = 0
  11411. var mul = 1
  11412. var sub = 0
  11413. this[offset] = value & 0xFF
  11414. while (++i < byteLength && (mul *= 0x100)) {
  11415. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11416. sub = 1
  11417. }
  11418. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11419. }
  11420. return offset + byteLength
  11421. }
  11422. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11423. value = +value
  11424. offset = offset | 0
  11425. if (!noAssert) {
  11426. var limit = Math.pow(2, 8 * byteLength - 1)
  11427. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11428. }
  11429. var i = byteLength - 1
  11430. var mul = 1
  11431. var sub = 0
  11432. this[offset + i] = value & 0xFF
  11433. while (--i >= 0 && (mul *= 0x100)) {
  11434. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11435. sub = 1
  11436. }
  11437. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11438. }
  11439. return offset + byteLength
  11440. }
  11441. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11442. value = +value
  11443. offset = offset | 0
  11444. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11445. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11446. if (value < 0) value = 0xff + value + 1
  11447. this[offset] = (value & 0xff)
  11448. return offset + 1
  11449. }
  11450. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11451. value = +value
  11452. offset = offset | 0
  11453. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11454. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11455. this[offset] = (value & 0xff)
  11456. this[offset + 1] = (value >>> 8)
  11457. } else {
  11458. objectWriteUInt16(this, value, offset, true)
  11459. }
  11460. return offset + 2
  11461. }
  11462. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11463. value = +value
  11464. offset = offset | 0
  11465. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11466. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11467. this[offset] = (value >>> 8)
  11468. this[offset + 1] = (value & 0xff)
  11469. } else {
  11470. objectWriteUInt16(this, value, offset, false)
  11471. }
  11472. return offset + 2
  11473. }
  11474. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11475. value = +value
  11476. offset = offset | 0
  11477. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11478. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11479. this[offset] = (value & 0xff)
  11480. this[offset + 1] = (value >>> 8)
  11481. this[offset + 2] = (value >>> 16)
  11482. this[offset + 3] = (value >>> 24)
  11483. } else {
  11484. objectWriteUInt32(this, value, offset, true)
  11485. }
  11486. return offset + 4
  11487. }
  11488. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11489. value = +value
  11490. offset = offset | 0
  11491. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11492. if (value < 0) value = 0xffffffff + value + 1
  11493. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11494. this[offset] = (value >>> 24)
  11495. this[offset + 1] = (value >>> 16)
  11496. this[offset + 2] = (value >>> 8)
  11497. this[offset + 3] = (value & 0xff)
  11498. } else {
  11499. objectWriteUInt32(this, value, offset, false)
  11500. }
  11501. return offset + 4
  11502. }
  11503. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11504. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11505. if (offset < 0) throw new RangeError('Index out of range')
  11506. }
  11507. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11508. if (!noAssert) {
  11509. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11510. }
  11511. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11512. return offset + 4
  11513. }
  11514. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11515. return writeFloat(this, value, offset, true, noAssert)
  11516. }
  11517. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11518. return writeFloat(this, value, offset, false, noAssert)
  11519. }
  11520. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11521. if (!noAssert) {
  11522. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11523. }
  11524. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11525. return offset + 8
  11526. }
  11527. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11528. return writeDouble(this, value, offset, true, noAssert)
  11529. }
  11530. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11531. return writeDouble(this, value, offset, false, noAssert)
  11532. }
  11533. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11534. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11535. if (!start) start = 0
  11536. if (!end && end !== 0) end = this.length
  11537. if (targetStart >= target.length) targetStart = target.length
  11538. if (!targetStart) targetStart = 0
  11539. if (end > 0 && end < start) end = start
  11540. // Copy 0 bytes; we're done
  11541. if (end === start) return 0
  11542. if (target.length === 0 || this.length === 0) return 0
  11543. // Fatal error conditions
  11544. if (targetStart < 0) {
  11545. throw new RangeError('targetStart out of bounds')
  11546. }
  11547. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11548. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11549. // Are we oob?
  11550. if (end > this.length) end = this.length
  11551. if (target.length - targetStart < end - start) {
  11552. end = target.length - targetStart + start
  11553. }
  11554. var len = end - start
  11555. var i
  11556. if (this === target && start < targetStart && targetStart < end) {
  11557. // descending copy from end
  11558. for (i = len - 1; i >= 0; --i) {
  11559. target[i + targetStart] = this[i + start]
  11560. }
  11561. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11562. // ascending copy from start
  11563. for (i = 0; i < len; ++i) {
  11564. target[i + targetStart] = this[i + start]
  11565. }
  11566. } else {
  11567. Uint8Array.prototype.set.call(
  11568. target,
  11569. this.subarray(start, start + len),
  11570. targetStart
  11571. )
  11572. }
  11573. return len
  11574. }
  11575. // Usage:
  11576. // buffer.fill(number[, offset[, end]])
  11577. // buffer.fill(buffer[, offset[, end]])
  11578. // buffer.fill(string[, offset[, end]][, encoding])
  11579. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11580. // Handle string cases:
  11581. if (typeof val === 'string') {
  11582. if (typeof start === 'string') {
  11583. encoding = start
  11584. start = 0
  11585. end = this.length
  11586. } else if (typeof end === 'string') {
  11587. encoding = end
  11588. end = this.length
  11589. }
  11590. if (val.length === 1) {
  11591. var code = val.charCodeAt(0)
  11592. if (code < 256) {
  11593. val = code
  11594. }
  11595. }
  11596. if (encoding !== undefined && typeof encoding !== 'string') {
  11597. throw new TypeError('encoding must be a string')
  11598. }
  11599. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11600. throw new TypeError('Unknown encoding: ' + encoding)
  11601. }
  11602. } else if (typeof val === 'number') {
  11603. val = val & 255
  11604. }
  11605. // Invalid ranges are not set to a default, so can range check early.
  11606. if (start < 0 || this.length < start || this.length < end) {
  11607. throw new RangeError('Out of range index')
  11608. }
  11609. if (end <= start) {
  11610. return this
  11611. }
  11612. start = start >>> 0
  11613. end = end === undefined ? this.length : end >>> 0
  11614. if (!val) val = 0
  11615. var i
  11616. if (typeof val === 'number') {
  11617. for (i = start; i < end; ++i) {
  11618. this[i] = val
  11619. }
  11620. } else {
  11621. var bytes = Buffer.isBuffer(val)
  11622. ? val
  11623. : utf8ToBytes(new Buffer(val, encoding).toString())
  11624. var len = bytes.length
  11625. for (i = 0; i < end - start; ++i) {
  11626. this[i + start] = bytes[i % len]
  11627. }
  11628. }
  11629. return this
  11630. }
  11631. // HELPER FUNCTIONS
  11632. // ================
  11633. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11634. function base64clean (str) {
  11635. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11636. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11637. // Node converts strings with length < 2 to ''
  11638. if (str.length < 2) return ''
  11639. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11640. while (str.length % 4 !== 0) {
  11641. str = str + '='
  11642. }
  11643. return str
  11644. }
  11645. function stringtrim (str) {
  11646. if (str.trim) return str.trim()
  11647. return str.replace(/^\s+|\s+$/g, '')
  11648. }
  11649. function toHex (n) {
  11650. if (n < 16) return '0' + n.toString(16)
  11651. return n.toString(16)
  11652. }
  11653. function utf8ToBytes (string, units) {
  11654. units = units || Infinity
  11655. var codePoint
  11656. var length = string.length
  11657. var leadSurrogate = null
  11658. var bytes = []
  11659. for (var i = 0; i < length; ++i) {
  11660. codePoint = string.charCodeAt(i)
  11661. // is surrogate component
  11662. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11663. // last char was a lead
  11664. if (!leadSurrogate) {
  11665. // no lead yet
  11666. if (codePoint > 0xDBFF) {
  11667. // unexpected trail
  11668. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11669. continue
  11670. } else if (i + 1 === length) {
  11671. // unpaired lead
  11672. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11673. continue
  11674. }
  11675. // valid lead
  11676. leadSurrogate = codePoint
  11677. continue
  11678. }
  11679. // 2 leads in a row
  11680. if (codePoint < 0xDC00) {
  11681. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11682. leadSurrogate = codePoint
  11683. continue
  11684. }
  11685. // valid surrogate pair
  11686. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11687. } else if (leadSurrogate) {
  11688. // valid bmp char, but last char was a lead
  11689. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11690. }
  11691. leadSurrogate = null
  11692. // encode utf8
  11693. if (codePoint < 0x80) {
  11694. if ((units -= 1) < 0) break
  11695. bytes.push(codePoint)
  11696. } else if (codePoint < 0x800) {
  11697. if ((units -= 2) < 0) break
  11698. bytes.push(
  11699. codePoint >> 0x6 | 0xC0,
  11700. codePoint & 0x3F | 0x80
  11701. )
  11702. } else if (codePoint < 0x10000) {
  11703. if ((units -= 3) < 0) break
  11704. bytes.push(
  11705. codePoint >> 0xC | 0xE0,
  11706. codePoint >> 0x6 & 0x3F | 0x80,
  11707. codePoint & 0x3F | 0x80
  11708. )
  11709. } else if (codePoint < 0x110000) {
  11710. if ((units -= 4) < 0) break
  11711. bytes.push(
  11712. codePoint >> 0x12 | 0xF0,
  11713. codePoint >> 0xC & 0x3F | 0x80,
  11714. codePoint >> 0x6 & 0x3F | 0x80,
  11715. codePoint & 0x3F | 0x80
  11716. )
  11717. } else {
  11718. throw new Error('Invalid code point')
  11719. }
  11720. }
  11721. return bytes
  11722. }
  11723. function asciiToBytes (str) {
  11724. var byteArray = []
  11725. for (var i = 0; i < str.length; ++i) {
  11726. // Node's code seems to be doing this and not & 0x7F..
  11727. byteArray.push(str.charCodeAt(i) & 0xFF)
  11728. }
  11729. return byteArray
  11730. }
  11731. function utf16leToBytes (str, units) {
  11732. var c, hi, lo
  11733. var byteArray = []
  11734. for (var i = 0; i < str.length; ++i) {
  11735. if ((units -= 2) < 0) break
  11736. c = str.charCodeAt(i)
  11737. hi = c >> 8
  11738. lo = c % 256
  11739. byteArray.push(lo)
  11740. byteArray.push(hi)
  11741. }
  11742. return byteArray
  11743. }
  11744. function base64ToBytes (str) {
  11745. return base64.toByteArray(base64clean(str))
  11746. }
  11747. function blitBuffer (src, dst, offset, length) {
  11748. for (var i = 0; i < length; ++i) {
  11749. if ((i + offset >= dst.length) || (i >= src.length)) break
  11750. dst[i + offset] = src[i]
  11751. }
  11752. return i
  11753. }
  11754. function isnan (val) {
  11755. return val !== val // eslint-disable-line no-self-compare
  11756. }
  11757. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11758. /***/ }),
  11759. /* 51 */
  11760. /*!*****************************************!*\
  11761. !*** ./node_modules/base64-js/index.js ***!
  11762. \*****************************************/
  11763. /*! no static exports found */
  11764. /***/ (function(module, exports, __webpack_require__) {
  11765. "use strict";
  11766. exports.byteLength = byteLength
  11767. exports.toByteArray = toByteArray
  11768. exports.fromByteArray = fromByteArray
  11769. var lookup = []
  11770. var revLookup = []
  11771. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11772. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11773. for (var i = 0, len = code.length; i < len; ++i) {
  11774. lookup[i] = code[i]
  11775. revLookup[code.charCodeAt(i)] = i
  11776. }
  11777. // Support decoding URL-safe base64 strings, as Node.js does.
  11778. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11779. revLookup['-'.charCodeAt(0)] = 62
  11780. revLookup['_'.charCodeAt(0)] = 63
  11781. function getLens (b64) {
  11782. var len = b64.length
  11783. if (len % 4 > 0) {
  11784. throw new Error('Invalid string. Length must be a multiple of 4')
  11785. }
  11786. // Trim off extra bytes after placeholder bytes are found
  11787. // See: https://github.com/beatgammit/base64-js/issues/42
  11788. var validLen = b64.indexOf('=')
  11789. if (validLen === -1) validLen = len
  11790. var placeHoldersLen = validLen === len
  11791. ? 0
  11792. : 4 - (validLen % 4)
  11793. return [validLen, placeHoldersLen]
  11794. }
  11795. // base64 is 4/3 + up to two characters of the original data
  11796. function byteLength (b64) {
  11797. var lens = getLens(b64)
  11798. var validLen = lens[0]
  11799. var placeHoldersLen = lens[1]
  11800. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11801. }
  11802. function _byteLength (b64, validLen, placeHoldersLen) {
  11803. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11804. }
  11805. function toByteArray (b64) {
  11806. var tmp
  11807. var lens = getLens(b64)
  11808. var validLen = lens[0]
  11809. var placeHoldersLen = lens[1]
  11810. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  11811. var curByte = 0
  11812. // if there are placeholders, only get up to the last complete 4 chars
  11813. var len = placeHoldersLen > 0
  11814. ? validLen - 4
  11815. : validLen
  11816. var i
  11817. for (i = 0; i < len; i += 4) {
  11818. tmp =
  11819. (revLookup[b64.charCodeAt(i)] << 18) |
  11820. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  11821. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  11822. revLookup[b64.charCodeAt(i + 3)]
  11823. arr[curByte++] = (tmp >> 16) & 0xFF
  11824. arr[curByte++] = (tmp >> 8) & 0xFF
  11825. arr[curByte++] = tmp & 0xFF
  11826. }
  11827. if (placeHoldersLen === 2) {
  11828. tmp =
  11829. (revLookup[b64.charCodeAt(i)] << 2) |
  11830. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  11831. arr[curByte++] = tmp & 0xFF
  11832. }
  11833. if (placeHoldersLen === 1) {
  11834. tmp =
  11835. (revLookup[b64.charCodeAt(i)] << 10) |
  11836. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  11837. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  11838. arr[curByte++] = (tmp >> 8) & 0xFF
  11839. arr[curByte++] = tmp & 0xFF
  11840. }
  11841. return arr
  11842. }
  11843. function tripletToBase64 (num) {
  11844. return lookup[num >> 18 & 0x3F] +
  11845. lookup[num >> 12 & 0x3F] +
  11846. lookup[num >> 6 & 0x3F] +
  11847. lookup[num & 0x3F]
  11848. }
  11849. function encodeChunk (uint8, start, end) {
  11850. var tmp
  11851. var output = []
  11852. for (var i = start; i < end; i += 3) {
  11853. tmp =
  11854. ((uint8[i] << 16) & 0xFF0000) +
  11855. ((uint8[i + 1] << 8) & 0xFF00) +
  11856. (uint8[i + 2] & 0xFF)
  11857. output.push(tripletToBase64(tmp))
  11858. }
  11859. return output.join('')
  11860. }
  11861. function fromByteArray (uint8) {
  11862. var tmp
  11863. var len = uint8.length
  11864. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  11865. var parts = []
  11866. var maxChunkLength = 16383 // must be multiple of 3
  11867. // go through the array every three bytes, we'll deal with trailing stuff later
  11868. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  11869. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  11870. }
  11871. // pad the end with zeros, but make sure to not forget the extra bytes
  11872. if (extraBytes === 1) {
  11873. tmp = uint8[len - 1]
  11874. parts.push(
  11875. lookup[tmp >> 2] +
  11876. lookup[(tmp << 4) & 0x3F] +
  11877. '=='
  11878. )
  11879. } else if (extraBytes === 2) {
  11880. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  11881. parts.push(
  11882. lookup[tmp >> 10] +
  11883. lookup[(tmp >> 4) & 0x3F] +
  11884. lookup[(tmp << 2) & 0x3F] +
  11885. '='
  11886. )
  11887. }
  11888. return parts.join('')
  11889. }
  11890. /***/ }),
  11891. /* 52 */
  11892. /*!***************************************!*\
  11893. !*** ./node_modules/ieee754/index.js ***!
  11894. \***************************************/
  11895. /*! no static exports found */
  11896. /***/ (function(module, exports) {
  11897. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  11898. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  11899. var e, m
  11900. var eLen = (nBytes * 8) - mLen - 1
  11901. var eMax = (1 << eLen) - 1
  11902. var eBias = eMax >> 1
  11903. var nBits = -7
  11904. var i = isLE ? (nBytes - 1) : 0
  11905. var d = isLE ? -1 : 1
  11906. var s = buffer[offset + i]
  11907. i += d
  11908. e = s & ((1 << (-nBits)) - 1)
  11909. s >>= (-nBits)
  11910. nBits += eLen
  11911. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11912. m = e & ((1 << (-nBits)) - 1)
  11913. e >>= (-nBits)
  11914. nBits += mLen
  11915. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11916. if (e === 0) {
  11917. e = 1 - eBias
  11918. } else if (e === eMax) {
  11919. return m ? NaN : ((s ? -1 : 1) * Infinity)
  11920. } else {
  11921. m = m + Math.pow(2, mLen)
  11922. e = e - eBias
  11923. }
  11924. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  11925. }
  11926. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  11927. var e, m, c
  11928. var eLen = (nBytes * 8) - mLen - 1
  11929. var eMax = (1 << eLen) - 1
  11930. var eBias = eMax >> 1
  11931. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  11932. var i = isLE ? 0 : (nBytes - 1)
  11933. var d = isLE ? 1 : -1
  11934. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  11935. value = Math.abs(value)
  11936. if (isNaN(value) || value === Infinity) {
  11937. m = isNaN(value) ? 1 : 0
  11938. e = eMax
  11939. } else {
  11940. e = Math.floor(Math.log(value) / Math.LN2)
  11941. if (value * (c = Math.pow(2, -e)) < 1) {
  11942. e--
  11943. c *= 2
  11944. }
  11945. if (e + eBias >= 1) {
  11946. value += rt / c
  11947. } else {
  11948. value += rt * Math.pow(2, 1 - eBias)
  11949. }
  11950. if (value * c >= 2) {
  11951. e++
  11952. c /= 2
  11953. }
  11954. if (e + eBias >= eMax) {
  11955. m = 0
  11956. e = eMax
  11957. } else if (e + eBias >= 1) {
  11958. m = ((value * c) - 1) * Math.pow(2, mLen)
  11959. e = e + eBias
  11960. } else {
  11961. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  11962. e = 0
  11963. }
  11964. }
  11965. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  11966. e = (e << mLen) | m
  11967. eLen += mLen
  11968. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  11969. buffer[offset + i - d] |= s * 128
  11970. }
  11971. /***/ }),
  11972. /* 53 */
  11973. /*!***************************************!*\
  11974. !*** ./node_modules/isarray/index.js ***!
  11975. \***************************************/
  11976. /*! no static exports found */
  11977. /***/ (function(module, exports) {
  11978. var toString = {}.toString;
  11979. module.exports = Array.isArray || function (arr) {
  11980. return toString.call(arr) == '[object Array]';
  11981. };
  11982. /***/ }),
  11983. /* 54 */
  11984. /*!****************************************************************************!*\
  11985. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/util/route.js ***!
  11986. \****************************************************************************/
  11987. /*! no static exports found */
  11988. /***/ (function(module, exports, __webpack_require__) {
  11989. "use strict";
  11990. /* WEBPACK VAR INJECTION */(function(uni) {
  11991. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11992. Object.defineProperty(exports, "__esModule", {
  11993. value: true
  11994. });
  11995. exports.default = void 0;
  11996. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  11997. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  11998. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  11999. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12000. /**
  12001. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12002. * 并且带有路由拦截功能
  12003. */
  12004. var Router = /*#__PURE__*/function () {
  12005. function Router() {
  12006. (0, _classCallCheck2.default)(this, Router);
  12007. // 原始属性定义
  12008. this.config = {
  12009. type: 'navigateTo',
  12010. url: '',
  12011. delta: 1,
  12012. // navigateBack页面后退时,回退的层数
  12013. params: {},
  12014. // 传递的参数
  12015. animationType: 'pop-in',
  12016. // 窗口动画,只在APP有效
  12017. animationDuration: 300,
  12018. // 窗口动画持续时间,单位毫秒,只在APP有效
  12019. intercept: false // 是否需要拦截
  12020. };
  12021. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12022. // 这里在构造函数中进行this绑定
  12023. this.route = this.route.bind(this);
  12024. }
  12025. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12026. (0, _createClass2.default)(Router, [{
  12027. key: "addRootPath",
  12028. value: function addRootPath(url) {
  12029. return url[0] === '/' ? url : "/".concat(url);
  12030. }
  12031. // 整合路由参数
  12032. }, {
  12033. key: "mixinParam",
  12034. value: function mixinParam(url, params) {
  12035. url = url && this.addRootPath(url);
  12036. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12037. // 如果有url中有get参数,转换后无需带上"?"
  12038. var query = '';
  12039. if (/.*\/.*\?.*=.*/.test(url)) {
  12040. // object对象转为get类型的参数
  12041. query = uni.$u.queryParams(params, false);
  12042. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12043. return url += "&".concat(query);
  12044. }
  12045. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12046. query = uni.$u.queryParams(params);
  12047. return url += query;
  12048. }
  12049. // 对外的方法名称
  12050. }, {
  12051. key: "route",
  12052. value: function () {
  12053. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12054. var options,
  12055. params,
  12056. mergeConfig,
  12057. isNext,
  12058. _args = arguments;
  12059. return _regenerator.default.wrap(function _callee$(_context) {
  12060. while (1) {
  12061. switch (_context.prev = _context.next) {
  12062. case 0:
  12063. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12064. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12065. // 合并用户的配置和内部的默认配置
  12066. mergeConfig = {};
  12067. if (typeof options === 'string') {
  12068. // 如果options为字符串,则为route(url, params)的形式
  12069. mergeConfig.url = this.mixinParam(options, params);
  12070. mergeConfig.type = 'navigateTo';
  12071. } else {
  12072. mergeConfig = uni.$u.deepMerge(this.config, options);
  12073. // 否则正常使用mergeConfig中的url和params进行拼接
  12074. mergeConfig.url = this.mixinParam(options.url, options.params);
  12075. }
  12076. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12077. if (!(mergeConfig.url === uni.$u.page())) {
  12078. _context.next = 6;
  12079. break;
  12080. }
  12081. return _context.abrupt("return");
  12082. case 6:
  12083. if (params.intercept) {
  12084. this.config.intercept = params.intercept;
  12085. }
  12086. // params参数也带给拦截器
  12087. mergeConfig.params = params;
  12088. // 合并内外部参数
  12089. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12090. // 判断用户是否定义了拦截器
  12091. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12092. _context.next = 16;
  12093. break;
  12094. }
  12095. _context.next = 12;
  12096. return new Promise(function (resolve, reject) {
  12097. uni.$u.routeIntercept(mergeConfig, resolve);
  12098. });
  12099. case 12:
  12100. isNext = _context.sent;
  12101. // 如果isNext为true,则执行路由跳转
  12102. isNext && this.openPage(mergeConfig);
  12103. _context.next = 17;
  12104. break;
  12105. case 16:
  12106. this.openPage(mergeConfig);
  12107. case 17:
  12108. case "end":
  12109. return _context.stop();
  12110. }
  12111. }
  12112. }, _callee, this);
  12113. }));
  12114. function route() {
  12115. return _route.apply(this, arguments);
  12116. }
  12117. return route;
  12118. }() // 执行路由跳转
  12119. }, {
  12120. key: "openPage",
  12121. value: function openPage(config) {
  12122. // 解构参数
  12123. var url = config.url,
  12124. type = config.type,
  12125. delta = config.delta,
  12126. animationType = config.animationType,
  12127. animationDuration = config.animationDuration;
  12128. if (config.type == 'navigateTo' || config.type == 'to') {
  12129. uni.navigateTo({
  12130. url: url,
  12131. animationType: animationType,
  12132. animationDuration: animationDuration
  12133. });
  12134. }
  12135. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12136. uni.redirectTo({
  12137. url: url
  12138. });
  12139. }
  12140. if (config.type == 'switchTab' || config.type == 'tab') {
  12141. uni.switchTab({
  12142. url: url
  12143. });
  12144. }
  12145. if (config.type == 'reLaunch' || config.type == 'launch') {
  12146. uni.reLaunch({
  12147. url: url
  12148. });
  12149. }
  12150. if (config.type == 'navigateBack' || config.type == 'back') {
  12151. uni.navigateBack({
  12152. delta: delta
  12153. });
  12154. }
  12155. }
  12156. }]);
  12157. return Router;
  12158. }();
  12159. var _default = new Router().route;
  12160. exports.default = _default;
  12161. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12162. /***/ }),
  12163. /* 55 */
  12164. /*!************************************************************************************************!*\
  12165. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12166. \************************************************************************************************/
  12167. /*! no static exports found */
  12168. /***/ (function(module, exports, __webpack_require__) {
  12169. // TODO(Babel 8): Remove this file.
  12170. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 56)();
  12171. module.exports = runtime;
  12172. /***/ }),
  12173. /* 56 */
  12174. /*!*******************************************************************!*\
  12175. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12176. \*******************************************************************/
  12177. /*! no static exports found */
  12178. /***/ (function(module, exports, __webpack_require__) {
  12179. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12180. function _regeneratorRuntime() {
  12181. "use strict";
  12182. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12183. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12184. return e;
  12185. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12186. var t,
  12187. e = {},
  12188. r = Object.prototype,
  12189. n = r.hasOwnProperty,
  12190. o = Object.defineProperty || function (t, e, r) {
  12191. t[e] = r.value;
  12192. },
  12193. i = "function" == typeof Symbol ? Symbol : {},
  12194. a = i.iterator || "@@iterator",
  12195. c = i.asyncIterator || "@@asyncIterator",
  12196. u = i.toStringTag || "@@toStringTag";
  12197. function define(t, e, r) {
  12198. return Object.defineProperty(t, e, {
  12199. value: r,
  12200. enumerable: !0,
  12201. configurable: !0,
  12202. writable: !0
  12203. }), t[e];
  12204. }
  12205. try {
  12206. define({}, "");
  12207. } catch (t) {
  12208. define = function define(t, e, r) {
  12209. return t[e] = r;
  12210. };
  12211. }
  12212. function wrap(t, e, r, n) {
  12213. var i = e && e.prototype instanceof Generator ? e : Generator,
  12214. a = Object.create(i.prototype),
  12215. c = new Context(n || []);
  12216. return o(a, "_invoke", {
  12217. value: makeInvokeMethod(t, r, c)
  12218. }), a;
  12219. }
  12220. function tryCatch(t, e, r) {
  12221. try {
  12222. return {
  12223. type: "normal",
  12224. arg: t.call(e, r)
  12225. };
  12226. } catch (t) {
  12227. return {
  12228. type: "throw",
  12229. arg: t
  12230. };
  12231. }
  12232. }
  12233. e.wrap = wrap;
  12234. var h = "suspendedStart",
  12235. l = "suspendedYield",
  12236. f = "executing",
  12237. s = "completed",
  12238. y = {};
  12239. function Generator() {}
  12240. function GeneratorFunction() {}
  12241. function GeneratorFunctionPrototype() {}
  12242. var p = {};
  12243. define(p, a, function () {
  12244. return this;
  12245. });
  12246. var d = Object.getPrototypeOf,
  12247. v = d && d(d(values([])));
  12248. v && v !== r && n.call(v, a) && (p = v);
  12249. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  12250. function defineIteratorMethods(t) {
  12251. ["next", "throw", "return"].forEach(function (e) {
  12252. define(t, e, function (t) {
  12253. return this._invoke(e, t);
  12254. });
  12255. });
  12256. }
  12257. function AsyncIterator(t, e) {
  12258. function invoke(r, o, i, a) {
  12259. var c = tryCatch(t[r], t, o);
  12260. if ("throw" !== c.type) {
  12261. var u = c.arg,
  12262. h = u.value;
  12263. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  12264. invoke("next", t, i, a);
  12265. }, function (t) {
  12266. invoke("throw", t, i, a);
  12267. }) : e.resolve(h).then(function (t) {
  12268. u.value = t, i(u);
  12269. }, function (t) {
  12270. return invoke("throw", t, i, a);
  12271. });
  12272. }
  12273. a(c.arg);
  12274. }
  12275. var r;
  12276. o(this, "_invoke", {
  12277. value: function value(t, n) {
  12278. function callInvokeWithMethodAndArg() {
  12279. return new e(function (e, r) {
  12280. invoke(t, n, e, r);
  12281. });
  12282. }
  12283. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12284. }
  12285. });
  12286. }
  12287. function makeInvokeMethod(e, r, n) {
  12288. var o = h;
  12289. return function (i, a) {
  12290. if (o === f) throw Error("Generator is already running");
  12291. if (o === s) {
  12292. if ("throw" === i) throw a;
  12293. return {
  12294. value: t,
  12295. done: !0
  12296. };
  12297. }
  12298. for (n.method = i, n.arg = a;;) {
  12299. var c = n.delegate;
  12300. if (c) {
  12301. var u = maybeInvokeDelegate(c, n);
  12302. if (u) {
  12303. if (u === y) continue;
  12304. return u;
  12305. }
  12306. }
  12307. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  12308. if (o === h) throw o = s, n.arg;
  12309. n.dispatchException(n.arg);
  12310. } else "return" === n.method && n.abrupt("return", n.arg);
  12311. o = f;
  12312. var p = tryCatch(e, r, n);
  12313. if ("normal" === p.type) {
  12314. if (o = n.done ? s : l, p.arg === y) continue;
  12315. return {
  12316. value: p.arg,
  12317. done: n.done
  12318. };
  12319. }
  12320. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  12321. }
  12322. };
  12323. }
  12324. function maybeInvokeDelegate(e, r) {
  12325. var n = r.method,
  12326. o = e.iterator[n];
  12327. if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
  12328. var i = tryCatch(o, e.iterator, r.arg);
  12329. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  12330. var a = i.arg;
  12331. return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
  12332. }
  12333. function pushTryEntry(t) {
  12334. var e = {
  12335. tryLoc: t[0]
  12336. };
  12337. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  12338. }
  12339. function resetTryEntry(t) {
  12340. var e = t.completion || {};
  12341. e.type = "normal", delete e.arg, t.completion = e;
  12342. }
  12343. function Context(t) {
  12344. this.tryEntries = [{
  12345. tryLoc: "root"
  12346. }], t.forEach(pushTryEntry, this), this.reset(!0);
  12347. }
  12348. function values(e) {
  12349. if (e || "" === e) {
  12350. var r = e[a];
  12351. if (r) return r.call(e);
  12352. if ("function" == typeof e.next) return e;
  12353. if (!isNaN(e.length)) {
  12354. var o = -1,
  12355. i = function next() {
  12356. for (; ++o < e.length;) {
  12357. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  12358. }
  12359. return next.value = t, next.done = !0, next;
  12360. };
  12361. return i.next = i;
  12362. }
  12363. }
  12364. throw new TypeError(_typeof(e) + " is not iterable");
  12365. }
  12366. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  12367. value: GeneratorFunctionPrototype,
  12368. configurable: !0
  12369. }), o(GeneratorFunctionPrototype, "constructor", {
  12370. value: GeneratorFunction,
  12371. configurable: !0
  12372. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  12373. var e = "function" == typeof t && t.constructor;
  12374. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  12375. }, e.mark = function (t) {
  12376. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  12377. }, e.awrap = function (t) {
  12378. return {
  12379. __await: t
  12380. };
  12381. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  12382. return this;
  12383. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  12384. void 0 === i && (i = Promise);
  12385. var a = new AsyncIterator(wrap(t, r, n, o), i);
  12386. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  12387. return t.done ? t.value : a.next();
  12388. });
  12389. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  12390. return this;
  12391. }), define(g, "toString", function () {
  12392. return "[object Generator]";
  12393. }), e.keys = function (t) {
  12394. var e = Object(t),
  12395. r = [];
  12396. for (var n in e) {
  12397. r.push(n);
  12398. }
  12399. return r.reverse(), function next() {
  12400. for (; r.length;) {
  12401. var t = r.pop();
  12402. if (t in e) return next.value = t, next.done = !1, next;
  12403. }
  12404. return next.done = !0, next;
  12405. };
  12406. }, e.values = values, Context.prototype = {
  12407. constructor: Context,
  12408. reset: function reset(e) {
  12409. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
  12410. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  12411. }
  12412. },
  12413. stop: function stop() {
  12414. this.done = !0;
  12415. var t = this.tryEntries[0].completion;
  12416. if ("throw" === t.type) throw t.arg;
  12417. return this.rval;
  12418. },
  12419. dispatchException: function dispatchException(e) {
  12420. if (this.done) throw e;
  12421. var r = this;
  12422. function handle(n, o) {
  12423. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  12424. }
  12425. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  12426. var i = this.tryEntries[o],
  12427. a = i.completion;
  12428. if ("root" === i.tryLoc) return handle("end");
  12429. if (i.tryLoc <= this.prev) {
  12430. var c = n.call(i, "catchLoc"),
  12431. u = n.call(i, "finallyLoc");
  12432. if (c && u) {
  12433. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12434. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12435. } else if (c) {
  12436. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12437. } else {
  12438. if (!u) throw Error("try statement without catch or finally");
  12439. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12440. }
  12441. }
  12442. }
  12443. },
  12444. abrupt: function abrupt(t, e) {
  12445. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  12446. var o = this.tryEntries[r];
  12447. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  12448. var i = o;
  12449. break;
  12450. }
  12451. }
  12452. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  12453. var a = i ? i.completion : {};
  12454. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  12455. },
  12456. complete: function complete(t, e) {
  12457. if ("throw" === t.type) throw t.arg;
  12458. return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
  12459. },
  12460. finish: function finish(t) {
  12461. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12462. var r = this.tryEntries[e];
  12463. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  12464. }
  12465. },
  12466. "catch": function _catch(t) {
  12467. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12468. var r = this.tryEntries[e];
  12469. if (r.tryLoc === t) {
  12470. var n = r.completion;
  12471. if ("throw" === n.type) {
  12472. var o = n.arg;
  12473. resetTryEntry(r);
  12474. }
  12475. return o;
  12476. }
  12477. }
  12478. throw Error("illegal catch attempt");
  12479. },
  12480. delegateYield: function delegateYield(e, r, n) {
  12481. return this.delegate = {
  12482. iterator: values(e),
  12483. resultName: r,
  12484. nextLoc: n
  12485. }, "next" === this.method && (this.arg = t), y;
  12486. }
  12487. }, e;
  12488. }
  12489. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12490. /***/ }),
  12491. /* 57 */
  12492. /*!*****************************************************************!*\
  12493. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12494. \*****************************************************************/
  12495. /*! no static exports found */
  12496. /***/ (function(module, exports) {
  12497. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12498. try {
  12499. var info = gen[key](arg);
  12500. var value = info.value;
  12501. } catch (error) {
  12502. reject(error);
  12503. return;
  12504. }
  12505. if (info.done) {
  12506. resolve(value);
  12507. } else {
  12508. Promise.resolve(value).then(_next, _throw);
  12509. }
  12510. }
  12511. function _asyncToGenerator(fn) {
  12512. return function () {
  12513. var self = this,
  12514. args = arguments;
  12515. return new Promise(function (resolve, reject) {
  12516. var gen = fn.apply(self, args);
  12517. function _next(value) {
  12518. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12519. }
  12520. function _throw(err) {
  12521. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12522. }
  12523. _next(undefined);
  12524. });
  12525. };
  12526. }
  12527. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12528. /***/ }),
  12529. /* 58 */
  12530. /*!****************************************************************************************!*\
  12531. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  12532. \****************************************************************************************/
  12533. /*! no static exports found */
  12534. /***/ (function(module, exports, __webpack_require__) {
  12535. "use strict";
  12536. Object.defineProperty(exports, "__esModule", {
  12537. value: true
  12538. });
  12539. exports.default = void 0;
  12540. /**
  12541. * 求两个颜色之间的渐变值
  12542. * @param {string} startColor 开始的颜色
  12543. * @param {string} endColor 结束的颜色
  12544. * @param {number} step 颜色等分的份额
  12545. * */
  12546. function colorGradient() {
  12547. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12548. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12549. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12550. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12551. var startR = startRGB[0];
  12552. var startG = startRGB[1];
  12553. var startB = startRGB[2];
  12554. var endRGB = hexToRgb(endColor, false);
  12555. var endR = endRGB[0];
  12556. var endG = endRGB[1];
  12557. var endB = endRGB[2];
  12558. var sR = (endR - startR) / step; // 总差值
  12559. var sG = (endG - startG) / step;
  12560. var sB = (endB - startB) / step;
  12561. var colorArr = [];
  12562. for (var i = 0; i < step; i++) {
  12563. // 计算每一步的hex值
  12564. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12565. // 确保第一个颜色值为startColor的值
  12566. if (i === 0) hex = rgbToHex(startColor);
  12567. // 确保最后一个颜色值为endColor的值
  12568. if (i === step - 1) hex = rgbToHex(endColor);
  12569. colorArr.push(hex);
  12570. }
  12571. return colorArr;
  12572. }
  12573. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12574. function hexToRgb(sColor) {
  12575. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12576. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12577. sColor = String(sColor).toLowerCase();
  12578. if (sColor && reg.test(sColor)) {
  12579. if (sColor.length === 4) {
  12580. var sColorNew = '#';
  12581. for (var i = 1; i < 4; i += 1) {
  12582. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12583. }
  12584. sColor = sColorNew;
  12585. }
  12586. // 处理六位的颜色值
  12587. var sColorChange = [];
  12588. for (var _i = 1; _i < 7; _i += 2) {
  12589. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12590. }
  12591. if (!str) {
  12592. return sColorChange;
  12593. }
  12594. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12595. }
  12596. if (/^(rgb|RGB)/.test(sColor)) {
  12597. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12598. return arr.map(function (val) {
  12599. return Number(val);
  12600. });
  12601. }
  12602. return sColor;
  12603. }
  12604. // 将rgb表示方式转换为hex表示方式
  12605. function rgbToHex(rgb) {
  12606. var _this = rgb;
  12607. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12608. if (/^(rgb|RGB)/.test(_this)) {
  12609. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12610. var strHex = '#';
  12611. for (var i = 0; i < aColor.length; i++) {
  12612. var hex = Number(aColor[i]).toString(16);
  12613. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12614. if (hex === '0') {
  12615. hex += hex;
  12616. }
  12617. strHex += hex;
  12618. }
  12619. if (strHex.length !== 7) {
  12620. strHex = _this;
  12621. }
  12622. return strHex;
  12623. }
  12624. if (reg.test(_this)) {
  12625. var aNum = _this.replace(/#/, '').split('');
  12626. if (aNum.length === 6) {
  12627. return _this;
  12628. }
  12629. if (aNum.length === 3) {
  12630. var numHex = '#';
  12631. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12632. numHex += aNum[_i2] + aNum[_i2];
  12633. }
  12634. return numHex;
  12635. }
  12636. } else {
  12637. return _this;
  12638. }
  12639. }
  12640. /**
  12641. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12642. * sHex为传入的十六进制的色值
  12643. * alpha为rgba的透明度
  12644. */
  12645. function colorToRgba(color, alpha) {
  12646. color = rgbToHex(color);
  12647. // 十六进制颜色值的正则表达式
  12648. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12649. /* 16进制颜色转为RGB格式 */
  12650. var sColor = String(color).toLowerCase();
  12651. if (sColor && reg.test(sColor)) {
  12652. if (sColor.length === 4) {
  12653. var sColorNew = '#';
  12654. for (var i = 1; i < 4; i += 1) {
  12655. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12656. }
  12657. sColor = sColorNew;
  12658. }
  12659. // 处理六位的颜色值
  12660. var sColorChange = [];
  12661. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12662. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12663. }
  12664. // return sColorChange.join(',')
  12665. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12666. }
  12667. return sColor;
  12668. }
  12669. var _default = {
  12670. colorGradient: colorGradient,
  12671. hexToRgb: hexToRgb,
  12672. rgbToHex: rgbToHex,
  12673. colorToRgba: colorToRgba
  12674. };
  12675. exports.default = _default;
  12676. /***/ }),
  12677. /* 59 */
  12678. /*!*******************************************************************************!*\
  12679. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/function/test.js ***!
  12680. \*******************************************************************************/
  12681. /*! no static exports found */
  12682. /***/ (function(module, exports, __webpack_require__) {
  12683. "use strict";
  12684. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12685. Object.defineProperty(exports, "__esModule", {
  12686. value: true
  12687. });
  12688. exports.default = void 0;
  12689. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12690. /**
  12691. * 验证电子邮箱格式
  12692. */
  12693. function email(value) {
  12694. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12695. }
  12696. /**
  12697. * 验证手机格式
  12698. */
  12699. function mobile(value) {
  12700. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12701. }
  12702. /**
  12703. * 验证URL格式
  12704. */
  12705. function url(value) {
  12706. return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(value);
  12707. }
  12708. /**
  12709. * 验证日期格式
  12710. */
  12711. function date(value) {
  12712. if (!value) return false;
  12713. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12714. if (number(value)) value = +value;
  12715. return !/Invalid|NaN/.test(new Date(value).toString());
  12716. }
  12717. /**
  12718. * 验证ISO类型的日期格式
  12719. */
  12720. function dateISO(value) {
  12721. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12722. }
  12723. /**
  12724. * 验证十进制数字
  12725. */
  12726. function number(value) {
  12727. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12728. }
  12729. /**
  12730. * 验证字符串
  12731. */
  12732. function string(value) {
  12733. return typeof value === 'string';
  12734. }
  12735. /**
  12736. * 验证整数
  12737. */
  12738. function digits(value) {
  12739. return /^\d+$/.test(value);
  12740. }
  12741. /**
  12742. * 验证身份证号码
  12743. */
  12744. function idCard(value) {
  12745. return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(value);
  12746. }
  12747. /**
  12748. * 是否车牌号
  12749. */
  12750. function carNo(value) {
  12751. // 新能源车牌
  12752. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12753. // 旧车牌
  12754. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12755. if (value.length === 7) {
  12756. return creg.test(value);
  12757. }
  12758. if (value.length === 8) {
  12759. return xreg.test(value);
  12760. }
  12761. return false;
  12762. }
  12763. /**
  12764. * 金额,只允许2位小数
  12765. */
  12766. function amount(value) {
  12767. // 金额,只允许保留两位小数
  12768. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12769. }
  12770. /**
  12771. * 中文
  12772. */
  12773. function chinese(value) {
  12774. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12775. return reg.test(value);
  12776. }
  12777. /**
  12778. * 只能输入字母
  12779. */
  12780. function letter(value) {
  12781. return /^[a-zA-Z]*$/.test(value);
  12782. }
  12783. /**
  12784. * 只能是字母或者数字
  12785. */
  12786. function enOrNum(value) {
  12787. // 英文或者数字
  12788. var reg = /^[0-9a-zA-Z]*$/g;
  12789. return reg.test(value);
  12790. }
  12791. /**
  12792. * 验证是否包含某个值
  12793. */
  12794. function contains(value, param) {
  12795. return value.indexOf(param) >= 0;
  12796. }
  12797. /**
  12798. * 验证一个值范围[min, max]
  12799. */
  12800. function range(value, param) {
  12801. return value >= param[0] && value <= param[1];
  12802. }
  12803. /**
  12804. * 验证一个长度范围[min, max]
  12805. */
  12806. function rangeLength(value, param) {
  12807. return value.length >= param[0] && value.length <= param[1];
  12808. }
  12809. /**
  12810. * 是否固定电话
  12811. */
  12812. function landline(value) {
  12813. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12814. return reg.test(value);
  12815. }
  12816. /**
  12817. * 判断是否为空
  12818. */
  12819. function empty(value) {
  12820. switch ((0, _typeof2.default)(value)) {
  12821. case 'undefined':
  12822. return true;
  12823. case 'string':
  12824. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  12825. break;
  12826. case 'boolean':
  12827. if (!value) return true;
  12828. break;
  12829. case 'number':
  12830. if (value === 0 || isNaN(value)) return true;
  12831. break;
  12832. case 'object':
  12833. if (value === null || value.length === 0) return true;
  12834. for (var i in value) {
  12835. return false;
  12836. }
  12837. return true;
  12838. }
  12839. return false;
  12840. }
  12841. /**
  12842. * 是否json字符串
  12843. */
  12844. function jsonString(value) {
  12845. if (typeof value === 'string') {
  12846. try {
  12847. var obj = JSON.parse(value);
  12848. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  12849. return true;
  12850. }
  12851. return false;
  12852. } catch (e) {
  12853. return false;
  12854. }
  12855. }
  12856. return false;
  12857. }
  12858. /**
  12859. * 是否数组
  12860. */
  12861. function array(value) {
  12862. if (typeof Array.isArray === 'function') {
  12863. return Array.isArray(value);
  12864. }
  12865. return Object.prototype.toString.call(value) === '[object Array]';
  12866. }
  12867. /**
  12868. * 是否对象
  12869. */
  12870. function object(value) {
  12871. return Object.prototype.toString.call(value) === '[object Object]';
  12872. }
  12873. /**
  12874. * 是否短信验证码
  12875. */
  12876. function code(value) {
  12877. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  12878. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  12879. }
  12880. /**
  12881. * 是否函数方法
  12882. * @param {Object} value
  12883. */
  12884. function func(value) {
  12885. return typeof value === 'function';
  12886. }
  12887. /**
  12888. * 是否promise对象
  12889. * @param {Object} value
  12890. */
  12891. function promise(value) {
  12892. return object(value) && func(value.then) && func(value.catch);
  12893. }
  12894. /** 是否图片格式
  12895. * @param {Object} value
  12896. */
  12897. function image(value) {
  12898. var newValue = value.split('?')[0];
  12899. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  12900. return IMAGE_REGEXP.test(newValue);
  12901. }
  12902. /**
  12903. * 是否视频格式
  12904. * @param {Object} value
  12905. */
  12906. function video(value) {
  12907. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  12908. return VIDEO_REGEXP.test(value);
  12909. }
  12910. /**
  12911. * 是否为正则对象
  12912. * @param {Object}
  12913. * @return {Boolean}
  12914. */
  12915. function regExp(o) {
  12916. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  12917. }
  12918. var _default = {
  12919. email: email,
  12920. mobile: mobile,
  12921. url: url,
  12922. date: date,
  12923. dateISO: dateISO,
  12924. number: number,
  12925. digits: digits,
  12926. idCard: idCard,
  12927. carNo: carNo,
  12928. amount: amount,
  12929. chinese: chinese,
  12930. letter: letter,
  12931. enOrNum: enOrNum,
  12932. contains: contains,
  12933. range: range,
  12934. rangeLength: rangeLength,
  12935. empty: empty,
  12936. isEmpty: empty,
  12937. jsonString: jsonString,
  12938. landline: landline,
  12939. object: object,
  12940. array: array,
  12941. code: code,
  12942. func: func,
  12943. promise: promise,
  12944. video: video,
  12945. image: image,
  12946. regExp: regExp,
  12947. string: string
  12948. };
  12949. exports.default = _default;
  12950. /***/ }),
  12951. /* 60 */
  12952. /*!***********************************************************************************!*\
  12953. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/function/debounce.js ***!
  12954. \***********************************************************************************/
  12955. /*! no static exports found */
  12956. /***/ (function(module, exports, __webpack_require__) {
  12957. "use strict";
  12958. Object.defineProperty(exports, "__esModule", {
  12959. value: true
  12960. });
  12961. exports.default = void 0;
  12962. var timeout = null;
  12963. /**
  12964. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  12965. *
  12966. * @param {Function} func 要执行的回调函数
  12967. * @param {Number} wait 延时的时间
  12968. * @param {Boolean} immediate 是否立即执行
  12969. * @return null
  12970. */
  12971. function debounce(func) {
  12972. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  12973. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  12974. // 清除定时器
  12975. if (timeout !== null) clearTimeout(timeout);
  12976. // 立即执行,此类情况一般用不到
  12977. if (immediate) {
  12978. var callNow = !timeout;
  12979. timeout = setTimeout(function () {
  12980. timeout = null;
  12981. }, wait);
  12982. if (callNow) typeof func === 'function' && func();
  12983. } else {
  12984. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  12985. timeout = setTimeout(function () {
  12986. typeof func === 'function' && func();
  12987. }, wait);
  12988. }
  12989. }
  12990. var _default = debounce;
  12991. exports.default = _default;
  12992. /***/ }),
  12993. /* 61 */
  12994. /*!***********************************************************************************!*\
  12995. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/function/throttle.js ***!
  12996. \***********************************************************************************/
  12997. /*! no static exports found */
  12998. /***/ (function(module, exports, __webpack_require__) {
  12999. "use strict";
  13000. Object.defineProperty(exports, "__esModule", {
  13001. value: true
  13002. });
  13003. exports.default = void 0;
  13004. var timer;
  13005. var flag;
  13006. /**
  13007. * 节流原理:在一定时间内,只能触发一次
  13008. *
  13009. * @param {Function} func 要执行的回调函数
  13010. * @param {Number} wait 延时的时间
  13011. * @param {Boolean} immediate 是否立即执行
  13012. * @return null
  13013. */
  13014. function throttle(func) {
  13015. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13016. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13017. if (immediate) {
  13018. if (!flag) {
  13019. flag = true;
  13020. // 如果是立即执行,则在wait毫秒内开始时执行
  13021. typeof func === 'function' && func();
  13022. timer = setTimeout(function () {
  13023. flag = false;
  13024. }, wait);
  13025. }
  13026. } else if (!flag) {
  13027. flag = true;
  13028. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13029. timer = setTimeout(function () {
  13030. flag = false;
  13031. typeof func === 'function' && func();
  13032. }, wait);
  13033. }
  13034. }
  13035. var _default = throttle;
  13036. exports.default = _default;
  13037. /***/ }),
  13038. /* 62 */
  13039. /*!********************************************************************************!*\
  13040. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/function/index.js ***!
  13041. \********************************************************************************/
  13042. /*! no static exports found */
  13043. /***/ (function(module, exports, __webpack_require__) {
  13044. "use strict";
  13045. /* WEBPACK VAR INJECTION */(function(uni) {
  13046. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13047. Object.defineProperty(exports, "__esModule", {
  13048. value: true
  13049. });
  13050. exports.default = void 0;
  13051. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13052. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13053. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 59));
  13054. var _digit = __webpack_require__(/*! ./digit.js */ 63);
  13055. /**
  13056. * @description 如果value小于min,取min;如果value大于max,取max
  13057. * @param {number} min
  13058. * @param {number} max
  13059. * @param {number} value
  13060. */
  13061. function range() {
  13062. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13063. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13064. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13065. return Math.max(min, Math.min(max, Number(value)));
  13066. }
  13067. /**
  13068. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13069. * @param {number|string} value 用户传递值的px值
  13070. * @param {boolean} unit
  13071. * @returns {number|string}
  13072. */
  13073. function getPx(value) {
  13074. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13075. if (_test.default.number(value)) {
  13076. return unit ? "".concat(value, "px") : Number(value);
  13077. }
  13078. // 如果带有rpx,先取出其数值部分,再转为px值
  13079. if (/(rpx|upx)$/.test(value)) {
  13080. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13081. }
  13082. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13083. }
  13084. /**
  13085. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13086. * @param {number} value 堵塞时间 单位ms 毫秒
  13087. * @returns {Promise} 返回promise
  13088. */
  13089. function sleep() {
  13090. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13091. return new Promise(function (resolve) {
  13092. setTimeout(function () {
  13093. resolve();
  13094. }, value);
  13095. });
  13096. }
  13097. /**
  13098. * @description 运行期判断平台
  13099. * @returns {string} 返回所在平台(小写)
  13100. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13101. */
  13102. function os() {
  13103. return uni.getSystemInfoSync().platform.toLowerCase();
  13104. }
  13105. /**
  13106. * @description 获取系统信息同步接口
  13107. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13108. */
  13109. function sys() {
  13110. return uni.getSystemInfoSync();
  13111. }
  13112. /**
  13113. * @description 取一个区间数
  13114. * @param {Number} min 最小值
  13115. * @param {Number} max 最大值
  13116. */
  13117. function random(min, max) {
  13118. if (min >= 0 && max > 0 && max >= min) {
  13119. var gab = max - min + 1;
  13120. return Math.floor(Math.random() * gab + min);
  13121. }
  13122. return 0;
  13123. }
  13124. /**
  13125. * @param {Number} len uuid的长度
  13126. * @param {Boolean} firstU 将返回的首字母置为"u"
  13127. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13128. */
  13129. function guid() {
  13130. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13131. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13132. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13133. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13134. var uuid = [];
  13135. radix = radix || chars.length;
  13136. if (len) {
  13137. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13138. for (var i = 0; i < len; i++) {
  13139. uuid[i] = chars[0 | Math.random() * radix];
  13140. }
  13141. } else {
  13142. var r;
  13143. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13144. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13145. uuid[14] = '4';
  13146. for (var _i = 0; _i < 36; _i++) {
  13147. if (!uuid[_i]) {
  13148. r = 0 | Math.random() * 16;
  13149. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13150. }
  13151. }
  13152. }
  13153. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13154. if (firstU) {
  13155. uuid.shift();
  13156. return "u".concat(uuid.join(''));
  13157. }
  13158. return uuid.join('');
  13159. }
  13160. /**
  13161. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13162. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13163. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13164. 值(默认为undefined),就是查找最顶层的$parent
  13165. * @param {string|undefined} name 父组件的参数名
  13166. */
  13167. function $parent() {
  13168. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13169. var parent = this.$parent;
  13170. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13171. while (parent) {
  13172. // 父组件
  13173. if (parent.$options && parent.$options.name !== name) {
  13174. // 如果组件的name不相等,继续上一级寻找
  13175. parent = parent.$parent;
  13176. } else {
  13177. return parent;
  13178. }
  13179. }
  13180. return false;
  13181. }
  13182. /**
  13183. * @description 样式转换
  13184. * 对象转字符串,或者字符串转对象
  13185. * @param {object | string} customStyle 需要转换的目标
  13186. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13187. * @returns {object|string}
  13188. */
  13189. function addStyle(customStyle) {
  13190. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13191. // 字符串转字符串,对象转对象情形,直接返回
  13192. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13193. return customStyle;
  13194. }
  13195. // 字符串转对象
  13196. if (target === 'object') {
  13197. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13198. customStyle = trim(customStyle);
  13199. // 根据";"将字符串转为数组形式
  13200. var styleArray = customStyle.split(';');
  13201. var style = {};
  13202. // 历遍数组,拼接成对象
  13203. for (var i = 0; i < styleArray.length; i++) {
  13204. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13205. if (styleArray[i]) {
  13206. var item = styleArray[i].split(':');
  13207. style[trim(item[0])] = trim(item[1]);
  13208. }
  13209. }
  13210. return style;
  13211. }
  13212. // 这里为对象转字符串形式
  13213. var string = '';
  13214. for (var _i2 in customStyle) {
  13215. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13216. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13217. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13218. }
  13219. // 去除两端空格
  13220. return trim(string);
  13221. }
  13222. /**
  13223. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13224. * @param {string|number} value 需要添加单位的值
  13225. * @param {string} unit 添加的单位名 比如px
  13226. */
  13227. function addUnit() {
  13228. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13229. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13230. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (_uni$$u$config$unit = (_uni = uni) === null || _uni === void 0 ? void 0 : (_uni$$u = _uni.$u) === null || _uni$$u === void 0 ? void 0 : (_uni$$u$config = _uni$$u.config) === null || _uni$$u$config === void 0 ? void 0 : _uni$$u$config.unit) !== null && _uni$$u$config$unit !== void 0 ? _uni$$u$config$unit : 'px';
  13231. value = String(value);
  13232. // 用uView内置验证规则中的number判断是否为数值
  13233. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13234. }
  13235. /**
  13236. * @description 深度克隆
  13237. * @param {object} obj 需要深度克隆的对象
  13238. * @param cache 缓存
  13239. * @returns {*} 克隆后的对象或者原值(不是对象)
  13240. */
  13241. function deepClone(obj) {
  13242. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13243. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13244. if (cache.has(obj)) return cache.get(obj);
  13245. var clone;
  13246. if (obj instanceof Date) {
  13247. clone = new Date(obj.getTime());
  13248. } else if (obj instanceof RegExp) {
  13249. clone = new RegExp(obj);
  13250. } else if (obj instanceof Map) {
  13251. clone = new Map(Array.from(obj, function (_ref) {
  13252. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13253. key = _ref2[0],
  13254. value = _ref2[1];
  13255. return [key, deepClone(value, cache)];
  13256. }));
  13257. } else if (obj instanceof Set) {
  13258. clone = new Set(Array.from(obj, function (value) {
  13259. return deepClone(value, cache);
  13260. }));
  13261. } else if (Array.isArray(obj)) {
  13262. clone = obj.map(function (value) {
  13263. return deepClone(value, cache);
  13264. });
  13265. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13266. clone = Object.create(Object.getPrototypeOf(obj));
  13267. cache.set(obj, clone);
  13268. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13269. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13270. key = _Object$entries$_i[0],
  13271. value = _Object$entries$_i[1];
  13272. clone[key] = deepClone(value, cache);
  13273. }
  13274. } else {
  13275. clone = Object.assign({}, obj);
  13276. }
  13277. cache.set(obj, clone);
  13278. return clone;
  13279. }
  13280. /**
  13281. * @description JS对象深度合并
  13282. * @param {object} target 需要拷贝的对象
  13283. * @param {object} source 拷贝的来源对象
  13284. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13285. */
  13286. function deepMerge() {
  13287. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13288. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13289. target = deepClone(target);
  13290. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13291. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13292. for (var prop in source) {
  13293. if (!source.hasOwnProperty(prop)) continue;
  13294. var sourceValue = source[prop];
  13295. var targetValue = merged[prop];
  13296. if (sourceValue instanceof Date) {
  13297. merged[prop] = new Date(sourceValue);
  13298. } else if (sourceValue instanceof RegExp) {
  13299. merged[prop] = new RegExp(sourceValue);
  13300. } else if (sourceValue instanceof Map) {
  13301. merged[prop] = new Map(sourceValue);
  13302. } else if (sourceValue instanceof Set) {
  13303. merged[prop] = new Set(sourceValue);
  13304. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13305. merged[prop] = deepMerge(targetValue, sourceValue);
  13306. } else {
  13307. merged[prop] = sourceValue;
  13308. }
  13309. }
  13310. return merged;
  13311. }
  13312. /**
  13313. * @description error提示
  13314. * @param {*} err 错误内容
  13315. */
  13316. function error(err) {
  13317. // 开发环境才提示,生产环境不会提示
  13318. if (true) {
  13319. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13320. }
  13321. }
  13322. /**
  13323. * @description 打乱数组
  13324. * @param {array} array 需要打乱的数组
  13325. * @returns {array} 打乱后的数组
  13326. */
  13327. function randomArray() {
  13328. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13329. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13330. return array.sort(function () {
  13331. return Math.random() - 0.5;
  13332. });
  13333. }
  13334. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13335. // 所以这里做一个兼容polyfill的兼容处理
  13336. if (!String.prototype.padStart) {
  13337. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13338. String.prototype.padStart = function (maxLength) {
  13339. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13340. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13341. throw new TypeError('fillString must be String');
  13342. }
  13343. var str = this;
  13344. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13345. if (str.length >= maxLength) return String(str);
  13346. var fillLength = maxLength - str.length;
  13347. var times = Math.ceil(fillLength / fillString.length);
  13348. while (times >>= 1) {
  13349. fillString += fillString;
  13350. if (times === 1) {
  13351. fillString += fillString;
  13352. }
  13353. }
  13354. return fillString.slice(0, fillLength) + str;
  13355. };
  13356. }
  13357. /**
  13358. * @description 格式化时间
  13359. * @param {String|Number} dateTime 需要格式化的时间戳
  13360. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13361. * @returns {string} 返回格式化后的字符串
  13362. */
  13363. function timeFormat() {
  13364. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13365. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13366. var date;
  13367. // 若传入时间为假值,则取当前时间
  13368. if (!dateTime) {
  13369. date = new Date();
  13370. }
  13371. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13372. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13373. date = new Date(dateTime * 1000);
  13374. }
  13375. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13376. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13377. date = new Date(Number(dateTime));
  13378. }
  13379. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13380. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13381. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13382. date = new Date(dateTime.replace(/-/g, '/'));
  13383. }
  13384. // 其他都认为符合 RFC 2822 规范
  13385. else {
  13386. date = new Date(dateTime);
  13387. }
  13388. var timeSource = {
  13389. 'y': date.getFullYear().toString(),
  13390. // 年
  13391. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13392. // 月
  13393. 'd': date.getDate().toString().padStart(2, '0'),
  13394. // 日
  13395. 'h': date.getHours().toString().padStart(2, '0'),
  13396. // 时
  13397. 'M': date.getMinutes().toString().padStart(2, '0'),
  13398. // 分
  13399. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13400. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13401. };
  13402. for (var key in timeSource) {
  13403. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13404. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13405. ret = _ref4[0];
  13406. if (ret) {
  13407. // 年可能只需展示两位
  13408. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13409. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13410. }
  13411. }
  13412. return formatStr;
  13413. }
  13414. /**
  13415. * @description 时间戳转为多久之前
  13416. * @param {String|Number} timestamp 时间戳
  13417. * @param {String|Boolean} format
  13418. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13419. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13420. * @returns {string} 转化后的内容
  13421. */
  13422. function timeFrom() {
  13423. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13424. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13425. if (timestamp == null) timestamp = Number(new Date());
  13426. timestamp = parseInt(timestamp);
  13427. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13428. if (timestamp.toString().length == 10) timestamp *= 1000;
  13429. var timer = new Date().getTime() - timestamp;
  13430. timer = parseInt(timer / 1000);
  13431. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13432. var tips = '';
  13433. switch (true) {
  13434. case timer < 300:
  13435. tips = '刚刚';
  13436. break;
  13437. case timer >= 300 && timer < 3600:
  13438. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13439. break;
  13440. case timer >= 3600 && timer < 86400:
  13441. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13442. break;
  13443. case timer >= 86400 && timer < 2592000:
  13444. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13445. break;
  13446. default:
  13447. // 如果format为false,则无论什么时间戳,都显示xx之前
  13448. if (format === false) {
  13449. if (timer >= 2592000 && timer < 365 * 86400) {
  13450. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13451. } else {
  13452. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13453. }
  13454. } else {
  13455. tips = timeFormat(timestamp, format);
  13456. }
  13457. }
  13458. return tips;
  13459. }
  13460. /**
  13461. * @description 去除空格
  13462. * @param String str 需要去除空格的字符串
  13463. * @param String pos both(左右)|left|right|all 默认both
  13464. */
  13465. function trim(str) {
  13466. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13467. str = String(str);
  13468. if (pos == 'both') {
  13469. return str.replace(/^\s+|\s+$/g, '');
  13470. }
  13471. if (pos == 'left') {
  13472. return str.replace(/^\s*/, '');
  13473. }
  13474. if (pos == 'right') {
  13475. return str.replace(/(\s*$)/g, '');
  13476. }
  13477. if (pos == 'all') {
  13478. return str.replace(/\s+/g, '');
  13479. }
  13480. return str;
  13481. }
  13482. /**
  13483. * @description 对象转url参数
  13484. * @param {object} data,对象
  13485. * @param {Boolean} isPrefix,是否自动加上"?"
  13486. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13487. */
  13488. function queryParams() {
  13489. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13490. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13491. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13492. var prefix = isPrefix ? '?' : '';
  13493. var _result = [];
  13494. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13495. var _loop = function _loop(key) {
  13496. var value = data[key];
  13497. // 去掉为空的参数
  13498. if (['', undefined, null].indexOf(value) >= 0) {
  13499. return "continue";
  13500. }
  13501. // 如果值为数组,另行处理
  13502. if (value.constructor === Array) {
  13503. // e.g. {ids: [1, 2, 3]}
  13504. switch (arrayFormat) {
  13505. case 'indices':
  13506. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13507. for (var i = 0; i < value.length; i++) {
  13508. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13509. }
  13510. break;
  13511. case 'brackets':
  13512. // 结果: ids[]=1&ids[]=2&ids[]=3
  13513. value.forEach(function (_value) {
  13514. _result.push("".concat(key, "[]=").concat(_value));
  13515. });
  13516. break;
  13517. case 'repeat':
  13518. // 结果: ids=1&ids=2&ids=3
  13519. value.forEach(function (_value) {
  13520. _result.push("".concat(key, "=").concat(_value));
  13521. });
  13522. break;
  13523. case 'comma':
  13524. // 结果: ids=1,2,3
  13525. var commaStr = '';
  13526. value.forEach(function (_value) {
  13527. commaStr += (commaStr ? ',' : '') + _value;
  13528. });
  13529. _result.push("".concat(key, "=").concat(commaStr));
  13530. break;
  13531. default:
  13532. value.forEach(function (_value) {
  13533. _result.push("".concat(key, "[]=").concat(_value));
  13534. });
  13535. }
  13536. } else {
  13537. _result.push("".concat(key, "=").concat(value));
  13538. }
  13539. };
  13540. for (var key in data) {
  13541. var _ret = _loop(key);
  13542. if (_ret === "continue") continue;
  13543. }
  13544. return _result.length ? prefix + _result.join('&') : '';
  13545. }
  13546. /**
  13547. * 显示消息提示框
  13548. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13549. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13550. */
  13551. function toast(title) {
  13552. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13553. uni.showToast({
  13554. title: String(title),
  13555. icon: 'none',
  13556. duration: duration
  13557. });
  13558. }
  13559. /**
  13560. * @description 根据主题type值,获取对应的图标
  13561. * @param {String} type 主题名称,primary|info|error|warning|success
  13562. * @param {boolean} fill 是否使用fill填充实体的图标
  13563. */
  13564. function type2icon() {
  13565. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13566. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13567. // 如果非预置值,默认为success
  13568. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13569. var iconName = '';
  13570. // 目前(2019-12-12),info和primary使用同一个图标
  13571. switch (type) {
  13572. case 'primary':
  13573. iconName = 'info-circle';
  13574. break;
  13575. case 'info':
  13576. iconName = 'info-circle';
  13577. break;
  13578. case 'error':
  13579. iconName = 'close-circle';
  13580. break;
  13581. case 'warning':
  13582. iconName = 'error-circle';
  13583. break;
  13584. case 'success':
  13585. iconName = 'checkmark-circle';
  13586. break;
  13587. default:
  13588. iconName = 'checkmark-circle';
  13589. }
  13590. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13591. if (fill) iconName += '-fill';
  13592. return iconName;
  13593. }
  13594. /**
  13595. * @description 数字格式化
  13596. * @param {number|string} number 要格式化的数字
  13597. * @param {number} decimals 保留几位小数
  13598. * @param {string} decimalPoint 小数点符号
  13599. * @param {string} thousandsSeparator 千分位符号
  13600. * @returns {string} 格式化后的数字
  13601. */
  13602. function priceFormat(number) {
  13603. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13604. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13605. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13606. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13607. var n = !isFinite(+number) ? 0 : +number;
  13608. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13609. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13610. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13611. var s = '';
  13612. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13613. var re = /(-?\d+)(\d{3})/;
  13614. while (re.test(s[0])) {
  13615. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13616. }
  13617. if ((s[1] || '').length < prec) {
  13618. s[1] = s[1] || '';
  13619. s[1] += new Array(prec - s[1].length + 1).join('0');
  13620. }
  13621. return s.join(dec);
  13622. }
  13623. /**
  13624. * @description 获取duration值
  13625. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13626. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13627. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13628. * @param {boolean} unit 提示: 如果是false 默认返回number
  13629. * @return {string|number}
  13630. */
  13631. function getDuration(value) {
  13632. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13633. var valueNum = parseInt(value);
  13634. if (unit) {
  13635. if (/s$/.test(value)) return value;
  13636. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13637. }
  13638. if (/ms$/.test(value)) return valueNum;
  13639. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13640. return valueNum;
  13641. }
  13642. /**
  13643. * @description 日期的月或日补零操作
  13644. * @param {String} value 需要补零的值
  13645. */
  13646. function padZero(value) {
  13647. return "00".concat(value).slice(-2);
  13648. }
  13649. /**
  13650. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13651. * @param {*} instance
  13652. * @param {*} event
  13653. */
  13654. function formValidate(instance, event) {
  13655. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13656. var form = uni.$u.$parent.call(instance, 'u-form');
  13657. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13658. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13659. if (formItem && form) {
  13660. form.validateField(formItem.prop, function () {}, event);
  13661. }
  13662. }
  13663. /**
  13664. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13665. * @param {object} obj 对象
  13666. * @param {string} key 需要获取的属性字段
  13667. * @returns {*}
  13668. */
  13669. function getProperty(obj, key) {
  13670. if (!obj) {
  13671. return;
  13672. }
  13673. if (typeof key !== 'string' || key === '') {
  13674. return '';
  13675. }
  13676. if (key.indexOf('.') !== -1) {
  13677. var keys = key.split('.');
  13678. var firstObj = obj[keys[0]] || {};
  13679. for (var i = 1; i < keys.length; i++) {
  13680. if (firstObj) {
  13681. firstObj = firstObj[keys[i]];
  13682. }
  13683. }
  13684. return firstObj;
  13685. }
  13686. return obj[key];
  13687. }
  13688. /**
  13689. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13690. * @param {object} obj 对象
  13691. * @param {string} key 需要设置的属性
  13692. * @param {string} value 设置的值
  13693. */
  13694. function setProperty(obj, key, value) {
  13695. if (!obj) {
  13696. return;
  13697. }
  13698. // 递归赋值
  13699. var inFn = function inFn(_obj, keys, v) {
  13700. // 最后一个属性key
  13701. if (keys.length === 1) {
  13702. _obj[keys[0]] = v;
  13703. return;
  13704. }
  13705. // 0~length-1个key
  13706. while (keys.length > 1) {
  13707. var k = keys[0];
  13708. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13709. _obj[k] = {};
  13710. }
  13711. var _key = keys.shift();
  13712. // 自调用判断是否存在属性,不存在则自动创建对象
  13713. inFn(_obj[k], keys, v);
  13714. }
  13715. };
  13716. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13717. // 支持多层级赋值操作
  13718. var keys = key.split('.');
  13719. inFn(obj, keys, value);
  13720. } else {
  13721. obj[key] = value;
  13722. }
  13723. }
  13724. /**
  13725. * @description 获取当前页面路径
  13726. */
  13727. function page() {
  13728. var _pages$route, _pages;
  13729. var pages = getCurrentPages();
  13730. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13731. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13732. }
  13733. /**
  13734. * @description 获取当前路由栈实例数组
  13735. */
  13736. function pages() {
  13737. var pages = getCurrentPages();
  13738. return pages;
  13739. }
  13740. /**
  13741. * 获取页面历史栈指定层实例
  13742. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  13743. */
  13744. function getHistoryPage() {
  13745. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13746. var pages = getCurrentPages();
  13747. var len = pages.length;
  13748. return pages[len - 1 + back];
  13749. }
  13750. /**
  13751. * @description 修改uView内置属性值
  13752. * @param {object} props 修改内置props属性
  13753. * @param {object} config 修改内置config属性
  13754. * @param {object} color 修改内置color属性
  13755. * @param {object} zIndex 修改内置zIndex属性
  13756. */
  13757. function setConfig(_ref5) {
  13758. var _ref5$props = _ref5.props,
  13759. props = _ref5$props === void 0 ? {} : _ref5$props,
  13760. _ref5$config = _ref5.config,
  13761. config = _ref5$config === void 0 ? {} : _ref5$config,
  13762. _ref5$color = _ref5.color,
  13763. color = _ref5$color === void 0 ? {} : _ref5$color,
  13764. _ref5$zIndex = _ref5.zIndex,
  13765. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  13766. var deepMerge = uni.$u.deepMerge;
  13767. uni.$u.config = deepMerge(uni.$u.config, config);
  13768. uni.$u.props = deepMerge(uni.$u.props, props);
  13769. uni.$u.color = deepMerge(uni.$u.color, color);
  13770. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13771. }
  13772. var _default = {
  13773. range: range,
  13774. getPx: getPx,
  13775. sleep: sleep,
  13776. os: os,
  13777. sys: sys,
  13778. random: random,
  13779. guid: guid,
  13780. $parent: $parent,
  13781. addStyle: addStyle,
  13782. addUnit: addUnit,
  13783. deepClone: deepClone,
  13784. deepMerge: deepMerge,
  13785. error: error,
  13786. randomArray: randomArray,
  13787. timeFormat: timeFormat,
  13788. timeFrom: timeFrom,
  13789. trim: trim,
  13790. queryParams: queryParams,
  13791. toast: toast,
  13792. type2icon: type2icon,
  13793. priceFormat: priceFormat,
  13794. getDuration: getDuration,
  13795. padZero: padZero,
  13796. formValidate: formValidate,
  13797. getProperty: getProperty,
  13798. setProperty: setProperty,
  13799. page: page,
  13800. pages: pages,
  13801. getHistoryPage: getHistoryPage,
  13802. setConfig: setConfig
  13803. };
  13804. exports.default = _default;
  13805. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13806. /***/ }),
  13807. /* 63 */
  13808. /*!********************************************************************************!*\
  13809. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/function/digit.js ***!
  13810. \********************************************************************************/
  13811. /*! no static exports found */
  13812. /***/ (function(module, exports, __webpack_require__) {
  13813. "use strict";
  13814. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13815. Object.defineProperty(exports, "__esModule", {
  13816. value: true
  13817. });
  13818. exports.default = void 0;
  13819. exports.divide = divide;
  13820. exports.enableBoundaryChecking = enableBoundaryChecking;
  13821. exports.minus = minus;
  13822. exports.plus = plus;
  13823. exports.round = round;
  13824. exports.times = times;
  13825. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 64));
  13826. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  13827. /**
  13828. * 把错误的数据转正
  13829. * @private
  13830. * @example strip(0.09999999999999998)=0.1
  13831. */
  13832. function strip(num) {
  13833. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  13834. return +parseFloat(Number(num).toPrecision(precision));
  13835. }
  13836. /**
  13837. * Return digits length of a number
  13838. * @private
  13839. * @param {*number} num Input number
  13840. */
  13841. function digitLength(num) {
  13842. // Get digit length of e
  13843. var eSplit = num.toString().split(/[eE]/);
  13844. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  13845. return len > 0 ? len : 0;
  13846. }
  13847. /**
  13848. * 把小数转成整数,如果是小数则放大成整数
  13849. * @private
  13850. * @param {*number} num 输入数
  13851. */
  13852. function float2Fixed(num) {
  13853. if (num.toString().indexOf('e') === -1) {
  13854. return Number(num.toString().replace('.', ''));
  13855. }
  13856. var dLen = digitLength(num);
  13857. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  13858. }
  13859. /**
  13860. * 检测数字是否越界,如果越界给出提示
  13861. * @private
  13862. * @param {*number} num 输入数
  13863. */
  13864. function checkBoundary(num) {
  13865. if (_boundaryCheckingState) {
  13866. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  13867. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  13868. }
  13869. }
  13870. }
  13871. /**
  13872. * 把递归操作扁平迭代化
  13873. * @param {number[]} arr 要操作的数字数组
  13874. * @param {function} operation 迭代操作
  13875. * @private
  13876. */
  13877. function iteratorOperation(arr, operation) {
  13878. var _arr = (0, _toArray2.default)(arr),
  13879. num1 = _arr[0],
  13880. num2 = _arr[1],
  13881. others = _arr.slice(2);
  13882. var res = operation(num1, num2);
  13883. others.forEach(function (num) {
  13884. res = operation(res, num);
  13885. });
  13886. return res;
  13887. }
  13888. /**
  13889. * 高精度乘法
  13890. * @export
  13891. */
  13892. function times() {
  13893. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  13894. nums[_key] = arguments[_key];
  13895. }
  13896. if (nums.length > 2) {
  13897. return iteratorOperation(nums, times);
  13898. }
  13899. var num1 = nums[0],
  13900. num2 = nums[1];
  13901. var num1Changed = float2Fixed(num1);
  13902. var num2Changed = float2Fixed(num2);
  13903. var baseNum = digitLength(num1) + digitLength(num2);
  13904. var leftValue = num1Changed * num2Changed;
  13905. checkBoundary(leftValue);
  13906. return leftValue / Math.pow(10, baseNum);
  13907. }
  13908. /**
  13909. * 高精度加法
  13910. * @export
  13911. */
  13912. function plus() {
  13913. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  13914. nums[_key2] = arguments[_key2];
  13915. }
  13916. if (nums.length > 2) {
  13917. return iteratorOperation(nums, plus);
  13918. }
  13919. var num1 = nums[0],
  13920. num2 = nums[1];
  13921. // 取最大的小数位
  13922. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13923. // 把小数都转为整数然后再计算
  13924. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  13925. }
  13926. /**
  13927. * 高精度减法
  13928. * @export
  13929. */
  13930. function minus() {
  13931. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  13932. nums[_key3] = arguments[_key3];
  13933. }
  13934. if (nums.length > 2) {
  13935. return iteratorOperation(nums, minus);
  13936. }
  13937. var num1 = nums[0],
  13938. num2 = nums[1];
  13939. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13940. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  13941. }
  13942. /**
  13943. * 高精度除法
  13944. * @export
  13945. */
  13946. function divide() {
  13947. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  13948. nums[_key4] = arguments[_key4];
  13949. }
  13950. if (nums.length > 2) {
  13951. return iteratorOperation(nums, divide);
  13952. }
  13953. var num1 = nums[0],
  13954. num2 = nums[1];
  13955. var num1Changed = float2Fixed(num1);
  13956. var num2Changed = float2Fixed(num2);
  13957. checkBoundary(num1Changed);
  13958. checkBoundary(num2Changed);
  13959. // 重要,这里必须用strip进行修正
  13960. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  13961. }
  13962. /**
  13963. * 四舍五入
  13964. * @export
  13965. */
  13966. function round(num, ratio) {
  13967. var base = Math.pow(10, ratio);
  13968. var result = divide(Math.round(Math.abs(times(num, base))), base);
  13969. if (num < 0 && result !== 0) {
  13970. result = times(result, -1);
  13971. }
  13972. // 位数不足则补0
  13973. return result;
  13974. }
  13975. /**
  13976. * 是否进行边界检查,默认开启
  13977. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  13978. * @export
  13979. */
  13980. function enableBoundaryChecking() {
  13981. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  13982. _boundaryCheckingState = flag;
  13983. }
  13984. var _default = {
  13985. times: times,
  13986. plus: plus,
  13987. minus: minus,
  13988. divide: divide,
  13989. round: round,
  13990. enableBoundaryChecking: enableBoundaryChecking
  13991. };
  13992. exports.default = _default;
  13993. /***/ }),
  13994. /* 64 */
  13995. /*!********************************************************!*\
  13996. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  13997. \********************************************************/
  13998. /*! no static exports found */
  13999. /***/ (function(module, exports, __webpack_require__) {
  14000. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14001. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14002. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14003. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14004. function _toArray(arr) {
  14005. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14006. }
  14007. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14008. /***/ }),
  14009. /* 65 */
  14010. /*!*******************************************************************************!*\
  14011. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/config.js ***!
  14012. \*******************************************************************************/
  14013. /*! no static exports found */
  14014. /***/ (function(module, exports, __webpack_require__) {
  14015. "use strict";
  14016. Object.defineProperty(exports, "__esModule", {
  14017. value: true
  14018. });
  14019. exports.default = void 0;
  14020. // 此版本发布于2024-03-17
  14021. var version = '2.0.37';
  14022. // 开发环境才提示,生产环境不会提示
  14023. if (true) {
  14024. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14025. }
  14026. var _default = {
  14027. v: version,
  14028. version: version,
  14029. // 主题名称
  14030. type: ['primary', 'success', 'info', 'error', 'warning'],
  14031. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14032. color: {
  14033. 'u-primary': '#2979ff',
  14034. 'u-warning': '#ff9900',
  14035. 'u-success': '#19be6b',
  14036. 'u-error': '#fa3534',
  14037. 'u-info': '#909399',
  14038. 'u-main-color': '#303133',
  14039. 'u-content-color': '#606266',
  14040. 'u-tips-color': '#909399',
  14041. 'u-light-color': '#c0c4cc'
  14042. },
  14043. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14044. unit: 'px'
  14045. };
  14046. exports.default = _default;
  14047. /***/ }),
  14048. /* 66 */
  14049. /*!******************************************************************************!*\
  14050. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props.js ***!
  14051. \******************************************************************************/
  14052. /*! no static exports found */
  14053. /***/ (function(module, exports, __webpack_require__) {
  14054. "use strict";
  14055. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14056. Object.defineProperty(exports, "__esModule", {
  14057. value: true
  14058. });
  14059. exports.default = void 0;
  14060. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14061. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 65));
  14062. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 67));
  14063. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 68));
  14064. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 69));
  14065. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 70));
  14066. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 71));
  14067. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 72));
  14068. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 73));
  14069. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 74));
  14070. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 75));
  14071. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 76));
  14072. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 77));
  14073. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 78));
  14074. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 79));
  14075. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 80));
  14076. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 81));
  14077. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 82));
  14078. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 83));
  14079. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 84));
  14080. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 85));
  14081. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 86));
  14082. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 87));
  14083. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 88));
  14084. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 89));
  14085. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 90));
  14086. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 91));
  14087. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 92));
  14088. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 93));
  14089. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 94));
  14090. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 95));
  14091. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 96));
  14092. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 97));
  14093. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 98));
  14094. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 99));
  14095. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 100));
  14096. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 101));
  14097. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 102));
  14098. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 103));
  14099. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 104));
  14100. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 105));
  14101. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 106));
  14102. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 107));
  14103. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 108));
  14104. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 109));
  14105. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 110));
  14106. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 111));
  14107. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 112));
  14108. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 113));
  14109. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 115));
  14110. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 116));
  14111. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 117));
  14112. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 118));
  14113. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 119));
  14114. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 120));
  14115. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 121));
  14116. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 122));
  14117. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 123));
  14118. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 124));
  14119. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 125));
  14120. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 126));
  14121. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 127));
  14122. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 128));
  14123. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 129));
  14124. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 130));
  14125. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 131));
  14126. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 132));
  14127. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 133));
  14128. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 134));
  14129. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 135));
  14130. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 136));
  14131. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 137));
  14132. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 138));
  14133. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 139));
  14134. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 140));
  14135. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 141));
  14136. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 142));
  14137. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 143));
  14138. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 144));
  14139. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 145));
  14140. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 146));
  14141. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 147));
  14142. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 148));
  14143. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 149));
  14144. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 150));
  14145. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 151));
  14146. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 152));
  14147. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 153));
  14148. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 154));
  14149. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 155));
  14150. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  14151. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  14152. var color = _config.default.color;
  14153. var _default = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _actionSheet.default), _album.default), _alert.default), _avatar.default), _avatarGroup.default), _backtop.default), _badge.default), _button.default), _calendar.default), _carKeyboard.default), _cell.default), _cellGroup.default), _checkbox.default), _checkboxGroup.default), _circleProgress.default), _code.default), _codeInput.default), _col.default), _collapse.default), _collapseItem.default), _columnNotice.default), _countDown.default), _countTo.default), _datetimePicker.default), _divider.default), _empty.default), _form.default), _formItem.default), _gap.default), _grid.default), _gridItem.default), _icon.default), _image.default), _indexAnchor.default), _indexList.default), _input.default), _keyboard.default), _line.default), _lineProgress.default), _link.default), _list.default), _listItem.default), _loadingIcon.default), _loadingPage.default), _loadmore.default), _modal.default), _navbar.default), _noNetwork.default), _noticeBar.default), _notify.default), _numberBox.default), _numberKeyboard.default), _overlay.default), _parse.default), _picker.default), _popup.default), _radio.default), _radioGroup.default), _rate.default), _readMore.default), _row.default), _rowNotice.default), _scrollList.default), _search.default), _section.default), _skeleton.default), _slider.default), _statusBar.default), _steps.default), _stepsItem.default), _sticky.default), _subsection.default), _swipeAction.default), _swipeActionItem.default), _swiper.default), _swipterIndicator.default), _switch2.default), _tabbar.default), _tabbarItem.default), _tabs.default), _tag.default), _text.default), _textarea.default), _toast.default), _toolbar.default), _tooltip.default), _transition.default), _upload.default);
  14154. exports.default = _default;
  14155. /***/ }),
  14156. /* 67 */
  14157. /*!******************************************************************************************!*\
  14158. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14159. \******************************************************************************************/
  14160. /*! no static exports found */
  14161. /***/ (function(module, exports, __webpack_require__) {
  14162. "use strict";
  14163. Object.defineProperty(exports, "__esModule", {
  14164. value: true
  14165. });
  14166. exports.default = void 0;
  14167. /*
  14168. * @Author : LQ
  14169. * @Description :
  14170. * @version : 1.0
  14171. * @Date : 2021-08-20 16:44:21
  14172. * @LastAuthor : LQ
  14173. * @lastTime : 2021-08-20 16:44:35
  14174. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14175. */
  14176. var _default = {
  14177. // action-sheet组件
  14178. actionSheet: {
  14179. show: false,
  14180. title: '',
  14181. description: '',
  14182. actions: function actions() {
  14183. return [];
  14184. },
  14185. index: '',
  14186. cancelText: '',
  14187. closeOnClickAction: true,
  14188. safeAreaInsetBottom: true,
  14189. openType: '',
  14190. closeOnClickOverlay: true,
  14191. round: 0
  14192. }
  14193. };
  14194. exports.default = _default;
  14195. /***/ }),
  14196. /* 68 */
  14197. /*!************************************************************************************!*\
  14198. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/album.js ***!
  14199. \************************************************************************************/
  14200. /*! no static exports found */
  14201. /***/ (function(module, exports, __webpack_require__) {
  14202. "use strict";
  14203. Object.defineProperty(exports, "__esModule", {
  14204. value: true
  14205. });
  14206. exports.default = void 0;
  14207. /*
  14208. * @Author : LQ
  14209. * @Description :
  14210. * @version : 1.0
  14211. * @Date : 2021-08-20 16:44:21
  14212. * @LastAuthor : LQ
  14213. * @lastTime : 2021-08-20 16:47:24
  14214. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14215. */
  14216. var _default = {
  14217. // album 组件
  14218. album: {
  14219. urls: function urls() {
  14220. return [];
  14221. },
  14222. keyName: '',
  14223. singleSize: 180,
  14224. multipleSize: 70,
  14225. space: 6,
  14226. singleMode: 'scaleToFill',
  14227. multipleMode: 'aspectFill',
  14228. maxCount: 9,
  14229. previewFullImage: true,
  14230. rowCount: 3,
  14231. showMore: true
  14232. }
  14233. };
  14234. exports.default = _default;
  14235. /***/ }),
  14236. /* 69 */
  14237. /*!************************************************************************************!*\
  14238. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/alert.js ***!
  14239. \************************************************************************************/
  14240. /*! no static exports found */
  14241. /***/ (function(module, exports, __webpack_require__) {
  14242. "use strict";
  14243. Object.defineProperty(exports, "__esModule", {
  14244. value: true
  14245. });
  14246. exports.default = void 0;
  14247. /*
  14248. * @Author : LQ
  14249. * @Description :
  14250. * @version : 1.0
  14251. * @Date : 2021-08-20 16:44:21
  14252. * @LastAuthor : LQ
  14253. * @lastTime : 2021-08-20 16:48:53
  14254. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14255. */
  14256. var _default = {
  14257. // alert警告组件
  14258. alert: {
  14259. title: '',
  14260. type: 'warning',
  14261. description: '',
  14262. closable: false,
  14263. showIcon: false,
  14264. effect: 'light',
  14265. center: false,
  14266. fontSize: 14
  14267. }
  14268. };
  14269. exports.default = _default;
  14270. /***/ }),
  14271. /* 70 */
  14272. /*!*************************************************************************************!*\
  14273. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/avatar.js ***!
  14274. \*************************************************************************************/
  14275. /*! no static exports found */
  14276. /***/ (function(module, exports, __webpack_require__) {
  14277. "use strict";
  14278. Object.defineProperty(exports, "__esModule", {
  14279. value: true
  14280. });
  14281. exports.default = void 0;
  14282. /*
  14283. * @Author : LQ
  14284. * @Description :
  14285. * @version : 1.0
  14286. * @Date : 2021-08-20 16:44:21
  14287. * @LastAuthor : LQ
  14288. * @lastTime : 2021-08-20 16:49:22
  14289. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14290. */
  14291. var _default = {
  14292. // avatar 组件
  14293. avatar: {
  14294. src: '',
  14295. shape: 'circle',
  14296. size: 40,
  14297. mode: 'scaleToFill',
  14298. text: '',
  14299. bgColor: '#c0c4cc',
  14300. color: '#ffffff',
  14301. fontSize: 18,
  14302. icon: '',
  14303. mpAvatar: false,
  14304. randomBgColor: false,
  14305. defaultUrl: '',
  14306. colorIndex: '',
  14307. name: ''
  14308. }
  14309. };
  14310. exports.default = _default;
  14311. /***/ }),
  14312. /* 71 */
  14313. /*!******************************************************************************************!*\
  14314. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14315. \******************************************************************************************/
  14316. /*! no static exports found */
  14317. /***/ (function(module, exports, __webpack_require__) {
  14318. "use strict";
  14319. Object.defineProperty(exports, "__esModule", {
  14320. value: true
  14321. });
  14322. exports.default = void 0;
  14323. /*
  14324. * @Author : LQ
  14325. * @Description :
  14326. * @version : 1.0
  14327. * @Date : 2021-08-20 16:44:21
  14328. * @LastAuthor : LQ
  14329. * @lastTime : 2021-08-20 16:49:55
  14330. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14331. */
  14332. var _default = {
  14333. // avatarGroup 组件
  14334. avatarGroup: {
  14335. urls: function urls() {
  14336. return [];
  14337. },
  14338. maxCount: 5,
  14339. shape: 'circle',
  14340. mode: 'scaleToFill',
  14341. showMore: true,
  14342. size: 40,
  14343. keyName: '',
  14344. gap: 0.5,
  14345. extraValue: 0
  14346. }
  14347. };
  14348. exports.default = _default;
  14349. /***/ }),
  14350. /* 72 */
  14351. /*!**************************************************************************************!*\
  14352. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  14353. \**************************************************************************************/
  14354. /*! no static exports found */
  14355. /***/ (function(module, exports, __webpack_require__) {
  14356. "use strict";
  14357. Object.defineProperty(exports, "__esModule", {
  14358. value: true
  14359. });
  14360. exports.default = void 0;
  14361. /*
  14362. * @Author : LQ
  14363. * @Description :
  14364. * @version : 1.0
  14365. * @Date : 2021-08-20 16:44:21
  14366. * @LastAuthor : LQ
  14367. * @lastTime : 2021-08-20 16:50:18
  14368. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14369. */
  14370. var _default = {
  14371. // backtop组件
  14372. backtop: {
  14373. mode: 'circle',
  14374. icon: 'arrow-upward',
  14375. text: '',
  14376. duration: 100,
  14377. scrollTop: 0,
  14378. top: 400,
  14379. bottom: 100,
  14380. right: 20,
  14381. zIndex: 9,
  14382. iconStyle: function iconStyle() {
  14383. return {
  14384. color: '#909399',
  14385. fontSize: '19px'
  14386. };
  14387. }
  14388. }
  14389. };
  14390. exports.default = _default;
  14391. /***/ }),
  14392. /* 73 */
  14393. /*!************************************************************************************!*\
  14394. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/badge.js ***!
  14395. \************************************************************************************/
  14396. /*! no static exports found */
  14397. /***/ (function(module, exports, __webpack_require__) {
  14398. "use strict";
  14399. Object.defineProperty(exports, "__esModule", {
  14400. value: true
  14401. });
  14402. exports.default = void 0;
  14403. /*
  14404. * @Author : LQ
  14405. * @Description :
  14406. * @version : 1.0
  14407. * @Date : 2021-08-20 16:44:21
  14408. * @LastAuthor : LQ
  14409. * @lastTime : 2021-08-23 19:51:50
  14410. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14411. */
  14412. var _default = {
  14413. // 徽标数组件
  14414. badge: {
  14415. isDot: false,
  14416. value: '',
  14417. show: true,
  14418. max: 999,
  14419. type: 'error',
  14420. showZero: false,
  14421. bgColor: null,
  14422. color: null,
  14423. shape: 'circle',
  14424. numberType: 'overflow',
  14425. offset: function offset() {
  14426. return [];
  14427. },
  14428. inverted: false,
  14429. absolute: false
  14430. }
  14431. };
  14432. exports.default = _default;
  14433. /***/ }),
  14434. /* 74 */
  14435. /*!*************************************************************************************!*\
  14436. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/button.js ***!
  14437. \*************************************************************************************/
  14438. /*! no static exports found */
  14439. /***/ (function(module, exports, __webpack_require__) {
  14440. "use strict";
  14441. Object.defineProperty(exports, "__esModule", {
  14442. value: true
  14443. });
  14444. exports.default = void 0;
  14445. /*
  14446. * @Author : LQ
  14447. * @Description :
  14448. * @version : 1.0
  14449. * @Date : 2021-08-20 16:44:21
  14450. * @LastAuthor : LQ
  14451. * @lastTime : 2021-08-20 16:51:27
  14452. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14453. */
  14454. var _default = {
  14455. // button组件
  14456. button: {
  14457. hairline: false,
  14458. type: 'info',
  14459. size: 'normal',
  14460. shape: 'square',
  14461. plain: false,
  14462. disabled: false,
  14463. loading: false,
  14464. loadingText: '',
  14465. loadingMode: 'spinner',
  14466. loadingSize: 15,
  14467. openType: '',
  14468. formType: '',
  14469. appParameter: '',
  14470. hoverStopPropagation: true,
  14471. lang: 'en',
  14472. sessionFrom: '',
  14473. sendMessageTitle: '',
  14474. sendMessagePath: '',
  14475. sendMessageImg: '',
  14476. showMessageCard: false,
  14477. dataName: '',
  14478. throttleTime: 0,
  14479. hoverStartTime: 0,
  14480. hoverStayTime: 200,
  14481. text: '',
  14482. icon: '',
  14483. iconColor: '',
  14484. color: ''
  14485. }
  14486. };
  14487. exports.default = _default;
  14488. /***/ }),
  14489. /* 75 */
  14490. /*!***************************************************************************************!*\
  14491. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/calendar.js ***!
  14492. \***************************************************************************************/
  14493. /*! no static exports found */
  14494. /***/ (function(module, exports, __webpack_require__) {
  14495. "use strict";
  14496. Object.defineProperty(exports, "__esModule", {
  14497. value: true
  14498. });
  14499. exports.default = void 0;
  14500. /*
  14501. * @Author : LQ
  14502. * @Description :
  14503. * @version : 1.0
  14504. * @Date : 2021-08-20 16:44:21
  14505. * @LastAuthor : LQ
  14506. * @lastTime : 2021-08-20 16:52:43
  14507. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14508. */
  14509. var _default = {
  14510. // calendar 组件
  14511. calendar: {
  14512. title: '日期选择',
  14513. showTitle: true,
  14514. showSubtitle: true,
  14515. mode: 'single',
  14516. startText: '开始',
  14517. endText: '结束',
  14518. customList: function customList() {
  14519. return [];
  14520. },
  14521. color: '#3c9cff',
  14522. minDate: 0,
  14523. maxDate: 0,
  14524. defaultDate: null,
  14525. maxCount: Number.MAX_SAFE_INTEGER,
  14526. // Infinity
  14527. rowHeight: 56,
  14528. formatter: null,
  14529. showLunar: false,
  14530. showMark: true,
  14531. confirmText: '确定',
  14532. confirmDisabledText: '确定',
  14533. show: false,
  14534. closeOnClickOverlay: false,
  14535. readonly: false,
  14536. showConfirm: true,
  14537. maxRange: Number.MAX_SAFE_INTEGER,
  14538. // Infinity
  14539. rangePrompt: '',
  14540. showRangePrompt: true,
  14541. allowSameDay: false,
  14542. round: 0,
  14543. monthNum: 3
  14544. }
  14545. };
  14546. exports.default = _default;
  14547. /***/ }),
  14548. /* 76 */
  14549. /*!******************************************************************************************!*\
  14550. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14551. \******************************************************************************************/
  14552. /*! no static exports found */
  14553. /***/ (function(module, exports, __webpack_require__) {
  14554. "use strict";
  14555. Object.defineProperty(exports, "__esModule", {
  14556. value: true
  14557. });
  14558. exports.default = void 0;
  14559. /*
  14560. * @Author : LQ
  14561. * @Description :
  14562. * @version : 1.0
  14563. * @Date : 2021-08-20 16:44:21
  14564. * @LastAuthor : LQ
  14565. * @lastTime : 2021-08-20 16:53:20
  14566. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14567. */
  14568. var _default = {
  14569. // 车牌号键盘
  14570. carKeyboard: {
  14571. random: false
  14572. }
  14573. };
  14574. exports.default = _default;
  14575. /***/ }),
  14576. /* 77 */
  14577. /*!***********************************************************************************!*\
  14578. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/cell.js ***!
  14579. \***********************************************************************************/
  14580. /*! no static exports found */
  14581. /***/ (function(module, exports, __webpack_require__) {
  14582. "use strict";
  14583. Object.defineProperty(exports, "__esModule", {
  14584. value: true
  14585. });
  14586. exports.default = void 0;
  14587. /*
  14588. * @Author : LQ
  14589. * @Description :
  14590. * @version : 1.0
  14591. * @Date : 2021-08-20 16:44:21
  14592. * @LastAuthor : LQ
  14593. * @lastTime : 2021-08-23 20:53:09
  14594. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14595. */
  14596. var _default = {
  14597. // cell组件的props
  14598. cell: {
  14599. customClass: '',
  14600. title: '',
  14601. label: '',
  14602. value: '',
  14603. icon: '',
  14604. disabled: false,
  14605. border: true,
  14606. center: false,
  14607. url: '',
  14608. linkType: 'navigateTo',
  14609. clickable: false,
  14610. isLink: false,
  14611. required: false,
  14612. arrowDirection: '',
  14613. iconStyle: {},
  14614. rightIconStyle: {},
  14615. rightIcon: 'arrow-right',
  14616. titleStyle: {},
  14617. size: '',
  14618. stop: true,
  14619. name: ''
  14620. }
  14621. };
  14622. exports.default = _default;
  14623. /***/ }),
  14624. /* 78 */
  14625. /*!****************************************************************************************!*\
  14626. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14627. \****************************************************************************************/
  14628. /*! no static exports found */
  14629. /***/ (function(module, exports, __webpack_require__) {
  14630. "use strict";
  14631. Object.defineProperty(exports, "__esModule", {
  14632. value: true
  14633. });
  14634. exports.default = void 0;
  14635. /*
  14636. * @Author : LQ
  14637. * @Description :
  14638. * @version : 1.0
  14639. * @Date : 2021-08-20 16:44:21
  14640. * @LastAuthor : LQ
  14641. * @lastTime : 2021-08-20 16:54:16
  14642. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14643. */
  14644. var _default = {
  14645. // cell-group组件的props
  14646. cellGroup: {
  14647. title: '',
  14648. border: true,
  14649. customStyle: {}
  14650. }
  14651. };
  14652. exports.default = _default;
  14653. /***/ }),
  14654. /* 79 */
  14655. /*!***************************************************************************************!*\
  14656. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  14657. \***************************************************************************************/
  14658. /*! no static exports found */
  14659. /***/ (function(module, exports, __webpack_require__) {
  14660. "use strict";
  14661. Object.defineProperty(exports, "__esModule", {
  14662. value: true
  14663. });
  14664. exports.default = void 0;
  14665. /*
  14666. * @Author : LQ
  14667. * @Description :
  14668. * @version : 1.0
  14669. * @Date : 2021-08-20 16:44:21
  14670. * @LastAuthor : LQ
  14671. * @lastTime : 2021-08-23 21:06:59
  14672. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14673. */
  14674. var _default = {
  14675. // checkbox组件
  14676. checkbox: {
  14677. name: '',
  14678. shape: '',
  14679. size: '',
  14680. checkbox: false,
  14681. disabled: '',
  14682. activeColor: '',
  14683. inactiveColor: '',
  14684. iconSize: '',
  14685. iconColor: '',
  14686. label: '',
  14687. labelSize: '',
  14688. labelColor: '',
  14689. labelDisabled: ''
  14690. }
  14691. };
  14692. exports.default = _default;
  14693. /***/ }),
  14694. /* 80 */
  14695. /*!********************************************************************************************!*\
  14696. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14697. \********************************************************************************************/
  14698. /*! no static exports found */
  14699. /***/ (function(module, exports, __webpack_require__) {
  14700. "use strict";
  14701. Object.defineProperty(exports, "__esModule", {
  14702. value: true
  14703. });
  14704. exports.default = void 0;
  14705. /*
  14706. * @Author : LQ
  14707. * @Description :
  14708. * @version : 1.0
  14709. * @Date : 2021-08-20 16:44:21
  14710. * @LastAuthor : LQ
  14711. * @lastTime : 2021-08-20 16:54:47
  14712. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14713. */
  14714. var _default = {
  14715. // checkbox-group组件
  14716. checkboxGroup: {
  14717. name: '',
  14718. value: function value() {
  14719. return [];
  14720. },
  14721. shape: 'square',
  14722. disabled: false,
  14723. activeColor: '#2979ff',
  14724. inactiveColor: '#c8c9cc',
  14725. size: 18,
  14726. placement: 'row',
  14727. labelSize: 14,
  14728. labelColor: '#303133',
  14729. labelDisabled: false,
  14730. iconColor: '#ffffff',
  14731. iconSize: 12,
  14732. iconPlacement: 'left',
  14733. borderBottom: false
  14734. }
  14735. };
  14736. exports.default = _default;
  14737. /***/ }),
  14738. /* 81 */
  14739. /*!*********************************************************************************************!*\
  14740. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  14741. \*********************************************************************************************/
  14742. /*! no static exports found */
  14743. /***/ (function(module, exports, __webpack_require__) {
  14744. "use strict";
  14745. Object.defineProperty(exports, "__esModule", {
  14746. value: true
  14747. });
  14748. exports.default = void 0;
  14749. /*
  14750. * @Author : LQ
  14751. * @Description :
  14752. * @version : 1.0
  14753. * @Date : 2021-08-20 16:44:21
  14754. * @LastAuthor : LQ
  14755. * @lastTime : 2021-08-20 16:55:02
  14756. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14757. */
  14758. var _default = {
  14759. // circleProgress 组件
  14760. circleProgress: {
  14761. percentage: 30
  14762. }
  14763. };
  14764. exports.default = _default;
  14765. /***/ }),
  14766. /* 82 */
  14767. /*!***********************************************************************************!*\
  14768. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/code.js ***!
  14769. \***********************************************************************************/
  14770. /*! no static exports found */
  14771. /***/ (function(module, exports, __webpack_require__) {
  14772. "use strict";
  14773. Object.defineProperty(exports, "__esModule", {
  14774. value: true
  14775. });
  14776. exports.default = void 0;
  14777. /*
  14778. * @Author : LQ
  14779. * @Description :
  14780. * @version : 1.0
  14781. * @Date : 2021-08-20 16:44:21
  14782. * @LastAuthor : LQ
  14783. * @lastTime : 2021-08-20 16:55:27
  14784. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14785. */
  14786. var _default = {
  14787. // code 组件
  14788. code: {
  14789. seconds: 60,
  14790. startText: '获取验证码',
  14791. changeText: 'X秒重新获取',
  14792. endText: '重新获取',
  14793. keepRunning: false,
  14794. uniqueKey: ''
  14795. }
  14796. };
  14797. exports.default = _default;
  14798. /***/ }),
  14799. /* 83 */
  14800. /*!****************************************************************************************!*\
  14801. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  14802. \****************************************************************************************/
  14803. /*! no static exports found */
  14804. /***/ (function(module, exports, __webpack_require__) {
  14805. "use strict";
  14806. Object.defineProperty(exports, "__esModule", {
  14807. value: true
  14808. });
  14809. exports.default = void 0;
  14810. /*
  14811. * @Author : LQ
  14812. * @Description :
  14813. * @version : 1.0
  14814. * @Date : 2021-08-20 16:44:21
  14815. * @LastAuthor : LQ
  14816. * @lastTime : 2021-08-20 16:55:58
  14817. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  14818. */
  14819. var _default = {
  14820. // codeInput 组件
  14821. codeInput: {
  14822. adjustPosition: true,
  14823. maxlength: 6,
  14824. dot: false,
  14825. mode: 'box',
  14826. hairline: false,
  14827. space: 10,
  14828. value: '',
  14829. focus: false,
  14830. bold: false,
  14831. color: '#606266',
  14832. fontSize: 18,
  14833. size: 35,
  14834. disabledKeyboard: false,
  14835. borderColor: '#c9cacc',
  14836. disabledDot: true
  14837. }
  14838. };
  14839. exports.default = _default;
  14840. /***/ }),
  14841. /* 84 */
  14842. /*!**********************************************************************************!*\
  14843. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/col.js ***!
  14844. \**********************************************************************************/
  14845. /*! no static exports found */
  14846. /***/ (function(module, exports, __webpack_require__) {
  14847. "use strict";
  14848. Object.defineProperty(exports, "__esModule", {
  14849. value: true
  14850. });
  14851. exports.default = void 0;
  14852. /*
  14853. * @Author : LQ
  14854. * @Description :
  14855. * @version : 1.0
  14856. * @Date : 2021-08-20 16:44:21
  14857. * @LastAuthor : LQ
  14858. * @lastTime : 2021-08-20 16:56:12
  14859. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  14860. */
  14861. var _default = {
  14862. // col 组件
  14863. col: {
  14864. span: 12,
  14865. offset: 0,
  14866. justify: 'start',
  14867. align: 'stretch',
  14868. textAlign: 'left'
  14869. }
  14870. };
  14871. exports.default = _default;
  14872. /***/ }),
  14873. /* 85 */
  14874. /*!***************************************************************************************!*\
  14875. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  14876. \***************************************************************************************/
  14877. /*! no static exports found */
  14878. /***/ (function(module, exports, __webpack_require__) {
  14879. "use strict";
  14880. Object.defineProperty(exports, "__esModule", {
  14881. value: true
  14882. });
  14883. exports.default = void 0;
  14884. /*
  14885. * @Author : LQ
  14886. * @Description :
  14887. * @version : 1.0
  14888. * @Date : 2021-08-20 16:44:21
  14889. * @LastAuthor : LQ
  14890. * @lastTime : 2021-08-20 16:56:30
  14891. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  14892. */
  14893. var _default = {
  14894. // collapse 组件
  14895. collapse: {
  14896. value: null,
  14897. accordion: false,
  14898. border: true
  14899. }
  14900. };
  14901. exports.default = _default;
  14902. /***/ }),
  14903. /* 86 */
  14904. /*!*******************************************************************************************!*\
  14905. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  14906. \*******************************************************************************************/
  14907. /*! no static exports found */
  14908. /***/ (function(module, exports, __webpack_require__) {
  14909. "use strict";
  14910. Object.defineProperty(exports, "__esModule", {
  14911. value: true
  14912. });
  14913. exports.default = void 0;
  14914. /*
  14915. * @Author : LQ
  14916. * @Description :
  14917. * @version : 1.0
  14918. * @Date : 2021-08-20 16:44:21
  14919. * @LastAuthor : LQ
  14920. * @lastTime : 2021-08-20 16:56:42
  14921. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  14922. */
  14923. var _default = {
  14924. // collapseItem 组件
  14925. collapseItem: {
  14926. title: '',
  14927. value: '',
  14928. label: '',
  14929. disabled: false,
  14930. isLink: true,
  14931. clickable: true,
  14932. border: true,
  14933. align: 'left',
  14934. name: '',
  14935. icon: '',
  14936. duration: 300
  14937. }
  14938. };
  14939. exports.default = _default;
  14940. /***/ }),
  14941. /* 87 */
  14942. /*!*******************************************************************************************!*\
  14943. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  14944. \*******************************************************************************************/
  14945. /*! no static exports found */
  14946. /***/ (function(module, exports, __webpack_require__) {
  14947. "use strict";
  14948. Object.defineProperty(exports, "__esModule", {
  14949. value: true
  14950. });
  14951. exports.default = void 0;
  14952. /*
  14953. * @Author : LQ
  14954. * @Description :
  14955. * @version : 1.0
  14956. * @Date : 2021-08-20 16:44:21
  14957. * @LastAuthor : LQ
  14958. * @lastTime : 2021-08-20 16:57:16
  14959. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  14960. */
  14961. var _default = {
  14962. // columnNotice 组件
  14963. columnNotice: {
  14964. text: '',
  14965. icon: 'volume',
  14966. mode: '',
  14967. color: '#f9ae3d',
  14968. bgColor: '#fdf6ec',
  14969. fontSize: 14,
  14970. speed: 80,
  14971. step: false,
  14972. duration: 1500,
  14973. disableTouch: true
  14974. }
  14975. };
  14976. exports.default = _default;
  14977. /***/ }),
  14978. /* 88 */
  14979. /*!****************************************************************************************!*\
  14980. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  14981. \****************************************************************************************/
  14982. /*! no static exports found */
  14983. /***/ (function(module, exports, __webpack_require__) {
  14984. "use strict";
  14985. Object.defineProperty(exports, "__esModule", {
  14986. value: true
  14987. });
  14988. exports.default = void 0;
  14989. /*
  14990. * @Author : LQ
  14991. * @Description :
  14992. * @version : 1.0
  14993. * @Date : 2021-08-20 16:44:21
  14994. * @LastAuthor : LQ
  14995. * @lastTime : 2021-08-20 17:11:29
  14996. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  14997. */
  14998. var _default = {
  14999. // u-count-down 计时器组件
  15000. countDown: {
  15001. time: 0,
  15002. format: 'HH:mm:ss',
  15003. autoStart: true,
  15004. millisecond: false
  15005. }
  15006. };
  15007. exports.default = _default;
  15008. /***/ }),
  15009. /* 89 */
  15010. /*!**************************************************************************************!*\
  15011. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  15012. \**************************************************************************************/
  15013. /*! no static exports found */
  15014. /***/ (function(module, exports, __webpack_require__) {
  15015. "use strict";
  15016. Object.defineProperty(exports, "__esModule", {
  15017. value: true
  15018. });
  15019. exports.default = void 0;
  15020. /*
  15021. * @Author : LQ
  15022. * @Description :
  15023. * @version : 1.0
  15024. * @Date : 2021-08-20 16:44:21
  15025. * @LastAuthor : LQ
  15026. * @lastTime : 2021-08-20 16:57:32
  15027. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15028. */
  15029. var _default = {
  15030. // countTo 组件
  15031. countTo: {
  15032. startVal: 0,
  15033. endVal: 0,
  15034. duration: 2000,
  15035. autoplay: true,
  15036. decimals: 0,
  15037. useEasing: true,
  15038. decimal: '.',
  15039. color: '#606266',
  15040. fontSize: 22,
  15041. bold: false,
  15042. separator: ''
  15043. }
  15044. };
  15045. exports.default = _default;
  15046. /***/ }),
  15047. /* 90 */
  15048. /*!*********************************************************************************************!*\
  15049. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15050. \*********************************************************************************************/
  15051. /*! no static exports found */
  15052. /***/ (function(module, exports, __webpack_require__) {
  15053. "use strict";
  15054. Object.defineProperty(exports, "__esModule", {
  15055. value: true
  15056. });
  15057. exports.default = void 0;
  15058. /*
  15059. * @Author : LQ
  15060. * @Description :
  15061. * @version : 1.0
  15062. * @Date : 2021-08-20 16:44:21
  15063. * @LastAuthor : LQ
  15064. * @lastTime : 2021-08-20 16:57:48
  15065. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15066. */
  15067. var _default = {
  15068. // datetimePicker 组件
  15069. datetimePicker: {
  15070. show: false,
  15071. showToolbar: true,
  15072. value: '',
  15073. title: '',
  15074. mode: 'datetime',
  15075. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15076. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15077. minHour: 0,
  15078. maxHour: 23,
  15079. minMinute: 0,
  15080. maxMinute: 59,
  15081. filter: null,
  15082. formatter: null,
  15083. loading: false,
  15084. itemHeight: 44,
  15085. cancelText: '取消',
  15086. confirmText: '确认',
  15087. cancelColor: '#909193',
  15088. confirmColor: '#3c9cff',
  15089. visibleItemCount: 5,
  15090. closeOnClickOverlay: false,
  15091. defaultIndex: function defaultIndex() {
  15092. return [];
  15093. }
  15094. }
  15095. };
  15096. exports.default = _default;
  15097. /***/ }),
  15098. /* 91 */
  15099. /*!**************************************************************************************!*\
  15100. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/divider.js ***!
  15101. \**************************************************************************************/
  15102. /*! no static exports found */
  15103. /***/ (function(module, exports, __webpack_require__) {
  15104. "use strict";
  15105. Object.defineProperty(exports, "__esModule", {
  15106. value: true
  15107. });
  15108. exports.default = void 0;
  15109. /*
  15110. * @Author : LQ
  15111. * @Description :
  15112. * @version : 1.0
  15113. * @Date : 2021-08-20 16:44:21
  15114. * @LastAuthor : LQ
  15115. * @lastTime : 2021-08-20 16:58:03
  15116. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15117. */
  15118. var _default = {
  15119. // divider组件
  15120. divider: {
  15121. dashed: false,
  15122. hairline: true,
  15123. dot: false,
  15124. textPosition: 'center',
  15125. text: '',
  15126. textSize: 14,
  15127. textColor: '#909399',
  15128. lineColor: '#dcdfe6'
  15129. }
  15130. };
  15131. exports.default = _default;
  15132. /***/ }),
  15133. /* 92 */
  15134. /*!************************************************************************************!*\
  15135. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/empty.js ***!
  15136. \************************************************************************************/
  15137. /*! no static exports found */
  15138. /***/ (function(module, exports, __webpack_require__) {
  15139. "use strict";
  15140. Object.defineProperty(exports, "__esModule", {
  15141. value: true
  15142. });
  15143. exports.default = void 0;
  15144. /*
  15145. * @Author : LQ
  15146. * @Description :
  15147. * @version : 1.0
  15148. * @Date : 2021-08-20 16:44:21
  15149. * @LastAuthor : LQ
  15150. * @lastTime : 2021-08-20 17:03:27
  15151. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15152. */
  15153. var _default = {
  15154. // empty组件
  15155. empty: {
  15156. icon: '',
  15157. text: '',
  15158. textColor: '#c0c4cc',
  15159. textSize: 14,
  15160. iconColor: '#c0c4cc',
  15161. iconSize: 90,
  15162. mode: 'data',
  15163. width: 160,
  15164. height: 160,
  15165. show: true,
  15166. marginTop: 0
  15167. }
  15168. };
  15169. exports.default = _default;
  15170. /***/ }),
  15171. /* 93 */
  15172. /*!***********************************************************************************!*\
  15173. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/form.js ***!
  15174. \***********************************************************************************/
  15175. /*! no static exports found */
  15176. /***/ (function(module, exports, __webpack_require__) {
  15177. "use strict";
  15178. Object.defineProperty(exports, "__esModule", {
  15179. value: true
  15180. });
  15181. exports.default = void 0;
  15182. /*
  15183. * @Author : LQ
  15184. * @Description :
  15185. * @version : 1.0
  15186. * @Date : 2021-08-20 16:44:21
  15187. * @LastAuthor : LQ
  15188. * @lastTime : 2021-08-20 17:03:49
  15189. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15190. */
  15191. var _default = {
  15192. // form 组件
  15193. form: {
  15194. model: function model() {
  15195. return {};
  15196. },
  15197. rules: function rules() {
  15198. return {};
  15199. },
  15200. errorType: 'message',
  15201. borderBottom: true,
  15202. labelPosition: 'left',
  15203. labelWidth: 45,
  15204. labelAlign: 'left',
  15205. labelStyle: function labelStyle() {
  15206. return {};
  15207. }
  15208. }
  15209. };
  15210. exports.default = _default;
  15211. /***/ }),
  15212. /* 94 */
  15213. /*!***************************************************************************************!*\
  15214. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  15215. \***************************************************************************************/
  15216. /*! no static exports found */
  15217. /***/ (function(module, exports, __webpack_require__) {
  15218. "use strict";
  15219. Object.defineProperty(exports, "__esModule", {
  15220. value: true
  15221. });
  15222. exports.default = void 0;
  15223. /*
  15224. * @Author : LQ
  15225. * @Description :
  15226. * @version : 1.0
  15227. * @Date : 2021-08-20 16:44:21
  15228. * @LastAuthor : LQ
  15229. * @lastTime : 2021-08-20 17:04:32
  15230. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15231. */
  15232. var _default = {
  15233. // formItem 组件
  15234. formItem: {
  15235. label: '',
  15236. prop: '',
  15237. borderBottom: '',
  15238. labelPosition: '',
  15239. labelWidth: '',
  15240. rightIcon: '',
  15241. leftIcon: '',
  15242. required: false,
  15243. leftIconStyle: ''
  15244. }
  15245. };
  15246. exports.default = _default;
  15247. /***/ }),
  15248. /* 95 */
  15249. /*!**********************************************************************************!*\
  15250. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/gap.js ***!
  15251. \**********************************************************************************/
  15252. /*! no static exports found */
  15253. /***/ (function(module, exports, __webpack_require__) {
  15254. "use strict";
  15255. Object.defineProperty(exports, "__esModule", {
  15256. value: true
  15257. });
  15258. exports.default = void 0;
  15259. /*
  15260. * @Author : LQ
  15261. * @Description :
  15262. * @version : 1.0
  15263. * @Date : 2021-08-20 16:44:21
  15264. * @LastAuthor : LQ
  15265. * @lastTime : 2021-08-20 17:05:25
  15266. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15267. */
  15268. var _default = {
  15269. // gap组件
  15270. gap: {
  15271. bgColor: 'transparent',
  15272. height: 20,
  15273. marginTop: 0,
  15274. marginBottom: 0,
  15275. customStyle: {}
  15276. }
  15277. };
  15278. exports.default = _default;
  15279. /***/ }),
  15280. /* 96 */
  15281. /*!***********************************************************************************!*\
  15282. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/grid.js ***!
  15283. \***********************************************************************************/
  15284. /*! no static exports found */
  15285. /***/ (function(module, exports, __webpack_require__) {
  15286. "use strict";
  15287. Object.defineProperty(exports, "__esModule", {
  15288. value: true
  15289. });
  15290. exports.default = void 0;
  15291. /*
  15292. * @Author : LQ
  15293. * @Description :
  15294. * @version : 1.0
  15295. * @Date : 2021-08-20 16:44:21
  15296. * @LastAuthor : LQ
  15297. * @lastTime : 2021-08-20 17:05:57
  15298. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15299. */
  15300. var _default = {
  15301. // grid组件
  15302. grid: {
  15303. col: 3,
  15304. border: false,
  15305. align: 'left'
  15306. }
  15307. };
  15308. exports.default = _default;
  15309. /***/ }),
  15310. /* 97 */
  15311. /*!***************************************************************************************!*\
  15312. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  15313. \***************************************************************************************/
  15314. /*! no static exports found */
  15315. /***/ (function(module, exports, __webpack_require__) {
  15316. "use strict";
  15317. Object.defineProperty(exports, "__esModule", {
  15318. value: true
  15319. });
  15320. exports.default = void 0;
  15321. /*
  15322. * @Author : LQ
  15323. * @Description :
  15324. * @version : 1.0
  15325. * @Date : 2021-08-20 16:44:21
  15326. * @LastAuthor : LQ
  15327. * @lastTime : 2021-08-20 17:06:13
  15328. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15329. */
  15330. var _default = {
  15331. // grid-item组件
  15332. gridItem: {
  15333. name: null,
  15334. bgColor: 'transparent'
  15335. }
  15336. };
  15337. exports.default = _default;
  15338. /***/ }),
  15339. /* 98 */
  15340. /*!***********************************************************************************!*\
  15341. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/icon.js ***!
  15342. \***********************************************************************************/
  15343. /*! no static exports found */
  15344. /***/ (function(module, exports, __webpack_require__) {
  15345. "use strict";
  15346. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15347. Object.defineProperty(exports, "__esModule", {
  15348. value: true
  15349. });
  15350. exports.default = void 0;
  15351. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15352. /*
  15353. * @Author : LQ
  15354. * @Description :
  15355. * @version : 1.0
  15356. * @Date : 2021-08-20 16:44:21
  15357. * @LastAuthor : LQ
  15358. * @lastTime : 2021-08-20 18:00:14
  15359. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15360. */
  15361. var color = _config.default.color;
  15362. var _default = {
  15363. // icon组件
  15364. icon: {
  15365. name: '',
  15366. color: color['u-content-color'],
  15367. size: '16px',
  15368. bold: false,
  15369. index: '',
  15370. hoverClass: '',
  15371. customPrefix: 'uicon',
  15372. label: '',
  15373. labelPos: 'right',
  15374. labelSize: '15px',
  15375. labelColor: color['u-content-color'],
  15376. space: '3px',
  15377. imgMode: '',
  15378. width: '',
  15379. height: '',
  15380. top: 0,
  15381. stop: false
  15382. }
  15383. };
  15384. exports.default = _default;
  15385. /***/ }),
  15386. /* 99 */
  15387. /*!************************************************************************************!*\
  15388. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/image.js ***!
  15389. \************************************************************************************/
  15390. /*! no static exports found */
  15391. /***/ (function(module, exports, __webpack_require__) {
  15392. "use strict";
  15393. Object.defineProperty(exports, "__esModule", {
  15394. value: true
  15395. });
  15396. exports.default = void 0;
  15397. /*
  15398. * @Author : LQ
  15399. * @Description :
  15400. * @version : 1.0
  15401. * @Date : 2021-08-20 16:44:21
  15402. * @LastAuthor : LQ
  15403. * @lastTime : 2021-08-20 17:01:51
  15404. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15405. */
  15406. var _default = {
  15407. // image组件
  15408. image: {
  15409. src: '',
  15410. mode: 'aspectFill',
  15411. width: '300',
  15412. height: '225',
  15413. shape: 'square',
  15414. radius: 0,
  15415. lazyLoad: true,
  15416. showMenuByLongpress: true,
  15417. loadingIcon: 'photo',
  15418. errorIcon: 'error-circle',
  15419. showLoading: true,
  15420. showError: true,
  15421. fade: true,
  15422. webp: false,
  15423. duration: 500,
  15424. bgColor: '#f3f4f6'
  15425. }
  15426. };
  15427. exports.default = _default;
  15428. /***/ }),
  15429. /* 100 */
  15430. /*!******************************************************************************************!*\
  15431. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15432. \******************************************************************************************/
  15433. /*! no static exports found */
  15434. /***/ (function(module, exports, __webpack_require__) {
  15435. "use strict";
  15436. Object.defineProperty(exports, "__esModule", {
  15437. value: true
  15438. });
  15439. exports.default = void 0;
  15440. /*
  15441. * @Author : LQ
  15442. * @Description :
  15443. * @version : 1.0
  15444. * @Date : 2021-08-20 16:44:21
  15445. * @LastAuthor : LQ
  15446. * @lastTime : 2021-08-20 17:13:15
  15447. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15448. */
  15449. var _default = {
  15450. // indexAnchor 组件
  15451. indexAnchor: {
  15452. text: '',
  15453. color: '#606266',
  15454. size: 14,
  15455. bgColor: '#dedede',
  15456. height: 32
  15457. }
  15458. };
  15459. exports.default = _default;
  15460. /***/ }),
  15461. /* 101 */
  15462. /*!****************************************************************************************!*\
  15463. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  15464. \****************************************************************************************/
  15465. /*! no static exports found */
  15466. /***/ (function(module, exports, __webpack_require__) {
  15467. "use strict";
  15468. Object.defineProperty(exports, "__esModule", {
  15469. value: true
  15470. });
  15471. exports.default = void 0;
  15472. /*
  15473. * @Author : LQ
  15474. * @Description :
  15475. * @version : 1.0
  15476. * @Date : 2021-08-20 16:44:21
  15477. * @LastAuthor : LQ
  15478. * @lastTime : 2021-08-20 17:13:35
  15479. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15480. */
  15481. var _default = {
  15482. // indexList 组件
  15483. indexList: {
  15484. inactiveColor: '#606266',
  15485. activeColor: '#5677fc',
  15486. indexList: function indexList() {
  15487. return [];
  15488. },
  15489. sticky: true,
  15490. customNavHeight: 0
  15491. }
  15492. };
  15493. exports.default = _default;
  15494. /***/ }),
  15495. /* 102 */
  15496. /*!************************************************************************************!*\
  15497. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/input.js ***!
  15498. \************************************************************************************/
  15499. /*! no static exports found */
  15500. /***/ (function(module, exports, __webpack_require__) {
  15501. "use strict";
  15502. Object.defineProperty(exports, "__esModule", {
  15503. value: true
  15504. });
  15505. exports.default = void 0;
  15506. /*
  15507. * @Author : LQ
  15508. * @Description :
  15509. * @version : 1.0
  15510. * @Date : 2021-08-20 16:44:21
  15511. * @LastAuthor : LQ
  15512. * @lastTime : 2021-08-20 17:13:55
  15513. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15514. */
  15515. var _default = {
  15516. // index 组件
  15517. input: {
  15518. value: '',
  15519. type: 'text',
  15520. fixed: false,
  15521. disabled: false,
  15522. disabledColor: '#f5f7fa',
  15523. clearable: false,
  15524. password: false,
  15525. maxlength: -1,
  15526. placeholder: null,
  15527. placeholderClass: 'input-placeholder',
  15528. placeholderStyle: 'color: #c0c4cc',
  15529. showWordLimit: false,
  15530. confirmType: 'done',
  15531. confirmHold: false,
  15532. holdKeyboard: false,
  15533. focus: false,
  15534. autoBlur: false,
  15535. disableDefaultPadding: false,
  15536. cursor: -1,
  15537. cursorSpacing: 30,
  15538. selectionStart: -1,
  15539. selectionEnd: -1,
  15540. adjustPosition: true,
  15541. inputAlign: 'left',
  15542. fontSize: '15px',
  15543. color: '#303133',
  15544. prefixIcon: '',
  15545. prefixIconStyle: '',
  15546. suffixIcon: '',
  15547. suffixIconStyle: '',
  15548. border: 'surround',
  15549. readonly: false,
  15550. shape: 'square',
  15551. formatter: null
  15552. }
  15553. };
  15554. exports.default = _default;
  15555. /***/ }),
  15556. /* 103 */
  15557. /*!***************************************************************************************!*\
  15558. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  15559. \***************************************************************************************/
  15560. /*! no static exports found */
  15561. /***/ (function(module, exports, __webpack_require__) {
  15562. "use strict";
  15563. Object.defineProperty(exports, "__esModule", {
  15564. value: true
  15565. });
  15566. exports.default = void 0;
  15567. /*
  15568. * @Author : LQ
  15569. * @Description :
  15570. * @version : 1.0
  15571. * @Date : 2021-08-20 16:44:21
  15572. * @LastAuthor : LQ
  15573. * @lastTime : 2021-08-20 17:07:49
  15574. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15575. */
  15576. var _default = {
  15577. // 键盘组件
  15578. keyboard: {
  15579. mode: 'number',
  15580. dotDisabled: false,
  15581. tooltip: true,
  15582. showTips: true,
  15583. tips: '',
  15584. showCancel: true,
  15585. showConfirm: true,
  15586. random: false,
  15587. safeAreaInsetBottom: true,
  15588. closeOnClickOverlay: true,
  15589. show: false,
  15590. overlay: true,
  15591. zIndex: 10075,
  15592. cancelText: '取消',
  15593. confirmText: '确定',
  15594. autoChange: false
  15595. }
  15596. };
  15597. exports.default = _default;
  15598. /***/ }),
  15599. /* 104 */
  15600. /*!***********************************************************************************!*\
  15601. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/line.js ***!
  15602. \***********************************************************************************/
  15603. /*! no static exports found */
  15604. /***/ (function(module, exports, __webpack_require__) {
  15605. "use strict";
  15606. Object.defineProperty(exports, "__esModule", {
  15607. value: true
  15608. });
  15609. exports.default = void 0;
  15610. /*
  15611. * @Author : LQ
  15612. * @Description :
  15613. * @version : 1.0
  15614. * @Date : 2021-08-20 16:44:21
  15615. * @LastAuthor : LQ
  15616. * @lastTime : 2021-08-20 17:04:49
  15617. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15618. */
  15619. var _default = {
  15620. // line组件
  15621. line: {
  15622. color: '#d6d7d9',
  15623. length: '100%',
  15624. direction: 'row',
  15625. hairline: true,
  15626. margin: 0,
  15627. dashed: false
  15628. }
  15629. };
  15630. exports.default = _default;
  15631. /***/ }),
  15632. /* 105 */
  15633. /*!*******************************************************************************************!*\
  15634. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15635. \*******************************************************************************************/
  15636. /*! no static exports found */
  15637. /***/ (function(module, exports, __webpack_require__) {
  15638. "use strict";
  15639. Object.defineProperty(exports, "__esModule", {
  15640. value: true
  15641. });
  15642. exports.default = void 0;
  15643. /*
  15644. * @Author : LQ
  15645. * @Description :
  15646. * @version : 1.0
  15647. * @Date : 2021-08-20 16:44:21
  15648. * @LastAuthor : LQ
  15649. * @lastTime : 2021-08-20 17:14:11
  15650. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15651. */
  15652. var _default = {
  15653. // lineProgress 组件
  15654. lineProgress: {
  15655. activeColor: '#19be6b',
  15656. inactiveColor: '#ececec',
  15657. percentage: 0,
  15658. showText: true,
  15659. height: 12
  15660. }
  15661. };
  15662. exports.default = _default;
  15663. /***/ }),
  15664. /* 106 */
  15665. /*!***********************************************************************************!*\
  15666. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/link.js ***!
  15667. \***********************************************************************************/
  15668. /*! no static exports found */
  15669. /***/ (function(module, exports, __webpack_require__) {
  15670. "use strict";
  15671. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15672. Object.defineProperty(exports, "__esModule", {
  15673. value: true
  15674. });
  15675. exports.default = void 0;
  15676. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15677. /*
  15678. * @Author : LQ
  15679. * @Description :
  15680. * @version : 1.0
  15681. * @Date : 2021-08-20 16:44:21
  15682. * @LastAuthor : LQ
  15683. * @lastTime : 2021-08-20 17:45:36
  15684. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15685. */
  15686. var color = _config.default.color;
  15687. var _default = {
  15688. // link超链接组件props参数
  15689. link: {
  15690. color: color['u-primary'],
  15691. fontSize: 15,
  15692. underLine: false,
  15693. href: '',
  15694. mpTips: '链接已复制,请在浏览器打开',
  15695. lineColor: '',
  15696. text: ''
  15697. }
  15698. };
  15699. exports.default = _default;
  15700. /***/ }),
  15701. /* 107 */
  15702. /*!***********************************************************************************!*\
  15703. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/list.js ***!
  15704. \***********************************************************************************/
  15705. /*! no static exports found */
  15706. /***/ (function(module, exports, __webpack_require__) {
  15707. "use strict";
  15708. Object.defineProperty(exports, "__esModule", {
  15709. value: true
  15710. });
  15711. exports.default = void 0;
  15712. /*
  15713. * @Author : LQ
  15714. * @Description :
  15715. * @version : 1.0
  15716. * @Date : 2021-08-20 16:44:21
  15717. * @LastAuthor : LQ
  15718. * @lastTime : 2021-08-20 17:14:53
  15719. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15720. */
  15721. var _default = {
  15722. // list 组件
  15723. list: {
  15724. showScrollbar: false,
  15725. lowerThreshold: 50,
  15726. upperThreshold: 0,
  15727. scrollTop: 0,
  15728. offsetAccuracy: 10,
  15729. enableFlex: false,
  15730. pagingEnabled: false,
  15731. scrollable: true,
  15732. scrollIntoView: '',
  15733. scrollWithAnimation: false,
  15734. enableBackToTop: false,
  15735. height: 0,
  15736. width: 0,
  15737. preLoadScreen: 1
  15738. }
  15739. };
  15740. exports.default = _default;
  15741. /***/ }),
  15742. /* 108 */
  15743. /*!***************************************************************************************!*\
  15744. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  15745. \***************************************************************************************/
  15746. /*! no static exports found */
  15747. /***/ (function(module, exports, __webpack_require__) {
  15748. "use strict";
  15749. Object.defineProperty(exports, "__esModule", {
  15750. value: true
  15751. });
  15752. exports.default = void 0;
  15753. /*
  15754. * @Author : LQ
  15755. * @Description :
  15756. * @version : 1.0
  15757. * @Date : 2021-08-20 16:44:21
  15758. * @LastAuthor : LQ
  15759. * @lastTime : 2021-08-20 17:15:40
  15760. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15761. */
  15762. var _default = {
  15763. // listItem 组件
  15764. listItem: {
  15765. anchor: ''
  15766. }
  15767. };
  15768. exports.default = _default;
  15769. /***/ }),
  15770. /* 109 */
  15771. /*!******************************************************************************************!*\
  15772. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  15773. \******************************************************************************************/
  15774. /*! no static exports found */
  15775. /***/ (function(module, exports, __webpack_require__) {
  15776. "use strict";
  15777. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15778. Object.defineProperty(exports, "__esModule", {
  15779. value: true
  15780. });
  15781. exports.default = void 0;
  15782. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15783. /*
  15784. * @Author : LQ
  15785. * @Description :
  15786. * @version : 1.0
  15787. * @Date : 2021-08-20 16:44:21
  15788. * @LastAuthor : LQ
  15789. * @lastTime : 2021-08-20 17:45:47
  15790. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15791. */
  15792. var color = _config.default.color;
  15793. var _default = {
  15794. // loading-icon加载中图标组件
  15795. loadingIcon: {
  15796. show: true,
  15797. color: color['u-tips-color'],
  15798. textColor: color['u-tips-color'],
  15799. vertical: false,
  15800. mode: 'spinner',
  15801. size: 24,
  15802. textSize: 15,
  15803. text: '',
  15804. timingFunction: 'ease-in-out',
  15805. duration: 1200,
  15806. inactiveColor: ''
  15807. }
  15808. };
  15809. exports.default = _default;
  15810. /***/ }),
  15811. /* 110 */
  15812. /*!******************************************************************************************!*\
  15813. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  15814. \******************************************************************************************/
  15815. /*! no static exports found */
  15816. /***/ (function(module, exports, __webpack_require__) {
  15817. "use strict";
  15818. Object.defineProperty(exports, "__esModule", {
  15819. value: true
  15820. });
  15821. exports.default = void 0;
  15822. /*
  15823. * @Author : LQ
  15824. * @Description :
  15825. * @version : 1.0
  15826. * @Date : 2021-08-20 16:44:21
  15827. * @LastAuthor : LQ
  15828. * @lastTime : 2021-08-20 17:00:23
  15829. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  15830. */
  15831. var _default = {
  15832. // loading-page组件
  15833. loadingPage: {
  15834. loadingText: '正在加载',
  15835. image: '',
  15836. loadingMode: 'circle',
  15837. loading: false,
  15838. bgColor: '#ffffff',
  15839. color: '#C8C8C8',
  15840. fontSize: 19,
  15841. iconSize: 28,
  15842. loadingColor: '#C8C8C8'
  15843. }
  15844. };
  15845. exports.default = _default;
  15846. /***/ }),
  15847. /* 111 */
  15848. /*!***************************************************************************************!*\
  15849. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  15850. \***************************************************************************************/
  15851. /*! no static exports found */
  15852. /***/ (function(module, exports, __webpack_require__) {
  15853. "use strict";
  15854. Object.defineProperty(exports, "__esModule", {
  15855. value: true
  15856. });
  15857. exports.default = void 0;
  15858. /*
  15859. * @Author : LQ
  15860. * @Description :
  15861. * @version : 1.0
  15862. * @Date : 2021-08-20 16:44:21
  15863. * @LastAuthor : LQ
  15864. * @lastTime : 2021-08-20 17:15:26
  15865. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  15866. */
  15867. var _default = {
  15868. // loadmore 组件
  15869. loadmore: {
  15870. status: 'loadmore',
  15871. bgColor: 'transparent',
  15872. icon: true,
  15873. fontSize: 14,
  15874. iconSize: 17,
  15875. color: '#606266',
  15876. loadingIcon: 'spinner',
  15877. loadmoreText: '加载更多',
  15878. loadingText: '正在加载...',
  15879. nomoreText: '没有更多了',
  15880. isDot: false,
  15881. iconColor: '#b7b7b7',
  15882. marginTop: 10,
  15883. marginBottom: 10,
  15884. height: 'auto',
  15885. line: false,
  15886. lineColor: '#E6E8EB',
  15887. dashed: false
  15888. }
  15889. };
  15890. exports.default = _default;
  15891. /***/ }),
  15892. /* 112 */
  15893. /*!************************************************************************************!*\
  15894. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/modal.js ***!
  15895. \************************************************************************************/
  15896. /*! no static exports found */
  15897. /***/ (function(module, exports, __webpack_require__) {
  15898. "use strict";
  15899. Object.defineProperty(exports, "__esModule", {
  15900. value: true
  15901. });
  15902. exports.default = void 0;
  15903. /*
  15904. * @Author : LQ
  15905. * @Description :
  15906. * @version : 1.0
  15907. * @Date : 2021-08-20 16:44:21
  15908. * @LastAuthor : LQ
  15909. * @lastTime : 2021-08-20 17:15:59
  15910. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  15911. */
  15912. var _default = {
  15913. // modal 组件
  15914. modal: {
  15915. show: false,
  15916. title: '',
  15917. content: '',
  15918. confirmText: '确认',
  15919. cancelText: '取消',
  15920. showConfirmButton: true,
  15921. showCancelButton: false,
  15922. confirmColor: '#2979ff',
  15923. cancelColor: '#606266',
  15924. buttonReverse: false,
  15925. zoom: true,
  15926. asyncClose: false,
  15927. closeOnClickOverlay: false,
  15928. negativeTop: 0,
  15929. width: '650rpx',
  15930. confirmButtonShape: '',
  15931. duration: 400
  15932. }
  15933. };
  15934. exports.default = _default;
  15935. /***/ }),
  15936. /* 113 */
  15937. /*!*************************************************************************************!*\
  15938. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  15939. \*************************************************************************************/
  15940. /*! no static exports found */
  15941. /***/ (function(module, exports, __webpack_require__) {
  15942. "use strict";
  15943. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15944. Object.defineProperty(exports, "__esModule", {
  15945. value: true
  15946. });
  15947. exports.default = void 0;
  15948. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 114));
  15949. /*
  15950. * @Author : LQ
  15951. * @Description :
  15952. * @version : 1.0
  15953. * @Date : 2021-08-20 16:44:21
  15954. * @LastAuthor : LQ
  15955. * @lastTime : 2021-08-20 17:16:18
  15956. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  15957. */
  15958. var _default = {
  15959. // navbar 组件
  15960. navbar: {
  15961. safeAreaInsetTop: true,
  15962. placeholder: false,
  15963. fixed: true,
  15964. border: false,
  15965. leftIcon: 'arrow-left',
  15966. leftText: '',
  15967. rightText: '',
  15968. rightIcon: '',
  15969. title: '',
  15970. bgColor: '#ffffff',
  15971. titleWidth: '400rpx',
  15972. height: '44px',
  15973. leftIconSize: 20,
  15974. leftIconColor: _color.default.mainColor,
  15975. autoBack: false,
  15976. titleStyle: ''
  15977. }
  15978. };
  15979. exports.default = _default;
  15980. /***/ }),
  15981. /* 114 */
  15982. /*!******************************************************************************!*\
  15983. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/color.js ***!
  15984. \******************************************************************************/
  15985. /*! no static exports found */
  15986. /***/ (function(module, exports, __webpack_require__) {
  15987. "use strict";
  15988. Object.defineProperty(exports, "__esModule", {
  15989. value: true
  15990. });
  15991. exports.default = void 0;
  15992. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  15993. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  15994. var color = {
  15995. primary: '#3c9cff',
  15996. info: '#909399',
  15997. default: '#909399',
  15998. warning: '#f9ae3d',
  15999. error: '#f56c6c',
  16000. success: '#5ac725',
  16001. mainColor: '#303133',
  16002. contentColor: '#606266',
  16003. tipsColor: '#909399',
  16004. lightColor: '#c0c4cc',
  16005. borderColor: '#e4e7ed'
  16006. };
  16007. var _default = color;
  16008. exports.default = _default;
  16009. /***/ }),
  16010. /* 115 */
  16011. /*!****************************************************************************************!*\
  16012. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16013. \****************************************************************************************/
  16014. /*! no static exports found */
  16015. /***/ (function(module, exports, __webpack_require__) {
  16016. "use strict";
  16017. Object.defineProperty(exports, "__esModule", {
  16018. value: true
  16019. });
  16020. exports.default = void 0;
  16021. /*
  16022. * @Author : LQ
  16023. * @Description :
  16024. * @version : 1.0
  16025. * @Date : 2021-08-20 16:44:21
  16026. * @LastAuthor : LQ
  16027. * @lastTime : 2021-08-20 17:16:39
  16028. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16029. */
  16030. var _default = {
  16031. // noNetwork
  16032. noNetwork: {
  16033. tips: '哎呀,网络信号丢失',
  16034. zIndex: '',
  16035. image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDWDn8cSjl98PgdBviu03N+rl9/WufLEwr18uDwLdevLTF1YK3xnVZ2HI1bUxrT7z5zTuXdRP78qCyeLUKYTUI25OXbm4JPO00TBj+6I7+db8ZL3ZwMOiYdG4dA1lN9HWte2iuI2NAVPapC8O/CGPR34Ip/AZIbIMo7yX8G9QMbcS09P+2b1vf5XgdrXaPfiYns9oeLLEd8D1/B7Dp0E1jGP042pXQj7RKf546cmGzp+tv1TRf6YQD35/QO3seP3xow5IfC9QqmM23naJ0ny9ysXwgq98BWc0kVhv/Nhalbqe8kd/Fr8MOSEr3zEVWrwyO3I29hl+E9LUHGf+nAXI6sGPdd8uV2YphIKnE5IyL6bLxk7cn3bdkHHefrpvJAExMZ1uBZmqeNzXtfzUzk/m/ens7LjV7Px+8d9e1579/44l0duZtge+Np5zEEw8c2pBu9na3YvtEwmrAqNE8IZvNHsep5//yjl3r/0O8yFOXbv0QCO05gP0JGIL+fjw+uj91YeRh/Dp/PtCDM7Zpfmjvjt6Xo7hW9ycmJjaYduf7Hdf/8HTGfa3rG9rYxLSWnsloPg7fijZV8oFM2Ja2a9t6EJd7bCztvHP7us4rrdD/r3/7ct9I99jEI4cOiQ3dIg2YEFYDgOUJDFj1e8TqX7cT4kImXuQr5279A4DeBEX8ayvprU4N3rovcALot/TH13T0fXDTJn0qXk4r3k9OTm4y7a6PzjjORzOOvn1kbEqbnEprPhRzwAKzwFLHk05hv6Yd6N+o3R6beG50aPSdr3qV6IJKkVp5ITIlXOCYn4Yexr0w/DO6YXymHFlR0e5r7tsM3fxgJbI6fW1ivTeT+SsYmr54cFff+5Cu5X+hb94Merp6/J/PusGvTE6724eGJ7RpSFOkKPCUZvBPBccoHBet3Rwe13rX9tw/PjXzZ5hKvr8SfhWKkeA2REAIa4GD6p0feRdWBnvxjv2PckVhVfBf4A29uG/X2i+Ui2eYn8n8NryuDr3jPfWSFV5k44UT137eshIP2K7/64cObbheqZ6lCp+Ydt8TBO7vTM5od1+/NR4SFVhoLpKKt410lnE8LTMzo3V2dLznxLkhYgQ9obiVjEDln7mVjEodfYcpw+MAsftg/7qSDbAnb97sCSb0Yei2fqOcbovVqKNnNO8HmAE9Cv3Wp+uoWjt27HpXNqH9WTKR+kBHKqEFbvo5y3N/avfu4g23R45f3WGa1k9ZicTd0zPTf/f6O7f8dT311Jp2fHzmgJlI/N70jPPe4bEZ6Kg4qw0lqlrLiNKBiLWerpTW25PUbkPXZViW62ecHz+4d8PXojTirzwEyhq8rTwYFtRjvpX/rlwJ+iSXugPbMuyKBOHo3geRJtuT7PujcmVUCuPJlhnL/9NUqvMD2eyM5sxMaIlE4n7XML907tyNjcxHQjty4sZv66Z1xEok/xNW5n4uZSf+8sT5m++vVO58wkEu5sR09pd9w/rWyET2vReujiqygrSopn/zKZN5qMeirotKeTyolm7p/+X06Wvr51ue5Gt9BISwFjiGsLl6N6SrvylXDNTK70D4mX071pwtF88w6Jd/DG/1E1u26NOV0pQL71y3/8PJVOcHMzPTWkcCH2YGOaTTaS2RTN6f1fQvvvDK1bdnbO2JZCr1SeRfn05Pa1PTU0gXJBKW+ecnzlxvCGndhFQ1NRP8bcY1/vjS9bF1V26MwHwsVKiXa3etYVw1TNhYJ3TDjQCO42jJVMcez7J+t9YyJF37ISCEtahjGjxkGDr2DJZ31D8h5vUQJL5RPkXlUMM07u3qSGidICvkzzuSlmlZb0olrK9hD9v9JCrPC196JoPMAolFg6CV+PPj54YeyWecx8Vk2v1Q0rSfhFT18LnBmzBRyNalp5qrSuq7kiAsh4SFa7oZ9M0wzI+cPHOjZPo9V1kS1z4ICGEt4lhiCvZrSa2jol7qzPXJPk6nIGbVbWfUvcr7hO9MP97ZVXpggOu6ajplYStj7l1XvbRMXbPAbp6HzSSBlkraNknrvfVCcPt2sHYi7f3pTDb47KUbYxuvKqkKpYBXKBnV869c3WgbDEixAck0FGFFfEzJzbIsO9C1TyrcymWWsLZGIHoW2rqTzdo5dXyykz0NC8l779i5vu4zwM+eHVntGP5jqVTq/6AkVc5NZ3wNH2lVxNWZNIukMSjiNd9z0+CHp5DXAdX4SAg203w8GB5IATtODHzdK8C15kEjhXvNS9rWA11dnfcMDY9prscss48RySakrOLWqODCoIKAgkuVgsS0urtD60haeV1YYVbbtjUn6/74HXvW/11huFy3PwKzT1r797Upe3jq4sib9u9Y+wxe+vh7W1N7jx49v6ZzbffnQD4/Cj1Pfjx54XiBls6GVuTUc9mQsOIO9mPQFdkIRlz4fy5JLm2ZMOqTcJaXIqpcqnixVe+rdbZ3dbc2OT0D0wZIibHSksmklslknvx+//q3PiKnXcTQae/b+LPQ3r1t0969cOL6G7o6E09qgZegdMJBpVQ1DbKCpyUt6oPKz/4NEJalCAuZFIuEVBJd+jgLh4rvAiFqUVGkhJZMWFp3Z0obGSu/d5gSnWmavuO6h+/cvYHSobgVgoAYjrb4QPMUiGtj1/79jBMkLBwiTlMASlYzTkhWCJyTrGAyMOFkst/BoYMmuIIyGJYcMXMMdNwHPhYN1qWS1t6ZLGaKZL8yzFXTr15BooLLMugHMBRNKgW+It8y9TEcJGt4rvcRFCCEVQbFdg0Swmrxkb0+cf2XOzq73kgdFieEXF2jdEUJKQH6SVWQrNjtZDKlpTPp38U58iUbthk/Ph7sN6zg/xudSGvD4xkq6otcnnjyF0XRRTflkyC0IIJE1JG0QbqGNpMNp5xFhRTcZDNoj66988SFm5vv3LX+WkGUXLYxAuXnCW3c4XbqGs9hwjv+a9lsuN+ahOJSCoLjNDAFvVUll0p1aNPp6adTweSflEszPO48oFn+4yOTmR+6enOshKyYhzWpf/jDuuf6x2aV/qNRaPG/1d0gUXWCA0uu7GhMmkqmerEc8KOVU0lMuyFQ+Ylut562YX9Sncmf7Ojo3BDZWbGLtMkiUVXSWTFNuMqWuYG530f7+/tnGFboxsfdd9mm8XdDo9O7rg6NFq0CFqZr5DWlK9qV0fZqGvZchSuPlevB2VmG/hOV4yWm3RAQwmrhEcW64qu4ykfJho52Vp3J8quBYQooqWDKADftBd6HD+5efyoKj/zR8ew/hWXY56/cnFh7a3RCTTGjuMX0SVB9qzu1qfQM+jO3dBW1g6uVSHv/qVNX10Vh4rc3AkJYLTy+WA/8ou9kJjo7bOh+DLVFZ64TEbCyBktxI5PJZj56R//Gx+NdH5vM4vuI+p8NXh9LjU1iw3EZhXc8TyPuuV9wDaaCfBjTM06N0hVWQmHBDzvSDZ5tvqYR7ZAymh8BIazmH6OKLbzv0KZvJEz3ZzEFnEolaEtV2XEaCLKadrIz//TQnk1/EU85NuH8th8Yf4j9gMZUOrNkZEVZCnsbtTU9KW18GqcKFyjh420sd2+j33pg3F8uTsLaDwEhrBYf04O7N/2t7/o/C2FoGnsIy/YGlvAwSfCvZzLOe+8oR1ZT3u/5uvHJC9dGtJlMrfqjslXVHwjpat2aLi2rjFFLjUSrFUjlO0juddXSSXx7ICCE1QbjiHO0/hofbPgwpnDTOR2V6hWNQqGUx34890noet5yaO+Gko3Y45PO7/uB/lvnrwxrWdha1absbgxo1FWtwplXqYSJY5Nn5lU3bLHQmGA/yko0plVSSjMjIITVzKNTR9sO7dv8RSeb/T9BWmMkKv4D+YzBXuljV7yxd+zfte6VeHGKrHTz4+cv38JWmyUmKzSGG5z7VndoE7kz3uPtq+Welvhwm39weVjOyaoFsBZPI4TV4gNY2Pw79mz8KyebeRIH+VEZTaX0sf27+v794TKmCxNTzr/2NOPj5wZBVjjdYSklq6jN69dyKuhqmWztivYob+RTSkPbe/xMdlMUJn77IiCE1W5jq+s4dYEO6mzsYAmvi/+CrH7LDYxPcBq4HGTFVcG1ULLT5orS1ULIkoSFI2cMHKG8obiXcteOCAhhtdmo6gaOh4EWWlkyYU9gvHswXfgV19d/7+LVkSWfBrItJJhObL/p7elQR8fUZnEV70XxPc01sM+xrzhU7toRgZIHuh07uZL6xA3LBaYB+Ar8rBsfz34YX1j+D5eu317QNGy2xPquSE4mDuXb2IujY2AgytNE67RiKFshzuwCR5s9ZSMlsK0QEMJqq+GkBKOF5yFzRoidK5BoFCeMjM/8mG+a//Xy0Li55KYLBRiTrGjwOQ1br4VMBQuKVJeQKVPxMLlvPwSEsNpsTEECmBLSgbHUpwD1YGwse59l2p+9fmuig4fiNZIowrqq/6Xeqm9Vh9JbjcOKvqFtACX7gV8kTVZvkaRoRQSEsFpx1OZoM2iKxxuHLtDcsZlgLzYZfv7m7XSv+r7fIm234XSP/8o5ktWqzqSyZr89PoXPYDTYkZvziw0NLluKayoEyq4iNVULpTF1IaDjHHZmoAW4aep9geN8fiLt998cGYdtVp7K6iqzXGJFUCAi7jdkuapsBJKcPBwgyP8YRyV7B04Q3dDbpY3jg6gupoMNla5U41BbUN9n0sr1ScKaHwEhrOYfo7paCAW0WiWknihhW/0Tabf/6tDtxpIVSIhGnz1dSXUkDL8fSHKi4/lWPId9Kp3Vxqegp8J/m9f14D6DQ/nmb281FwgkZ1Dj7bnSSFx7ICCE1R7jmO8FJJr8jCvjeNrIxFjDJBpKVaSlXhwDw384MyucBoLAGEfHI5ptO6n1YAq4FjorH9IWjUOnFlF3pj62aui3whbI33ZGQAir/UY3XCVEvzgdw/8NcSyGUhSlpVWQrFg2p39xp0JYLyIohaXxdZ2FGofG6yi85/QS32F0Asu8URgu1+2JgCjd22xcsVElPC85169Gaa1YTkRWJKpSqooBiQQzONvq9sRULKKxtzzAEJw1api2EFZjoW3K0oSwmnJY5tcoSD09HanEDztubnfO/IopyUWC6sUmZUpW5aSqkgwgK04DxxaZrFivacCaIdAuH9zaM1rSDgloOwSEsNpoSMenvU93dXb+EE5taFivKElRqd67qrNmsqIF+yjMF/i56MV2JqadYKxXMDXM6+4Wu04pf/kQEMJaPuwbWvPticwj4Il/NnTrdl7JrqaDC5wTUle1GmdWWVCw1+JotjA6PgnThsIdQrXknF8arkJi/+R355dbcrUaArU9ha3WqxXW3tHR9C5dN//T9eEJ3aGdUwP7T0V7F86Mr0VW4mF6o2NTS/ilaB2HDmb8wA2+08AuS1FNjIAQVhMPTi1NgwRkGKbxRxMz3uaJSRzVUkumOtLwo6Zc7aOkVdEhynN9NQ1cyuNqeEqD67mX9TXGyxXbJhFthYAQVosP58S0909czfqJqzdGODVqaG/IUbCWr2p0yukfp4FUtDfeir1yl8IPUGjPHFy/fqJyKolpJwSEsFp4NEfT6Z3YBvOp8MvMc0hAi9hHNQ1cBrJil5TUZxhfXsTuSdFNhoAQVpMNSD3NMTzzU1PZYAM/ProYkg3UV5rHT8lXmA7SwnwEq4FLLVkRI04HM+n0LdvzvlEPZpK2tREQwmrR8ZucCd7hePr7rw2N5PfxLUZXON1zHKz4kb0KnIttP6Njk8tyaimbwXPrsW/yq3v3bhoqaJZctjkCQlgtOMCYCnU4GedTI+NpQ32XbxH7QOmKG5nzdIWZJz8HNkKygqI9TmSL2JSiovGVn0A39c8WBcpN2yMghNWCQ4zPc0HRbr6GEs6chJFnmfl3knZO4/hmII1B6fiFG9br0s6qAeXPp2WUrhzHeXH/jr6n5pNf8rQuAkJYLTZ2kK7Wul7w6zeGx9DyUsZovOodOizosTg1TM9k1Wogpa7lIisOF+w48E/7E5B1Y/cgtdizsBKbK6c1tNioT6X9n3MDcyePOo7OoJqrC6S0+ZIYV+GSOHxvc18PJCxXG4ed13I727axqTp9yk9rX1jutkj9S4+ASFhLj/m8axwdDdbgELxfGsLpoZyqVXPVU1QugVJUV0dC27p+FaaBWWxknq6ceAljTNMiAf/BoUMbJpewWqmqSRAQCatJBqKWZpgJ731Zx9pJM4aK0hXe5vlKVFEbKFlxs3PvqpSSqpbzKztRm+gnEkktnU6/2GFMfa4wXK5XDgJCWC0y1iAR6/Z49iOjY7C5qkG6mk+3SFQGlEP8FFdnygrNFqBsn1OxP5+K5pGHbcBhqhT8fqu/v39mHkVIljZAQAirRQYx7Wj3Zj3tddQjVVJ4l50CMjHe8mqOTJCCvmoTyIrENXx7Uinbm4Gs2PZUqkObnp76i0N7N36tWl8kvn0RaGnCGhgILKPn3B3+xKVXDh8+nPseX3sOlpt13+P4uonv71WeDqLr1ampFB8S1JrulNaHc9rTMxltcpofOeWns0rTLkeIZUHRnpm5YibMf7kc9UudzYNAyyrd8ZLpWvfgQT8w+oyevXeo++bBtaEtQd9s1/ffRsV3I6eDJCp+nourgH04UZQnhIYfWm1o8xdUGCU8/E/bil89sH3dlQUVJplbHoGWJaxnXri2HTvd1nEEcCBS3z++MLi75UejQgcmJjL92ax/gNJPo6QekhVXAbdvXI3D+XQ1Bcxiu02zTAEjKFIdHTQS/S8Hd2/4YhQm/spFoCUJ6+mnL651gkwRQRmBt33gO+c3teNQYin/oG6aKX5rcKEukqqoWN+Ij5vy81v8UATDG0WGC21jlJ96K6wKPpWd8H8jChN/ZSPQcoR1+vTppJPS7iw3bIZl7n/++eFV5eJaOczX9Z2YvM1LPxWpocBHKv8qHHdMqSphGUqqahaThfj40ITBcbLnsDj6oXvu2bS4n96JVy73TYtASxHWo48GxrUx+5Cu+XY5RH3PMzLGxF0ktXLxrRoGNVPPfNtOolIrgElLGYH2wbZqcipdIFVFlDbfGhqfj9bskCaHHS/7gTt3r73Y+BqkxFZFoKUI6/C7Lu/Bl1jmlKB8PUhcHjHufuyxx/g5lbZw+BL7bX4EoiZqyS0T0uM0j1+82QSl+ua+bhxj7GjD2LicwWkLzaarigbKsmDJ7gcTmezMBw/t3ixntUfAiK8QaBmzhq8/f26j77pbaxo3w+jetPf1B5D2RE3pmzyR4/nH+Mti4Wx1dUrCHO0lSVGqskFUnakkpn6mhu086jgYHkWTW3Wbo4Tli6L5gqYHE47vfeDufVv+YflaIjU3KwItIWEdO3a9Szc0ElDNDqcLbHjmxas7a87QxAnX9ljfxcr+Mzs29ykpi1O8iJjoR/cm5o7dnUl89LRLW93dyWmVIip+Kp7pmlWqIvQ8Mga9Gslm3Efu3LX+K008HNK0ZUSgplnGMrZPGxgYsIKeXa/TA61jPu0w0+7xBx/cd3M+eZspD0wbDgWm+RXP13cODY/jWGKuGAb48jG+agNpilbqlKZoWDqDY2AyjtNUlupzYZlKpXgaxIVMNv0zd+/d+uxcaSVuZSPQ/IT13TN34QRvZW81n6HSDdMLUqmjh9tgd//Fi8OHEl3JL3Z2dh3MzGA7XU664llVWRz/QhLjNYmsmaWp/DjCjqIDdlaZTOZZ1/A+fGj7hjP5OLkQBMog0NSE9cSRszuswNhdpt31BRnazM3U9IuPHDrUuG+419eChqU+cvzqjp7u5P9KJpMPpqc51Zv9QntLkFQBEqZluVCw/7nhaP9i376+8YIouRQEyiLQtIQ1cPT8GjOw7vE8tyFtxBrb2MBXdh579FF99g0vC0nzB548ebNHT2l/aFmJj1BPBYyav9EFLaQ+jdPAVNL8/pZ13a8qiJLLOhAAjvrTRy/d0enbF+69d0tzHFhWR/vnk7Rple6mp+9uFFkRGF8LVj/08IUN8wGp2fIcPLh+4sCu9R+F3ucj0MLf4vaVVnChqYWmdaQS2jpY2vd0djh86Vqh7c3Yxm8dudTPxaW0lrn7yJEjZW0Tm7HdC2lT0xKW1xecgHE3FDWNcb7uDh6+r/96Y0prjlIO7ur7TOD5b3ayzt9ylY0Gl83qKFXZsCXrXdOlrV3djf2LBr556JOshLDmMWhPPXV6vav5O5jVxYLUhNl3iIbV8yiqpbI0bQcP85C2Xu0l3dczC0XUN4Pzb71339mFltOM+Q/0rzu5f2fvu1zH+QDOt3uZ0pbVRMRFouJK5qqeTkhVqyBdtdUmhGV5JI4cudrpd5kHiyp3tTU/8s6r+4rC2vCmaQmLWJO0Ep65INJK2tbpt75298U2HLuiLh3oX/95L+0/kHUyvwTieiUJHVEimVzy1UKeWMqv2pCoKEVFRNXT1aHawnBx80eAZj7TwcxdAc5Gi5fiaNnNT37nCk4xaV/X1IRF2B94YHt63qQVaCcfePX2K+07fMU9U7qtHev+xE/7r3cc70O+6w1gxuV0dHZiusgvJS/O7IskRXLs6KCxqj+B26t9a3uUREWi4plbQlTFYzXvu+7tB3EIUGel/L6e3TNw5NS8zYAqldss4YvzBC9C7559drAja3qvDoyg6pwCP+KBZaVOPPjazS1vMLpQKE9fuPnawDB+EqehPwzWuAuSl8LPg90WVxhJJPWQCUmPBAWTBEz1TFUGpqO3wYYvIPgr2az35a2b1/50V6f1e1NTlVcvEzB0xRekj67usu5FmS2/crvQcaol/zeeObfTSOj91dIq28PxiaOHDx9quy8LtQxhcZBqIS0Dhkl2l/3yA4e2j1Qb2JUUD1Iyz1waOQib0vsxKXsAFvH3wMB0JySwtZC+DBPTN5BOCEnhrI1BuKe9l6tIzsVCiD6E0DOabrwI2elZ09aP7N3aNxjheXvK+a1OENa0EFYEyYL9rz072Ju03ZpNQKj7Xd899cKhNrA9LASvZTY/s9GcHoK0XsrakLS8UklLxyl+/rj+/Qfu2367sJNyTS7SuZfneO7ffweBGScu3NwAqWgrTvTc5jjBZmw87tMCfRXYKQWOgula4OiBOQUZ7DZuhrAGdQXxV0zPuCaGnkv3VPGHOpPw7+QPR62OM5HhdNddGOeX2kmCbSnC4mDlSStVTFr4eLljdHV+702vWz9R66Cu5HS5h5hmHvz3QiOxwJTRo2BGgY06dm7OVhewYGAY6s75oD+ZDs4JPY9JyqSCQ7ABqftd5VFM3/j2Ja4mtsWpJQSq6ZXu5UZTKeJnsHpohiYPRqBn04nkS2+CQWW59BK2dAjwS0Y4IHDz2ERWG8Gnwm7iK9W3sFmbvrqGPzw6gW8eTmvTM07XmTPX28KYd7EQ3rjnvv1QFHbPt3zT9DcMPHd+13zzN1s+/hC2rKOo7NjeQdsxT5LEWrYjbdLw05eHtwWe9jl0542u62HZHZIVpalY/yIlP5X3MHYddLLZfy4fmYiBhNuB509vw+rG3tKY+kOwGHLi7W/cS91jS7v4s9TSnZHGLx8CICH9lXNDX+zpWfXuycnaBV2e3e567nAm4973qv0bzy1fD5qr5oEB7KXt0u7B3Loh7yhWVfypbOalh9+wr6U3mbfklLC5Hi1pDRE4ef7Wj+EEiZ+amqpvJT2bzWjJRLIPR3n9riA5i4DZg720DSIrlsrvHXSZ9p7ZGlrzSgirNcetqVp9/vz5FJTqj6JRejTdq6eBMzNpHP9s//QrF4bvrydfO6f1JrCX1mvcXlo98Kembjotr3wXwmrnp36J+pYNeh5JdqRem83O77gxkpxtW3bgOZ/g1HKJmt3U1Rw+3D+zrc89aunagnWzpq6PdxujLz388L4F78tdbtCEsJZ7BFq8/sHBoMPX/I9hyrGgnuDUUZzrnnz7yQu3HlxQQW2Ued++fZmJ1e5LoPB5k5ZpWCPXz+08du+99zrtAI0QVjuM4jL2YcIZeh+2+9wF49MFtYJSlgmHE0g/JlLWLJQPg7RmhtyXsJ18eja0tivsXhj6xy9ve/mRR5TRcG2ZmjyViN9NPkDN3Dz1FW5z9XM4i+s1ME1YcFNpUIrVLHzJzHnwjl0bn1twgW1UwPHjxxPXpztejR0HFTc+F3YXRwxdfdM9W08D0zrs4wtLaM5rkbCac1xaolWOvurhZIPIih0OdVm2haNTfqUlAFjCRnJP4HBn+iUqz6tVa2nGpTe/etsP2o2s2G8hrGqjL/FlEQC5GHghfplSUSMdvwaEA/9+4vjpa3c2stx2KIsfUek2dr+EuXNF2xEjSJx98w/tbFt7NiGsdniSl6EPp84O3W/Z1oPzXRms1GRKWdCJdeCIlJ+vlGYlh997r+70+EPH8NHJEtLCauCph+7bmj81ox1xEsJqx1Fdij4Zxi9AT2KSYBrtslgxhOD2gWOyz7AstFzx6zFHj1mGobYUYAgC9cHge3ddK5uhjQKFsNpoMJeqK6+8cm0X6noXiWUxHA8WxAdWNyQM45HFKL8dyiRpueM7jllmMGpnjO+1w9fNaxmXxiogaqlR0jQdAkeOBPjczrnOiQ6jw88ESSOA6KT7iQzOHEvavu1pZsLQg4QPP/DdZG9Xx/vWrOr+mfR03SvtNffdxleAQIgvTzjBT0w409Mpu2faufZy+vDhw5WPMa25dEnYqggIYbXqyNXY7i/jCyvdfmaVb5hdVsLp9LJGp43j1/1A7/RdvdMwPRzEboRnLVHe9vEvL3eXBOB4ZMta22H+TiqV2LJQ26u5u6Bju44Z3J7O/Lvp6cwPmBanOwQ4uNHRTWMK21bSvh1Mm642nTWCtKkH07rnTE72aOO0XZq7bIltVQSEsFp15HLthg5J/+aJE12m3tVjOPYq1/dW4cTjHnwMYhXOce8xDd3y/PJW6OpMdsTRVy4iK/rKMR/jwvz825VIHFzT3fkx13UW/dnhRy3GJyeeHEs7n1XNibUPFvY6vtGDw5vV9w0Vofn81qGhZfDhi3HX8SfQ/3HPMse9CWcCX0gel2OIFJIt+2fRH7qWRaYJG85NxldGzV4tGayFSLQ24+q9ULyu9gJfMU5ELTn6wUISTl03NHz1KzyiJLqmX657OLLdSJgoXTO7cBxyN172blier4YCvBsFdSNXV2dC35tKJrbzfPfFdjwvC/qs9MSMxxNRsSqmT6LhUDQHE+jUBE7UnATXTuLsrRn01K2l/x6+qItiR3TNG8V59KNB0DGSfNXGUXwJY2Gm+osNhpSvEBDCasIHgVLTt75/aQ0MnXpBNb2QgNYEntfr4wu/nBYpKQLtxtdwAh0SBX3VDe7nM/Ha5vf1Fb/CURS2bCTAWWuxR229qRsbQQQbUed61LfW14JVKKsTJ5sk8WUcHbtlNANyTOhgcmAGKH7p3m1FWpqtuZCu+LByVdKHVMjpKEQrBwIW9tnpXOIH+QTDSH/D9f0bmCLewDn1I4HmwtAypPDZ/oe9oXKf/aMPsWxSs/RR13FHrURiZE1gDR86tKHEdCDMKX+XCwEhrOVCvqBeHNaW6ui11/mWDtLQ1kEiWodXE4rwYgepAPssTPCMOjIdAk94TZ8pMZjch8HjDorGFUTUAwlkh64be0A9/ZCatiDZWtOyE7ClQmIdJICJFYhA+TRV4Fo5/QIHiUvrTEbkVRCxiJfsSBbfYk87OTExXxdazY5yUgiRKfpHQ1YSkONmAZY+gV4NIeVFfCXoLNA5h/Plb5LzWAyzF+IVXdNnvO/6GcsyhjC1vmWZ7s2pO3fdOqzriy9asnJxZREoerDLppDAhiIAEtCfO3F5rW0a6z1PX4/nf53nG5RqqrpieSnULEVh8cx4E7ugH78H8tG9eP/24oVezY+pkpA8b/abhPF8le75BqdsXUtaFeaTlTI2IByEoU1l8oq1mkokcZHElIRoWmpejMMCMyCvQXyy7JjjuUcgOl4tLCzCMpTHgFpcgkViX/dH/ax2Szf8m2Yqc/MN+1r7BM/C/rfCtRDWEozSkbMjq7NTY5t13dqE6dhG3wsSqlp+C9DDi0ifLrqmT1f6BgUaPjiHN0lJAGAfvpWcI4XjiHIMF6ocO/EjmMa9HeelQ1LT1PRpoce/sJwOTCQtc+kfGQp6Uxl+9JWtmL+jNEaJ0gKBgbsygR58B4sHfwV5aliVWg3vCHv6ymHcdG868IzrVsK6pnd71+/dsmXxbD3m3/W2ybn0T1/bQFe5I8euX+9ybuqbXMPbDA7ZCKV4uMOecyz+9OfmWvj9x9zEw6JW+JuOX298WhE6qtwLEV3TL1tb/AWj7sqwfqaro/sdmcyM+vBp2XzzDEzaBiQsNH+e+eeTjQ+ohwqnG0BYhfVzNYKrkOmpyauYYH8KvD8G6RPBszrC6Jq+ystl0ghzXEZjR5+O4+iZwTh+eG7Yqa5rq/3hGzzTSkXKn4YgIITVABjBP+ZzP7i8ydasrZCetuCHvIvFRs92SEdlpnCYE2LOQi12OA7RNf1yjrphHIyE9yOXPnfNMDg70DpdTf8DWDKs5rRvMVwChAWrUgh21HzllD0NrigqlxKVC7bKQuOOWeGiuI7OTkhb6T8C/Xw3xkel9cXxj6eIxiY3Hhx3X9dHsWJwDaa3l1+zd9Mt/F4tUk/ijWnP+/DBb8++LWqvnh0c7NDGta0pO7kl6zpb8AJzEUr91kYEFdeBRCt69Nm4+AsSl6jwjVGckY6VwPwUpLhLURx9xliWvxFHi/w+zB0SWCnLsVpxnoXesSI2ngp4zmRJXPgf/0IleGH51R6uwjeX5MR76qtITh7+8N9Cp4GF7Sm8Zl1s35pVXVomm/5c1vG+Wm284njHJeJq44/FjixUAld8w7uijW6+xo3MhW2S6+oIVHumqpewglJ87+LFtcFUcqur+1vxwPcZJqYPMOyhXw6GKI4+4/GwQpjCBhe+6XDIpFb06PM+np5hhS5eXzw9bLJ2pBLGv4Fe36BU4kA6IQGw8MUY6MJywVeqDs54Z69zrWdY7jI3G1ZtUiSV6zzDI3IqLLew/wu9jspl+yywrA1pEed5QceXPT3jBb/DLrA5ua5UHZ/4eMTbFx+fwvE3DJO8fANrjlctL7giJhRx9MrfR89R+VgJ1Y6currONuwd0FNsxwtV02mPlWGLy1TxlPHf6Hh8PH9xesvw9yRM+5PIRT2ZIgVKKZxWUY/PT8aTFPji0i3m4Ed1hDWV/7uY9bNGtiGqAyorJRWSqCgdkrQiR5KddrwPlsq8xfhG6efvx8dvtiQczDdmmPaldDBxSVYeZ3GJXxUMWzxq5d4fPz7Ym7X1HTAL2A7NqtJHEQ3qtCPjw3LoxB/v+OMZ5VVzR5aHWRuErYA+y4uu6fM+Xl9J/lh7bFvbY+vmv0bWos9tsXAWSLIiaSnyApHxJz6SbFSFuXTw8i86r5vVRW1m+6IHmUREAuI0lcREP5q2ztWPrO9/YK54xsXHI56+cePvj3qBfimZNS+J5FWMcrjptThsRd4dPX9+DcwEd5iQphwozfkCwJKaLv9ewHYKeicfSudwShcnJDBBOD3MTwGRO0cqLIj73jQTaejDBYaPHTBgJ/i5+HyYijd95sFhRzkzB7yL2IrCtGwezj9nOQVTUlfPwiicifnu5J0qHHd8mXHIG6ZD7JQqIk9kJK6QwAokMWRUhMaSeJ0vcfaiXNhs7PyuwpYV51Vh+EM/Pu2M9GckpyiOuZm2Wvtom+Y4me8xPbvIIujzPu6Wbvyt1ejL3U7Sv/v754ZHsORwaX3KGdwiJhO5pzY+Mivk/urVq52jTnIXlEc78LKu8qAMx/G8kHhyOicosz0ovM3IrIDKb15HSvDoOoqv+hMLYCOWI8ash0vmufryZVcqLz4u8fym3ov1xT/EVp4UDUTn4/iS0xW+sZTMojASmLqGp64iH4FRXJQ2TKj+lv7JVRTVxwQkm9APyaboGnGMzSVR6VR87ipsVT645ovOzi5tamb6zzB1/nqzjz+s9YetwLioZW5C8jq08K9+1IxS8yQsfF6ap1WL2BK8VOaJc6NbPcPrx7wJ++hmHQUPvOaQgMJ3ETtVlERDP0wVsQ19uPgcLQyt/Dc+p4jlL6k/1xa2qVyh5ApEzEoErm/DsPOTXV3de6anq36roFyRdYWVbVSshHJEMt98saIXfIu9koplYZL6m/hUz7kS/Jt0/PE8+Jj6X/Y6k+fv2tA1BKIvB/OC8WnGAmp5dpqx3XW36fjgYK/upXbhFd+BrRlqn16MfkrspkoC4hnirYjbUVWzs4rHx8uL3cerjwt0TA4RcBcsuX8Rn97q54okVsCKJJ9YkSvy1gJR4aOtnAr6OJP+L13d+BKBKMEzHhAfgDh6yzD+vqHjTDDvYpAxLqwEfVdbE9bpIEi6V27tdLP+LnzPrWS/XrRTnz5d4e79+LNY7r4kP+Z7Jv7z1LyPL0B4Tb+ci9cXLy+eJ54e8Rw//rqqcUR+HOrgYVprJbBl5E2w63oI64J7k8mUDZLGhmAXs19ucVkxP8gKQu4ptCxbMy2TW3KAGI4u1P207ztH3CDx/7bL+Cdse8h1Zy5ev7Dp8uHD7blJuy0J69TV8XW6l92Dl3cbLG6g98idbhDgdANcY1ZY9o2N4mpNr96GRf1Da3Wui0RW69F1bWslvp81LD2xDTOGu9DhQzBc7AcYfYlkAqo6A6ozqHNBYJTESGitTGShsp0qQSxT4AcoPJQw0LBlEPhBFakHDjoLvY+XgVIyg7WK77tG8n9pvpHXBbXL+OMBd7FN6KLu+uf27esbX9RHdIkLbxvCGhgYsDb3v2a7obt7YHakpKmYiqgE2ioqJbzIOszXcSov/DAzRRNehyJKvPx4+igv/ZLKEaCkoZxUFMYXE1I8f7Xyq/UHp9CkAlfbCF3NdlhS7IQguA0N2wiJYy1ktC5IISb1Okr5jSYruy2SGlYkIkKLSC3yy/WrUWGzSnjaTUX/QEhYQuNewLCdwBFKRkpOuAfr4sBnwwfDg6B0MHagORhBHNqHw5WxTwYav6lAt/42MBLfrYZXHO9w3Ftr/B0Hp0pY+tkD29ddAz5ln8NGjddSlNPyhHV8aKjbzAS7Dd3egRcvgRHJWyrHASw9Pyp+vlSxEluH0jWAGQF9VVZMpxHVRZ/xSKQU4PR5Xy0+/sLQZCFS9DN/XKtSeh5WrL2x+sMyZv+W67+vwz5eC7oDx12rm9pakNg639B68XL3Qh+2Bm94DySxHhg0daBHSQhiCbyyyMS9SDi8RhEHyYP1qD9qak0S4VGn5VYrSTRKEkKHWYYiHuQmCYb/YKYLqS+3H5LYckxJmz6qhSYJ5yNgzgtuclESpncBfN8Fj3lgJdCSGpHcGECoxrouMoHjzO+4evLLMB1VKxJV8Wyj8Q80Ix043jnTu32hlTdkh08Yn7UWcnio9Qs3pzZm0lN7LCOxIdIZxbuQ1+lAVFFxJB7aMeUIiPkiPRPjo2v6dPF4FVjHnxi/oQK0Az/bymf5uI7ayGLj6eM63nrbF5VNXzV7nv3HViQL3JAEaSV1z0iBNJIgJBCYkSKJYbdjEiSHw7a0BI5s6QBBbINUswMUsQ6E11UojZGccA9dcZDBdQY+TgyFTgkiEKYyIBvstAQzIRk8cBJ+A2j4gZFDFWAqjAp3V5IhQYYwwUJ57ByS0QINzMYK8FyrRxt3KNbXb2qG/UVNT5wDyCt6/A0boGbdqzPA4tD21SPquWihPy1FWHjQzYs3xnZkM95ePIZd8RccBx1xez/UPowp46I4+uVcLD9/8Plq0Gfy6Jp+uez5uqPyY+UtNN5DuVQc06drpv4bIDXsjtsMpdkOSC79QK4Xog3PzwF4IBNCBiIhpBSpoE8jioqWaM2KCRuOqwLXgIQItKIe0lCYD/lZjoqgGIo0+J++SsmMKA8eqQ21qHuUh2PfzQHN6vgG6vVK8GfmQhcbr3Yff+AEi3rtdCtNF8u/eIWD2ATXx4Mg0XH1Vr/hm7sDQw8PvyvTrriKWocEE0C6oM/kJRJHrAykgj6WGlq+JUifu6YfS6pu4/UVa6AgQcXKi78ApekhcWFBwMstEkTX9MvVHw+Lt2ex+4+Pg62CxgsHEwZbAdgWIJfA+ICkfDRYtyAwWWB7Ay8F8VT/KB0bOJ4Gx/CQfUKSwZGrJJs8iZHYgB0zMB+zk8hopQ8hEcEog2ERASIBAOL5fIrVIKLxXKtzKPZLgZUckvGf+/nH5HsK0+Uz3316zeAjj3D23Lwu90w0ZwNpiZ72UnvwfO/AXIFnXfLBxLOsHn6yiLqmr3oQ04LHX9hq6TFHI6txrlYWkHj98UT1lh8vryR/rIKq6aO204drdP8hRWF3itmLUw42QnW1CSTSA2IAIXkWOBYKLWw8wjVqNkEaFqjFwLQNJhWI4ZiFoiq6QX0SbsEo6HMoWVFCYprwjw6FP65BXCSoXJwiOwpnFK9A6yiWkQhRDwA9XAfpwLS/AqnqSKP7jwapquiznXFXMn6x8Yg/X/HySvLHKqiaPlZfvf0H6BloAM/v3tpzHkJwUx59Uxb4GE5Lfnt2ZGS16SX3+F5mq4llfegtwnaSR6J5EC8hPUV6IDaS6aDnoZ5DpYe6AtdgOr4pyhXLNPH0KKCo/DDP7N+S+mI6qHzbQr7AbdgW+iylWn0l5cf6E29ftfSN6L9lGl04x30tOtMHklmLhxpClW9BL4S1T+i2uNPRp+0FflD0AN9A9LHnmHGBBfJCE3QL9ALiguoJqiu+64gDzWGIIAlhzhaSDsMV/yjJi3BxyY9khP9BXBSzEMY/AFORGMmM1yyKZfmm+ZKuJf4uMHV1THEj+o+S864E7zYd/8Dliqp2MamvPbt9uw4dY/M4DnXTuMuXx/scK9iHLcbryzfKwvOJBSGNPl10Tb8WV0xYyMFymDdXXv46Kq+ueChJQI4WlSUqf8StOf5CNdXqr9afxe8/Gm6AoLAqGKyCGLSG350ACFzKM2FvaeOseEhFOsjItdQ2S6wYYmkOdl2+CfLBvmpIV55vYY2Qn6uAxAWC40zbhxSmWArcQj0TSIiSU37mx0kgVesgLereOSz8E5EWJa6Qzyh1hZEcO7xY4Ct9WLfNvwa+5xA2h6uGP6vMPxMsZ8WNf0Gf+cOCw9usq51a5+kNG9Sn1IjJsjoO0LI7EpVra/vxhPdFs7JyjYriohlbTAKGxO1C6oJEljseOLqmTxfPX66OucJK66OUNzuDjK7p05UIbGwX25I/vrj4BYrnD0uZ/Rtvfzz9fPsPIkgkbL0DZNMFRVEHFEY2ZCBTcwMLdfCsCCVN4SwpE9YG+ARNgD24IDHYSYB1yNCYDkLRFoC8oOUG40AKQx5IYyAmlQ6SF7dDoSof0hbJiApzqLs43aPc5UG+AvVQ/4T7nGQFQiJ5kdbAkmgH2Sz0FaWB4gLrad22v4nmuvPt/yzCc1+V4t0e4z93r8PYwDCvNANxLSthkai0jmCf5+jq6y6Y4SkjTfoKprgWufj9Dg3AozBmiK7pl3H8WDH3u0YfLY6u6c/HVS2vSvsxoygyTF2q/qNenEyjJ5NJPYGPRidME1M1/JYqwyoNq32Ihu4J0z5M+WA2DoqwEI9wfmEaEhQJzPNsKNOh0jJwrfRVJqbnNOrC6IGwQFzgHiKrpCuq2kE+FizrMXWE7IWCEKemg7hSiimOQchNIC3EchqpHlBO95TshQThkwF5TL9k+Mm/MZLGzVo3AlQdLzagDle1vCYd/wU9/5Z5ZcyZPnNow/J8ZHZZCGtsbKw3rdn7nIzTx42o0WfP1cPKuYJ6XPFs5q7p8zmKx5v8cdcxDeMPOR1fj+gh4X10TV/dukiC+nJPeLy8eH1hrtm/UVvpKxcrP2oL/dlcs1eQ9PCeo73wGcp+R2Xyvlp74vH19B9EkoA2CYKUlcQqJCQj6vkoyBjh/IurcJiy4Zxy2FMptRBO7sK3kClR0UYUZAX+wMqfC1ICiYHMYBsKSQsSFKaAUEqZLoiK00ASFsgpN0UEUWE6yOkiiArE6NmUb91OWwAAEuNJREFUszCNxA0c/uBoF04W86YOarWQAYjGmHBBEIkUiXEqib025hNmInWknv6zKo77Sh3/RvcfSx5Xl4O4yr5Y7NxiuEEQFT4uvs8yrF5VvosX28LLS185vsiRHkc9YPiJtrCbJIzHyx3gJdfpl80flZWPR6qIxJghus7xjSqj4E9UNn2VvN76Csqq6XIR+48OYEeGlcAaXhLfQwxNQcgQEI9IErOOxBUuCuDLz9Arm5iyOTaYy7Jty8hAb2VCm43ZmwnwQTbgFpAWyA4SGEKhaMdgYNpngKAcpeMCAfFjYGE4yAqco3RZ0LorUqOkxVkf6AgzvFBPFbISSsOUD+WRrWijpcwbmI4Gomj4yxAIv4bPVU+q9sfxk/EP36UlfP49N3vNWr/m9CZdX/zzjDDofAoW3XHVr9NPHdB8p2+uORl/mjFLUktMbBTtkSJbpLCRxYyD5OpJps/4+DJuvq5IIgoLqfi3pLzcRuloM7QSzKImsBSWG80LVKkxkSvOkFHaCjL5QvrPN9rwvaSVtEg2ICmQCNRQkGjwnlOpNktMxdds+GxcRFrIyCmhTQMEUJjl4qwtzPbAOVC8o0DUZroGiMmBpEUfRBZ4DvRUJC4/1GOpij1ML9XU0PJdFxIZGsOpJkkOQ0YdFh5CPodKl0WfRqQkVUhTIEf1iN4GkdJU4Rx/xsJfHkpfMv4cd+IAUJb1+YdkfSU7NXp6+/bti7qquKiEdfVq0Gl2TO2DonYzAcUTCv0slCB8FuGia/q8j7iAPl30aNIPHVKq55w+00MvjFLo05WmV8H5P9XLzydVF/H0xbGl9UGfjm226B98po2u6fO+0f3H9M7SbT1h+FoS00ybSmm+5/RZHxzbwWvVHtSvNuLRR4BKl0vPtHRhWh1SESUsNBkH0qjvNiAx4MA1JDBc4yBmTPmwJArJCFM+dA1SE5XsmFIqRTzKUrZYkMio78IUkauFoW6Mcbin1GWrOR8nqOEUEUQFmuK3ZdEw6NFg92s9j3XLp0CIsAuS8VdPkcKhCZ9/KAc81x/c3NdzFjy6KHZc0YPNh7VhDg9jYnh4co9n2dvx1nLalys7Rimx2xLGigfEJBQ0Xr149FkBVb04BQiTlPAFbTiDxRGKM1pJf5AgarPKG0sQu413N07hkCANO5m0fSebtCwziW5DqMISHTRMJCDF23inYbmsauNCHq+Vn1ta5dErzKN8psP/RiIXVpAegKJQ30Y06AQSEXdAIpdL0wbTNsLpoSIeCwRJHZYBpTusIFAIlPC0iqL5AxoCcmLPQkkLdITRCc0dSFqQD1A51g4pLOXmhZCwDMO2BpH9q6ZtDoU4oKQIy5yEynFnv+mzw+0+/q3Sf5yT4aYs89zq1alLIK7wYeQANcCpgW5AOaqIARzxcudrXrMTz+cuFAxBI1Rw06eLKz3xsnDikt+Mmr9mWBlXrbySeJAlTt8MXJImXHRNv0zx2GpWZ3r0KKqzXHlRHH26+fQf+mkbg56ADjppUuihMJl7BEhGtmnj+4Phj1lEUAzjaQcgJkzcqPPmlI/yjdJV8Trf/+hbeYyP0uMS0zSVF8SEaSELxkhR6a7IC1IVHkNMBWEkCljxYQ7YXgWKrDCHw2ohJDDKSkr5Tst3TANBp7DdgkTFKSOpxYMtV2i3hXQoJjwbBo3L4oibAajdXmSbCl01PEvi6x3PetMvwfi3cv+xHpPRk8GZvo6Oq5y5FvZlvtfqQZ5v5igfH7iRdHqrn/H24McyEb6ejCUxkCwqEATi8JDNKtWRIxI6wrLj+aOyQgIqLT/KTZ+OLYnCFGHE60PdSgzIgVmcfrbt5evjYkB97VeNyv8plx/UYoChElhYgB7KtD3PAUWRpejIVNzNAjNzyDuYRqnrMF5dIx4CkTrlAJQRps2FhZIX5lqYwfFLOygTBeSmkUhDEgNvIC7MR5ML6JhozoCpn+858G1utbH4j7BRT0Z9VlZzbTyOKJCKeCjkqYbkFBJh+DXCPVcKuXKIFURlm8WBoZSFOBCYmk6i33ioT+Kw1CegEMspcFfe+M8+rRySNum/YUwm9I7TPT04NWOBDg/nwtz16xMbEp3mPswIOuI6G7wBSlynz1pQWZEIP0smIcEEWN3QsfJDn+nj9FFSPh73wilgdE2f+eOumo4pPqWI2kI/LKu4RVXLq7H/kJopRUFhnkj4joNT9KC/BlZgAIVD1I+cwASVUBgCIsF1KEQxJLpGPKHGP5LYrAs5ikREnmJ61KF4K5cG1+REVS6HC1JauGroYYcOrLWUEp6MSF0UpoZgK5hV2dgEzeNLYbMBnRQZEUPnOwGMT6GOp57Kg/0WTCMYjnsQHpDmlJFTR5IcNt/alvV1PdF5NsKcLSpGG03L6QcjnWDpeIXqgFYb//A9wGi1+fMPDeqY7nae6uvT530KKp+JebkhHJyX6Fqz33X83tCgRr1d6gXBH+XnFtEwDmEVMBfAtbK7UvHxVTb1gGLQokbFVBZMDtUJHmT+dsPxmqSRU2nkrxkWxhfbOfEVwLov4sIaonSRr1qZy6vy8xliPbn+qPjYHxSm6mJwdB357DfaVtJ/BMLeW0/ayVQSR6TA5AB7h8kwmFeRrFBUSFYkJk7GsM+F5SuiCQmFBEriCskHYcxfEM9ozBjBS/yaKD//rBzndjD3BHswAcmqwFdhOWGugCw5owwpEt9sxMlVGWQEK4GlcAOi1XAcL6eLICfdcMFmNDnH7xdO/YTCHTkxM2B6EiSPbuXmHrZO5eJy4Iu6lfo2Gu8orFfA+PM9UMjnHpBIx9v+/Q9Wm8nMfcMTE1d7u7vP4Ec6fzy1wqOGP3xI63JHjgT2/rsy/boTbMP0pe78dVUWS5wjK0VUjIqNN3kA62ZYeIcfxofXDFNFUZBTT4W6m71mWBlXrb4yWSoEYWh0jVIUdJEmzA6o18mRDN7dCplCEkK8IiP4WRAU9OO8j5wimZB3SAhKYlJEphLkJCaSEP7PEdxsfVG5UWFxP6qPPngTlvBED6IWLN8dTPmg8ocFPPRXWBdlFWqqCEmLlhAgLRtKdLaAkpQNfRUM6DUQGOUiTimNEaT7FvRVw/F6K91XG4/mHf9KPaovvJ36jzfSS1mpc6mUdhnvhZL4a0GjZsKBKK+n0+kt0AHvztCAsIzjeeAeUKVPF1l101cBWCICxcGmcPalUeHRnyguIsJYej79fFnpKxdjrKhu+spVK69Ke+OW6SXlh7Xk/8b7D5umJKY6nUiQAEmp5ZKoD5Ay8kTFzcAsJIrL+ZREYCWAaU4ubXRNP8wfpuSuGubHMwCJhSuGPCiYJIMw5GV6xkfY0Wd+WoPiBAlEhvnzNluw3SKZYTkQHIQ5J1RQDg7Lw/QQGUIdFp4wcC9KgQ/7KkxjucEHROVmc3ZaCFfEjMxUvlPvBZ0WhT1Q1zG06hQKyGPA9qEh4bPRJuO/0p//WvoPyXpa77BPr9L1mn64QiJRT0vlP3jg1oyn0/th1dnN6VOkQyh8wVRuPpLUH9GHi+sckD4vLaj43NSHLwfv8cKjbGxdgc97JUpFpIRbpovKYHTUltkpHYkyEqNYf1gWfZU+Vn+JiMZERS4qKyTAMv1hmwoItLT/aL6OL9cn8A4mknhDkR5CUuh43ExhAXjnIQVxRQ9UwnU1JM73meHISINzlY/1Ir3jwNQBtui5IpU3K2mFZbEUEhgJiHlZhkqI8rws7hPFxBHlZ5romu1CGRSv2HyQEQiLPkwefJcSk2o0mU+F8Z46KswbKd8qvRUWiq7BsuoYlF/q+Jd839p4/KNnFHhw+Fbc819r/y3dHO7qsk9D2lLPBvEq59SLXC6CYSCq1OTk5F48g+FxLyQSvvyzhFK8taaYL1ACiYdkkSOg/HVO4irmAySLlR8+yHy5wnaWysTF7YmnRxdyecMXFDcxx3KjNCUEGUtb2r4Iixwh5qebxEG58v2Hkh0ERqlLp5kClNLkngLSyF8XExrZi089SYbFm9DRg1FCbEKyoxQE8sqFkTOgTwrDVIPCP/k8qpRcGrxMEXmxnpwjUeXbhjpgA2bBNsp0HPQWOiwNOnddw5YcNIdSFyzTlUKehEbrLDxDNn7osjCXPw5FO22qgPfKHn/pf8XxxxetvSvYlX8BxBVKCdGDmPPDhz0W+Oijjxof//jHt+Hh2oko/qKqFx4l0BJQmQIwS3RNn/fxZXqGFbq4nQzimI9tKFs+S1S1KJ9XoQkEfUQwtKg98fSzefMMwmx5F28/IqK2RLjM2b54/gX0H0v6+IiDZSVgHJogfYWNzDMUpCtsUkKg4pKIUJAsnNTlkjNWzfBCPMOhi8JAiCSqPBmyMFVQ1OdctQwLywNZ5cPCpDl80D6IhjzBASQF0sUeREpSJCyE4ceSpJXbEO2612AHepaTSRn/YrtEAD3n8xV/ntv4+S96nyGRO9gccQZmEPiBK3bRi5kPHcG+v2T32n2+53bxNY8oQyWIB0SR9OmqxMeTh5lm/8azx8srEbCQNSqTpUTX+eagwCiPqiWeQAXO/olHV2tPaYUFjWCxsQJjt7MV564K6iOB2Xj1adNGa3PqDMFl4XwSSnAQCUIibqFPlwtTwbiOkoSR+JvLx3KYv9BXaSrlLyifSegQBNMFTAWhiIeFArRZnoX+8Y2EzKhbnuNlYO9wFpZXkwoH5Kmj/6qOFTz+0n8+Y4Y/2pVIcJqY35+YJ6wjEN33ZzL9kPY3hWjx6Sv+RcByLIQAZZYQJSn2C944FRF/QkvjQ31XZDcV04GVPOGl+WdJEhVGbaNPV3d7Va7ZP83U/1ACgzTjkg4gjUFvHhGWkrPAPnnBLNeFSEKKfAbzOu9yBAUdVj6cZURpZuU3XOUILioD93x2IEnxxFGc9c6M+M93cHSNZVzHquBQDeMn4x898wQ2us7pgGvAbyU8/z5e5EupVEqtJirCgp4KHxVI7sbrQIYKHyKF3+yvIvEEX8FsQNk9qXwgBpgQwNo7p9OKrukzfdzF08+WTmYrV35YF+tU8bEpYImInGtLVH+8PkzZ8iQcVpjrawXCLOHH5uo/9JmWjbXHJMQcNhVW8bOklbsumnJw7Q+cgtVK2mJxAUNNKKncp54KHuzAwnjCE01B1UIHA1A80ik/IkdIfTj6mE8MXh2sSKZhdHUd+IcDykwFLj4eMv7Fv+il75c8/xEmeHaojD+jZ4LgbsPVVvO5iutg4oSAFCCiAqVp/jrUKRU8mzVexsube05ff3tiD0Q1wkP/ojrYgeiaftiheHsjLKL4GrudTxYvb0H9h94bpzeAwCD4cAqJf5SmlBjFH5D8ChVC1Q8KyIkrjtgbE64y4lqtINJHel5Hq4q4ZdsYzsWBWaU+rkFWtFzQbiNNnWciNbT/qD4+Hitq/FdE/3mWzmvQU+W4hZZPenQuRHRNfylcvfVjpUqz0Tj6dNE1/fm4euufTx1z5am3/hr6z6lj9A9ElneKwPJ3IYEVEpqKys0YFeUhoDBP4TV/+bjVIkfqKuu8/ixC/+tqR73111V4DYnrrb+G8a+h1tkk9dY/m7MxV7XUzwdP3ApBgCYG6Co+L6/+kcB4X0g0ERFFzwXjojBc5q8ZhqOKtWEoROmLEwSWBIHowVySyqSS5kIABEYhisRFEov8SgRWGD6K9OMgq8IwBIkTBBYXASGsxcW3pUoHgfF5iIiLPv9x+03kuLxMqaqsUj1KJL4gsFgICGEtFrJtUG6OwDhtJHHhqLOl+dBAG0AnXRAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC'
  16036. }
  16037. };
  16038. exports.default = _default;
  16039. /***/ }),
  16040. /* 116 */
  16041. /*!****************************************************************************************!*\
  16042. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16043. \****************************************************************************************/
  16044. /*! no static exports found */
  16045. /***/ (function(module, exports, __webpack_require__) {
  16046. "use strict";
  16047. Object.defineProperty(exports, "__esModule", {
  16048. value: true
  16049. });
  16050. exports.default = void 0;
  16051. /*
  16052. * @Author : LQ
  16053. * @Description :
  16054. * @version : 1.0
  16055. * @Date : 2021-08-20 16:44:21
  16056. * @LastAuthor : LQ
  16057. * @lastTime : 2021-08-20 17:17:13
  16058. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16059. */
  16060. var _default = {
  16061. // noticeBar
  16062. noticeBar: {
  16063. text: function text() {
  16064. return [];
  16065. },
  16066. direction: 'row',
  16067. step: false,
  16068. icon: 'volume',
  16069. mode: '',
  16070. color: '#f9ae3d',
  16071. bgColor: '#fdf6ec',
  16072. speed: 80,
  16073. fontSize: 14,
  16074. duration: 2000,
  16075. disableTouch: true,
  16076. url: '',
  16077. linkType: 'navigateTo'
  16078. }
  16079. };
  16080. exports.default = _default;
  16081. /***/ }),
  16082. /* 117 */
  16083. /*!*************************************************************************************!*\
  16084. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/notify.js ***!
  16085. \*************************************************************************************/
  16086. /*! no static exports found */
  16087. /***/ (function(module, exports, __webpack_require__) {
  16088. "use strict";
  16089. Object.defineProperty(exports, "__esModule", {
  16090. value: true
  16091. });
  16092. exports.default = void 0;
  16093. /*
  16094. * @Author : LQ
  16095. * @Description :
  16096. * @version : 1.0
  16097. * @Date : 2021-08-20 16:44:21
  16098. * @LastAuthor : LQ
  16099. * @lastTime : 2021-08-20 17:10:21
  16100. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16101. */
  16102. var _default = {
  16103. // notify组件
  16104. notify: {
  16105. top: 0,
  16106. type: 'primary',
  16107. color: '#ffffff',
  16108. bgColor: '',
  16109. message: '',
  16110. duration: 3000,
  16111. fontSize: 15,
  16112. safeAreaInsetTop: false
  16113. }
  16114. };
  16115. exports.default = _default;
  16116. /***/ }),
  16117. /* 118 */
  16118. /*!****************************************************************************************!*\
  16119. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  16120. \****************************************************************************************/
  16121. /*! no static exports found */
  16122. /***/ (function(module, exports, __webpack_require__) {
  16123. "use strict";
  16124. Object.defineProperty(exports, "__esModule", {
  16125. value: true
  16126. });
  16127. exports.default = void 0;
  16128. /*
  16129. * @Author : LQ
  16130. * @Description :
  16131. * @version : 1.0
  16132. * @Date : 2021-08-20 16:44:21
  16133. * @LastAuthor : LQ
  16134. * @lastTime : 2021-08-20 17:11:46
  16135. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16136. */
  16137. var _default = {
  16138. // 步进器组件
  16139. numberBox: {
  16140. name: '',
  16141. value: 0,
  16142. min: 1,
  16143. max: Number.MAX_SAFE_INTEGER,
  16144. step: 1,
  16145. integer: false,
  16146. disabled: false,
  16147. disabledInput: false,
  16148. asyncChange: false,
  16149. inputWidth: 35,
  16150. showMinus: true,
  16151. showPlus: true,
  16152. decimalLength: null,
  16153. longPress: true,
  16154. color: '#323233',
  16155. buttonSize: 30,
  16156. bgColor: '#EBECEE',
  16157. cursorSpacing: 100,
  16158. disableMinus: false,
  16159. disablePlus: false,
  16160. iconStyle: ''
  16161. }
  16162. };
  16163. exports.default = _default;
  16164. /***/ }),
  16165. /* 119 */
  16166. /*!*********************************************************************************************!*\
  16167. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16168. \*********************************************************************************************/
  16169. /*! no static exports found */
  16170. /***/ (function(module, exports, __webpack_require__) {
  16171. "use strict";
  16172. Object.defineProperty(exports, "__esModule", {
  16173. value: true
  16174. });
  16175. exports.default = void 0;
  16176. /*
  16177. * @Author : LQ
  16178. * @Description :
  16179. * @version : 1.0
  16180. * @Date : 2021-08-20 16:44:21
  16181. * @LastAuthor : LQ
  16182. * @lastTime : 2021-08-20 17:08:05
  16183. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16184. */
  16185. var _default = {
  16186. // 数字键盘
  16187. numberKeyboard: {
  16188. mode: 'number',
  16189. dotDisabled: false,
  16190. random: false
  16191. }
  16192. };
  16193. exports.default = _default;
  16194. /***/ }),
  16195. /* 120 */
  16196. /*!**************************************************************************************!*\
  16197. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/overlay.js ***!
  16198. \**************************************************************************************/
  16199. /*! no static exports found */
  16200. /***/ (function(module, exports, __webpack_require__) {
  16201. "use strict";
  16202. Object.defineProperty(exports, "__esModule", {
  16203. value: true
  16204. });
  16205. exports.default = void 0;
  16206. /*
  16207. * @Author : LQ
  16208. * @Description :
  16209. * @version : 1.0
  16210. * @Date : 2021-08-20 16:44:21
  16211. * @LastAuthor : LQ
  16212. * @lastTime : 2021-08-20 17:06:50
  16213. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16214. */
  16215. var _default = {
  16216. // overlay组件
  16217. overlay: {
  16218. show: false,
  16219. zIndex: 10070,
  16220. duration: 300,
  16221. opacity: 0.5
  16222. }
  16223. };
  16224. exports.default = _default;
  16225. /***/ }),
  16226. /* 121 */
  16227. /*!************************************************************************************!*\
  16228. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/parse.js ***!
  16229. \************************************************************************************/
  16230. /*! no static exports found */
  16231. /***/ (function(module, exports, __webpack_require__) {
  16232. "use strict";
  16233. Object.defineProperty(exports, "__esModule", {
  16234. value: true
  16235. });
  16236. exports.default = void 0;
  16237. /*
  16238. * @Author : LQ
  16239. * @Description :
  16240. * @version : 1.0
  16241. * @Date : 2021-08-20 16:44:21
  16242. * @LastAuthor : LQ
  16243. * @lastTime : 2021-08-20 17:17:33
  16244. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16245. */
  16246. var _default = {
  16247. // parse
  16248. parse: {
  16249. copyLink: true,
  16250. errorImg: '',
  16251. lazyLoad: false,
  16252. loadingImg: '',
  16253. pauseVideo: true,
  16254. previewImg: true,
  16255. setTitle: true,
  16256. showImgMenu: true
  16257. }
  16258. };
  16259. exports.default = _default;
  16260. /***/ }),
  16261. /* 122 */
  16262. /*!*************************************************************************************!*\
  16263. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/picker.js ***!
  16264. \*************************************************************************************/
  16265. /*! no static exports found */
  16266. /***/ (function(module, exports, __webpack_require__) {
  16267. "use strict";
  16268. Object.defineProperty(exports, "__esModule", {
  16269. value: true
  16270. });
  16271. exports.default = void 0;
  16272. /*
  16273. * @Author : LQ
  16274. * @Description :
  16275. * @version : 1.0
  16276. * @Date : 2021-08-20 16:44:21
  16277. * @LastAuthor : LQ
  16278. * @lastTime : 2021-08-20 17:18:20
  16279. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16280. */
  16281. var _default = {
  16282. // picker
  16283. picker: {
  16284. show: false,
  16285. showToolbar: true,
  16286. title: '',
  16287. columns: function columns() {
  16288. return [];
  16289. },
  16290. loading: false,
  16291. itemHeight: 44,
  16292. cancelText: '取消',
  16293. confirmText: '确定',
  16294. cancelColor: '#909193',
  16295. confirmColor: '#3c9cff',
  16296. visibleItemCount: 5,
  16297. keyName: 'text',
  16298. closeOnClickOverlay: false,
  16299. defaultIndex: function defaultIndex() {
  16300. return [];
  16301. },
  16302. immediateChange: false
  16303. }
  16304. };
  16305. exports.default = _default;
  16306. /***/ }),
  16307. /* 123 */
  16308. /*!************************************************************************************!*\
  16309. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/popup.js ***!
  16310. \************************************************************************************/
  16311. /*! no static exports found */
  16312. /***/ (function(module, exports, __webpack_require__) {
  16313. "use strict";
  16314. Object.defineProperty(exports, "__esModule", {
  16315. value: true
  16316. });
  16317. exports.default = void 0;
  16318. /*
  16319. * @Author : LQ
  16320. * @Description :
  16321. * @version : 1.0
  16322. * @Date : 2021-08-20 16:44:21
  16323. * @LastAuthor : LQ
  16324. * @lastTime : 2021-08-20 17:06:33
  16325. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16326. */
  16327. var _default = {
  16328. // popup组件
  16329. popup: {
  16330. show: false,
  16331. overlay: true,
  16332. mode: 'bottom',
  16333. duration: 300,
  16334. closeable: false,
  16335. overlayStyle: function overlayStyle() {},
  16336. closeOnClickOverlay: true,
  16337. zIndex: 10075,
  16338. safeAreaInsetBottom: true,
  16339. safeAreaInsetTop: false,
  16340. closeIconPos: 'top-right',
  16341. round: 0,
  16342. zoom: true,
  16343. bgColor: '',
  16344. overlayOpacity: 0.5
  16345. }
  16346. };
  16347. exports.default = _default;
  16348. /***/ }),
  16349. /* 124 */
  16350. /*!************************************************************************************!*\
  16351. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/radio.js ***!
  16352. \************************************************************************************/
  16353. /*! no static exports found */
  16354. /***/ (function(module, exports, __webpack_require__) {
  16355. "use strict";
  16356. Object.defineProperty(exports, "__esModule", {
  16357. value: true
  16358. });
  16359. exports.default = void 0;
  16360. /*
  16361. * @Author : LQ
  16362. * @Description :
  16363. * @version : 1.0
  16364. * @Date : 2021-08-20 16:44:21
  16365. * @LastAuthor : LQ
  16366. * @lastTime : 2021-08-20 17:02:34
  16367. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16368. */
  16369. var _default = {
  16370. // radio组件
  16371. radio: {
  16372. name: '',
  16373. shape: '',
  16374. disabled: '',
  16375. labelDisabled: '',
  16376. activeColor: '',
  16377. inactiveColor: '',
  16378. iconSize: '',
  16379. labelSize: '',
  16380. label: '',
  16381. labelColor: '',
  16382. size: '',
  16383. iconColor: '',
  16384. placement: ''
  16385. }
  16386. };
  16387. exports.default = _default;
  16388. /***/ }),
  16389. /* 125 */
  16390. /*!*****************************************************************************************!*\
  16391. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16392. \*****************************************************************************************/
  16393. /*! no static exports found */
  16394. /***/ (function(module, exports, __webpack_require__) {
  16395. "use strict";
  16396. Object.defineProperty(exports, "__esModule", {
  16397. value: true
  16398. });
  16399. exports.default = void 0;
  16400. /*
  16401. * @Author : LQ
  16402. * @Description :
  16403. * @version : 1.0
  16404. * @Date : 2021-08-20 16:44:21
  16405. * @LastAuthor : LQ
  16406. * @lastTime : 2021-08-20 17:03:12
  16407. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16408. */
  16409. var _default = {
  16410. // radio-group组件
  16411. radioGroup: {
  16412. value: '',
  16413. disabled: false,
  16414. shape: 'circle',
  16415. activeColor: '#2979ff',
  16416. inactiveColor: '#c8c9cc',
  16417. name: '',
  16418. size: 18,
  16419. placement: 'row',
  16420. label: '',
  16421. labelColor: '#303133',
  16422. labelSize: 14,
  16423. labelDisabled: false,
  16424. iconColor: '#ffffff',
  16425. iconSize: 12,
  16426. borderBottom: false,
  16427. iconPlacement: 'left'
  16428. }
  16429. };
  16430. exports.default = _default;
  16431. /***/ }),
  16432. /* 126 */
  16433. /*!***********************************************************************************!*\
  16434. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/rate.js ***!
  16435. \***********************************************************************************/
  16436. /*! no static exports found */
  16437. /***/ (function(module, exports, __webpack_require__) {
  16438. "use strict";
  16439. Object.defineProperty(exports, "__esModule", {
  16440. value: true
  16441. });
  16442. exports.default = void 0;
  16443. /*
  16444. * @Author : LQ
  16445. * @Description :
  16446. * @version : 1.0
  16447. * @Date : 2021-08-20 16:44:21
  16448. * @LastAuthor : LQ
  16449. * @lastTime : 2021-08-20 17:05:09
  16450. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16451. */
  16452. var _default = {
  16453. // rate组件
  16454. rate: {
  16455. value: 1,
  16456. count: 5,
  16457. disabled: false,
  16458. size: 18,
  16459. inactiveColor: '#b2b2b2',
  16460. activeColor: '#FA3534',
  16461. gutter: 4,
  16462. minCount: 1,
  16463. allowHalf: false,
  16464. activeIcon: 'star-fill',
  16465. inactiveIcon: 'star',
  16466. touchable: true
  16467. }
  16468. };
  16469. exports.default = _default;
  16470. /***/ }),
  16471. /* 127 */
  16472. /*!***************************************************************************************!*\
  16473. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  16474. \***************************************************************************************/
  16475. /*! no static exports found */
  16476. /***/ (function(module, exports, __webpack_require__) {
  16477. "use strict";
  16478. Object.defineProperty(exports, "__esModule", {
  16479. value: true
  16480. });
  16481. exports.default = void 0;
  16482. /*
  16483. * @Author : LQ
  16484. * @Description :
  16485. * @version : 1.0
  16486. * @Date : 2021-08-20 16:44:21
  16487. * @LastAuthor : LQ
  16488. * @lastTime : 2021-08-20 17:18:41
  16489. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16490. */
  16491. var _default = {
  16492. // readMore
  16493. readMore: {
  16494. showHeight: 400,
  16495. toggle: false,
  16496. closeText: '展开阅读全文',
  16497. openText: '收起',
  16498. color: '#2979ff',
  16499. fontSize: 14,
  16500. textIndent: '2em',
  16501. name: ''
  16502. }
  16503. };
  16504. exports.default = _default;
  16505. /***/ }),
  16506. /* 128 */
  16507. /*!**********************************************************************************!*\
  16508. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/row.js ***!
  16509. \**********************************************************************************/
  16510. /*! no static exports found */
  16511. /***/ (function(module, exports, __webpack_require__) {
  16512. "use strict";
  16513. Object.defineProperty(exports, "__esModule", {
  16514. value: true
  16515. });
  16516. exports.default = void 0;
  16517. /*
  16518. * @Author : LQ
  16519. * @Description :
  16520. * @version : 1.0
  16521. * @Date : 2021-08-20 16:44:21
  16522. * @LastAuthor : LQ
  16523. * @lastTime : 2021-08-20 17:18:58
  16524. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16525. */
  16526. var _default = {
  16527. // row
  16528. row: {
  16529. gutter: 0,
  16530. justify: 'start',
  16531. align: 'center'
  16532. }
  16533. };
  16534. exports.default = _default;
  16535. /***/ }),
  16536. /* 129 */
  16537. /*!****************************************************************************************!*\
  16538. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16539. \****************************************************************************************/
  16540. /*! no static exports found */
  16541. /***/ (function(module, exports, __webpack_require__) {
  16542. "use strict";
  16543. Object.defineProperty(exports, "__esModule", {
  16544. value: true
  16545. });
  16546. exports.default = void 0;
  16547. /*
  16548. * @Author : LQ
  16549. * @Description :
  16550. * @version : 1.0
  16551. * @Date : 2021-08-20 16:44:21
  16552. * @LastAuthor : LQ
  16553. * @lastTime : 2021-08-20 17:19:13
  16554. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16555. */
  16556. var _default = {
  16557. // rowNotice
  16558. rowNotice: {
  16559. text: '',
  16560. icon: 'volume',
  16561. mode: '',
  16562. color: '#f9ae3d',
  16563. bgColor: '#fdf6ec',
  16564. fontSize: 14,
  16565. speed: 80
  16566. }
  16567. };
  16568. exports.default = _default;
  16569. /***/ }),
  16570. /* 130 */
  16571. /*!*****************************************************************************************!*\
  16572. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  16573. \*****************************************************************************************/
  16574. /*! no static exports found */
  16575. /***/ (function(module, exports, __webpack_require__) {
  16576. "use strict";
  16577. Object.defineProperty(exports, "__esModule", {
  16578. value: true
  16579. });
  16580. exports.default = void 0;
  16581. /*
  16582. * @Author : LQ
  16583. * @Description :
  16584. * @version : 1.0
  16585. * @Date : 2021-08-20 16:44:21
  16586. * @LastAuthor : LQ
  16587. * @lastTime : 2021-08-20 17:19:28
  16588. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16589. */
  16590. var _default = {
  16591. // scrollList
  16592. scrollList: {
  16593. indicatorWidth: 50,
  16594. indicatorBarWidth: 20,
  16595. indicator: true,
  16596. indicatorColor: '#f2f2f2',
  16597. indicatorActiveColor: '#3c9cff',
  16598. indicatorStyle: ''
  16599. }
  16600. };
  16601. exports.default = _default;
  16602. /***/ }),
  16603. /* 131 */
  16604. /*!*************************************************************************************!*\
  16605. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/search.js ***!
  16606. \*************************************************************************************/
  16607. /*! no static exports found */
  16608. /***/ (function(module, exports, __webpack_require__) {
  16609. "use strict";
  16610. Object.defineProperty(exports, "__esModule", {
  16611. value: true
  16612. });
  16613. exports.default = void 0;
  16614. /*
  16615. * @Author : LQ
  16616. * @Description :
  16617. * @version : 1.0
  16618. * @Date : 2021-08-20 16:44:21
  16619. * @LastAuthor : LQ
  16620. * @lastTime : 2021-08-20 17:19:45
  16621. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16622. */
  16623. var _default = {
  16624. // search
  16625. search: {
  16626. shape: 'round',
  16627. bgColor: '#f2f2f2',
  16628. placeholder: '请输入关键字',
  16629. clearabled: true,
  16630. focus: false,
  16631. showAction: true,
  16632. actionStyle: function actionStyle() {
  16633. return {};
  16634. },
  16635. actionText: '搜索',
  16636. inputAlign: 'left',
  16637. inputStyle: function inputStyle() {
  16638. return {};
  16639. },
  16640. disabled: false,
  16641. borderColor: 'transparent',
  16642. searchIconColor: '#909399',
  16643. searchIconSize: 22,
  16644. color: '#606266',
  16645. placeholderColor: '#909399',
  16646. searchIcon: 'search',
  16647. margin: '0',
  16648. animation: false,
  16649. value: '',
  16650. maxlength: '-1',
  16651. height: 32,
  16652. label: null
  16653. }
  16654. };
  16655. exports.default = _default;
  16656. /***/ }),
  16657. /* 132 */
  16658. /*!**************************************************************************************!*\
  16659. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/section.js ***!
  16660. \**************************************************************************************/
  16661. /*! no static exports found */
  16662. /***/ (function(module, exports, __webpack_require__) {
  16663. "use strict";
  16664. Object.defineProperty(exports, "__esModule", {
  16665. value: true
  16666. });
  16667. exports.default = void 0;
  16668. /*
  16669. * @Author : LQ
  16670. * @Description :
  16671. * @version : 1.0
  16672. * @Date : 2021-08-20 16:44:21
  16673. * @LastAuthor : LQ
  16674. * @lastTime : 2021-08-20 17:07:33
  16675. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16676. */
  16677. var _default = {
  16678. // u-section组件
  16679. section: {
  16680. title: '',
  16681. subTitle: '更多',
  16682. right: true,
  16683. fontSize: 15,
  16684. bold: true,
  16685. color: '#303133',
  16686. subColor: '#909399',
  16687. showLine: true,
  16688. lineColor: '',
  16689. arrow: true
  16690. }
  16691. };
  16692. exports.default = _default;
  16693. /***/ }),
  16694. /* 133 */
  16695. /*!***************************************************************************************!*\
  16696. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  16697. \***************************************************************************************/
  16698. /*! no static exports found */
  16699. /***/ (function(module, exports, __webpack_require__) {
  16700. "use strict";
  16701. Object.defineProperty(exports, "__esModule", {
  16702. value: true
  16703. });
  16704. exports.default = void 0;
  16705. /*
  16706. * @Author : LQ
  16707. * @Description :
  16708. * @version : 1.0
  16709. * @Date : 2021-08-20 16:44:21
  16710. * @LastAuthor : LQ
  16711. * @lastTime : 2021-08-20 17:20:14
  16712. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16713. */
  16714. var _default = {
  16715. // skeleton
  16716. skeleton: {
  16717. loading: true,
  16718. animate: true,
  16719. rows: 0,
  16720. rowsWidth: '100%',
  16721. rowsHeight: 18,
  16722. title: true,
  16723. titleWidth: '50%',
  16724. titleHeight: 18,
  16725. avatar: false,
  16726. avatarSize: 32,
  16727. avatarShape: 'circle'
  16728. }
  16729. };
  16730. exports.default = _default;
  16731. /***/ }),
  16732. /* 134 */
  16733. /*!*************************************************************************************!*\
  16734. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/slider.js ***!
  16735. \*************************************************************************************/
  16736. /*! no static exports found */
  16737. /***/ (function(module, exports, __webpack_require__) {
  16738. "use strict";
  16739. Object.defineProperty(exports, "__esModule", {
  16740. value: true
  16741. });
  16742. exports.default = void 0;
  16743. /*
  16744. * @Author : LQ
  16745. * @Description :
  16746. * @version : 1.0
  16747. * @Date : 2021-08-20 16:44:21
  16748. * @LastAuthor : LQ
  16749. * @lastTime : 2021-08-20 17:08:25
  16750. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16751. */
  16752. var _default = {
  16753. // slider组件
  16754. slider: {
  16755. value: 0,
  16756. blockSize: 18,
  16757. min: 0,
  16758. max: 100,
  16759. step: 1,
  16760. activeColor: '#2979ff',
  16761. inactiveColor: '#c0c4cc',
  16762. blockColor: '#ffffff',
  16763. showValue: false,
  16764. disabled: false,
  16765. blockStyle: function blockStyle() {}
  16766. }
  16767. };
  16768. exports.default = _default;
  16769. /***/ }),
  16770. /* 135 */
  16771. /*!****************************************************************************************!*\
  16772. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  16773. \****************************************************************************************/
  16774. /*! no static exports found */
  16775. /***/ (function(module, exports, __webpack_require__) {
  16776. "use strict";
  16777. Object.defineProperty(exports, "__esModule", {
  16778. value: true
  16779. });
  16780. exports.default = void 0;
  16781. /*
  16782. * @Author : LQ
  16783. * @Description :
  16784. * @version : 1.0
  16785. * @Date : 2021-08-20 16:44:21
  16786. * @LastAuthor : LQ
  16787. * @lastTime : 2021-08-20 17:20:39
  16788. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16789. */
  16790. var _default = {
  16791. // statusBar
  16792. statusBar: {
  16793. bgColor: 'transparent'
  16794. }
  16795. };
  16796. exports.default = _default;
  16797. /***/ }),
  16798. /* 136 */
  16799. /*!************************************************************************************!*\
  16800. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/steps.js ***!
  16801. \************************************************************************************/
  16802. /*! no static exports found */
  16803. /***/ (function(module, exports, __webpack_require__) {
  16804. "use strict";
  16805. Object.defineProperty(exports, "__esModule", {
  16806. value: true
  16807. });
  16808. exports.default = void 0;
  16809. /*
  16810. * @Author : LQ
  16811. * @Description :
  16812. * @version : 1.0
  16813. * @Date : 2021-08-20 16:44:21
  16814. * @LastAuthor : LQ
  16815. * @lastTime : 2021-08-20 17:12:37
  16816. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16817. */
  16818. var _default = {
  16819. // steps组件
  16820. steps: {
  16821. direction: 'row',
  16822. current: 0,
  16823. activeColor: '#3c9cff',
  16824. inactiveColor: '#969799',
  16825. activeIcon: '',
  16826. inactiveIcon: '',
  16827. dot: false
  16828. }
  16829. };
  16830. exports.default = _default;
  16831. /***/ }),
  16832. /* 137 */
  16833. /*!****************************************************************************************!*\
  16834. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  16835. \****************************************************************************************/
  16836. /*! no static exports found */
  16837. /***/ (function(module, exports, __webpack_require__) {
  16838. "use strict";
  16839. Object.defineProperty(exports, "__esModule", {
  16840. value: true
  16841. });
  16842. exports.default = void 0;
  16843. /*
  16844. * @Author : LQ
  16845. * @Description :
  16846. * @version : 1.0
  16847. * @Date : 2021-08-20 16:44:21
  16848. * @LastAuthor : LQ
  16849. * @lastTime : 2021-08-20 17:12:55
  16850. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  16851. */
  16852. var _default = {
  16853. // steps-item组件
  16854. stepsItem: {
  16855. title: '',
  16856. desc: '',
  16857. iconSize: 17,
  16858. error: false
  16859. }
  16860. };
  16861. exports.default = _default;
  16862. /***/ }),
  16863. /* 138 */
  16864. /*!*************************************************************************************!*\
  16865. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  16866. \*************************************************************************************/
  16867. /*! no static exports found */
  16868. /***/ (function(module, exports, __webpack_require__) {
  16869. "use strict";
  16870. Object.defineProperty(exports, "__esModule", {
  16871. value: true
  16872. });
  16873. exports.default = void 0;
  16874. /*
  16875. * @Author : LQ
  16876. * @Description :
  16877. * @version : 1.0
  16878. * @Date : 2021-08-20 16:44:21
  16879. * @LastAuthor : LQ
  16880. * @lastTime : 2021-08-20 17:01:30
  16881. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  16882. */
  16883. var _default = {
  16884. // sticky组件
  16885. sticky: {
  16886. offsetTop: 0,
  16887. customNavHeight: 0,
  16888. disabled: false,
  16889. bgColor: 'transparent',
  16890. zIndex: '',
  16891. index: ''
  16892. }
  16893. };
  16894. exports.default = _default;
  16895. /***/ }),
  16896. /* 139 */
  16897. /*!*****************************************************************************************!*\
  16898. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  16899. \*****************************************************************************************/
  16900. /*! no static exports found */
  16901. /***/ (function(module, exports, __webpack_require__) {
  16902. "use strict";
  16903. Object.defineProperty(exports, "__esModule", {
  16904. value: true
  16905. });
  16906. exports.default = void 0;
  16907. /*
  16908. * @Author : LQ
  16909. * @Description :
  16910. * @version : 1.0
  16911. * @Date : 2021-08-20 16:44:21
  16912. * @LastAuthor : LQ
  16913. * @lastTime : 2021-08-20 17:12:20
  16914. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  16915. */
  16916. var _default = {
  16917. // subsection组件
  16918. subsection: {
  16919. list: [],
  16920. current: 0,
  16921. activeColor: '#3c9cff',
  16922. inactiveColor: '#303133',
  16923. mode: 'button',
  16924. fontSize: 12,
  16925. bold: true,
  16926. bgColor: '#eeeeef',
  16927. keyName: 'name'
  16928. }
  16929. };
  16930. exports.default = _default;
  16931. /***/ }),
  16932. /* 140 */
  16933. /*!******************************************************************************************!*\
  16934. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  16935. \******************************************************************************************/
  16936. /*! no static exports found */
  16937. /***/ (function(module, exports, __webpack_require__) {
  16938. "use strict";
  16939. Object.defineProperty(exports, "__esModule", {
  16940. value: true
  16941. });
  16942. exports.default = void 0;
  16943. /*
  16944. * @Author : LQ
  16945. * @Description :
  16946. * @version : 1.0
  16947. * @Date : 2021-08-20 16:44:21
  16948. * @LastAuthor : LQ
  16949. * @lastTime : 2021-08-20 17:00:42
  16950. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  16951. */
  16952. var _default = {
  16953. // swipe-action组件
  16954. swipeAction: {
  16955. autoClose: true
  16956. }
  16957. };
  16958. exports.default = _default;
  16959. /***/ }),
  16960. /* 141 */
  16961. /*!**********************************************************************************************!*\
  16962. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  16963. \**********************************************************************************************/
  16964. /*! no static exports found */
  16965. /***/ (function(module, exports, __webpack_require__) {
  16966. "use strict";
  16967. Object.defineProperty(exports, "__esModule", {
  16968. value: true
  16969. });
  16970. exports.default = void 0;
  16971. /*
  16972. * @Author : LQ
  16973. * @Description :
  16974. * @version : 1.0
  16975. * @Date : 2021-08-20 16:44:21
  16976. * @LastAuthor : LQ
  16977. * @lastTime : 2021-08-20 17:01:13
  16978. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  16979. */
  16980. var _default = {
  16981. // swipeActionItem 组件
  16982. swipeActionItem: {
  16983. show: false,
  16984. name: '',
  16985. disabled: false,
  16986. threshold: 20,
  16987. autoClose: true,
  16988. options: [],
  16989. duration: 300
  16990. }
  16991. };
  16992. exports.default = _default;
  16993. /***/ }),
  16994. /* 142 */
  16995. /*!*************************************************************************************!*\
  16996. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  16997. \*************************************************************************************/
  16998. /*! no static exports found */
  16999. /***/ (function(module, exports, __webpack_require__) {
  17000. "use strict";
  17001. Object.defineProperty(exports, "__esModule", {
  17002. value: true
  17003. });
  17004. exports.default = void 0;
  17005. /*
  17006. * @Author : LQ
  17007. * @Description :
  17008. * @version : 1.0
  17009. * @Date : 2021-08-20 16:44:21
  17010. * @LastAuthor : LQ
  17011. * @lastTime : 2021-08-20 17:21:38
  17012. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17013. */
  17014. var _default = {
  17015. // swiper 组件
  17016. swiper: {
  17017. list: function list() {
  17018. return [];
  17019. },
  17020. indicator: false,
  17021. indicatorActiveColor: '#FFFFFF',
  17022. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17023. indicatorStyle: '',
  17024. indicatorMode: 'line',
  17025. autoplay: true,
  17026. current: 0,
  17027. currentItemId: '',
  17028. interval: 3000,
  17029. duration: 300,
  17030. circular: false,
  17031. previousMargin: 0,
  17032. nextMargin: 0,
  17033. acceleration: false,
  17034. displayMultipleItems: 1,
  17035. easingFunction: 'default',
  17036. keyName: 'url',
  17037. imgMode: 'aspectFill',
  17038. height: 130,
  17039. bgColor: '#f3f4f6',
  17040. radius: 4,
  17041. loading: false,
  17042. showTitle: false
  17043. }
  17044. };
  17045. exports.default = _default;
  17046. /***/ }),
  17047. /* 143 */
  17048. /*!***********************************************************************************************!*\
  17049. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17050. \***********************************************************************************************/
  17051. /*! no static exports found */
  17052. /***/ (function(module, exports, __webpack_require__) {
  17053. "use strict";
  17054. Object.defineProperty(exports, "__esModule", {
  17055. value: true
  17056. });
  17057. exports.default = void 0;
  17058. /*
  17059. * @Author : LQ
  17060. * @Description :
  17061. * @version : 1.0
  17062. * @Date : 2021-08-20 16:44:21
  17063. * @LastAuthor : LQ
  17064. * @lastTime : 2021-08-20 17:22:07
  17065. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17066. */
  17067. var _default = {
  17068. // swiperIndicator 组件
  17069. swiperIndicator: {
  17070. length: 0,
  17071. current: 0,
  17072. indicatorActiveColor: '',
  17073. indicatorInactiveColor: '',
  17074. indicatorMode: 'line'
  17075. }
  17076. };
  17077. exports.default = _default;
  17078. /***/ }),
  17079. /* 144 */
  17080. /*!*************************************************************************************!*\
  17081. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/switch.js ***!
  17082. \*************************************************************************************/
  17083. /*! no static exports found */
  17084. /***/ (function(module, exports, __webpack_require__) {
  17085. "use strict";
  17086. Object.defineProperty(exports, "__esModule", {
  17087. value: true
  17088. });
  17089. exports.default = void 0;
  17090. /*
  17091. * @Author : LQ
  17092. * @Description :
  17093. * @version : 1.0
  17094. * @Date : 2021-08-20 16:44:21
  17095. * @LastAuthor : LQ
  17096. * @lastTime : 2021-08-20 17:22:24
  17097. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17098. */
  17099. var _default = {
  17100. // switch
  17101. switch: {
  17102. loading: false,
  17103. disabled: false,
  17104. size: 25,
  17105. activeColor: '#2979ff',
  17106. inactiveColor: '#ffffff',
  17107. value: false,
  17108. activeValue: true,
  17109. inactiveValue: false,
  17110. asyncChange: false,
  17111. space: 0
  17112. }
  17113. };
  17114. exports.default = _default;
  17115. /***/ }),
  17116. /* 145 */
  17117. /*!*************************************************************************************!*\
  17118. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  17119. \*************************************************************************************/
  17120. /*! no static exports found */
  17121. /***/ (function(module, exports, __webpack_require__) {
  17122. "use strict";
  17123. Object.defineProperty(exports, "__esModule", {
  17124. value: true
  17125. });
  17126. exports.default = void 0;
  17127. /*
  17128. * @Author : LQ
  17129. * @Description :
  17130. * @version : 1.0
  17131. * @Date : 2021-08-20 16:44:21
  17132. * @LastAuthor : LQ
  17133. * @lastTime : 2021-08-20 17:22:40
  17134. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17135. */
  17136. var _default = {
  17137. // tabbar
  17138. tabbar: {
  17139. value: null,
  17140. safeAreaInsetBottom: true,
  17141. border: true,
  17142. zIndex: 1,
  17143. activeColor: '#1989fa',
  17144. inactiveColor: '#7d7e80',
  17145. fixed: true,
  17146. placeholder: true
  17147. }
  17148. };
  17149. exports.default = _default;
  17150. /***/ }),
  17151. /* 146 */
  17152. /*!*****************************************************************************************!*\
  17153. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17154. \*****************************************************************************************/
  17155. /*! no static exports found */
  17156. /***/ (function(module, exports, __webpack_require__) {
  17157. "use strict";
  17158. Object.defineProperty(exports, "__esModule", {
  17159. value: true
  17160. });
  17161. exports.default = void 0;
  17162. /*
  17163. * @Author : LQ
  17164. * @Description :
  17165. * @version : 1.0
  17166. * @Date : 2021-08-20 16:44:21
  17167. * @LastAuthor : LQ
  17168. * @lastTime : 2021-08-20 17:22:55
  17169. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17170. */
  17171. var _default = {
  17172. //
  17173. tabbarItem: {
  17174. name: null,
  17175. icon: '',
  17176. badge: null,
  17177. dot: false,
  17178. text: '',
  17179. badgeStyle: 'top: 6px;right:2px;'
  17180. }
  17181. };
  17182. exports.default = _default;
  17183. /***/ }),
  17184. /* 147 */
  17185. /*!***********************************************************************************!*\
  17186. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  17187. \***********************************************************************************/
  17188. /*! no static exports found */
  17189. /***/ (function(module, exports, __webpack_require__) {
  17190. "use strict";
  17191. Object.defineProperty(exports, "__esModule", {
  17192. value: true
  17193. });
  17194. exports.default = void 0;
  17195. /*
  17196. * @Author : LQ
  17197. * @Description :
  17198. * @version : 1.0
  17199. * @Date : 2021-08-20 16:44:21
  17200. * @LastAuthor : LQ
  17201. * @lastTime : 2021-08-20 17:23:14
  17202. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17203. */
  17204. var _default = {
  17205. //
  17206. tabs: {
  17207. duration: 300,
  17208. list: function list() {
  17209. return [];
  17210. },
  17211. lineColor: '#3c9cff',
  17212. activeStyle: function activeStyle() {
  17213. return {
  17214. color: '#303133'
  17215. };
  17216. },
  17217. inactiveStyle: function inactiveStyle() {
  17218. return {
  17219. color: '#606266'
  17220. };
  17221. },
  17222. lineWidth: 20,
  17223. lineHeight: 3,
  17224. lineBgSize: 'cover',
  17225. itemStyle: function itemStyle() {
  17226. return {
  17227. height: '44px'
  17228. };
  17229. },
  17230. scrollable: true,
  17231. current: 0,
  17232. keyName: 'name'
  17233. }
  17234. };
  17235. exports.default = _default;
  17236. /***/ }),
  17237. /* 148 */
  17238. /*!**********************************************************************************!*\
  17239. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/tag.js ***!
  17240. \**********************************************************************************/
  17241. /*! no static exports found */
  17242. /***/ (function(module, exports, __webpack_require__) {
  17243. "use strict";
  17244. Object.defineProperty(exports, "__esModule", {
  17245. value: true
  17246. });
  17247. exports.default = void 0;
  17248. /*
  17249. * @Author : LQ
  17250. * @Description :
  17251. * @version : 1.0
  17252. * @Date : 2021-08-20 16:44:21
  17253. * @LastAuthor : LQ
  17254. * @lastTime : 2021-08-20 17:23:37
  17255. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17256. */
  17257. var _default = {
  17258. // tag 组件
  17259. tag: {
  17260. type: 'primary',
  17261. disabled: false,
  17262. size: 'medium',
  17263. shape: 'square',
  17264. text: '',
  17265. bgColor: '',
  17266. color: '',
  17267. borderColor: '',
  17268. closeColor: '#C6C7CB',
  17269. name: '',
  17270. plainFill: false,
  17271. plain: false,
  17272. closable: false,
  17273. show: true,
  17274. icon: ''
  17275. }
  17276. };
  17277. exports.default = _default;
  17278. /***/ }),
  17279. /* 149 */
  17280. /*!***********************************************************************************!*\
  17281. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/text.js ***!
  17282. \***********************************************************************************/
  17283. /*! no static exports found */
  17284. /***/ (function(module, exports, __webpack_require__) {
  17285. "use strict";
  17286. Object.defineProperty(exports, "__esModule", {
  17287. value: true
  17288. });
  17289. exports.default = void 0;
  17290. /*
  17291. * @Author : LQ
  17292. * @Description :
  17293. * @version : 1.0
  17294. * @Date : 2021-08-20 16:44:21
  17295. * @LastAuthor : LQ
  17296. * @lastTime : 2021-08-20 17:23:58
  17297. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17298. */
  17299. var _default = {
  17300. // text 组件
  17301. text: {
  17302. type: '',
  17303. show: true,
  17304. text: '',
  17305. prefixIcon: '',
  17306. suffixIcon: '',
  17307. mode: '',
  17308. href: '',
  17309. format: '',
  17310. call: false,
  17311. openType: '',
  17312. bold: false,
  17313. block: false,
  17314. lines: '',
  17315. color: '#303133',
  17316. size: 15,
  17317. iconStyle: function iconStyle() {
  17318. return {
  17319. fontSize: '15px'
  17320. };
  17321. },
  17322. decoration: 'none',
  17323. margin: 0,
  17324. lineHeight: '',
  17325. align: 'left',
  17326. wordWrap: 'normal'
  17327. }
  17328. };
  17329. exports.default = _default;
  17330. /***/ }),
  17331. /* 150 */
  17332. /*!***************************************************************************************!*\
  17333. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  17334. \***************************************************************************************/
  17335. /*! no static exports found */
  17336. /***/ (function(module, exports, __webpack_require__) {
  17337. "use strict";
  17338. Object.defineProperty(exports, "__esModule", {
  17339. value: true
  17340. });
  17341. exports.default = void 0;
  17342. /*
  17343. * @Author : LQ
  17344. * @Description :
  17345. * @version : 1.0
  17346. * @Date : 2021-08-20 16:44:21
  17347. * @LastAuthor : LQ
  17348. * @lastTime : 2021-08-20 17:24:32
  17349. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17350. */
  17351. var _default = {
  17352. // textarea 组件
  17353. textarea: {
  17354. value: '',
  17355. placeholder: '',
  17356. placeholderClass: 'textarea-placeholder',
  17357. placeholderStyle: 'color: #c0c4cc',
  17358. height: 70,
  17359. confirmType: 'done',
  17360. disabled: false,
  17361. count: false,
  17362. focus: false,
  17363. autoHeight: false,
  17364. fixed: false,
  17365. cursorSpacing: 0,
  17366. cursor: '',
  17367. showConfirmBar: true,
  17368. selectionStart: -1,
  17369. selectionEnd: -1,
  17370. adjustPosition: true,
  17371. disableDefaultPadding: false,
  17372. holdKeyboard: false,
  17373. maxlength: 140,
  17374. border: 'surround',
  17375. formatter: null
  17376. }
  17377. };
  17378. exports.default = _default;
  17379. /***/ }),
  17380. /* 151 */
  17381. /*!************************************************************************************!*\
  17382. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/toast.js ***!
  17383. \************************************************************************************/
  17384. /*! no static exports found */
  17385. /***/ (function(module, exports, __webpack_require__) {
  17386. "use strict";
  17387. Object.defineProperty(exports, "__esModule", {
  17388. value: true
  17389. });
  17390. exports.default = void 0;
  17391. /*
  17392. * @Author : LQ
  17393. * @Description :
  17394. * @version : 1.0
  17395. * @Date : 2021-08-20 16:44:21
  17396. * @LastAuthor : LQ
  17397. * @lastTime : 2021-08-20 17:07:07
  17398. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17399. */
  17400. var _default = {
  17401. // toast组件
  17402. toast: {
  17403. zIndex: 10090,
  17404. loading: false,
  17405. text: '',
  17406. icon: '',
  17407. type: '',
  17408. loadingMode: '',
  17409. show: '',
  17410. overlay: false,
  17411. position: 'center',
  17412. params: function params() {},
  17413. duration: 2000,
  17414. isTab: false,
  17415. url: '',
  17416. callback: null,
  17417. back: false
  17418. }
  17419. };
  17420. exports.default = _default;
  17421. /***/ }),
  17422. /* 152 */
  17423. /*!**************************************************************************************!*\
  17424. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  17425. \**************************************************************************************/
  17426. /*! no static exports found */
  17427. /***/ (function(module, exports, __webpack_require__) {
  17428. "use strict";
  17429. Object.defineProperty(exports, "__esModule", {
  17430. value: true
  17431. });
  17432. exports.default = void 0;
  17433. /*
  17434. * @Author : LQ
  17435. * @Description :
  17436. * @version : 1.0
  17437. * @Date : 2021-08-20 16:44:21
  17438. * @LastAuthor : LQ
  17439. * @lastTime : 2021-08-20 17:24:55
  17440. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17441. */
  17442. var _default = {
  17443. // toolbar 组件
  17444. toolbar: {
  17445. show: true,
  17446. cancelText: '取消',
  17447. confirmText: '确认',
  17448. cancelColor: '#909193',
  17449. confirmColor: '#3c9cff',
  17450. title: ''
  17451. }
  17452. };
  17453. exports.default = _default;
  17454. /***/ }),
  17455. /* 153 */
  17456. /*!**************************************************************************************!*\
  17457. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  17458. \**************************************************************************************/
  17459. /*! no static exports found */
  17460. /***/ (function(module, exports, __webpack_require__) {
  17461. "use strict";
  17462. Object.defineProperty(exports, "__esModule", {
  17463. value: true
  17464. });
  17465. exports.default = void 0;
  17466. /*
  17467. * @Author : LQ
  17468. * @Description :
  17469. * @version : 1.0
  17470. * @Date : 2021-08-20 16:44:21
  17471. * @LastAuthor : LQ
  17472. * @lastTime : 2021-08-20 17:25:14
  17473. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17474. */
  17475. var _default = {
  17476. // tooltip 组件
  17477. tooltip: {
  17478. text: '',
  17479. copyText: '',
  17480. size: 14,
  17481. color: '#606266',
  17482. bgColor: 'transparent',
  17483. direction: 'top',
  17484. zIndex: 10071,
  17485. showCopy: true,
  17486. buttons: function buttons() {
  17487. return [];
  17488. },
  17489. overlay: true,
  17490. showToast: true
  17491. }
  17492. };
  17493. exports.default = _default;
  17494. /***/ }),
  17495. /* 154 */
  17496. /*!*****************************************************************************************!*\
  17497. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/transition.js ***!
  17498. \*****************************************************************************************/
  17499. /*! no static exports found */
  17500. /***/ (function(module, exports, __webpack_require__) {
  17501. "use strict";
  17502. Object.defineProperty(exports, "__esModule", {
  17503. value: true
  17504. });
  17505. exports.default = void 0;
  17506. /*
  17507. * @Author : LQ
  17508. * @Description :
  17509. * @version : 1.0
  17510. * @Date : 2021-08-20 16:44:21
  17511. * @LastAuthor : LQ
  17512. * @lastTime : 2021-08-20 16:59:00
  17513. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17514. */
  17515. var _default = {
  17516. // transition动画组件的props
  17517. transition: {
  17518. show: false,
  17519. mode: 'fade',
  17520. duration: '300',
  17521. timingFunction: 'ease-out'
  17522. }
  17523. };
  17524. exports.default = _default;
  17525. /***/ }),
  17526. /* 155 */
  17527. /*!*************************************************************************************!*\
  17528. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/props/upload.js ***!
  17529. \*************************************************************************************/
  17530. /*! no static exports found */
  17531. /***/ (function(module, exports, __webpack_require__) {
  17532. "use strict";
  17533. Object.defineProperty(exports, "__esModule", {
  17534. value: true
  17535. });
  17536. exports.default = void 0;
  17537. /*
  17538. * @Author : LQ
  17539. * @Description :
  17540. * @version : 1.0
  17541. * @Date : 2021-08-20 16:44:21
  17542. * @LastAuthor : LQ
  17543. * @lastTime : 2021-08-20 17:09:50
  17544. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17545. */
  17546. var _default = {
  17547. // upload组件
  17548. upload: {
  17549. accept: 'image',
  17550. capture: function capture() {
  17551. return ['album', 'camera'];
  17552. },
  17553. compressed: true,
  17554. camera: 'back',
  17555. maxDuration: 60,
  17556. uploadIcon: 'camera-fill',
  17557. uploadIconColor: '#D3D4D6',
  17558. useBeforeRead: false,
  17559. previewFullImage: true,
  17560. maxCount: 52,
  17561. disabled: false,
  17562. imageMode: 'aspectFill',
  17563. name: '',
  17564. sizeType: function sizeType() {
  17565. return ['original', 'compressed'];
  17566. },
  17567. multiple: false,
  17568. deletable: true,
  17569. maxSize: Number.MAX_VALUE,
  17570. fileList: function fileList() {
  17571. return [];
  17572. },
  17573. uploadText: '',
  17574. width: 80,
  17575. height: 80,
  17576. previewImage: true
  17577. }
  17578. };
  17579. exports.default = _default;
  17580. /***/ }),
  17581. /* 156 */
  17582. /*!*******************************************************************************!*\
  17583. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/config/zIndex.js ***!
  17584. \*******************************************************************************/
  17585. /*! no static exports found */
  17586. /***/ (function(module, exports, __webpack_require__) {
  17587. "use strict";
  17588. Object.defineProperty(exports, "__esModule", {
  17589. value: true
  17590. });
  17591. exports.default = void 0;
  17592. // uniapp在H5中各API的z-index值如下:
  17593. /**
  17594. * actionsheet: 999
  17595. * modal: 999
  17596. * navigate: 998
  17597. * tabbar: 998
  17598. * toast: 999
  17599. */
  17600. var _default = {
  17601. toast: 10090,
  17602. noNetwork: 10080,
  17603. // popup包含popup,actionsheet,keyboard,picker的值
  17604. popup: 10075,
  17605. mask: 10070,
  17606. navbar: 980,
  17607. topTips: 975,
  17608. sticky: 970,
  17609. indexListSticky: 965
  17610. };
  17611. exports.default = _default;
  17612. /***/ }),
  17613. /* 157 */
  17614. /*!***********************************************************************************!*\
  17615. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/function/platform.js ***!
  17616. \***********************************************************************************/
  17617. /*! no static exports found */
  17618. /***/ (function(module, exports, __webpack_require__) {
  17619. "use strict";
  17620. Object.defineProperty(exports, "__esModule", {
  17621. value: true
  17622. });
  17623. exports.default = void 0;
  17624. /**
  17625. * 注意:
  17626. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17627. * module.exports = {
  17628. * transpileDependencies: ['uview-v2']
  17629. * }
  17630. */
  17631. var platform = 'none';
  17632. platform = 'vue2';
  17633. platform = 'weixin';
  17634. platform = 'mp';
  17635. var _default = platform;
  17636. exports.default = _default;
  17637. /***/ }),
  17638. /* 158 */
  17639. /*!***************************************************!*\
  17640. !*** D:/2024/HBuilderProjects/xcx/store/index.js ***!
  17641. \***************************************************/
  17642. /*! no static exports found */
  17643. /***/ (function(module, exports, __webpack_require__) {
  17644. "use strict";
  17645. /* WEBPACK VAR INJECTION */(function(uni) {
  17646. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  17647. Object.defineProperty(exports, "__esModule", {
  17648. value: true
  17649. });
  17650. exports.default = void 0;
  17651. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  17652. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 159));
  17653. _vue.default.use(_vuex.default);
  17654. var lifeData = {};
  17655. try {
  17656. // 尝试获取本地是否存在lifeData变量,第一次启动APP时是不存在的
  17657. lifeData = uni.getStorageSync('lifeData');
  17658. } catch (e) {}
  17659. // 需要永久存储,且下次APP启动需要取出的,在state中的变量名
  17660. var saveStateKeys = ['userInfo', 'accessToken', 'isLogin'];
  17661. // 保存变量到本地存储中
  17662. var saveLifeData = function saveLifeData(key, value) {
  17663. // 判断变量名是否在需要存储的数组中
  17664. if (saveStateKeys.indexOf(key) != -1) {
  17665. // 获取本地存储的lifeData对象,将变量添加到对象中
  17666. var tmp = uni.getStorageSync('lifeData');
  17667. // 第一次打开APP,不存在lifeData变量,故放一个{}空对象
  17668. tmp = tmp ? tmp : {};
  17669. tmp[key] = value;
  17670. // 执行这一步后,所有需要存储的变量,都挂载在本地的lifeData对象中
  17671. uni.setStorageSync(key, value);
  17672. uni.setStorageSync('lifeData', tmp);
  17673. }
  17674. if (key == 'refreshToken') {
  17675. uni.setStorageSync('token', {
  17676. content: value,
  17677. datetime: new Date().getTime()
  17678. });
  17679. }
  17680. };
  17681. var store = new _vuex.default.Store({
  17682. // 下面这些值仅为示例,使用过程中请删除
  17683. state: {
  17684. // 如果上面从本地获取的lifeData对象下有对应的属性,就赋值给state中对应的变量
  17685. userInfo: lifeData.userInfo ? lifeData.userInfo : {
  17686. avatar: '',
  17687. nick_name: '游客',
  17688. tenant_id: '暂无'
  17689. },
  17690. accessToken: lifeData.accessToken ? lifeData.accessToken : '',
  17691. isLogin: lifeData.isLogin ? lifeData.isLogin : false,
  17692. // 如果version无需保存到本地永久存储,无需lifeData.version方式
  17693. version: '1.0.0'
  17694. },
  17695. mutations: {
  17696. $uStore: function $uStore(state, payload) {
  17697. // 判断是否多层级调用,state中为对象存在的情况,诸如user.info.score = 1
  17698. var nameArr = payload.name.split('.');
  17699. var saveKey = '';
  17700. var len = nameArr.length;
  17701. if (nameArr.length >= 2) {
  17702. var obj = state[nameArr[0]];
  17703. for (var i = 1; i < len - 1; i++) {
  17704. obj = obj[nameArr[i]];
  17705. }
  17706. obj[nameArr[len - 1]] = payload.value;
  17707. saveKey = nameArr[0];
  17708. } else {
  17709. // 单层级变量,在state就是一个普通变量的情况
  17710. state[payload.name] = payload.value;
  17711. saveKey = payload.name;
  17712. }
  17713. // 保存变量到本地,见顶部函数定义
  17714. saveLifeData(saveKey, state[saveKey]);
  17715. }
  17716. }
  17717. });
  17718. var _default = store;
  17719. exports.default = _default;
  17720. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17721. /***/ }),
  17722. /* 159 */
  17723. /*!**************************************************************************************!*\
  17724. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  17725. \**************************************************************************************/
  17726. /*! no static exports found */
  17727. /***/ (function(module, exports, __webpack_require__) {
  17728. "use strict";
  17729. /* WEBPACK VAR INJECTION */(function(global) {/*!
  17730. * vuex v3.6.2
  17731. * (c) 2021 Evan You
  17732. * @license MIT
  17733. */
  17734. function applyMixin (Vue) {
  17735. var version = Number(Vue.version.split('.')[0]);
  17736. if (version >= 2) {
  17737. Vue.mixin({ beforeCreate: vuexInit });
  17738. } else {
  17739. // override init and inject vuex init procedure
  17740. // for 1.x backwards compatibility.
  17741. var _init = Vue.prototype._init;
  17742. Vue.prototype._init = function (options) {
  17743. if ( options === void 0 ) options = {};
  17744. options.init = options.init
  17745. ? [vuexInit].concat(options.init)
  17746. : vuexInit;
  17747. _init.call(this, options);
  17748. };
  17749. }
  17750. /**
  17751. * Vuex init hook, injected into each instances init hooks list.
  17752. */
  17753. function vuexInit () {
  17754. var options = this.$options;
  17755. // store injection
  17756. if (options.store) {
  17757. this.$store = typeof options.store === 'function'
  17758. ? options.store()
  17759. : options.store;
  17760. } else if (options.parent && options.parent.$store) {
  17761. this.$store = options.parent.$store;
  17762. }
  17763. }
  17764. }
  17765. var target = typeof window !== 'undefined'
  17766. ? window
  17767. : typeof global !== 'undefined'
  17768. ? global
  17769. : {};
  17770. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  17771. function devtoolPlugin (store) {
  17772. if (!devtoolHook) { return }
  17773. store._devtoolHook = devtoolHook;
  17774. devtoolHook.emit('vuex:init', store);
  17775. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  17776. store.replaceState(targetState);
  17777. });
  17778. store.subscribe(function (mutation, state) {
  17779. devtoolHook.emit('vuex:mutation', mutation, state);
  17780. }, { prepend: true });
  17781. store.subscribeAction(function (action, state) {
  17782. devtoolHook.emit('vuex:action', action, state);
  17783. }, { prepend: true });
  17784. }
  17785. /**
  17786. * Get the first item that pass the test
  17787. * by second argument function
  17788. *
  17789. * @param {Array} list
  17790. * @param {Function} f
  17791. * @return {*}
  17792. */
  17793. function find (list, f) {
  17794. return list.filter(f)[0]
  17795. }
  17796. /**
  17797. * Deep copy the given object considering circular structure.
  17798. * This function caches all nested objects and its copies.
  17799. * If it detects circular structure, use cached copy to avoid infinite loop.
  17800. *
  17801. * @param {*} obj
  17802. * @param {Array<Object>} cache
  17803. * @return {*}
  17804. */
  17805. function deepCopy (obj, cache) {
  17806. if ( cache === void 0 ) cache = [];
  17807. // just return if obj is immutable value
  17808. if (obj === null || typeof obj !== 'object') {
  17809. return obj
  17810. }
  17811. // if obj is hit, it is in circular structure
  17812. var hit = find(cache, function (c) { return c.original === obj; });
  17813. if (hit) {
  17814. return hit.copy
  17815. }
  17816. var copy = Array.isArray(obj) ? [] : {};
  17817. // put the copy into cache at first
  17818. // because we want to refer it in recursive deepCopy
  17819. cache.push({
  17820. original: obj,
  17821. copy: copy
  17822. });
  17823. Object.keys(obj).forEach(function (key) {
  17824. copy[key] = deepCopy(obj[key], cache);
  17825. });
  17826. return copy
  17827. }
  17828. /**
  17829. * forEach for object
  17830. */
  17831. function forEachValue (obj, fn) {
  17832. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  17833. }
  17834. function isObject (obj) {
  17835. return obj !== null && typeof obj === 'object'
  17836. }
  17837. function isPromise (val) {
  17838. return val && typeof val.then === 'function'
  17839. }
  17840. function assert (condition, msg) {
  17841. if (!condition) { throw new Error(("[vuex] " + msg)) }
  17842. }
  17843. function partial (fn, arg) {
  17844. return function () {
  17845. return fn(arg)
  17846. }
  17847. }
  17848. // Base data struct for store's module, package with some attribute and method
  17849. var Module = function Module (rawModule, runtime) {
  17850. this.runtime = runtime;
  17851. // Store some children item
  17852. this._children = Object.create(null);
  17853. // Store the origin module object which passed by programmer
  17854. this._rawModule = rawModule;
  17855. var rawState = rawModule.state;
  17856. // Store the origin module's state
  17857. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  17858. };
  17859. var prototypeAccessors = { namespaced: { configurable: true } };
  17860. prototypeAccessors.namespaced.get = function () {
  17861. return !!this._rawModule.namespaced
  17862. };
  17863. Module.prototype.addChild = function addChild (key, module) {
  17864. this._children[key] = module;
  17865. };
  17866. Module.prototype.removeChild = function removeChild (key) {
  17867. delete this._children[key];
  17868. };
  17869. Module.prototype.getChild = function getChild (key) {
  17870. return this._children[key]
  17871. };
  17872. Module.prototype.hasChild = function hasChild (key) {
  17873. return key in this._children
  17874. };
  17875. Module.prototype.update = function update (rawModule) {
  17876. this._rawModule.namespaced = rawModule.namespaced;
  17877. if (rawModule.actions) {
  17878. this._rawModule.actions = rawModule.actions;
  17879. }
  17880. if (rawModule.mutations) {
  17881. this._rawModule.mutations = rawModule.mutations;
  17882. }
  17883. if (rawModule.getters) {
  17884. this._rawModule.getters = rawModule.getters;
  17885. }
  17886. };
  17887. Module.prototype.forEachChild = function forEachChild (fn) {
  17888. forEachValue(this._children, fn);
  17889. };
  17890. Module.prototype.forEachGetter = function forEachGetter (fn) {
  17891. if (this._rawModule.getters) {
  17892. forEachValue(this._rawModule.getters, fn);
  17893. }
  17894. };
  17895. Module.prototype.forEachAction = function forEachAction (fn) {
  17896. if (this._rawModule.actions) {
  17897. forEachValue(this._rawModule.actions, fn);
  17898. }
  17899. };
  17900. Module.prototype.forEachMutation = function forEachMutation (fn) {
  17901. if (this._rawModule.mutations) {
  17902. forEachValue(this._rawModule.mutations, fn);
  17903. }
  17904. };
  17905. Object.defineProperties( Module.prototype, prototypeAccessors );
  17906. var ModuleCollection = function ModuleCollection (rawRootModule) {
  17907. // register root module (Vuex.Store options)
  17908. this.register([], rawRootModule, false);
  17909. };
  17910. ModuleCollection.prototype.get = function get (path) {
  17911. return path.reduce(function (module, key) {
  17912. return module.getChild(key)
  17913. }, this.root)
  17914. };
  17915. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  17916. var module = this.root;
  17917. return path.reduce(function (namespace, key) {
  17918. module = module.getChild(key);
  17919. return namespace + (module.namespaced ? key + '/' : '')
  17920. }, '')
  17921. };
  17922. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  17923. update([], this.root, rawRootModule);
  17924. };
  17925. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  17926. var this$1 = this;
  17927. if ( runtime === void 0 ) runtime = true;
  17928. if ((true)) {
  17929. assertRawModule(path, rawModule);
  17930. }
  17931. var newModule = new Module(rawModule, runtime);
  17932. if (path.length === 0) {
  17933. this.root = newModule;
  17934. } else {
  17935. var parent = this.get(path.slice(0, -1));
  17936. parent.addChild(path[path.length - 1], newModule);
  17937. }
  17938. // register nested modules
  17939. if (rawModule.modules) {
  17940. forEachValue(rawModule.modules, function (rawChildModule, key) {
  17941. this$1.register(path.concat(key), rawChildModule, runtime);
  17942. });
  17943. }
  17944. };
  17945. ModuleCollection.prototype.unregister = function unregister (path) {
  17946. var parent = this.get(path.slice(0, -1));
  17947. var key = path[path.length - 1];
  17948. var child = parent.getChild(key);
  17949. if (!child) {
  17950. if ((true)) {
  17951. console.warn(
  17952. "[vuex] trying to unregister module '" + key + "', which is " +
  17953. "not registered"
  17954. );
  17955. }
  17956. return
  17957. }
  17958. if (!child.runtime) {
  17959. return
  17960. }
  17961. parent.removeChild(key);
  17962. };
  17963. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  17964. var parent = this.get(path.slice(0, -1));
  17965. var key = path[path.length - 1];
  17966. if (parent) {
  17967. return parent.hasChild(key)
  17968. }
  17969. return false
  17970. };
  17971. function update (path, targetModule, newModule) {
  17972. if ((true)) {
  17973. assertRawModule(path, newModule);
  17974. }
  17975. // update target module
  17976. targetModule.update(newModule);
  17977. // update nested modules
  17978. if (newModule.modules) {
  17979. for (var key in newModule.modules) {
  17980. if (!targetModule.getChild(key)) {
  17981. if ((true)) {
  17982. console.warn(
  17983. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  17984. 'manual reload is needed'
  17985. );
  17986. }
  17987. return
  17988. }
  17989. update(
  17990. path.concat(key),
  17991. targetModule.getChild(key),
  17992. newModule.modules[key]
  17993. );
  17994. }
  17995. }
  17996. }
  17997. var functionAssert = {
  17998. assert: function (value) { return typeof value === 'function'; },
  17999. expected: 'function'
  18000. };
  18001. var objectAssert = {
  18002. assert: function (value) { return typeof value === 'function' ||
  18003. (typeof value === 'object' && typeof value.handler === 'function'); },
  18004. expected: 'function or object with "handler" function'
  18005. };
  18006. var assertTypes = {
  18007. getters: functionAssert,
  18008. mutations: functionAssert,
  18009. actions: objectAssert
  18010. };
  18011. function assertRawModule (path, rawModule) {
  18012. Object.keys(assertTypes).forEach(function (key) {
  18013. if (!rawModule[key]) { return }
  18014. var assertOptions = assertTypes[key];
  18015. forEachValue(rawModule[key], function (value, type) {
  18016. assert(
  18017. assertOptions.assert(value),
  18018. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  18019. );
  18020. });
  18021. });
  18022. }
  18023. function makeAssertionMessage (path, key, type, value, expected) {
  18024. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  18025. if (path.length > 0) {
  18026. buf += " in module \"" + (path.join('.')) + "\"";
  18027. }
  18028. buf += " is " + (JSON.stringify(value)) + ".";
  18029. return buf
  18030. }
  18031. var Vue; // bind on install
  18032. var Store = function Store (options) {
  18033. var this$1 = this;
  18034. if ( options === void 0 ) options = {};
  18035. // Auto install if it is not done yet and `window` has `Vue`.
  18036. // To allow users to avoid auto-installation in some cases,
  18037. // this code should be placed here. See #731
  18038. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  18039. install(window.Vue);
  18040. }
  18041. if ((true)) {
  18042. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  18043. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  18044. assert(this instanceof Store, "store must be called with the new operator.");
  18045. }
  18046. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  18047. var strict = options.strict; if ( strict === void 0 ) strict = false;
  18048. // store internal state
  18049. this._committing = false;
  18050. this._actions = Object.create(null);
  18051. this._actionSubscribers = [];
  18052. this._mutations = Object.create(null);
  18053. this._wrappedGetters = Object.create(null);
  18054. this._modules = new ModuleCollection(options);
  18055. this._modulesNamespaceMap = Object.create(null);
  18056. this._subscribers = [];
  18057. this._watcherVM = new Vue();
  18058. this._makeLocalGettersCache = Object.create(null);
  18059. // bind commit and dispatch to self
  18060. var store = this;
  18061. var ref = this;
  18062. var dispatch = ref.dispatch;
  18063. var commit = ref.commit;
  18064. this.dispatch = function boundDispatch (type, payload) {
  18065. return dispatch.call(store, type, payload)
  18066. };
  18067. this.commit = function boundCommit (type, payload, options) {
  18068. return commit.call(store, type, payload, options)
  18069. };
  18070. // strict mode
  18071. this.strict = strict;
  18072. var state = this._modules.root.state;
  18073. // init root module.
  18074. // this also recursively registers all sub-modules
  18075. // and collects all module getters inside this._wrappedGetters
  18076. installModule(this, state, [], this._modules.root);
  18077. // initialize the store vm, which is responsible for the reactivity
  18078. // (also registers _wrappedGetters as computed properties)
  18079. resetStoreVM(this, state);
  18080. // apply plugins
  18081. plugins.forEach(function (plugin) { return plugin(this$1); });
  18082. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  18083. if (useDevtools) {
  18084. devtoolPlugin(this);
  18085. }
  18086. };
  18087. var prototypeAccessors$1 = { state: { configurable: true } };
  18088. prototypeAccessors$1.state.get = function () {
  18089. return this._vm._data.$$state
  18090. };
  18091. prototypeAccessors$1.state.set = function (v) {
  18092. if ((true)) {
  18093. assert(false, "use store.replaceState() to explicit replace store state.");
  18094. }
  18095. };
  18096. Store.prototype.commit = function commit (_type, _payload, _options) {
  18097. var this$1 = this;
  18098. // check object-style commit
  18099. var ref = unifyObjectStyle(_type, _payload, _options);
  18100. var type = ref.type;
  18101. var payload = ref.payload;
  18102. var options = ref.options;
  18103. var mutation = { type: type, payload: payload };
  18104. var entry = this._mutations[type];
  18105. if (!entry) {
  18106. if ((true)) {
  18107. console.error(("[vuex] unknown mutation type: " + type));
  18108. }
  18109. return
  18110. }
  18111. this._withCommit(function () {
  18112. entry.forEach(function commitIterator (handler) {
  18113. handler(payload);
  18114. });
  18115. });
  18116. this._subscribers
  18117. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  18118. .forEach(function (sub) { return sub(mutation, this$1.state); });
  18119. if (
  18120. ( true) &&
  18121. options && options.silent
  18122. ) {
  18123. console.warn(
  18124. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  18125. 'Use the filter functionality in the vue-devtools'
  18126. );
  18127. }
  18128. };
  18129. Store.prototype.dispatch = function dispatch (_type, _payload) {
  18130. var this$1 = this;
  18131. // check object-style dispatch
  18132. var ref = unifyObjectStyle(_type, _payload);
  18133. var type = ref.type;
  18134. var payload = ref.payload;
  18135. var action = { type: type, payload: payload };
  18136. var entry = this._actions[type];
  18137. if (!entry) {
  18138. if ((true)) {
  18139. console.error(("[vuex] unknown action type: " + type));
  18140. }
  18141. return
  18142. }
  18143. try {
  18144. this._actionSubscribers
  18145. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  18146. .filter(function (sub) { return sub.before; })
  18147. .forEach(function (sub) { return sub.before(action, this$1.state); });
  18148. } catch (e) {
  18149. if ((true)) {
  18150. console.warn("[vuex] error in before action subscribers: ");
  18151. console.error(e);
  18152. }
  18153. }
  18154. var result = entry.length > 1
  18155. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  18156. : entry[0](payload);
  18157. return new Promise(function (resolve, reject) {
  18158. result.then(function (res) {
  18159. try {
  18160. this$1._actionSubscribers
  18161. .filter(function (sub) { return sub.after; })
  18162. .forEach(function (sub) { return sub.after(action, this$1.state); });
  18163. } catch (e) {
  18164. if ((true)) {
  18165. console.warn("[vuex] error in after action subscribers: ");
  18166. console.error(e);
  18167. }
  18168. }
  18169. resolve(res);
  18170. }, function (error) {
  18171. try {
  18172. this$1._actionSubscribers
  18173. .filter(function (sub) { return sub.error; })
  18174. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  18175. } catch (e) {
  18176. if ((true)) {
  18177. console.warn("[vuex] error in error action subscribers: ");
  18178. console.error(e);
  18179. }
  18180. }
  18181. reject(error);
  18182. });
  18183. })
  18184. };
  18185. Store.prototype.subscribe = function subscribe (fn, options) {
  18186. return genericSubscribe(fn, this._subscribers, options)
  18187. };
  18188. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  18189. var subs = typeof fn === 'function' ? { before: fn } : fn;
  18190. return genericSubscribe(subs, this._actionSubscribers, options)
  18191. };
  18192. Store.prototype.watch = function watch (getter, cb, options) {
  18193. var this$1 = this;
  18194. if ((true)) {
  18195. assert(typeof getter === 'function', "store.watch only accepts a function.");
  18196. }
  18197. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  18198. };
  18199. Store.prototype.replaceState = function replaceState (state) {
  18200. var this$1 = this;
  18201. this._withCommit(function () {
  18202. this$1._vm._data.$$state = state;
  18203. });
  18204. };
  18205. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  18206. if ( options === void 0 ) options = {};
  18207. if (typeof path === 'string') { path = [path]; }
  18208. if ((true)) {
  18209. assert(Array.isArray(path), "module path must be a string or an Array.");
  18210. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  18211. }
  18212. this._modules.register(path, rawModule);
  18213. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  18214. // reset store to update getters...
  18215. resetStoreVM(this, this.state);
  18216. };
  18217. Store.prototype.unregisterModule = function unregisterModule (path) {
  18218. var this$1 = this;
  18219. if (typeof path === 'string') { path = [path]; }
  18220. if ((true)) {
  18221. assert(Array.isArray(path), "module path must be a string or an Array.");
  18222. }
  18223. this._modules.unregister(path);
  18224. this._withCommit(function () {
  18225. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  18226. Vue.delete(parentState, path[path.length - 1]);
  18227. });
  18228. resetStore(this);
  18229. };
  18230. Store.prototype.hasModule = function hasModule (path) {
  18231. if (typeof path === 'string') { path = [path]; }
  18232. if ((true)) {
  18233. assert(Array.isArray(path), "module path must be a string or an Array.");
  18234. }
  18235. return this._modules.isRegistered(path)
  18236. };
  18237. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  18238. this._modules.update(newOptions);
  18239. resetStore(this, true);
  18240. };
  18241. Store.prototype._withCommit = function _withCommit (fn) {
  18242. var committing = this._committing;
  18243. this._committing = true;
  18244. fn();
  18245. this._committing = committing;
  18246. };
  18247. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  18248. function genericSubscribe (fn, subs, options) {
  18249. if (subs.indexOf(fn) < 0) {
  18250. options && options.prepend
  18251. ? subs.unshift(fn)
  18252. : subs.push(fn);
  18253. }
  18254. return function () {
  18255. var i = subs.indexOf(fn);
  18256. if (i > -1) {
  18257. subs.splice(i, 1);
  18258. }
  18259. }
  18260. }
  18261. function resetStore (store, hot) {
  18262. store._actions = Object.create(null);
  18263. store._mutations = Object.create(null);
  18264. store._wrappedGetters = Object.create(null);
  18265. store._modulesNamespaceMap = Object.create(null);
  18266. var state = store.state;
  18267. // init all modules
  18268. installModule(store, state, [], store._modules.root, true);
  18269. // reset vm
  18270. resetStoreVM(store, state, hot);
  18271. }
  18272. function resetStoreVM (store, state, hot) {
  18273. var oldVm = store._vm;
  18274. // bind store public getters
  18275. store.getters = {};
  18276. // reset local getters cache
  18277. store._makeLocalGettersCache = Object.create(null);
  18278. var wrappedGetters = store._wrappedGetters;
  18279. var computed = {};
  18280. forEachValue(wrappedGetters, function (fn, key) {
  18281. // use computed to leverage its lazy-caching mechanism
  18282. // direct inline function use will lead to closure preserving oldVm.
  18283. // using partial to return function with only arguments preserved in closure environment.
  18284. computed[key] = partial(fn, store);
  18285. Object.defineProperty(store.getters, key, {
  18286. get: function () { return store._vm[key]; },
  18287. enumerable: true // for local getters
  18288. });
  18289. });
  18290. // use a Vue instance to store the state tree
  18291. // suppress warnings just in case the user has added
  18292. // some funky global mixins
  18293. var silent = Vue.config.silent;
  18294. Vue.config.silent = true;
  18295. store._vm = new Vue({
  18296. data: {
  18297. $$state: state
  18298. },
  18299. computed: computed
  18300. });
  18301. Vue.config.silent = silent;
  18302. // enable strict mode for new vm
  18303. if (store.strict) {
  18304. enableStrictMode(store);
  18305. }
  18306. if (oldVm) {
  18307. if (hot) {
  18308. // dispatch changes in all subscribed watchers
  18309. // to force getter re-evaluation for hot reloading.
  18310. store._withCommit(function () {
  18311. oldVm._data.$$state = null;
  18312. });
  18313. }
  18314. Vue.nextTick(function () { return oldVm.$destroy(); });
  18315. }
  18316. }
  18317. function installModule (store, rootState, path, module, hot) {
  18318. var isRoot = !path.length;
  18319. var namespace = store._modules.getNamespace(path);
  18320. // register in namespace map
  18321. if (module.namespaced) {
  18322. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  18323. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  18324. }
  18325. store._modulesNamespaceMap[namespace] = module;
  18326. }
  18327. // set state
  18328. if (!isRoot && !hot) {
  18329. var parentState = getNestedState(rootState, path.slice(0, -1));
  18330. var moduleName = path[path.length - 1];
  18331. store._withCommit(function () {
  18332. if ((true)) {
  18333. if (moduleName in parentState) {
  18334. console.warn(
  18335. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  18336. );
  18337. }
  18338. }
  18339. Vue.set(parentState, moduleName, module.state);
  18340. });
  18341. }
  18342. var local = module.context = makeLocalContext(store, namespace, path);
  18343. module.forEachMutation(function (mutation, key) {
  18344. var namespacedType = namespace + key;
  18345. registerMutation(store, namespacedType, mutation, local);
  18346. });
  18347. module.forEachAction(function (action, key) {
  18348. var type = action.root ? key : namespace + key;
  18349. var handler = action.handler || action;
  18350. registerAction(store, type, handler, local);
  18351. });
  18352. module.forEachGetter(function (getter, key) {
  18353. var namespacedType = namespace + key;
  18354. registerGetter(store, namespacedType, getter, local);
  18355. });
  18356. module.forEachChild(function (child, key) {
  18357. installModule(store, rootState, path.concat(key), child, hot);
  18358. });
  18359. }
  18360. /**
  18361. * make localized dispatch, commit, getters and state
  18362. * if there is no namespace, just use root ones
  18363. */
  18364. function makeLocalContext (store, namespace, path) {
  18365. var noNamespace = namespace === '';
  18366. var local = {
  18367. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  18368. var args = unifyObjectStyle(_type, _payload, _options);
  18369. var payload = args.payload;
  18370. var options = args.options;
  18371. var type = args.type;
  18372. if (!options || !options.root) {
  18373. type = namespace + type;
  18374. if (( true) && !store._actions[type]) {
  18375. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  18376. return
  18377. }
  18378. }
  18379. return store.dispatch(type, payload)
  18380. },
  18381. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  18382. var args = unifyObjectStyle(_type, _payload, _options);
  18383. var payload = args.payload;
  18384. var options = args.options;
  18385. var type = args.type;
  18386. if (!options || !options.root) {
  18387. type = namespace + type;
  18388. if (( true) && !store._mutations[type]) {
  18389. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  18390. return
  18391. }
  18392. }
  18393. store.commit(type, payload, options);
  18394. }
  18395. };
  18396. // getters and state object must be gotten lazily
  18397. // because they will be changed by vm update
  18398. Object.defineProperties(local, {
  18399. getters: {
  18400. get: noNamespace
  18401. ? function () { return store.getters; }
  18402. : function () { return makeLocalGetters(store, namespace); }
  18403. },
  18404. state: {
  18405. get: function () { return getNestedState(store.state, path); }
  18406. }
  18407. });
  18408. return local
  18409. }
  18410. function makeLocalGetters (store, namespace) {
  18411. if (!store._makeLocalGettersCache[namespace]) {
  18412. var gettersProxy = {};
  18413. var splitPos = namespace.length;
  18414. Object.keys(store.getters).forEach(function (type) {
  18415. // skip if the target getter is not match this namespace
  18416. if (type.slice(0, splitPos) !== namespace) { return }
  18417. // extract local getter type
  18418. var localType = type.slice(splitPos);
  18419. // Add a port to the getters proxy.
  18420. // Define as getter property because
  18421. // we do not want to evaluate the getters in this time.
  18422. Object.defineProperty(gettersProxy, localType, {
  18423. get: function () { return store.getters[type]; },
  18424. enumerable: true
  18425. });
  18426. });
  18427. store._makeLocalGettersCache[namespace] = gettersProxy;
  18428. }
  18429. return store._makeLocalGettersCache[namespace]
  18430. }
  18431. function registerMutation (store, type, handler, local) {
  18432. var entry = store._mutations[type] || (store._mutations[type] = []);
  18433. entry.push(function wrappedMutationHandler (payload) {
  18434. handler.call(store, local.state, payload);
  18435. });
  18436. }
  18437. function registerAction (store, type, handler, local) {
  18438. var entry = store._actions[type] || (store._actions[type] = []);
  18439. entry.push(function wrappedActionHandler (payload) {
  18440. var res = handler.call(store, {
  18441. dispatch: local.dispatch,
  18442. commit: local.commit,
  18443. getters: local.getters,
  18444. state: local.state,
  18445. rootGetters: store.getters,
  18446. rootState: store.state
  18447. }, payload);
  18448. if (!isPromise(res)) {
  18449. res = Promise.resolve(res);
  18450. }
  18451. if (store._devtoolHook) {
  18452. return res.catch(function (err) {
  18453. store._devtoolHook.emit('vuex:error', err);
  18454. throw err
  18455. })
  18456. } else {
  18457. return res
  18458. }
  18459. });
  18460. }
  18461. function registerGetter (store, type, rawGetter, local) {
  18462. if (store._wrappedGetters[type]) {
  18463. if ((true)) {
  18464. console.error(("[vuex] duplicate getter key: " + type));
  18465. }
  18466. return
  18467. }
  18468. store._wrappedGetters[type] = function wrappedGetter (store) {
  18469. return rawGetter(
  18470. local.state, // local state
  18471. local.getters, // local getters
  18472. store.state, // root state
  18473. store.getters // root getters
  18474. )
  18475. };
  18476. }
  18477. function enableStrictMode (store) {
  18478. store._vm.$watch(function () { return this._data.$$state }, function () {
  18479. if ((true)) {
  18480. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  18481. }
  18482. }, { deep: true, sync: true });
  18483. }
  18484. function getNestedState (state, path) {
  18485. return path.reduce(function (state, key) { return state[key]; }, state)
  18486. }
  18487. function unifyObjectStyle (type, payload, options) {
  18488. if (isObject(type) && type.type) {
  18489. options = payload;
  18490. payload = type;
  18491. type = type.type;
  18492. }
  18493. if ((true)) {
  18494. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  18495. }
  18496. return { type: type, payload: payload, options: options }
  18497. }
  18498. function install (_Vue) {
  18499. if (Vue && _Vue === Vue) {
  18500. if ((true)) {
  18501. console.error(
  18502. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  18503. );
  18504. }
  18505. return
  18506. }
  18507. Vue = _Vue;
  18508. applyMixin(Vue);
  18509. }
  18510. /**
  18511. * Reduce the code which written in Vue.js for getting the state.
  18512. * @param {String} [namespace] - Module's namespace
  18513. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  18514. * @param {Object}
  18515. */
  18516. var mapState = normalizeNamespace(function (namespace, states) {
  18517. var res = {};
  18518. if (( true) && !isValidMap(states)) {
  18519. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  18520. }
  18521. normalizeMap(states).forEach(function (ref) {
  18522. var key = ref.key;
  18523. var val = ref.val;
  18524. res[key] = function mappedState () {
  18525. var state = this.$store.state;
  18526. var getters = this.$store.getters;
  18527. if (namespace) {
  18528. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  18529. if (!module) {
  18530. return
  18531. }
  18532. state = module.context.state;
  18533. getters = module.context.getters;
  18534. }
  18535. return typeof val === 'function'
  18536. ? val.call(this, state, getters)
  18537. : state[val]
  18538. };
  18539. // mark vuex getter for devtools
  18540. res[key].vuex = true;
  18541. });
  18542. return res
  18543. });
  18544. /**
  18545. * Reduce the code which written in Vue.js for committing the mutation
  18546. * @param {String} [namespace] - Module's namespace
  18547. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  18548. * @return {Object}
  18549. */
  18550. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  18551. var res = {};
  18552. if (( true) && !isValidMap(mutations)) {
  18553. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  18554. }
  18555. normalizeMap(mutations).forEach(function (ref) {
  18556. var key = ref.key;
  18557. var val = ref.val;
  18558. res[key] = function mappedMutation () {
  18559. var args = [], len = arguments.length;
  18560. while ( len-- ) args[ len ] = arguments[ len ];
  18561. // Get the commit method from store
  18562. var commit = this.$store.commit;
  18563. if (namespace) {
  18564. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  18565. if (!module) {
  18566. return
  18567. }
  18568. commit = module.context.commit;
  18569. }
  18570. return typeof val === 'function'
  18571. ? val.apply(this, [commit].concat(args))
  18572. : commit.apply(this.$store, [val].concat(args))
  18573. };
  18574. });
  18575. return res
  18576. });
  18577. /**
  18578. * Reduce the code which written in Vue.js for getting the getters
  18579. * @param {String} [namespace] - Module's namespace
  18580. * @param {Object|Array} getters
  18581. * @return {Object}
  18582. */
  18583. var mapGetters = normalizeNamespace(function (namespace, getters) {
  18584. var res = {};
  18585. if (( true) && !isValidMap(getters)) {
  18586. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  18587. }
  18588. normalizeMap(getters).forEach(function (ref) {
  18589. var key = ref.key;
  18590. var val = ref.val;
  18591. // The namespace has been mutated by normalizeNamespace
  18592. val = namespace + val;
  18593. res[key] = function mappedGetter () {
  18594. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  18595. return
  18596. }
  18597. if (( true) && !(val in this.$store.getters)) {
  18598. console.error(("[vuex] unknown getter: " + val));
  18599. return
  18600. }
  18601. return this.$store.getters[val]
  18602. };
  18603. // mark vuex getter for devtools
  18604. res[key].vuex = true;
  18605. });
  18606. return res
  18607. });
  18608. /**
  18609. * Reduce the code which written in Vue.js for dispatch the action
  18610. * @param {String} [namespace] - Module's namespace
  18611. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  18612. * @return {Object}
  18613. */
  18614. var mapActions = normalizeNamespace(function (namespace, actions) {
  18615. var res = {};
  18616. if (( true) && !isValidMap(actions)) {
  18617. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  18618. }
  18619. normalizeMap(actions).forEach(function (ref) {
  18620. var key = ref.key;
  18621. var val = ref.val;
  18622. res[key] = function mappedAction () {
  18623. var args = [], len = arguments.length;
  18624. while ( len-- ) args[ len ] = arguments[ len ];
  18625. // get dispatch function from store
  18626. var dispatch = this.$store.dispatch;
  18627. if (namespace) {
  18628. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  18629. if (!module) {
  18630. return
  18631. }
  18632. dispatch = module.context.dispatch;
  18633. }
  18634. return typeof val === 'function'
  18635. ? val.apply(this, [dispatch].concat(args))
  18636. : dispatch.apply(this.$store, [val].concat(args))
  18637. };
  18638. });
  18639. return res
  18640. });
  18641. /**
  18642. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  18643. * @param {String} namespace
  18644. * @return {Object}
  18645. */
  18646. var createNamespacedHelpers = function (namespace) { return ({
  18647. mapState: mapState.bind(null, namespace),
  18648. mapGetters: mapGetters.bind(null, namespace),
  18649. mapMutations: mapMutations.bind(null, namespace),
  18650. mapActions: mapActions.bind(null, namespace)
  18651. }); };
  18652. /**
  18653. * Normalize the map
  18654. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  18655. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  18656. * @param {Array|Object} map
  18657. * @return {Object}
  18658. */
  18659. function normalizeMap (map) {
  18660. if (!isValidMap(map)) {
  18661. return []
  18662. }
  18663. return Array.isArray(map)
  18664. ? map.map(function (key) { return ({ key: key, val: key }); })
  18665. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  18666. }
  18667. /**
  18668. * Validate whether given map is valid or not
  18669. * @param {*} map
  18670. * @return {Boolean}
  18671. */
  18672. function isValidMap (map) {
  18673. return Array.isArray(map) || isObject(map)
  18674. }
  18675. /**
  18676. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  18677. * @param {Function} fn
  18678. * @return {Function}
  18679. */
  18680. function normalizeNamespace (fn) {
  18681. return function (namespace, map) {
  18682. if (typeof namespace !== 'string') {
  18683. map = namespace;
  18684. namespace = '';
  18685. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  18686. namespace += '/';
  18687. }
  18688. return fn(namespace, map)
  18689. }
  18690. }
  18691. /**
  18692. * Search a special module from store by namespace. if module not exist, print error message.
  18693. * @param {Object} store
  18694. * @param {String} helper
  18695. * @param {String} namespace
  18696. * @return {Object}
  18697. */
  18698. function getModuleByNamespace (store, helper, namespace) {
  18699. var module = store._modulesNamespaceMap[namespace];
  18700. if (( true) && !module) {
  18701. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  18702. }
  18703. return module
  18704. }
  18705. // Credits: borrowed code from fcomb/redux-logger
  18706. function createLogger (ref) {
  18707. if ( ref === void 0 ) ref = {};
  18708. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  18709. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  18710. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  18711. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  18712. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  18713. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  18714. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  18715. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  18716. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  18717. return function (store) {
  18718. var prevState = deepCopy(store.state);
  18719. if (typeof logger === 'undefined') {
  18720. return
  18721. }
  18722. if (logMutations) {
  18723. store.subscribe(function (mutation, state) {
  18724. var nextState = deepCopy(state);
  18725. if (filter(mutation, prevState, nextState)) {
  18726. var formattedTime = getFormattedTime();
  18727. var formattedMutation = mutationTransformer(mutation);
  18728. var message = "mutation " + (mutation.type) + formattedTime;
  18729. startMessage(logger, message, collapsed);
  18730. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  18731. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  18732. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  18733. endMessage(logger);
  18734. }
  18735. prevState = nextState;
  18736. });
  18737. }
  18738. if (logActions) {
  18739. store.subscribeAction(function (action, state) {
  18740. if (actionFilter(action, state)) {
  18741. var formattedTime = getFormattedTime();
  18742. var formattedAction = actionTransformer(action);
  18743. var message = "action " + (action.type) + formattedTime;
  18744. startMessage(logger, message, collapsed);
  18745. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  18746. endMessage(logger);
  18747. }
  18748. });
  18749. }
  18750. }
  18751. }
  18752. function startMessage (logger, message, collapsed) {
  18753. var startMessage = collapsed
  18754. ? logger.groupCollapsed
  18755. : logger.group;
  18756. // render
  18757. try {
  18758. startMessage.call(logger, message);
  18759. } catch (e) {
  18760. logger.log(message);
  18761. }
  18762. }
  18763. function endMessage (logger) {
  18764. try {
  18765. logger.groupEnd();
  18766. } catch (e) {
  18767. logger.log('—— log end ——');
  18768. }
  18769. }
  18770. function getFormattedTime () {
  18771. var time = new Date();
  18772. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  18773. }
  18774. function repeat (str, times) {
  18775. return (new Array(times + 1)).join(str)
  18776. }
  18777. function pad (num, maxLength) {
  18778. return repeat('0', maxLength - num.toString().length) + num
  18779. }
  18780. var index_cjs = {
  18781. Store: Store,
  18782. install: install,
  18783. version: '3.6.2',
  18784. mapState: mapState,
  18785. mapMutations: mapMutations,
  18786. mapGetters: mapGetters,
  18787. mapActions: mapActions,
  18788. createNamespacedHelpers: createNamespacedHelpers,
  18789. createLogger: createLogger
  18790. };
  18791. module.exports = index_cjs;
  18792. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  18793. /***/ }),
  18794. /* 160 */
  18795. /*!*************************************************************!*\
  18796. !*** D:/2024/HBuilderProjects/xcx/uni.promisify.adaptor.js ***!
  18797. \*************************************************************/
  18798. /*! no static exports found */
  18799. /***/ (function(module, exports, __webpack_require__) {
  18800. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  18801. uni.addInterceptor({
  18802. returnValue: function returnValue(res) {
  18803. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  18804. return res;
  18805. }
  18806. return new Promise(function (resolve, reject) {
  18807. res.then(function (res) {
  18808. if (!res) return resolve(res);
  18809. return res[0] ? reject(res[0]) : resolve(res[1]);
  18810. });
  18811. });
  18812. }
  18813. });
  18814. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18815. /***/ }),
  18816. /* 161 */
  18817. /*!*****************************************************!*\
  18818. !*** D:/2024/HBuilderProjects/xcx/utils/wxShare.js ***!
  18819. \*****************************************************/
  18820. /*! no static exports found */
  18821. /***/ (function(module, exports, __webpack_require__) {
  18822. "use strict";
  18823. Object.defineProperty(exports, "__esModule", {
  18824. value: true
  18825. });
  18826. exports.mixin = void 0;
  18827. var mixin = {
  18828. data: function data() {
  18829. return {
  18830. share: {
  18831. // 转发的标题
  18832. title: '',
  18833. // 转发的路径,默认是当前页面,必须是以‘/'开头的完整路径,/pages/index/index
  18834. path: '',
  18835. //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,
  18836. //支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4
  18837. imageUrl: ''
  18838. }
  18839. };
  18840. },
  18841. // 分享到微信
  18842. onShareAppMessage: function onShareAppMessage() {
  18843. // 获取加载的页面
  18844. var pages = getCurrentPages(),
  18845. view = pages[pages.length - 1];
  18846. console.log(view.data);
  18847. this.share.title = "".concat(view.data.title);
  18848. //分享的页面路径
  18849. if (!this.share.path) {
  18850. this.share.path = "/".concat(view.route);
  18851. }
  18852. //转发参数
  18853. return this.share;
  18854. },
  18855. // 分享到朋友圈
  18856. onShareTimeline: function onShareTimeline() {
  18857. // 获取加载的页面
  18858. var pages = getCurrentPages(),
  18859. view = pages[pages.length - 1];
  18860. //分享的页面路径
  18861. if (!this.share.path) {
  18862. this.share.path = "/".concat(view.route);
  18863. }
  18864. //转发参数
  18865. return this.share;
  18866. }
  18867. };
  18868. exports.mixin = mixin;
  18869. /***/ }),
  18870. /* 162 */
  18871. /*!****************************************************!*\
  18872. !*** D:/2024/HBuilderProjects/xcx/http/install.js ***!
  18873. \****************************************************/
  18874. /*! no static exports found */
  18875. /***/ (function(module, exports, __webpack_require__) {
  18876. "use strict";
  18877. Object.defineProperty(exports, "__esModule", {
  18878. value: true
  18879. });
  18880. exports.default = void 0;
  18881. // 获取api目录所有js文件
  18882. var files = __webpack_require__(163);
  18883. // 此处第二个参数vm,就是我们在页面使用的this,可以通过vm获取vuex等操作
  18884. var install = function install(Vue, vm) {
  18885. // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api下(因为vm就是this,也即this.$u.api)
  18886. // 自动将所有api挂载到vm.$u.api中
  18887. vm.$u.api = {};
  18888. files.keys().forEach(function (key) {
  18889. var api = files(key).default;
  18890. for (var item in api) {
  18891. vm.$u.api[item] = api[item];
  18892. }
  18893. });
  18894. };
  18895. var _default = {
  18896. install: install
  18897. };
  18898. exports.default = _default;
  18899. /***/ }),
  18900. /* 163 */
  18901. /*!****************************************************************!*\
  18902. !*** D:/2024/HBuilderProjects/xcx/api sync nonrecursive \.js$ ***!
  18903. \****************************************************************/
  18904. /*! no static exports found */
  18905. /***/ (function(module, exports, __webpack_require__) {
  18906. var map = {
  18907. "./ffxc.js": 164,
  18908. "./jfsc.js": 182,
  18909. "./jwgk.js": 183,
  18910. "./my.js": 184,
  18911. "./user.js": 185
  18912. };
  18913. function webpackContext(req) {
  18914. var id = webpackContextResolve(req);
  18915. return __webpack_require__(id);
  18916. }
  18917. function webpackContextResolve(req) {
  18918. if(!__webpack_require__.o(map, req)) {
  18919. var e = new Error("Cannot find module '" + req + "'");
  18920. e.code = 'MODULE_NOT_FOUND';
  18921. throw e;
  18922. }
  18923. return map[req];
  18924. }
  18925. webpackContext.keys = function webpackContextKeys() {
  18926. return Object.keys(map);
  18927. };
  18928. webpackContext.resolve = webpackContextResolve;
  18929. module.exports = webpackContext;
  18930. webpackContext.id = 163;
  18931. /***/ }),
  18932. /* 164 */
  18933. /*!************************************************!*\
  18934. !*** D:/2024/HBuilderProjects/xcx/api/ffxc.js ***!
  18935. \************************************************/
  18936. /*! no static exports found */
  18937. /***/ (function(module, exports, __webpack_require__) {
  18938. "use strict";
  18939. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18940. Object.defineProperty(exports, "__esModule", {
  18941. value: true
  18942. });
  18943. exports.jfupdate = exports.getjwtdFfxc = exports.getDictList = exports.detailApp = void 0;
  18944. var _api = _interopRequireDefault(__webpack_require__(/*! @/http/api.js */ 165));
  18945. var getjwtdFfxc = function getjwtdFfxc(xclx, xcbt, current, size) {
  18946. return _api.default.request({
  18947. url: '/api/jwtdFfxc/page',
  18948. method: 'get',
  18949. params: {
  18950. xclx: xclx,
  18951. xcbt: xcbt,
  18952. current: current,
  18953. size: size
  18954. }
  18955. });
  18956. };
  18957. exports.getjwtdFfxc = getjwtdFfxc;
  18958. var getDictList = function getDictList() {
  18959. return _api.default.request({
  18960. url: '/api/blade-system/dept/getDictList',
  18961. method: 'get',
  18962. params: {}
  18963. });
  18964. };
  18965. exports.getDictList = getDictList;
  18966. var detailApp = function detailApp(id) {
  18967. return _api.default.request({
  18968. url: '/api/jwtdFfxc/detailApp',
  18969. method: 'get',
  18970. params: {
  18971. id: id
  18972. }
  18973. });
  18974. };
  18975. exports.detailApp = detailApp;
  18976. var jfupdate = function jfupdate(row) {
  18977. return _api.default.request({
  18978. url: '/api/jwtdFfxcLlls/update',
  18979. method: 'post',
  18980. data: row
  18981. });
  18982. };
  18983. exports.jfupdate = jfupdate;
  18984. /***/ }),
  18985. /* 165 */
  18986. /*!************************************************!*\
  18987. !*** D:/2024/HBuilderProjects/xcx/http/api.js ***!
  18988. \************************************************/
  18989. /*! no static exports found */
  18990. /***/ (function(module, exports, __webpack_require__) {
  18991. "use strict";
  18992. /* WEBPACK VAR INJECTION */(function(uni) {
  18993. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  18994. Object.defineProperty(exports, "__esModule", {
  18995. value: true
  18996. });
  18997. exports.default = void 0;
  18998. var _setting = __webpack_require__(/*! @/common/setting */ 166);
  18999. var _config = __webpack_require__(/*! @/http/config.js */ 167);
  19000. var _base = __webpack_require__(/*! @/utils/base64.js */ 168);
  19001. var _index = _interopRequireDefault(__webpack_require__(/*! @/utils/luch-request/index.js */ 169));
  19002. // wx.cloud.init({
  19003. // resourceAppid: 'wxade26aebf348223e', // 环境所属的账号appid
  19004. // resourceEnv: 'prod-4gkkrcvs42a25d6a', // 微信云托管的环境ID
  19005. // env: 'prod-4gkkrcvs42a25d6a',
  19006. // })
  19007. var http = new _index.default(_config.options);
  19008. http.interceptors.request.use(function (config) {
  19009. // 可使用async await 做异步操作
  19010. // 假设有token值需要在头部需要携带
  19011. var accessToken = uni.getStorageSync('accessToken');
  19012. if (accessToken) {
  19013. config.header['Blade-Auth'] = 'bearer ' + accessToken;
  19014. }
  19015. // 客户端认证参数
  19016. config.header['Authorization'] = 'Basic ' + _base.Base64.encode(_setting.clientId + ':' + _setting.clientSecret);
  19017. var url = config.url;
  19018. if ( true && !url.startsWith("http")) {
  19019. url = url.substring(url.indexOf('/api') + 4);
  19020. config.url = url;
  19021. }
  19022. // 额外参数
  19023. // config.data = config.data || {};
  19024. // config.data.pf = uni.getSystemInfoSync().platform;
  19025. // config.data.sys = uni.getSystemInfoSync().system;
  19026. // 演示custom 用处
  19027. // if (config.custom.auth) {
  19028. // config.header.token = 'token'
  19029. // }
  19030. // if (config.custom.loading) {
  19031. // uni.showLoading()
  19032. // }
  19033. /**
  19034. /* 演示
  19035. if (!token) { // 如果token不存在,return Promise.reject(config) 会取消本次请求
  19036. return Promise.reject(config)
  19037. }
  19038. **/
  19039. return config;
  19040. }, function (config) {
  19041. // 可使用async await 做异步操作
  19042. return Promise.reject(config);
  19043. });
  19044. http.interceptors.response.use(function (response) {
  19045. // 若有数据返回则通过
  19046. if (response.data.access_token || response.data.key) {
  19047. return response.data;
  19048. }
  19049. // 服务端返回的状态码不等于200,则reject()
  19050. if (response.data.code !== 200) {
  19051. uni.showToast({
  19052. title: response.data.msg,
  19053. icon: 'none'
  19054. });
  19055. //return Promise.reject(response);
  19056. }
  19057. if (response.data.code == 100) {
  19058. return response.data;
  19059. }
  19060. if (response.data.code == 101) {
  19061. return response.data;
  19062. }
  19063. if (response.data.code == 401) {
  19064. return response.data;
  19065. }
  19066. if (response.data.code == 102) {
  19067. return response.data;
  19068. }
  19069. return response.data;
  19070. }, function (response) {
  19071. /* 对响应错误做点什么 (statusCode !== 200)*/
  19072. uni.showToast({
  19073. title: response.data.msg,
  19074. icon: 'none'
  19075. });
  19076. if (response.statusCode == 401) {
  19077. var pages = getCurrentPages();
  19078. var currentPage = pages[pages.length - 1];
  19079. uni.redirectTo({
  19080. url: "/pageA/my/login?redirect=/".concat(currentPage.route)
  19081. });
  19082. }
  19083. return Promise.reject(response);
  19084. });
  19085. var _default = http;
  19086. exports.default = _default;
  19087. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19088. /***/ }),
  19089. /* 166 */
  19090. /*!******************************************************!*\
  19091. !*** D:/2024/HBuilderProjects/xcx/common/setting.js ***!
  19092. \******************************************************/
  19093. /*! no static exports found */
  19094. /***/ (function(module, exports) {
  19095. /**
  19096. * 全局变量配置
  19097. */
  19098. module.exports = {
  19099. // 应用名
  19100. name: 'Rider',
  19101. // 应用logo,支持本地路径和网络路径
  19102. logo: '/static/images/logo.png',
  19103. // 版本号
  19104. version: '2.0.1',
  19105. // 开发环境接口Url
  19106. devUrl: 'http://192.168.0.13:2345',
  19107. // 线上环境接口Url
  19108. prodUrl: 'http://192.168.0.13:2345/api',
  19109. // 后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8
  19110. contentType: 'application/json;charset=UTF-8',
  19111. baseurl: 'http://192.168.0.13:2345',
  19112. // 后端返回状态码
  19113. codeName: 'code',
  19114. // 操作正常code
  19115. successCode: 200,
  19116. // 登录失效code
  19117. invalidCode: 401,
  19118. // 客户端ID
  19119. clientId: 'saber',
  19120. // 客户端密钥
  19121. clientSecret: 'saber_secret',
  19122. // token过期时间
  19123. tokenTime: 3000
  19124. };
  19125. /***/ }),
  19126. /* 167 */
  19127. /*!***************************************************!*\
  19128. !*** D:/2024/HBuilderProjects/xcx/http/config.js ***!
  19129. \***************************************************/
  19130. /*! no static exports found */
  19131. /***/ (function(module, exports, __webpack_require__) {
  19132. "use strict";
  19133. Object.defineProperty(exports, "__esModule", {
  19134. value: true
  19135. });
  19136. exports.options = void 0;
  19137. var _setting = __webpack_require__(/*! @/common/setting */ 166);
  19138. var options = {
  19139. baseURL: true ? _setting.devUrl : undefined,
  19140. header: {
  19141. 'Content-Type': _setting.contentType
  19142. },
  19143. method: 'POST',
  19144. dataType: 'json',
  19145. responseType: 'text',
  19146. // 注:如果局部custom与全局custom有同名属性,则后面的属性会覆盖前面的属性,相当于Object.assign(全局,局部)
  19147. custom: {},
  19148. // 全局自定义参数默认值
  19149. timeout: 30000
  19150. // 局部优先级高于全局,返回当前请求的task,options。请勿在此处修改options。非必填
  19151. // getTask: (task, options) => {
  19152. // 相当于设置了请求超时时间500ms
  19153. // setTimeout(() => {
  19154. // task.abort()
  19155. // }, 500)
  19156. // },
  19157. // 全局自定义验证器。参数为statusCode 且必存在,不用判断空情况。
  19158. // validateStatus: (statusCode) => { // statusCode 必存在。此处示例为全局默认配置
  19159. // return statusCode >= 200 && statusCode < 300
  19160. // }
  19161. };
  19162. exports.options = options;
  19163. /***/ }),
  19164. /* 168 */
  19165. /*!****************************************************!*\
  19166. !*** D:/2024/HBuilderProjects/xcx/utils/base64.js ***!
  19167. \****************************************************/
  19168. /*! no static exports found */
  19169. /***/ (function(module, exports, __webpack_require__) {
  19170. /* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19171. /*
  19172. * base64.js
  19173. *
  19174. * Licensed under the BSD 3-Clause License.
  19175. * http://opensource.org/licenses/BSD-3-Clause
  19176. *
  19177. * References:
  19178. * http://en.wikipedia.org/wiki/Base64
  19179. */
  19180. ;
  19181. (function (global, factory) {
  19182. ( false ? undefined : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? module.exports = factory(global) : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19183. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19184. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  19185. __WEBPACK_AMD_DEFINE_FACTORY__),
  19186. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  19187. })(typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : this, function (global) {
  19188. 'use strict';
  19189. // existing version for noConflict()
  19190. global = global || {};
  19191. var _Base64 = global.Base64;
  19192. var version = "2.5.1";
  19193. // if node.js and NOT React Native, we use Buffer
  19194. var buffer;
  19195. if ( true && module.exports) {
  19196. try {
  19197. buffer = eval("require('buffer').Buffer");
  19198. } catch (err) {
  19199. buffer = undefined;
  19200. }
  19201. }
  19202. // constants
  19203. var b64chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  19204. var b64tab = function (bin) {
  19205. var t = {};
  19206. for (var i = 0, l = bin.length; i < l; i++) {
  19207. t[bin.charAt(i)] = i;
  19208. }
  19209. return t;
  19210. }(b64chars);
  19211. var fromCharCode = String.fromCharCode;
  19212. // encoder stuff
  19213. var cb_utob = function cb_utob(c) {
  19214. if (c.length < 2) {
  19215. var cc = c.charCodeAt(0);
  19216. return cc < 0x80 ? c : cc < 0x800 ? fromCharCode(0xc0 | cc >>> 6) + fromCharCode(0x80 | cc & 0x3f) : fromCharCode(0xe0 | cc >>> 12 & 0x0f) + fromCharCode(0x80 | cc >>> 6 & 0x3f) + fromCharCode(0x80 | cc & 0x3f);
  19217. } else {
  19218. var cc = 0x10000 + (c.charCodeAt(0) - 0xD800) * 0x400 + (c.charCodeAt(1) - 0xDC00);
  19219. return fromCharCode(0xf0 | cc >>> 18 & 0x07) + fromCharCode(0x80 | cc >>> 12 & 0x3f) + fromCharCode(0x80 | cc >>> 6 & 0x3f) + fromCharCode(0x80 | cc & 0x3f);
  19220. }
  19221. };
  19222. var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;
  19223. var utob = function utob(u) {
  19224. return u.replace(re_utob, cb_utob);
  19225. };
  19226. var cb_encode = function cb_encode(ccc) {
  19227. var padlen = [0, 2, 1][ccc.length % 3],
  19228. ord = ccc.charCodeAt(0) << 16 | (ccc.length > 1 ? ccc.charCodeAt(1) : 0) << 8 | (ccc.length > 2 ? ccc.charCodeAt(2) : 0),
  19229. chars = [b64chars.charAt(ord >>> 18), b64chars.charAt(ord >>> 12 & 63), padlen >= 2 ? '=' : b64chars.charAt(ord >>> 6 & 63), padlen >= 1 ? '=' : b64chars.charAt(ord & 63)];
  19230. return chars.join('');
  19231. };
  19232. var btoa = global.btoa ? function (b) {
  19233. return global.btoa(b);
  19234. } : function (b) {
  19235. return b.replace(/[\s\S]{1,3}/g, cb_encode);
  19236. };
  19237. var _encode = buffer ? buffer.from && Uint8Array && buffer.from !== Uint8Array.from ? function (u) {
  19238. return (u.constructor === buffer.constructor ? u : buffer.from(u)).toString('base64');
  19239. } : function (u) {
  19240. return (u.constructor === buffer.constructor ? u : new buffer(u)).toString('base64');
  19241. } : function (u) {
  19242. return btoa(utob(u));
  19243. };
  19244. var encode = function encode(u, urisafe) {
  19245. return !urisafe ? _encode(String(u)) : _encode(String(u)).replace(/[+\/]/g, function (m0) {
  19246. return m0 == '+' ? '-' : '_';
  19247. }).replace(/=/g, '');
  19248. };
  19249. var encodeURI = function encodeURI(u) {
  19250. return encode(u, true);
  19251. };
  19252. // decoder stuff
  19253. var re_btou = new RegExp(['[\xC0-\xDF][\x80-\xBF]', '[\xE0-\xEF][\x80-\xBF]{2}', '[\xF0-\xF7][\x80-\xBF]{3}'].join('|'), 'g');
  19254. var cb_btou = function cb_btou(cccc) {
  19255. switch (cccc.length) {
  19256. case 4:
  19257. var cp = (0x07 & cccc.charCodeAt(0)) << 18 | (0x3f & cccc.charCodeAt(1)) << 12 | (0x3f & cccc.charCodeAt(2)) << 6 | 0x3f & cccc.charCodeAt(3),
  19258. offset = cp - 0x10000;
  19259. return fromCharCode((offset >>> 10) + 0xD800) + fromCharCode((offset & 0x3FF) + 0xDC00);
  19260. case 3:
  19261. return fromCharCode((0x0f & cccc.charCodeAt(0)) << 12 | (0x3f & cccc.charCodeAt(1)) << 6 | 0x3f & cccc.charCodeAt(2));
  19262. default:
  19263. return fromCharCode((0x1f & cccc.charCodeAt(0)) << 6 | 0x3f & cccc.charCodeAt(1));
  19264. }
  19265. };
  19266. var btou = function btou(b) {
  19267. return b.replace(re_btou, cb_btou);
  19268. };
  19269. var cb_decode = function cb_decode(cccc) {
  19270. var len = cccc.length,
  19271. padlen = len % 4,
  19272. n = (len > 0 ? b64tab[cccc.charAt(0)] << 18 : 0) | (len > 1 ? b64tab[cccc.charAt(1)] << 12 : 0) | (len > 2 ? b64tab[cccc.charAt(2)] << 6 : 0) | (len > 3 ? b64tab[cccc.charAt(3)] : 0),
  19273. chars = [fromCharCode(n >>> 16), fromCharCode(n >>> 8 & 0xff), fromCharCode(n & 0xff)];
  19274. chars.length -= [0, 0, 2, 1][padlen];
  19275. return chars.join('');
  19276. };
  19277. var _atob = global.atob ? function (a) {
  19278. return global.atob(a);
  19279. } : function (a) {
  19280. return a.replace(/\S{1,4}/g, cb_decode);
  19281. };
  19282. var atob = function atob(a) {
  19283. return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
  19284. };
  19285. var _decode = buffer ? buffer.from && Uint8Array && buffer.from !== Uint8Array.from ? function (a) {
  19286. return (a.constructor === buffer.constructor ? a : buffer.from(a, 'base64')).toString();
  19287. } : function (a) {
  19288. return (a.constructor === buffer.constructor ? a : new buffer(a, 'base64')).toString();
  19289. } : function (a) {
  19290. return btou(_atob(a));
  19291. };
  19292. var decode = function decode(a) {
  19293. return _decode(String(a).replace(/[-_]/g, function (m0) {
  19294. return m0 == '-' ? '+' : '/';
  19295. }).replace(/[^A-Za-z0-9\+\/]/g, ''));
  19296. };
  19297. var noConflict = function noConflict() {
  19298. var Base64 = global.Base64;
  19299. global.Base64 = _Base64;
  19300. return Base64;
  19301. };
  19302. // export Base64
  19303. global.Base64 = {
  19304. VERSION: version,
  19305. atob: atob,
  19306. btoa: btoa,
  19307. fromBase64: decode,
  19308. toBase64: encode,
  19309. utob: utob,
  19310. encode: encode,
  19311. encodeURI: encodeURI,
  19312. btou: btou,
  19313. decode: decode,
  19314. noConflict: noConflict,
  19315. __buffer__: buffer
  19316. };
  19317. // if ES5 is available, make Base64.extendString() available
  19318. if (typeof Object.defineProperty === 'function') {
  19319. var noEnum = function noEnum(v) {
  19320. return {
  19321. value: v,
  19322. enumerable: false,
  19323. writable: true,
  19324. configurable: true
  19325. };
  19326. };
  19327. global.Base64.extendString = function () {
  19328. Object.defineProperty(String.prototype, 'fromBase64', noEnum(function () {
  19329. return decode(this);
  19330. }));
  19331. Object.defineProperty(String.prototype, 'toBase64', noEnum(function (urisafe) {
  19332. return encode(this, urisafe);
  19333. }));
  19334. Object.defineProperty(String.prototype, 'toBase64URI', noEnum(function () {
  19335. return encode(this, true);
  19336. }));
  19337. };
  19338. }
  19339. //
  19340. // export Base64 to the namespace
  19341. //
  19342. if (global['Meteor']) {
  19343. // Meteor.js
  19344. Base64 = global.Base64;
  19345. }
  19346. // module.exports and AMD are mutually exclusive.
  19347. // module.exports has precedence.
  19348. if ( true && module.exports) {
  19349. module.exports.Base64 = global.Base64;
  19350. } else if (true) {
  19351. // AMD. Register as an anonymous module.
  19352. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  19353. return global.Base64;
  19354. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  19355. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  19356. }
  19357. // that's it!
  19358. return {
  19359. Base64: global.Base64
  19360. };
  19361. });
  19362. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../软件工具/开发工具/HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/global.js */ 3)))
  19363. /***/ }),
  19364. /* 169 */
  19365. /*!****************************************************************!*\
  19366. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/index.js ***!
  19367. \****************************************************************/
  19368. /*! no static exports found */
  19369. /***/ (function(module, exports, __webpack_require__) {
  19370. "use strict";
  19371. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19372. Object.defineProperty(exports, "__esModule", {
  19373. value: true
  19374. });
  19375. exports.default = void 0;
  19376. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 170));
  19377. var _default = _Request.default;
  19378. exports.default = _default;
  19379. /***/ }),
  19380. /* 170 */
  19381. /*!***********************************************************************!*\
  19382. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/core/Request.js ***!
  19383. \***********************************************************************/
  19384. /*! no static exports found */
  19385. /***/ (function(module, exports, __webpack_require__) {
  19386. "use strict";
  19387. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19388. Object.defineProperty(exports, "__esModule", {
  19389. value: true
  19390. });
  19391. exports.default = void 0;
  19392. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  19393. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  19394. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  19395. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 171));
  19396. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 179));
  19397. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 180));
  19398. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 181));
  19399. var _utils = __webpack_require__(/*! ../utils */ 174);
  19400. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  19401. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  19402. var Request = /*#__PURE__*/function () {
  19403. /**
  19404. * @param {Object} arg - 全局配置
  19405. * @param {String} arg.baseURL - 全局根路径
  19406. * @param {Object} arg.header - 全局header
  19407. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  19408. * @param {String} arg.dataType = [json] - 全局默认的dataType
  19409. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  19410. * @param {Object} arg.custom - 全局默认的自定义参数
  19411. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  19412. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  19413. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  19414. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  19415. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  19416. */
  19417. function Request() {
  19418. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  19419. (0, _classCallCheck2.default)(this, Request);
  19420. if (!(0, _utils.isPlainObject)(arg)) {
  19421. arg = {};
  19422. console.warn('设置全局参数必须接收一个Object');
  19423. }
  19424. this.config = _objectSpread(_objectSpread({}, _defaults.default), arg);
  19425. this.interceptors = {
  19426. request: new _InterceptorManager.default(),
  19427. response: new _InterceptorManager.default()
  19428. };
  19429. }
  19430. /**
  19431. * @Function
  19432. * @param {Request~setConfigCallback} f - 设置全局默认配置
  19433. */
  19434. (0, _createClass2.default)(Request, [{
  19435. key: "setConfig",
  19436. value: function setConfig(f) {
  19437. this.config = f(this.config);
  19438. }
  19439. }, {
  19440. key: "middleware",
  19441. value: function middleware(config) {
  19442. config = (0, _mergeConfig.default)(this.config, config);
  19443. var chain = [_dispatchRequest.default, undefined];
  19444. var promise = Promise.resolve(config);
  19445. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  19446. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  19447. });
  19448. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  19449. chain.push(interceptor.fulfilled, interceptor.rejected);
  19450. });
  19451. while (chain.length) {
  19452. promise = promise.then(chain.shift(), chain.shift());
  19453. }
  19454. return promise;
  19455. }
  19456. /**
  19457. * @Function
  19458. * @param {Object} config - 请求配置项
  19459. * @prop {String} options.url - 请求路径
  19460. * @prop {Object} options.data - 请求参数
  19461. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  19462. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  19463. * @prop {Object} [options.header = config.header] - 请求header
  19464. * @prop {Object} [options.method = config.method] - 请求方法
  19465. * @returns {Promise<unknown>}
  19466. */
  19467. }, {
  19468. key: "request",
  19469. value: function request() {
  19470. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  19471. return this.middleware(config);
  19472. }
  19473. }, {
  19474. key: "get",
  19475. value: function get(url) {
  19476. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  19477. return this.middleware(_objectSpread({
  19478. url: url,
  19479. method: 'GET'
  19480. }, options));
  19481. }
  19482. }, {
  19483. key: "post",
  19484. value: function post(url, data) {
  19485. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  19486. return this.middleware(_objectSpread({
  19487. url: url,
  19488. data: data,
  19489. method: 'POST'
  19490. }, options));
  19491. }
  19492. }, {
  19493. key: "put",
  19494. value: function put(url, data) {
  19495. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  19496. return this.middleware(_objectSpread({
  19497. url: url,
  19498. data: data,
  19499. method: 'PUT'
  19500. }, options));
  19501. }
  19502. }, {
  19503. key: "delete",
  19504. value: function _delete(url, data) {
  19505. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  19506. return this.middleware(_objectSpread({
  19507. url: url,
  19508. data: data,
  19509. method: 'DELETE'
  19510. }, options));
  19511. }
  19512. }, {
  19513. key: "connect",
  19514. value: function connect(url, data) {
  19515. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  19516. return this.middleware(_objectSpread({
  19517. url: url,
  19518. data: data,
  19519. method: 'CONNECT'
  19520. }, options));
  19521. }
  19522. }, {
  19523. key: "head",
  19524. value: function head(url, data) {
  19525. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  19526. return this.middleware(_objectSpread({
  19527. url: url,
  19528. data: data,
  19529. method: 'HEAD'
  19530. }, options));
  19531. }
  19532. }, {
  19533. key: "options",
  19534. value: function options(url, data) {
  19535. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  19536. return this.middleware(_objectSpread({
  19537. url: url,
  19538. data: data,
  19539. method: 'OPTIONS'
  19540. }, _options));
  19541. }
  19542. }, {
  19543. key: "trace",
  19544. value: function trace(url, data) {
  19545. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  19546. return this.middleware(_objectSpread({
  19547. url: url,
  19548. data: data,
  19549. method: 'TRACE'
  19550. }, options));
  19551. }
  19552. }, {
  19553. key: "upload",
  19554. value: function upload(url) {
  19555. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  19556. config.url = url;
  19557. config.method = 'UPLOAD';
  19558. return this.middleware(config);
  19559. }
  19560. }, {
  19561. key: "download",
  19562. value: function download(url) {
  19563. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  19564. config.url = url;
  19565. config.method = 'DOWNLOAD';
  19566. return this.middleware(config);
  19567. }
  19568. }]);
  19569. return Request;
  19570. }();
  19571. /**
  19572. * setConfig回调
  19573. * @return {Object} - 返回操作后的config
  19574. * @callback Request~setConfigCallback
  19575. * @param {Object} config - 全局默认config
  19576. */
  19577. exports.default = Request;
  19578. /***/ }),
  19579. /* 171 */
  19580. /*!*******************************************************************************!*\
  19581. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/core/dispatchRequest.js ***!
  19582. \*******************************************************************************/
  19583. /*! no static exports found */
  19584. /***/ (function(module, exports, __webpack_require__) {
  19585. "use strict";
  19586. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19587. Object.defineProperty(exports, "__esModule", {
  19588. value: true
  19589. });
  19590. exports.default = void 0;
  19591. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 172));
  19592. var _default = function _default(config) {
  19593. return (0, _index.default)(config);
  19594. };
  19595. exports.default = _default;
  19596. /***/ }),
  19597. /* 172 */
  19598. /*!*************************************************************************!*\
  19599. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/adapters/index.js ***!
  19600. \*************************************************************************/
  19601. /*! no static exports found */
  19602. /***/ (function(module, exports, __webpack_require__) {
  19603. "use strict";
  19604. /* WEBPACK VAR INJECTION */(function(uni) {
  19605. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19606. Object.defineProperty(exports, "__esModule", {
  19607. value: true
  19608. });
  19609. exports.default = void 0;
  19610. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  19611. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 173));
  19612. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 175));
  19613. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 178));
  19614. var _utils = __webpack_require__(/*! ../utils */ 174);
  19615. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  19616. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  19617. /**
  19618. * 返回可选值存在的配置
  19619. * @param {Array} keys - 可选值数组
  19620. * @param {Object} config2 - 配置
  19621. * @return {{}} - 存在的配置项
  19622. */
  19623. var mergeKeys = function mergeKeys(keys, config2) {
  19624. var config = {};
  19625. keys.forEach(function (prop) {
  19626. if (!(0, _utils.isUndefined)(config2[prop])) {
  19627. config[prop] = config2[prop];
  19628. }
  19629. });
  19630. return config;
  19631. };
  19632. var _default = function _default(config) {
  19633. return new Promise(function (resolve, reject) {
  19634. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  19635. var _config = {
  19636. url: fullPath,
  19637. header: config.header,
  19638. complete: function complete(response) {
  19639. config.fullPath = fullPath;
  19640. response.config = config;
  19641. try {
  19642. // 对可能字符串不是json 的情况容错
  19643. if (typeof response.data === 'string') {
  19644. response.data = JSON.parse(response.data);
  19645. }
  19646. // eslint-disable-next-line no-empty
  19647. } catch (e) {}
  19648. (0, _settle.default)(resolve, reject, response);
  19649. }
  19650. };
  19651. var requestTask;
  19652. if (config.method === 'UPLOAD') {
  19653. delete _config.header['content-type'];
  19654. delete _config.header['Content-Type'];
  19655. var otherConfig = {
  19656. filePath: config.filePath,
  19657. name: config.name
  19658. };
  19659. var optionalKeys = ['formData'];
  19660. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  19661. } else if (config.method === 'DOWNLOAD') {
  19662. requestTask = uni.downloadFile(_config);
  19663. } else {
  19664. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  19665. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  19666. }
  19667. if (config.getTask) {
  19668. config.getTask(requestTask, config);
  19669. }
  19670. });
  19671. };
  19672. exports.default = _default;
  19673. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19674. /***/ }),
  19675. /* 173 */
  19676. /*!***************************************************************************!*\
  19677. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/helpers/buildURL.js ***!
  19678. \***************************************************************************/
  19679. /*! no static exports found */
  19680. /***/ (function(module, exports, __webpack_require__) {
  19681. "use strict";
  19682. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  19683. Object.defineProperty(exports, "__esModule", {
  19684. value: true
  19685. });
  19686. exports.default = buildURL;
  19687. var utils = _interopRequireWildcard(__webpack_require__(/*! ./../utils */ 174));
  19688. function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
  19689. function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  19690. function encode(val) {
  19691. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  19692. }
  19693. /**
  19694. * Build a URL by appending params to the end
  19695. *
  19696. * @param {string} url The base of the url (e.g., http://www.google.com)
  19697. * @param {object} [params] The params to be appended
  19698. * @returns {string} The formatted url
  19699. */
  19700. function buildURL(url, params) {
  19701. /*eslint no-param-reassign:0*/
  19702. if (!params) {
  19703. return url;
  19704. }
  19705. var serializedParams;
  19706. if (utils.isURLSearchParams(params)) {
  19707. serializedParams = params.toString();
  19708. } else {
  19709. var parts = [];
  19710. utils.forEach(params, function serialize(val, key) {
  19711. if (val === null || typeof val === 'undefined') {
  19712. return;
  19713. }
  19714. if (utils.isArray(val)) {
  19715. key = key + '[]';
  19716. } else {
  19717. val = [val];
  19718. }
  19719. utils.forEach(val, function parseValue(v) {
  19720. if (utils.isDate(v)) {
  19721. v = v.toISOString();
  19722. } else if (utils.isObject(v)) {
  19723. v = JSON.stringify(v);
  19724. }
  19725. parts.push(encode(key) + '=' + encode(v));
  19726. });
  19727. });
  19728. serializedParams = parts.join('&');
  19729. }
  19730. if (serializedParams) {
  19731. var hashmarkIndex = url.indexOf('#');
  19732. if (hashmarkIndex !== -1) {
  19733. url = url.slice(0, hashmarkIndex);
  19734. }
  19735. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  19736. }
  19737. return url;
  19738. }
  19739. /***/ }),
  19740. /* 174 */
  19741. /*!****************************************************************!*\
  19742. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/utils.js ***!
  19743. \****************************************************************/
  19744. /*! no static exports found */
  19745. /***/ (function(module, exports, __webpack_require__) {
  19746. "use strict";
  19747. // utils is a library of generic helper functions non-specific to axios
  19748. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19749. Object.defineProperty(exports, "__esModule", {
  19750. value: true
  19751. });
  19752. exports.deepMerge = deepMerge;
  19753. exports.forEach = forEach;
  19754. exports.isArray = isArray;
  19755. exports.isBoolean = isBoolean;
  19756. exports.isDate = isDate;
  19757. exports.isObject = isObject;
  19758. exports.isPlainObject = isPlainObject;
  19759. exports.isURLSearchParams = isURLSearchParams;
  19760. exports.isUndefined = isUndefined;
  19761. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  19762. var toString = Object.prototype.toString;
  19763. /**
  19764. * Determine if a value is an Array
  19765. *
  19766. * @param {Object} val The value to test
  19767. * @returns {boolean} True if value is an Array, otherwise false
  19768. */
  19769. function isArray(val) {
  19770. return toString.call(val) === '[object Array]';
  19771. }
  19772. /**
  19773. * Determine if a value is an Object
  19774. *
  19775. * @param {Object} val The value to test
  19776. * @returns {boolean} True if value is an Object, otherwise false
  19777. */
  19778. function isObject(val) {
  19779. return val !== null && (0, _typeof2.default)(val) === 'object';
  19780. }
  19781. /**
  19782. * Determine if a value is a Date
  19783. *
  19784. * @param {Object} val The value to test
  19785. * @returns {boolean} True if value is a Date, otherwise false
  19786. */
  19787. function isDate(val) {
  19788. return toString.call(val) === '[object Date]';
  19789. }
  19790. /**
  19791. * Determine if a value is a URLSearchParams object
  19792. *
  19793. * @param {Object} val The value to test
  19794. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  19795. */
  19796. function isURLSearchParams(val) {
  19797. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  19798. }
  19799. /**
  19800. * Iterate over an Array or an Object invoking a function for each item.
  19801. *
  19802. * If `obj` is an Array callback will be called passing
  19803. * the value, index, and complete array for each item.
  19804. *
  19805. * If 'obj' is an Object callback will be called passing
  19806. * the value, key, and complete object for each property.
  19807. *
  19808. * @param {Object|Array} obj The object to iterate
  19809. * @param {Function} fn The callback to invoke for each item
  19810. */
  19811. function forEach(obj, fn) {
  19812. // Don't bother if no value provided
  19813. if (obj === null || typeof obj === 'undefined') {
  19814. return;
  19815. }
  19816. // Force an array if not already something iterable
  19817. if ((0, _typeof2.default)(obj) !== 'object') {
  19818. /*eslint no-param-reassign:0*/
  19819. obj = [obj];
  19820. }
  19821. if (isArray(obj)) {
  19822. // Iterate over array values
  19823. for (var i = 0, l = obj.length; i < l; i++) {
  19824. fn.call(null, obj[i], i, obj);
  19825. }
  19826. } else {
  19827. // Iterate over object keys
  19828. for (var key in obj) {
  19829. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  19830. fn.call(null, obj[key], key, obj);
  19831. }
  19832. }
  19833. }
  19834. }
  19835. /**
  19836. * 是否为boolean 值
  19837. * @param val
  19838. * @returns {boolean}
  19839. */
  19840. function isBoolean(val) {
  19841. return typeof val === 'boolean';
  19842. }
  19843. /**
  19844. * 是否为真正的对象{} new Object
  19845. * @param {any} obj - 检测的对象
  19846. * @returns {boolean}
  19847. */
  19848. function isPlainObject(obj) {
  19849. return Object.prototype.toString.call(obj) === '[object Object]';
  19850. }
  19851. /**
  19852. * Function equal to merge with the difference being that no reference
  19853. * to original objects is kept.
  19854. *
  19855. * @see merge
  19856. * @param {Object} obj1 Object to merge
  19857. * @returns {Object} Result of all merge properties
  19858. */
  19859. function deepMerge( /* obj1, obj2, obj3, ... */
  19860. ) {
  19861. var result = {};
  19862. function assignValue(val, key) {
  19863. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  19864. result[key] = deepMerge(result[key], val);
  19865. } else if ((0, _typeof2.default)(val) === 'object') {
  19866. result[key] = deepMerge({}, val);
  19867. } else {
  19868. result[key] = val;
  19869. }
  19870. }
  19871. for (var i = 0, l = arguments.length; i < l; i++) {
  19872. forEach(arguments[i], assignValue);
  19873. }
  19874. return result;
  19875. }
  19876. function isUndefined(val) {
  19877. return typeof val === 'undefined';
  19878. }
  19879. /***/ }),
  19880. /* 175 */
  19881. /*!*****************************************************************************!*\
  19882. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/core/buildFullPath.js ***!
  19883. \*****************************************************************************/
  19884. /*! no static exports found */
  19885. /***/ (function(module, exports, __webpack_require__) {
  19886. "use strict";
  19887. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19888. Object.defineProperty(exports, "__esModule", {
  19889. value: true
  19890. });
  19891. exports.default = buildFullPath;
  19892. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 176));
  19893. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 177));
  19894. /**
  19895. * Creates a new URL by combining the baseURL with the requestedURL,
  19896. * only when the requestedURL is not already an absolute URL.
  19897. * If the requestURL is absolute, this function returns the requestedURL untouched.
  19898. *
  19899. * @param {string} baseURL The base URL
  19900. * @param {string} requestedURL Absolute or relative URL to combine
  19901. * @returns {string} The combined full path
  19902. */
  19903. function buildFullPath(baseURL, requestedURL) {
  19904. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  19905. return (0, _combineURLs.default)(baseURL, requestedURL);
  19906. }
  19907. return requestedURL;
  19908. }
  19909. /***/ }),
  19910. /* 176 */
  19911. /*!********************************************************************************!*\
  19912. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/helpers/isAbsoluteURL.js ***!
  19913. \********************************************************************************/
  19914. /*! no static exports found */
  19915. /***/ (function(module, exports, __webpack_require__) {
  19916. "use strict";
  19917. /**
  19918. * Determines whether the specified URL is absolute
  19919. *
  19920. * @param {string} url The URL to test
  19921. * @returns {boolean} True if the specified URL is absolute, otherwise false
  19922. */
  19923. Object.defineProperty(exports, "__esModule", {
  19924. value: true
  19925. });
  19926. exports.default = isAbsoluteURL;
  19927. function isAbsoluteURL(url) {
  19928. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  19929. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  19930. // by any combination of letters, digits, plus, period, or hyphen.
  19931. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  19932. }
  19933. /***/ }),
  19934. /* 177 */
  19935. /*!******************************************************************************!*\
  19936. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/helpers/combineURLs.js ***!
  19937. \******************************************************************************/
  19938. /*! no static exports found */
  19939. /***/ (function(module, exports, __webpack_require__) {
  19940. "use strict";
  19941. /**
  19942. * Creates a new URL by combining the specified URLs
  19943. *
  19944. * @param {string} baseURL The base URL
  19945. * @param {string} relativeURL The relative URL
  19946. * @returns {string} The combined URL
  19947. */
  19948. Object.defineProperty(exports, "__esModule", {
  19949. value: true
  19950. });
  19951. exports.default = combineURLs;
  19952. function combineURLs(baseURL, relativeURL) {
  19953. return relativeURL ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
  19954. }
  19955. /***/ }),
  19956. /* 178 */
  19957. /*!**********************************************************************!*\
  19958. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/core/settle.js ***!
  19959. \**********************************************************************/
  19960. /*! no static exports found */
  19961. /***/ (function(module, exports, __webpack_require__) {
  19962. "use strict";
  19963. Object.defineProperty(exports, "__esModule", {
  19964. value: true
  19965. });
  19966. exports.default = settle;
  19967. /**
  19968. * Resolve or reject a Promise based on response status.
  19969. *
  19970. * @param {Function} resolve A function that resolves the promise.
  19971. * @param {Function} reject A function that rejects the promise.
  19972. * @param {object} response The response.
  19973. */
  19974. function settle(resolve, reject, response) {
  19975. var validateStatus = response.config.validateStatus;
  19976. var status = response.statusCode;
  19977. if (status && (!validateStatus || validateStatus(status))) {
  19978. resolve(response);
  19979. } else {
  19980. reject(response);
  19981. }
  19982. }
  19983. /***/ }),
  19984. /* 179 */
  19985. /*!**********************************************************************************!*\
  19986. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/core/InterceptorManager.js ***!
  19987. \**********************************************************************************/
  19988. /*! no static exports found */
  19989. /***/ (function(module, exports, __webpack_require__) {
  19990. "use strict";
  19991. Object.defineProperty(exports, "__esModule", {
  19992. value: true
  19993. });
  19994. exports.default = void 0;
  19995. function InterceptorManager() {
  19996. this.handlers = [];
  19997. }
  19998. /**
  19999. * Add a new interceptor to the stack
  20000. *
  20001. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  20002. * @param {Function} rejected The function to handle `reject` for a `Promise`
  20003. *
  20004. * @return {Number} An ID used to remove interceptor later
  20005. */
  20006. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  20007. this.handlers.push({
  20008. fulfilled: fulfilled,
  20009. rejected: rejected
  20010. });
  20011. return this.handlers.length - 1;
  20012. };
  20013. /**
  20014. * Remove an interceptor from the stack
  20015. *
  20016. * @param {Number} id The ID that was returned by `use`
  20017. */
  20018. InterceptorManager.prototype.eject = function eject(id) {
  20019. if (this.handlers[id]) {
  20020. this.handlers[id] = null;
  20021. }
  20022. };
  20023. /**
  20024. * Iterate over all the registered interceptors
  20025. *
  20026. * This method is particularly useful for skipping over any
  20027. * interceptors that may have become `null` calling `eject`.
  20028. *
  20029. * @param {Function} fn The function to call for each interceptor
  20030. */
  20031. InterceptorManager.prototype.forEach = function forEach(fn) {
  20032. this.handlers.forEach(function (h) {
  20033. if (h !== null) {
  20034. fn(h);
  20035. }
  20036. });
  20037. };
  20038. var _default = InterceptorManager;
  20039. exports.default = _default;
  20040. /***/ }),
  20041. /* 180 */
  20042. /*!***************************************************************************!*\
  20043. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/core/mergeConfig.js ***!
  20044. \***************************************************************************/
  20045. /*! no static exports found */
  20046. /***/ (function(module, exports, __webpack_require__) {
  20047. "use strict";
  20048. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20049. Object.defineProperty(exports, "__esModule", {
  20050. value: true
  20051. });
  20052. exports.default = void 0;
  20053. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  20054. var _utils = __webpack_require__(/*! ../utils */ 174);
  20055. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  20056. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  20057. /**
  20058. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  20059. * @param {Array} keys - 配置项
  20060. * @param {Object} globalsConfig - 当前的全局配置
  20061. * @param {Object} config2 - 局部配置
  20062. * @return {{}}
  20063. */
  20064. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  20065. var config = {};
  20066. keys.forEach(function (prop) {
  20067. if (!(0, _utils.isUndefined)(config2[prop])) {
  20068. config[prop] = config2[prop];
  20069. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  20070. config[prop] = globalsConfig[prop];
  20071. }
  20072. });
  20073. return config;
  20074. };
  20075. /**
  20076. *
  20077. * @param globalsConfig - 当前实例的全局配置
  20078. * @param config2 - 当前的局部配置
  20079. * @return - 合并后的配置
  20080. */
  20081. var _default = function _default(globalsConfig) {
  20082. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  20083. var method = config2.method || globalsConfig.method || 'GET';
  20084. var config = {
  20085. baseURL: globalsConfig.baseURL || '',
  20086. method: method,
  20087. url: config2.url || '',
  20088. params: config2.params || {},
  20089. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  20090. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  20091. };
  20092. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  20093. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  20094. // eslint-disable-next-line no-empty
  20095. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  20096. delete config.header['content-type'];
  20097. delete config.header['Content-Type'];
  20098. var uploadKeys = ['filePath', 'name', 'formData'];
  20099. uploadKeys.forEach(function (prop) {
  20100. if (!(0, _utils.isUndefined)(config2[prop])) {
  20101. config[prop] = config2[prop];
  20102. }
  20103. });
  20104. } else {
  20105. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  20106. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  20107. }
  20108. return config;
  20109. };
  20110. exports.default = _default;
  20111. /***/ }),
  20112. /* 181 */
  20113. /*!************************************************************************!*\
  20114. !*** D:/2024/HBuilderProjects/xcx/utils/luch-request/core/defaults.js ***!
  20115. \************************************************************************/
  20116. /*! no static exports found */
  20117. /***/ (function(module, exports, __webpack_require__) {
  20118. "use strict";
  20119. Object.defineProperty(exports, "__esModule", {
  20120. value: true
  20121. });
  20122. exports.default = void 0;
  20123. /**
  20124. * 默认的全局配置
  20125. */
  20126. var _default = {
  20127. baseURL: '',
  20128. header: {},
  20129. method: 'GET',
  20130. dataType: 'json',
  20131. responseType: 'text',
  20132. custom: {},
  20133. timeout: 60000,
  20134. validateStatus: function validateStatus(status) {
  20135. return status >= 200 && status < 300;
  20136. }
  20137. };
  20138. exports.default = _default;
  20139. /***/ }),
  20140. /* 182 */
  20141. /*!************************************************!*\
  20142. !*** D:/2024/HBuilderProjects/xcx/api/jfsc.js ***!
  20143. \************************************************/
  20144. /*! no static exports found */
  20145. /***/ (function(module, exports, __webpack_require__) {
  20146. "use strict";
  20147. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20148. Object.defineProperty(exports, "__esModule", {
  20149. value: true
  20150. });
  20151. exports.jyzdjSave = exports.jyzSellPage = exports.jyzSellDetail = exports.jwtdSpgldetail = exports.jwtdSpglDhjl = exports.jwtdGwcRemove = exports.jwtdGwcList = exports.jwtdGwc = exports.jfsclqsp = exports.getjwtdSpgl = exports.getJlList = exports.getJf = exports.getDdList = void 0;
  20152. var _api = _interopRequireDefault(__webpack_require__(/*! @/http/api.js */ 165));
  20153. var getjwtdSpgl = function getjwtdSpgl(current, size) {
  20154. return _api.default.request({
  20155. url: '/api/jwtdSpgl/pageApp',
  20156. method: 'get',
  20157. params: {
  20158. current: current,
  20159. size: size
  20160. }
  20161. });
  20162. };
  20163. exports.getjwtdSpgl = getjwtdSpgl;
  20164. var jwtdSpgldetail = function jwtdSpgldetail(id) {
  20165. return _api.default.request({
  20166. url: '/api/jwtdSpgl/detail',
  20167. method: 'get',
  20168. params: {
  20169. id: id
  20170. }
  20171. });
  20172. };
  20173. // jwtdJfjl/getJlList get 积分明细 传type(积分获取,积分兑换)不传为全部记录
  20174. exports.jwtdSpgldetail = jwtdSpgldetail;
  20175. var getJlList = function getJlList(type) {
  20176. return _api.default.request({
  20177. url: '/api/jwtdJfjl/getJlList',
  20178. method: 'get',
  20179. params: {
  20180. type: type
  20181. }
  20182. });
  20183. };
  20184. // jwtdSpglDhjl/gwcjs post 购物车结算 传list
  20185. exports.getJlList = getJlList;
  20186. var jwtdSpglDhjl = function jwtdSpglDhjl(row) {
  20187. return _api.default.request({
  20188. url: '/api/jwtdSpglDhjl/gwcjs',
  20189. method: 'post',
  20190. data: row
  20191. });
  20192. };
  20193. //jwtdSpglDhjl/getDdList我的订单 传type(待领取,历史)
  20194. exports.jwtdSpglDhjl = jwtdSpglDhjl;
  20195. var getDdList = function getDdList(type, spmc, current) {
  20196. return _api.default.request({
  20197. url: '/api/jwtdSpglDhjl/getDdList',
  20198. method: 'get',
  20199. params: {
  20200. type: type,
  20201. spmc: spmc,
  20202. current: current
  20203. }
  20204. });
  20205. };
  20206. // jwtdSzqyJyz/save post 加油站登记
  20207. exports.getDdList = getDdList;
  20208. var jyzdjSave = function jyzdjSave(row) {
  20209. return _api.default.request({
  20210. url: '/api/jwtdSzqyJyz/save',
  20211. method: 'post',
  20212. data: row
  20213. });
  20214. };
  20215. //jwtdSzqyCsjl/page get 出售记录
  20216. exports.jyzdjSave = jyzdjSave;
  20217. var jyzSellPage = function jyzSellPage(spmc, current) {
  20218. return _api.default.request({
  20219. url: '/api/jwtdSzqyCsjl/page',
  20220. method: 'get',
  20221. params: {
  20222. spmc: spmc,
  20223. current: current
  20224. }
  20225. });
  20226. };
  20227. //jwtdSzqyCsjl/detail get 出售记录详情 传id
  20228. exports.jyzSellPage = jyzSellPage;
  20229. var jyzSellDetail = function jyzSellDetail(id) {
  20230. return _api.default.request({
  20231. url: '/api/jwtdSzqyCsjl/detail',
  20232. method: 'get',
  20233. params: {
  20234. id: id
  20235. }
  20236. });
  20237. };
  20238. //加入购物车 传spId商品id,userId用户id
  20239. exports.jyzSellDetail = jyzSellDetail;
  20240. var jwtdGwc = function jwtdGwc(row) {
  20241. return _api.default.request({
  20242. url: '/api/jwtdGwc/save',
  20243. method: 'post',
  20244. data: row
  20245. });
  20246. };
  20247. //jwtdGwc/page get 购物车列表 传userId
  20248. exports.jwtdGwc = jwtdGwc;
  20249. var jwtdGwcList = function jwtdGwcList(userId) {
  20250. return _api.default.request({
  20251. url: '/api/jwtdGwc/page',
  20252. method: 'get',
  20253. params: {
  20254. userId: userId
  20255. }
  20256. });
  20257. };
  20258. exports.jwtdGwcList = jwtdGwcList;
  20259. var jwtdGwcRemove = function jwtdGwcRemove(row) {
  20260. return _api.default.request({
  20261. url: '/api/jwtdGwc/remove',
  20262. method: 'post',
  20263. data: row
  20264. });
  20265. };
  20266. exports.jwtdGwcRemove = jwtdGwcRemove;
  20267. var jfsclqsp = function jfsclqsp(ddbh) {
  20268. return _api.default.request({
  20269. url: '/api/jwtdSpglDhjl/lqsp',
  20270. method: 'post',
  20271. params: {
  20272. ddbh: ddbh
  20273. }
  20274. });
  20275. };
  20276. //获取当前登陆人积分
  20277. exports.jfsclqsp = jfsclqsp;
  20278. var getJf = function getJf() {
  20279. return _api.default.request({
  20280. url: '/api/blade-system/user/getJf',
  20281. method: 'get',
  20282. params: {}
  20283. });
  20284. };
  20285. exports.getJf = getJf;
  20286. /***/ }),
  20287. /* 183 */
  20288. /*!************************************************!*\
  20289. !*** D:/2024/HBuilderProjects/xcx/api/jwgk.js ***!
  20290. \************************************************/
  20291. /*! no static exports found */
  20292. /***/ (function(module, exports, __webpack_require__) {
  20293. "use strict";
  20294. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20295. Object.defineProperty(exports, "__esModule", {
  20296. value: true
  20297. });
  20298. exports.getjwtdJwgk = void 0;
  20299. var _api = _interopRequireDefault(__webpack_require__(/*! @/http/api.js */ 165));
  20300. var getjwtdJwgk = function getjwtdJwgk(name, current, size) {
  20301. return _api.default.request({
  20302. url: '/api/jwtdJwgk/page',
  20303. method: 'get',
  20304. params: {
  20305. name: name,
  20306. current: current,
  20307. size: size
  20308. }
  20309. });
  20310. };
  20311. exports.getjwtdJwgk = getjwtdJwgk;
  20312. /***/ }),
  20313. /* 184 */
  20314. /*!**********************************************!*\
  20315. !*** D:/2024/HBuilderProjects/xcx/api/my.js ***!
  20316. \**********************************************/
  20317. /*! no static exports found */
  20318. /***/ (function(module, exports, __webpack_require__) {
  20319. "use strict";
  20320. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20321. Object.defineProperty(exports, "__esModule", {
  20322. value: true
  20323. });
  20324. exports.putfiles = exports.getQxList = exports.getQx = exports.getDeptList = void 0;
  20325. var _api = _interopRequireDefault(__webpack_require__(/*! @/http/api.js */ 165));
  20326. var getDeptList = function getDeptList(id) {
  20327. return _api.default.request({
  20328. url: '/api/blade-system/dept/getDeptList',
  20329. method: 'get',
  20330. params: {
  20331. id: id
  20332. }
  20333. });
  20334. };
  20335. exports.getDeptList = getDeptList;
  20336. var getQxList = function getQxList(row) {
  20337. return _api.default.request({
  20338. url: '/api/blade-system/dept/getQxList',
  20339. method: 'get',
  20340. params: row
  20341. });
  20342. };
  20343. exports.getQxList = getQxList;
  20344. var putfiles = function putfiles(row) {
  20345. return _api.default.request({
  20346. url: '/api/blade-resource/oss/endpoint/put-file',
  20347. header: {
  20348. 'Content-Type': 'multipart/form-data'
  20349. },
  20350. method: 'post',
  20351. data: row
  20352. });
  20353. };
  20354. //blade-system/user/getQx
  20355. exports.putfiles = putfiles;
  20356. var getQx = function getQx(code) {
  20357. return _api.default.request({
  20358. url: '/api/blade-system/user/getQx',
  20359. method: 'get',
  20360. params: {
  20361. code: code
  20362. }
  20363. });
  20364. };
  20365. exports.getQx = getQx;
  20366. /***/ }),
  20367. /* 185 */
  20368. /*!************************************************!*\
  20369. !*** D:/2024/HBuilderProjects/xcx/api/user.js ***!
  20370. \************************************************/
  20371. /*! no static exports found */
  20372. /***/ (function(module, exports, __webpack_require__) {
  20373. "use strict";
  20374. /* WEBPACK VAR INJECTION */(function(wx) {
  20375. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20376. Object.defineProperty(exports, "__esModule", {
  20377. value: true
  20378. });
  20379. exports.wxlogin = exports.weblogin = exports.userInfo = exports.updateinfos = exports.updateinfo = exports.university_list = exports.specialty_list = exports.registerUser = exports.grade_list = exports.getzhxx = exports.getXqgk = exports.getUser = exports.getPhoneNumbers = exports.default = exports.college_list = void 0;
  20380. var _api = _interopRequireDefault(__webpack_require__(/*! @/http/api.js */ 165));
  20381. // 获取token
  20382. var token = function token(tenantId, username, password, type) {
  20383. return _api.default.request({
  20384. url: '/api/blade-auth/oauth/token',
  20385. method: 'POST',
  20386. header: {
  20387. 'Tenant-Id': tenantId
  20388. },
  20389. params: {
  20390. tenantId: tenantId,
  20391. username: username,
  20392. password: password,
  20393. grant_type: "password",
  20394. scope: "all",
  20395. type: type
  20396. }
  20397. });
  20398. };
  20399. var getXqgk = function getXqgk() {
  20400. return _api.default.request({
  20401. url: '/blade-system/user/getXqgk',
  20402. method: 'get'
  20403. });
  20404. };
  20405. exports.getXqgk = getXqgk;
  20406. var refreshToken = function refreshToken(refresh_token, tenantId) {
  20407. return _api.default.request({
  20408. url: '/api/blade-auth/oauth/token',
  20409. method: 'post',
  20410. headers: {
  20411. 'Tenant-Id': tenantId
  20412. },
  20413. params: {
  20414. tenantId: tenantId,
  20415. refresh_token: refresh_token,
  20416. grant_type: "refresh_token",
  20417. scope: "all"
  20418. }
  20419. });
  20420. };
  20421. // 获取用户信息
  20422. var userInfo = function userInfo() {
  20423. return _api.default.request({
  20424. url: '/api/blade-system/user/getUserInfo',
  20425. method: 'GET'
  20426. });
  20427. };
  20428. // 获取用户信息
  20429. exports.userInfo = userInfo;
  20430. var getUser = function getUser(id) {
  20431. return _api.default.request({
  20432. url: '/api/blade-system/user/detail',
  20433. method: 'GET',
  20434. params: {
  20435. id: id
  20436. }
  20437. });
  20438. };
  20439. // 获取用户信息
  20440. exports.getUser = getUser;
  20441. var wxlogin = function wxlogin(row) {
  20442. return _api.default.request({
  20443. url: '/api/blade-system/user/wxlogi_qs',
  20444. method: 'POST',
  20445. header: {
  20446. // 'Content-Type': 'application/x-www-form-urlencoded'
  20447. 'Content-Type': 'application/x-www-form-urlencoded'
  20448. },
  20449. data: row
  20450. });
  20451. };
  20452. //blade-auth/oauth/token
  20453. exports.wxlogin = wxlogin;
  20454. var weblogin = function weblogin(row) {
  20455. return _api.default.request({
  20456. url: '/api/blade-auth/oauth/token',
  20457. method: 'POST',
  20458. header: {
  20459. // 'Content-Type': 'application/x-www-form-urlencoded'
  20460. 'Content-Type': 'application/x-www-form-urlencoded'
  20461. },
  20462. data: row
  20463. });
  20464. };
  20465. // 获取帐户信息
  20466. exports.weblogin = weblogin;
  20467. var getzhxx = function getzhxx(yhbh) {
  20468. return _api.default.request({
  20469. url: '/api/miaos/zhxx/detail',
  20470. method: 'GET',
  20471. params: {
  20472. yhbh: yhbh
  20473. }
  20474. });
  20475. };
  20476. //blade-system/user/registerUser
  20477. // 用户注册
  20478. exports.getzhxx = getzhxx;
  20479. var registerUser = function registerUser(row) {
  20480. return wx.cloud.callContainer({
  20481. "path": "/blade-system/user/registerUser_qs",
  20482. "header": {
  20483. "X-WX-SERVICE": "msserver",
  20484. 'Content-Type': 'application/x-www-form-urlencoded'
  20485. },
  20486. "method": "POST",
  20487. "data": row
  20488. });
  20489. // return http.request({
  20490. // url: '/api/blade-system/user/registerUser_qs',
  20491. // method: 'POST',
  20492. // header: {
  20493. // // 'Content-Type': 'application/x-www-form-urlencoded'
  20494. // 'Content-Type': 'application/x-www-form-urlencoded'
  20495. // },
  20496. // data: row
  20497. // })
  20498. };
  20499. // 用户手机号码
  20500. exports.registerUser = registerUser;
  20501. var getPhoneNumbers = function getPhoneNumbers(row) {
  20502. return _api.default.request({
  20503. url: '/api/blade-system/user/getPhoneNumber_qs',
  20504. method: 'POST',
  20505. header: {
  20506. // 'Content-Type': 'application/x-www-form-urlencoded'
  20507. 'Content-Type': 'application/x-www-form-urlencoded'
  20508. },
  20509. data: row
  20510. });
  20511. };
  20512. exports.getPhoneNumbers = getPhoneNumbers;
  20513. var updateinfo = function updateinfo(row) {
  20514. return _api.default.request({
  20515. url: '/api/blade-system/user/update-info',
  20516. method: 'POST',
  20517. data: row
  20518. });
  20519. };
  20520. //个人信息
  20521. exports.updateinfo = updateinfo;
  20522. var updateinfos = function updateinfos(row) {
  20523. return _api.default.request({
  20524. url: '/api/blade-system/user/update',
  20525. method: 'POST',
  20526. data: row
  20527. });
  20528. };
  20529. // 部门
  20530. //1、学校列表
  20531. exports.updateinfos = updateinfos;
  20532. var university_list = function university_list() {
  20533. return wx.cloud.callContainer({
  20534. "path": "/blade-system/dept/university-list",
  20535. "header": {
  20536. "X-WX-SERVICE": "msserver"
  20537. },
  20538. "method": "GET",
  20539. "data": {}
  20540. });
  20541. // return http.request({
  20542. // url: '/api/blade-system/dept/university-list',
  20543. // method: 'GET'
  20544. // })
  20545. };
  20546. exports.university_list = university_list;
  20547. var college_list = function college_list(deptId) {
  20548. return wx.cloud.callContainer({
  20549. "path": "/blade-system/dept/college-list",
  20550. "header": {
  20551. "X-WX-SERVICE": "msserver"
  20552. },
  20553. "method": "GET",
  20554. "data": {
  20555. deptId: deptId
  20556. }
  20557. });
  20558. // return http.request({
  20559. // url: '/api/blade-system/dept/college-list',
  20560. // method: 'GET',
  20561. // params:{
  20562. // deptId
  20563. // }
  20564. // })
  20565. };
  20566. exports.college_list = college_list;
  20567. var specialty_list = function specialty_list(deptId) {
  20568. return wx.cloud.callContainer({
  20569. "path": "/blade-system/dept/specialty-list",
  20570. "header": {
  20571. "X-WX-SERVICE": "msserver"
  20572. },
  20573. "method": "GET",
  20574. "data": {
  20575. deptId: deptId
  20576. }
  20577. });
  20578. // return http.request({
  20579. // url: '/api/blade-system/dept/specialty-list',
  20580. // method: 'GET',
  20581. // params:{
  20582. // deptId
  20583. // }
  20584. // })
  20585. };
  20586. exports.specialty_list = specialty_list;
  20587. var grade_list = function grade_list(deptId) {
  20588. return wx.cloud.callContainer({
  20589. "path": "/blade-system/dept/grade-list",
  20590. "header": {
  20591. "X-WX-SERVICE": "msserver"
  20592. },
  20593. "method": "GET",
  20594. "data": {
  20595. deptId: deptId
  20596. }
  20597. });
  20598. // return http.request({
  20599. // url: '/api/blade-system/dept/grade-list',
  20600. // method: 'GET',
  20601. // params:{
  20602. // deptId
  20603. // }
  20604. // })
  20605. };
  20606. exports.grade_list = grade_list;
  20607. var _default = {
  20608. token: token,
  20609. wxlogin: wxlogin,
  20610. userInfo: userInfo,
  20611. updateinfos: updateinfos,
  20612. refreshToken: refreshToken
  20613. };
  20614. exports.default = _default;
  20615. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  20616. /***/ }),
  20617. /* 186 */
  20618. /*!**************************************************!*\
  20619. !*** D:/2024/HBuilderProjects/xcx/utils/func.js ***!
  20620. \**************************************************/
  20621. /*! no static exports found */
  20622. /***/ (function(module, exports, __webpack_require__) {
  20623. "use strict";
  20624. /* WEBPACK VAR INJECTION */(function(uni) {
  20625. Object.defineProperty(exports, "__esModule", {
  20626. value: true
  20627. });
  20628. exports.default = void 0;
  20629. var _user = __webpack_require__(/*! @/api/user.js */ 185);
  20630. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  20631. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  20632. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  20633. var install = function install(Vue, vm) {
  20634. //拿到全局变量
  20635. // 登录操作
  20636. var login = function login(userInfo, redirect) {
  20637. vm.$u.vuex('userInfo', userInfo);
  20638. vm.$u.vuex('accessToken', userInfo.access_token);
  20639. vm.$u.vuex('refreshToken', userInfo.refresh_token);
  20640. vm.$u.vuex('userInfo.tokenGeneratedTime', Date.now());
  20641. vm.$u.vuex('isLogin', true);
  20642. if (redirect) {
  20643. uni.redirectTo({
  20644. url: redirect,
  20645. fail: function fail() {
  20646. uni.switchTab({
  20647. url: redirect
  20648. });
  20649. }
  20650. });
  20651. } else uni.switchTab({
  20652. url: '/pages/index/index'
  20653. });
  20654. };
  20655. // 更新个人信息
  20656. var updateInfos = function updateInfos(pInfo, redirect) {
  20657. vm.$u.vuex('userInfo.detail.phone', pInfo.phone);
  20658. vm.$u.vuex('userInfo.detail.sfzh', pInfo.sfzh);
  20659. vm.$u.vuex('userInfo.detail.name', pInfo.name);
  20660. vm.$u.vuex('userInfo.detail.dz', pInfo.dz);
  20661. vm.$u.vuex('userInfo.detail.sqName', pInfo.sqmc);
  20662. if (redirect) {
  20663. uni.redirectTo({
  20664. url: redirect,
  20665. fail: function fail() {
  20666. uni.switchTab({
  20667. url: redirect
  20668. });
  20669. }
  20670. });
  20671. } else {
  20672. uni.switchTab({
  20673. url: '/pages/my/index'
  20674. });
  20675. }
  20676. };
  20677. // 退出登录
  20678. var logout = function logout() {
  20679. vm.$u.vuex('userInfo', {
  20680. avatar: '',
  20681. nick_name: '游客',
  20682. tenant_id: '暂无'
  20683. });
  20684. vm.$u.vuex('accessToken', '');
  20685. vm.$u.vuex('isLogin', false);
  20686. uni.redirectTo({
  20687. url: '/pageA/my/login'
  20688. });
  20689. };
  20690. var checkUpdate = function checkUpdate() {
  20691. if (vm.userInfo.detail.status == 0) {
  20692. vm.$u.func.showToast({
  20693. title: '请完善基础信息'
  20694. });
  20695. uni.navigateTo({
  20696. url: '/pageA/my/profile'
  20697. });
  20698. return false;
  20699. }
  20700. return true;
  20701. };
  20702. // 检查登录状态
  20703. var checkLogin = function checkLogin() {
  20704. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  20705. var tokenValidPeriod = 86400000;
  20706. if (!vm.isLogin) {
  20707. uni.navigateTo({
  20708. url: '/pageA/my/login'
  20709. });
  20710. return false;
  20711. } else if (vm.isLogin && Number(Date.now() - vm.userInfo.tokenGeneratedTime) > Number(tokenValidPeriod)) {
  20712. // 如果token为空或者已经超过有效期,需要生成新的token
  20713. vm.$u.vuex('userInfo', {
  20714. avatar: '',
  20715. nick_name: '游客',
  20716. tenant_id: '暂无'
  20717. });
  20718. vm.$u.vuex('accessToken', '');
  20719. vm.$u.vuex('isLogin', false);
  20720. console.log('token过期');
  20721. uni.navigateTo({
  20722. url: '/pageA/my/login'
  20723. });
  20724. return false;
  20725. } else {
  20726. return true;
  20727. }
  20728. };
  20729. var userLogin = function userLogin(code) {
  20730. (0, _user.wxlogin)({
  20731. code: code
  20732. }).then(function (res) {
  20733. console.log('接口返回------', res);
  20734. if (res.data.code == '100' || res.data.code == '500') {
  20735. vm.$u.func.showToast({
  20736. title: res.data.msg
  20737. });
  20738. uni.navigateTo({
  20739. url: '/pageA/my/login=' + res.data.data + '&code=' + code
  20740. });
  20741. }
  20742. if (res.data.code == '101') {
  20743. vm.$u.func.showToast({
  20744. title: res.data.msg
  20745. });
  20746. }
  20747. if (res.data.code == '102') {
  20748. vm.$u.func.showToast({
  20749. title: res.data.msg
  20750. });
  20751. }
  20752. if (res.data.code == '401') {
  20753. vm.$u.func.showToast({
  20754. title: res.data.msg
  20755. });
  20756. }
  20757. if (res.data.code == '200') {
  20758. //console.log(res,'res')
  20759. //vm.$u.func.showToast({ title: '登陆成功'})
  20760. vm.$u.vuex('accessToken', res.data.data.access_token);
  20761. vm.$u.vuex('refreshToken', res.data.data.refresh_token);
  20762. vm.$u.vuex('isLogin', true);
  20763. vm.$u.vuex('userInfo', res.data.data);
  20764. }
  20765. });
  20766. };
  20767. // 跳转路由前检查登录状态
  20768. // 跳转路由前检查登录状态
  20769. var route = function route(url) {
  20770. if (!vm.isLogin) {
  20771. uni.showToast({
  20772. title: '请先登录',
  20773. icon: 'none'
  20774. });
  20775. var pages = getCurrentPages();
  20776. var currentPage = pages[pages.length - 1];
  20777. setTimeout(function () {
  20778. uni.navigateTo({
  20779. url: "/pageA/my/login?redirect=/".concat(currentPage.route)
  20780. });
  20781. }, 500);
  20782. return false;
  20783. }
  20784. uni.navigateTo({
  20785. url: url
  20786. });
  20787. };
  20788. // URL参数转对象
  20789. var paramsToObj = function paramsToObj(url) {
  20790. if (url.indexOf('?') != -1) {
  20791. var _arr = url.split('?')[1];
  20792. }
  20793. var arr = url.split('&');
  20794. var obj = {};
  20795. var _iterator = _createForOfIteratorHelper(arr),
  20796. _step;
  20797. try {
  20798. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  20799. var i = _step.value;
  20800. obj[i.split('=')[0]] = i.split('=')[1];
  20801. }
  20802. } catch (err) {
  20803. _iterator.e(err);
  20804. } finally {
  20805. _iterator.f();
  20806. }
  20807. return obj;
  20808. };
  20809. // 刷新当前页面
  20810. var refreshPage = function refreshPage() {
  20811. var pages = getCurrentPages();
  20812. var currentPage = pages[pages.length - 1];
  20813. var path = '/' + currentPage.route + vm.$u.queryParams(currentPage.options);
  20814. if (vm.$u.test.contains(currentPage.route, 'tabbar')) {
  20815. uni.reLaunch({
  20816. url: path,
  20817. fail: function fail(err) {
  20818. console.log(err);
  20819. }
  20820. });
  20821. } else {
  20822. uni.redirectTo({
  20823. url: path,
  20824. fail: function fail(err) {
  20825. console.log(err);
  20826. }
  20827. });
  20828. }
  20829. };
  20830. // 提示
  20831. var showToast = function showToast() {
  20832. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  20833. if (typeof data == 'string') {
  20834. uni.showToast({
  20835. title: data,
  20836. icon: 'none'
  20837. });
  20838. } else {
  20839. uni.showToast({
  20840. title: data.title,
  20841. icon: data.icon || 'none',
  20842. image: data.image || '',
  20843. mask: data.mask || false,
  20844. position: data.position || 'center',
  20845. duration: data.duration || 1500,
  20846. success: function success() {
  20847. setTimeout(function () {
  20848. if (data.back) return uni.navigateBack();
  20849. data.success && data.success();
  20850. }, data.duration || 1500);
  20851. }
  20852. });
  20853. }
  20854. };
  20855. // 刷新token
  20856. var refreshToken = function refreshToken(data) {
  20857. return new Promise(function (resolve) {
  20858. vm.$u.vuex('accessToken', data.access_token);
  20859. vm.$u.vuex('refreshToken', data.refresh_token);
  20860. resolve();
  20861. });
  20862. };
  20863. // 将定义的方法挂载,使用this.$u.func.xx调用
  20864. Vue.prototype.$u.func = {
  20865. login: login,
  20866. logout: logout,
  20867. route: route,
  20868. updateInfos: updateInfos,
  20869. checkLogin: checkLogin,
  20870. checkUpdate: checkUpdate,
  20871. paramsToObj: paramsToObj,
  20872. refreshPage: refreshPage,
  20873. showToast: showToast,
  20874. refreshToken: refreshToken
  20875. };
  20876. };
  20877. var _default = {
  20878. install: install
  20879. };
  20880. exports.default = _default;
  20881. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  20882. /***/ }),
  20883. /* 187 */
  20884. /*!******************************************************!*\
  20885. !*** D:/2024/HBuilderProjects/xcx/store/$u.mixin.js ***!
  20886. \******************************************************/
  20887. /*! no static exports found */
  20888. /***/ (function(module, exports, __webpack_require__) {
  20889. "use strict";
  20890. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  20891. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  20892. var _vuex = __webpack_require__(/*! vuex */ 159);
  20893. var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 158));
  20894. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  20895. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  20896. // 尝试将用户在根目录中的store/index.js的vuex的state变量,全部加载到全局变量中
  20897. var $uStoreKey = [];
  20898. try {
  20899. $uStoreKey = _store.default.state ? Object.keys(_store.default.state) : [];
  20900. } catch (e) {}
  20901. module.exports = {
  20902. mounted: function mounted() {
  20903. var _this = this;
  20904. // 将vuex方法挂在到$u中
  20905. // 使用方法为:如果要修改vuex的state中的user.name变量为"史诗" => this.$u.vuex('user.name', '史诗')
  20906. // 如果要修改vuex的state的version变量为1.0.1 => this.$u.vuex('version', '1.0.1')
  20907. this.$u.vuex = function (name, value) {
  20908. _this.$store.commit('$uStore', {
  20909. name: name,
  20910. value: value
  20911. });
  20912. };
  20913. },
  20914. computed: _objectSpread({}, (0, _vuex.mapState)($uStoreKey))
  20915. };
  20916. /***/ }),
  20917. /* 188 */,
  20918. /* 189 */,
  20919. /* 190 */,
  20920. /* 191 */,
  20921. /* 192 */,
  20922. /* 193 */,
  20923. /* 194 */,
  20924. /* 195 */,
  20925. /* 196 */,
  20926. /* 197 */,
  20927. /* 198 */,
  20928. /* 199 */,
  20929. /* 200 */,
  20930. /* 201 */,
  20931. /* 202 */,
  20932. /* 203 */,
  20933. /* 204 */,
  20934. /* 205 */,
  20935. /* 206 */,
  20936. /* 207 */,
  20937. /* 208 */
  20938. /*!*************************************************************!*\
  20939. !*** D:/2024/HBuilderProjects/xcx/static/nav/nav_line2.png ***!
  20940. \*************************************************************/
  20941. /*! no static exports found */
  20942. /***/ (function(module, exports) {
  20943. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAKCAYAAADGmhxQAAAAAXNSR0IArs4c6QAAAmJJREFUOE+9lL1rFFEUxc+59+1mVyUJQUkhCpGAIoKNsbFV1EpIISgqgrDGFIEtbPwAESyMIhEMCpK/wE4EESQoYmERLLQRFQQ/kCgmG4kiycyV93ZmfFmzIIgODHd4b2be755z3iMAVIbstAIjJKqkTabCs/PX+MzP/a9r+w3bZinqAHaLIHElXH58jJdYrdlJ0EZJQATwlYJFFd40YnR2jG/+JeTAuA0mCeogdpAgxZoMJEolnGClZp9IWx0Aw0QADM8QLopgEoJbMNz7coVv/xZ28zkrl3uwK02wUwSDMFvv1/slECE0QACn/MhKLf1GoBrUy1/MIJud5OM00t6J4CnJKRIfVPDelTGTAnOpQ2OhA7PVeSToQkV+oNM59GqCtUjRR8UmEFtJbCFsZRAhEyJUYdNBryD8ogZRfvcWXwVspBUuqJn9pABdAty+ofzbODatYwFKM8hMnNhBb7EqxryR6BiyupidF8GqPIdRHgvri7FW0CgWcURi6+KGc7c0hgywPoRBuWkhTj04wokA6K/qsK0TSy9QeEAI1w7Uq1/MxWBLchSpG49njuRgqs33fPX/VGEDivEVxMW7hzjnuQrAHLRz2PrpUCdxkLTuovMol8van+Up32BF9Yv7pvKaqRagstspX4nDhCvj+v39bMQb8TfAYvKoVXq6sI8OewW2h4LeZVVtUS63L0DlGc43RFAJEEdTsRfieMeVcPvhYT5qdzq0B2z5oveM9THFgAIbIehXwQbC1oiim/TZpaNYiUJTwh9PC1R8VcEMBdO09LWU5KUqnifAk6nj/PwnR9ZPgLiIQMa1NuYAAAAASUVORK5CYII="
  20944. /***/ }),
  20945. /* 209 */,
  20946. /* 210 */,
  20947. /* 211 */,
  20948. /* 212 */,
  20949. /* 213 */,
  20950. /* 214 */,
  20951. /* 215 */,
  20952. /* 216 */,
  20953. /* 217 */,
  20954. /* 218 */,
  20955. /* 219 */,
  20956. /* 220 */,
  20957. /* 221 */,
  20958. /* 222 */,
  20959. /* 223 */,
  20960. /* 224 */,
  20961. /* 225 */,
  20962. /* 226 */,
  20963. /* 227 */,
  20964. /* 228 */,
  20965. /* 229 */,
  20966. /* 230 */,
  20967. /* 231 */,
  20968. /* 232 */,
  20969. /* 233 */,
  20970. /* 234 */,
  20971. /* 235 */,
  20972. /* 236 */,
  20973. /* 237 */,
  20974. /* 238 */,
  20975. /* 239 */,
  20976. /* 240 */,
  20977. /* 241 */,
  20978. /* 242 */,
  20979. /* 243 */,
  20980. /* 244 */,
  20981. /* 245 */,
  20982. /* 246 */,
  20983. /* 247 */,
  20984. /* 248 */,
  20985. /* 249 */,
  20986. /* 250 */,
  20987. /* 251 */,
  20988. /* 252 */,
  20989. /* 253 */,
  20990. /* 254 */,
  20991. /* 255 */,
  20992. /* 256 */,
  20993. /* 257 */,
  20994. /* 258 */,
  20995. /* 259 */,
  20996. /* 260 */,
  20997. /* 261 */,
  20998. /* 262 */,
  20999. /* 263 */,
  21000. /* 264 */,
  21001. /* 265 */,
  21002. /* 266 */,
  21003. /* 267 */,
  21004. /* 268 */,
  21005. /* 269 */,
  21006. /* 270 */,
  21007. /* 271 */,
  21008. /* 272 */,
  21009. /* 273 */,
  21010. /* 274 */,
  21011. /* 275 */,
  21012. /* 276 */,
  21013. /* 277 */,
  21014. /* 278 */,
  21015. /* 279 */,
  21016. /* 280 */,
  21017. /* 281 */,
  21018. /* 282 */,
  21019. /* 283 */,
  21020. /* 284 */,
  21021. /* 285 */,
  21022. /* 286 */,
  21023. /* 287 */,
  21024. /* 288 */,
  21025. /* 289 */,
  21026. /* 290 */,
  21027. /* 291 */,
  21028. /* 292 */,
  21029. /* 293 */,
  21030. /* 294 */,
  21031. /* 295 */,
  21032. /* 296 */,
  21033. /* 297 */,
  21034. /* 298 */,
  21035. /* 299 */,
  21036. /* 300 */,
  21037. /* 301 */,
  21038. /* 302 */,
  21039. /* 303 */,
  21040. /* 304 */,
  21041. /* 305 */,
  21042. /* 306 */,
  21043. /* 307 */,
  21044. /* 308 */,
  21045. /* 309 */,
  21046. /* 310 */,
  21047. /* 311 */,
  21048. /* 312 */,
  21049. /* 313 */,
  21050. /* 314 */,
  21051. /* 315 */
  21052. /*!***********************************************!*\
  21053. !*** ./node_modules/path-browserify/index.js ***!
  21054. \***********************************************/
  21055. /*! no static exports found */
  21056. /***/ (function(module, exports, __webpack_require__) {
  21057. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  21058. // backported and transplited with Babel, with backwards-compat fixes
  21059. // Copyright Joyent, Inc. and other Node contributors.
  21060. //
  21061. // Permission is hereby granted, free of charge, to any person obtaining a
  21062. // copy of this software and associated documentation files (the
  21063. // "Software"), to deal in the Software without restriction, including
  21064. // without limitation the rights to use, copy, modify, merge, publish,
  21065. // distribute, sublicense, and/or sell copies of the Software, and to permit
  21066. // persons to whom the Software is furnished to do so, subject to the
  21067. // following conditions:
  21068. //
  21069. // The above copyright notice and this permission notice shall be included
  21070. // in all copies or substantial portions of the Software.
  21071. //
  21072. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  21073. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  21074. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  21075. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  21076. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  21077. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  21078. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  21079. // resolves . and .. elements in a path array with directory names there
  21080. // must be no slashes, empty elements, or device names (c:\) in the array
  21081. // (so also no leading and trailing slashes - it does not distinguish
  21082. // relative and absolute paths)
  21083. function normalizeArray(parts, allowAboveRoot) {
  21084. // if the path tries to go above the root, `up` ends up > 0
  21085. var up = 0;
  21086. for (var i = parts.length - 1; i >= 0; i--) {
  21087. var last = parts[i];
  21088. if (last === '.') {
  21089. parts.splice(i, 1);
  21090. } else if (last === '..') {
  21091. parts.splice(i, 1);
  21092. up++;
  21093. } else if (up) {
  21094. parts.splice(i, 1);
  21095. up--;
  21096. }
  21097. }
  21098. // if the path is allowed to go above the root, restore leading ..s
  21099. if (allowAboveRoot) {
  21100. for (; up--; up) {
  21101. parts.unshift('..');
  21102. }
  21103. }
  21104. return parts;
  21105. }
  21106. // path.resolve([from ...], to)
  21107. // posix version
  21108. exports.resolve = function() {
  21109. var resolvedPath = '',
  21110. resolvedAbsolute = false;
  21111. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  21112. var path = (i >= 0) ? arguments[i] : process.cwd();
  21113. // Skip empty and invalid entries
  21114. if (typeof path !== 'string') {
  21115. throw new TypeError('Arguments to path.resolve must be strings');
  21116. } else if (!path) {
  21117. continue;
  21118. }
  21119. resolvedPath = path + '/' + resolvedPath;
  21120. resolvedAbsolute = path.charAt(0) === '/';
  21121. }
  21122. // At this point the path should be resolved to a full absolute path, but
  21123. // handle relative paths to be safe (might happen when process.cwd() fails)
  21124. // Normalize the path
  21125. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  21126. return !!p;
  21127. }), !resolvedAbsolute).join('/');
  21128. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  21129. };
  21130. // path.normalize(path)
  21131. // posix version
  21132. exports.normalize = function(path) {
  21133. var isAbsolute = exports.isAbsolute(path),
  21134. trailingSlash = substr(path, -1) === '/';
  21135. // Normalize the path
  21136. path = normalizeArray(filter(path.split('/'), function(p) {
  21137. return !!p;
  21138. }), !isAbsolute).join('/');
  21139. if (!path && !isAbsolute) {
  21140. path = '.';
  21141. }
  21142. if (path && trailingSlash) {
  21143. path += '/';
  21144. }
  21145. return (isAbsolute ? '/' : '') + path;
  21146. };
  21147. // posix version
  21148. exports.isAbsolute = function(path) {
  21149. return path.charAt(0) === '/';
  21150. };
  21151. // posix version
  21152. exports.join = function() {
  21153. var paths = Array.prototype.slice.call(arguments, 0);
  21154. return exports.normalize(filter(paths, function(p, index) {
  21155. if (typeof p !== 'string') {
  21156. throw new TypeError('Arguments to path.join must be strings');
  21157. }
  21158. return p;
  21159. }).join('/'));
  21160. };
  21161. // path.relative(from, to)
  21162. // posix version
  21163. exports.relative = function(from, to) {
  21164. from = exports.resolve(from).substr(1);
  21165. to = exports.resolve(to).substr(1);
  21166. function trim(arr) {
  21167. var start = 0;
  21168. for (; start < arr.length; start++) {
  21169. if (arr[start] !== '') break;
  21170. }
  21171. var end = arr.length - 1;
  21172. for (; end >= 0; end--) {
  21173. if (arr[end] !== '') break;
  21174. }
  21175. if (start > end) return [];
  21176. return arr.slice(start, end - start + 1);
  21177. }
  21178. var fromParts = trim(from.split('/'));
  21179. var toParts = trim(to.split('/'));
  21180. var length = Math.min(fromParts.length, toParts.length);
  21181. var samePartsLength = length;
  21182. for (var i = 0; i < length; i++) {
  21183. if (fromParts[i] !== toParts[i]) {
  21184. samePartsLength = i;
  21185. break;
  21186. }
  21187. }
  21188. var outputParts = [];
  21189. for (var i = samePartsLength; i < fromParts.length; i++) {
  21190. outputParts.push('..');
  21191. }
  21192. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  21193. return outputParts.join('/');
  21194. };
  21195. exports.sep = '/';
  21196. exports.delimiter = ':';
  21197. exports.dirname = function (path) {
  21198. if (typeof path !== 'string') path = path + '';
  21199. if (path.length === 0) return '.';
  21200. var code = path.charCodeAt(0);
  21201. var hasRoot = code === 47 /*/*/;
  21202. var end = -1;
  21203. var matchedSlash = true;
  21204. for (var i = path.length - 1; i >= 1; --i) {
  21205. code = path.charCodeAt(i);
  21206. if (code === 47 /*/*/) {
  21207. if (!matchedSlash) {
  21208. end = i;
  21209. break;
  21210. }
  21211. } else {
  21212. // We saw the first non-path separator
  21213. matchedSlash = false;
  21214. }
  21215. }
  21216. if (end === -1) return hasRoot ? '/' : '.';
  21217. if (hasRoot && end === 1) {
  21218. // return '//';
  21219. // Backwards-compat fix:
  21220. return '/';
  21221. }
  21222. return path.slice(0, end);
  21223. };
  21224. function basename(path) {
  21225. if (typeof path !== 'string') path = path + '';
  21226. var start = 0;
  21227. var end = -1;
  21228. var matchedSlash = true;
  21229. var i;
  21230. for (i = path.length - 1; i >= 0; --i) {
  21231. if (path.charCodeAt(i) === 47 /*/*/) {
  21232. // If we reached a path separator that was not part of a set of path
  21233. // separators at the end of the string, stop now
  21234. if (!matchedSlash) {
  21235. start = i + 1;
  21236. break;
  21237. }
  21238. } else if (end === -1) {
  21239. // We saw the first non-path separator, mark this as the end of our
  21240. // path component
  21241. matchedSlash = false;
  21242. end = i + 1;
  21243. }
  21244. }
  21245. if (end === -1) return '';
  21246. return path.slice(start, end);
  21247. }
  21248. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  21249. // in new Node.js versions, so only basename() above is backported here
  21250. exports.basename = function (path, ext) {
  21251. var f = basename(path);
  21252. if (ext && f.substr(-1 * ext.length) === ext) {
  21253. f = f.substr(0, f.length - ext.length);
  21254. }
  21255. return f;
  21256. };
  21257. exports.extname = function (path) {
  21258. if (typeof path !== 'string') path = path + '';
  21259. var startDot = -1;
  21260. var startPart = 0;
  21261. var end = -1;
  21262. var matchedSlash = true;
  21263. // Track the state of characters (if any) we see before our first dot and
  21264. // after any path separator we find
  21265. var preDotState = 0;
  21266. for (var i = path.length - 1; i >= 0; --i) {
  21267. var code = path.charCodeAt(i);
  21268. if (code === 47 /*/*/) {
  21269. // If we reached a path separator that was not part of a set of path
  21270. // separators at the end of the string, stop now
  21271. if (!matchedSlash) {
  21272. startPart = i + 1;
  21273. break;
  21274. }
  21275. continue;
  21276. }
  21277. if (end === -1) {
  21278. // We saw the first non-path separator, mark this as the end of our
  21279. // extension
  21280. matchedSlash = false;
  21281. end = i + 1;
  21282. }
  21283. if (code === 46 /*.*/) {
  21284. // If this is our first dot, mark it as the start of our extension
  21285. if (startDot === -1)
  21286. startDot = i;
  21287. else if (preDotState !== 1)
  21288. preDotState = 1;
  21289. } else if (startDot !== -1) {
  21290. // We saw a non-dot and non-path separator before our dot, so we should
  21291. // have a good chance at having a non-empty extension
  21292. preDotState = -1;
  21293. }
  21294. }
  21295. if (startDot === -1 || end === -1 ||
  21296. // We saw a non-dot character immediately before the dot
  21297. preDotState === 0 ||
  21298. // The (right-most) trimmed path component is exactly '..'
  21299. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  21300. return '';
  21301. }
  21302. return path.slice(startDot, end);
  21303. };
  21304. function filter (xs, f) {
  21305. if (xs.filter) return xs.filter(f);
  21306. var res = [];
  21307. for (var i = 0; i < xs.length; i++) {
  21308. if (f(xs[i], i, xs)) res.push(xs[i]);
  21309. }
  21310. return res;
  21311. }
  21312. // String.prototype.substr - negative index don't work in IE8
  21313. var substr = 'ab'.substr(-1) === 'b'
  21314. ? function (str, start, len) { return str.substr(start, len) }
  21315. : function (str, start, len) {
  21316. if (start < 0) start = str.length + start;
  21317. return str.substr(start, len);
  21318. }
  21319. ;
  21320. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 316)))
  21321. /***/ }),
  21322. /* 316 */
  21323. /*!********************************************************!*\
  21324. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  21325. \********************************************************/
  21326. /*! no static exports found */
  21327. /***/ (function(module, exports, __webpack_require__) {
  21328. exports.nextTick = function nextTick(fn) {
  21329. var args = Array.prototype.slice.call(arguments);
  21330. args.shift();
  21331. setTimeout(function () {
  21332. fn.apply(null, args);
  21333. }, 0);
  21334. };
  21335. exports.platform = exports.arch =
  21336. exports.execPath = exports.title = 'browser';
  21337. exports.pid = 1;
  21338. exports.browser = true;
  21339. exports.env = {};
  21340. exports.argv = [];
  21341. exports.binding = function (name) {
  21342. throw new Error('No such module. (Possibly not yet loaded)')
  21343. };
  21344. (function () {
  21345. var cwd = '/';
  21346. var path;
  21347. exports.cwd = function () { return cwd };
  21348. exports.chdir = function (dir) {
  21349. if (!path) path = __webpack_require__(/*! path */ 315);
  21350. cwd = path.resolve(dir, cwd);
  21351. };
  21352. })();
  21353. exports.exit = exports.kill =
  21354. exports.umask = exports.dlopen =
  21355. exports.uptime = exports.memoryUsage =
  21356. exports.uvCounters = function() {};
  21357. exports.features = {};
  21358. /***/ }),
  21359. /* 317 */,
  21360. /* 318 */,
  21361. /* 319 */,
  21362. /* 320 */,
  21363. /* 321 */,
  21364. /* 322 */,
  21365. /* 323 */,
  21366. /* 324 */,
  21367. /* 325 */,
  21368. /* 326 */,
  21369. /* 327 */,
  21370. /* 328 */,
  21371. /* 329 */,
  21372. /* 330 */,
  21373. /* 331 */,
  21374. /* 332 */,
  21375. /* 333 */,
  21376. /* 334 */,
  21377. /* 335 */,
  21378. /* 336 */,
  21379. /* 337 */,
  21380. /* 338 */,
  21381. /* 339 */,
  21382. /* 340 */,
  21383. /* 341 */,
  21384. /* 342 */,
  21385. /* 343 */,
  21386. /* 344 */,
  21387. /* 345 */,
  21388. /* 346 */,
  21389. /* 347 */,
  21390. /* 348 */,
  21391. /* 349 */
  21392. /*!********************************************************************************************!*\
  21393. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-loading-page/props.js ***!
  21394. \********************************************************************************************/
  21395. /*! no static exports found */
  21396. /***/ (function(module, exports, __webpack_require__) {
  21397. "use strict";
  21398. /* WEBPACK VAR INJECTION */(function(uni) {
  21399. Object.defineProperty(exports, "__esModule", {
  21400. value: true
  21401. });
  21402. exports.default = void 0;
  21403. var _default = {
  21404. props: {
  21405. // 提示内容
  21406. loadingText: {
  21407. type: [String, Number],
  21408. default: uni.$u.props.loadingPage.loadingText
  21409. },
  21410. // 文字上方用于替换loading动画的图片
  21411. image: {
  21412. type: String,
  21413. default: uni.$u.props.loadingPage.image
  21414. },
  21415. // 加载动画的模式,circle-圆形,spinner-花朵形,semicircle-半圆形
  21416. loadingMode: {
  21417. type: String,
  21418. default: uni.$u.props.loadingPage.loadingMode
  21419. },
  21420. // 是否加载中
  21421. loading: {
  21422. type: Boolean,
  21423. default: uni.$u.props.loadingPage.loading
  21424. },
  21425. // 背景色
  21426. bgColor: {
  21427. type: String,
  21428. default: uni.$u.props.loadingPage.bgColor
  21429. },
  21430. // 文字颜色
  21431. color: {
  21432. type: String,
  21433. default: uni.$u.props.loadingPage.color
  21434. },
  21435. // 文字大小
  21436. fontSize: {
  21437. type: [String, Number],
  21438. default: uni.$u.props.loadingPage.fontSize
  21439. },
  21440. // 图标大小
  21441. iconSize: {
  21442. type: [String, Number],
  21443. default: uni.$u.props.loadingPage.fontSize
  21444. },
  21445. // 加载中图标的颜色,只能rgb或者十六进制颜色值
  21446. loadingColor: {
  21447. type: String,
  21448. default: uni.$u.props.loadingPage.loadingColor
  21449. }
  21450. }
  21451. };
  21452. exports.default = _default;
  21453. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21454. /***/ }),
  21455. /* 350 */,
  21456. /* 351 */,
  21457. /* 352 */,
  21458. /* 353 */,
  21459. /* 354 */,
  21460. /* 355 */,
  21461. /* 356 */,
  21462. /* 357 */
  21463. /*!*******************************************************************************************************!*\
  21464. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js ***!
  21465. \*******************************************************************************************************/
  21466. /*! no static exports found */
  21467. /***/ (function(module, exports, __webpack_require__) {
  21468. "use strict";
  21469. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  21470. Object.defineProperty(exports, "__esModule", {
  21471. value: true
  21472. });
  21473. exports.default = void 0;
  21474. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 358));
  21475. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 359));
  21476. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 360));
  21477. var _default = {
  21478. en: _en.default,
  21479. 'zh-Hans': _zhHans.default,
  21480. 'zh-Hant': _zhHant.default
  21481. };
  21482. exports.default = _default;
  21483. /***/ }),
  21484. /* 358 */
  21485. /*!******************************************************************************************************!*\
  21486. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json ***!
  21487. \******************************************************************************************************/
  21488. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  21489. /***/ (function(module) {
  21490. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"cancel\",\"uni-search-bar.placeholder\":\"Search enter content\"}");
  21491. /***/ }),
  21492. /* 359 */
  21493. /*!***********************************************************************************************************!*\
  21494. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json ***!
  21495. \***********************************************************************************************************/
  21496. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  21497. /***/ (function(module) {
  21498. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"取消\",\"uni-search-bar.placeholder\":\"请输入搜索内容\"}");
  21499. /***/ }),
  21500. /* 360 */
  21501. /*!***********************************************************************************************************!*\
  21502. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json ***!
  21503. \***********************************************************************************************************/
  21504. /*! exports provided: uni-search-bar.cancel, uni-search-bar.placeholder, default */
  21505. /***/ (function(module) {
  21506. module.exports = JSON.parse("{\"uni-search-bar.cancel\":\"取消\",\"uni-search-bar.placeholder\":\"請輸入搜索內容\"}");
  21507. /***/ }),
  21508. /* 361 */,
  21509. /* 362 */,
  21510. /* 363 */,
  21511. /* 364 */,
  21512. /* 365 */,
  21513. /* 366 */,
  21514. /* 367 */,
  21515. /* 368 */
  21516. /*!************************************************************************************!*\
  21517. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-tabs/props.js ***!
  21518. \************************************************************************************/
  21519. /*! no static exports found */
  21520. /***/ (function(module, exports, __webpack_require__) {
  21521. "use strict";
  21522. /* WEBPACK VAR INJECTION */(function(uni) {
  21523. Object.defineProperty(exports, "__esModule", {
  21524. value: true
  21525. });
  21526. exports.default = void 0;
  21527. var _default = {
  21528. props: {
  21529. // 滑块的移动过渡时间,单位ms
  21530. duration: {
  21531. type: Number,
  21532. default: uni.$u.props.tabs.duration
  21533. },
  21534. // tabs标签数组
  21535. list: {
  21536. type: Array,
  21537. default: uni.$u.props.tabs.list
  21538. },
  21539. // 滑块颜色
  21540. lineColor: {
  21541. type: String,
  21542. default: uni.$u.props.tabs.lineColor
  21543. },
  21544. // 菜单选择中时的样式
  21545. activeStyle: {
  21546. type: [String, Object],
  21547. default: uni.$u.props.tabs.activeStyle
  21548. },
  21549. // 菜单非选中时的样式
  21550. inactiveStyle: {
  21551. type: [String, Object],
  21552. default: uni.$u.props.tabs.inactiveStyle
  21553. },
  21554. // 滑块长度
  21555. lineWidth: {
  21556. type: [String, Number],
  21557. default: uni.$u.props.tabs.lineWidth
  21558. },
  21559. // 滑块高度
  21560. lineHeight: {
  21561. type: [String, Number],
  21562. default: uni.$u.props.tabs.lineHeight
  21563. },
  21564. // 滑块背景显示大小,当滑块背景设置为图片时使用
  21565. lineBgSize: {
  21566. type: String,
  21567. default: uni.$u.props.tabs.lineBgSize
  21568. },
  21569. // 菜单item的样式
  21570. itemStyle: {
  21571. type: [String, Object],
  21572. default: uni.$u.props.tabs.itemStyle
  21573. },
  21574. // 菜单是否可滚动
  21575. scrollable: {
  21576. type: Boolean,
  21577. default: uni.$u.props.tabs.scrollable
  21578. },
  21579. // 当前选中标签的索引
  21580. current: {
  21581. type: [Number, String],
  21582. default: uni.$u.props.tabs.current
  21583. },
  21584. // 默认读取的键名
  21585. keyName: {
  21586. type: String,
  21587. default: uni.$u.props.tabs.keyName
  21588. }
  21589. }
  21590. };
  21591. exports.default = _default;
  21592. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21593. /***/ }),
  21594. /* 369 */,
  21595. /* 370 */,
  21596. /* 371 */,
  21597. /* 372 */,
  21598. /* 373 */,
  21599. /* 374 */,
  21600. /* 375 */,
  21601. /* 376 */
  21602. /*!************************************************************************************!*\
  21603. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-list/props.js ***!
  21604. \************************************************************************************/
  21605. /*! no static exports found */
  21606. /***/ (function(module, exports, __webpack_require__) {
  21607. "use strict";
  21608. /* WEBPACK VAR INJECTION */(function(uni) {
  21609. Object.defineProperty(exports, "__esModule", {
  21610. value: true
  21611. });
  21612. exports.default = void 0;
  21613. var _default = {
  21614. props: {
  21615. // 控制是否出现滚动条,仅nvue有效
  21616. showScrollbar: {
  21617. type: Boolean,
  21618. default: uni.$u.props.list.showScrollbar
  21619. },
  21620. // 距底部多少时触发scrolltolower事件
  21621. lowerThreshold: {
  21622. type: [String, Number],
  21623. default: uni.$u.props.list.lowerThreshold
  21624. },
  21625. // 距顶部多少时触发scrolltoupper事件,非nvue有效
  21626. upperThreshold: {
  21627. type: [String, Number],
  21628. default: uni.$u.props.list.upperThreshold
  21629. },
  21630. // 设置竖向滚动条位置
  21631. scrollTop: {
  21632. type: [String, Number],
  21633. default: uni.$u.props.list.scrollTop
  21634. },
  21635. // 控制 onscroll 事件触发的频率,仅nvue有效
  21636. offsetAccuracy: {
  21637. type: [String, Number],
  21638. default: uni.$u.props.list.offsetAccuracy
  21639. },
  21640. // 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效
  21641. enableFlex: {
  21642. type: Boolean,
  21643. default: uni.$u.props.list.enableFlex
  21644. },
  21645. // 是否按分页模式显示List,默认值false
  21646. pagingEnabled: {
  21647. type: Boolean,
  21648. default: uni.$u.props.list.pagingEnabled
  21649. },
  21650. // 是否允许List滚动
  21651. scrollable: {
  21652. type: Boolean,
  21653. default: uni.$u.props.list.scrollable
  21654. },
  21655. // 值应为某子元素id(id不能以数字开头)
  21656. scrollIntoView: {
  21657. type: String,
  21658. default: uni.$u.props.list.scrollIntoView
  21659. },
  21660. // 在设置滚动条位置时使用动画过渡
  21661. scrollWithAnimation: {
  21662. type: Boolean,
  21663. default: uni.$u.props.list.scrollWithAnimation
  21664. },
  21665. // iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效
  21666. enableBackToTop: {
  21667. type: Boolean,
  21668. default: uni.$u.props.list.enableBackToTop
  21669. },
  21670. // 列表的高度
  21671. height: {
  21672. type: [String, Number],
  21673. default: uni.$u.props.list.height
  21674. },
  21675. // 列表宽度
  21676. width: {
  21677. type: [String, Number],
  21678. default: uni.$u.props.list.width
  21679. },
  21680. // 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度
  21681. preLoadScreen: {
  21682. type: [String, Number],
  21683. default: uni.$u.props.list.preLoadScreen
  21684. }
  21685. // vue下,是否开启虚拟列表
  21686. }
  21687. };
  21688. exports.default = _default;
  21689. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21690. /***/ }),
  21691. /* 377 */,
  21692. /* 378 */,
  21693. /* 379 */,
  21694. /* 380 */,
  21695. /* 381 */,
  21696. /* 382 */,
  21697. /* 383 */,
  21698. /* 384 */
  21699. /*!*****************************************************************************************!*\
  21700. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-list-item/props.js ***!
  21701. \*****************************************************************************************/
  21702. /*! no static exports found */
  21703. /***/ (function(module, exports, __webpack_require__) {
  21704. "use strict";
  21705. /* WEBPACK VAR INJECTION */(function(uni) {
  21706. Object.defineProperty(exports, "__esModule", {
  21707. value: true
  21708. });
  21709. exports.default = void 0;
  21710. var _default = {
  21711. props: {
  21712. // 用于滚动到指定item
  21713. anchor: {
  21714. type: [String, Number],
  21715. default: uni.$u.props.listItem.anchor
  21716. }
  21717. }
  21718. };
  21719. exports.default = _default;
  21720. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21721. /***/ }),
  21722. /* 385 */,
  21723. /* 386 */,
  21724. /* 387 */,
  21725. /* 388 */,
  21726. /* 389 */,
  21727. /* 390 */,
  21728. /* 391 */,
  21729. /* 392 */
  21730. /*!***********************************************************************************!*\
  21731. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-row/props.js ***!
  21732. \***********************************************************************************/
  21733. /*! no static exports found */
  21734. /***/ (function(module, exports, __webpack_require__) {
  21735. "use strict";
  21736. /* WEBPACK VAR INJECTION */(function(uni) {
  21737. Object.defineProperty(exports, "__esModule", {
  21738. value: true
  21739. });
  21740. exports.default = void 0;
  21741. var _default = {
  21742. props: {
  21743. // 给col添加间距,左右边距各占一半
  21744. gutter: {
  21745. type: [String, Number],
  21746. default: uni.$u.props.row.gutter
  21747. },
  21748. // 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`)
  21749. justify: {
  21750. type: String,
  21751. default: uni.$u.props.row.justify
  21752. },
  21753. // 垂直对齐方式,可选值为top、center、bottom
  21754. align: {
  21755. type: String,
  21756. default: uni.$u.props.row.align
  21757. }
  21758. }
  21759. };
  21760. exports.default = _default;
  21761. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21762. /***/ }),
  21763. /* 393 */,
  21764. /* 394 */,
  21765. /* 395 */,
  21766. /* 396 */,
  21767. /* 397 */,
  21768. /* 398 */,
  21769. /* 399 */,
  21770. /* 400 */
  21771. /*!***********************************************************************************!*\
  21772. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-col/props.js ***!
  21773. \***********************************************************************************/
  21774. /*! no static exports found */
  21775. /***/ (function(module, exports, __webpack_require__) {
  21776. "use strict";
  21777. /* WEBPACK VAR INJECTION */(function(uni) {
  21778. Object.defineProperty(exports, "__esModule", {
  21779. value: true
  21780. });
  21781. exports.default = void 0;
  21782. var _default = {
  21783. props: {
  21784. // 占父容器宽度的多少等分,总分为12份
  21785. span: {
  21786. type: [String, Number],
  21787. default: uni.$u.props.col.span
  21788. },
  21789. // 指定栅格左侧的间隔数(总12栏)
  21790. offset: {
  21791. type: [String, Number],
  21792. default: uni.$u.props.col.offset
  21793. },
  21794. // 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`)
  21795. justify: {
  21796. type: String,
  21797. default: uni.$u.props.col.justify
  21798. },
  21799. // 垂直对齐方式,可选值为top、center、bottom、stretch
  21800. align: {
  21801. type: String,
  21802. default: uni.$u.props.col.align
  21803. },
  21804. // 文字对齐方式
  21805. textAlign: {
  21806. type: String,
  21807. default: uni.$u.props.col.textAlign
  21808. }
  21809. }
  21810. };
  21811. exports.default = _default;
  21812. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21813. /***/ }),
  21814. /* 401 */,
  21815. /* 402 */,
  21816. /* 403 */,
  21817. /* 404 */,
  21818. /* 405 */,
  21819. /* 406 */,
  21820. /* 407 */,
  21821. /* 408 */
  21822. /*!****************************************************************************************!*\
  21823. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-loadmore/props.js ***!
  21824. \****************************************************************************************/
  21825. /*! no static exports found */
  21826. /***/ (function(module, exports, __webpack_require__) {
  21827. "use strict";
  21828. /* WEBPACK VAR INJECTION */(function(uni) {
  21829. Object.defineProperty(exports, "__esModule", {
  21830. value: true
  21831. });
  21832. exports.default = void 0;
  21833. var _default = {
  21834. props: {
  21835. // 组件状态,loadmore-加载前的状态,loading-加载中的状态,nomore-没有更多的状态
  21836. status: {
  21837. type: String,
  21838. default: uni.$u.props.loadmore.status
  21839. },
  21840. // 组件背景色
  21841. bgColor: {
  21842. type: String,
  21843. default: uni.$u.props.loadmore.bgColor
  21844. },
  21845. // 是否显示加载中的图标
  21846. icon: {
  21847. type: Boolean,
  21848. default: uni.$u.props.loadmore.icon
  21849. },
  21850. // 字体大小
  21851. fontSize: {
  21852. type: [String, Number],
  21853. default: uni.$u.props.loadmore.fontSize
  21854. },
  21855. // 图标大小
  21856. iconSize: {
  21857. type: [String, Number],
  21858. default: uni.$u.props.loadmore.iconSize
  21859. },
  21860. // 字体颜色
  21861. color: {
  21862. type: String,
  21863. default: uni.$u.props.loadmore.color
  21864. },
  21865. // 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆
  21866. loadingIcon: {
  21867. type: String,
  21868. default: uni.$u.props.loadmore.loadingIcon
  21869. },
  21870. // 加载前的提示语
  21871. loadmoreText: {
  21872. type: String,
  21873. default: uni.$u.props.loadmore.loadmoreText
  21874. },
  21875. // 加载中提示语
  21876. loadingText: {
  21877. type: String,
  21878. default: uni.$u.props.loadmore.loadingText
  21879. },
  21880. // 没有更多的提示语
  21881. nomoreText: {
  21882. type: String,
  21883. default: uni.$u.props.loadmore.nomoreText
  21884. },
  21885. // 在“没有更多”状态下,是否显示粗点
  21886. isDot: {
  21887. type: Boolean,
  21888. default: uni.$u.props.loadmore.isDot
  21889. },
  21890. // 加载中图标的颜色
  21891. iconColor: {
  21892. type: String,
  21893. default: uni.$u.props.loadmore.iconColor
  21894. },
  21895. // 上边距
  21896. marginTop: {
  21897. type: [String, Number],
  21898. default: uni.$u.props.loadmore.marginTop
  21899. },
  21900. // 下边距
  21901. marginBottom: {
  21902. type: [String, Number],
  21903. default: uni.$u.props.loadmore.marginBottom
  21904. },
  21905. // 高度,单位px
  21906. height: {
  21907. type: [String, Number],
  21908. default: uni.$u.props.loadmore.height
  21909. },
  21910. // 是否显示左边分割线
  21911. line: {
  21912. type: Boolean,
  21913. default: uni.$u.props.loadmore.line
  21914. },
  21915. // 线条颜色
  21916. lineColor: {
  21917. type: String,
  21918. default: uni.$u.props.loadmore.lineColor
  21919. },
  21920. // 是否虚线,true-虚线,false-实线
  21921. dashed: {
  21922. type: Boolean,
  21923. default: uni.$u.props.loadmore.dashed
  21924. }
  21925. }
  21926. };
  21927. exports.default = _default;
  21928. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21929. /***/ }),
  21930. /* 409 */,
  21931. /* 410 */,
  21932. /* 411 */,
  21933. /* 412 */,
  21934. /* 413 */,
  21935. /* 414 */,
  21936. /* 415 */,
  21937. /* 416 */,
  21938. /* 417 */,
  21939. /* 418 */,
  21940. /* 419 */,
  21941. /* 420 */,
  21942. /* 421 */,
  21943. /* 422 */,
  21944. /* 423 */
  21945. /*!*************************************************************************************!*\
  21946. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-modal/props.js ***!
  21947. \*************************************************************************************/
  21948. /*! no static exports found */
  21949. /***/ (function(module, exports, __webpack_require__) {
  21950. "use strict";
  21951. /* WEBPACK VAR INJECTION */(function(uni) {
  21952. Object.defineProperty(exports, "__esModule", {
  21953. value: true
  21954. });
  21955. exports.default = void 0;
  21956. var _default = {
  21957. props: {
  21958. // 是否展示modal
  21959. show: {
  21960. type: Boolean,
  21961. default: uni.$u.props.modal.show
  21962. },
  21963. // 标题
  21964. title: {
  21965. type: [String],
  21966. default: uni.$u.props.modal.title
  21967. },
  21968. // 弹窗内容
  21969. content: {
  21970. type: String,
  21971. default: uni.$u.props.modal.content
  21972. },
  21973. // 确认文案
  21974. confirmText: {
  21975. type: String,
  21976. default: uni.$u.props.modal.confirmText
  21977. },
  21978. // 取消文案
  21979. cancelText: {
  21980. type: String,
  21981. default: uni.$u.props.modal.cancelText
  21982. },
  21983. // 是否显示确认按钮
  21984. showConfirmButton: {
  21985. type: Boolean,
  21986. default: uni.$u.props.modal.showConfirmButton
  21987. },
  21988. // 是否显示取消按钮
  21989. showCancelButton: {
  21990. type: Boolean,
  21991. default: uni.$u.props.modal.showCancelButton
  21992. },
  21993. // 确认按钮颜色
  21994. confirmColor: {
  21995. type: String,
  21996. default: uni.$u.props.modal.confirmColor
  21997. },
  21998. // 取消文字颜色
  21999. cancelColor: {
  22000. type: String,
  22001. default: uni.$u.props.modal.cancelColor
  22002. },
  22003. // 对调确认和取消的位置
  22004. buttonReverse: {
  22005. type: Boolean,
  22006. default: uni.$u.props.modal.buttonReverse
  22007. },
  22008. // 是否开启缩放效果
  22009. zoom: {
  22010. type: Boolean,
  22011. default: uni.$u.props.modal.zoom
  22012. },
  22013. // 是否异步关闭,只对确定按钮有效
  22014. asyncClose: {
  22015. type: Boolean,
  22016. default: uni.$u.props.modal.asyncClose
  22017. },
  22018. // 是否允许点击遮罩关闭modal
  22019. closeOnClickOverlay: {
  22020. type: Boolean,
  22021. default: uni.$u.props.modal.closeOnClickOverlay
  22022. },
  22023. // 给一个负的margin-top,往上偏移,避免和键盘重合的情况
  22024. negativeTop: {
  22025. type: [String, Number],
  22026. default: uni.$u.props.modal.negativeTop
  22027. },
  22028. // modal宽度,不支持百分比,可以数值,px,rpx单位
  22029. width: {
  22030. type: [String, Number],
  22031. default: uni.$u.props.modal.width
  22032. },
  22033. // 确认按钮的样式,circle-圆形,square-方形,如设置,将不会显示取消按钮
  22034. confirmButtonShape: {
  22035. type: String,
  22036. default: uni.$u.props.modal.confirmButtonShape
  22037. },
  22038. // 弹窗动画过度时间
  22039. duration: {
  22040. type: String | Number,
  22041. default: uni.$u.props.modal.duration
  22042. }
  22043. }
  22044. };
  22045. exports.default = _default;
  22046. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  22047. /***/ }),
  22048. /* 424 */,
  22049. /* 425 */,
  22050. /* 426 */,
  22051. /* 427 */,
  22052. /* 428 */,
  22053. /* 429 */,
  22054. /* 430 */,
  22055. /* 431 */
  22056. /*!*************************************************************************************!*\
  22057. !*** D:/2024/HBuilderProjects/xcx/uni_modules/mp-html/components/mp-html/parser.js ***!
  22058. \*************************************************************************************/
  22059. /*! no static exports found */
  22060. /***/ (function(module, exports, __webpack_require__) {
  22061. "use strict";
  22062. /* WEBPACK VAR INJECTION */(function(uni, wx) {
  22063. Object.defineProperty(exports, "__esModule", {
  22064. value: true
  22065. });
  22066. exports.default = void 0;
  22067. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  22068. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  22069. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  22070. /**
  22071. * @fileoverview html 解析器
  22072. */
  22073. // 配置
  22074. var config = {
  22075. // 信任的标签(保持标签名不变)
  22076. trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'),
  22077. // 块级标签(转为 div,其他的非信任标签转为 span)
  22078. blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
  22079. // 要移除的标签
  22080. ignoreTags: makeMap('area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr'),
  22081. // 自闭合的标签
  22082. voidTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
  22083. // html 实体
  22084. entities: {
  22085. lt: '<',
  22086. gt: '>',
  22087. quot: '"',
  22088. apos: "'",
  22089. ensp: "\u2002",
  22090. emsp: "\u2003",
  22091. nbsp: '\xA0',
  22092. semi: ';',
  22093. ndash: '–',
  22094. mdash: '—',
  22095. middot: '·',
  22096. lsquo: '‘',
  22097. rsquo: '’',
  22098. ldquo: '“',
  22099. rdquo: '”',
  22100. bull: '•',
  22101. hellip: '…',
  22102. larr: '←',
  22103. uarr: '↑',
  22104. rarr: '→',
  22105. darr: '↓'
  22106. },
  22107. // 默认的标签样式
  22108. tagStyle: {
  22109. address: 'font-style:italic',
  22110. big: 'display:inline;font-size:1.2em',
  22111. caption: 'display:table-caption;text-align:center',
  22112. center: 'text-align:center',
  22113. cite: 'font-style:italic',
  22114. dd: 'margin-left:40px',
  22115. mark: 'background-color:yellow',
  22116. pre: 'font-family:monospace;white-space:pre',
  22117. s: 'text-decoration:line-through',
  22118. small: 'display:inline;font-size:0.8em',
  22119. strike: 'text-decoration:line-through',
  22120. u: 'text-decoration:underline'
  22121. },
  22122. // svg 大小写对照表
  22123. svgDict: {
  22124. animatetransform: 'animateTransform',
  22125. lineargradient: 'linearGradient',
  22126. viewbox: 'viewBox',
  22127. attributename: 'attributeName',
  22128. repeatcount: 'repeatCount',
  22129. repeatdur: 'repeatDur',
  22130. foreignobject: 'foreignObject'
  22131. }
  22132. };
  22133. var tagSelector = {};
  22134. var _uni$getSystemInfoSyn = uni.getSystemInfoSync(),
  22135. windowWidth = _uni$getSystemInfoSyn.windowWidth,
  22136. system = _uni$getSystemInfoSyn.system;
  22137. var blankChar = makeMap(' ,\r,\n,\t,\f');
  22138. var idIndex = 0;
  22139. /**
  22140. * @description 创建 map
  22141. * @param {String} str 逗号分隔
  22142. */
  22143. function makeMap(str) {
  22144. var map = Object.create(null);
  22145. var list = str.split(',');
  22146. for (var i = list.length; i--;) {
  22147. map[list[i]] = true;
  22148. }
  22149. return map;
  22150. }
  22151. /**
  22152. * @description 解码 html 实体
  22153. * @param {String} str 要解码的字符串
  22154. * @param {Boolean} amp 要不要解码 &amp;
  22155. * @returns {String} 解码后的字符串
  22156. */
  22157. function decodeEntity(str, amp) {
  22158. var i = str.indexOf('&');
  22159. while (i !== -1) {
  22160. var j = str.indexOf(';', i + 3);
  22161. var code = void 0;
  22162. if (j === -1) break;
  22163. if (str[i + 1] === '#') {
  22164. // &#123; 形式的实体
  22165. code = parseInt((str[i + 2] === 'x' ? '0' : '') + str.substring(i + 2, j));
  22166. if (!isNaN(code)) {
  22167. str = str.substr(0, i) + String.fromCharCode(code) + str.substr(j + 1);
  22168. }
  22169. } else {
  22170. // &nbsp; 形式的实体
  22171. code = str.substring(i + 1, j);
  22172. if (config.entities[code] || code === 'amp' && amp) {
  22173. str = str.substr(0, i) + (config.entities[code] || '&') + str.substr(j + 1);
  22174. }
  22175. }
  22176. i = str.indexOf('&', i + 1);
  22177. }
  22178. return str;
  22179. }
  22180. /**
  22181. * @description 合并多个块级标签,加快长内容渲染
  22182. * @param {Array} nodes 要合并的标签数组
  22183. */
  22184. function mergeNodes(nodes) {
  22185. var i = nodes.length - 1;
  22186. for (var j = i; j >= -1; j--) {
  22187. if (j === -1 || nodes[j].c || !nodes[j].name || nodes[j].name !== 'div' && nodes[j].name !== 'p' && nodes[j].name[0] !== 'h' || (nodes[j].attrs.style || '').includes('inline')) {
  22188. if (i - j >= 5) {
  22189. nodes.splice(j + 1, i - j, {
  22190. name: 'div',
  22191. attrs: {},
  22192. children: nodes.slice(j + 1, i + 1)
  22193. });
  22194. }
  22195. i = j - 1;
  22196. }
  22197. }
  22198. }
  22199. /**
  22200. * @description html 解析器
  22201. * @param {Object} vm 组件实例
  22202. */
  22203. function Parser(vm) {
  22204. this.options = vm || {};
  22205. this.tagStyle = Object.assign({}, config.tagStyle, this.options.tagStyle);
  22206. this.imgList = vm.imgList || [];
  22207. this.imgList._unloadimgs = 0;
  22208. this.plugins = vm.plugins || [];
  22209. this.attrs = Object.create(null);
  22210. this.stack = [];
  22211. this.nodes = [];
  22212. this.pre = (this.options.containerStyle || '').includes('white-space') && this.options.containerStyle.includes('pre') ? 2 : 0;
  22213. }
  22214. /**
  22215. * @description 执行解析
  22216. * @param {String} content 要解析的文本
  22217. */
  22218. Parser.prototype.parse = function (content) {
  22219. // 插件处理
  22220. for (var i = this.plugins.length; i--;) {
  22221. if (this.plugins[i].onUpdate) {
  22222. content = this.plugins[i].onUpdate(content, config) || content;
  22223. }
  22224. }
  22225. new Lexer(this).parse(content);
  22226. // 出栈未闭合的标签
  22227. while (this.stack.length) {
  22228. this.popNode();
  22229. }
  22230. if (this.nodes.length > 50) {
  22231. mergeNodes(this.nodes);
  22232. }
  22233. return this.nodes;
  22234. };
  22235. /**
  22236. * @description 将标签暴露出来(不被 rich-text 包含)
  22237. */
  22238. Parser.prototype.expose = function () {
  22239. for (var i = this.stack.length; i--;) {
  22240. var item = this.stack[i];
  22241. if (item.c || item.name === 'a' || item.name === 'video' || item.name === 'audio') return;
  22242. item.c = 1;
  22243. }
  22244. };
  22245. /**
  22246. * @description 处理插件
  22247. * @param {Object} node 要处理的标签
  22248. * @returns {Boolean} 是否要移除此标签
  22249. */
  22250. Parser.prototype.hook = function (node) {
  22251. for (var i = this.plugins.length; i--;) {
  22252. if (this.plugins[i].onParse && this.plugins[i].onParse(node, this) === false) {
  22253. return false;
  22254. }
  22255. }
  22256. return true;
  22257. };
  22258. /**
  22259. * @description 将链接拼接上主域名
  22260. * @param {String} url 需要拼接的链接
  22261. * @returns {String} 拼接后的链接
  22262. */
  22263. Parser.prototype.getUrl = function (url) {
  22264. var domain = this.options.domain;
  22265. if (url[0] === '/') {
  22266. if (url[1] === '/') {
  22267. // // 开头的补充协议名
  22268. url = (domain ? domain.split('://')[0] : 'http') + ':' + url;
  22269. } else if (domain) {
  22270. // 否则补充整个域名
  22271. url = domain + url;
  22272. }
  22273. } else if (!url.includes('data:') && !url.includes('://')) {
  22274. if (domain) {
  22275. url = domain + '/' + url;
  22276. }
  22277. }
  22278. return url;
  22279. };
  22280. /**
  22281. * @description 解析样式表
  22282. * @param {Object} node 标签
  22283. * @returns {Object}
  22284. */
  22285. Parser.prototype.parseStyle = function (node) {
  22286. var attrs = node.attrs;
  22287. var list = (this.tagStyle[node.name] || '').split(';').concat((attrs.style || '').split(';'));
  22288. var styleObj = {};
  22289. var tmp = '';
  22290. if (attrs.id && !this.xml) {
  22291. // 暴露锚点
  22292. if (this.options.useAnchor) {
  22293. this.expose();
  22294. } else if (node.name !== 'img' && node.name !== 'a' && node.name !== 'video' && node.name !== 'audio') {
  22295. attrs.id = undefined;
  22296. }
  22297. }
  22298. // 转换 width 和 height 属性
  22299. if (attrs.width) {
  22300. styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px');
  22301. attrs.width = undefined;
  22302. }
  22303. if (attrs.height) {
  22304. styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px');
  22305. attrs.height = undefined;
  22306. }
  22307. for (var i = 0, len = list.length; i < len; i++) {
  22308. var info = list[i].split(':');
  22309. if (info.length < 2) continue;
  22310. var key = info.shift().trim().toLowerCase();
  22311. var value = info.join(':').trim();
  22312. if (value[0] === '-' && value.lastIndexOf('-') > 0 || value.includes('safe')) {
  22313. // 兼容性的 css 不压缩
  22314. tmp += ";".concat(key, ":").concat(value);
  22315. } else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import')) {
  22316. // 重复的样式进行覆盖
  22317. if (value.includes('url')) {
  22318. // 填充链接
  22319. var j = value.indexOf('(') + 1;
  22320. if (j) {
  22321. while (value[j] === '"' || value[j] === "'" || blankChar[value[j]]) {
  22322. j++;
  22323. }
  22324. value = value.substr(0, j) + this.getUrl(value.substr(j));
  22325. }
  22326. } else if (value.includes('rpx')) {
  22327. // 转换 rpx(rich-text 内部不支持 rpx)
  22328. value = value.replace(/[0-9.]+\s*rpx/g, function ($) {
  22329. return parseFloat($) * windowWidth / 750 + 'px';
  22330. });
  22331. }
  22332. styleObj[key] = value;
  22333. }
  22334. }
  22335. node.attrs.style = tmp;
  22336. return styleObj;
  22337. };
  22338. /**
  22339. * @description 解析到标签名
  22340. * @param {String} name 标签名
  22341. * @private
  22342. */
  22343. Parser.prototype.onTagName = function (name) {
  22344. this.tagName = this.xml ? name : name.toLowerCase();
  22345. if (this.tagName === 'svg') {
  22346. this.xml = (this.xml || 0) + 1; // svg 标签内大小写敏感
  22347. config.ignoreTags.style = undefined; // svg 标签内 style 可用
  22348. }
  22349. };
  22350. /**
  22351. * @description 解析到属性名
  22352. * @param {String} name 属性名
  22353. * @private
  22354. */
  22355. Parser.prototype.onAttrName = function (name) {
  22356. name = this.xml ? name : name.toLowerCase();
  22357. if (name.substr(0, 5) === 'data-') {
  22358. if (name === 'data-src' && !this.attrs.src) {
  22359. // data-src 自动转为 src
  22360. this.attrName = 'src';
  22361. } else if (this.tagName === 'img' || this.tagName === 'a') {
  22362. // a 和 img 标签保留 data- 的属性,可以在 imgtap 和 linktap 事件中使用
  22363. this.attrName = name;
  22364. } else {
  22365. // 剩余的移除以减小大小
  22366. this.attrName = undefined;
  22367. }
  22368. } else {
  22369. this.attrName = name;
  22370. this.attrs[name] = 'T'; // boolean 型属性缺省设置
  22371. }
  22372. };
  22373. /**
  22374. * @description 解析到属性值
  22375. * @param {String} val 属性值
  22376. * @private
  22377. */
  22378. Parser.prototype.onAttrVal = function (val) {
  22379. var name = this.attrName || '';
  22380. if (name === 'style' || name === 'href') {
  22381. // 部分属性进行实体解码
  22382. this.attrs[name] = decodeEntity(val, true);
  22383. } else if (name.includes('src')) {
  22384. // 拼接主域名
  22385. this.attrs[name] = this.getUrl(decodeEntity(val, true));
  22386. } else if (name) {
  22387. this.attrs[name] = val;
  22388. }
  22389. };
  22390. /**
  22391. * @description 解析到标签开始
  22392. * @param {Boolean} selfClose 是否有自闭合标识 />
  22393. * @private
  22394. */
  22395. Parser.prototype.onOpenTag = function (selfClose) {
  22396. // 拼装 node
  22397. var node = Object.create(null);
  22398. node.name = this.tagName;
  22399. node.attrs = this.attrs;
  22400. // 避免因为自动 diff 使得 type 被设置为 null 导致部分内容不显示
  22401. if (this.options.nodes.length) {
  22402. node.type = 'node';
  22403. }
  22404. this.attrs = Object.create(null);
  22405. var attrs = node.attrs;
  22406. var parent = this.stack[this.stack.length - 1];
  22407. var siblings = parent ? parent.children : this.nodes;
  22408. var close = this.xml ? selfClose : config.voidTags[node.name];
  22409. // 替换标签名选择器
  22410. if (tagSelector[node.name]) {
  22411. attrs.class = tagSelector[node.name] + (attrs.class ? ' ' + attrs.class : '');
  22412. }
  22413. // 转换 embed 标签
  22414. if (node.name === 'embed') {
  22415. var src = attrs.src || '';
  22416. // 按照后缀名和 type 将 embed 转为 video 或 audio
  22417. if (src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8') || (attrs.type || '').includes('video')) {
  22418. node.name = 'video';
  22419. } else if (src.includes('.mp3') || src.includes('.wav') || src.includes('.aac') || src.includes('.m4a') || (attrs.type || '').includes('audio')) {
  22420. node.name = 'audio';
  22421. }
  22422. if (attrs.autostart) {
  22423. attrs.autoplay = 'T';
  22424. }
  22425. attrs.controls = 'T';
  22426. }
  22427. // 处理音视频
  22428. if (node.name === 'video' || node.name === 'audio') {
  22429. // 设置 id 以便获取 context
  22430. if (node.name === 'video' && !attrs.id) {
  22431. attrs.id = 'v' + idIndex++;
  22432. }
  22433. // 没有设置 controls 也没有设置 autoplay 的自动设置 controls
  22434. if (!attrs.controls && !attrs.autoplay) {
  22435. attrs.controls = 'T';
  22436. }
  22437. // 用数组存储所有可用的 source
  22438. node.src = [];
  22439. if (attrs.src) {
  22440. node.src.push(attrs.src);
  22441. attrs.src = undefined;
  22442. }
  22443. this.expose();
  22444. }
  22445. // 处理自闭合标签
  22446. if (close) {
  22447. if (!this.hook(node) || config.ignoreTags[node.name]) {
  22448. // 通过 base 标签设置主域名
  22449. if (node.name === 'base' && !this.options.domain) {
  22450. this.options.domain = attrs.href;
  22451. } else if (node.name === 'source' && parent && (parent.name === 'video' || parent.name === 'audio') && attrs.src) {
  22452. // 设置 source 标签(仅父节点为 video 或 audio 时有效)
  22453. parent.src.push(attrs.src);
  22454. }
  22455. return;
  22456. }
  22457. // 解析 style
  22458. var styleObj = this.parseStyle(node);
  22459. // 处理图片
  22460. if (node.name === 'img') {
  22461. if (attrs.src) {
  22462. // 标记 webp
  22463. if (attrs.src.includes('webp')) {
  22464. node.webp = 'T';
  22465. }
  22466. // data url 图片如果没有设置 original-src 默认为不可预览的小图片
  22467. if (attrs.src.includes('data:') && this.options.previewImg !== 'all' && !attrs['original-src']) {
  22468. attrs.ignore = 'T';
  22469. }
  22470. if (!attrs.ignore || node.webp || attrs.src.includes('cloud://')) {
  22471. for (var i = this.stack.length; i--;) {
  22472. var item = this.stack[i];
  22473. if (item.name === 'a') {
  22474. node.a = item.attrs;
  22475. }
  22476. if (item.name === 'table' && !node.webp && !attrs.src.includes('cloud://')) {
  22477. if (!styleObj.display || styleObj.display.includes('inline')) {
  22478. node.t = 'inline-block';
  22479. } else {
  22480. node.t = styleObj.display;
  22481. }
  22482. styleObj.display = undefined;
  22483. }
  22484. var style = item.attrs.style || '';
  22485. if (style.includes('flex:') && !style.includes('flex:0') && !style.includes('flex: 0') && (!styleObj.width || parseInt(styleObj.width) > 100)) {
  22486. styleObj.width = '100% !important';
  22487. styleObj.height = '';
  22488. for (var j = i + 1; j < this.stack.length; j++) {
  22489. this.stack[j].attrs.style = (this.stack[j].attrs.style || '').replace('inline-', '');
  22490. }
  22491. } else if (style.includes('flex') && styleObj.width === '100%') {
  22492. for (var _j = i + 1; _j < this.stack.length; _j++) {
  22493. var _style = this.stack[_j].attrs.style || '';
  22494. if (!_style.includes(';width') && !_style.includes(' width') && _style.indexOf('width') !== 0) {
  22495. styleObj.width = '';
  22496. break;
  22497. }
  22498. }
  22499. } else if (style.includes('inline-block')) {
  22500. if (styleObj.width && styleObj.width[styleObj.width.length - 1] === '%') {
  22501. item.attrs.style += ';max-width:' + styleObj.width;
  22502. styleObj.width = '';
  22503. } else {
  22504. item.attrs.style += ';max-width:100%';
  22505. }
  22506. }
  22507. item.c = 1;
  22508. }
  22509. attrs.i = this.imgList.length.toString();
  22510. var _src = attrs['original-src'] || attrs.src;
  22511. if (this.imgList.includes(_src)) {
  22512. // 如果有重复的链接则对域名进行随机大小写变换避免预览时错位
  22513. var _i = _src.indexOf('://');
  22514. if (_i !== -1) {
  22515. _i += 3;
  22516. var newSrc = _src.substr(0, _i);
  22517. for (; _i < _src.length; _i++) {
  22518. if (_src[_i] === '/') break;
  22519. newSrc += Math.random() > 0.5 ? _src[_i].toUpperCase() : _src[_i];
  22520. }
  22521. newSrc += _src.substr(_i);
  22522. _src = newSrc;
  22523. }
  22524. }
  22525. this.imgList.push(_src);
  22526. if (!node.t) {
  22527. this.imgList._unloadimgs += 1;
  22528. }
  22529. }
  22530. }
  22531. if (styleObj.display === 'inline') {
  22532. styleObj.display = '';
  22533. }
  22534. if (attrs.ignore) {
  22535. styleObj['max-width'] = styleObj['max-width'] || '100%';
  22536. attrs.style += ';-webkit-touch-callout:none';
  22537. }
  22538. // 设置的宽度超出屏幕,为避免变形,高度转为自动
  22539. if (parseInt(styleObj.width) > windowWidth) {
  22540. styleObj.height = undefined;
  22541. }
  22542. // 记录是否设置了宽高
  22543. if (!isNaN(parseInt(styleObj.width))) {
  22544. node.w = 'T';
  22545. }
  22546. if (!isNaN(parseInt(styleObj.height)) && (!styleObj.height.includes('%') || parent && (parent.attrs.style || '').includes('height'))) {
  22547. node.h = 'T';
  22548. }
  22549. if (node.w && node.h && styleObj['object-fit']) {
  22550. if (styleObj['object-fit'] === 'contain') {
  22551. node.m = 'aspectFit';
  22552. } else if (styleObj['object-fit'] === 'cover') {
  22553. node.m = 'aspectFill';
  22554. }
  22555. }
  22556. } else if (node.name === 'svg') {
  22557. siblings.push(node);
  22558. this.stack.push(node);
  22559. this.popNode();
  22560. return;
  22561. }
  22562. for (var key in styleObj) {
  22563. if (styleObj[key]) {
  22564. attrs.style += ";".concat(key, ":").concat(styleObj[key].replace(' !important', ''));
  22565. }
  22566. }
  22567. attrs.style = attrs.style.substr(1) || undefined;
  22568. } else {
  22569. if ((node.name === 'pre' || (attrs.style || '').includes('white-space') && attrs.style.includes('pre')) && this.pre !== 2) {
  22570. this.pre = node.pre = 1;
  22571. }
  22572. node.children = [];
  22573. this.stack.push(node);
  22574. }
  22575. // 加入节点树
  22576. siblings.push(node);
  22577. };
  22578. /**
  22579. * @description 解析到标签结束
  22580. * @param {String} name 标签名
  22581. * @private
  22582. */
  22583. Parser.prototype.onCloseTag = function (name) {
  22584. // 依次出栈到匹配为止
  22585. name = this.xml ? name : name.toLowerCase();
  22586. var i;
  22587. for (i = this.stack.length; i--;) {
  22588. if (this.stack[i].name === name) break;
  22589. }
  22590. if (i !== -1) {
  22591. while (this.stack.length > i) {
  22592. this.popNode();
  22593. }
  22594. } else if (name === 'p' || name === 'br') {
  22595. var siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes;
  22596. siblings.push({
  22597. name: name,
  22598. attrs: {
  22599. class: tagSelector[name] || '',
  22600. style: this.tagStyle[name] || ''
  22601. }
  22602. });
  22603. }
  22604. };
  22605. /**
  22606. * @description 处理标签出栈
  22607. * @private
  22608. */
  22609. Parser.prototype.popNode = function () {
  22610. var node = this.stack.pop();
  22611. var attrs = node.attrs;
  22612. var children = node.children;
  22613. var parent = this.stack[this.stack.length - 1];
  22614. var siblings = parent ? parent.children : this.nodes;
  22615. if (!this.hook(node) || config.ignoreTags[node.name]) {
  22616. // 获取标题
  22617. if (node.name === 'title' && children.length && children[0].type === 'text' && this.options.setTitle) {
  22618. uni.setNavigationBarTitle({
  22619. title: children[0].text
  22620. });
  22621. }
  22622. siblings.pop();
  22623. return;
  22624. }
  22625. if (node.pre && this.pre !== 2) {
  22626. // 是否合并空白符标识
  22627. this.pre = node.pre = undefined;
  22628. for (var i = this.stack.length; i--;) {
  22629. if (this.stack[i].pre) {
  22630. this.pre = 1;
  22631. }
  22632. }
  22633. }
  22634. var styleObj = {};
  22635. // 转换 svg
  22636. if (node.name === 'svg') {
  22637. if (this.xml > 1) {
  22638. // 多层 svg 嵌套
  22639. this.xml--;
  22640. return;
  22641. }
  22642. var src = '';
  22643. var style = attrs.style;
  22644. attrs.style = '';
  22645. attrs.xmlns = 'http://www.w3.org/2000/svg';
  22646. (function traversal(node) {
  22647. if (node.type === 'text') {
  22648. src += node.text;
  22649. return;
  22650. }
  22651. var name = config.svgDict[node.name] || node.name;
  22652. if (name === 'foreignObject') {
  22653. var _iterator = _createForOfIteratorHelper(node.children || []),
  22654. _step;
  22655. try {
  22656. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  22657. var child = _step.value;
  22658. if (child.attrs && !child.attrs.xmlns) {
  22659. child.attrs.xmlns = 'http://www.w3.org/1999/xhtml';
  22660. break;
  22661. }
  22662. }
  22663. } catch (err) {
  22664. _iterator.e(err);
  22665. } finally {
  22666. _iterator.f();
  22667. }
  22668. }
  22669. src += '<' + name;
  22670. for (var item in node.attrs) {
  22671. var val = node.attrs[item];
  22672. if (val) {
  22673. src += " ".concat(config.svgDict[item] || item, "=\"").concat(val.replace(/"/g, ''), "\"");
  22674. }
  22675. }
  22676. if (!node.children) {
  22677. src += '/>';
  22678. } else {
  22679. src += '>';
  22680. for (var _i2 = 0; _i2 < node.children.length; _i2++) {
  22681. traversal(node.children[_i2]);
  22682. }
  22683. src += '</' + name + '>';
  22684. }
  22685. })(node);
  22686. node.name = 'img';
  22687. node.attrs = {
  22688. src: 'data:image/svg+xml;utf8,' + src.replace(/#/g, '%23'),
  22689. style: style,
  22690. ignore: 'T'
  22691. };
  22692. node.children = undefined;
  22693. this.xml = false;
  22694. config.ignoreTags.style = true;
  22695. return;
  22696. }
  22697. // 转换 align 属性
  22698. if (attrs.align) {
  22699. if (node.name === 'table') {
  22700. if (attrs.align === 'center') {
  22701. styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto';
  22702. } else {
  22703. styleObj.float = attrs.align;
  22704. }
  22705. } else {
  22706. styleObj['text-align'] = attrs.align;
  22707. }
  22708. attrs.align = undefined;
  22709. }
  22710. // 转换 dir 属性
  22711. if (attrs.dir) {
  22712. styleObj.direction = attrs.dir;
  22713. attrs.dir = undefined;
  22714. }
  22715. // 转换 font 标签的属性
  22716. if (node.name === 'font') {
  22717. if (attrs.color) {
  22718. styleObj.color = attrs.color;
  22719. attrs.color = undefined;
  22720. }
  22721. if (attrs.face) {
  22722. styleObj['font-family'] = attrs.face;
  22723. attrs.face = undefined;
  22724. }
  22725. if (attrs.size) {
  22726. var size = parseInt(attrs.size);
  22727. if (!isNaN(size)) {
  22728. if (size < 1) {
  22729. size = 1;
  22730. } else if (size > 7) {
  22731. size = 7;
  22732. }
  22733. styleObj['font-size'] = ['x-small', 'small', 'medium', 'large', 'x-large', 'xx-large', 'xxx-large'][size - 1];
  22734. }
  22735. attrs.size = undefined;
  22736. }
  22737. }
  22738. // 一些编辑器的自带 class
  22739. if ((attrs.class || '').includes('align-center')) {
  22740. styleObj['text-align'] = 'center';
  22741. }
  22742. Object.assign(styleObj, this.parseStyle(node));
  22743. if (node.name !== 'table' && parseInt(styleObj.width) > windowWidth) {
  22744. styleObj['max-width'] = '100%';
  22745. styleObj['box-sizing'] = 'border-box';
  22746. }
  22747. if (config.blockTags[node.name]) {
  22748. node.name = 'div';
  22749. } else if (!config.trustTags[node.name] && !this.xml) {
  22750. // 未知标签转为 span,避免无法显示
  22751. node.name = 'span';
  22752. }
  22753. if (node.name === 'a' || node.name === 'ad') {
  22754. this.expose();
  22755. } else if (node.name === 'video') {
  22756. if ((styleObj.height || '').includes('auto')) {
  22757. styleObj.height = undefined;
  22758. }
  22759. } else if ((node.name === 'ul' || node.name === 'ol') && node.c) {
  22760. // 列表处理
  22761. var types = {
  22762. a: 'lower-alpha',
  22763. A: 'upper-alpha',
  22764. i: 'lower-roman',
  22765. I: 'upper-roman'
  22766. };
  22767. if (types[attrs.type]) {
  22768. attrs.style += ';list-style-type:' + types[attrs.type];
  22769. attrs.type = undefined;
  22770. }
  22771. for (var _i3 = children.length; _i3--;) {
  22772. if (children[_i3].name === 'li') {
  22773. children[_i3].c = 1;
  22774. }
  22775. }
  22776. } else if (node.name === 'table') {
  22777. // 表格处理
  22778. // cellpadding、cellspacing、border 这几个常用表格属性需要通过转换实现
  22779. var padding = parseFloat(attrs.cellpadding);
  22780. var spacing = parseFloat(attrs.cellspacing);
  22781. var border = parseFloat(attrs.border);
  22782. var bordercolor = styleObj['border-color'];
  22783. var borderstyle = styleObj['border-style'];
  22784. if (node.c) {
  22785. // padding 和 spacing 默认 2
  22786. if (isNaN(padding)) {
  22787. padding = 2;
  22788. }
  22789. if (isNaN(spacing)) {
  22790. spacing = 2;
  22791. }
  22792. }
  22793. if (border) {
  22794. attrs.style += ";border:".concat(border, "px ").concat(borderstyle || 'solid', " ").concat(bordercolor || 'gray');
  22795. }
  22796. if (node.flag && node.c) {
  22797. // 有 colspan 或 rowspan 且含有链接的表格通过 grid 布局实现
  22798. styleObj.display = 'grid';
  22799. if (styleObj['border-collapse'] === 'collapse') {
  22800. styleObj['border-collapse'] = undefined;
  22801. spacing = 0;
  22802. }
  22803. if (spacing) {
  22804. styleObj['grid-gap'] = spacing + 'px';
  22805. styleObj.padding = spacing + 'px';
  22806. } else if (border) {
  22807. // 无间隔的情况下避免边框重叠
  22808. attrs.style += ';border-left:0;border-top:0';
  22809. }
  22810. var width = []; // 表格的列宽
  22811. var trList = []; // tr 列表
  22812. var cells = []; // 保存新的单元格
  22813. var map = {}; // 被合并单元格占用的格子
  22814. (function traversal(nodes) {
  22815. for (var _i4 = 0; _i4 < nodes.length; _i4++) {
  22816. if (nodes[_i4].name === 'tr') {
  22817. trList.push(nodes[_i4]);
  22818. } else if (nodes[_i4].name === 'colgroup') {
  22819. var colI = 1;
  22820. var _iterator2 = _createForOfIteratorHelper(nodes[_i4].children || []),
  22821. _step2;
  22822. try {
  22823. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  22824. var col = _step2.value;
  22825. if (col.name === 'col') {
  22826. var _style2 = col.attrs.style || '';
  22827. var start = _style2.indexOf('width') ? _style2.indexOf(';width') : 0;
  22828. // 提取出宽度
  22829. if (start !== -1) {
  22830. var end = _style2.indexOf(';', start + 6);
  22831. if (end === -1) {
  22832. end = _style2.length;
  22833. }
  22834. width[colI] = _style2.substring(start ? start + 7 : 6, end);
  22835. }
  22836. colI += 1;
  22837. }
  22838. }
  22839. } catch (err) {
  22840. _iterator2.e(err);
  22841. } finally {
  22842. _iterator2.f();
  22843. }
  22844. } else {
  22845. traversal(nodes[_i4].children || []);
  22846. }
  22847. }
  22848. })(children);
  22849. for (var row = 1; row <= trList.length; row++) {
  22850. var col = 1;
  22851. for (var j = 0; j < trList[row - 1].children.length; j++) {
  22852. var td = trList[row - 1].children[j];
  22853. if (td.name === 'td' || td.name === 'th') {
  22854. // 这个格子被上面的单元格占用,则列号++
  22855. while (map[row + '.' + col]) {
  22856. col++;
  22857. }
  22858. var _style3 = td.attrs.style || '';
  22859. var start = _style3.indexOf('width') ? _style3.indexOf(';width') : 0;
  22860. // 提取出 td 的宽度
  22861. if (start !== -1) {
  22862. var end = _style3.indexOf(';', start + 6);
  22863. if (end === -1) {
  22864. end = _style3.length;
  22865. }
  22866. if (!td.attrs.colspan) {
  22867. width[col] = _style3.substring(start ? start + 7 : 6, end);
  22868. }
  22869. _style3 = _style3.substr(0, start) + _style3.substr(end);
  22870. }
  22871. // 设置竖直对齐
  22872. _style3 += ';display:flex';
  22873. start = _style3.indexOf('vertical-align');
  22874. if (start !== -1) {
  22875. var val = _style3.substr(start + 15, 10);
  22876. if (val.includes('middle')) {
  22877. _style3 += ';align-items:center';
  22878. } else if (val.includes('bottom')) {
  22879. _style3 += ';align-items:flex-end';
  22880. }
  22881. } else {
  22882. _style3 += ';align-items:center';
  22883. }
  22884. // 设置水平对齐
  22885. start = _style3.indexOf('text-align');
  22886. if (start !== -1) {
  22887. var _val = _style3.substr(start + 11, 10);
  22888. if (_val.includes('center')) {
  22889. _style3 += ';justify-content: center';
  22890. } else if (_val.includes('right')) {
  22891. _style3 += ';justify-content: right';
  22892. }
  22893. }
  22894. _style3 = (border ? ";border:".concat(border, "px ").concat(borderstyle || 'solid', " ").concat(bordercolor || 'gray') + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? ";padding:".concat(padding, "px") : '') + ';' + _style3;
  22895. // 处理列合并
  22896. if (td.attrs.colspan) {
  22897. _style3 += ";grid-column-start:".concat(col, ";grid-column-end:").concat(col + parseInt(td.attrs.colspan));
  22898. if (!td.attrs.rowspan) {
  22899. _style3 += ";grid-row-start:".concat(row, ";grid-row-end:").concat(row + 1);
  22900. }
  22901. col += parseInt(td.attrs.colspan) - 1;
  22902. }
  22903. // 处理行合并
  22904. if (td.attrs.rowspan) {
  22905. _style3 += ";grid-row-start:".concat(row, ";grid-row-end:").concat(row + parseInt(td.attrs.rowspan));
  22906. if (!td.attrs.colspan) {
  22907. _style3 += ";grid-column-start:".concat(col, ";grid-column-end:").concat(col + 1);
  22908. }
  22909. // 记录下方单元格被占用
  22910. for (var rowspan = 1; rowspan < td.attrs.rowspan; rowspan++) {
  22911. for (var colspan = 0; colspan < (td.attrs.colspan || 1); colspan++) {
  22912. map[row + rowspan + '.' + (col - colspan)] = 1;
  22913. }
  22914. }
  22915. }
  22916. if (_style3) {
  22917. td.attrs.style = _style3;
  22918. }
  22919. cells.push(td);
  22920. col++;
  22921. }
  22922. }
  22923. if (row === 1) {
  22924. var temp = '';
  22925. for (var _i5 = 1; _i5 < col; _i5++) {
  22926. temp += (width[_i5] ? width[_i5] : 'auto') + ' ';
  22927. }
  22928. styleObj['grid-template-columns'] = temp;
  22929. }
  22930. }
  22931. node.children = cells;
  22932. } else {
  22933. // 没有使用合并单元格的表格通过 table 布局实现
  22934. if (node.c) {
  22935. styleObj.display = 'table';
  22936. }
  22937. if (!isNaN(spacing)) {
  22938. styleObj['border-spacing'] = spacing + 'px';
  22939. }
  22940. if (border || padding) {
  22941. // 遍历
  22942. (function traversal(nodes) {
  22943. for (var _i6 = 0; _i6 < nodes.length; _i6++) {
  22944. var _td = nodes[_i6];
  22945. if (_td.name === 'th' || _td.name === 'td') {
  22946. if (border) {
  22947. _td.attrs.style = "border:".concat(border, "px ").concat(borderstyle || 'solid', " ").concat(bordercolor || 'gray', ";").concat(_td.attrs.style || '');
  22948. }
  22949. if (padding) {
  22950. _td.attrs.style = "padding:".concat(padding, "px;").concat(_td.attrs.style || '');
  22951. }
  22952. } else if (_td.children) {
  22953. traversal(_td.children);
  22954. }
  22955. }
  22956. })(children);
  22957. }
  22958. }
  22959. // 给表格添加一个单独的横向滚动层
  22960. if (this.options.scrollTable && !(attrs.style || '').includes('inline')) {
  22961. var table = Object.assign({}, node);
  22962. node.name = 'div';
  22963. node.attrs = {
  22964. style: 'overflow:auto'
  22965. };
  22966. node.children = [table];
  22967. attrs = table.attrs;
  22968. }
  22969. } else if ((node.name === 'tbody' || node.name === 'tr') && node.flag && node.c) {
  22970. node.flag = undefined;
  22971. (function traversal(nodes) {
  22972. for (var _i7 = 0; _i7 < nodes.length; _i7++) {
  22973. if (nodes[_i7].name === 'td') {
  22974. // 颜色样式设置给单元格避免丢失
  22975. for (var _i8 = 0, _arr = ['color', 'background', 'background-color']; _i8 < _arr.length; _i8++) {
  22976. var _style4 = _arr[_i8];
  22977. if (styleObj[_style4]) {
  22978. nodes[_i7].attrs.style = _style4 + ':' + styleObj[_style4] + ';' + (nodes[_i7].attrs.style || '');
  22979. }
  22980. }
  22981. } else {
  22982. traversal(nodes[_i7].children || []);
  22983. }
  22984. }
  22985. })(children);
  22986. } else if ((node.name === 'td' || node.name === 'th') && (attrs.colspan || attrs.rowspan)) {
  22987. for (var _i9 = this.stack.length; _i9--;) {
  22988. if (this.stack[_i9].name === 'table' || this.stack[_i9].name === 'tbody' || this.stack[_i9].name === 'tr') {
  22989. this.stack[_i9].flag = 1; // 指示含有合并单元格
  22990. }
  22991. }
  22992. } else if (node.name === 'ruby') {
  22993. // 转换 ruby
  22994. node.name = 'span';
  22995. for (var _i10 = 0; _i10 < children.length - 1; _i10++) {
  22996. if (children[_i10].type === 'text' && children[_i10 + 1].name === 'rt') {
  22997. children[_i10] = {
  22998. name: 'div',
  22999. attrs: {
  23000. style: 'display:inline-block;text-align:center'
  23001. },
  23002. children: [{
  23003. name: 'div',
  23004. attrs: {
  23005. style: 'font-size:50%;' + (children[_i10 + 1].attrs.style || '')
  23006. },
  23007. children: children[_i10 + 1].children
  23008. }, children[_i10]]
  23009. };
  23010. children.splice(_i10 + 1, 1);
  23011. }
  23012. }
  23013. } else if (node.c) {
  23014. (function traversal(node) {
  23015. node.c = 2;
  23016. for (var _i11 = node.children.length; _i11--;) {
  23017. var child = node.children[_i11];
  23018. if (!child.c || child.name === 'table') {
  23019. node.c = 1;
  23020. }
  23021. }
  23022. })(node);
  23023. }
  23024. if ((styleObj.display || '').includes('flex') && !node.c) {
  23025. for (var _i12 = children.length; _i12--;) {
  23026. var item = children[_i12];
  23027. if (item.f) {
  23028. item.attrs.style = (item.attrs.style || '') + item.f;
  23029. item.f = undefined;
  23030. }
  23031. }
  23032. }
  23033. // flex 布局时部分样式需要提取到 rich-text 外层
  23034. var flex = parent && ((parent.attrs.style || '').includes('flex') || (parent.attrs.style || '').includes('grid'))
  23035. // 检查基础库版本 virtualHost 是否可用
  23036. && !(node.c && wx.getNFCAdapter); // eslint-disable-line
  23037. if (flex) {
  23038. node.f = ';max-width:100%';
  23039. }
  23040. if (children.length >= 50 && node.c && !(styleObj.display || '').includes('flex')) {
  23041. mergeNodes(children);
  23042. }
  23043. for (var key in styleObj) {
  23044. if (styleObj[key]) {
  23045. var _val2 = ";".concat(key, ":").concat(styleObj[key].replace(' !important', ''));
  23046. if (flex && (key.includes('flex') && key !== 'flex-direction' || key === 'align-self' || key.includes('grid') || styleObj[key][0] === '-' || key.includes('width') && _val2.includes('%'))) {
  23047. node.f += _val2;
  23048. if (key === 'width') {
  23049. attrs.style += ';width:100%';
  23050. }
  23051. } else {
  23052. attrs.style += _val2;
  23053. }
  23054. }
  23055. }
  23056. attrs.style = attrs.style.substr(1) || undefined;
  23057. };
  23058. /**
  23059. * @description 解析到文本
  23060. * @param {String} text 文本内容
  23061. */
  23062. Parser.prototype.onText = function (text) {
  23063. if (!this.pre) {
  23064. // 合并空白符
  23065. var trim = '';
  23066. var flag;
  23067. for (var i = 0, len = text.length; i < len; i++) {
  23068. if (!blankChar[text[i]]) {
  23069. trim += text[i];
  23070. } else {
  23071. if (trim[trim.length - 1] !== ' ') {
  23072. trim += ' ';
  23073. }
  23074. if (text[i] === '\n' && !flag) {
  23075. flag = true;
  23076. }
  23077. }
  23078. }
  23079. // 去除含有换行符的空串
  23080. if (trim === ' ') {
  23081. if (flag) return;
  23082. }
  23083. text = trim;
  23084. }
  23085. var node = Object.create(null);
  23086. node.type = 'text';
  23087. node.text = decodeEntity(text);
  23088. if (this.hook(node)) {
  23089. if (this.options.selectable === 'force' && system.includes('iOS') && !uni.canIUse('rich-text.user-select')) {
  23090. this.expose();
  23091. }
  23092. var siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes;
  23093. siblings.push(node);
  23094. }
  23095. };
  23096. /**
  23097. * @description html 词法分析器
  23098. * @param {Object} handler 高层处理器
  23099. */
  23100. function Lexer(handler) {
  23101. this.handler = handler;
  23102. }
  23103. /**
  23104. * @description 执行解析
  23105. * @param {String} content 要解析的文本
  23106. */
  23107. Lexer.prototype.parse = function (content) {
  23108. this.content = content || '';
  23109. this.i = 0; // 标记解析位置
  23110. this.start = 0; // 标记一个单词的开始位置
  23111. this.state = this.text; // 当前状态
  23112. for (var len = this.content.length; this.i !== -1 && this.i < len;) {
  23113. this.state();
  23114. }
  23115. };
  23116. /**
  23117. * @description 检查标签是否闭合
  23118. * @param {String} method 如果闭合要进行的操作
  23119. * @returns {Boolean} 是否闭合
  23120. * @private
  23121. */
  23122. Lexer.prototype.checkClose = function (method) {
  23123. var selfClose = this.content[this.i] === '/';
  23124. if (this.content[this.i] === '>' || selfClose && this.content[this.i + 1] === '>') {
  23125. if (method) {
  23126. this.handler[method](this.content.substring(this.start, this.i));
  23127. }
  23128. this.i += selfClose ? 2 : 1;
  23129. this.start = this.i;
  23130. this.handler.onOpenTag(selfClose);
  23131. if (this.handler.tagName === 'script') {
  23132. this.i = this.content.indexOf('</', this.i);
  23133. if (this.i !== -1) {
  23134. this.i += 2;
  23135. this.start = this.i;
  23136. }
  23137. this.state = this.endTag;
  23138. } else {
  23139. this.state = this.text;
  23140. }
  23141. return true;
  23142. }
  23143. return false;
  23144. };
  23145. /**
  23146. * @description 文本状态
  23147. * @private
  23148. */
  23149. Lexer.prototype.text = function () {
  23150. this.i = this.content.indexOf('<', this.i); // 查找最近的标签
  23151. if (this.i === -1) {
  23152. // 没有标签了
  23153. if (this.start < this.content.length) {
  23154. this.handler.onText(this.content.substring(this.start, this.content.length));
  23155. }
  23156. return;
  23157. }
  23158. var c = this.content[this.i + 1];
  23159. if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
  23160. // 标签开头
  23161. if (this.start !== this.i) {
  23162. this.handler.onText(this.content.substring(this.start, this.i));
  23163. }
  23164. this.start = ++this.i;
  23165. this.state = this.tagName;
  23166. } else if (c === '/' || c === '!' || c === '?') {
  23167. if (this.start !== this.i) {
  23168. this.handler.onText(this.content.substring(this.start, this.i));
  23169. }
  23170. var next = this.content[this.i + 2];
  23171. if (c === '/' && (next >= 'a' && next <= 'z' || next >= 'A' && next <= 'Z')) {
  23172. // 标签结尾
  23173. this.i += 2;
  23174. this.start = this.i;
  23175. this.state = this.endTag;
  23176. return;
  23177. }
  23178. // 处理注释
  23179. var end = '-->';
  23180. if (c !== '!' || this.content[this.i + 2] !== '-' || this.content[this.i + 3] !== '-') {
  23181. end = '>';
  23182. }
  23183. this.i = this.content.indexOf(end, this.i);
  23184. if (this.i !== -1) {
  23185. this.i += end.length;
  23186. this.start = this.i;
  23187. }
  23188. } else {
  23189. this.i++;
  23190. }
  23191. };
  23192. /**
  23193. * @description 标签名状态
  23194. * @private
  23195. */
  23196. Lexer.prototype.tagName = function () {
  23197. if (blankChar[this.content[this.i]]) {
  23198. // 解析到标签名
  23199. this.handler.onTagName(this.content.substring(this.start, this.i));
  23200. while (blankChar[this.content[++this.i]]) {
  23201. ;
  23202. }
  23203. if (this.i < this.content.length && !this.checkClose()) {
  23204. this.start = this.i;
  23205. this.state = this.attrName;
  23206. }
  23207. } else if (!this.checkClose('onTagName')) {
  23208. this.i++;
  23209. }
  23210. };
  23211. /**
  23212. * @description 属性名状态
  23213. * @private
  23214. */
  23215. Lexer.prototype.attrName = function () {
  23216. var c = this.content[this.i];
  23217. if (blankChar[c] || c === '=') {
  23218. // 解析到属性名
  23219. this.handler.onAttrName(this.content.substring(this.start, this.i));
  23220. var needVal = c === '=';
  23221. var len = this.content.length;
  23222. while (++this.i < len) {
  23223. c = this.content[this.i];
  23224. if (!blankChar[c]) {
  23225. if (this.checkClose()) return;
  23226. if (needVal) {
  23227. // 等号后遇到第一个非空字符
  23228. this.start = this.i;
  23229. this.state = this.attrVal;
  23230. return;
  23231. }
  23232. if (this.content[this.i] === '=') {
  23233. needVal = true;
  23234. } else {
  23235. this.start = this.i;
  23236. this.state = this.attrName;
  23237. return;
  23238. }
  23239. }
  23240. }
  23241. } else if (!this.checkClose('onAttrName')) {
  23242. this.i++;
  23243. }
  23244. };
  23245. /**
  23246. * @description 属性值状态
  23247. * @private
  23248. */
  23249. Lexer.prototype.attrVal = function () {
  23250. var c = this.content[this.i];
  23251. var len = this.content.length;
  23252. if (c === '"' || c === "'") {
  23253. // 有冒号的属性
  23254. this.start = ++this.i;
  23255. this.i = this.content.indexOf(c, this.i);
  23256. if (this.i === -1) return;
  23257. this.handler.onAttrVal(this.content.substring(this.start, this.i));
  23258. } else {
  23259. // 没有冒号的属性
  23260. for (; this.i < len; this.i++) {
  23261. if (blankChar[this.content[this.i]]) {
  23262. this.handler.onAttrVal(this.content.substring(this.start, this.i));
  23263. break;
  23264. } else if (this.checkClose('onAttrVal')) return;
  23265. }
  23266. }
  23267. while (blankChar[this.content[++this.i]]) {
  23268. ;
  23269. }
  23270. if (this.i < len && !this.checkClose()) {
  23271. this.start = this.i;
  23272. this.state = this.attrName;
  23273. }
  23274. };
  23275. /**
  23276. * @description 结束标签状态
  23277. * @returns {String} 结束的标签名
  23278. * @private
  23279. */
  23280. Lexer.prototype.endTag = function () {
  23281. var c = this.content[this.i];
  23282. if (blankChar[c] || c === '>' || c === '/') {
  23283. this.handler.onCloseTag(this.content.substring(this.start, this.i));
  23284. if (c !== '>') {
  23285. this.i = this.content.indexOf('>', this.i);
  23286. if (this.i === -1) return;
  23287. }
  23288. this.start = ++this.i;
  23289. this.state = this.text;
  23290. } else {
  23291. this.i++;
  23292. }
  23293. };
  23294. var _default = Parser;
  23295. exports.default = _default;
  23296. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  23297. /***/ }),
  23298. /* 432 */,
  23299. /* 433 */,
  23300. /* 434 */,
  23301. /* 435 */,
  23302. /* 436 */,
  23303. /* 437 */,
  23304. /* 438 */,
  23305. /* 439 */,
  23306. /* 440 */,
  23307. /* 441 */,
  23308. /* 442 */,
  23309. /* 443 */,
  23310. /* 444 */,
  23311. /* 445 */,
  23312. /* 446 */,
  23313. /* 447 */,
  23314. /* 448 */,
  23315. /* 449 */,
  23316. /* 450 */,
  23317. /* 451 */,
  23318. /* 452 */,
  23319. /* 453 */
  23320. /*!****************************************************************************************!*\
  23321. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-count-to/props.js ***!
  23322. \****************************************************************************************/
  23323. /*! no static exports found */
  23324. /***/ (function(module, exports, __webpack_require__) {
  23325. "use strict";
  23326. /* WEBPACK VAR INJECTION */(function(uni) {
  23327. Object.defineProperty(exports, "__esModule", {
  23328. value: true
  23329. });
  23330. exports.default = void 0;
  23331. var _default = {
  23332. props: {
  23333. // 开始的数值,默认从0增长到某一个数
  23334. startVal: {
  23335. type: [String, Number],
  23336. default: uni.$u.props.countTo.startVal
  23337. },
  23338. // 要滚动的目标数值,必须
  23339. endVal: {
  23340. type: [String, Number],
  23341. default: uni.$u.props.countTo.endVal
  23342. },
  23343. // 滚动到目标数值的动画持续时间,单位为毫秒(ms)
  23344. duration: {
  23345. type: [String, Number],
  23346. default: uni.$u.props.countTo.duration
  23347. },
  23348. // 设置数值后是否自动开始滚动
  23349. autoplay: {
  23350. type: Boolean,
  23351. default: uni.$u.props.countTo.autoplay
  23352. },
  23353. // 要显示的小数位数
  23354. decimals: {
  23355. type: [String, Number],
  23356. default: uni.$u.props.countTo.decimals
  23357. },
  23358. // 是否在即将到达目标数值的时候,使用缓慢滚动的效果
  23359. useEasing: {
  23360. type: Boolean,
  23361. default: uni.$u.props.countTo.useEasing
  23362. },
  23363. // 十进制分割
  23364. decimal: {
  23365. type: [String, Number],
  23366. default: uni.$u.props.countTo.decimal
  23367. },
  23368. // 字体颜色
  23369. color: {
  23370. type: String,
  23371. default: uni.$u.props.countTo.color
  23372. },
  23373. // 字体大小
  23374. fontSize: {
  23375. type: [String, Number],
  23376. default: uni.$u.props.countTo.fontSize
  23377. },
  23378. // 是否加粗字体
  23379. bold: {
  23380. type: Boolean,
  23381. default: uni.$u.props.countTo.bold
  23382. },
  23383. // 千位分隔符,类似金额的分割(¥23,321.05中的",")
  23384. separator: {
  23385. type: String,
  23386. default: uni.$u.props.countTo.separator
  23387. }
  23388. }
  23389. };
  23390. exports.default = _default;
  23391. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23392. /***/ }),
  23393. /* 454 */,
  23394. /* 455 */,
  23395. /* 456 */,
  23396. /* 457 */,
  23397. /* 458 */,
  23398. /* 459 */,
  23399. /* 460 */,
  23400. /* 461 */
  23401. /*!***************************************************************************************!*\
  23402. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-divider/props.js ***!
  23403. \***************************************************************************************/
  23404. /*! no static exports found */
  23405. /***/ (function(module, exports, __webpack_require__) {
  23406. "use strict";
  23407. /* WEBPACK VAR INJECTION */(function(uni) {
  23408. Object.defineProperty(exports, "__esModule", {
  23409. value: true
  23410. });
  23411. exports.default = void 0;
  23412. var _default = {
  23413. props: {
  23414. // 是否虚线
  23415. dashed: {
  23416. type: Boolean,
  23417. default: uni.$u.props.divider.dashed
  23418. },
  23419. // 是否细线
  23420. hairline: {
  23421. type: Boolean,
  23422. default: uni.$u.props.divider.hairline
  23423. },
  23424. // 是否以点替代文字,优先于text字段起作用
  23425. dot: {
  23426. type: Boolean,
  23427. default: uni.$u.props.divider.dot
  23428. },
  23429. // 内容文本的位置,left-左边,center-中间,right-右边
  23430. textPosition: {
  23431. type: String,
  23432. default: uni.$u.props.divider.textPosition
  23433. },
  23434. // 文本内容
  23435. text: {
  23436. type: [String, Number],
  23437. default: uni.$u.props.divider.text
  23438. },
  23439. // 文本大小
  23440. textSize: {
  23441. type: [String, Number],
  23442. default: uni.$u.props.divider.textSize
  23443. },
  23444. // 文本颜色
  23445. textColor: {
  23446. type: String,
  23447. default: uni.$u.props.divider.textColor
  23448. },
  23449. // 线条颜色
  23450. lineColor: {
  23451. type: String,
  23452. default: uni.$u.props.divider.lineColor
  23453. }
  23454. }
  23455. };
  23456. exports.default = _default;
  23457. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23458. /***/ }),
  23459. /* 462 */,
  23460. /* 463 */,
  23461. /* 464 */,
  23462. /* 465 */,
  23463. /* 466 */,
  23464. /* 467 */,
  23465. /* 468 */,
  23466. /* 469 */
  23467. /*!*************************************************************************************!*\
  23468. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-empty/props.js ***!
  23469. \*************************************************************************************/
  23470. /*! no static exports found */
  23471. /***/ (function(module, exports, __webpack_require__) {
  23472. "use strict";
  23473. /* WEBPACK VAR INJECTION */(function(uni) {
  23474. Object.defineProperty(exports, "__esModule", {
  23475. value: true
  23476. });
  23477. exports.default = void 0;
  23478. var _default = {
  23479. props: {
  23480. // 内置图标名称,或图片路径,建议绝对路径
  23481. icon: {
  23482. type: String,
  23483. default: uni.$u.props.empty.icon
  23484. },
  23485. // 提示文字
  23486. text: {
  23487. type: String,
  23488. default: uni.$u.props.empty.text
  23489. },
  23490. // 文字颜色
  23491. textColor: {
  23492. type: String,
  23493. default: uni.$u.props.empty.textColor
  23494. },
  23495. // 文字大小
  23496. textSize: {
  23497. type: [String, Number],
  23498. default: uni.$u.props.empty.textSize
  23499. },
  23500. // 图标的颜色
  23501. iconColor: {
  23502. type: String,
  23503. default: uni.$u.props.empty.iconColor
  23504. },
  23505. // 图标的大小
  23506. iconSize: {
  23507. type: [String, Number],
  23508. default: uni.$u.props.empty.iconSize
  23509. },
  23510. // 选择预置的图标类型
  23511. mode: {
  23512. type: String,
  23513. default: uni.$u.props.empty.mode
  23514. },
  23515. // 图标宽度,单位px
  23516. width: {
  23517. type: [String, Number],
  23518. default: uni.$u.props.empty.width
  23519. },
  23520. // 图标高度,单位px
  23521. height: {
  23522. type: [String, Number],
  23523. default: uni.$u.props.empty.height
  23524. },
  23525. // 是否显示组件
  23526. show: {
  23527. type: Boolean,
  23528. default: uni.$u.props.empty.show
  23529. },
  23530. // 组件距离上一个元素之间的距离,默认px单位
  23531. marginTop: {
  23532. type: [String, Number],
  23533. default: uni.$u.props.empty.marginTop
  23534. }
  23535. }
  23536. };
  23537. exports.default = _default;
  23538. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23539. /***/ }),
  23540. /* 470 */,
  23541. /* 471 */,
  23542. /* 472 */,
  23543. /* 473 */,
  23544. /* 474 */,
  23545. /* 475 */,
  23546. /* 476 */,
  23547. /* 477 */
  23548. /*!************************************************************************************!*\
  23549. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-form/props.js ***!
  23550. \************************************************************************************/
  23551. /*! no static exports found */
  23552. /***/ (function(module, exports, __webpack_require__) {
  23553. "use strict";
  23554. /* WEBPACK VAR INJECTION */(function(uni) {
  23555. Object.defineProperty(exports, "__esModule", {
  23556. value: true
  23557. });
  23558. exports.default = void 0;
  23559. var _default = {
  23560. props: {
  23561. // 当前form的需要验证字段的集合
  23562. model: {
  23563. type: Object,
  23564. default: uni.$u.props.form.model
  23565. },
  23566. // 验证规则
  23567. rules: {
  23568. type: [Object, Function, Array],
  23569. default: uni.$u.props.form.rules
  23570. },
  23571. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  23572. // border-bottom-下边框呈现红色,none-无提示
  23573. errorType: {
  23574. type: String,
  23575. default: uni.$u.props.form.errorType
  23576. },
  23577. // 是否显示表单域的下划线边框
  23578. borderBottom: {
  23579. type: Boolean,
  23580. default: uni.$u.props.form.borderBottom
  23581. },
  23582. // label的位置,left-左边,top-上边
  23583. labelPosition: {
  23584. type: String,
  23585. default: uni.$u.props.form.labelPosition
  23586. },
  23587. // label的宽度,单位px
  23588. labelWidth: {
  23589. type: [String, Number],
  23590. default: uni.$u.props.form.labelWidth
  23591. },
  23592. // lable字体的对齐方式
  23593. labelAlign: {
  23594. type: String,
  23595. default: uni.$u.props.form.labelAlign
  23596. },
  23597. // lable的样式,对象形式
  23598. labelStyle: {
  23599. type: Object,
  23600. default: uni.$u.props.form.labelStyle
  23601. }
  23602. }
  23603. };
  23604. exports.default = _default;
  23605. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23606. /***/ }),
  23607. /* 478 */,
  23608. /* 479 */,
  23609. /* 480 */,
  23610. /* 481 */,
  23611. /* 482 */,
  23612. /* 483 */
  23613. /*!*****************************************************************************************!*\
  23614. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-form-item/props.js ***!
  23615. \*****************************************************************************************/
  23616. /*! no static exports found */
  23617. /***/ (function(module, exports, __webpack_require__) {
  23618. "use strict";
  23619. /* WEBPACK VAR INJECTION */(function(uni) {
  23620. Object.defineProperty(exports, "__esModule", {
  23621. value: true
  23622. });
  23623. exports.default = void 0;
  23624. var _default = {
  23625. props: {
  23626. // input的label提示语
  23627. label: {
  23628. type: String,
  23629. default: uni.$u.props.formItem.label
  23630. },
  23631. // 绑定的值
  23632. prop: {
  23633. type: String,
  23634. default: uni.$u.props.formItem.prop
  23635. },
  23636. // 是否显示表单域的下划线边框
  23637. borderBottom: {
  23638. type: [String, Boolean],
  23639. default: uni.$u.props.formItem.borderBottom
  23640. },
  23641. // label的位置,left-左边,top-上边
  23642. labelPosition: {
  23643. type: String,
  23644. default: uni.$u.props.formItem.labelPosition
  23645. },
  23646. // label的宽度,单位px
  23647. labelWidth: {
  23648. type: [String, Number],
  23649. default: uni.$u.props.formItem.labelWidth
  23650. },
  23651. // 右侧图标
  23652. rightIcon: {
  23653. type: String,
  23654. default: uni.$u.props.formItem.rightIcon
  23655. },
  23656. // 左侧图标
  23657. leftIcon: {
  23658. type: String,
  23659. default: uni.$u.props.formItem.leftIcon
  23660. },
  23661. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  23662. required: {
  23663. type: Boolean,
  23664. default: uni.$u.props.formItem.required
  23665. },
  23666. leftIconStyle: {
  23667. type: [String, Object],
  23668. default: uni.$u.props.formItem.leftIconStyle
  23669. }
  23670. }
  23671. };
  23672. exports.default = _default;
  23673. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23674. /***/ }),
  23675. /* 484 */,
  23676. /* 485 */,
  23677. /* 486 */,
  23678. /* 487 */,
  23679. /* 488 */,
  23680. /* 489 */,
  23681. /* 490 */,
  23682. /* 491 */
  23683. /*!*************************************************************************************!*\
  23684. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-input/props.js ***!
  23685. \*************************************************************************************/
  23686. /*! no static exports found */
  23687. /***/ (function(module, exports, __webpack_require__) {
  23688. "use strict";
  23689. /* WEBPACK VAR INJECTION */(function(uni) {
  23690. Object.defineProperty(exports, "__esModule", {
  23691. value: true
  23692. });
  23693. exports.default = void 0;
  23694. var _default = {
  23695. props: {
  23696. // 输入的值
  23697. value: {
  23698. type: [String, Number],
  23699. default: uni.$u.props.input.value
  23700. },
  23701. // 输入框类型
  23702. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  23703. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  23704. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  23705. // text-文本输入键盘
  23706. type: {
  23707. type: String,
  23708. default: uni.$u.props.input.type
  23709. },
  23710. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  23711. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  23712. fixed: {
  23713. type: Boolean,
  23714. default: uni.$u.props.input.fixed
  23715. },
  23716. // 是否禁用输入框
  23717. disabled: {
  23718. type: Boolean,
  23719. default: uni.$u.props.input.disabled
  23720. },
  23721. // 禁用状态时的背景色
  23722. disabledColor: {
  23723. type: String,
  23724. default: uni.$u.props.input.disabledColor
  23725. },
  23726. // 是否显示清除控件
  23727. clearable: {
  23728. type: Boolean,
  23729. default: uni.$u.props.input.clearable
  23730. },
  23731. // 是否密码类型
  23732. password: {
  23733. type: Boolean,
  23734. default: uni.$u.props.input.password
  23735. },
  23736. // 最大输入长度,设置为 -1 的时候不限制最大长度
  23737. maxlength: {
  23738. type: [String, Number],
  23739. default: uni.$u.props.input.maxlength
  23740. },
  23741. // 输入框为空时的占位符
  23742. placeholder: {
  23743. type: String,
  23744. default: uni.$u.props.input.placeholder
  23745. },
  23746. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  23747. placeholderClass: {
  23748. type: String,
  23749. default: uni.$u.props.input.placeholderClass
  23750. },
  23751. // 指定placeholder的样式
  23752. placeholderStyle: {
  23753. type: [String, Object],
  23754. default: uni.$u.props.input.placeholderStyle
  23755. },
  23756. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  23757. showWordLimit: {
  23758. type: Boolean,
  23759. default: uni.$u.props.input.showWordLimit
  23760. },
  23761. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  23762. // https://uniapp.dcloud.io/component/input
  23763. // https://uniapp.dcloud.io/component/textarea
  23764. confirmType: {
  23765. type: String,
  23766. default: uni.$u.props.input.confirmType
  23767. },
  23768. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  23769. confirmHold: {
  23770. type: Boolean,
  23771. default: uni.$u.props.input.confirmHold
  23772. },
  23773. // focus时,点击页面的时候不收起键盘,微信小程序有效
  23774. holdKeyboard: {
  23775. type: Boolean,
  23776. default: uni.$u.props.input.holdKeyboard
  23777. },
  23778. // 自动获取焦点
  23779. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  23780. focus: {
  23781. type: Boolean,
  23782. default: uni.$u.props.input.focus
  23783. },
  23784. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  23785. autoBlur: {
  23786. type: Boolean,
  23787. default: uni.$u.props.input.autoBlur
  23788. },
  23789. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  23790. disableDefaultPadding: {
  23791. type: Boolean,
  23792. default: uni.$u.props.input.disableDefaultPadding
  23793. },
  23794. // 指定focus时光标的位置
  23795. cursor: {
  23796. type: [String, Number],
  23797. default: uni.$u.props.input.cursor
  23798. },
  23799. // 输入框聚焦时底部与键盘的距离
  23800. cursorSpacing: {
  23801. type: [String, Number],
  23802. default: uni.$u.props.input.cursorSpacing
  23803. },
  23804. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  23805. selectionStart: {
  23806. type: [String, Number],
  23807. default: uni.$u.props.input.selectionStart
  23808. },
  23809. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  23810. selectionEnd: {
  23811. type: [String, Number],
  23812. default: uni.$u.props.input.selectionEnd
  23813. },
  23814. // 键盘弹起时,是否自动上推页面
  23815. adjustPosition: {
  23816. type: Boolean,
  23817. default: uni.$u.props.input.adjustPosition
  23818. },
  23819. // 输入框内容对齐方式,可选值为:left|center|right
  23820. inputAlign: {
  23821. type: String,
  23822. default: uni.$u.props.input.inputAlign
  23823. },
  23824. // 输入框字体的大小
  23825. fontSize: {
  23826. type: [String, Number],
  23827. default: uni.$u.props.input.fontSize
  23828. },
  23829. // 输入框字体颜色
  23830. color: {
  23831. type: String,
  23832. default: uni.$u.props.input.color
  23833. },
  23834. // 输入框前置图标
  23835. prefixIcon: {
  23836. type: String,
  23837. default: uni.$u.props.input.prefixIcon
  23838. },
  23839. // 前置图标样式,对象或字符串
  23840. prefixIconStyle: {
  23841. type: [String, Object],
  23842. default: uni.$u.props.input.prefixIconStyle
  23843. },
  23844. // 输入框后置图标
  23845. suffixIcon: {
  23846. type: String,
  23847. default: uni.$u.props.input.suffixIcon
  23848. },
  23849. // 后置图标样式,对象或字符串
  23850. suffixIconStyle: {
  23851. type: [String, Object],
  23852. default: uni.$u.props.input.suffixIconStyle
  23853. },
  23854. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  23855. border: {
  23856. type: String,
  23857. default: uni.$u.props.input.border
  23858. },
  23859. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  23860. readonly: {
  23861. type: Boolean,
  23862. default: uni.$u.props.input.readonly
  23863. },
  23864. // 输入框形状,circle-圆形,square-方形
  23865. shape: {
  23866. type: String,
  23867. default: uni.$u.props.input.shape
  23868. },
  23869. // 用于处理或者过滤输入框内容的方法
  23870. formatter: {
  23871. type: [Function, null],
  23872. default: uni.$u.props.input.formatter
  23873. },
  23874. // 是否忽略组件内对文本合成系统事件的处理
  23875. ignoreCompositionEvent: {
  23876. type: Boolean,
  23877. default: true
  23878. }
  23879. }
  23880. };
  23881. exports.default = _default;
  23882. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  23883. /***/ }),
  23884. /* 492 */,
  23885. /* 493 */,
  23886. /* 494 */,
  23887. /* 495 */,
  23888. /* 496 */,
  23889. /* 497 */
  23890. /*!******************************************************************************************************************!*\
  23891. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js ***!
  23892. \******************************************************************************************************************/
  23893. /*! no static exports found */
  23894. /***/ (function(module, exports, __webpack_require__) {
  23895. "use strict";
  23896. /* WEBPACK VAR INJECTION */(function(uniCloud) {
  23897. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  23898. Object.defineProperty(exports, "__esModule", {
  23899. value: true
  23900. });
  23901. exports.default = void 0;
  23902. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  23903. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  23904. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  23905. var _default2 = {
  23906. props: {
  23907. localdata: {
  23908. type: [Array, Object],
  23909. default: function _default() {
  23910. return [];
  23911. }
  23912. },
  23913. spaceInfo: {
  23914. type: Object,
  23915. default: function _default() {
  23916. return {};
  23917. }
  23918. },
  23919. collection: {
  23920. type: String,
  23921. default: ''
  23922. },
  23923. action: {
  23924. type: String,
  23925. default: ''
  23926. },
  23927. field: {
  23928. type: String,
  23929. default: ''
  23930. },
  23931. orderby: {
  23932. type: String,
  23933. default: ''
  23934. },
  23935. where: {
  23936. type: [String, Object],
  23937. default: ''
  23938. },
  23939. pageData: {
  23940. type: String,
  23941. default: 'add'
  23942. },
  23943. pageCurrent: {
  23944. type: Number,
  23945. default: 1
  23946. },
  23947. pageSize: {
  23948. type: Number,
  23949. default: 500
  23950. },
  23951. getcount: {
  23952. type: [Boolean, String],
  23953. default: false
  23954. },
  23955. getone: {
  23956. type: [Boolean, String],
  23957. default: false
  23958. },
  23959. gettree: {
  23960. type: [Boolean, String],
  23961. default: false
  23962. },
  23963. manual: {
  23964. type: Boolean,
  23965. default: false
  23966. },
  23967. value: {
  23968. type: [Array, String, Number],
  23969. default: function _default() {
  23970. return [];
  23971. }
  23972. },
  23973. modelValue: {
  23974. type: [Array, String, Number],
  23975. default: function _default() {
  23976. return [];
  23977. }
  23978. },
  23979. preload: {
  23980. type: Boolean,
  23981. default: false
  23982. },
  23983. stepSearh: {
  23984. type: Boolean,
  23985. default: true
  23986. },
  23987. selfField: {
  23988. type: String,
  23989. default: ''
  23990. },
  23991. parentField: {
  23992. type: String,
  23993. default: ''
  23994. },
  23995. multiple: {
  23996. type: Boolean,
  23997. default: false
  23998. },
  23999. map: {
  24000. type: Object,
  24001. default: function _default() {
  24002. return {
  24003. text: "text",
  24004. value: "value"
  24005. };
  24006. }
  24007. }
  24008. },
  24009. data: function data() {
  24010. return {
  24011. loading: false,
  24012. errorMessage: '',
  24013. loadMore: {
  24014. contentdown: '',
  24015. contentrefresh: '',
  24016. contentnomore: ''
  24017. },
  24018. dataList: [],
  24019. selected: [],
  24020. selectedIndex: 0,
  24021. page: {
  24022. current: this.pageCurrent,
  24023. size: this.pageSize,
  24024. count: 0
  24025. }
  24026. };
  24027. },
  24028. computed: {
  24029. isLocalData: function isLocalData() {
  24030. return !this.collection.length;
  24031. },
  24032. isCloudData: function isCloudData() {
  24033. return this.collection.length > 0;
  24034. },
  24035. isCloudDataList: function isCloudDataList() {
  24036. return this.isCloudData && !this.parentField && !this.selfField;
  24037. },
  24038. isCloudDataTree: function isCloudDataTree() {
  24039. return this.isCloudData && this.parentField && this.selfField;
  24040. },
  24041. dataValue: function dataValue() {
  24042. var isModelValue = Array.isArray(this.modelValue) ? this.modelValue.length > 0 : this.modelValue !== null || this.modelValue !== undefined;
  24043. return isModelValue ? this.modelValue : this.value;
  24044. },
  24045. hasValue: function hasValue() {
  24046. if (typeof this.dataValue === 'number') {
  24047. return true;
  24048. }
  24049. return this.dataValue != null && this.dataValue.length > 0;
  24050. }
  24051. },
  24052. created: function created() {
  24053. var _this = this;
  24054. this.$watch(function () {
  24055. var al = [];
  24056. ['pageCurrent', 'pageSize', 'spaceInfo', 'value', 'modelValue', 'localdata', 'collection', 'action', 'field', 'orderby', 'where', 'getont', 'getcount', 'gettree'].forEach(function (key) {
  24057. al.push(_this[key]);
  24058. });
  24059. return al;
  24060. }, function (newValue, oldValue) {
  24061. var needReset = false;
  24062. for (var i = 2; i < newValue.length; i++) {
  24063. if (newValue[i] != oldValue[i]) {
  24064. needReset = true;
  24065. break;
  24066. }
  24067. }
  24068. if (newValue[0] != oldValue[0]) {
  24069. _this.page.current = _this.pageCurrent;
  24070. }
  24071. _this.page.size = _this.pageSize;
  24072. _this.onPropsChange();
  24073. });
  24074. this._treeData = [];
  24075. },
  24076. methods: {
  24077. onPropsChange: function onPropsChange() {
  24078. this._treeData = [];
  24079. },
  24080. // 填充 pickview 数据
  24081. loadData: function loadData() {
  24082. var _this2 = this;
  24083. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  24084. return _regenerator.default.wrap(function _callee$(_context) {
  24085. while (1) {
  24086. switch (_context.prev = _context.next) {
  24087. case 0:
  24088. if (_this2.isLocalData) {
  24089. _this2.loadLocalData();
  24090. } else if (_this2.isCloudDataList) {
  24091. _this2.loadCloudDataList();
  24092. } else if (_this2.isCloudDataTree) {
  24093. _this2.loadCloudDataTree();
  24094. }
  24095. case 1:
  24096. case "end":
  24097. return _context.stop();
  24098. }
  24099. }
  24100. }, _callee);
  24101. }))();
  24102. },
  24103. // 加载本地数据
  24104. loadLocalData: function loadLocalData() {
  24105. var _this3 = this;
  24106. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
  24107. var inputValue;
  24108. return _regenerator.default.wrap(function _callee2$(_context2) {
  24109. while (1) {
  24110. switch (_context2.prev = _context2.next) {
  24111. case 0:
  24112. _this3._treeData = [];
  24113. _this3._extractTree(_this3.localdata, _this3._treeData);
  24114. inputValue = _this3.dataValue;
  24115. if (!(inputValue === undefined)) {
  24116. _context2.next = 5;
  24117. break;
  24118. }
  24119. return _context2.abrupt("return");
  24120. case 5:
  24121. if (Array.isArray(inputValue)) {
  24122. inputValue = inputValue[inputValue.length - 1];
  24123. if ((0, _typeof2.default)(inputValue) === 'object' && inputValue[_this3.map.value]) {
  24124. inputValue = inputValue[_this3.map.value];
  24125. }
  24126. }
  24127. _this3.selected = _this3._findNodePath(inputValue, _this3.localdata);
  24128. case 7:
  24129. case "end":
  24130. return _context2.stop();
  24131. }
  24132. }
  24133. }, _callee2);
  24134. }))();
  24135. },
  24136. // 加载 Cloud 数据 (单列)
  24137. loadCloudDataList: function loadCloudDataList() {
  24138. var _this4 = this;
  24139. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  24140. var response, responseData;
  24141. return _regenerator.default.wrap(function _callee3$(_context3) {
  24142. while (1) {
  24143. switch (_context3.prev = _context3.next) {
  24144. case 0:
  24145. if (!_this4.loading) {
  24146. _context3.next = 2;
  24147. break;
  24148. }
  24149. return _context3.abrupt("return");
  24150. case 2:
  24151. _this4.loading = true;
  24152. _context3.prev = 3;
  24153. _context3.next = 6;
  24154. return _this4.getCommand();
  24155. case 6:
  24156. response = _context3.sent;
  24157. responseData = response.result.data;
  24158. _this4._treeData = responseData;
  24159. _this4._updateBindData();
  24160. _this4._updateSelected();
  24161. _this4.onDataChange();
  24162. _context3.next = 17;
  24163. break;
  24164. case 14:
  24165. _context3.prev = 14;
  24166. _context3.t0 = _context3["catch"](3);
  24167. _this4.errorMessage = _context3.t0;
  24168. case 17:
  24169. _context3.prev = 17;
  24170. _this4.loading = false;
  24171. return _context3.finish(17);
  24172. case 20:
  24173. case "end":
  24174. return _context3.stop();
  24175. }
  24176. }
  24177. }, _callee3, null, [[3, 14, 17, 20]]);
  24178. }))();
  24179. },
  24180. // 加载 Cloud 数据 (树形)
  24181. loadCloudDataTree: function loadCloudDataTree() {
  24182. var _this5 = this;
  24183. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
  24184. var commandOptions, response, responseData;
  24185. return _regenerator.default.wrap(function _callee4$(_context4) {
  24186. while (1) {
  24187. switch (_context4.prev = _context4.next) {
  24188. case 0:
  24189. if (!_this5.loading) {
  24190. _context4.next = 2;
  24191. break;
  24192. }
  24193. return _context4.abrupt("return");
  24194. case 2:
  24195. _this5.loading = true;
  24196. _context4.prev = 3;
  24197. commandOptions = {
  24198. field: _this5._cloudDataPostField(),
  24199. where: _this5._cloudDataTreeWhere()
  24200. };
  24201. if (_this5.gettree) {
  24202. commandOptions.startwith = "".concat(_this5.selfField, "=='").concat(_this5.dataValue, "'");
  24203. }
  24204. _context4.next = 8;
  24205. return _this5.getCommand(commandOptions);
  24206. case 8:
  24207. response = _context4.sent;
  24208. responseData = response.result.data;
  24209. _this5._treeData = responseData;
  24210. _this5._updateBindData();
  24211. _this5._updateSelected();
  24212. _this5.onDataChange();
  24213. _context4.next = 19;
  24214. break;
  24215. case 16:
  24216. _context4.prev = 16;
  24217. _context4.t0 = _context4["catch"](3);
  24218. _this5.errorMessage = _context4.t0;
  24219. case 19:
  24220. _context4.prev = 19;
  24221. _this5.loading = false;
  24222. return _context4.finish(19);
  24223. case 22:
  24224. case "end":
  24225. return _context4.stop();
  24226. }
  24227. }
  24228. }, _callee4, null, [[3, 16, 19, 22]]);
  24229. }))();
  24230. },
  24231. // 加载 Cloud 数据 (节点)
  24232. loadCloudDataNode: function loadCloudDataNode(callback) {
  24233. var _this6 = this;
  24234. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
  24235. var commandOptions, response, responseData;
  24236. return _regenerator.default.wrap(function _callee5$(_context5) {
  24237. while (1) {
  24238. switch (_context5.prev = _context5.next) {
  24239. case 0:
  24240. if (!_this6.loading) {
  24241. _context5.next = 2;
  24242. break;
  24243. }
  24244. return _context5.abrupt("return");
  24245. case 2:
  24246. _this6.loading = true;
  24247. _context5.prev = 3;
  24248. commandOptions = {
  24249. field: _this6._cloudDataPostField(),
  24250. where: _this6._cloudDataNodeWhere()
  24251. };
  24252. _context5.next = 7;
  24253. return _this6.getCommand(commandOptions);
  24254. case 7:
  24255. response = _context5.sent;
  24256. responseData = response.result.data;
  24257. callback(responseData);
  24258. _context5.next = 15;
  24259. break;
  24260. case 12:
  24261. _context5.prev = 12;
  24262. _context5.t0 = _context5["catch"](3);
  24263. _this6.errorMessage = _context5.t0;
  24264. case 15:
  24265. _context5.prev = 15;
  24266. _this6.loading = false;
  24267. return _context5.finish(15);
  24268. case 18:
  24269. case "end":
  24270. return _context5.stop();
  24271. }
  24272. }
  24273. }, _callee5, null, [[3, 12, 15, 18]]);
  24274. }))();
  24275. },
  24276. // 回显 Cloud 数据
  24277. getCloudDataValue: function getCloudDataValue() {
  24278. if (this.isCloudDataList) {
  24279. return this.getCloudDataListValue();
  24280. }
  24281. if (this.isCloudDataTree) {
  24282. return this.getCloudDataTreeValue();
  24283. }
  24284. },
  24285. // 回显 Cloud 数据 (单列)
  24286. getCloudDataListValue: function getCloudDataListValue() {
  24287. var _this7 = this;
  24288. // 根据 field's as value标识匹配 where 条件
  24289. var where = [];
  24290. var whereField = this._getForeignKeyByField();
  24291. if (whereField) {
  24292. where.push("".concat(whereField, " == '").concat(this.dataValue, "'"));
  24293. }
  24294. where = where.join(' || ');
  24295. if (this.where) {
  24296. where = "(".concat(this.where, ") && (").concat(where, ")");
  24297. }
  24298. return this.getCommand({
  24299. field: this._cloudDataPostField(),
  24300. where: where
  24301. }).then(function (res) {
  24302. _this7.selected = res.result.data;
  24303. return res.result.data;
  24304. });
  24305. },
  24306. // 回显 Cloud 数据 (树形)
  24307. getCloudDataTreeValue: function getCloudDataTreeValue() {
  24308. var _this8 = this;
  24309. return this.getCommand({
  24310. field: this._cloudDataPostField(),
  24311. getTreePath: {
  24312. startWith: "".concat(this.selfField, "=='").concat(this.dataValue, "'")
  24313. }
  24314. }).then(function (res) {
  24315. var treePath = [];
  24316. _this8._extractTreePath(res.result.data, treePath);
  24317. _this8.selected = treePath;
  24318. return treePath;
  24319. });
  24320. },
  24321. getCommand: function getCommand() {
  24322. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  24323. /* eslint-disable no-undef */
  24324. var db = uniCloud.database(this.spaceInfo);
  24325. var action = options.action || this.action;
  24326. if (action) {
  24327. db = db.action(action);
  24328. }
  24329. var collection = options.collection || this.collection;
  24330. db = db.collection(collection);
  24331. var where = options.where || this.where;
  24332. if (!(!where || !Object.keys(where).length)) {
  24333. db = db.where(where);
  24334. }
  24335. var field = options.field || this.field;
  24336. if (field) {
  24337. db = db.field(field);
  24338. }
  24339. var orderby = options.orderby || this.orderby;
  24340. if (orderby) {
  24341. db = db.orderBy(orderby);
  24342. }
  24343. var current = options.pageCurrent !== undefined ? options.pageCurrent : this.page.current;
  24344. var size = options.pageSize !== undefined ? options.pageSize : this.page.size;
  24345. var getCount = options.getcount !== undefined ? options.getcount : this.getcount;
  24346. var getTree = options.gettree !== undefined ? options.gettree : this.gettree;
  24347. var getOptions = {
  24348. getCount: getCount,
  24349. getTree: getTree
  24350. };
  24351. if (options.getTreePath) {
  24352. getOptions.getTreePath = options.getTreePath;
  24353. }
  24354. db = db.skip(size * (current - 1)).limit(size).get(getOptions);
  24355. return db;
  24356. },
  24357. _cloudDataPostField: function _cloudDataPostField() {
  24358. var fields = [this.field];
  24359. if (this.parentField) {
  24360. fields.push("".concat(this.parentField, " as parent_value"));
  24361. }
  24362. return fields.join(',');
  24363. },
  24364. _cloudDataTreeWhere: function _cloudDataTreeWhere() {
  24365. var result = [];
  24366. var selected = this.selected;
  24367. var parentField = this.parentField;
  24368. if (parentField) {
  24369. result.push("".concat(parentField, " == null || ").concat(parentField, " == \"\""));
  24370. }
  24371. if (selected.length) {
  24372. for (var i = 0; i < selected.length - 1; i++) {
  24373. result.push("".concat(parentField, " == '").concat(selected[i].value, "'"));
  24374. }
  24375. }
  24376. var where = [];
  24377. if (this.where) {
  24378. where.push("(".concat(this.where, ")"));
  24379. }
  24380. if (result.length) {
  24381. where.push("(".concat(result.join(' || '), ")"));
  24382. }
  24383. return where.join(' && ');
  24384. },
  24385. _cloudDataNodeWhere: function _cloudDataNodeWhere() {
  24386. var where = [];
  24387. var selected = this.selected;
  24388. if (selected.length) {
  24389. where.push("".concat(this.parentField, " == '").concat(selected[selected.length - 1].value, "'"));
  24390. }
  24391. where = where.join(' || ');
  24392. if (this.where) {
  24393. return "(".concat(this.where, ") && (").concat(where, ")");
  24394. }
  24395. return where;
  24396. },
  24397. _getWhereByForeignKey: function _getWhereByForeignKey() {
  24398. var result = [];
  24399. var whereField = this._getForeignKeyByField();
  24400. if (whereField) {
  24401. result.push("".concat(whereField, " == '").concat(this.dataValue, "'"));
  24402. }
  24403. if (this.where) {
  24404. return "(".concat(this.where, ") && (").concat(result.join(' || '), ")");
  24405. }
  24406. return result.join(' || ');
  24407. },
  24408. _getForeignKeyByField: function _getForeignKeyByField() {
  24409. var fields = this.field.split(',');
  24410. var whereField = null;
  24411. for (var i = 0; i < fields.length; i++) {
  24412. var items = fields[i].split('as');
  24413. if (items.length < 2) {
  24414. continue;
  24415. }
  24416. if (items[1].trim() === 'value') {
  24417. whereField = items[0].trim();
  24418. break;
  24419. }
  24420. }
  24421. return whereField;
  24422. },
  24423. _updateBindData: function _updateBindData(node) {
  24424. var _this$_filterData = this._filterData(this._treeData, this.selected),
  24425. dataList = _this$_filterData.dataList,
  24426. hasNodes = _this$_filterData.hasNodes;
  24427. var isleaf = this._stepSearh === false && !hasNodes;
  24428. if (node) {
  24429. node.isleaf = isleaf;
  24430. }
  24431. this.dataList = dataList;
  24432. this.selectedIndex = dataList.length - 1;
  24433. if (!isleaf && this.selected.length < dataList.length) {
  24434. this.selected.push({
  24435. value: null,
  24436. text: "请选择"
  24437. });
  24438. }
  24439. return {
  24440. isleaf: isleaf,
  24441. hasNodes: hasNodes
  24442. };
  24443. },
  24444. _updateSelected: function _updateSelected() {
  24445. var dl = this.dataList;
  24446. var sl = this.selected;
  24447. var textField = this.map.text;
  24448. var valueField = this.map.value;
  24449. for (var i = 0; i < sl.length; i++) {
  24450. var value = sl[i].value;
  24451. var dl2 = dl[i];
  24452. for (var j = 0; j < dl2.length; j++) {
  24453. var item2 = dl2[j];
  24454. if (item2[valueField] === value) {
  24455. sl[i].text = item2[textField];
  24456. break;
  24457. }
  24458. }
  24459. }
  24460. },
  24461. _filterData: function _filterData(data, paths) {
  24462. var dataList = [];
  24463. var hasNodes = true;
  24464. dataList.push(data.filter(function (item) {
  24465. return item.parent_value === null || item.parent_value === undefined || item.parent_value === '';
  24466. }));
  24467. var _loop = function _loop(i) {
  24468. var value = paths[i].value;
  24469. var nodes = data.filter(function (item) {
  24470. return item.parent_value === value;
  24471. });
  24472. if (nodes.length) {
  24473. dataList.push(nodes);
  24474. } else {
  24475. hasNodes = false;
  24476. }
  24477. };
  24478. for (var i = 0; i < paths.length; i++) {
  24479. _loop(i);
  24480. }
  24481. return {
  24482. dataList: dataList,
  24483. hasNodes: hasNodes
  24484. };
  24485. },
  24486. _extractTree: function _extractTree(nodes, result, parent_value) {
  24487. var list = result || [];
  24488. var valueField = this.map.value;
  24489. for (var i = 0; i < nodes.length; i++) {
  24490. var node = nodes[i];
  24491. var child = {};
  24492. for (var key in node) {
  24493. if (key !== 'children') {
  24494. child[key] = node[key];
  24495. }
  24496. }
  24497. if (parent_value !== null && parent_value !== undefined && parent_value !== '') {
  24498. child.parent_value = parent_value;
  24499. }
  24500. result.push(child);
  24501. var children = node.children;
  24502. if (children) {
  24503. this._extractTree(children, result, node[valueField]);
  24504. }
  24505. }
  24506. },
  24507. _extractTreePath: function _extractTreePath(nodes, result) {
  24508. var list = result || [];
  24509. for (var i = 0; i < nodes.length; i++) {
  24510. var node = nodes[i];
  24511. var child = {};
  24512. for (var key in node) {
  24513. if (key !== 'children') {
  24514. child[key] = node[key];
  24515. }
  24516. }
  24517. result.push(child);
  24518. var children = node.children;
  24519. if (children) {
  24520. this._extractTreePath(children, result);
  24521. }
  24522. }
  24523. },
  24524. _findNodePath: function _findNodePath(key, nodes) {
  24525. var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  24526. var textField = this.map.text;
  24527. var valueField = this.map.value;
  24528. for (var i = 0; i < nodes.length; i++) {
  24529. var node = nodes[i];
  24530. var children = node.children;
  24531. var text = node[textField];
  24532. var value = node[valueField];
  24533. path.push({
  24534. value: value,
  24535. text: text
  24536. });
  24537. if (value === key) {
  24538. return path;
  24539. }
  24540. if (children) {
  24541. var p = this._findNodePath(key, children, path);
  24542. if (p.length) {
  24543. return p;
  24544. }
  24545. }
  24546. path.pop();
  24547. }
  24548. return [];
  24549. }
  24550. }
  24551. };
  24552. exports.default = _default2;
  24553. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js */ 498)["default"]))
  24554. /***/ }),
  24555. /* 498 */
  24556. /*!************************************************************************************!*\
  24557. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js ***!
  24558. \************************************************************************************/
  24559. /*! no static exports found */
  24560. /***/ (function(module, exports, __webpack_require__) {
  24561. "use strict";
  24562. /* WEBPACK VAR INJECTION */(function(global, uni, wx) {
  24563. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24564. Object.defineProperty(exports, "__esModule", {
  24565. value: true
  24566. });
  24567. exports.default = exports.UniCloudError = void 0;
  24568. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  24569. var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ 499));
  24570. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  24571. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  24572. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  24573. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  24574. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  24575. var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ 500));
  24576. var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ 501));
  24577. var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ 502));
  24578. var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ 503));
  24579. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  24580. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  24581. var _pages = _interopRequireDefault(__webpack_require__(/*! @/pages.json */ 505));
  24582. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e33) { throw _e33; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e34) { didErr = true; err = _e34; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  24583. function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
  24584. function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
  24585. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  24586. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  24587. function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
  24588. function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
  24589. "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self && self;
  24590. function t(e) {
  24591. return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
  24592. }
  24593. function n(e, t, n) {
  24594. return e(n = {
  24595. path: t,
  24596. exports: {},
  24597. require: function require(e, t) {
  24598. return function () {
  24599. throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
  24600. }(null == t && n.path);
  24601. }
  24602. }, n.exports), n.exports;
  24603. }
  24604. var s = n(function (e, t) {
  24605. var n;
  24606. e.exports = (n = n || function (e, t) {
  24607. var n = Object.create || function () {
  24608. function e() {}
  24609. return function (t) {
  24610. var n;
  24611. return e.prototype = t, n = new e(), e.prototype = null, n;
  24612. };
  24613. }(),
  24614. s = {},
  24615. r = s.lib = {},
  24616. i = r.Base = {
  24617. extend: function extend(e) {
  24618. var t = n(this);
  24619. return e && t.mixIn(e), t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
  24620. t.$super.init.apply(this, arguments);
  24621. }), t.init.prototype = t, t.$super = this, t;
  24622. },
  24623. create: function create() {
  24624. var e = this.extend();
  24625. return e.init.apply(e, arguments), e;
  24626. },
  24627. init: function init() {},
  24628. mixIn: function mixIn(e) {
  24629. for (var t in e) {
  24630. e.hasOwnProperty(t) && (this[t] = e[t]);
  24631. }
  24632. e.hasOwnProperty("toString") && (this.toString = e.toString);
  24633. },
  24634. clone: function clone() {
  24635. return this.init.prototype.extend(this);
  24636. }
  24637. },
  24638. o = r.WordArray = i.extend({
  24639. init: function init(e, n) {
  24640. e = this.words = e || [], this.sigBytes = n != t ? n : 4 * e.length;
  24641. },
  24642. toString: function toString(e) {
  24643. return (e || c).stringify(this);
  24644. },
  24645. concat: function concat(e) {
  24646. var t = this.words,
  24647. n = e.words,
  24648. s = this.sigBytes,
  24649. r = e.sigBytes;
  24650. if (this.clamp(), s % 4) for (var i = 0; i < r; i++) {
  24651. var o = n[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  24652. t[s + i >>> 2] |= o << 24 - (s + i) % 4 * 8;
  24653. } else for (i = 0; i < r; i += 4) {
  24654. t[s + i >>> 2] = n[i >>> 2];
  24655. }
  24656. return this.sigBytes += r, this;
  24657. },
  24658. clamp: function clamp() {
  24659. var t = this.words,
  24660. n = this.sigBytes;
  24661. t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8, t.length = e.ceil(n / 4);
  24662. },
  24663. clone: function clone() {
  24664. var e = i.clone.call(this);
  24665. return e.words = this.words.slice(0), e;
  24666. },
  24667. random: function random(t) {
  24668. for (var n, s = [], r = function r(t) {
  24669. t = t;
  24670. var n = 987654321,
  24671. s = 4294967295;
  24672. return function () {
  24673. var r = ((n = 36969 * (65535 & n) + (n >> 16) & s) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & s) & s;
  24674. return r /= 4294967296, (r += .5) * (e.random() > .5 ? 1 : -1);
  24675. };
  24676. }, i = 0; i < t; i += 4) {
  24677. var a = r(4294967296 * (n || e.random()));
  24678. n = 987654071 * a(), s.push(4294967296 * a() | 0);
  24679. }
  24680. return new o.init(s, t);
  24681. }
  24682. }),
  24683. a = s.enc = {},
  24684. c = a.Hex = {
  24685. stringify: function stringify(e) {
  24686. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  24687. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  24688. s.push((i >>> 4).toString(16)), s.push((15 & i).toString(16));
  24689. }
  24690. return s.join("");
  24691. },
  24692. parse: function parse(e) {
  24693. for (var t = e.length, n = [], s = 0; s < t; s += 2) {
  24694. n[s >>> 3] |= parseInt(e.substr(s, 2), 16) << 24 - s % 8 * 4;
  24695. }
  24696. return new o.init(n, t / 2);
  24697. }
  24698. },
  24699. u = a.Latin1 = {
  24700. stringify: function stringify(e) {
  24701. for (var t = e.words, n = e.sigBytes, s = [], r = 0; r < n; r++) {
  24702. var i = t[r >>> 2] >>> 24 - r % 4 * 8 & 255;
  24703. s.push(String.fromCharCode(i));
  24704. }
  24705. return s.join("");
  24706. },
  24707. parse: function parse(e) {
  24708. for (var t = e.length, n = [], s = 0; s < t; s++) {
  24709. n[s >>> 2] |= (255 & e.charCodeAt(s)) << 24 - s % 4 * 8;
  24710. }
  24711. return new o.init(n, t);
  24712. }
  24713. },
  24714. l = a.Utf8 = {
  24715. stringify: function stringify(e) {
  24716. try {
  24717. return decodeURIComponent(escape(u.stringify(e)));
  24718. } catch (e) {
  24719. throw new Error("Malformed UTF-8 data");
  24720. }
  24721. },
  24722. parse: function parse(e) {
  24723. return u.parse(unescape(encodeURIComponent(e)));
  24724. }
  24725. },
  24726. h = r.BufferedBlockAlgorithm = i.extend({
  24727. reset: function reset() {
  24728. this._data = new o.init(), this._nDataBytes = 0;
  24729. },
  24730. _append: function _append(e) {
  24731. "string" == typeof e && (e = l.parse(e)), this._data.concat(e), this._nDataBytes += e.sigBytes;
  24732. },
  24733. _process: function _process(t) {
  24734. var n = this._data,
  24735. s = n.words,
  24736. r = n.sigBytes,
  24737. i = this.blockSize,
  24738. a = r / (4 * i),
  24739. c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * i,
  24740. u = e.min(4 * c, r);
  24741. if (c) {
  24742. for (var l = 0; l < c; l += i) {
  24743. this._doProcessBlock(s, l);
  24744. }
  24745. var h = s.splice(0, c);
  24746. n.sigBytes -= u;
  24747. }
  24748. return new o.init(h, u);
  24749. },
  24750. clone: function clone() {
  24751. var e = i.clone.call(this);
  24752. return e._data = this._data.clone(), e;
  24753. },
  24754. _minBufferSize: 0
  24755. });
  24756. r.Hasher = h.extend({
  24757. cfg: i.extend(),
  24758. init: function init(e) {
  24759. this.cfg = this.cfg.extend(e), this.reset();
  24760. },
  24761. reset: function reset() {
  24762. h.reset.call(this), this._doReset();
  24763. },
  24764. update: function update(e) {
  24765. return this._append(e), this._process(), this;
  24766. },
  24767. finalize: function finalize(e) {
  24768. return e && this._append(e), this._doFinalize();
  24769. },
  24770. blockSize: 16,
  24771. _createHelper: function _createHelper(e) {
  24772. return function (t, n) {
  24773. return new e.init(n).finalize(t);
  24774. };
  24775. },
  24776. _createHmacHelper: function _createHmacHelper(e) {
  24777. return function (t, n) {
  24778. return new d.HMAC.init(e, n).finalize(t);
  24779. };
  24780. }
  24781. });
  24782. var d = s.algo = {};
  24783. return s;
  24784. }(Math), n);
  24785. }),
  24786. r = s,
  24787. i = (n(function (e, t) {
  24788. var n;
  24789. e.exports = (n = r, function (e) {
  24790. var t = n,
  24791. s = t.lib,
  24792. r = s.WordArray,
  24793. i = s.Hasher,
  24794. o = t.algo,
  24795. a = [];
  24796. !function () {
  24797. for (var t = 0; t < 64; t++) {
  24798. a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0;
  24799. }
  24800. }();
  24801. var c = o.MD5 = i.extend({
  24802. _doReset: function _doReset() {
  24803. this._hash = new r.init([1732584193, 4023233417, 2562383102, 271733878]);
  24804. },
  24805. _doProcessBlock: function _doProcessBlock(e, t) {
  24806. for (var n = 0; n < 16; n++) {
  24807. var s = t + n,
  24808. r = e[s];
  24809. e[s] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8);
  24810. }
  24811. var i = this._hash.words,
  24812. o = e[t + 0],
  24813. c = e[t + 1],
  24814. p = e[t + 2],
  24815. f = e[t + 3],
  24816. g = e[t + 4],
  24817. m = e[t + 5],
  24818. y = e[t + 6],
  24819. _ = e[t + 7],
  24820. w = e[t + 8],
  24821. v = e[t + 9],
  24822. I = e[t + 10],
  24823. S = e[t + 11],
  24824. b = e[t + 12],
  24825. k = e[t + 13],
  24826. A = e[t + 14],
  24827. C = e[t + 15],
  24828. P = i[0],
  24829. T = i[1],
  24830. x = i[2],
  24831. O = i[3];
  24832. P = u(P, T, x, O, o, 7, a[0]), O = u(O, P, T, x, c, 12, a[1]), x = u(x, O, P, T, p, 17, a[2]), T = u(T, x, O, P, f, 22, a[3]), P = u(P, T, x, O, g, 7, a[4]), O = u(O, P, T, x, m, 12, a[5]), x = u(x, O, P, T, y, 17, a[6]), T = u(T, x, O, P, _, 22, a[7]), P = u(P, T, x, O, w, 7, a[8]), O = u(O, P, T, x, v, 12, a[9]), x = u(x, O, P, T, I, 17, a[10]), T = u(T, x, O, P, S, 22, a[11]), P = u(P, T, x, O, b, 7, a[12]), O = u(O, P, T, x, k, 12, a[13]), x = u(x, O, P, T, A, 17, a[14]), P = l(P, T = u(T, x, O, P, C, 22, a[15]), x, O, c, 5, a[16]), O = l(O, P, T, x, y, 9, a[17]), x = l(x, O, P, T, S, 14, a[18]), T = l(T, x, O, P, o, 20, a[19]), P = l(P, T, x, O, m, 5, a[20]), O = l(O, P, T, x, I, 9, a[21]), x = l(x, O, P, T, C, 14, a[22]), T = l(T, x, O, P, g, 20, a[23]), P = l(P, T, x, O, v, 5, a[24]), O = l(O, P, T, x, A, 9, a[25]), x = l(x, O, P, T, f, 14, a[26]), T = l(T, x, O, P, w, 20, a[27]), P = l(P, T, x, O, k, 5, a[28]), O = l(O, P, T, x, p, 9, a[29]), x = l(x, O, P, T, _, 14, a[30]), P = h(P, T = l(T, x, O, P, b, 20, a[31]), x, O, m, 4, a[32]), O = h(O, P, T, x, w, 11, a[33]), x = h(x, O, P, T, S, 16, a[34]), T = h(T, x, O, P, A, 23, a[35]), P = h(P, T, x, O, c, 4, a[36]), O = h(O, P, T, x, g, 11, a[37]), x = h(x, O, P, T, _, 16, a[38]), T = h(T, x, O, P, I, 23, a[39]), P = h(P, T, x, O, k, 4, a[40]), O = h(O, P, T, x, o, 11, a[41]), x = h(x, O, P, T, f, 16, a[42]), T = h(T, x, O, P, y, 23, a[43]), P = h(P, T, x, O, v, 4, a[44]), O = h(O, P, T, x, b, 11, a[45]), x = h(x, O, P, T, C, 16, a[46]), P = d(P, T = h(T, x, O, P, p, 23, a[47]), x, O, o, 6, a[48]), O = d(O, P, T, x, _, 10, a[49]), x = d(x, O, P, T, A, 15, a[50]), T = d(T, x, O, P, m, 21, a[51]), P = d(P, T, x, O, b, 6, a[52]), O = d(O, P, T, x, f, 10, a[53]), x = d(x, O, P, T, I, 15, a[54]), T = d(T, x, O, P, c, 21, a[55]), P = d(P, T, x, O, w, 6, a[56]), O = d(O, P, T, x, C, 10, a[57]), x = d(x, O, P, T, y, 15, a[58]), T = d(T, x, O, P, k, 21, a[59]), P = d(P, T, x, O, g, 6, a[60]), O = d(O, P, T, x, S, 10, a[61]), x = d(x, O, P, T, p, 15, a[62]), T = d(T, x, O, P, v, 21, a[63]), i[0] = i[0] + P | 0, i[1] = i[1] + T | 0, i[2] = i[2] + x | 0, i[3] = i[3] + O | 0;
  24833. },
  24834. _doFinalize: function _doFinalize() {
  24835. var t = this._data,
  24836. n = t.words,
  24837. s = 8 * this._nDataBytes,
  24838. r = 8 * t.sigBytes;
  24839. n[r >>> 5] |= 128 << 24 - r % 32;
  24840. var i = e.floor(s / 4294967296),
  24841. o = s;
  24842. n[15 + (r + 64 >>> 9 << 4)] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8), n[14 + (r + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();
  24843. for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
  24844. var l = c[u];
  24845. c[u] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8);
  24846. }
  24847. return a;
  24848. },
  24849. clone: function clone() {
  24850. var e = i.clone.call(this);
  24851. return e._hash = this._hash.clone(), e;
  24852. }
  24853. });
  24854. function u(e, t, n, s, r, i, o) {
  24855. var a = e + (t & n | ~t & s) + r + o;
  24856. return (a << i | a >>> 32 - i) + t;
  24857. }
  24858. function l(e, t, n, s, r, i, o) {
  24859. var a = e + (t & s | n & ~s) + r + o;
  24860. return (a << i | a >>> 32 - i) + t;
  24861. }
  24862. function h(e, t, n, s, r, i, o) {
  24863. var a = e + (t ^ n ^ s) + r + o;
  24864. return (a << i | a >>> 32 - i) + t;
  24865. }
  24866. function d(e, t, n, s, r, i, o) {
  24867. var a = e + (n ^ (t | ~s)) + r + o;
  24868. return (a << i | a >>> 32 - i) + t;
  24869. }
  24870. t.MD5 = i._createHelper(c), t.HmacMD5 = i._createHmacHelper(c);
  24871. }(Math), n.MD5);
  24872. }), n(function (e, t) {
  24873. var n;
  24874. e.exports = (n = r, void function () {
  24875. var e = n,
  24876. t = e.lib.Base,
  24877. s = e.enc.Utf8;
  24878. e.algo.HMAC = t.extend({
  24879. init: function init(e, t) {
  24880. e = this._hasher = new e.init(), "string" == typeof t && (t = s.parse(t));
  24881. var n = e.blockSize,
  24882. r = 4 * n;
  24883. t.sigBytes > r && (t = e.finalize(t)), t.clamp();
  24884. for (var i = this._oKey = t.clone(), o = this._iKey = t.clone(), a = i.words, c = o.words, u = 0; u < n; u++) {
  24885. a[u] ^= 1549556828, c[u] ^= 909522486;
  24886. }
  24887. i.sigBytes = o.sigBytes = r, this.reset();
  24888. },
  24889. reset: function reset() {
  24890. var e = this._hasher;
  24891. e.reset(), e.update(this._iKey);
  24892. },
  24893. update: function update(e) {
  24894. return this._hasher.update(e), this;
  24895. },
  24896. finalize: function finalize(e) {
  24897. var t = this._hasher,
  24898. n = t.finalize(e);
  24899. return t.reset(), t.finalize(this._oKey.clone().concat(n));
  24900. }
  24901. });
  24902. }());
  24903. }), n(function (e, t) {
  24904. e.exports = r.HmacMD5;
  24905. })),
  24906. o = n(function (e, t) {
  24907. e.exports = r.enc.Utf8;
  24908. }),
  24909. a = n(function (e, t) {
  24910. var n;
  24911. e.exports = (n = r, function () {
  24912. var e = n,
  24913. t = e.lib.WordArray;
  24914. function s(e, n, s) {
  24915. for (var r = [], i = 0, o = 0; o < n; o++) {
  24916. if (o % 4) {
  24917. var a = s[e.charCodeAt(o - 1)] << o % 4 * 2,
  24918. c = s[e.charCodeAt(o)] >>> 6 - o % 4 * 2;
  24919. r[i >>> 2] |= (a | c) << 24 - i % 4 * 8, i++;
  24920. }
  24921. }
  24922. return t.create(r, i);
  24923. }
  24924. e.enc.Base64 = {
  24925. stringify: function stringify(e) {
  24926. var t = e.words,
  24927. n = e.sigBytes,
  24928. s = this._map;
  24929. e.clamp();
  24930. for (var r = [], i = 0; i < n; i += 3) {
  24931. for (var o = (t[i >>> 2] >>> 24 - i % 4 * 8 & 255) << 16 | (t[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 255) << 8 | t[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 255, a = 0; a < 4 && i + .75 * a < n; a++) {
  24932. r.push(s.charAt(o >>> 6 * (3 - a) & 63));
  24933. }
  24934. }
  24935. var c = s.charAt(64);
  24936. if (c) for (; r.length % 4;) {
  24937. r.push(c);
  24938. }
  24939. return r.join("");
  24940. },
  24941. parse: function parse(e) {
  24942. var t = e.length,
  24943. n = this._map,
  24944. r = this._reverseMap;
  24945. if (!r) {
  24946. r = this._reverseMap = [];
  24947. for (var i = 0; i < n.length; i++) {
  24948. r[n.charCodeAt(i)] = i;
  24949. }
  24950. }
  24951. var o = n.charAt(64);
  24952. if (o) {
  24953. var a = e.indexOf(o);
  24954. -1 !== a && (t = a);
  24955. }
  24956. return s(e, t, r);
  24957. },
  24958. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  24959. };
  24960. }(), n.enc.Base64);
  24961. });
  24962. var c = "FUNCTION",
  24963. u = "OBJECT",
  24964. l = "CLIENT_DB",
  24965. h = "pending",
  24966. d = "fulfilled",
  24967. p = "rejected";
  24968. function f(e) {
  24969. return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
  24970. }
  24971. function g(e) {
  24972. return "object" === f(e);
  24973. }
  24974. function m(e) {
  24975. return "function" == typeof e;
  24976. }
  24977. function y(e) {
  24978. return function () {
  24979. try {
  24980. return e.apply(e, arguments);
  24981. } catch (e) {
  24982. console.error(e);
  24983. }
  24984. };
  24985. }
  24986. var _ = "REJECTED",
  24987. w = "NOT_PENDING";
  24988. var v = /*#__PURE__*/function () {
  24989. function v() {
  24990. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  24991. e = _ref.createPromise,
  24992. _ref$retryRule = _ref.retryRule,
  24993. t = _ref$retryRule === void 0 ? _ : _ref$retryRule;
  24994. (0, _classCallCheck2.default)(this, v);
  24995. this.createPromise = e, this.status = null, this.promise = null, this.retryRule = t;
  24996. }
  24997. (0, _createClass2.default)(v, [{
  24998. key: "needRetry",
  24999. get: function get() {
  25000. if (!this.status) return !0;
  25001. switch (this.retryRule) {
  25002. case _:
  25003. return this.status === p;
  25004. case w:
  25005. return this.status !== h;
  25006. }
  25007. }
  25008. }, {
  25009. key: "exec",
  25010. value: function exec() {
  25011. var _this = this;
  25012. return this.needRetry ? (this.status = h, this.promise = this.createPromise().then(function (e) {
  25013. return _this.status = d, Promise.resolve(e);
  25014. }, function (e) {
  25015. return _this.status = p, Promise.reject(e);
  25016. }), this.promise) : this.promise;
  25017. }
  25018. }]);
  25019. return v;
  25020. }();
  25021. function I(e) {
  25022. return e && "string" == typeof e ? JSON.parse(e) : e;
  25023. }
  25024. var S = "development" === "development",
  25025. b = "mp-weixin",
  25026. k = "true" === undefined || !0 === undefined,
  25027. A = I([]),
  25028. C = "h5" === b ? "web" : "app-plus" === b ? "app" : b,
  25029. P = I(undefined),
  25030. T = I([]) || [],
  25031. x = true;
  25032. var O = "";
  25033. try {
  25034. O = (__webpack_require__(/*! uni-stat-config */ 506).default || __webpack_require__(/*! uni-stat-config */ 506)).appid;
  25035. } catch (e) {}
  25036. var E = {};
  25037. function L(e) {
  25038. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  25039. var n, s;
  25040. return n = E, s = e, Object.prototype.hasOwnProperty.call(n, s) || (E[e] = t), E[e];
  25041. }
  25042. "app" === C && (E = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {});
  25043. var R = ["invoke", "success", "fail", "complete"],
  25044. U = L("_globalUniCloudInterceptor");
  25045. function N(e, t) {
  25046. U[e] || (U[e] = {}), g(t) && Object.keys(t).forEach(function (n) {
  25047. R.indexOf(n) > -1 && function (e, t, n) {
  25048. var s = U[e][t];
  25049. s || (s = U[e][t] = []), -1 === s.indexOf(n) && m(n) && s.push(n);
  25050. }(e, n, t[n]);
  25051. });
  25052. }
  25053. function D(e, t) {
  25054. U[e] || (U[e] = {}), g(t) ? Object.keys(t).forEach(function (n) {
  25055. R.indexOf(n) > -1 && function (e, t, n) {
  25056. var s = U[e][t];
  25057. if (!s) return;
  25058. var r = s.indexOf(n);
  25059. r > -1 && s.splice(r, 1);
  25060. }(e, n, t[n]);
  25061. }) : delete U[e];
  25062. }
  25063. function q(e, t) {
  25064. return e && 0 !== e.length ? e.reduce(function (e, n) {
  25065. return e.then(function () {
  25066. return n(t);
  25067. });
  25068. }, Promise.resolve()) : Promise.resolve();
  25069. }
  25070. function M(e, t) {
  25071. return U[e] && U[e][t] || [];
  25072. }
  25073. function F(e) {
  25074. N("callObject", e);
  25075. }
  25076. var K = L("_globalUniCloudListener"),
  25077. j = "response",
  25078. $ = "needLogin",
  25079. B = "refreshToken",
  25080. W = "clientdb",
  25081. H = "cloudfunction",
  25082. J = "cloudobject";
  25083. function z(e) {
  25084. return K[e] || (K[e] = []), K[e];
  25085. }
  25086. function V(e, t) {
  25087. var n = z(e);
  25088. n.includes(t) || n.push(t);
  25089. }
  25090. function G(e, t) {
  25091. var n = z(e),
  25092. s = n.indexOf(t);
  25093. -1 !== s && n.splice(s, 1);
  25094. }
  25095. function Y(e, t) {
  25096. var n = z(e);
  25097. for (var _e2 = 0; _e2 < n.length; _e2++) {
  25098. (0, n[_e2])(t);
  25099. }
  25100. }
  25101. var Q,
  25102. X = !1;
  25103. function Z() {
  25104. return Q || (Q = new Promise(function (e) {
  25105. X && e(), function t() {
  25106. if ("function" == typeof getCurrentPages) {
  25107. var _t2 = getCurrentPages();
  25108. _t2 && _t2[0] && (X = !0, e());
  25109. }
  25110. X || setTimeout(function () {
  25111. t();
  25112. }, 30);
  25113. }();
  25114. }), Q);
  25115. }
  25116. function ee(e) {
  25117. var t = {};
  25118. for (var _n2 in e) {
  25119. var _s2 = e[_n2];
  25120. m(_s2) && (t[_n2] = y(_s2));
  25121. }
  25122. return t;
  25123. }
  25124. var te = /*#__PURE__*/function (_Error) {
  25125. (0, _inherits2.default)(te, _Error);
  25126. var _super = _createSuper(te);
  25127. function te(e) {
  25128. var _this2;
  25129. (0, _classCallCheck2.default)(this, te);
  25130. _this2 = _super.call(this, e.message), _this2.errMsg = e.message || e.errMsg || "unknown system error", _this2.code = _this2.errCode = e.code || e.errCode || "SYSTEM_ERROR", _this2.errSubject = _this2.subject = e.subject || e.errSubject, _this2.cause = e.cause, _this2.requestId = e.requestId;
  25131. return _this2;
  25132. }
  25133. (0, _createClass2.default)(te, [{
  25134. key: "toJson",
  25135. value: function toJson() {
  25136. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  25137. if (!(e >= 10)) return e++, {
  25138. errCode: this.errCode,
  25139. errMsg: this.errMsg,
  25140. errSubject: this.errSubject,
  25141. cause: this.cause && this.cause.toJson ? this.cause.toJson(e) : this.cause
  25142. };
  25143. }
  25144. }]);
  25145. return te;
  25146. }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
  25147. exports.UniCloudError = te;
  25148. var ne = {
  25149. request: function request(e) {
  25150. return uni.request(e);
  25151. },
  25152. uploadFile: function uploadFile(e) {
  25153. return uni.uploadFile(e);
  25154. },
  25155. setStorageSync: function setStorageSync(e, t) {
  25156. return uni.setStorageSync(e, t);
  25157. },
  25158. getStorageSync: function getStorageSync(e) {
  25159. return uni.getStorageSync(e);
  25160. },
  25161. removeStorageSync: function removeStorageSync(e) {
  25162. return uni.removeStorageSync(e);
  25163. },
  25164. clearStorageSync: function clearStorageSync() {
  25165. return uni.clearStorageSync();
  25166. },
  25167. connectSocket: function connectSocket(e) {
  25168. return uni.connectSocket(e);
  25169. }
  25170. };
  25171. function se() {
  25172. return {
  25173. token: ne.getStorageSync("uni_id_token") || ne.getStorageSync("uniIdToken"),
  25174. tokenExpired: ne.getStorageSync("uni_id_token_expired")
  25175. };
  25176. }
  25177. function re() {
  25178. var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  25179. e = _ref2.token,
  25180. t = _ref2.tokenExpired;
  25181. e && ne.setStorageSync("uni_id_token", e), t && ne.setStorageSync("uni_id_token_expired", t);
  25182. }
  25183. var ie, oe;
  25184. function ae() {
  25185. return ie || (ie = uni.getSystemInfoSync()), ie;
  25186. }
  25187. function ce() {
  25188. var e, t;
  25189. try {
  25190. if (uni.getLaunchOptionsSync) {
  25191. if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) return;
  25192. var _uni$getLaunchOptions = uni.getLaunchOptionsSync(),
  25193. _n3 = _uni$getLaunchOptions.scene,
  25194. _s3 = _uni$getLaunchOptions.channel;
  25195. e = _s3, t = _n3;
  25196. }
  25197. } catch (e) {}
  25198. return {
  25199. channel: e,
  25200. scene: t
  25201. };
  25202. }
  25203. var ue = {};
  25204. function le() {
  25205. var e = uni.getLocale && uni.getLocale() || "en";
  25206. if (oe) return _objectSpread(_objectSpread(_objectSpread({}, ue), oe), {}, {
  25207. locale: e,
  25208. LOCALE: e
  25209. });
  25210. var t = ae(),
  25211. n = t.deviceId,
  25212. s = t.osName,
  25213. r = t.uniPlatform,
  25214. i = t.appId,
  25215. o = ["appId", "appLanguage", "appName", "appVersion", "appVersionCode", "appWgtVersion", "browserName", "browserVersion", "deviceBrand", "deviceId", "deviceModel", "deviceType", "osName", "osVersion", "romName", "romVersion", "ua", "hostName", "hostVersion", "uniPlatform", "uniRuntimeVersion", "uniRuntimeVersionCode", "uniCompilerVersion", "uniCompilerVersionCode"];
  25216. for (var _e3 in t) {
  25217. Object.hasOwnProperty.call(t, _e3) && -1 === o.indexOf(_e3) && delete t[_e3];
  25218. }
  25219. return oe = _objectSpread(_objectSpread({
  25220. PLATFORM: r,
  25221. OS: s,
  25222. APPID: i,
  25223. DEVICEID: n
  25224. }, ce()), t), _objectSpread(_objectSpread(_objectSpread({}, ue), oe), {}, {
  25225. locale: e,
  25226. LOCALE: e
  25227. });
  25228. }
  25229. var he = {
  25230. sign: function sign(e, t) {
  25231. var n = "";
  25232. return Object.keys(e).sort().forEach(function (t) {
  25233. e[t] && (n = n + "&" + t + "=" + e[t]);
  25234. }), n = n.slice(1), i(n, t).toString();
  25235. },
  25236. wrappedRequest: function wrappedRequest(e, t) {
  25237. return new Promise(function (n, s) {
  25238. t(Object.assign(e, {
  25239. complete: function complete(e) {
  25240. e || (e = {}), S && "web" === C && e.errMsg && 0 === e.errMsg.indexOf("request:fail") && console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");
  25241. var t = e.data && e.data.header && e.data.header["x-serverless-request-id"] || e.header && e.header["request-id"];
  25242. if (!e.statusCode || e.statusCode >= 400) {
  25243. var _n4 = e.data && e.data.error && e.data.error.code || "SYS_ERR",
  25244. _r = e.data && e.data.error && e.data.error.message || e.errMsg || "request:fail";
  25245. return s(new te({
  25246. code: _n4,
  25247. message: _r,
  25248. requestId: t
  25249. }));
  25250. }
  25251. var r = e.data;
  25252. if (r.error) return s(new te({
  25253. code: r.error.code,
  25254. message: r.error.message,
  25255. requestId: t
  25256. }));
  25257. r.result = r.data, r.requestId = t, delete r.data, n(r);
  25258. }
  25259. }));
  25260. });
  25261. },
  25262. toBase64: function toBase64(e) {
  25263. return a.stringify(o.parse(e));
  25264. }
  25265. };
  25266. var de = /*#__PURE__*/function () {
  25267. function de(e) {
  25268. var _this3 = this;
  25269. (0, _classCallCheck2.default)(this, de);
  25270. ["spaceId", "clientSecret"].forEach(function (t) {
  25271. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  25272. }), this.config = Object.assign({}, {
  25273. endpoint: 0 === e.spaceId.indexOf("mp-") ? "https://api.next.bspapp.com" : "https://api.bspapp.com"
  25274. }, e), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, this.adapter = ne, this._getAccessTokenPromiseHub = new v({
  25275. createPromise: function createPromise() {
  25276. return _this3.requestAuth(_this3.setupRequest({
  25277. method: "serverless.auth.user.anonymousAuthorize",
  25278. params: "{}"
  25279. }, "auth")).then(function (e) {
  25280. if (!e.result || !e.result.accessToken) throw new te({
  25281. code: "AUTH_FAILED",
  25282. message: "获取accessToken失败"
  25283. });
  25284. _this3.setAccessToken(e.result.accessToken);
  25285. });
  25286. },
  25287. retryRule: w
  25288. });
  25289. }
  25290. (0, _createClass2.default)(de, [{
  25291. key: "hasAccessToken",
  25292. get: function get() {
  25293. return !!this.accessToken;
  25294. }
  25295. }, {
  25296. key: "setAccessToken",
  25297. value: function setAccessToken(e) {
  25298. this.accessToken = e;
  25299. }
  25300. }, {
  25301. key: "requestWrapped",
  25302. value: function requestWrapped(e) {
  25303. return he.wrappedRequest(e, this.adapter.request);
  25304. }
  25305. }, {
  25306. key: "requestAuth",
  25307. value: function requestAuth(e) {
  25308. return this.requestWrapped(e);
  25309. }
  25310. }, {
  25311. key: "request",
  25312. value: function request(e, t) {
  25313. var _this4 = this;
  25314. return Promise.resolve().then(function () {
  25315. return _this4.hasAccessToken ? t ? _this4.requestWrapped(e) : _this4.requestWrapped(e).catch(function (t) {
  25316. return new Promise(function (e, n) {
  25317. !t || "GATEWAY_INVALID_TOKEN" !== t.code && "InvalidParameter.InvalidToken" !== t.code ? n(t) : e();
  25318. }).then(function () {
  25319. return _this4.getAccessToken();
  25320. }).then(function () {
  25321. var t = _this4.rebuildRequest(e);
  25322. return _this4.request(t, !0);
  25323. });
  25324. }) : _this4.getAccessToken().then(function () {
  25325. var t = _this4.rebuildRequest(e);
  25326. return _this4.request(t, !0);
  25327. });
  25328. });
  25329. }
  25330. }, {
  25331. key: "rebuildRequest",
  25332. value: function rebuildRequest(e) {
  25333. var t = Object.assign({}, e);
  25334. return t.data.token = this.accessToken, t.header["x-basement-token"] = this.accessToken, t.header["x-serverless-sign"] = he.sign(t.data, this.config.clientSecret), t;
  25335. }
  25336. }, {
  25337. key: "setupRequest",
  25338. value: function setupRequest(e, t) {
  25339. var n = Object.assign({}, e, {
  25340. spaceId: this.config.spaceId,
  25341. timestamp: Date.now()
  25342. }),
  25343. s = {
  25344. "Content-Type": "application/json"
  25345. };
  25346. return "auth" !== t && (n.token = this.accessToken, s["x-basement-token"] = this.accessToken), s["x-serverless-sign"] = he.sign(n, this.config.clientSecret), {
  25347. url: this.config.requestUrl,
  25348. method: "POST",
  25349. data: n,
  25350. dataType: "json",
  25351. header: s
  25352. };
  25353. }
  25354. }, {
  25355. key: "getAccessToken",
  25356. value: function getAccessToken() {
  25357. return this._getAccessTokenPromiseHub.exec();
  25358. }
  25359. }, {
  25360. key: "authorize",
  25361. value: function () {
  25362. var _authorize = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  25363. return _regenerator.default.wrap(function _callee$(_context) {
  25364. while (1) {
  25365. switch (_context.prev = _context.next) {
  25366. case 0:
  25367. _context.next = 2;
  25368. return this.getAccessToken();
  25369. case 2:
  25370. case "end":
  25371. return _context.stop();
  25372. }
  25373. }
  25374. }, _callee, this);
  25375. }));
  25376. function authorize() {
  25377. return _authorize.apply(this, arguments);
  25378. }
  25379. return authorize;
  25380. }()
  25381. }, {
  25382. key: "callFunction",
  25383. value: function callFunction(e) {
  25384. var t = {
  25385. method: "serverless.function.runtime.invoke",
  25386. params: JSON.stringify({
  25387. functionTarget: e.name,
  25388. functionArgs: e.data || {}
  25389. })
  25390. };
  25391. return this.request(_objectSpread(_objectSpread({}, this.setupRequest(t)), {}, {
  25392. timeout: e.timeout
  25393. }));
  25394. }
  25395. }, {
  25396. key: "getOSSUploadOptionsFromPath",
  25397. value: function getOSSUploadOptionsFromPath(e) {
  25398. var t = {
  25399. method: "serverless.file.resource.generateProximalSign",
  25400. params: JSON.stringify(e)
  25401. };
  25402. return this.request(this.setupRequest(t));
  25403. }
  25404. }, {
  25405. key: "uploadFileToOSS",
  25406. value: function uploadFileToOSS(_ref3) {
  25407. var _this5 = this;
  25408. var e = _ref3.url,
  25409. t = _ref3.formData,
  25410. n = _ref3.name,
  25411. s = _ref3.filePath,
  25412. r = _ref3.fileType,
  25413. i = _ref3.onUploadProgress;
  25414. return new Promise(function (o, a) {
  25415. var c = _this5.adapter.uploadFile({
  25416. url: e,
  25417. formData: t,
  25418. name: n,
  25419. filePath: s,
  25420. fileType: r,
  25421. header: {
  25422. "X-OSS-server-side-encrpytion": "AES256"
  25423. },
  25424. success: function success(e) {
  25425. e && e.statusCode < 400 ? o(e) : a(new te({
  25426. code: "UPLOAD_FAILED",
  25427. message: "文件上传失败"
  25428. }));
  25429. },
  25430. fail: function fail(e) {
  25431. a(new te({
  25432. code: e.code || "UPLOAD_FAILED",
  25433. message: e.message || e.errMsg || "文件上传失败"
  25434. }));
  25435. }
  25436. });
  25437. "function" == typeof i && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  25438. i({
  25439. loaded: e.totalBytesSent,
  25440. total: e.totalBytesExpectedToSend
  25441. });
  25442. });
  25443. });
  25444. }
  25445. }, {
  25446. key: "reportOSSUpload",
  25447. value: function reportOSSUpload(e) {
  25448. var t = {
  25449. method: "serverless.file.resource.report",
  25450. params: JSON.stringify(e)
  25451. };
  25452. return this.request(this.setupRequest(t));
  25453. }
  25454. }, {
  25455. key: "uploadFile",
  25456. value: function () {
  25457. var _uploadFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(_ref4) {
  25458. var e, t, _ref4$fileType, n, _ref4$cloudPathAsReal, s, r, i, o, a, c, u, l, h, d, p, g, m, y, _, _e4, w;
  25459. return _regenerator.default.wrap(function _callee2$(_context2) {
  25460. while (1) {
  25461. switch (_context2.prev = _context2.next) {
  25462. case 0:
  25463. e = _ref4.filePath, t = _ref4.cloudPath, _ref4$fileType = _ref4.fileType, n = _ref4$fileType === void 0 ? "image" : _ref4$fileType, _ref4$cloudPathAsReal = _ref4.cloudPathAsRealPath, s = _ref4$cloudPathAsReal === void 0 ? !1 : _ref4$cloudPathAsReal, r = _ref4.onUploadProgress, i = _ref4.config;
  25464. if (!("string" !== f(t))) {
  25465. _context2.next = 3;
  25466. break;
  25467. }
  25468. throw new te({
  25469. code: "INVALID_PARAM",
  25470. message: "cloudPath必须为字符串类型"
  25471. });
  25472. case 3:
  25473. if (t = t.trim()) {
  25474. _context2.next = 5;
  25475. break;
  25476. }
  25477. throw new te({
  25478. code: "INVALID_PARAM",
  25479. message: "cloudPath不可为空"
  25480. });
  25481. case 5:
  25482. if (!/:\/\//.test(t)) {
  25483. _context2.next = 7;
  25484. break;
  25485. }
  25486. throw new te({
  25487. code: "INVALID_PARAM",
  25488. message: "cloudPath不合法"
  25489. });
  25490. case 7:
  25491. o = i && i.envType || this.config.envType;
  25492. if (!(s && ("/" !== t[0] && (t = "/" + t), t.indexOf("\\") > -1))) {
  25493. _context2.next = 10;
  25494. break;
  25495. }
  25496. throw new te({
  25497. code: "INVALID_PARAM",
  25498. message: "使用cloudPath作为路径时,cloudPath不可包含“\\”"
  25499. });
  25500. case 10:
  25501. _context2.next = 12;
  25502. return this.getOSSUploadOptionsFromPath({
  25503. env: o,
  25504. filename: s ? t.split("/").pop() : t,
  25505. fileId: s ? t : void 0
  25506. });
  25507. case 12:
  25508. a = _context2.sent.result;
  25509. c = "https://" + a.cdnDomain + "/" + a.ossPath;
  25510. u = a.securityToken;
  25511. l = a.accessKeyId;
  25512. h = a.signature;
  25513. d = a.host;
  25514. p = a.ossPath;
  25515. g = a.id;
  25516. m = a.policy;
  25517. y = a.ossCallbackUrl;
  25518. _ = {
  25519. "Cache-Control": "max-age=2592000",
  25520. "Content-Disposition": "attachment",
  25521. OSSAccessKeyId: l,
  25522. Signature: h,
  25523. host: d,
  25524. id: g,
  25525. key: p,
  25526. policy: m,
  25527. success_action_status: 200
  25528. };
  25529. if (u && (_["x-oss-security-token"] = u), y) {
  25530. _e4 = JSON.stringify({
  25531. callbackUrl: y,
  25532. callbackBody: JSON.stringify({
  25533. fileId: g,
  25534. spaceId: this.config.spaceId
  25535. }),
  25536. callbackBodyType: "application/json"
  25537. });
  25538. _.callback = he.toBase64(_e4);
  25539. }
  25540. w = {
  25541. url: "https://" + a.host,
  25542. formData: _,
  25543. fileName: "file",
  25544. name: "file",
  25545. filePath: e,
  25546. fileType: n
  25547. };
  25548. _context2.next = 27;
  25549. return this.uploadFileToOSS(Object.assign({}, w, {
  25550. onUploadProgress: r
  25551. }));
  25552. case 27:
  25553. if (!y) {
  25554. _context2.next = 29;
  25555. break;
  25556. }
  25557. return _context2.abrupt("return", {
  25558. success: !0,
  25559. filePath: e,
  25560. fileID: c
  25561. });
  25562. case 29:
  25563. _context2.next = 31;
  25564. return this.reportOSSUpload({
  25565. id: g
  25566. });
  25567. case 31:
  25568. if (!_context2.sent.success) {
  25569. _context2.next = 33;
  25570. break;
  25571. }
  25572. return _context2.abrupt("return", {
  25573. success: !0,
  25574. filePath: e,
  25575. fileID: c
  25576. });
  25577. case 33:
  25578. throw new te({
  25579. code: "UPLOAD_FAILED",
  25580. message: "文件上传失败"
  25581. });
  25582. case 34:
  25583. case "end":
  25584. return _context2.stop();
  25585. }
  25586. }
  25587. }, _callee2, this);
  25588. }));
  25589. function uploadFile(_x) {
  25590. return _uploadFile.apply(this, arguments);
  25591. }
  25592. return uploadFile;
  25593. }()
  25594. }, {
  25595. key: "getTempFileURL",
  25596. value: function getTempFileURL() {
  25597. var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  25598. e = _ref5.fileList;
  25599. return new Promise(function (t, n) {
  25600. Array.isArray(e) && 0 !== e.length || n(new te({
  25601. code: "INVALID_PARAM",
  25602. message: "fileList的元素必须是非空的字符串"
  25603. })), t({
  25604. fileList: e.map(function (e) {
  25605. return {
  25606. fileID: e,
  25607. tempFileURL: e
  25608. };
  25609. })
  25610. });
  25611. });
  25612. }
  25613. }, {
  25614. key: "getFileInfo",
  25615. value: function () {
  25616. var _getFileInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
  25617. var _ref6,
  25618. e,
  25619. t,
  25620. _args3 = arguments;
  25621. return _regenerator.default.wrap(function _callee3$(_context3) {
  25622. while (1) {
  25623. switch (_context3.prev = _context3.next) {
  25624. case 0:
  25625. _ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, e = _ref6.fileList;
  25626. if (!(!Array.isArray(e) || 0 === e.length)) {
  25627. _context3.next = 3;
  25628. break;
  25629. }
  25630. throw new te({
  25631. code: "INVALID_PARAM",
  25632. message: "fileList的元素必须是非空的字符串"
  25633. });
  25634. case 3:
  25635. t = {
  25636. method: "serverless.file.resource.info",
  25637. params: JSON.stringify({
  25638. id: e.map(function (e) {
  25639. return e.split("?")[0];
  25640. }).join(",")
  25641. })
  25642. };
  25643. _context3.next = 6;
  25644. return this.request(this.setupRequest(t));
  25645. case 6:
  25646. _context3.t0 = _context3.sent.result;
  25647. return _context3.abrupt("return", {
  25648. fileList: _context3.t0
  25649. });
  25650. case 8:
  25651. case "end":
  25652. return _context3.stop();
  25653. }
  25654. }
  25655. }, _callee3, this);
  25656. }));
  25657. function getFileInfo() {
  25658. return _getFileInfo.apply(this, arguments);
  25659. }
  25660. return getFileInfo;
  25661. }()
  25662. }]);
  25663. return de;
  25664. }();
  25665. var pe = {
  25666. init: function init(e) {
  25667. var t = new de(e),
  25668. n = {
  25669. signInAnonymously: function signInAnonymously() {
  25670. return t.authorize();
  25671. },
  25672. getLoginState: function getLoginState() {
  25673. return Promise.resolve(!1);
  25674. }
  25675. };
  25676. return t.auth = function () {
  25677. return n;
  25678. }, t.customAuth = t.auth, t;
  25679. }
  25680. };
  25681. var fe = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:";
  25682. var ge;
  25683. !function (e) {
  25684. e.local = "local", e.none = "none", e.session = "session";
  25685. }(ge || (ge = {}));
  25686. var me = function me() {},
  25687. ye = n(function (e, t) {
  25688. var n;
  25689. e.exports = (n = r, function (e) {
  25690. var t = n,
  25691. s = t.lib,
  25692. r = s.WordArray,
  25693. i = s.Hasher,
  25694. o = t.algo,
  25695. a = [],
  25696. c = [];
  25697. !function () {
  25698. function t(t) {
  25699. for (var n = e.sqrt(t), s = 2; s <= n; s++) {
  25700. if (!(t % s)) return !1;
  25701. }
  25702. return !0;
  25703. }
  25704. function n(e) {
  25705. return 4294967296 * (e - (0 | e)) | 0;
  25706. }
  25707. for (var s = 2, r = 0; r < 64;) {
  25708. t(s) && (r < 8 && (a[r] = n(e.pow(s, .5))), c[r] = n(e.pow(s, 1 / 3)), r++), s++;
  25709. }
  25710. }();
  25711. var u = [],
  25712. l = o.SHA256 = i.extend({
  25713. _doReset: function _doReset() {
  25714. this._hash = new r.init(a.slice(0));
  25715. },
  25716. _doProcessBlock: function _doProcessBlock(e, t) {
  25717. for (var n = this._hash.words, s = n[0], r = n[1], i = n[2], o = n[3], a = n[4], l = n[5], h = n[6], d = n[7], p = 0; p < 64; p++) {
  25718. if (p < 16) u[p] = 0 | e[t + p];else {
  25719. var f = u[p - 15],
  25720. g = (f << 25 | f >>> 7) ^ (f << 14 | f >>> 18) ^ f >>> 3,
  25721. m = u[p - 2],
  25722. y = (m << 15 | m >>> 17) ^ (m << 13 | m >>> 19) ^ m >>> 10;
  25723. u[p] = g + u[p - 7] + y + u[p - 16];
  25724. }
  25725. var _ = s & r ^ s & i ^ r & i,
  25726. w = (s << 30 | s >>> 2) ^ (s << 19 | s >>> 13) ^ (s << 10 | s >>> 22),
  25727. v = d + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & l ^ ~a & h) + c[p] + u[p];
  25728. d = h, h = l, l = a, a = o + v | 0, o = i, i = r, r = s, s = v + (w + _) | 0;
  25729. }
  25730. n[0] = n[0] + s | 0, n[1] = n[1] + r | 0, n[2] = n[2] + i | 0, n[3] = n[3] + o | 0, n[4] = n[4] + a | 0, n[5] = n[5] + l | 0, n[6] = n[6] + h | 0, n[7] = n[7] + d | 0;
  25731. },
  25732. _doFinalize: function _doFinalize() {
  25733. var t = this._data,
  25734. n = t.words,
  25735. s = 8 * this._nDataBytes,
  25736. r = 8 * t.sigBytes;
  25737. return n[r >>> 5] |= 128 << 24 - r % 32, n[14 + (r + 64 >>> 9 << 4)] = e.floor(s / 4294967296), n[15 + (r + 64 >>> 9 << 4)] = s, t.sigBytes = 4 * n.length, this._process(), this._hash;
  25738. },
  25739. clone: function clone() {
  25740. var e = i.clone.call(this);
  25741. return e._hash = this._hash.clone(), e;
  25742. }
  25743. });
  25744. t.SHA256 = i._createHelper(l), t.HmacSHA256 = i._createHmacHelper(l);
  25745. }(Math), n.SHA256);
  25746. }),
  25747. _e = ye,
  25748. we = n(function (e, t) {
  25749. e.exports = r.HmacSHA256;
  25750. });
  25751. var ve = function ve() {
  25752. var e;
  25753. if (!Promise) {
  25754. e = function e() {}, e.promise = {};
  25755. var _t3 = function _t3() {
  25756. throw new te({
  25757. message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'
  25758. });
  25759. };
  25760. return Object.defineProperty(e.promise, "then", {
  25761. get: _t3
  25762. }), Object.defineProperty(e.promise, "catch", {
  25763. get: _t3
  25764. }), e;
  25765. }
  25766. var t = new Promise(function (t, n) {
  25767. e = function e(_e5, s) {
  25768. return _e5 ? n(_e5) : t(s);
  25769. };
  25770. });
  25771. return e.promise = t, e;
  25772. };
  25773. function Ie(e) {
  25774. return void 0 === e;
  25775. }
  25776. function Se(e) {
  25777. return "[object Null]" === Object.prototype.toString.call(e);
  25778. }
  25779. var be;
  25780. function ke(e) {
  25781. var t = (n = e, "[object Array]" === Object.prototype.toString.call(n) ? e : [e]);
  25782. var n;
  25783. var _iterator = _createForOfIteratorHelper(t),
  25784. _step;
  25785. try {
  25786. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  25787. var _e6 = _step.value;
  25788. var _t4 = _e6.isMatch,
  25789. _n5 = _e6.genAdapter,
  25790. _s4 = _e6.runtime;
  25791. if (_t4()) return {
  25792. adapter: _n5(),
  25793. runtime: _s4
  25794. };
  25795. }
  25796. } catch (err) {
  25797. _iterator.e(err);
  25798. } finally {
  25799. _iterator.f();
  25800. }
  25801. }
  25802. !function (e) {
  25803. e.WEB = "web", e.WX_MP = "wx_mp";
  25804. }(be || (be = {}));
  25805. var Ae = {
  25806. adapter: null,
  25807. runtime: void 0
  25808. },
  25809. Ce = ["anonymousUuidKey"];
  25810. var Pe = /*#__PURE__*/function (_me) {
  25811. (0, _inherits2.default)(Pe, _me);
  25812. var _super2 = _createSuper(Pe);
  25813. function Pe() {
  25814. var _this6;
  25815. (0, _classCallCheck2.default)(this, Pe);
  25816. _this6 = _super2.call(this), Ae.adapter.root.tcbObject || (Ae.adapter.root.tcbObject = {});
  25817. return _this6;
  25818. }
  25819. (0, _createClass2.default)(Pe, [{
  25820. key: "setItem",
  25821. value: function setItem(e, t) {
  25822. Ae.adapter.root.tcbObject[e] = t;
  25823. }
  25824. }, {
  25825. key: "getItem",
  25826. value: function getItem(e) {
  25827. return Ae.adapter.root.tcbObject[e];
  25828. }
  25829. }, {
  25830. key: "removeItem",
  25831. value: function removeItem(e) {
  25832. delete Ae.adapter.root.tcbObject[e];
  25833. }
  25834. }, {
  25835. key: "clear",
  25836. value: function clear() {
  25837. delete Ae.adapter.root.tcbObject;
  25838. }
  25839. }]);
  25840. return Pe;
  25841. }(me);
  25842. function Te(e, t) {
  25843. switch (e) {
  25844. case "local":
  25845. return t.localStorage || new Pe();
  25846. case "none":
  25847. return new Pe();
  25848. default:
  25849. return t.sessionStorage || new Pe();
  25850. }
  25851. }
  25852. var xe = /*#__PURE__*/function () {
  25853. function xe(e) {
  25854. (0, _classCallCheck2.default)(this, xe);
  25855. if (!this._storage) {
  25856. this._persistence = Ae.adapter.primaryStorage || e.persistence, this._storage = Te(this._persistence, Ae.adapter);
  25857. var _t5 = "access_token_".concat(e.env),
  25858. _n6 = "access_token_expire_".concat(e.env),
  25859. _s5 = "refresh_token_".concat(e.env),
  25860. _r2 = "anonymous_uuid_".concat(e.env),
  25861. _i = "login_type_".concat(e.env),
  25862. _o = "user_info_".concat(e.env);
  25863. this.keys = {
  25864. accessTokenKey: _t5,
  25865. accessTokenExpireKey: _n6,
  25866. refreshTokenKey: _s5,
  25867. anonymousUuidKey: _r2,
  25868. loginTypeKey: _i,
  25869. userInfoKey: _o
  25870. };
  25871. }
  25872. }
  25873. (0, _createClass2.default)(xe, [{
  25874. key: "updatePersistence",
  25875. value: function updatePersistence(e) {
  25876. if (e === this._persistence) return;
  25877. var t = "local" === this._persistence;
  25878. this._persistence = e;
  25879. var n = Te(e, Ae.adapter);
  25880. for (var _e7 in this.keys) {
  25881. var _s6 = this.keys[_e7];
  25882. if (t && Ce.includes(_e7)) continue;
  25883. var _r3 = this._storage.getItem(_s6);
  25884. Ie(_r3) || Se(_r3) || (n.setItem(_s6, _r3), this._storage.removeItem(_s6));
  25885. }
  25886. this._storage = n;
  25887. }
  25888. }, {
  25889. key: "setStore",
  25890. value: function setStore(e, t, n) {
  25891. if (!this._storage) return;
  25892. var s = {
  25893. version: n || "localCachev1",
  25894. content: t
  25895. },
  25896. r = JSON.stringify(s);
  25897. try {
  25898. this._storage.setItem(e, r);
  25899. } catch (e) {
  25900. throw e;
  25901. }
  25902. }
  25903. }, {
  25904. key: "getStore",
  25905. value: function getStore(e, t) {
  25906. try {
  25907. if (!this._storage) return;
  25908. } catch (e) {
  25909. return "";
  25910. }
  25911. t = t || "localCachev1";
  25912. var n = this._storage.getItem(e);
  25913. if (!n) return "";
  25914. if (n.indexOf(t) >= 0) {
  25915. return JSON.parse(n).content;
  25916. }
  25917. return "";
  25918. }
  25919. }, {
  25920. key: "removeStore",
  25921. value: function removeStore(e) {
  25922. this._storage.removeItem(e);
  25923. }
  25924. }]);
  25925. return xe;
  25926. }();
  25927. var Oe = {},
  25928. Ee = {};
  25929. function Le(e) {
  25930. return Oe[e];
  25931. }
  25932. var Re = /*#__PURE__*/(0, _createClass2.default)(function Re(e, t) {
  25933. (0, _classCallCheck2.default)(this, Re);
  25934. this.data = t || null, this.name = e;
  25935. });
  25936. var Ue = /*#__PURE__*/function (_Re) {
  25937. (0, _inherits2.default)(Ue, _Re);
  25938. var _super3 = _createSuper(Ue);
  25939. function Ue(e, t) {
  25940. var _this7;
  25941. (0, _classCallCheck2.default)(this, Ue);
  25942. _this7 = _super3.call(this, "error", {
  25943. error: e,
  25944. data: t
  25945. }), _this7.error = e;
  25946. return _this7;
  25947. }
  25948. return (0, _createClass2.default)(Ue);
  25949. }(Re);
  25950. var Ne = new ( /*#__PURE__*/function () {
  25951. function _class() {
  25952. (0, _classCallCheck2.default)(this, _class);
  25953. this._listeners = {};
  25954. }
  25955. (0, _createClass2.default)(_class, [{
  25956. key: "on",
  25957. value: function on(e, t) {
  25958. return function (e, t, n) {
  25959. n[e] = n[e] || [], n[e].push(t);
  25960. }(e, t, this._listeners), this;
  25961. }
  25962. }, {
  25963. key: "off",
  25964. value: function off(e, t) {
  25965. return function (e, t, n) {
  25966. if (n && n[e]) {
  25967. var _s7 = n[e].indexOf(t);
  25968. -1 !== _s7 && n[e].splice(_s7, 1);
  25969. }
  25970. }(e, t, this._listeners), this;
  25971. }
  25972. }, {
  25973. key: "fire",
  25974. value: function fire(e, t) {
  25975. if (e instanceof Ue) return console.error(e.error), this;
  25976. var n = "string" == typeof e ? new Re(e, t || {}) : e;
  25977. var s = n.name;
  25978. if (this._listens(s)) {
  25979. n.target = this;
  25980. var _e8 = this._listeners[s] ? (0, _toConsumableArray2.default)(this._listeners[s]) : [];
  25981. var _iterator2 = _createForOfIteratorHelper(_e8),
  25982. _step2;
  25983. try {
  25984. for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
  25985. var _t6 = _step2.value;
  25986. _t6.call(this, n);
  25987. }
  25988. } catch (err) {
  25989. _iterator2.e(err);
  25990. } finally {
  25991. _iterator2.f();
  25992. }
  25993. }
  25994. return this;
  25995. }
  25996. }, {
  25997. key: "_listens",
  25998. value: function _listens(e) {
  25999. return this._listeners[e] && this._listeners[e].length > 0;
  26000. }
  26001. }]);
  26002. return _class;
  26003. }())();
  26004. function De(e, t) {
  26005. Ne.on(e, t);
  26006. }
  26007. function qe(e) {
  26008. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  26009. Ne.fire(e, t);
  26010. }
  26011. function Me(e, t) {
  26012. Ne.off(e, t);
  26013. }
  26014. var Fe = "loginStateChanged",
  26015. Ke = "loginStateExpire",
  26016. je = "loginTypeChanged",
  26017. $e = "anonymousConverted",
  26018. Be = "refreshAccessToken";
  26019. var We;
  26020. !function (e) {
  26021. e.ANONYMOUS = "ANONYMOUS", e.WECHAT = "WECHAT", e.WECHAT_PUBLIC = "WECHAT-PUBLIC", e.WECHAT_OPEN = "WECHAT-OPEN", e.CUSTOM = "CUSTOM", e.EMAIL = "EMAIL", e.USERNAME = "USERNAME", e.NULL = "NULL";
  26022. }(We || (We = {}));
  26023. var He = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"],
  26024. Je = {
  26025. "X-SDK-Version": "1.3.5"
  26026. };
  26027. function ze(e, t, n) {
  26028. var s = e[t];
  26029. e[t] = function (t) {
  26030. var r = {},
  26031. i = {};
  26032. n.forEach(function (n) {
  26033. var _n$call = n.call(e, t),
  26034. s = _n$call.data,
  26035. o = _n$call.headers;
  26036. Object.assign(r, s), Object.assign(i, o);
  26037. });
  26038. var o = t.data;
  26039. return o && function () {
  26040. var e;
  26041. if (e = o, "[object FormData]" !== Object.prototype.toString.call(e)) t.data = _objectSpread(_objectSpread({}, o), r);else for (var _e9 in r) {
  26042. o.append(_e9, r[_e9]);
  26043. }
  26044. }(), t.headers = _objectSpread(_objectSpread({}, t.headers || {}), i), s.call(e, t);
  26045. };
  26046. }
  26047. function Ve() {
  26048. var e = Math.random().toString(16).slice(2);
  26049. return {
  26050. data: {
  26051. seqId: e
  26052. },
  26053. headers: _objectSpread(_objectSpread({}, Je), {}, {
  26054. "x-seqid": e
  26055. })
  26056. };
  26057. }
  26058. var Ge = /*#__PURE__*/function () {
  26059. function Ge() {
  26060. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  26061. (0, _classCallCheck2.default)(this, Ge);
  26062. var t;
  26063. this.config = e, this._reqClass = new Ae.adapter.reqClass({
  26064. timeout: this.config.timeout,
  26065. timeoutMsg: "\u8BF7\u6C42\u5728".concat(this.config.timeout / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD"),
  26066. restrictedMethods: ["post"]
  26067. }), this._cache = Le(this.config.env), this._localCache = (t = this.config.env, Ee[t]), ze(this._reqClass, "post", [Ve]), ze(this._reqClass, "upload", [Ve]), ze(this._reqClass, "download", [Ve]);
  26068. }
  26069. (0, _createClass2.default)(Ge, [{
  26070. key: "post",
  26071. value: function () {
  26072. var _post = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(e) {
  26073. return _regenerator.default.wrap(function _callee4$(_context4) {
  26074. while (1) {
  26075. switch (_context4.prev = _context4.next) {
  26076. case 0:
  26077. _context4.next = 2;
  26078. return this._reqClass.post(e);
  26079. case 2:
  26080. return _context4.abrupt("return", _context4.sent);
  26081. case 3:
  26082. case "end":
  26083. return _context4.stop();
  26084. }
  26085. }
  26086. }, _callee4, this);
  26087. }));
  26088. function post(_x2) {
  26089. return _post.apply(this, arguments);
  26090. }
  26091. return post;
  26092. }()
  26093. }, {
  26094. key: "upload",
  26095. value: function () {
  26096. var _upload = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(e) {
  26097. return _regenerator.default.wrap(function _callee5$(_context5) {
  26098. while (1) {
  26099. switch (_context5.prev = _context5.next) {
  26100. case 0:
  26101. _context5.next = 2;
  26102. return this._reqClass.upload(e);
  26103. case 2:
  26104. return _context5.abrupt("return", _context5.sent);
  26105. case 3:
  26106. case "end":
  26107. return _context5.stop();
  26108. }
  26109. }
  26110. }, _callee5, this);
  26111. }));
  26112. function upload(_x3) {
  26113. return _upload.apply(this, arguments);
  26114. }
  26115. return upload;
  26116. }()
  26117. }, {
  26118. key: "download",
  26119. value: function () {
  26120. var _download = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(e) {
  26121. return _regenerator.default.wrap(function _callee6$(_context6) {
  26122. while (1) {
  26123. switch (_context6.prev = _context6.next) {
  26124. case 0:
  26125. _context6.next = 2;
  26126. return this._reqClass.download(e);
  26127. case 2:
  26128. return _context6.abrupt("return", _context6.sent);
  26129. case 3:
  26130. case "end":
  26131. return _context6.stop();
  26132. }
  26133. }
  26134. }, _callee6, this);
  26135. }));
  26136. function download(_x4) {
  26137. return _download.apply(this, arguments);
  26138. }
  26139. return download;
  26140. }()
  26141. }, {
  26142. key: "refreshAccessToken",
  26143. value: function () {
  26144. var _refreshAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
  26145. var e, t;
  26146. return _regenerator.default.wrap(function _callee7$(_context7) {
  26147. while (1) {
  26148. switch (_context7.prev = _context7.next) {
  26149. case 0:
  26150. this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken());
  26151. _context7.prev = 1;
  26152. _context7.next = 4;
  26153. return this._refreshAccessTokenPromise;
  26154. case 4:
  26155. e = _context7.sent;
  26156. _context7.next = 10;
  26157. break;
  26158. case 7:
  26159. _context7.prev = 7;
  26160. _context7.t0 = _context7["catch"](1);
  26161. t = _context7.t0;
  26162. case 10:
  26163. if (!(this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t)) {
  26164. _context7.next = 12;
  26165. break;
  26166. }
  26167. throw t;
  26168. case 12:
  26169. return _context7.abrupt("return", e);
  26170. case 13:
  26171. case "end":
  26172. return _context7.stop();
  26173. }
  26174. }
  26175. }, _callee7, this, [[1, 7]]);
  26176. }));
  26177. function refreshAccessToken() {
  26178. return _refreshAccessToken2.apply(this, arguments);
  26179. }
  26180. return refreshAccessToken;
  26181. }()
  26182. }, {
  26183. key: "_refreshAccessToken",
  26184. value: function () {
  26185. var _refreshAccessToken3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {
  26186. var _this$_cache$keys, e, t, n, s, r, i, o, a, _e10, _e11, _t7, _s8;
  26187. return _regenerator.default.wrap(function _callee8$(_context8) {
  26188. while (1) {
  26189. switch (_context8.prev = _context8.next) {
  26190. case 0:
  26191. _this$_cache$keys = this._cache.keys, e = _this$_cache$keys.accessTokenKey, t = _this$_cache$keys.accessTokenExpireKey, n = _this$_cache$keys.refreshTokenKey, s = _this$_cache$keys.loginTypeKey, r = _this$_cache$keys.anonymousUuidKey;
  26192. this._cache.removeStore(e), this._cache.removeStore(t);
  26193. i = this._cache.getStore(n);
  26194. if (i) {
  26195. _context8.next = 5;
  26196. break;
  26197. }
  26198. throw new te({
  26199. message: "未登录CloudBase"
  26200. });
  26201. case 5:
  26202. o = {
  26203. refresh_token: i
  26204. };
  26205. _context8.next = 8;
  26206. return this.request("auth.fetchAccessTokenWithRefreshToken", o);
  26207. case 8:
  26208. a = _context8.sent;
  26209. if (!a.data.code) {
  26210. _context8.next = 21;
  26211. break;
  26212. }
  26213. _e10 = a.data.code;
  26214. if (!("SIGN_PARAM_INVALID" === _e10 || "REFRESH_TOKEN_EXPIRED" === _e10 || "INVALID_REFRESH_TOKEN" === _e10)) {
  26215. _context8.next = 20;
  26216. break;
  26217. }
  26218. if (!(this._cache.getStore(s) === We.ANONYMOUS && "INVALID_REFRESH_TOKEN" === _e10)) {
  26219. _context8.next = 19;
  26220. break;
  26221. }
  26222. _e11 = this._cache.getStore(r);
  26223. _t7 = this._cache.getStore(n);
  26224. _context8.next = 17;
  26225. return this.send("auth.signInAnonymously", {
  26226. anonymous_uuid: _e11,
  26227. refresh_token: _t7
  26228. });
  26229. case 17:
  26230. _s8 = _context8.sent;
  26231. return _context8.abrupt("return", (this.setRefreshToken(_s8.refresh_token), this._refreshAccessToken()));
  26232. case 19:
  26233. qe(Ke), this._cache.removeStore(n);
  26234. case 20:
  26235. throw new te({
  26236. code: a.data.code,
  26237. message: "\u5237\u65B0access token\u5931\u8D25\uFF1A".concat(a.data.code)
  26238. });
  26239. case 21:
  26240. if (!a.data.access_token) {
  26241. _context8.next = 23;
  26242. break;
  26243. }
  26244. return _context8.abrupt("return", (qe(Be), this._cache.setStore(e, a.data.access_token), this._cache.setStore(t, a.data.access_token_expire + Date.now()), {
  26245. accessToken: a.data.access_token,
  26246. accessTokenExpire: a.data.access_token_expire
  26247. }));
  26248. case 23:
  26249. a.data.refresh_token && (this._cache.removeStore(n), this._cache.setStore(n, a.data.refresh_token), this._refreshAccessToken());
  26250. case 24:
  26251. case "end":
  26252. return _context8.stop();
  26253. }
  26254. }
  26255. }, _callee8, this);
  26256. }));
  26257. function _refreshAccessToken() {
  26258. return _refreshAccessToken3.apply(this, arguments);
  26259. }
  26260. return _refreshAccessToken;
  26261. }()
  26262. }, {
  26263. key: "getAccessToken",
  26264. value: function () {
  26265. var _getAccessToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {
  26266. var _this$_cache$keys2, e, t, n, s, r, i;
  26267. return _regenerator.default.wrap(function _callee9$(_context9) {
  26268. while (1) {
  26269. switch (_context9.prev = _context9.next) {
  26270. case 0:
  26271. _this$_cache$keys2 = this._cache.keys, e = _this$_cache$keys2.accessTokenKey, t = _this$_cache$keys2.accessTokenExpireKey, n = _this$_cache$keys2.refreshTokenKey;
  26272. if (this._cache.getStore(n)) {
  26273. _context9.next = 3;
  26274. break;
  26275. }
  26276. throw new te({
  26277. message: "refresh token不存在,登录状态异常"
  26278. });
  26279. case 3:
  26280. s = this._cache.getStore(e), r = this._cache.getStore(t), i = !0;
  26281. _context9.t0 = this._shouldRefreshAccessTokenHook;
  26282. if (!_context9.t0) {
  26283. _context9.next = 9;
  26284. break;
  26285. }
  26286. _context9.next = 8;
  26287. return this._shouldRefreshAccessTokenHook(s, r);
  26288. case 8:
  26289. _context9.t0 = !_context9.sent;
  26290. case 9:
  26291. _context9.t1 = _context9.t0;
  26292. if (!_context9.t1) {
  26293. _context9.next = 12;
  26294. break;
  26295. }
  26296. i = !1;
  26297. case 12:
  26298. return _context9.abrupt("return", (!s || !r || r < Date.now()) && i ? this.refreshAccessToken() : {
  26299. accessToken: s,
  26300. accessTokenExpire: r
  26301. });
  26302. case 13:
  26303. case "end":
  26304. return _context9.stop();
  26305. }
  26306. }
  26307. }, _callee9, this);
  26308. }));
  26309. function getAccessToken() {
  26310. return _getAccessToken.apply(this, arguments);
  26311. }
  26312. return getAccessToken;
  26313. }()
  26314. }, {
  26315. key: "request",
  26316. value: function () {
  26317. var _request = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10(e, t, n) {
  26318. var s, r, i, _e12, o, _e13, _e14, a, c, u, l, h, d, p, f, g;
  26319. return _regenerator.default.wrap(function _callee10$(_context10) {
  26320. while (1) {
  26321. switch (_context10.prev = _context10.next) {
  26322. case 0:
  26323. s = "x-tcb-trace_".concat(this.config.env);
  26324. r = "application/x-www-form-urlencoded";
  26325. i = _objectSpread({
  26326. action: e,
  26327. env: this.config.env,
  26328. dataVersion: "2019-08-16"
  26329. }, t);
  26330. if (!(-1 === He.indexOf(e))) {
  26331. _context10.next = 10;
  26332. break;
  26333. }
  26334. _e12 = this._cache.keys.refreshTokenKey;
  26335. _context10.t0 = this._cache.getStore(_e12);
  26336. if (!_context10.t0) {
  26337. _context10.next = 10;
  26338. break;
  26339. }
  26340. _context10.next = 9;
  26341. return this.getAccessToken();
  26342. case 9:
  26343. i.access_token = _context10.sent.accessToken;
  26344. case 10:
  26345. if ("storage.uploadFile" === e) {
  26346. o = new FormData();
  26347. for (_e13 in o) {
  26348. o.hasOwnProperty(_e13) && void 0 !== o[_e13] && o.append(_e13, i[_e13]);
  26349. }
  26350. r = "multipart/form-data";
  26351. } else {
  26352. r = "application/json", o = {};
  26353. for (_e14 in i) {
  26354. void 0 !== i[_e14] && (o[_e14] = i[_e14]);
  26355. }
  26356. }
  26357. a = {
  26358. headers: {
  26359. "content-type": r
  26360. }
  26361. };
  26362. n && n.timeout && (a.timeout = n.timeout), n && n.onUploadProgress && (a.onUploadProgress = n.onUploadProgress);
  26363. c = this._localCache.getStore(s);
  26364. c && (a.headers["X-TCB-Trace"] = c);
  26365. u = t.parse, l = t.inQuery, h = t.search;
  26366. d = {
  26367. env: this.config.env
  26368. };
  26369. u && (d.parse = !0), l && (d = _objectSpread(_objectSpread({}, l), d));
  26370. p = function (e, t) {
  26371. var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  26372. var s = /\?/.test(t);
  26373. var r = "";
  26374. for (var _e15 in n) {
  26375. "" === r ? !s && (t += "?") : r += "&", r += "".concat(_e15, "=").concat(encodeURIComponent(n[_e15]));
  26376. }
  26377. return /^http(s)?\:\/\//.test(t += r) ? t : "".concat(e).concat(t);
  26378. }(fe, "//tcb-api.tencentcloudapi.com/web", d);
  26379. h && (p += h);
  26380. _context10.next = 22;
  26381. return this.post(_objectSpread({
  26382. url: p,
  26383. data: o
  26384. }, a));
  26385. case 22:
  26386. f = _context10.sent;
  26387. g = f.header && f.header["x-tcb-trace"];
  26388. if (!(g && this._localCache.setStore(s, g), 200 !== Number(f.status) && 200 !== Number(f.statusCode) || !f.data)) {
  26389. _context10.next = 26;
  26390. break;
  26391. }
  26392. throw new te({
  26393. code: "NETWORK_ERROR",
  26394. message: "network request error"
  26395. });
  26396. case 26:
  26397. return _context10.abrupt("return", f);
  26398. case 27:
  26399. case "end":
  26400. return _context10.stop();
  26401. }
  26402. }
  26403. }, _callee10, this);
  26404. }));
  26405. function request(_x5, _x6, _x7) {
  26406. return _request.apply(this, arguments);
  26407. }
  26408. return request;
  26409. }()
  26410. }, {
  26411. key: "send",
  26412. value: function () {
  26413. var _send = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(e) {
  26414. var t,
  26415. n,
  26416. s,
  26417. _s9,
  26418. _args11 = arguments;
  26419. return _regenerator.default.wrap(function _callee11$(_context11) {
  26420. while (1) {
  26421. switch (_context11.prev = _context11.next) {
  26422. case 0:
  26423. t = _args11.length > 1 && _args11[1] !== undefined ? _args11[1] : {};
  26424. n = _args11.length > 2 && _args11[2] !== undefined ? _args11[2] : {};
  26425. _context11.next = 4;
  26426. return this.request(e, t, _objectSpread(_objectSpread({}, n), {}, {
  26427. onUploadProgress: t.onUploadProgress
  26428. }));
  26429. case 4:
  26430. s = _context11.sent;
  26431. if (!("ACCESS_TOKEN_EXPIRED" === s.data.code && -1 === He.indexOf(e))) {
  26432. _context11.next = 14;
  26433. break;
  26434. }
  26435. _context11.next = 8;
  26436. return this.refreshAccessToken();
  26437. case 8:
  26438. _context11.next = 10;
  26439. return this.request(e, t, _objectSpread(_objectSpread({}, n), {}, {
  26440. onUploadProgress: t.onUploadProgress
  26441. }));
  26442. case 10:
  26443. _s9 = _context11.sent;
  26444. if (!_s9.data.code) {
  26445. _context11.next = 13;
  26446. break;
  26447. }
  26448. throw new te({
  26449. code: _s9.data.code,
  26450. message: _s9.data.message
  26451. });
  26452. case 13:
  26453. return _context11.abrupt("return", _s9.data);
  26454. case 14:
  26455. if (!s.data.code) {
  26456. _context11.next = 16;
  26457. break;
  26458. }
  26459. throw new te({
  26460. code: s.data.code,
  26461. message: s.data.message
  26462. });
  26463. case 16:
  26464. return _context11.abrupt("return", s.data);
  26465. case 17:
  26466. case "end":
  26467. return _context11.stop();
  26468. }
  26469. }
  26470. }, _callee11, this);
  26471. }));
  26472. function send(_x8) {
  26473. return _send.apply(this, arguments);
  26474. }
  26475. return send;
  26476. }()
  26477. }, {
  26478. key: "setRefreshToken",
  26479. value: function setRefreshToken(e) {
  26480. var _this$_cache$keys3 = this._cache.keys,
  26481. t = _this$_cache$keys3.accessTokenKey,
  26482. n = _this$_cache$keys3.accessTokenExpireKey,
  26483. s = _this$_cache$keys3.refreshTokenKey;
  26484. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  26485. }
  26486. }]);
  26487. return Ge;
  26488. }();
  26489. var Ye = {};
  26490. function Qe(e) {
  26491. return Ye[e];
  26492. }
  26493. var Xe = /*#__PURE__*/function () {
  26494. function Xe(e) {
  26495. (0, _classCallCheck2.default)(this, Xe);
  26496. this.config = e, this._cache = Le(e.env), this._request = Qe(e.env);
  26497. }
  26498. (0, _createClass2.default)(Xe, [{
  26499. key: "setRefreshToken",
  26500. value: function setRefreshToken(e) {
  26501. var _this$_cache$keys4 = this._cache.keys,
  26502. t = _this$_cache$keys4.accessTokenKey,
  26503. n = _this$_cache$keys4.accessTokenExpireKey,
  26504. s = _this$_cache$keys4.refreshTokenKey;
  26505. this._cache.removeStore(t), this._cache.removeStore(n), this._cache.setStore(s, e);
  26506. }
  26507. }, {
  26508. key: "setAccessToken",
  26509. value: function setAccessToken(e, t) {
  26510. var _this$_cache$keys5 = this._cache.keys,
  26511. n = _this$_cache$keys5.accessTokenKey,
  26512. s = _this$_cache$keys5.accessTokenExpireKey;
  26513. this._cache.setStore(n, e), this._cache.setStore(s, t);
  26514. }
  26515. }, {
  26516. key: "refreshUserInfo",
  26517. value: function () {
  26518. var _refreshUserInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {
  26519. var _yield$this$_request$, e;
  26520. return _regenerator.default.wrap(function _callee12$(_context12) {
  26521. while (1) {
  26522. switch (_context12.prev = _context12.next) {
  26523. case 0:
  26524. _context12.next = 2;
  26525. return this._request.send("auth.getUserInfo", {});
  26526. case 2:
  26527. _yield$this$_request$ = _context12.sent;
  26528. e = _yield$this$_request$.data;
  26529. return _context12.abrupt("return", (this.setLocalUserInfo(e), e));
  26530. case 5:
  26531. case "end":
  26532. return _context12.stop();
  26533. }
  26534. }
  26535. }, _callee12, this);
  26536. }));
  26537. function refreshUserInfo() {
  26538. return _refreshUserInfo.apply(this, arguments);
  26539. }
  26540. return refreshUserInfo;
  26541. }()
  26542. }, {
  26543. key: "setLocalUserInfo",
  26544. value: function setLocalUserInfo(e) {
  26545. var t = this._cache.keys.userInfoKey;
  26546. this._cache.setStore(t, e);
  26547. }
  26548. }]);
  26549. return Xe;
  26550. }();
  26551. var Ze = /*#__PURE__*/function () {
  26552. function Ze(e) {
  26553. (0, _classCallCheck2.default)(this, Ze);
  26554. if (!e) throw new te({
  26555. code: "PARAM_ERROR",
  26556. message: "envId is not defined"
  26557. });
  26558. this._envId = e, this._cache = Le(this._envId), this._request = Qe(this._envId), this.setUserInfo();
  26559. }
  26560. (0, _createClass2.default)(Ze, [{
  26561. key: "linkWithTicket",
  26562. value: function linkWithTicket(e) {
  26563. if ("string" != typeof e) throw new te({
  26564. code: "PARAM_ERROR",
  26565. message: "ticket must be string"
  26566. });
  26567. return this._request.send("auth.linkWithTicket", {
  26568. ticket: e
  26569. });
  26570. }
  26571. }, {
  26572. key: "linkWithRedirect",
  26573. value: function linkWithRedirect(e) {
  26574. e.signInWithRedirect();
  26575. }
  26576. }, {
  26577. key: "updatePassword",
  26578. value: function updatePassword(e, t) {
  26579. return this._request.send("auth.updatePassword", {
  26580. oldPassword: t,
  26581. newPassword: e
  26582. });
  26583. }
  26584. }, {
  26585. key: "updateEmail",
  26586. value: function updateEmail(e) {
  26587. return this._request.send("auth.updateEmail", {
  26588. newEmail: e
  26589. });
  26590. }
  26591. }, {
  26592. key: "updateUsername",
  26593. value: function updateUsername(e) {
  26594. if ("string" != typeof e) throw new te({
  26595. code: "PARAM_ERROR",
  26596. message: "username must be a string"
  26597. });
  26598. return this._request.send("auth.updateUsername", {
  26599. username: e
  26600. });
  26601. }
  26602. }, {
  26603. key: "getLinkedUidList",
  26604. value: function () {
  26605. var _getLinkedUidList = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {
  26606. var _yield$this$_request$2, e, t, n;
  26607. return _regenerator.default.wrap(function _callee13$(_context13) {
  26608. while (1) {
  26609. switch (_context13.prev = _context13.next) {
  26610. case 0:
  26611. _context13.next = 2;
  26612. return this._request.send("auth.getLinkedUidList", {});
  26613. case 2:
  26614. _yield$this$_request$2 = _context13.sent;
  26615. e = _yield$this$_request$2.data;
  26616. t = !1;
  26617. n = e.users;
  26618. return _context13.abrupt("return", (n.forEach(function (e) {
  26619. e.wxOpenId && e.wxPublicId && (t = !0);
  26620. }), {
  26621. users: n,
  26622. hasPrimaryUid: t
  26623. }));
  26624. case 7:
  26625. case "end":
  26626. return _context13.stop();
  26627. }
  26628. }
  26629. }, _callee13, this);
  26630. }));
  26631. function getLinkedUidList() {
  26632. return _getLinkedUidList.apply(this, arguments);
  26633. }
  26634. return getLinkedUidList;
  26635. }()
  26636. }, {
  26637. key: "setPrimaryUid",
  26638. value: function setPrimaryUid(e) {
  26639. return this._request.send("auth.setPrimaryUid", {
  26640. uid: e
  26641. });
  26642. }
  26643. }, {
  26644. key: "unlink",
  26645. value: function unlink(e) {
  26646. return this._request.send("auth.unlink", {
  26647. platform: e
  26648. });
  26649. }
  26650. }, {
  26651. key: "update",
  26652. value: function () {
  26653. var _update = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(e) {
  26654. var t, n, s, r, i, o, _yield$this$_request$3, a;
  26655. return _regenerator.default.wrap(function _callee14$(_context14) {
  26656. while (1) {
  26657. switch (_context14.prev = _context14.next) {
  26658. case 0:
  26659. t = e.nickName;
  26660. n = e.gender;
  26661. s = e.avatarUrl;
  26662. r = e.province;
  26663. i = e.country;
  26664. o = e.city;
  26665. _context14.next = 8;
  26666. return this._request.send("auth.updateUserInfo", {
  26667. nickName: t,
  26668. gender: n,
  26669. avatarUrl: s,
  26670. province: r,
  26671. country: i,
  26672. city: o
  26673. });
  26674. case 8:
  26675. _yield$this$_request$3 = _context14.sent;
  26676. a = _yield$this$_request$3.data;
  26677. this.setLocalUserInfo(a);
  26678. case 11:
  26679. case "end":
  26680. return _context14.stop();
  26681. }
  26682. }
  26683. }, _callee14, this);
  26684. }));
  26685. function update(_x9) {
  26686. return _update.apply(this, arguments);
  26687. }
  26688. return update;
  26689. }()
  26690. }, {
  26691. key: "refresh",
  26692. value: function () {
  26693. var _refresh = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {
  26694. var _yield$this$_request$4, e;
  26695. return _regenerator.default.wrap(function _callee15$(_context15) {
  26696. while (1) {
  26697. switch (_context15.prev = _context15.next) {
  26698. case 0:
  26699. _context15.next = 2;
  26700. return this._request.send("auth.getUserInfo", {});
  26701. case 2:
  26702. _yield$this$_request$4 = _context15.sent;
  26703. e = _yield$this$_request$4.data;
  26704. return _context15.abrupt("return", (this.setLocalUserInfo(e), e));
  26705. case 5:
  26706. case "end":
  26707. return _context15.stop();
  26708. }
  26709. }
  26710. }, _callee15, this);
  26711. }));
  26712. function refresh() {
  26713. return _refresh.apply(this, arguments);
  26714. }
  26715. return refresh;
  26716. }()
  26717. }, {
  26718. key: "setUserInfo",
  26719. value: function setUserInfo() {
  26720. var _this8 = this;
  26721. var e = this._cache.keys.userInfoKey,
  26722. t = this._cache.getStore(e);
  26723. ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach(function (e) {
  26724. _this8[e] = t[e];
  26725. }), this.location = {
  26726. country: t.country,
  26727. province: t.province,
  26728. city: t.city
  26729. };
  26730. }
  26731. }, {
  26732. key: "setLocalUserInfo",
  26733. value: function setLocalUserInfo(e) {
  26734. var t = this._cache.keys.userInfoKey;
  26735. this._cache.setStore(t, e), this.setUserInfo();
  26736. }
  26737. }]);
  26738. return Ze;
  26739. }();
  26740. var et = /*#__PURE__*/function () {
  26741. function et(e) {
  26742. (0, _classCallCheck2.default)(this, et);
  26743. if (!e) throw new te({
  26744. code: "PARAM_ERROR",
  26745. message: "envId is not defined"
  26746. });
  26747. this._cache = Le(e);
  26748. var _this$_cache$keys6 = this._cache.keys,
  26749. t = _this$_cache$keys6.refreshTokenKey,
  26750. n = _this$_cache$keys6.accessTokenKey,
  26751. s = _this$_cache$keys6.accessTokenExpireKey,
  26752. r = this._cache.getStore(t),
  26753. i = this._cache.getStore(n),
  26754. o = this._cache.getStore(s);
  26755. this.credential = {
  26756. refreshToken: r,
  26757. accessToken: i,
  26758. accessTokenExpire: o
  26759. }, this.user = new Ze(e);
  26760. }
  26761. (0, _createClass2.default)(et, [{
  26762. key: "isAnonymousAuth",
  26763. get: function get() {
  26764. return this.loginType === We.ANONYMOUS;
  26765. }
  26766. }, {
  26767. key: "isCustomAuth",
  26768. get: function get() {
  26769. return this.loginType === We.CUSTOM;
  26770. }
  26771. }, {
  26772. key: "isWeixinAuth",
  26773. get: function get() {
  26774. return this.loginType === We.WECHAT || this.loginType === We.WECHAT_OPEN || this.loginType === We.WECHAT_PUBLIC;
  26775. }
  26776. }, {
  26777. key: "loginType",
  26778. get: function get() {
  26779. return this._cache.getStore(this._cache.keys.loginTypeKey);
  26780. }
  26781. }]);
  26782. return et;
  26783. }();
  26784. var tt = /*#__PURE__*/function (_Xe) {
  26785. (0, _inherits2.default)(tt, _Xe);
  26786. var _super4 = _createSuper(tt);
  26787. function tt() {
  26788. (0, _classCallCheck2.default)(this, tt);
  26789. return _super4.apply(this, arguments);
  26790. }
  26791. (0, _createClass2.default)(tt, [{
  26792. key: "signIn",
  26793. value: function () {
  26794. var _signIn = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
  26795. var _this$_cache$keys7, e, t, n, s, r, _e16;
  26796. return _regenerator.default.wrap(function _callee16$(_context16) {
  26797. while (1) {
  26798. switch (_context16.prev = _context16.next) {
  26799. case 0:
  26800. this._cache.updatePersistence("local");
  26801. _this$_cache$keys7 = this._cache.keys;
  26802. e = _this$_cache$keys7.anonymousUuidKey;
  26803. t = _this$_cache$keys7.refreshTokenKey;
  26804. n = this._cache.getStore(e) || void 0;
  26805. s = this._cache.getStore(t) || void 0;
  26806. _context16.next = 8;
  26807. return this._request.send("auth.signInAnonymously", {
  26808. anonymous_uuid: n,
  26809. refresh_token: s
  26810. });
  26811. case 8:
  26812. r = _context16.sent;
  26813. if (!(r.uuid && r.refresh_token)) {
  26814. _context16.next = 20;
  26815. break;
  26816. }
  26817. this._setAnonymousUUID(r.uuid);
  26818. this.setRefreshToken(r.refresh_token);
  26819. _context16.next = 14;
  26820. return this._request.refreshAccessToken();
  26821. case 14:
  26822. qe(Fe);
  26823. qe(je, {
  26824. env: this.config.env,
  26825. loginType: We.ANONYMOUS,
  26826. persistence: "local"
  26827. });
  26828. _e16 = new et(this.config.env);
  26829. _context16.next = 19;
  26830. return _e16.user.refresh();
  26831. case 19:
  26832. return _context16.abrupt("return", _e16);
  26833. case 20:
  26834. throw new te({
  26835. message: "匿名登录失败"
  26836. });
  26837. case 21:
  26838. case "end":
  26839. return _context16.stop();
  26840. }
  26841. }
  26842. }, _callee16, this);
  26843. }));
  26844. function signIn() {
  26845. return _signIn.apply(this, arguments);
  26846. }
  26847. return signIn;
  26848. }()
  26849. }, {
  26850. key: "linkAndRetrieveDataWithTicket",
  26851. value: function () {
  26852. var _linkAndRetrieveDataWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee17(e) {
  26853. var _this$_cache$keys8, t, n, s, r, i;
  26854. return _regenerator.default.wrap(function _callee17$(_context17) {
  26855. while (1) {
  26856. switch (_context17.prev = _context17.next) {
  26857. case 0:
  26858. _this$_cache$keys8 = this._cache.keys;
  26859. t = _this$_cache$keys8.anonymousUuidKey;
  26860. n = _this$_cache$keys8.refreshTokenKey;
  26861. s = this._cache.getStore(t);
  26862. r = this._cache.getStore(n);
  26863. _context17.next = 7;
  26864. return this._request.send("auth.linkAndRetrieveDataWithTicket", {
  26865. anonymous_uuid: s,
  26866. refresh_token: r,
  26867. ticket: e
  26868. });
  26869. case 7:
  26870. i = _context17.sent;
  26871. if (!i.refresh_token) {
  26872. _context17.next = 16;
  26873. break;
  26874. }
  26875. this._clearAnonymousUUID();
  26876. this.setRefreshToken(i.refresh_token);
  26877. _context17.next = 13;
  26878. return this._request.refreshAccessToken();
  26879. case 13:
  26880. qe($e, {
  26881. env: this.config.env
  26882. });
  26883. qe(je, {
  26884. loginType: We.CUSTOM,
  26885. persistence: "local"
  26886. });
  26887. return _context17.abrupt("return", {
  26888. credential: {
  26889. refreshToken: i.refresh_token
  26890. }
  26891. });
  26892. case 16:
  26893. throw new te({
  26894. message: "匿名转化失败"
  26895. });
  26896. case 17:
  26897. case "end":
  26898. return _context17.stop();
  26899. }
  26900. }
  26901. }, _callee17, this);
  26902. }));
  26903. function linkAndRetrieveDataWithTicket(_x10) {
  26904. return _linkAndRetrieveDataWithTicket.apply(this, arguments);
  26905. }
  26906. return linkAndRetrieveDataWithTicket;
  26907. }()
  26908. }, {
  26909. key: "_setAnonymousUUID",
  26910. value: function _setAnonymousUUID(e) {
  26911. var _this$_cache$keys9 = this._cache.keys,
  26912. t = _this$_cache$keys9.anonymousUuidKey,
  26913. n = _this$_cache$keys9.loginTypeKey;
  26914. this._cache.removeStore(t), this._cache.setStore(t, e), this._cache.setStore(n, We.ANONYMOUS);
  26915. }
  26916. }, {
  26917. key: "_clearAnonymousUUID",
  26918. value: function _clearAnonymousUUID() {
  26919. this._cache.removeStore(this._cache.keys.anonymousUuidKey);
  26920. }
  26921. }]);
  26922. return tt;
  26923. }(Xe);
  26924. var nt = /*#__PURE__*/function (_Xe2) {
  26925. (0, _inherits2.default)(nt, _Xe2);
  26926. var _super5 = _createSuper(nt);
  26927. function nt() {
  26928. (0, _classCallCheck2.default)(this, nt);
  26929. return _super5.apply(this, arguments);
  26930. }
  26931. (0, _createClass2.default)(nt, [{
  26932. key: "signIn",
  26933. value: function () {
  26934. var _signIn2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee18(e) {
  26935. var t, n;
  26936. return _regenerator.default.wrap(function _callee18$(_context18) {
  26937. while (1) {
  26938. switch (_context18.prev = _context18.next) {
  26939. case 0:
  26940. if (!("string" != typeof e)) {
  26941. _context18.next = 2;
  26942. break;
  26943. }
  26944. throw new te({
  26945. code: "PARAM_ERROR",
  26946. message: "ticket must be a string"
  26947. });
  26948. case 2:
  26949. t = this._cache.keys.refreshTokenKey;
  26950. _context18.next = 5;
  26951. return this._request.send("auth.signInWithTicket", {
  26952. ticket: e,
  26953. refresh_token: this._cache.getStore(t) || ""
  26954. });
  26955. case 5:
  26956. n = _context18.sent;
  26957. if (!n.refresh_token) {
  26958. _context18.next = 15;
  26959. break;
  26960. }
  26961. this.setRefreshToken(n.refresh_token);
  26962. _context18.next = 10;
  26963. return this._request.refreshAccessToken();
  26964. case 10:
  26965. qe(Fe);
  26966. qe(je, {
  26967. env: this.config.env,
  26968. loginType: We.CUSTOM,
  26969. persistence: this.config.persistence
  26970. });
  26971. _context18.next = 14;
  26972. return this.refreshUserInfo();
  26973. case 14:
  26974. return _context18.abrupt("return", new et(this.config.env));
  26975. case 15:
  26976. throw new te({
  26977. message: "自定义登录失败"
  26978. });
  26979. case 16:
  26980. case "end":
  26981. return _context18.stop();
  26982. }
  26983. }
  26984. }, _callee18, this);
  26985. }));
  26986. function signIn(_x11) {
  26987. return _signIn2.apply(this, arguments);
  26988. }
  26989. return signIn;
  26990. }()
  26991. }]);
  26992. return nt;
  26993. }(Xe);
  26994. var st = /*#__PURE__*/function (_Xe3) {
  26995. (0, _inherits2.default)(st, _Xe3);
  26996. var _super6 = _createSuper(st);
  26997. function st() {
  26998. (0, _classCallCheck2.default)(this, st);
  26999. return _super6.apply(this, arguments);
  27000. }
  27001. (0, _createClass2.default)(st, [{
  27002. key: "signIn",
  27003. value: function () {
  27004. var _signIn3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19(e, t) {
  27005. var n, s, r, i, o;
  27006. return _regenerator.default.wrap(function _callee19$(_context19) {
  27007. while (1) {
  27008. switch (_context19.prev = _context19.next) {
  27009. case 0:
  27010. if (!("string" != typeof e)) {
  27011. _context19.next = 2;
  27012. break;
  27013. }
  27014. throw new te({
  27015. code: "PARAM_ERROR",
  27016. message: "email must be a string"
  27017. });
  27018. case 2:
  27019. n = this._cache.keys.refreshTokenKey;
  27020. _context19.next = 5;
  27021. return this._request.send("auth.signIn", {
  27022. loginType: "EMAIL",
  27023. email: e,
  27024. password: t,
  27025. refresh_token: this._cache.getStore(n) || ""
  27026. });
  27027. case 5:
  27028. s = _context19.sent;
  27029. r = s.refresh_token;
  27030. i = s.access_token;
  27031. o = s.access_token_expire;
  27032. if (!r) {
  27033. _context19.next = 22;
  27034. break;
  27035. }
  27036. this.setRefreshToken(r);
  27037. if (!(i && o)) {
  27038. _context19.next = 15;
  27039. break;
  27040. }
  27041. this.setAccessToken(i, o);
  27042. _context19.next = 17;
  27043. break;
  27044. case 15:
  27045. _context19.next = 17;
  27046. return this._request.refreshAccessToken();
  27047. case 17:
  27048. _context19.next = 19;
  27049. return this.refreshUserInfo();
  27050. case 19:
  27051. qe(Fe);
  27052. qe(je, {
  27053. env: this.config.env,
  27054. loginType: We.EMAIL,
  27055. persistence: this.config.persistence
  27056. });
  27057. return _context19.abrupt("return", new et(this.config.env));
  27058. case 22:
  27059. throw s.code ? new te({
  27060. code: s.code,
  27061. message: "\u90AE\u7BB1\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  27062. }) : new te({
  27063. message: "邮箱登录失败"
  27064. });
  27065. case 23:
  27066. case "end":
  27067. return _context19.stop();
  27068. }
  27069. }
  27070. }, _callee19, this);
  27071. }));
  27072. function signIn(_x12, _x13) {
  27073. return _signIn3.apply(this, arguments);
  27074. }
  27075. return signIn;
  27076. }()
  27077. }, {
  27078. key: "activate",
  27079. value: function () {
  27080. var _activate = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20(e) {
  27081. return _regenerator.default.wrap(function _callee20$(_context20) {
  27082. while (1) {
  27083. switch (_context20.prev = _context20.next) {
  27084. case 0:
  27085. return _context20.abrupt("return", this._request.send("auth.activateEndUserMail", {
  27086. token: e
  27087. }));
  27088. case 1:
  27089. case "end":
  27090. return _context20.stop();
  27091. }
  27092. }
  27093. }, _callee20, this);
  27094. }));
  27095. function activate(_x14) {
  27096. return _activate.apply(this, arguments);
  27097. }
  27098. return activate;
  27099. }()
  27100. }, {
  27101. key: "resetPasswordWithToken",
  27102. value: function () {
  27103. var _resetPasswordWithToken = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee21(e, t) {
  27104. return _regenerator.default.wrap(function _callee21$(_context21) {
  27105. while (1) {
  27106. switch (_context21.prev = _context21.next) {
  27107. case 0:
  27108. return _context21.abrupt("return", this._request.send("auth.resetPasswordWithToken", {
  27109. token: e,
  27110. newPassword: t
  27111. }));
  27112. case 1:
  27113. case "end":
  27114. return _context21.stop();
  27115. }
  27116. }
  27117. }, _callee21, this);
  27118. }));
  27119. function resetPasswordWithToken(_x15, _x16) {
  27120. return _resetPasswordWithToken.apply(this, arguments);
  27121. }
  27122. return resetPasswordWithToken;
  27123. }()
  27124. }]);
  27125. return st;
  27126. }(Xe);
  27127. var rt = /*#__PURE__*/function (_Xe4) {
  27128. (0, _inherits2.default)(rt, _Xe4);
  27129. var _super7 = _createSuper(rt);
  27130. function rt() {
  27131. (0, _classCallCheck2.default)(this, rt);
  27132. return _super7.apply(this, arguments);
  27133. }
  27134. (0, _createClass2.default)(rt, [{
  27135. key: "signIn",
  27136. value: function () {
  27137. var _signIn4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee22(e, t) {
  27138. var n, s, r, i, o;
  27139. return _regenerator.default.wrap(function _callee22$(_context22) {
  27140. while (1) {
  27141. switch (_context22.prev = _context22.next) {
  27142. case 0:
  27143. if (!("string" != typeof e)) {
  27144. _context22.next = 2;
  27145. break;
  27146. }
  27147. throw new te({
  27148. code: "PARAM_ERROR",
  27149. message: "username must be a string"
  27150. });
  27151. case 2:
  27152. "string" != typeof t && (t = "", console.warn("password is empty"));
  27153. n = this._cache.keys.refreshTokenKey;
  27154. _context22.next = 6;
  27155. return this._request.send("auth.signIn", {
  27156. loginType: We.USERNAME,
  27157. username: e,
  27158. password: t,
  27159. refresh_token: this._cache.getStore(n) || ""
  27160. });
  27161. case 6:
  27162. s = _context22.sent;
  27163. r = s.refresh_token;
  27164. i = s.access_token_expire;
  27165. o = s.access_token;
  27166. if (!r) {
  27167. _context22.next = 23;
  27168. break;
  27169. }
  27170. this.setRefreshToken(r);
  27171. if (!(o && i)) {
  27172. _context22.next = 16;
  27173. break;
  27174. }
  27175. this.setAccessToken(o, i);
  27176. _context22.next = 18;
  27177. break;
  27178. case 16:
  27179. _context22.next = 18;
  27180. return this._request.refreshAccessToken();
  27181. case 18:
  27182. _context22.next = 20;
  27183. return this.refreshUserInfo();
  27184. case 20:
  27185. qe(Fe);
  27186. qe(je, {
  27187. env: this.config.env,
  27188. loginType: We.USERNAME,
  27189. persistence: this.config.persistence
  27190. });
  27191. return _context22.abrupt("return", new et(this.config.env));
  27192. case 23:
  27193. throw s.code ? new te({
  27194. code: s.code,
  27195. message: "\u7528\u6237\u540D\u5BC6\u7801\u767B\u5F55\u5931\u8D25: ".concat(s.message)
  27196. }) : new te({
  27197. message: "用户名密码登录失败"
  27198. });
  27199. case 24:
  27200. case "end":
  27201. return _context22.stop();
  27202. }
  27203. }
  27204. }, _callee22, this);
  27205. }));
  27206. function signIn(_x17, _x18) {
  27207. return _signIn4.apply(this, arguments);
  27208. }
  27209. return signIn;
  27210. }()
  27211. }]);
  27212. return rt;
  27213. }(Xe);
  27214. var it = /*#__PURE__*/function () {
  27215. function it(e) {
  27216. (0, _classCallCheck2.default)(this, it);
  27217. this.config = e, this._cache = Le(e.env), this._request = Qe(e.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), De(je, this._onLoginTypeChanged);
  27218. }
  27219. (0, _createClass2.default)(it, [{
  27220. key: "currentUser",
  27221. get: function get() {
  27222. var e = this.hasLoginState();
  27223. return e && e.user || null;
  27224. }
  27225. }, {
  27226. key: "loginType",
  27227. get: function get() {
  27228. return this._cache.getStore(this._cache.keys.loginTypeKey);
  27229. }
  27230. }, {
  27231. key: "anonymousAuthProvider",
  27232. value: function anonymousAuthProvider() {
  27233. return new tt(this.config);
  27234. }
  27235. }, {
  27236. key: "customAuthProvider",
  27237. value: function customAuthProvider() {
  27238. return new nt(this.config);
  27239. }
  27240. }, {
  27241. key: "emailAuthProvider",
  27242. value: function emailAuthProvider() {
  27243. return new st(this.config);
  27244. }
  27245. }, {
  27246. key: "usernameAuthProvider",
  27247. value: function usernameAuthProvider() {
  27248. return new rt(this.config);
  27249. }
  27250. }, {
  27251. key: "signInAnonymously",
  27252. value: function () {
  27253. var _signInAnonymously = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee23() {
  27254. return _regenerator.default.wrap(function _callee23$(_context23) {
  27255. while (1) {
  27256. switch (_context23.prev = _context23.next) {
  27257. case 0:
  27258. return _context23.abrupt("return", new tt(this.config).signIn());
  27259. case 1:
  27260. case "end":
  27261. return _context23.stop();
  27262. }
  27263. }
  27264. }, _callee23, this);
  27265. }));
  27266. function signInAnonymously() {
  27267. return _signInAnonymously.apply(this, arguments);
  27268. }
  27269. return signInAnonymously;
  27270. }()
  27271. }, {
  27272. key: "signInWithEmailAndPassword",
  27273. value: function () {
  27274. var _signInWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee24(e, t) {
  27275. return _regenerator.default.wrap(function _callee24$(_context24) {
  27276. while (1) {
  27277. switch (_context24.prev = _context24.next) {
  27278. case 0:
  27279. return _context24.abrupt("return", new st(this.config).signIn(e, t));
  27280. case 1:
  27281. case "end":
  27282. return _context24.stop();
  27283. }
  27284. }
  27285. }, _callee24, this);
  27286. }));
  27287. function signInWithEmailAndPassword(_x19, _x20) {
  27288. return _signInWithEmailAndPassword.apply(this, arguments);
  27289. }
  27290. return signInWithEmailAndPassword;
  27291. }()
  27292. }, {
  27293. key: "signInWithUsernameAndPassword",
  27294. value: function signInWithUsernameAndPassword(e, t) {
  27295. return new rt(this.config).signIn(e, t);
  27296. }
  27297. }, {
  27298. key: "linkAndRetrieveDataWithTicket",
  27299. value: function () {
  27300. var _linkAndRetrieveDataWithTicket2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(e) {
  27301. return _regenerator.default.wrap(function _callee25$(_context25) {
  27302. while (1) {
  27303. switch (_context25.prev = _context25.next) {
  27304. case 0:
  27305. this._anonymousAuthProvider || (this._anonymousAuthProvider = new tt(this.config)), De($e, this._onAnonymousConverted);
  27306. _context25.next = 3;
  27307. return this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e);
  27308. case 3:
  27309. return _context25.abrupt("return", _context25.sent);
  27310. case 4:
  27311. case "end":
  27312. return _context25.stop();
  27313. }
  27314. }
  27315. }, _callee25, this);
  27316. }));
  27317. function linkAndRetrieveDataWithTicket(_x21) {
  27318. return _linkAndRetrieveDataWithTicket2.apply(this, arguments);
  27319. }
  27320. return linkAndRetrieveDataWithTicket;
  27321. }()
  27322. }, {
  27323. key: "signOut",
  27324. value: function () {
  27325. var _signOut = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee26() {
  27326. var _this$_cache$keys10, e, t, n, s, r;
  27327. return _regenerator.default.wrap(function _callee26$(_context26) {
  27328. while (1) {
  27329. switch (_context26.prev = _context26.next) {
  27330. case 0:
  27331. if (!(this.loginType === We.ANONYMOUS)) {
  27332. _context26.next = 2;
  27333. break;
  27334. }
  27335. throw new te({
  27336. message: "匿名用户不支持登出操作"
  27337. });
  27338. case 2:
  27339. _this$_cache$keys10 = this._cache.keys, e = _this$_cache$keys10.refreshTokenKey, t = _this$_cache$keys10.accessTokenKey, n = _this$_cache$keys10.accessTokenExpireKey, s = this._cache.getStore(e);
  27340. if (s) {
  27341. _context26.next = 5;
  27342. break;
  27343. }
  27344. return _context26.abrupt("return");
  27345. case 5:
  27346. _context26.next = 7;
  27347. return this._request.send("auth.logout", {
  27348. refresh_token: s
  27349. });
  27350. case 7:
  27351. r = _context26.sent;
  27352. return _context26.abrupt("return", (this._cache.removeStore(e), this._cache.removeStore(t), this._cache.removeStore(n), qe(Fe), qe(je, {
  27353. env: this.config.env,
  27354. loginType: We.NULL,
  27355. persistence: this.config.persistence
  27356. }), r));
  27357. case 9:
  27358. case "end":
  27359. return _context26.stop();
  27360. }
  27361. }
  27362. }, _callee26, this);
  27363. }));
  27364. function signOut() {
  27365. return _signOut.apply(this, arguments);
  27366. }
  27367. return signOut;
  27368. }()
  27369. }, {
  27370. key: "signUpWithEmailAndPassword",
  27371. value: function () {
  27372. var _signUpWithEmailAndPassword = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee27(e, t) {
  27373. return _regenerator.default.wrap(function _callee27$(_context27) {
  27374. while (1) {
  27375. switch (_context27.prev = _context27.next) {
  27376. case 0:
  27377. return _context27.abrupt("return", this._request.send("auth.signUpWithEmailAndPassword", {
  27378. email: e,
  27379. password: t
  27380. }));
  27381. case 1:
  27382. case "end":
  27383. return _context27.stop();
  27384. }
  27385. }
  27386. }, _callee27, this);
  27387. }));
  27388. function signUpWithEmailAndPassword(_x22, _x23) {
  27389. return _signUpWithEmailAndPassword.apply(this, arguments);
  27390. }
  27391. return signUpWithEmailAndPassword;
  27392. }()
  27393. }, {
  27394. key: "sendPasswordResetEmail",
  27395. value: function () {
  27396. var _sendPasswordResetEmail = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee28(e) {
  27397. return _regenerator.default.wrap(function _callee28$(_context28) {
  27398. while (1) {
  27399. switch (_context28.prev = _context28.next) {
  27400. case 0:
  27401. return _context28.abrupt("return", this._request.send("auth.sendPasswordResetEmail", {
  27402. email: e
  27403. }));
  27404. case 1:
  27405. case "end":
  27406. return _context28.stop();
  27407. }
  27408. }
  27409. }, _callee28, this);
  27410. }));
  27411. function sendPasswordResetEmail(_x24) {
  27412. return _sendPasswordResetEmail.apply(this, arguments);
  27413. }
  27414. return sendPasswordResetEmail;
  27415. }()
  27416. }, {
  27417. key: "onLoginStateChanged",
  27418. value: function onLoginStateChanged(e) {
  27419. var _this9 = this;
  27420. De(Fe, function () {
  27421. var t = _this9.hasLoginState();
  27422. e.call(_this9, t);
  27423. });
  27424. var t = this.hasLoginState();
  27425. e.call(this, t);
  27426. }
  27427. }, {
  27428. key: "onLoginStateExpired",
  27429. value: function onLoginStateExpired(e) {
  27430. De(Ke, e.bind(this));
  27431. }
  27432. }, {
  27433. key: "onAccessTokenRefreshed",
  27434. value: function onAccessTokenRefreshed(e) {
  27435. De(Be, e.bind(this));
  27436. }
  27437. }, {
  27438. key: "onAnonymousConverted",
  27439. value: function onAnonymousConverted(e) {
  27440. De($e, e.bind(this));
  27441. }
  27442. }, {
  27443. key: "onLoginTypeChanged",
  27444. value: function onLoginTypeChanged(e) {
  27445. var _this10 = this;
  27446. De(je, function () {
  27447. var t = _this10.hasLoginState();
  27448. e.call(_this10, t);
  27449. });
  27450. }
  27451. }, {
  27452. key: "getAccessToken",
  27453. value: function () {
  27454. var _getAccessToken2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee29() {
  27455. return _regenerator.default.wrap(function _callee29$(_context29) {
  27456. while (1) {
  27457. switch (_context29.prev = _context29.next) {
  27458. case 0:
  27459. _context29.next = 2;
  27460. return this._request.getAccessToken();
  27461. case 2:
  27462. _context29.t0 = _context29.sent.accessToken;
  27463. _context29.t1 = this.config.env;
  27464. return _context29.abrupt("return", {
  27465. accessToken: _context29.t0,
  27466. env: _context29.t1
  27467. });
  27468. case 5:
  27469. case "end":
  27470. return _context29.stop();
  27471. }
  27472. }
  27473. }, _callee29, this);
  27474. }));
  27475. function getAccessToken() {
  27476. return _getAccessToken2.apply(this, arguments);
  27477. }
  27478. return getAccessToken;
  27479. }()
  27480. }, {
  27481. key: "hasLoginState",
  27482. value: function hasLoginState() {
  27483. var e = this._cache.keys.refreshTokenKey;
  27484. return this._cache.getStore(e) ? new et(this.config.env) : null;
  27485. }
  27486. }, {
  27487. key: "isUsernameRegistered",
  27488. value: function () {
  27489. var _isUsernameRegistered = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee30(e) {
  27490. var _yield$this$_request$5, t;
  27491. return _regenerator.default.wrap(function _callee30$(_context30) {
  27492. while (1) {
  27493. switch (_context30.prev = _context30.next) {
  27494. case 0:
  27495. if (!("string" != typeof e)) {
  27496. _context30.next = 2;
  27497. break;
  27498. }
  27499. throw new te({
  27500. code: "PARAM_ERROR",
  27501. message: "username must be a string"
  27502. });
  27503. case 2:
  27504. _context30.next = 4;
  27505. return this._request.send("auth.isUsernameRegistered", {
  27506. username: e
  27507. });
  27508. case 4:
  27509. _yield$this$_request$5 = _context30.sent;
  27510. t = _yield$this$_request$5.data;
  27511. return _context30.abrupt("return", t && t.isRegistered);
  27512. case 7:
  27513. case "end":
  27514. return _context30.stop();
  27515. }
  27516. }
  27517. }, _callee30, this);
  27518. }));
  27519. function isUsernameRegistered(_x25) {
  27520. return _isUsernameRegistered.apply(this, arguments);
  27521. }
  27522. return isUsernameRegistered;
  27523. }()
  27524. }, {
  27525. key: "getLoginState",
  27526. value: function getLoginState() {
  27527. return Promise.resolve(this.hasLoginState());
  27528. }
  27529. }, {
  27530. key: "signInWithTicket",
  27531. value: function () {
  27532. var _signInWithTicket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee31(e) {
  27533. return _regenerator.default.wrap(function _callee31$(_context31) {
  27534. while (1) {
  27535. switch (_context31.prev = _context31.next) {
  27536. case 0:
  27537. return _context31.abrupt("return", new nt(this.config).signIn(e));
  27538. case 1:
  27539. case "end":
  27540. return _context31.stop();
  27541. }
  27542. }
  27543. }, _callee31, this);
  27544. }));
  27545. function signInWithTicket(_x26) {
  27546. return _signInWithTicket.apply(this, arguments);
  27547. }
  27548. return signInWithTicket;
  27549. }()
  27550. }, {
  27551. key: "shouldRefreshAccessToken",
  27552. value: function shouldRefreshAccessToken(e) {
  27553. this._request._shouldRefreshAccessTokenHook = e.bind(this);
  27554. }
  27555. }, {
  27556. key: "getUserInfo",
  27557. value: function getUserInfo() {
  27558. return this._request.send("auth.getUserInfo", {}).then(function (e) {
  27559. return e.code ? e : _objectSpread(_objectSpread({}, e.data), {}, {
  27560. requestId: e.seqId
  27561. });
  27562. });
  27563. }
  27564. }, {
  27565. key: "getAuthHeader",
  27566. value: function getAuthHeader() {
  27567. var _this$_cache$keys11 = this._cache.keys,
  27568. e = _this$_cache$keys11.refreshTokenKey,
  27569. t = _this$_cache$keys11.accessTokenKey,
  27570. n = this._cache.getStore(e);
  27571. return {
  27572. "x-cloudbase-credentials": this._cache.getStore(t) + "/@@/" + n
  27573. };
  27574. }
  27575. }, {
  27576. key: "_onAnonymousConverted",
  27577. value: function _onAnonymousConverted(e) {
  27578. var t = e.data.env;
  27579. t === this.config.env && this._cache.updatePersistence(this.config.persistence);
  27580. }
  27581. }, {
  27582. key: "_onLoginTypeChanged",
  27583. value: function _onLoginTypeChanged(e) {
  27584. var _e$data = e.data,
  27585. t = _e$data.loginType,
  27586. n = _e$data.persistence,
  27587. s = _e$data.env;
  27588. s === this.config.env && (this._cache.updatePersistence(n), this._cache.setStore(this._cache.keys.loginTypeKey, t));
  27589. }
  27590. }]);
  27591. return it;
  27592. }();
  27593. var ot = function ot(e, t) {
  27594. t = t || ve();
  27595. var n = Qe(this.config.env),
  27596. s = e.cloudPath,
  27597. r = e.filePath,
  27598. i = e.onUploadProgress,
  27599. _e$fileType = e.fileType,
  27600. o = _e$fileType === void 0 ? "image" : _e$fileType;
  27601. return n.send("storage.getUploadMetadata", {
  27602. path: s
  27603. }).then(function (e) {
  27604. var _e$data2 = e.data,
  27605. a = _e$data2.url,
  27606. c = _e$data2.authorization,
  27607. u = _e$data2.token,
  27608. l = _e$data2.fileId,
  27609. h = _e$data2.cosFileId,
  27610. d = e.requestId,
  27611. p = {
  27612. key: s,
  27613. signature: c,
  27614. "x-cos-meta-fileid": h,
  27615. success_action_status: "201",
  27616. "x-cos-security-token": u
  27617. };
  27618. n.upload({
  27619. url: a,
  27620. data: p,
  27621. file: r,
  27622. name: s,
  27623. fileType: o,
  27624. onUploadProgress: i
  27625. }).then(function (e) {
  27626. 201 === e.statusCode ? t(null, {
  27627. fileID: l,
  27628. requestId: d
  27629. }) : t(new te({
  27630. code: "STORAGE_REQUEST_FAIL",
  27631. message: "STORAGE_REQUEST_FAIL: ".concat(e.data)
  27632. }));
  27633. }).catch(function (e) {
  27634. t(e);
  27635. });
  27636. }).catch(function (e) {
  27637. t(e);
  27638. }), t.promise;
  27639. },
  27640. at = function at(e, t) {
  27641. t = t || ve();
  27642. var n = Qe(this.config.env),
  27643. s = e.cloudPath;
  27644. return n.send("storage.getUploadMetadata", {
  27645. path: s
  27646. }).then(function (e) {
  27647. t(null, e);
  27648. }).catch(function (e) {
  27649. t(e);
  27650. }), t.promise;
  27651. },
  27652. ct = function ct(_ref7, t) {
  27653. var e = _ref7.fileList;
  27654. if (t = t || ve(), !e || !Array.isArray(e)) return {
  27655. code: "INVALID_PARAM",
  27656. message: "fileList必须是非空的数组"
  27657. };
  27658. var _iterator3 = _createForOfIteratorHelper(e),
  27659. _step3;
  27660. try {
  27661. for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
  27662. var _t8 = _step3.value;
  27663. if (!_t8 || "string" != typeof _t8) return {
  27664. code: "INVALID_PARAM",
  27665. message: "fileList的元素必须是非空的字符串"
  27666. };
  27667. }
  27668. } catch (err) {
  27669. _iterator3.e(err);
  27670. } finally {
  27671. _iterator3.f();
  27672. }
  27673. var n = {
  27674. fileid_list: e
  27675. };
  27676. return Qe(this.config.env).send("storage.batchDeleteFile", n).then(function (e) {
  27677. e.code ? t(null, e) : t(null, {
  27678. fileList: e.data.delete_list,
  27679. requestId: e.requestId
  27680. });
  27681. }).catch(function (e) {
  27682. t(e);
  27683. }), t.promise;
  27684. },
  27685. ut = function ut(_ref8, t) {
  27686. var e = _ref8.fileList;
  27687. t = t || ve(), e && Array.isArray(e) || t(null, {
  27688. code: "INVALID_PARAM",
  27689. message: "fileList必须是非空的数组"
  27690. });
  27691. var n = [];
  27692. var _iterator4 = _createForOfIteratorHelper(e),
  27693. _step4;
  27694. try {
  27695. for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
  27696. var _s10 = _step4.value;
  27697. "object" == (0, _typeof2.default)(_s10) ? (_s10.hasOwnProperty("fileID") && _s10.hasOwnProperty("maxAge") || t(null, {
  27698. code: "INVALID_PARAM",
  27699. message: "fileList的元素必须是包含fileID和maxAge的对象"
  27700. }), n.push({
  27701. fileid: _s10.fileID,
  27702. max_age: _s10.maxAge
  27703. })) : "string" == typeof _s10 ? n.push({
  27704. fileid: _s10
  27705. }) : t(null, {
  27706. code: "INVALID_PARAM",
  27707. message: "fileList的元素必须是字符串"
  27708. });
  27709. }
  27710. } catch (err) {
  27711. _iterator4.e(err);
  27712. } finally {
  27713. _iterator4.f();
  27714. }
  27715. var s = {
  27716. file_list: n
  27717. };
  27718. return Qe(this.config.env).send("storage.batchGetDownloadUrl", s).then(function (e) {
  27719. e.code ? t(null, e) : t(null, {
  27720. fileList: e.data.download_list,
  27721. requestId: e.requestId
  27722. });
  27723. }).catch(function (e) {
  27724. t(e);
  27725. }), t.promise;
  27726. },
  27727. lt = /*#__PURE__*/function () {
  27728. var _ref10 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee32(_ref9, t) {
  27729. var e, n, s, r;
  27730. return _regenerator.default.wrap(function _callee32$(_context32) {
  27731. while (1) {
  27732. switch (_context32.prev = _context32.next) {
  27733. case 0:
  27734. e = _ref9.fileID;
  27735. _context32.next = 3;
  27736. return ut.call(this, {
  27737. fileList: [{
  27738. fileID: e,
  27739. maxAge: 600
  27740. }]
  27741. });
  27742. case 3:
  27743. n = _context32.sent.fileList[0];
  27744. if (!("SUCCESS" !== n.code)) {
  27745. _context32.next = 6;
  27746. break;
  27747. }
  27748. return _context32.abrupt("return", t ? t(n) : new Promise(function (e) {
  27749. e(n);
  27750. }));
  27751. case 6:
  27752. s = Qe(this.config.env);
  27753. r = n.download_url;
  27754. if (!(r = encodeURI(r), !t)) {
  27755. _context32.next = 10;
  27756. break;
  27757. }
  27758. return _context32.abrupt("return", s.download({
  27759. url: r
  27760. }));
  27761. case 10:
  27762. _context32.t0 = t;
  27763. _context32.next = 13;
  27764. return s.download({
  27765. url: r
  27766. });
  27767. case 13:
  27768. _context32.t1 = _context32.sent;
  27769. (0, _context32.t0)(_context32.t1);
  27770. case 15:
  27771. case "end":
  27772. return _context32.stop();
  27773. }
  27774. }
  27775. }, _callee32, this);
  27776. }));
  27777. return function lt(_x27, _x28) {
  27778. return _ref10.apply(this, arguments);
  27779. };
  27780. }(),
  27781. ht = function ht(_ref11, o) {
  27782. var e = _ref11.name,
  27783. t = _ref11.data,
  27784. n = _ref11.query,
  27785. s = _ref11.parse,
  27786. r = _ref11.search,
  27787. i = _ref11.timeout;
  27788. var a = o || ve();
  27789. var c;
  27790. try {
  27791. c = t ? JSON.stringify(t) : "";
  27792. } catch (e) {
  27793. return Promise.reject(e);
  27794. }
  27795. if (!e) return Promise.reject(new te({
  27796. code: "PARAM_ERROR",
  27797. message: "函数名不能为空"
  27798. }));
  27799. var u = {
  27800. inQuery: n,
  27801. parse: s,
  27802. search: r,
  27803. function_name: e,
  27804. request_data: c
  27805. };
  27806. return Qe(this.config.env).send("functions.invokeFunction", u, {
  27807. timeout: i
  27808. }).then(function (e) {
  27809. if (e.code) a(null, e);else {
  27810. var _t9 = e.data.response_data;
  27811. if (s) a(null, {
  27812. result: _t9,
  27813. requestId: e.requestId
  27814. });else try {
  27815. _t9 = JSON.parse(e.data.response_data), a(null, {
  27816. result: _t9,
  27817. requestId: e.requestId
  27818. });
  27819. } catch (e) {
  27820. a(new te({
  27821. message: "response data must be json"
  27822. }));
  27823. }
  27824. }
  27825. return a.promise;
  27826. }).catch(function (e) {
  27827. a(e);
  27828. }), a.promise;
  27829. },
  27830. dt = {
  27831. timeout: 15e3,
  27832. persistence: "session"
  27833. },
  27834. pt = {};
  27835. var ft = /*#__PURE__*/function () {
  27836. function ft(e) {
  27837. (0, _classCallCheck2.default)(this, ft);
  27838. this.config = e || this.config, this.authObj = void 0;
  27839. }
  27840. (0, _createClass2.default)(ft, [{
  27841. key: "init",
  27842. value: function init(e) {
  27843. switch (Ae.adapter || (this.requestClient = new Ae.adapter.reqClass({
  27844. timeout: e.timeout || 5e3,
  27845. timeoutMsg: "\u8BF7\u6C42\u5728".concat((e.timeout || 5e3) / 1e3, "s\u5185\u672A\u5B8C\u6210\uFF0C\u5DF2\u4E2D\u65AD")
  27846. })), this.config = _objectSpread(_objectSpread({}, dt), e), !0) {
  27847. case this.config.timeout > 6e5:
  27848. console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5;
  27849. break;
  27850. case this.config.timeout < 100:
  27851. console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100;
  27852. }
  27853. return new ft(this.config);
  27854. }
  27855. }, {
  27856. key: "auth",
  27857. value: function auth() {
  27858. var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  27859. e = _ref12.persistence;
  27860. if (this.authObj) return this.authObj;
  27861. var t = e || Ae.adapter.primaryStorage || dt.persistence;
  27862. var n;
  27863. return t !== this.config.persistence && (this.config.persistence = t), function (e) {
  27864. var t = e.env;
  27865. Oe[t] = new xe(e), Ee[t] = new xe(_objectSpread(_objectSpread({}, e), {}, {
  27866. persistence: "local"
  27867. }));
  27868. }(this.config), n = this.config, Ye[n.env] = new Ge(n), this.authObj = new it(this.config), this.authObj;
  27869. }
  27870. }, {
  27871. key: "on",
  27872. value: function on(e, t) {
  27873. return De.apply(this, [e, t]);
  27874. }
  27875. }, {
  27876. key: "off",
  27877. value: function off(e, t) {
  27878. return Me.apply(this, [e, t]);
  27879. }
  27880. }, {
  27881. key: "callFunction",
  27882. value: function callFunction(e, t) {
  27883. return ht.apply(this, [e, t]);
  27884. }
  27885. }, {
  27886. key: "deleteFile",
  27887. value: function deleteFile(e, t) {
  27888. return ct.apply(this, [e, t]);
  27889. }
  27890. }, {
  27891. key: "getTempFileURL",
  27892. value: function getTempFileURL(e, t) {
  27893. return ut.apply(this, [e, t]);
  27894. }
  27895. }, {
  27896. key: "downloadFile",
  27897. value: function downloadFile(e, t) {
  27898. return lt.apply(this, [e, t]);
  27899. }
  27900. }, {
  27901. key: "uploadFile",
  27902. value: function uploadFile(e, t) {
  27903. return ot.apply(this, [e, t]);
  27904. }
  27905. }, {
  27906. key: "getUploadMetadata",
  27907. value: function getUploadMetadata(e, t) {
  27908. return at.apply(this, [e, t]);
  27909. }
  27910. }, {
  27911. key: "registerExtension",
  27912. value: function registerExtension(e) {
  27913. pt[e.name] = e;
  27914. }
  27915. }, {
  27916. key: "invokeExtension",
  27917. value: function () {
  27918. var _invokeExtension = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee33(e, t) {
  27919. var n;
  27920. return _regenerator.default.wrap(function _callee33$(_context33) {
  27921. while (1) {
  27922. switch (_context33.prev = _context33.next) {
  27923. case 0:
  27924. n = pt[e];
  27925. if (n) {
  27926. _context33.next = 3;
  27927. break;
  27928. }
  27929. throw new te({
  27930. message: "\u6269\u5C55".concat(e, " \u5FC5\u987B\u5148\u6CE8\u518C")
  27931. });
  27932. case 3:
  27933. _context33.next = 5;
  27934. return n.invoke(t, this);
  27935. case 5:
  27936. return _context33.abrupt("return", _context33.sent);
  27937. case 6:
  27938. case "end":
  27939. return _context33.stop();
  27940. }
  27941. }
  27942. }, _callee33, this);
  27943. }));
  27944. function invokeExtension(_x29, _x30) {
  27945. return _invokeExtension.apply(this, arguments);
  27946. }
  27947. return invokeExtension;
  27948. }()
  27949. }, {
  27950. key: "useAdapters",
  27951. value: function useAdapters(e) {
  27952. var _ref13 = ke(e) || {},
  27953. t = _ref13.adapter,
  27954. n = _ref13.runtime;
  27955. t && (Ae.adapter = t), n && (Ae.runtime = n);
  27956. }
  27957. }]);
  27958. return ft;
  27959. }();
  27960. var gt = new ft();
  27961. function mt(e, t, n) {
  27962. void 0 === n && (n = {});
  27963. var s = /\?/.test(t),
  27964. r = "";
  27965. for (var i in n) {
  27966. "" === r ? !s && (t += "?") : r += "&", r += i + "=" + encodeURIComponent(n[i]);
  27967. }
  27968. return /^http(s)?:\/\//.test(t += r) ? t : "" + e + t;
  27969. }
  27970. var yt = /*#__PURE__*/function () {
  27971. function yt() {
  27972. (0, _classCallCheck2.default)(this, yt);
  27973. }
  27974. (0, _createClass2.default)(yt, [{
  27975. key: "post",
  27976. value: function post(e) {
  27977. var t = e.url,
  27978. n = e.data,
  27979. s = e.headers,
  27980. r = e.timeout;
  27981. return new Promise(function (e, i) {
  27982. ne.request({
  27983. url: mt("https:", t),
  27984. data: n,
  27985. method: "POST",
  27986. header: s,
  27987. timeout: r,
  27988. success: function success(t) {
  27989. e(t);
  27990. },
  27991. fail: function fail(e) {
  27992. i(e);
  27993. }
  27994. });
  27995. });
  27996. }
  27997. }, {
  27998. key: "upload",
  27999. value: function upload(e) {
  28000. return new Promise(function (t, n) {
  28001. var s = e.url,
  28002. r = e.file,
  28003. i = e.data,
  28004. o = e.headers,
  28005. a = e.fileType,
  28006. c = ne.uploadFile({
  28007. url: mt("https:", s),
  28008. name: "file",
  28009. formData: Object.assign({}, i),
  28010. filePath: r,
  28011. fileType: a,
  28012. header: o,
  28013. success: function success(e) {
  28014. var n = {
  28015. statusCode: e.statusCode,
  28016. data: e.data || {}
  28017. };
  28018. 200 === e.statusCode && i.success_action_status && (n.statusCode = parseInt(i.success_action_status, 10)), t(n);
  28019. },
  28020. fail: function fail(e) {
  28021. n(new Error(e.errMsg || "uploadFile:fail"));
  28022. }
  28023. });
  28024. "function" == typeof e.onUploadProgress && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (t) {
  28025. e.onUploadProgress({
  28026. loaded: t.totalBytesSent,
  28027. total: t.totalBytesExpectedToSend
  28028. });
  28029. });
  28030. });
  28031. }
  28032. }]);
  28033. return yt;
  28034. }();
  28035. var _t = {
  28036. setItem: function setItem(e, t) {
  28037. ne.setStorageSync(e, t);
  28038. },
  28039. getItem: function getItem(e) {
  28040. return ne.getStorageSync(e);
  28041. },
  28042. removeItem: function removeItem(e) {
  28043. ne.removeStorageSync(e);
  28044. },
  28045. clear: function clear() {
  28046. ne.clearStorageSync();
  28047. }
  28048. };
  28049. var wt = {
  28050. genAdapter: function genAdapter() {
  28051. return {
  28052. root: {},
  28053. reqClass: yt,
  28054. localStorage: _t,
  28055. primaryStorage: "local"
  28056. };
  28057. },
  28058. isMatch: function isMatch() {
  28059. return !0;
  28060. },
  28061. runtime: "uni_app"
  28062. };
  28063. gt.useAdapters(wt);
  28064. var vt = gt,
  28065. It = vt.init;
  28066. vt.init = function (e) {
  28067. e.env = e.spaceId;
  28068. var t = It.call(this, e);
  28069. t.config.provider = "tencent", t.config.spaceId = e.spaceId;
  28070. var n = t.auth;
  28071. return t.auth = function (e) {
  28072. var t = n.call(this, e);
  28073. return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach(function (e) {
  28074. var n;
  28075. t[e] = (n = t[e], function (e) {
  28076. e = e || {};
  28077. var _ee = ee(e),
  28078. t = _ee.success,
  28079. s = _ee.fail,
  28080. r = _ee.complete;
  28081. if (!(t || s || r)) return n.call(this, e);
  28082. n.call(this, e).then(function (e) {
  28083. t && t(e), r && r(e);
  28084. }, function (e) {
  28085. s && s(e), r && r(e);
  28086. });
  28087. }).bind(t);
  28088. }), t;
  28089. }, t.customAuth = t.auth, t;
  28090. };
  28091. var St = vt;
  28092. function bt(_x31, _x32) {
  28093. return _bt.apply(this, arguments);
  28094. }
  28095. function _bt() {
  28096. _bt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee59(e, t) {
  28097. var n, _e30, s;
  28098. return _regenerator.default.wrap(function _callee59$(_context59) {
  28099. while (1) {
  28100. switch (_context59.prev = _context59.next) {
  28101. case 0:
  28102. n = "http://".concat(e, ":").concat(t, "/system/ping");
  28103. _context59.prev = 1;
  28104. _context59.next = 4;
  28105. return s = {
  28106. url: n,
  28107. timeout: 500
  28108. }, new Promise(function (e, t) {
  28109. ne.request(_objectSpread(_objectSpread({}, s), {}, {
  28110. success: function success(t) {
  28111. e(t);
  28112. },
  28113. fail: function fail(e) {
  28114. t(e);
  28115. }
  28116. }));
  28117. });
  28118. case 4:
  28119. _e30 = _context59.sent;
  28120. return _context59.abrupt("return", !(!_e30.data || 0 !== _e30.data.code));
  28121. case 8:
  28122. _context59.prev = 8;
  28123. _context59.t0 = _context59["catch"](1);
  28124. return _context59.abrupt("return", !1);
  28125. case 11:
  28126. case "end":
  28127. return _context59.stop();
  28128. }
  28129. }
  28130. }, _callee59, null, [[1, 8]]);
  28131. }));
  28132. return _bt.apply(this, arguments);
  28133. }
  28134. function kt(_x33, _x34) {
  28135. return _kt.apply(this, arguments);
  28136. }
  28137. function _kt() {
  28138. _kt = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee60(e, t) {
  28139. var n, s, _r10;
  28140. return _regenerator.default.wrap(function _callee60$(_context60) {
  28141. while (1) {
  28142. switch (_context60.prev = _context60.next) {
  28143. case 0:
  28144. s = 0;
  28145. case 1:
  28146. if (!(s < e.length)) {
  28147. _context60.next = 11;
  28148. break;
  28149. }
  28150. _r10 = e[s];
  28151. _context60.next = 5;
  28152. return bt(_r10, t);
  28153. case 5:
  28154. if (!_context60.sent) {
  28155. _context60.next = 8;
  28156. break;
  28157. }
  28158. n = _r10;
  28159. return _context60.abrupt("break", 11);
  28160. case 8:
  28161. s++;
  28162. _context60.next = 1;
  28163. break;
  28164. case 11:
  28165. return _context60.abrupt("return", {
  28166. address: n,
  28167. port: t
  28168. });
  28169. case 12:
  28170. case "end":
  28171. return _context60.stop();
  28172. }
  28173. }
  28174. }, _callee60);
  28175. }));
  28176. return _kt.apply(this, arguments);
  28177. }
  28178. var At = {
  28179. "serverless.file.resource.generateProximalSign": "storage/generate-proximal-sign",
  28180. "serverless.file.resource.report": "storage/report",
  28181. "serverless.file.resource.delete": "storage/delete",
  28182. "serverless.file.resource.getTempFileURL": "storage/get-temp-file-url"
  28183. };
  28184. var Ct = /*#__PURE__*/function () {
  28185. function Ct(e) {
  28186. (0, _classCallCheck2.default)(this, Ct);
  28187. if (["spaceId", "clientSecret"].forEach(function (t) {
  28188. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  28189. }), !e.endpoint) throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");
  28190. this.config = Object.assign({}, e), this.config.provider = "dcloud", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.adapter = ne;
  28191. }
  28192. (0, _createClass2.default)(Ct, [{
  28193. key: "request",
  28194. value: function () {
  28195. var _request2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee34(e) {
  28196. var _this11 = this;
  28197. var t,
  28198. n,
  28199. _args34 = arguments;
  28200. return _regenerator.default.wrap(function _callee34$(_context34) {
  28201. while (1) {
  28202. switch (_context34.prev = _context34.next) {
  28203. case 0:
  28204. t = _args34.length > 1 && _args34[1] !== undefined ? _args34[1] : !0;
  28205. n = S && t;
  28206. if (!n) {
  28207. _context34.next = 8;
  28208. break;
  28209. }
  28210. _context34.next = 5;
  28211. return this.setupLocalRequest(e);
  28212. case 5:
  28213. _context34.t0 = _context34.sent;
  28214. _context34.next = 9;
  28215. break;
  28216. case 8:
  28217. _context34.t0 = this.setupRequest(e);
  28218. case 9:
  28219. e = _context34.t0;
  28220. return _context34.abrupt("return", Promise.resolve().then(function () {
  28221. return n ? _this11.requestLocal(e) : he.wrappedRequest(e, _this11.adapter.request);
  28222. }));
  28223. case 11:
  28224. case "end":
  28225. return _context34.stop();
  28226. }
  28227. }
  28228. }, _callee34, this);
  28229. }));
  28230. function request(_x35) {
  28231. return _request2.apply(this, arguments);
  28232. }
  28233. return request;
  28234. }()
  28235. }, {
  28236. key: "requestLocal",
  28237. value: function requestLocal(e) {
  28238. var _this12 = this;
  28239. return new Promise(function (t, n) {
  28240. _this12.adapter.request(Object.assign(e, {
  28241. complete: function complete(e) {
  28242. if (e || (e = {}), !e.statusCode || e.statusCode >= 400) {
  28243. var _t10 = e.data && e.data.code || "SYS_ERR",
  28244. _s11 = e.data && e.data.message || "request:fail";
  28245. return n(new te({
  28246. code: _t10,
  28247. message: _s11
  28248. }));
  28249. }
  28250. t({
  28251. success: !0,
  28252. result: e.data
  28253. });
  28254. }
  28255. }));
  28256. });
  28257. }
  28258. }, {
  28259. key: "setupRequest",
  28260. value: function setupRequest(e) {
  28261. var t = Object.assign({}, e, {
  28262. spaceId: this.config.spaceId,
  28263. timestamp: Date.now()
  28264. }),
  28265. n = {
  28266. "Content-Type": "application/json"
  28267. };
  28268. n["x-serverless-sign"] = he.sign(t, this.config.clientSecret);
  28269. var s = le();
  28270. n["x-client-info"] = encodeURIComponent(JSON.stringify(s));
  28271. var _se = se(),
  28272. r = _se.token;
  28273. return n["x-client-token"] = r, {
  28274. url: this.config.requestUrl,
  28275. method: "POST",
  28276. data: t,
  28277. dataType: "json",
  28278. header: JSON.parse(JSON.stringify(n))
  28279. };
  28280. }
  28281. }, {
  28282. key: "setupLocalRequest",
  28283. value: function () {
  28284. var _setupLocalRequest = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee35(e) {
  28285. var t, _se2, n, s, _ref14, r, i, _yield$kt, o;
  28286. return _regenerator.default.wrap(function _callee35$(_context35) {
  28287. while (1) {
  28288. switch (_context35.prev = _context35.next) {
  28289. case 0:
  28290. t = le();
  28291. _se2 = se();
  28292. n = _se2.token;
  28293. s = Object.assign({}, e, {
  28294. spaceId: this.config.spaceId,
  28295. timestamp: Date.now(),
  28296. clientInfo: t,
  28297. token: n
  28298. });
  28299. _ref14 = this.__dev__ && this.__dev__.debugInfo || {};
  28300. r = _ref14.address;
  28301. i = _ref14.servePort;
  28302. _context35.next = 9;
  28303. return kt(r, i);
  28304. case 9:
  28305. _yield$kt = _context35.sent;
  28306. o = _yield$kt.address;
  28307. return _context35.abrupt("return", {
  28308. url: "http://".concat(o, ":").concat(i, "/").concat(At[e.method]),
  28309. method: "POST",
  28310. data: s,
  28311. dataType: "json",
  28312. header: JSON.parse(JSON.stringify({
  28313. "Content-Type": "application/json"
  28314. }))
  28315. });
  28316. case 12:
  28317. case "end":
  28318. return _context35.stop();
  28319. }
  28320. }
  28321. }, _callee35, this);
  28322. }));
  28323. function setupLocalRequest(_x36) {
  28324. return _setupLocalRequest.apply(this, arguments);
  28325. }
  28326. return setupLocalRequest;
  28327. }()
  28328. }, {
  28329. key: "callFunction",
  28330. value: function callFunction(e) {
  28331. var t = {
  28332. method: "serverless.function.runtime.invoke",
  28333. params: JSON.stringify({
  28334. functionTarget: e.name,
  28335. functionArgs: e.data || {}
  28336. })
  28337. };
  28338. return this.request(t, !1);
  28339. }
  28340. }, {
  28341. key: "getUploadFileOptions",
  28342. value: function getUploadFileOptions(e) {
  28343. var t = {
  28344. method: "serverless.file.resource.generateProximalSign",
  28345. params: JSON.stringify(e)
  28346. };
  28347. return this.request(t);
  28348. }
  28349. }, {
  28350. key: "reportUploadFile",
  28351. value: function reportUploadFile(e) {
  28352. var t = {
  28353. method: "serverless.file.resource.report",
  28354. params: JSON.stringify(e)
  28355. };
  28356. return this.request(t);
  28357. }
  28358. }, {
  28359. key: "uploadFile",
  28360. value: function uploadFile(_ref15) {
  28361. var _this13 = this;
  28362. var e = _ref15.filePath,
  28363. t = _ref15.cloudPath,
  28364. _ref15$fileType = _ref15.fileType,
  28365. n = _ref15$fileType === void 0 ? "image" : _ref15$fileType,
  28366. s = _ref15.onUploadProgress;
  28367. if (!t) throw new te({
  28368. code: "CLOUDPATH_REQUIRED",
  28369. message: "cloudPath不可为空"
  28370. });
  28371. var r;
  28372. return this.getUploadFileOptions({
  28373. cloudPath: t
  28374. }).then(function (t) {
  28375. var _t$result = t.result,
  28376. i = _t$result.url,
  28377. o = _t$result.formData,
  28378. a = _t$result.name;
  28379. return r = t.result.fileUrl, new Promise(function (t, r) {
  28380. var c = _this13.adapter.uploadFile({
  28381. url: i,
  28382. formData: o,
  28383. name: a,
  28384. filePath: e,
  28385. fileType: n,
  28386. success: function success(e) {
  28387. e && e.statusCode < 400 ? t(e) : r(new te({
  28388. code: "UPLOAD_FAILED",
  28389. message: "文件上传失败"
  28390. }));
  28391. },
  28392. fail: function fail(e) {
  28393. r(new te({
  28394. code: e.code || "UPLOAD_FAILED",
  28395. message: e.message || e.errMsg || "文件上传失败"
  28396. }));
  28397. }
  28398. });
  28399. "function" == typeof s && c && "function" == typeof c.onProgressUpdate && c.onProgressUpdate(function (e) {
  28400. s({
  28401. loaded: e.totalBytesSent,
  28402. total: e.totalBytesExpectedToSend
  28403. });
  28404. });
  28405. });
  28406. }).then(function () {
  28407. return _this13.reportUploadFile({
  28408. cloudPath: t
  28409. });
  28410. }).then(function (t) {
  28411. return new Promise(function (n, s) {
  28412. t.success ? n({
  28413. success: !0,
  28414. filePath: e,
  28415. fileID: r
  28416. }) : s(new te({
  28417. code: "UPLOAD_FAILED",
  28418. message: "文件上传失败"
  28419. }));
  28420. });
  28421. });
  28422. }
  28423. }, {
  28424. key: "deleteFile",
  28425. value: function deleteFile(_ref16) {
  28426. var e = _ref16.fileList;
  28427. var t = {
  28428. method: "serverless.file.resource.delete",
  28429. params: JSON.stringify({
  28430. fileList: e
  28431. })
  28432. };
  28433. return this.request(t).then(function (e) {
  28434. if (e.success) return e.result;
  28435. throw new te({
  28436. code: "DELETE_FILE_FAILED",
  28437. message: "删除文件失败"
  28438. });
  28439. });
  28440. }
  28441. }, {
  28442. key: "getTempFileURL",
  28443. value: function getTempFileURL() {
  28444. var _ref17 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  28445. e = _ref17.fileList,
  28446. t = _ref17.maxAge;
  28447. if (!Array.isArray(e) || 0 === e.length) throw new te({
  28448. code: "INVALID_PARAM",
  28449. message: "fileList的元素必须是非空的字符串"
  28450. });
  28451. var n = {
  28452. method: "serverless.file.resource.getTempFileURL",
  28453. params: JSON.stringify({
  28454. fileList: e,
  28455. maxAge: t
  28456. })
  28457. };
  28458. return this.request(n).then(function (e) {
  28459. if (e.success) return {
  28460. fileList: e.result.fileList.map(function (e) {
  28461. return {
  28462. fileID: e.fileID,
  28463. tempFileURL: e.tempFileURL
  28464. };
  28465. })
  28466. };
  28467. throw new te({
  28468. code: "GET_TEMP_FILE_URL_FAILED",
  28469. message: "获取临时文件链接失败"
  28470. });
  28471. });
  28472. }
  28473. }]);
  28474. return Ct;
  28475. }();
  28476. var Pt = {
  28477. init: function init(e) {
  28478. var t = new Ct(e),
  28479. n = {
  28480. signInAnonymously: function signInAnonymously() {
  28481. return Promise.resolve();
  28482. },
  28483. getLoginState: function getLoginState() {
  28484. return Promise.resolve(!1);
  28485. }
  28486. };
  28487. return t.auth = function () {
  28488. return n;
  28489. }, t.customAuth = t.auth, t;
  28490. }
  28491. },
  28492. Tt = n(function (e, t) {
  28493. e.exports = r.enc.Hex;
  28494. });
  28495. function xt() {
  28496. return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (e) {
  28497. var t = 16 * Math.random() | 0;
  28498. return ("x" === e ? t : 3 & t | 8).toString(16);
  28499. });
  28500. }
  28501. function Ot() {
  28502. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  28503. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28504. var n = t.data,
  28505. s = t.functionName,
  28506. r = t.method,
  28507. i = t.headers,
  28508. _t$signHeaderKeys = t.signHeaderKeys,
  28509. o = _t$signHeaderKeys === void 0 ? [] : _t$signHeaderKeys,
  28510. a = t.config,
  28511. c = Date.now(),
  28512. u = xt(),
  28513. l = Object.assign({}, i, {
  28514. "x-from-app-id": a.spaceAppId,
  28515. "x-from-env-id": a.spaceId,
  28516. "x-to-env-id": a.spaceId,
  28517. "x-from-instance-id": c,
  28518. "x-from-function-name": s,
  28519. "x-client-timestamp": c,
  28520. "x-alipay-source": "client",
  28521. "x-request-id": u,
  28522. "x-alipay-callid": u,
  28523. "x-trace-id": u
  28524. }),
  28525. h = ["x-from-app-id", "x-from-env-id", "x-to-env-id", "x-from-instance-id", "x-from-function-name", "x-client-timestamp"].concat(o),
  28526. _ref18 = e.split("?") || [],
  28527. _ref19 = (0, _slicedToArray2.default)(_ref18, 2),
  28528. _ref19$ = _ref19[0],
  28529. d = _ref19$ === void 0 ? "" : _ref19$,
  28530. _ref19$2 = _ref19[1],
  28531. p = _ref19$2 === void 0 ? "" : _ref19$2,
  28532. f = function (e) {
  28533. var t = e.signedHeaders.join(";"),
  28534. n = e.signedHeaders.map(function (t) {
  28535. return "".concat(t.toLowerCase(), ":").concat(e.headers[t], "\n");
  28536. }).join(""),
  28537. s = _e(e.body).toString(Tt),
  28538. r = "".concat(e.method.toUpperCase(), "\n").concat(e.path, "\n").concat(e.query, "\n").concat(n, "\n").concat(t, "\n").concat(s, "\n"),
  28539. i = _e(r).toString(Tt),
  28540. o = "HMAC-SHA256\n".concat(e.timestamp, "\n").concat(i, "\n"),
  28541. a = we(o, e.secretKey).toString(Tt);
  28542. return "HMAC-SHA256 Credential=".concat(e.secretId, ", SignedHeaders=").concat(t, ", Signature=").concat(a);
  28543. }({
  28544. path: d,
  28545. query: p,
  28546. method: r,
  28547. headers: l,
  28548. timestamp: c,
  28549. body: JSON.stringify(n),
  28550. secretId: a.accessKey,
  28551. secretKey: a.secretKey,
  28552. signedHeaders: h.sort()
  28553. });
  28554. return {
  28555. url: "".concat(a.endpoint).concat(e),
  28556. headers: Object.assign({}, l, {
  28557. Authorization: f
  28558. })
  28559. };
  28560. }
  28561. function Et(_ref20) {
  28562. var e = _ref20.url,
  28563. t = _ref20.data,
  28564. _ref20$method = _ref20.method,
  28565. n = _ref20$method === void 0 ? "POST" : _ref20$method,
  28566. _ref20$headers = _ref20.headers,
  28567. s = _ref20$headers === void 0 ? {} : _ref20$headers,
  28568. r = _ref20.timeout;
  28569. return new Promise(function (i, o) {
  28570. ne.request({
  28571. url: e,
  28572. method: n,
  28573. data: "object" == (0, _typeof2.default)(t) ? JSON.stringify(t) : t,
  28574. header: s,
  28575. dataType: "json",
  28576. timeout: r,
  28577. complete: function complete() {
  28578. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  28579. var t = s["x-trace-id"] || "";
  28580. if (!e.statusCode || e.statusCode >= 400) {
  28581. var _ref21 = e.data || {},
  28582. _n7 = _ref21.message,
  28583. _s12 = _ref21.errMsg,
  28584. _r4 = _ref21.trace_id;
  28585. return o(new te({
  28586. code: "SYS_ERR",
  28587. message: _n7 || _s12 || "request:fail",
  28588. requestId: _r4 || t
  28589. }));
  28590. }
  28591. i({
  28592. status: e.statusCode,
  28593. data: e.data,
  28594. headers: e.header,
  28595. requestId: t
  28596. });
  28597. }
  28598. });
  28599. });
  28600. }
  28601. function Lt(e, t) {
  28602. var n = e.path,
  28603. s = e.data,
  28604. _e$method = e.method,
  28605. r = _e$method === void 0 ? "GET" : _e$method,
  28606. _Ot = Ot(n, {
  28607. functionName: "",
  28608. data: s,
  28609. method: r,
  28610. headers: {
  28611. "x-alipay-cloud-mode": "oss",
  28612. "x-data-api-type": "oss",
  28613. "x-expire-timestamp": Date.now() + 6e4
  28614. },
  28615. signHeaderKeys: ["x-data-api-type", "x-expire-timestamp"],
  28616. config: t
  28617. }),
  28618. i = _Ot.url,
  28619. o = _Ot.headers;
  28620. return Et({
  28621. url: i,
  28622. data: s,
  28623. method: r,
  28624. headers: o
  28625. }).then(function (e) {
  28626. var t = e.data || {};
  28627. if (!t.success) throw new te({
  28628. code: e.errCode,
  28629. message: e.errMsg,
  28630. requestId: e.requestId
  28631. });
  28632. return t.data || {};
  28633. }).catch(function (e) {
  28634. throw new te({
  28635. code: e.errCode,
  28636. message: e.errMsg,
  28637. requestId: e.requestId
  28638. });
  28639. });
  28640. }
  28641. function Rt() {
  28642. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  28643. var t = e.trim().replace(/^cloud:\/\//, ""),
  28644. n = t.indexOf("/");
  28645. if (n <= 0) throw new te({
  28646. code: "INVALID_PARAM",
  28647. message: "fileID不合法"
  28648. });
  28649. var s = t.substring(0, n),
  28650. r = t.substring(n + 1);
  28651. return s !== this.config.spaceId && console.warn("file ".concat(e, " does not belong to env ").concat(this.config.spaceId)), r;
  28652. }
  28653. function Ut() {
  28654. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  28655. return "cloud://".concat(this.config.spaceId, "/").concat(e.replace(/^\/+/, ""));
  28656. }
  28657. var Nt = /*#__PURE__*/function () {
  28658. function Nt(e) {
  28659. (0, _classCallCheck2.default)(this, Nt);
  28660. this.config = e;
  28661. }
  28662. (0, _createClass2.default)(Nt, [{
  28663. key: "signedURL",
  28664. value: function signedURL(e) {
  28665. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28666. var n = "/ws/function/".concat(e),
  28667. s = this.config.wsEndpoint.replace(/^ws(s)?:\/\//, ""),
  28668. r = Object.assign({}, t, {
  28669. accessKeyId: this.config.accessKey,
  28670. signatureNonce: xt(),
  28671. timestamp: "" + Date.now()
  28672. }),
  28673. i = [n, ["accessKeyId", "authorization", "signatureNonce", "timestamp"].sort().map(function (e) {
  28674. return r[e] ? "".concat(e, "=").concat(r[e]) : null;
  28675. }).filter(Boolean).join("&"), "host:".concat(s)].join("\n"),
  28676. o = ["HMAC-SHA256", _e(i).toString(Tt)].join("\n"),
  28677. a = we(o, this.config.secretKey).toString(Tt),
  28678. c = Object.keys(r).map(function (e) {
  28679. return "".concat(e, "=").concat(encodeURIComponent(r[e]));
  28680. }).join("&");
  28681. return "".concat(this.config.wsEndpoint).concat(n, "?").concat(c, "&signature=").concat(a);
  28682. }
  28683. }]);
  28684. return Nt;
  28685. }();
  28686. var Dt = /*#__PURE__*/function () {
  28687. function Dt(e) {
  28688. (0, _classCallCheck2.default)(this, Dt);
  28689. if (["spaceId", "spaceAppId", "accessKey", "secretKey"].forEach(function (t) {
  28690. if (!Object.prototype.hasOwnProperty.call(e, t)) throw new Error("".concat(t, " required"));
  28691. }), e.endpoint) {
  28692. if ("string" != typeof e.endpoint) throw new Error("endpoint must be string");
  28693. if (!/^https:\/\//.test(e.endpoint)) throw new Error("endpoint must start with https://");
  28694. e.endpoint = e.endpoint.replace(/\/$/, "");
  28695. }
  28696. this.config = Object.assign({}, e, {
  28697. endpoint: e.endpoint || "https://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn"),
  28698. wsEndpoint: e.wsEndpoint || "wss://".concat(e.spaceId, ".api-hz.cloudbasefunction.cn")
  28699. }), this._websocket = new Nt(this.config);
  28700. }
  28701. (0, _createClass2.default)(Dt, [{
  28702. key: "callFunction",
  28703. value: function callFunction(e) {
  28704. return function (e, t) {
  28705. var n = e.name,
  28706. s = e.data,
  28707. _e$async = e.async,
  28708. r = _e$async === void 0 ? !1 : _e$async,
  28709. i = e.timeout,
  28710. o = "POST",
  28711. a = {
  28712. "x-to-function-name": n
  28713. };
  28714. r && (a["x-function-invoke-type"] = "async");
  28715. var _Ot2 = Ot("/functions/invokeFunction", {
  28716. functionName: n,
  28717. data: s,
  28718. method: o,
  28719. headers: a,
  28720. signHeaderKeys: ["x-to-function-name"],
  28721. config: t
  28722. }),
  28723. c = _Ot2.url,
  28724. u = _Ot2.headers;
  28725. return Et({
  28726. url: c,
  28727. data: s,
  28728. method: o,
  28729. headers: u,
  28730. timeout: i
  28731. }).then(function (e) {
  28732. var t = 0;
  28733. if (r) {
  28734. var _n8 = e.data || {};
  28735. t = "200" === _n8.errCode ? 0 : _n8.errCode, e.data = _n8.data || {}, e.errMsg = _n8.errMsg;
  28736. }
  28737. if (0 !== t) throw new te({
  28738. code: t,
  28739. message: e.errMsg,
  28740. requestId: e.requestId
  28741. });
  28742. return {
  28743. errCode: t,
  28744. success: 0 === t,
  28745. requestId: e.requestId,
  28746. result: e.data
  28747. };
  28748. }).catch(function (e) {
  28749. throw new te({
  28750. code: e.errCode,
  28751. message: e.errMsg,
  28752. requestId: e.requestId
  28753. });
  28754. });
  28755. }(e, this.config);
  28756. }
  28757. }, {
  28758. key: "uploadFileToOSS",
  28759. value: function uploadFileToOSS(_ref22) {
  28760. var e = _ref22.url,
  28761. t = _ref22.filePath,
  28762. n = _ref22.fileType,
  28763. s = _ref22.formData,
  28764. r = _ref22.onUploadProgress;
  28765. return new Promise(function (i, o) {
  28766. var a = ne.uploadFile({
  28767. url: e,
  28768. filePath: t,
  28769. fileType: n,
  28770. formData: s,
  28771. name: "file",
  28772. success: function success(e) {
  28773. e && e.statusCode < 400 ? i(e) : o(new te({
  28774. code: "UPLOAD_FAILED",
  28775. message: "文件上传失败"
  28776. }));
  28777. },
  28778. fail: function fail(e) {
  28779. o(new te({
  28780. code: e.code || "UPLOAD_FAILED",
  28781. message: e.message || e.errMsg || "文件上传失败"
  28782. }));
  28783. }
  28784. });
  28785. "function" == typeof r && a && "function" == typeof a.onProgressUpdate && a.onProgressUpdate(function (e) {
  28786. r({
  28787. loaded: e.totalBytesSent,
  28788. total: e.totalBytesExpectedToSend
  28789. });
  28790. });
  28791. });
  28792. }
  28793. }, {
  28794. key: "uploadFile",
  28795. value: function () {
  28796. var _uploadFile2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee36(_ref23) {
  28797. var e, _ref23$cloudPath, t, _ref23$fileType, n, s, r, i, o, a, c;
  28798. return _regenerator.default.wrap(function _callee36$(_context36) {
  28799. while (1) {
  28800. switch (_context36.prev = _context36.next) {
  28801. case 0:
  28802. e = _ref23.filePath, _ref23$cloudPath = _ref23.cloudPath, t = _ref23$cloudPath === void 0 ? "" : _ref23$cloudPath, _ref23$fileType = _ref23.fileType, n = _ref23$fileType === void 0 ? "image" : _ref23$fileType, s = _ref23.onUploadProgress;
  28803. if (!("string" !== f(t))) {
  28804. _context36.next = 3;
  28805. break;
  28806. }
  28807. throw new te({
  28808. code: "INVALID_PARAM",
  28809. message: "cloudPath必须为字符串类型"
  28810. });
  28811. case 3:
  28812. if (t = t.trim()) {
  28813. _context36.next = 5;
  28814. break;
  28815. }
  28816. throw new te({
  28817. code: "INVALID_PARAM",
  28818. message: "cloudPath不可为空"
  28819. });
  28820. case 5:
  28821. if (!/:\/\//.test(t)) {
  28822. _context36.next = 7;
  28823. break;
  28824. }
  28825. throw new te({
  28826. code: "INVALID_PARAM",
  28827. message: "cloudPath不合法"
  28828. });
  28829. case 7:
  28830. _context36.next = 9;
  28831. return Lt({
  28832. path: "/".concat(t.replace(/^\//, ""), "?post_url")
  28833. }, this.config);
  28834. case 9:
  28835. r = _context36.sent;
  28836. i = r.file_id;
  28837. o = r.upload_url;
  28838. a = r.form_data;
  28839. c = a && a.reduce(function (e, t) {
  28840. return e[t.key] = t.value, e;
  28841. }, {});
  28842. return _context36.abrupt("return", this.uploadFileToOSS({
  28843. url: o,
  28844. filePath: e,
  28845. fileType: n,
  28846. formData: c,
  28847. onUploadProgress: s
  28848. }).then(function () {
  28849. return {
  28850. fileID: i
  28851. };
  28852. }));
  28853. case 15:
  28854. case "end":
  28855. return _context36.stop();
  28856. }
  28857. }
  28858. }, _callee36, this);
  28859. }));
  28860. function uploadFile(_x37) {
  28861. return _uploadFile2.apply(this, arguments);
  28862. }
  28863. return uploadFile;
  28864. }()
  28865. }, {
  28866. key: "getTempFileURL",
  28867. value: function () {
  28868. var _getTempFileURL = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee37(_ref24) {
  28869. var _this14 = this;
  28870. var e;
  28871. return _regenerator.default.wrap(function _callee37$(_context37) {
  28872. while (1) {
  28873. switch (_context37.prev = _context37.next) {
  28874. case 0:
  28875. e = _ref24.fileList;
  28876. return _context37.abrupt("return", new Promise(function (t, n) {
  28877. (!e || e.length < 0) && n(new te({
  28878. errCode: "INVALID_PARAM",
  28879. errMsg: "fileList不能为空数组"
  28880. })), e.length > 50 && n(new te({
  28881. errCode: "INVALID_PARAM",
  28882. errMsg: "fileList数组长度不能超过50"
  28883. }));
  28884. var s = [];
  28885. var _iterator5 = _createForOfIteratorHelper(e),
  28886. _step5;
  28887. try {
  28888. for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
  28889. var _t11 = _step5.value;
  28890. "string" !== f(_t11) && n(new te({
  28891. errCode: "INVALID_PARAM",
  28892. errMsg: "fileList的元素必须是非空的字符串"
  28893. }));
  28894. var _e17 = Rt.call(_this14, _t11);
  28895. s.push({
  28896. file_id: _e17,
  28897. expire: 600
  28898. });
  28899. }
  28900. } catch (err) {
  28901. _iterator5.e(err);
  28902. } finally {
  28903. _iterator5.f();
  28904. }
  28905. Lt({
  28906. path: "/?download_url",
  28907. data: {
  28908. file_list: s
  28909. },
  28910. method: "POST"
  28911. }, _this14.config).then(function (e) {
  28912. var _e$file_list = e.file_list,
  28913. n = _e$file_list === void 0 ? [] : _e$file_list;
  28914. t({
  28915. fileList: n.map(function (e) {
  28916. return {
  28917. fileID: Ut.call(_this14, e.file_id),
  28918. tempFileURL: e.download_url
  28919. };
  28920. })
  28921. });
  28922. }).catch(function (e) {
  28923. return n(e);
  28924. });
  28925. }));
  28926. case 2:
  28927. case "end":
  28928. return _context37.stop();
  28929. }
  28930. }
  28931. }, _callee37);
  28932. }));
  28933. function getTempFileURL(_x38) {
  28934. return _getTempFileURL.apply(this, arguments);
  28935. }
  28936. return getTempFileURL;
  28937. }()
  28938. }, {
  28939. key: "connectWebSocket",
  28940. value: function () {
  28941. var _connectWebSocket = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee38(e) {
  28942. var t, n;
  28943. return _regenerator.default.wrap(function _callee38$(_context38) {
  28944. while (1) {
  28945. switch (_context38.prev = _context38.next) {
  28946. case 0:
  28947. t = e.name, n = e.query;
  28948. return _context38.abrupt("return", ne.connectSocket({
  28949. url: this._websocket.signedURL(t, n),
  28950. complete: function complete() {}
  28951. }));
  28952. case 2:
  28953. case "end":
  28954. return _context38.stop();
  28955. }
  28956. }
  28957. }, _callee38, this);
  28958. }));
  28959. function connectWebSocket(_x39) {
  28960. return _connectWebSocket.apply(this, arguments);
  28961. }
  28962. return connectWebSocket;
  28963. }()
  28964. }]);
  28965. return Dt;
  28966. }();
  28967. var qt = {
  28968. init: function init(e) {
  28969. e.provider = "alipay";
  28970. var t = new Dt(e);
  28971. return t.auth = function () {
  28972. return {
  28973. signInAnonymously: function signInAnonymously() {
  28974. return Promise.resolve();
  28975. },
  28976. getLoginState: function getLoginState() {
  28977. return Promise.resolve(!0);
  28978. }
  28979. };
  28980. }, t;
  28981. }
  28982. };
  28983. function Mt(_ref25) {
  28984. var e = _ref25.data;
  28985. var t;
  28986. t = le();
  28987. var n = JSON.parse(JSON.stringify(e || {}));
  28988. if (Object.assign(n, {
  28989. clientInfo: t
  28990. }), !n.uniIdToken) {
  28991. var _se3 = se(),
  28992. _e18 = _se3.token;
  28993. _e18 && (n.uniIdToken = _e18);
  28994. }
  28995. return n;
  28996. }
  28997. function Ft() {
  28998. return _Ft.apply(this, arguments);
  28999. }
  29000. function _Ft() {
  29001. _Ft = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee61() {
  29002. var _this27 = this;
  29003. var e,
  29004. _this$__dev__,
  29005. t,
  29006. n,
  29007. s,
  29008. r,
  29009. i,
  29010. o,
  29011. _args8 = arguments;
  29012. return _regenerator.default.wrap(function _callee61$(_context61) {
  29013. while (1) {
  29014. switch (_context61.prev = _context61.next) {
  29015. case 0:
  29016. e = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
  29017. _context61.next = 3;
  29018. return this.__dev__.initLocalNetwork();
  29019. case 3:
  29020. _this$__dev__ = this.__dev__, t = _this$__dev__.localAddress, n = _this$__dev__.localPort, s = {
  29021. aliyun: "aliyun",
  29022. tencent: "tcb",
  29023. alipay: "alipay",
  29024. dcloud: "dcloud"
  29025. }[this.config.provider], r = this.config.spaceId, i = "http://".concat(t, ":").concat(n, "/system/check-function"), o = "http://".concat(t, ":").concat(n, "/cloudfunctions/").concat(e.name);
  29026. return _context61.abrupt("return", new Promise(function (t, n) {
  29027. ne.request({
  29028. method: "POST",
  29029. url: i,
  29030. data: {
  29031. name: e.name,
  29032. platform: C,
  29033. provider: s,
  29034. spaceId: r
  29035. },
  29036. timeout: 3e3,
  29037. success: function success(e) {
  29038. t(e);
  29039. },
  29040. fail: function fail() {
  29041. t({
  29042. data: {
  29043. code: "NETWORK_ERROR",
  29044. message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"
  29045. }
  29046. });
  29047. }
  29048. });
  29049. }).then(function () {
  29050. var _ref67 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  29051. e = _ref67.data;
  29052. var _ref68 = e || {},
  29053. t = _ref68.code,
  29054. n = _ref68.message;
  29055. return {
  29056. code: 0 === t ? 0 : t || "SYS_ERR",
  29057. message: n || "SYS_ERR"
  29058. };
  29059. }).then(function (_ref69) {
  29060. var t = _ref69.code,
  29061. n = _ref69.message;
  29062. if (0 !== t) {
  29063. switch (t) {
  29064. case "MODULE_ENCRYPTED":
  29065. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e.name, "\uFF09\u4F9D\u8D56\u52A0\u5BC6\u516C\u5171\u6A21\u5757\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  29066. break;
  29067. case "FUNCTION_ENCRYPTED":
  29068. console.error("\u6B64\u4E91\u51FD\u6570\uFF08".concat(e.name, "\uFF09\u5DF2\u52A0\u5BC6\u4E0D\u53EF\u672C\u5730\u8C03\u8BD5\uFF0C\u81EA\u52A8\u5207\u6362\u4E3A\u4E91\u7AEF\u5DF2\u90E8\u7F72\u7684\u4E91\u51FD\u6570"));
  29069. break;
  29070. case "ACTION_ENCRYPTED":
  29071. console.error(n || "需要访问加密的uni-clientDB-action,自动切换为云端环境");
  29072. break;
  29073. case "NETWORK_ERROR":
  29074. console.error(n || "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下");
  29075. break;
  29076. case "SWITCH_TO_CLOUD":
  29077. break;
  29078. default:
  29079. {
  29080. var _e31 = "\u68C0\u6D4B\u672C\u5730\u8C03\u8BD5\u670D\u52A1\u51FA\u73B0\u9519\u8BEF\uFF1A".concat(n, "\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u73AF\u5883\u6216\u91CD\u542F\u5BA2\u6237\u7AEF\u518D\u8BD5");
  29081. throw console.error(_e31), new Error(_e31);
  29082. }
  29083. }
  29084. return _this27._callCloudFunction(e);
  29085. }
  29086. return new Promise(function (t, n) {
  29087. var r = Mt.call(_this27, {
  29088. data: e.data
  29089. });
  29090. ne.request({
  29091. method: "POST",
  29092. url: o,
  29093. data: {
  29094. provider: s,
  29095. platform: C,
  29096. param: r
  29097. },
  29098. timeout: e.timeout,
  29099. success: function success() {
  29100. var _ref70 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  29101. e = _ref70.statusCode,
  29102. s = _ref70.data;
  29103. return !e || e >= 400 ? n(new te({
  29104. code: s.code || "SYS_ERR",
  29105. message: s.message || "request:fail"
  29106. })) : t({
  29107. result: s
  29108. });
  29109. },
  29110. fail: function fail(e) {
  29111. n(new te({
  29112. code: e.code || e.errCode || "SYS_ERR",
  29113. message: e.message || e.errMsg || "request:fail"
  29114. }));
  29115. }
  29116. });
  29117. });
  29118. }));
  29119. case 5:
  29120. case "end":
  29121. return _context61.stop();
  29122. }
  29123. }
  29124. }, _callee61, this);
  29125. }));
  29126. return _Ft.apply(this, arguments);
  29127. }
  29128. var Kt = [{
  29129. rule: /fc_function_not_found|FUNCTION_NOT_FOUND/,
  29130. content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",
  29131. mode: "append"
  29132. }];
  29133. var jt = /[\\^$.*+?()[\]{}|]/g,
  29134. $t = RegExp(jt.source);
  29135. function Bt(e, t, n) {
  29136. return e.replace(new RegExp((s = t) && $t.test(s) ? s.replace(jt, "\\$&") : s, "g"), n);
  29137. var s;
  29138. }
  29139. var Wt = "none",
  29140. Ht = "request",
  29141. Jt = "response",
  29142. zt = "both";
  29143. var Vt = /*#__PURE__*/function () {
  29144. function Vt() {
  29145. var _ref26 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  29146. e = _ref26.secretType,
  29147. t = _ref26.uniCloudIns;
  29148. (0, _classCallCheck2.default)(this, Vt);
  29149. this.clientType = "", this.secretType = e || Wt, this.uniCloudIns = t;
  29150. var _this$uniCloudIns$con = this.uniCloudIns.config,
  29151. n = _this$uniCloudIns$con.provider,
  29152. s = _this$uniCloudIns$con.spaceId;
  29153. var r;
  29154. this.provider = n, this.spaceId = s, this.scopedGlobalCache = (r = this.uniCloudIns, L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", r.config.spaceId)));
  29155. }
  29156. (0, _createClass2.default)(Vt, [{
  29157. key: "getSystemInfo",
  29158. value: function getSystemInfo() {
  29159. return this._systemInfo || (this._systemInfo = ae()), this._systemInfo;
  29160. }
  29161. }, {
  29162. key: "appId",
  29163. get: function get() {
  29164. return this.getSystemInfo().appId;
  29165. }
  29166. }, {
  29167. key: "deviceId",
  29168. get: function get() {
  29169. return this.getSystemInfo().deviceId;
  29170. }
  29171. }, {
  29172. key: "encryptData",
  29173. value: function () {
  29174. var _encryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee39(e) {
  29175. return _regenerator.default.wrap(function _callee39$(_context39) {
  29176. while (1) {
  29177. switch (_context39.prev = _context39.next) {
  29178. case 0:
  29179. return _context39.abrupt("return", this.secretType === Wt ? e : this.platformEncryptData(e));
  29180. case 1:
  29181. case "end":
  29182. return _context39.stop();
  29183. }
  29184. }
  29185. }, _callee39, this);
  29186. }));
  29187. function encryptData(_x40) {
  29188. return _encryptData.apply(this, arguments);
  29189. }
  29190. return encryptData;
  29191. }()
  29192. }, {
  29193. key: "decryptResult",
  29194. value: function () {
  29195. var _decryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee40(e) {
  29196. var _ref27, t, n;
  29197. return _regenerator.default.wrap(function _callee40$(_context40) {
  29198. while (1) {
  29199. switch (_context40.prev = _context40.next) {
  29200. case 0:
  29201. if (!(this.secretType === Wt)) {
  29202. _context40.next = 2;
  29203. break;
  29204. }
  29205. return _context40.abrupt("return", e);
  29206. case 2:
  29207. _ref27 = e || {}, t = _ref27.errCode, n = _ref27.content;
  29208. return _context40.abrupt("return", t || !n ? e : this.secretType === Ht ? n : this.platformDecryptResult(e));
  29209. case 4:
  29210. case "end":
  29211. return _context40.stop();
  29212. }
  29213. }
  29214. }, _callee40, this);
  29215. }));
  29216. function decryptResult(_x41) {
  29217. return _decryptResult.apply(this, arguments);
  29218. }
  29219. return decryptResult;
  29220. }()
  29221. }, {
  29222. key: "wrapVerifyClientCallFunction",
  29223. value: function wrapVerifyClientCallFunction(e) {
  29224. var t = this;
  29225. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee41() {
  29226. var _ref29,
  29227. n,
  29228. _ref29$data,
  29229. s,
  29230. r,
  29231. _args41 = arguments;
  29232. return _regenerator.default.wrap(function _callee41$(_context41) {
  29233. while (1) {
  29234. switch (_context41.prev = _context41.next) {
  29235. case 0:
  29236. _ref29 = _args41.length > 0 && _args41[0] !== undefined ? _args41[0] : {}, n = _ref29.name, _ref29$data = _ref29.data, s = _ref29$data === void 0 ? {} : _ref29$data;
  29237. _context41.next = 3;
  29238. return t.prepare();
  29239. case 3:
  29240. _context41.next = 5;
  29241. return t.platformGetSignOption();
  29242. case 5:
  29243. (s = JSON.parse(JSON.stringify(s)))._uniCloudOptions = _context41.sent;
  29244. _context41.next = 8;
  29245. return e({
  29246. name: n,
  29247. data: s
  29248. });
  29249. case 8:
  29250. r = _context41.sent;
  29251. _context41.t0 = t.isClientKeyNotFound(r);
  29252. if (!_context41.t0) {
  29253. _context41.next = 19;
  29254. break;
  29255. }
  29256. _context41.next = 13;
  29257. return t.prepare({
  29258. forceUpdate: !0
  29259. });
  29260. case 13:
  29261. _context41.next = 15;
  29262. return t.platformGetSignOption();
  29263. case 15:
  29264. s._uniCloudOptions = _context41.sent;
  29265. _context41.next = 18;
  29266. return e({
  29267. name: n,
  29268. data: s
  29269. });
  29270. case 18:
  29271. r = _context41.sent;
  29272. case 19:
  29273. return _context41.abrupt("return", r);
  29274. case 20:
  29275. case "end":
  29276. return _context41.stop();
  29277. }
  29278. }
  29279. }, _callee41);
  29280. }));
  29281. }
  29282. }, {
  29283. key: "wrapEncryptDataCallFunction",
  29284. value: function wrapEncryptDataCallFunction(e) {
  29285. var t = this;
  29286. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee42() {
  29287. var _ref31,
  29288. n,
  29289. _ref31$data,
  29290. s,
  29291. r,
  29292. i,
  29293. _r5,
  29294. _args42 = arguments;
  29295. return _regenerator.default.wrap(function _callee42$(_context42) {
  29296. while (1) {
  29297. switch (_context42.prev = _context42.next) {
  29298. case 0:
  29299. _ref31 = _args42.length > 0 && _args42[0] !== undefined ? _args42[0] : {}, n = _ref31.name, _ref31$data = _ref31.data, s = _ref31$data === void 0 ? {} : _ref31$data;
  29300. _context42.next = 3;
  29301. return t.prepare();
  29302. case 3:
  29303. _context42.next = 5;
  29304. return t.encryptData(s);
  29305. case 5:
  29306. r = _context42.sent;
  29307. _context42.next = 8;
  29308. return e({
  29309. name: n,
  29310. data: r
  29311. });
  29312. case 8:
  29313. i = _context42.sent;
  29314. if (!t.isClientKeyNotFound(i)) {
  29315. _context42.next = 21;
  29316. break;
  29317. }
  29318. _context42.next = 12;
  29319. return t.prepare({
  29320. forceUpdate: !0
  29321. });
  29322. case 12:
  29323. _context42.next = 14;
  29324. return t.encryptData(s);
  29325. case 14:
  29326. _r5 = _context42.sent;
  29327. _context42.next = 17;
  29328. return t.platformGetSignOption();
  29329. case 17:
  29330. s._uniCloudOptions = _context42.sent;
  29331. _context42.next = 20;
  29332. return e({
  29333. name: n,
  29334. data: _r5
  29335. });
  29336. case 20:
  29337. i = _context42.sent;
  29338. case 21:
  29339. _context42.next = 23;
  29340. return t.decryptResult(i.result);
  29341. case 23:
  29342. i.result = _context42.sent;
  29343. return _context42.abrupt("return", i);
  29344. case 25:
  29345. case "end":
  29346. return _context42.stop();
  29347. }
  29348. }
  29349. }, _callee42);
  29350. }));
  29351. }
  29352. }]);
  29353. return Vt;
  29354. }();
  29355. /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
  29356. function Gt(e) {
  29357. return parseInt(e) === e;
  29358. }
  29359. function Yt(e) {
  29360. if (!Gt(e.length)) return !1;
  29361. for (var t = 0; t < e.length; t++) {
  29362. if (!Gt(e[t]) || e[t] < 0 || e[t] > 255) return !1;
  29363. }
  29364. return !0;
  29365. }
  29366. function Qt(e, t) {
  29367. if (e.buffer && "Uint8Array" === e.name) return t && (e = e.slice ? e.slice() : Array.prototype.slice.call(e)), e;
  29368. if (Array.isArray(e)) {
  29369. if (!Yt(e)) throw new Error("Array contains invalid value: " + e);
  29370. return new Uint8Array(e);
  29371. }
  29372. if (Gt(e.length) && Yt(e)) return new Uint8Array(e);
  29373. throw new Error("unsupported array-like object");
  29374. }
  29375. function Xt(e) {
  29376. return new Uint8Array(e);
  29377. }
  29378. function Zt(e, t, n, s, r) {
  29379. null == s && null == r || (e = e.slice ? e.slice(s, r) : Array.prototype.slice.call(e, s, r)), t.set(e, n);
  29380. }
  29381. var en,
  29382. tn = {
  29383. toBytes: function toBytes(e) {
  29384. var t = [],
  29385. n = 0;
  29386. for (e = encodeURI(e); n < e.length;) {
  29387. var s = e.charCodeAt(n++);
  29388. 37 === s ? (t.push(parseInt(e.substr(n, 2), 16)), n += 2) : t.push(s);
  29389. }
  29390. return Qt(t);
  29391. },
  29392. fromBytes: function fromBytes(e) {
  29393. for (var t = [], n = 0; n < e.length;) {
  29394. var s = e[n];
  29395. s < 128 ? (t.push(String.fromCharCode(s)), n++) : s > 191 && s < 224 ? (t.push(String.fromCharCode((31 & s) << 6 | 63 & e[n + 1])), n += 2) : (t.push(String.fromCharCode((15 & s) << 12 | (63 & e[n + 1]) << 6 | 63 & e[n + 2])), n += 3);
  29396. }
  29397. return t.join("");
  29398. }
  29399. },
  29400. nn = (en = "0123456789abcdef", {
  29401. toBytes: function toBytes(e) {
  29402. for (var t = [], n = 0; n < e.length; n += 2) {
  29403. t.push(parseInt(e.substr(n, 2), 16));
  29404. }
  29405. return t;
  29406. },
  29407. fromBytes: function fromBytes(e) {
  29408. for (var t = [], n = 0; n < e.length; n++) {
  29409. var s = e[n];
  29410. t.push(en[(240 & s) >> 4] + en[15 & s]);
  29411. }
  29412. return t.join("");
  29413. }
  29414. }),
  29415. sn = {
  29416. 16: 10,
  29417. 24: 12,
  29418. 32: 14
  29419. },
  29420. rn = [1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47, 94, 188, 99, 198, 151, 53, 106, 212, 179, 125, 250, 239, 197, 145],
  29421. on = [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22],
  29422. an = [82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, 125],
  29423. cn = [3328402341, 4168907908, 4000806809, 4135287693, 4294111757, 3597364157, 3731845041, 2445657428, 1613770832, 33620227, 3462883241, 1445669757, 3892248089, 3050821474, 1303096294, 3967186586, 2412431941, 528646813, 2311702848, 4202528135, 4026202645, 2992200171, 2387036105, 4226871307, 1101901292, 3017069671, 1604494077, 1169141738, 597466303, 1403299063, 3832705686, 2613100635, 1974974402, 3791519004, 1033081774, 1277568618, 1815492186, 2118074177, 4126668546, 2211236943, 1748251740, 1369810420, 3521504564, 4193382664, 3799085459, 2883115123, 1647391059, 706024767, 134480908, 2512897874, 1176707941, 2646852446, 806885416, 932615841, 168101135, 798661301, 235341577, 605164086, 461406363, 3756188221, 3454790438, 1311188841, 2142417613, 3933566367, 302582043, 495158174, 1479289972, 874125870, 907746093, 3698224818, 3025820398, 1537253627, 2756858614, 1983593293, 3084310113, 2108928974, 1378429307, 3722699582, 1580150641, 327451799, 2790478837, 3117535592, 0, 3253595436, 1075847264, 3825007647, 2041688520, 3059440621, 3563743934, 2378943302, 1740553945, 1916352843, 2487896798, 2555137236, 2958579944, 2244988746, 3151024235, 3320835882, 1336584933, 3992714006, 2252555205, 2588757463, 1714631509, 293963156, 2319795663, 3925473552, 67240454, 4269768577, 2689618160, 2017213508, 631218106, 1269344483, 2723238387, 1571005438, 2151694528, 93294474, 1066570413, 563977660, 1882732616, 4059428100, 1673313503, 2008463041, 2950355573, 1109467491, 537923632, 3858759450, 4260623118, 3218264685, 2177748300, 403442708, 638784309, 3287084079, 3193921505, 899127202, 2286175436, 773265209, 2479146071, 1437050866, 4236148354, 2050833735, 3362022572, 3126681063, 840505643, 3866325909, 3227541664, 427917720, 2655997905, 2749160575, 1143087718, 1412049534, 999329963, 193497219, 2353415882, 3354324521, 1807268051, 672404540, 2816401017, 3160301282, 369822493, 2916866934, 3688947771, 1681011286, 1949973070, 336202270, 2454276571, 201721354, 1210328172, 3093060836, 2680341085, 3184776046, 1135389935, 3294782118, 965841320, 831886756, 3554993207, 4068047243, 3588745010, 2345191491, 1849112409, 3664604599, 26054028, 2983581028, 2622377682, 1235855840, 3630984372, 2891339514, 4092916743, 3488279077, 3395642799, 4101667470, 1202630377, 268961816, 1874508501, 4034427016, 1243948399, 1546530418, 941366308, 1470539505, 1941222599, 2546386513, 3421038627, 2715671932, 3899946140, 1042226977, 2521517021, 1639824860, 227249030, 260737669, 3765465232, 2084453954, 1907733956, 3429263018, 2420656344, 100860677, 4160157185, 470683154, 3261161891, 1781871967, 2924959737, 1773779408, 394692241, 2579611992, 974986535, 664706745, 3655459128, 3958962195, 731420851, 571543859, 3530123707, 2849626480, 126783113, 865375399, 765172662, 1008606754, 361203602, 3387549984, 2278477385, 2857719295, 1344809080, 2782912378, 59542671, 1503764984, 160008576, 437062935, 1707065306, 3622233649, 2218934982, 3496503480, 2185314755, 697932208, 1512910199, 504303377, 2075177163, 2824099068, 1841019862, 739644986],
  29424. un = [2781242211, 2230877308, 2582542199, 2381740923, 234877682, 3184946027, 2984144751, 1418839493, 1348481072, 50462977, 2848876391, 2102799147, 434634494, 1656084439, 3863849899, 2599188086, 1167051466, 2636087938, 1082771913, 2281340285, 368048890, 3954334041, 3381544775, 201060592, 3963727277, 1739838676, 4250903202, 3930435503, 3206782108, 4149453988, 2531553906, 1536934080, 3262494647, 484572669, 2923271059, 1783375398, 1517041206, 1098792767, 49674231, 1334037708, 1550332980, 4098991525, 886171109, 150598129, 2481090929, 1940642008, 1398944049, 1059722517, 201851908, 1385547719, 1699095331, 1587397571, 674240536, 2704774806, 252314885, 3039795866, 151914247, 908333586, 2602270848, 1038082786, 651029483, 1766729511, 3447698098, 2682942837, 454166793, 2652734339, 1951935532, 775166490, 758520603, 3000790638, 4004797018, 4217086112, 4137964114, 1299594043, 1639438038, 3464344499, 2068982057, 1054729187, 1901997871, 2534638724, 4121318227, 1757008337, 0, 750906861, 1614815264, 535035132, 3363418545, 3988151131, 3201591914, 1183697867, 3647454910, 1265776953, 3734260298, 3566750796, 3903871064, 1250283471, 1807470800, 717615087, 3847203498, 384695291, 3313910595, 3617213773, 1432761139, 2484176261, 3481945413, 283769337, 100925954, 2180939647, 4037038160, 1148730428, 3123027871, 3813386408, 4087501137, 4267549603, 3229630528, 2315620239, 2906624658, 3156319645, 1215313976, 82966005, 3747855548, 3245848246, 1974459098, 1665278241, 807407632, 451280895, 251524083, 1841287890, 1283575245, 337120268, 891687699, 801369324, 3787349855, 2721421207, 3431482436, 959321879, 1469301956, 4065699751, 2197585534, 1199193405, 2898814052, 3887750493, 724703513, 2514908019, 2696962144, 2551808385, 3516813135, 2141445340, 1715741218, 2119445034, 2872807568, 2198571144, 3398190662, 700968686, 3547052216, 1009259540, 2041044702, 3803995742, 487983883, 1991105499, 1004265696, 1449407026, 1316239930, 504629770, 3683797321, 168560134, 1816667172, 3837287516, 1570751170, 1857934291, 4014189740, 2797888098, 2822345105, 2754712981, 936633572, 2347923833, 852879335, 1133234376, 1500395319, 3084545389, 2348912013, 1689376213, 3533459022, 3762923945, 3034082412, 4205598294, 133428468, 634383082, 2949277029, 2398386810, 3913789102, 403703816, 3580869306, 2297460856, 1867130149, 1918643758, 607656988, 4049053350, 3346248884, 1368901318, 600565992, 2090982877, 2632479860, 557719327, 3717614411, 3697393085, 2249034635, 2232388234, 2430627952, 1115438654, 3295786421, 2865522278, 3633334344, 84280067, 33027830, 303828494, 2747425121, 1600795957, 4188952407, 3496589753, 2434238086, 1486471617, 658119965, 3106381470, 953803233, 334231800, 3005978776, 857870609, 3151128937, 1890179545, 2298973838, 2805175444, 3056442267, 574365214, 2450884487, 550103529, 1233637070, 4289353045, 2018519080, 2057691103, 2399374476, 4166623649, 2148108681, 387583245, 3664101311, 836232934, 3330556482, 3100665960, 3280093505, 2955516313, 2002398509, 287182607, 3413881008, 4238890068, 3597515707, 975967766],
  29425. ln = [1671808611, 2089089148, 2006576759, 2072901243, 4061003762, 1807603307, 1873927791, 3310653893, 810573872, 16974337, 1739181671, 729634347, 4263110654, 3613570519, 2883997099, 1989864566, 3393556426, 2191335298, 3376449993, 2106063485, 4195741690, 1508618841, 1204391495, 4027317232, 2917941677, 3563566036, 2734514082, 2951366063, 2629772188, 2767672228, 1922491506, 3227229120, 3082974647, 4246528509, 2477669779, 644500518, 911895606, 1061256767, 4144166391, 3427763148, 878471220, 2784252325, 3845444069, 4043897329, 1905517169, 3631459288, 827548209, 356461077, 67897348, 3344078279, 593839651, 3277757891, 405286936, 2527147926, 84871685, 2595565466, 118033927, 305538066, 2157648768, 3795705826, 3945188843, 661212711, 2999812018, 1973414517, 152769033, 2208177539, 745822252, 439235610, 455947803, 1857215598, 1525593178, 2700827552, 1391895634, 994932283, 3596728278, 3016654259, 695947817, 3812548067, 795958831, 2224493444, 1408607827, 3513301457, 0, 3979133421, 543178784, 4229948412, 2982705585, 1542305371, 1790891114, 3410398667, 3201918910, 961245753, 1256100938, 1289001036, 1491644504, 3477767631, 3496721360, 4012557807, 2867154858, 4212583931, 1137018435, 1305975373, 861234739, 2241073541, 1171229253, 4178635257, 33948674, 2139225727, 1357946960, 1011120188, 2679776671, 2833468328, 1374921297, 2751356323, 1086357568, 2408187279, 2460827538, 2646352285, 944271416, 4110742005, 3168756668, 3066132406, 3665145818, 560153121, 271589392, 4279952895, 4077846003, 3530407890, 3444343245, 202643468, 322250259, 3962553324, 1608629855, 2543990167, 1154254916, 389623319, 3294073796, 2817676711, 2122513534, 1028094525, 1689045092, 1575467613, 422261273, 1939203699, 1621147744, 2174228865, 1339137615, 3699352540, 577127458, 712922154, 2427141008, 2290289544, 1187679302, 3995715566, 3100863416, 339486740, 3732514782, 1591917662, 186455563, 3681988059, 3762019296, 844522546, 978220090, 169743370, 1239126601, 101321734, 611076132, 1558493276, 3260915650, 3547250131, 2901361580, 1655096418, 2443721105, 2510565781, 3828863972, 2039214713, 3878868455, 3359869896, 928607799, 1840765549, 2374762893, 3580146133, 1322425422, 2850048425, 1823791212, 1459268694, 4094161908, 3928346602, 1706019429, 2056189050, 2934523822, 135794696, 3134549946, 2022240376, 628050469, 779246638, 472135708, 2800834470, 3032970164, 3327236038, 3894660072, 3715932637, 1956440180, 522272287, 1272813131, 3185336765, 2340818315, 2323976074, 1888542832, 1044544574, 3049550261, 1722469478, 1222152264, 50660867, 4127324150, 236067854, 1638122081, 895445557, 1475980887, 3117443513, 2257655686, 3243809217, 489110045, 2662934430, 3778599393, 4162055160, 2561878936, 288563729, 1773916777, 3648039385, 2391345038, 2493985684, 2612407707, 505560094, 2274497927, 3911240169, 3460925390, 1442818645, 678973480, 3749357023, 2358182796, 2717407649, 2306869641, 219617805, 3218761151, 3862026214, 1120306242, 1756942440, 1103331905, 2578459033, 762796589, 252780047, 2966125488, 1425844308, 3151392187, 372911126],
  29426. hn = [1667474886, 2088535288, 2004326894, 2071694838, 4075949567, 1802223062, 1869591006, 3318043793, 808472672, 16843522, 1734846926, 724270422, 4278065639, 3621216949, 2880169549, 1987484396, 3402253711, 2189597983, 3385409673, 2105378810, 4210693615, 1499065266, 1195886990, 4042263547, 2913856577, 3570689971, 2728590687, 2947541573, 2627518243, 2762274643, 1920112356, 3233831835, 3082273397, 4261223649, 2475929149, 640051788, 909531756, 1061110142, 4160160501, 3435941763, 875846760, 2779116625, 3857003729, 4059105529, 1903268834, 3638064043, 825316194, 353713962, 67374088, 3351728789, 589522246, 3284360861, 404236336, 2526454071, 84217610, 2593830191, 117901582, 303183396, 2155911963, 3806477791, 3958056653, 656894286, 2998062463, 1970642922, 151591698, 2206440989, 741110872, 437923380, 454765878, 1852748508, 1515908788, 2694904667, 1381168804, 993742198, 3604373943, 3014905469, 690584402, 3823320797, 791638366, 2223281939, 1398011302, 3520161977, 0, 3991743681, 538992704, 4244381667, 2981218425, 1532751286, 1785380564, 3419096717, 3200178535, 960056178, 1246420628, 1280103576, 1482221744, 3486468741, 3503319995, 4025428677, 2863326543, 4227536621, 1128514950, 1296947098, 859002214, 2240123921, 1162203018, 4193849577, 33687044, 2139062782, 1347481760, 1010582648, 2678045221, 2829640523, 1364325282, 2745433693, 1077985408, 2408548869, 2459086143, 2644360225, 943212656, 4126475505, 3166494563, 3065430391, 3671750063, 555836226, 269496352, 4294908645, 4092792573, 3537006015, 3452783745, 202118168, 320025894, 3974901699, 1600119230, 2543297077, 1145359496, 387397934, 3301201811, 2812801621, 2122220284, 1027426170, 1684319432, 1566435258, 421079858, 1936954854, 1616945344, 2172753945, 1330631070, 3705438115, 572679748, 707427924, 2425400123, 2290647819, 1179044492, 4008585671, 3099120491, 336870440, 3739122087, 1583276732, 185277718, 3688593069, 3772791771, 842159716, 976899700, 168435220, 1229577106, 101059084, 606366792, 1549591736, 3267517855, 3553849021, 2897014595, 1650632388, 2442242105, 2509612081, 3840161747, 2038008818, 3890688725, 3368567691, 926374254, 1835907034, 2374863873, 3587531953, 1313788572, 2846482505, 1819063512, 1448540844, 4109633523, 3941213647, 1701162954, 2054852340, 2930698567, 134748176, 3132806511, 2021165296, 623210314, 774795868, 471606328, 2795958615, 3031746419, 3334885783, 3907527627, 3722280097, 1953799400, 522133822, 1263263126, 3183336545, 2341176845, 2324333839, 1886425312, 1044267644, 3048588401, 1718004428, 1212733584, 50529542, 4143317495, 235803164, 1633788866, 892690282, 1465383342, 3115962473, 2256965911, 3250673817, 488449850, 2661202215, 3789633753, 4177007595, 2560144171, 286339874, 1768537042, 3654906025, 2391705863, 2492770099, 2610673197, 505291324, 2273808917, 3924369609, 3469625735, 1431699370, 673740880, 3755965093, 2358021891, 2711746649, 2307489801, 218961690, 3217021541, 3873845719, 1111672452, 1751693520, 1094828930, 2576986153, 757954394, 252645662, 2964376443, 1414855848, 3149649517, 370555436],
  29427. dn = [1374988112, 2118214995, 437757123, 975658646, 1001089995, 530400753, 2902087851, 1273168787, 540080725, 2910219766, 2295101073, 4110568485, 1340463100, 3307916247, 641025152, 3043140495, 3736164937, 632953703, 1172967064, 1576976609, 3274667266, 2169303058, 2370213795, 1809054150, 59727847, 361929877, 3211623147, 2505202138, 3569255213, 1484005843, 1239443753, 2395588676, 1975683434, 4102977912, 2572697195, 666464733, 3202437046, 4035489047, 3374361702, 2110667444, 1675577880, 3843699074, 2538681184, 1649639237, 2976151520, 3144396420, 4269907996, 4178062228, 1883793496, 2403728665, 2497604743, 1383856311, 2876494627, 1917518562, 3810496343, 1716890410, 3001755655, 800440835, 2261089178, 3543599269, 807962610, 599762354, 33778362, 3977675356, 2328828971, 2809771154, 4077384432, 1315562145, 1708848333, 101039829, 3509871135, 3299278474, 875451293, 2733856160, 92987698, 2767645557, 193195065, 1080094634, 1584504582, 3178106961, 1042385657, 2531067453, 3711829422, 1306967366, 2438237621, 1908694277, 67556463, 1615861247, 429456164, 3602770327, 2302690252, 1742315127, 2968011453, 126454664, 3877198648, 2043211483, 2709260871, 2084704233, 4169408201, 0, 159417987, 841739592, 504459436, 1817866830, 4245618683, 260388950, 1034867998, 908933415, 168810852, 1750902305, 2606453969, 607530554, 202008497, 2472011535, 3035535058, 463180190, 2160117071, 1641816226, 1517767529, 470948374, 3801332234, 3231722213, 1008918595, 303765277, 235474187, 4069246893, 766945465, 337553864, 1475418501, 2943682380, 4003061179, 2743034109, 4144047775, 1551037884, 1147550661, 1543208500, 2336434550, 3408119516, 3069049960, 3102011747, 3610369226, 1113818384, 328671808, 2227573024, 2236228733, 3535486456, 2935566865, 3341394285, 496906059, 3702665459, 226906860, 2009195472, 733156972, 2842737049, 294930682, 1206477858, 2835123396, 2700099354, 1451044056, 573804783, 2269728455, 3644379585, 2362090238, 2564033334, 2801107407, 2776292904, 3669462566, 1068351396, 742039012, 1350078989, 1784663195, 1417561698, 4136440770, 2430122216, 775550814, 2193862645, 2673705150, 1775276924, 1876241833, 3475313331, 3366754619, 270040487, 3902563182, 3678124923, 3441850377, 1851332852, 3969562369, 2203032232, 3868552805, 2868897406, 566021896, 4011190502, 3135740889, 1248802510, 3936291284, 699432150, 832877231, 708780849, 3332740144, 899835584, 1951317047, 4236429990, 3767586992, 866637845, 4043610186, 1106041591, 2144161806, 395441711, 1984812685, 1139781709, 3433712980, 3835036895, 2664543715, 1282050075, 3240894392, 1181045119, 2640243204, 25965917, 4203181171, 4211818798, 3009879386, 2463879762, 3910161971, 1842759443, 2597806476, 933301370, 1509430414, 3943906441, 3467192302, 3076639029, 3776767469, 2051518780, 2631065433, 1441952575, 404016761, 1942435775, 1408749034, 1610459739, 3745345300, 2017778566, 3400528769, 3110650942, 941896748, 3265478751, 371049330, 3168937228, 675039627, 4279080257, 967311729, 135050206, 3635733660, 1683407248, 2076935265, 3576870512, 1215061108, 3501741890],
  29428. pn = [1347548327, 1400783205, 3273267108, 2520393566, 3409685355, 4045380933, 2880240216, 2471224067, 1428173050, 4138563181, 2441661558, 636813900, 4233094615, 3620022987, 2149987652, 2411029155, 1239331162, 1730525723, 2554718734, 3781033664, 46346101, 310463728, 2743944855, 3328955385, 3875770207, 2501218972, 3955191162, 3667219033, 768917123, 3545789473, 692707433, 1150208456, 1786102409, 2029293177, 1805211710, 3710368113, 3065962831, 401639597, 1724457132, 3028143674, 409198410, 2196052529, 1620529459, 1164071807, 3769721975, 2226875310, 486441376, 2499348523, 1483753576, 428819965, 2274680428, 3075636216, 598438867, 3799141122, 1474502543, 711349675, 129166120, 53458370, 2592523643, 2782082824, 4063242375, 2988687269, 3120694122, 1559041666, 730517276, 2460449204, 4042459122, 2706270690, 3446004468, 3573941694, 533804130, 2328143614, 2637442643, 2695033685, 839224033, 1973745387, 957055980, 2856345839, 106852767, 1371368976, 4181598602, 1033297158, 2933734917, 1179510461, 3046200461, 91341917, 1862534868, 4284502037, 605657339, 2547432937, 3431546947, 2003294622, 3182487618, 2282195339, 954669403, 3682191598, 1201765386, 3917234703, 3388507166, 0, 2198438022, 1211247597, 2887651696, 1315723890, 4227665663, 1443857720, 507358933, 657861945, 1678381017, 560487590, 3516619604, 975451694, 2970356327, 261314535, 3535072918, 2652609425, 1333838021, 2724322336, 1767536459, 370938394, 182621114, 3854606378, 1128014560, 487725847, 185469197, 2918353863, 3106780840, 3356761769, 2237133081, 1286567175, 3152976349, 4255350624, 2683765030, 3160175349, 3309594171, 878443390, 1988838185, 3704300486, 1756818940, 1673061617, 3403100636, 272786309, 1075025698, 545572369, 2105887268, 4174560061, 296679730, 1841768865, 1260232239, 4091327024, 3960309330, 3497509347, 1814803222, 2578018489, 4195456072, 575138148, 3299409036, 446754879, 3629546796, 4011996048, 3347532110, 3252238545, 4270639778, 915985419, 3483825537, 681933534, 651868046, 2755636671, 3828103837, 223377554, 2607439820, 1649704518, 3270937875, 3901806776, 1580087799, 4118987695, 3198115200, 2087309459, 2842678573, 3016697106, 1003007129, 2802849917, 1860738147, 2077965243, 164439672, 4100872472, 32283319, 2827177882, 1709610350, 2125135846, 136428751, 3874428392, 3652904859, 3460984630, 3572145929, 3593056380, 2939266226, 824852259, 818324884, 3224740454, 930369212, 2801566410, 2967507152, 355706840, 1257309336, 4148292826, 243256656, 790073846, 2373340630, 1296297904, 1422699085, 3756299780, 3818836405, 457992840, 3099667487, 2135319889, 77422314, 1560382517, 1945798516, 788204353, 1521706781, 1385356242, 870912086, 325965383, 2358957921, 2050466060, 2388260884, 2313884476, 4006521127, 901210569, 3990953189, 1014646705, 1503449823, 1062597235, 2031621326, 3212035895, 3931371469, 1533017514, 350174575, 2256028891, 2177544179, 1052338372, 741876788, 1606591296, 1914052035, 213705253, 2334669897, 1107234197, 1899603969, 3725069491, 2631447780, 2422494913, 1635502980, 1893020342, 1950903388, 1120974935],
  29429. fn = [2807058932, 1699970625, 2764249623, 1586903591, 1808481195, 1173430173, 1487645946, 59984867, 4199882800, 1844882806, 1989249228, 1277555970, 3623636965, 3419915562, 1149249077, 2744104290, 1514790577, 459744698, 244860394, 3235995134, 1963115311, 4027744588, 2544078150, 4190530515, 1608975247, 2627016082, 2062270317, 1507497298, 2200818878, 567498868, 1764313568, 3359936201, 2305455554, 2037970062, 1047239e3, 1910319033, 1337376481, 2904027272, 2892417312, 984907214, 1243112415, 830661914, 861968209, 2135253587, 2011214180, 2927934315, 2686254721, 731183368, 1750626376, 4246310725, 1820824798, 4172763771, 3542330227, 48394827, 2404901663, 2871682645, 671593195, 3254988725, 2073724613, 145085239, 2280796200, 2779915199, 1790575107, 2187128086, 472615631, 3029510009, 4075877127, 3802222185, 4107101658, 3201631749, 1646252340, 4270507174, 1402811438, 1436590835, 3778151818, 3950355702, 3963161475, 4020912224, 2667994737, 273792366, 2331590177, 104699613, 95345982, 3175501286, 2377486676, 1560637892, 3564045318, 369057872, 4213447064, 3919042237, 1137477952, 2658625497, 1119727848, 2340947849, 1530455833, 4007360968, 172466556, 266959938, 516552836, 0, 2256734592, 3980931627, 1890328081, 1917742170, 4294704398, 945164165, 3575528878, 958871085, 3647212047, 2787207260, 1423022939, 775562294, 1739656202, 3876557655, 2530391278, 2443058075, 3310321856, 547512796, 1265195639, 437656594, 3121275539, 719700128, 3762502690, 387781147, 218828297, 3350065803, 2830708150, 2848461854, 428169201, 122466165, 3720081049, 1627235199, 648017665, 4122762354, 1002783846, 2117360635, 695634755, 3336358691, 4234721005, 4049844452, 3704280881, 2232435299, 574624663, 287343814, 612205898, 1039717051, 840019705, 2708326185, 793451934, 821288114, 1391201670, 3822090177, 376187827, 3113855344, 1224348052, 1679968233, 2361698556, 1058709744, 752375421, 2431590963, 1321699145, 3519142200, 2734591178, 188127444, 2177869557, 3727205754, 2384911031, 3215212461, 2648976442, 2450346104, 3432737375, 1180849278, 331544205, 3102249176, 4150144569, 2952102595, 2159976285, 2474404304, 766078933, 313773861, 2570832044, 2108100632, 1668212892, 3145456443, 2013908262, 418672217, 3070356634, 2594734927, 1852171925, 3867060991, 3473416636, 3907448597, 2614737639, 919489135, 164948639, 2094410160, 2997825956, 590424639, 2486224549, 1723872674, 3157750862, 3399941250, 3501252752, 3625268135, 2555048196, 3673637356, 1343127501, 4130281361, 3599595085, 2957853679, 1297403050, 81781910, 3051593425, 2283490410, 532201772, 1367295589, 3926170974, 895287692, 1953757831, 1093597963, 492483431, 3528626907, 1446242576, 1192455638, 1636604631, 209336225, 344873464, 1015671571, 669961897, 3375740769, 3857572124, 2973530695, 3747192018, 1933530610, 3464042516, 935293895, 3454686199, 2858115069, 1863638845, 3683022916, 4085369519, 3292445032, 875313188, 1080017571, 3279033885, 621591778, 1233856572, 2504130317, 24197544, 3017672716, 3835484340, 3247465558, 2220981195, 3060847922, 1551124588, 1463996600],
  29430. gn = [4104605777, 1097159550, 396673818, 660510266, 2875968315, 2638606623, 4200115116, 3808662347, 821712160, 1986918061, 3430322568, 38544885, 3856137295, 718002117, 893681702, 1654886325, 2975484382, 3122358053, 3926825029, 4274053469, 796197571, 1290801793, 1184342925, 3556361835, 2405426947, 2459735317, 1836772287, 1381620373, 3196267988, 1948373848, 3764988233, 3385345166, 3263785589, 2390325492, 1480485785, 3111247143, 3780097726, 2293045232, 548169417, 3459953789, 3746175075, 439452389, 1362321559, 1400849762, 1685577905, 1806599355, 2174754046, 137073913, 1214797936, 1174215055, 3731654548, 2079897426, 1943217067, 1258480242, 529487843, 1437280870, 3945269170, 3049390895, 3313212038, 923313619, 679998e3, 3215307299, 57326082, 377642221, 3474729866, 2041877159, 133361907, 1776460110, 3673476453, 96392454, 878845905, 2801699524, 777231668, 4082475170, 2330014213, 4142626212, 2213296395, 1626319424, 1906247262, 1846563261, 562755902, 3708173718, 1040559837, 3871163981, 1418573201, 3294430577, 114585348, 1343618912, 2566595609, 3186202582, 1078185097, 3651041127, 3896688048, 2307622919, 425408743, 3371096953, 2081048481, 1108339068, 2216610296, 0, 2156299017, 736970802, 292596766, 1517440620, 251657213, 2235061775, 2933202493, 758720310, 265905162, 1554391400, 1532285339, 908999204, 174567692, 1474760595, 4002861748, 2610011675, 3234156416, 3693126241, 2001430874, 303699484, 2478443234, 2687165888, 585122620, 454499602, 151849742, 2345119218, 3064510765, 514443284, 4044981591, 1963412655, 2581445614, 2137062819, 19308535, 1928707164, 1715193156, 4219352155, 1126790795, 600235211, 3992742070, 3841024952, 836553431, 1669664834, 2535604243, 3323011204, 1243905413, 3141400786, 4180808110, 698445255, 2653899549, 2989552604, 2253581325, 3252932727, 3004591147, 1891211689, 2487810577, 3915653703, 4237083816, 4030667424, 2100090966, 865136418, 1229899655, 953270745, 3399679628, 3557504664, 4118925222, 2061379749, 3079546586, 2915017791, 983426092, 2022837584, 1607244650, 2118541908, 2366882550, 3635996816, 972512814, 3283088770, 1568718495, 3499326569, 3576539503, 621982671, 2895723464, 410887952, 2623762152, 1002142683, 645401037, 1494807662, 2595684844, 1335535747, 2507040230, 4293295786, 3167684641, 367585007, 3885750714, 1865862730, 2668221674, 2960971305, 2763173681, 1059270954, 2777952454, 2724642869, 1320957812, 2194319100, 2429595872, 2815956275, 77089521, 3973773121, 3444575871, 2448830231, 1305906550, 4021308739, 2857194700, 2516901860, 3518358430, 1787304780, 740276417, 1699839814, 1592394909, 2352307457, 2272556026, 188821243, 1729977011, 3687994002, 274084841, 3594982253, 3613494426, 2701949495, 4162096729, 322734571, 2837966542, 1640576439, 484830689, 1202797690, 3537852828, 4067639125, 349075736, 3342319475, 4157467219, 4255800159, 1030690015, 1155237496, 2951971274, 1757691577, 607398968, 2738905026, 499347990, 3794078908, 1011452712, 227885567, 2818666809, 213114376, 3034881240, 1455525988, 3414450555, 850817237, 1817998408, 3092726480],
  29431. mn = [0, 235474187, 470948374, 303765277, 941896748, 908933415, 607530554, 708780849, 1883793496, 2118214995, 1817866830, 1649639237, 1215061108, 1181045119, 1417561698, 1517767529, 3767586992, 4003061179, 4236429990, 4069246893, 3635733660, 3602770327, 3299278474, 3400528769, 2430122216, 2664543715, 2362090238, 2193862645, 2835123396, 2801107407, 3035535058, 3135740889, 3678124923, 3576870512, 3341394285, 3374361702, 3810496343, 3977675356, 4279080257, 4043610186, 2876494627, 2776292904, 3076639029, 3110650942, 2472011535, 2640243204, 2403728665, 2169303058, 1001089995, 899835584, 666464733, 699432150, 59727847, 226906860, 530400753, 294930682, 1273168787, 1172967064, 1475418501, 1509430414, 1942435775, 2110667444, 1876241833, 1641816226, 2910219766, 2743034109, 2976151520, 3211623147, 2505202138, 2606453969, 2302690252, 2269728455, 3711829422, 3543599269, 3240894392, 3475313331, 3843699074, 3943906441, 4178062228, 4144047775, 1306967366, 1139781709, 1374988112, 1610459739, 1975683434, 2076935265, 1775276924, 1742315127, 1034867998, 866637845, 566021896, 800440835, 92987698, 193195065, 429456164, 395441711, 1984812685, 2017778566, 1784663195, 1683407248, 1315562145, 1080094634, 1383856311, 1551037884, 101039829, 135050206, 437757123, 337553864, 1042385657, 807962610, 573804783, 742039012, 2531067453, 2564033334, 2328828971, 2227573024, 2935566865, 2700099354, 3001755655, 3168937228, 3868552805, 3902563182, 4203181171, 4102977912, 3736164937, 3501741890, 3265478751, 3433712980, 1106041591, 1340463100, 1576976609, 1408749034, 2043211483, 2009195472, 1708848333, 1809054150, 832877231, 1068351396, 766945465, 599762354, 159417987, 126454664, 361929877, 463180190, 2709260871, 2943682380, 3178106961, 3009879386, 2572697195, 2538681184, 2236228733, 2336434550, 3509871135, 3745345300, 3441850377, 3274667266, 3910161971, 3877198648, 4110568485, 4211818798, 2597806476, 2497604743, 2261089178, 2295101073, 2733856160, 2902087851, 3202437046, 2968011453, 3936291284, 3835036895, 4136440770, 4169408201, 3535486456, 3702665459, 3467192302, 3231722213, 2051518780, 1951317047, 1716890410, 1750902305, 1113818384, 1282050075, 1584504582, 1350078989, 168810852, 67556463, 371049330, 404016761, 841739592, 1008918595, 775550814, 540080725, 3969562369, 3801332234, 4035489047, 4269907996, 3569255213, 3669462566, 3366754619, 3332740144, 2631065433, 2463879762, 2160117071, 2395588676, 2767645557, 2868897406, 3102011747, 3069049960, 202008497, 33778362, 270040487, 504459436, 875451293, 975658646, 675039627, 641025152, 2084704233, 1917518562, 1615861247, 1851332852, 1147550661, 1248802510, 1484005843, 1451044056, 933301370, 967311729, 733156972, 632953703, 260388950, 25965917, 328671808, 496906059, 1206477858, 1239443753, 1543208500, 1441952575, 2144161806, 1908694277, 1675577880, 1842759443, 3610369226, 3644379585, 3408119516, 3307916247, 4011190502, 3776767469, 4077384432, 4245618683, 2809771154, 2842737049, 3144396420, 3043140495, 2673705150, 2438237621, 2203032232, 2370213795],
  29432. yn = [0, 185469197, 370938394, 487725847, 741876788, 657861945, 975451694, 824852259, 1483753576, 1400783205, 1315723890, 1164071807, 1950903388, 2135319889, 1649704518, 1767536459, 2967507152, 3152976349, 2801566410, 2918353863, 2631447780, 2547432937, 2328143614, 2177544179, 3901806776, 3818836405, 4270639778, 4118987695, 3299409036, 3483825537, 3535072918, 3652904859, 2077965243, 1893020342, 1841768865, 1724457132, 1474502543, 1559041666, 1107234197, 1257309336, 598438867, 681933534, 901210569, 1052338372, 261314535, 77422314, 428819965, 310463728, 3409685355, 3224740454, 3710368113, 3593056380, 3875770207, 3960309330, 4045380933, 4195456072, 2471224067, 2554718734, 2237133081, 2388260884, 3212035895, 3028143674, 2842678573, 2724322336, 4138563181, 4255350624, 3769721975, 3955191162, 3667219033, 3516619604, 3431546947, 3347532110, 2933734917, 2782082824, 3099667487, 3016697106, 2196052529, 2313884476, 2499348523, 2683765030, 1179510461, 1296297904, 1347548327, 1533017514, 1786102409, 1635502980, 2087309459, 2003294622, 507358933, 355706840, 136428751, 53458370, 839224033, 957055980, 605657339, 790073846, 2373340630, 2256028891, 2607439820, 2422494913, 2706270690, 2856345839, 3075636216, 3160175349, 3573941694, 3725069491, 3273267108, 3356761769, 4181598602, 4063242375, 4011996048, 3828103837, 1033297158, 915985419, 730517276, 545572369, 296679730, 446754879, 129166120, 213705253, 1709610350, 1860738147, 1945798516, 2029293177, 1239331162, 1120974935, 1606591296, 1422699085, 4148292826, 4233094615, 3781033664, 3931371469, 3682191598, 3497509347, 3446004468, 3328955385, 2939266226, 2755636671, 3106780840, 2988687269, 2198438022, 2282195339, 2501218972, 2652609425, 1201765386, 1286567175, 1371368976, 1521706781, 1805211710, 1620529459, 2105887268, 1988838185, 533804130, 350174575, 164439672, 46346101, 870912086, 954669403, 636813900, 788204353, 2358957921, 2274680428, 2592523643, 2441661558, 2695033685, 2880240216, 3065962831, 3182487618, 3572145929, 3756299780, 3270937875, 3388507166, 4174560061, 4091327024, 4006521127, 3854606378, 1014646705, 930369212, 711349675, 560487590, 272786309, 457992840, 106852767, 223377554, 1678381017, 1862534868, 1914052035, 2031621326, 1211247597, 1128014560, 1580087799, 1428173050, 32283319, 182621114, 401639597, 486441376, 768917123, 651868046, 1003007129, 818324884, 1503449823, 1385356242, 1333838021, 1150208456, 1973745387, 2125135846, 1673061617, 1756818940, 2970356327, 3120694122, 2802849917, 2887651696, 2637442643, 2520393566, 2334669897, 2149987652, 3917234703, 3799141122, 4284502037, 4100872472, 3309594171, 3460984630, 3545789473, 3629546796, 2050466060, 1899603969, 1814803222, 1730525723, 1443857720, 1560382517, 1075025698, 1260232239, 575138148, 692707433, 878443390, 1062597235, 243256656, 91341917, 409198410, 325965383, 3403100636, 3252238545, 3704300486, 3620022987, 3874428392, 3990953189, 4042459122, 4227665663, 2460449204, 2578018489, 2226875310, 2411029155, 3198115200, 3046200461, 2827177882, 2743944855],
  29433. _n = [0, 218828297, 437656594, 387781147, 875313188, 958871085, 775562294, 590424639, 1750626376, 1699970625, 1917742170, 2135253587, 1551124588, 1367295589, 1180849278, 1265195639, 3501252752, 3720081049, 3399941250, 3350065803, 3835484340, 3919042237, 4270507174, 4085369519, 3102249176, 3051593425, 2734591178, 2952102595, 2361698556, 2177869557, 2530391278, 2614737639, 3145456443, 3060847922, 2708326185, 2892417312, 2404901663, 2187128086, 2504130317, 2555048196, 3542330227, 3727205754, 3375740769, 3292445032, 3876557655, 3926170974, 4246310725, 4027744588, 1808481195, 1723872674, 1910319033, 2094410160, 1608975247, 1391201670, 1173430173, 1224348052, 59984867, 244860394, 428169201, 344873464, 935293895, 984907214, 766078933, 547512796, 1844882806, 1627235199, 2011214180, 2062270317, 1507497298, 1423022939, 1137477952, 1321699145, 95345982, 145085239, 532201772, 313773861, 830661914, 1015671571, 731183368, 648017665, 3175501286, 2957853679, 2807058932, 2858115069, 2305455554, 2220981195, 2474404304, 2658625497, 3575528878, 3625268135, 3473416636, 3254988725, 3778151818, 3963161475, 4213447064, 4130281361, 3599595085, 3683022916, 3432737375, 3247465558, 3802222185, 4020912224, 4172763771, 4122762354, 3201631749, 3017672716, 2764249623, 2848461854, 2331590177, 2280796200, 2431590963, 2648976442, 104699613, 188127444, 472615631, 287343814, 840019705, 1058709744, 671593195, 621591778, 1852171925, 1668212892, 1953757831, 2037970062, 1514790577, 1463996600, 1080017571, 1297403050, 3673637356, 3623636965, 3235995134, 3454686199, 4007360968, 3822090177, 4107101658, 4190530515, 2997825956, 3215212461, 2830708150, 2779915199, 2256734592, 2340947849, 2627016082, 2443058075, 172466556, 122466165, 273792366, 492483431, 1047239e3, 861968209, 612205898, 695634755, 1646252340, 1863638845, 2013908262, 1963115311, 1446242576, 1530455833, 1277555970, 1093597963, 1636604631, 1820824798, 2073724613, 1989249228, 1436590835, 1487645946, 1337376481, 1119727848, 164948639, 81781910, 331544205, 516552836, 1039717051, 821288114, 669961897, 719700128, 2973530695, 3157750862, 2871682645, 2787207260, 2232435299, 2283490410, 2667994737, 2450346104, 3647212047, 3564045318, 3279033885, 3464042516, 3980931627, 3762502690, 4150144569, 4199882800, 3070356634, 3121275539, 2904027272, 2686254721, 2200818878, 2384911031, 2570832044, 2486224549, 3747192018, 3528626907, 3310321856, 3359936201, 3950355702, 3867060991, 4049844452, 4234721005, 1739656202, 1790575107, 2108100632, 1890328081, 1402811438, 1586903591, 1233856572, 1149249077, 266959938, 48394827, 369057872, 418672217, 1002783846, 919489135, 567498868, 752375421, 209336225, 24197544, 376187827, 459744698, 945164165, 895287692, 574624663, 793451934, 1679968233, 1764313568, 2117360635, 1933530610, 1343127501, 1560637892, 1243112415, 1192455638, 3704280881, 3519142200, 3336358691, 3419915562, 3907448597, 3857572124, 4075877127, 4294704398, 3029510009, 3113855344, 2927934315, 2744104290, 2159976285, 2377486676, 2594734927, 2544078150],
  29434. wn = [0, 151849742, 303699484, 454499602, 607398968, 758720310, 908999204, 1059270954, 1214797936, 1097159550, 1517440620, 1400849762, 1817998408, 1699839814, 2118541908, 2001430874, 2429595872, 2581445614, 2194319100, 2345119218, 3034881240, 3186202582, 2801699524, 2951971274, 3635996816, 3518358430, 3399679628, 3283088770, 4237083816, 4118925222, 4002861748, 3885750714, 1002142683, 850817237, 698445255, 548169417, 529487843, 377642221, 227885567, 77089521, 1943217067, 2061379749, 1640576439, 1757691577, 1474760595, 1592394909, 1174215055, 1290801793, 2875968315, 2724642869, 3111247143, 2960971305, 2405426947, 2253581325, 2638606623, 2487810577, 3808662347, 3926825029, 4044981591, 4162096729, 3342319475, 3459953789, 3576539503, 3693126241, 1986918061, 2137062819, 1685577905, 1836772287, 1381620373, 1532285339, 1078185097, 1229899655, 1040559837, 923313619, 740276417, 621982671, 439452389, 322734571, 137073913, 19308535, 3871163981, 4021308739, 4104605777, 4255800159, 3263785589, 3414450555, 3499326569, 3651041127, 2933202493, 2815956275, 3167684641, 3049390895, 2330014213, 2213296395, 2566595609, 2448830231, 1305906550, 1155237496, 1607244650, 1455525988, 1776460110, 1626319424, 2079897426, 1928707164, 96392454, 213114376, 396673818, 514443284, 562755902, 679998e3, 865136418, 983426092, 3708173718, 3557504664, 3474729866, 3323011204, 4180808110, 4030667424, 3945269170, 3794078908, 2507040230, 2623762152, 2272556026, 2390325492, 2975484382, 3092726480, 2738905026, 2857194700, 3973773121, 3856137295, 4274053469, 4157467219, 3371096953, 3252932727, 3673476453, 3556361835, 2763173681, 2915017791, 3064510765, 3215307299, 2156299017, 2307622919, 2459735317, 2610011675, 2081048481, 1963412655, 1846563261, 1729977011, 1480485785, 1362321559, 1243905413, 1126790795, 878845905, 1030690015, 645401037, 796197571, 274084841, 425408743, 38544885, 188821243, 3613494426, 3731654548, 3313212038, 3430322568, 4082475170, 4200115116, 3780097726, 3896688048, 2668221674, 2516901860, 2366882550, 2216610296, 3141400786, 2989552604, 2837966542, 2687165888, 1202797690, 1320957812, 1437280870, 1554391400, 1669664834, 1787304780, 1906247262, 2022837584, 265905162, 114585348, 499347990, 349075736, 736970802, 585122620, 972512814, 821712160, 2595684844, 2478443234, 2293045232, 2174754046, 3196267988, 3079546586, 2895723464, 2777952454, 3537852828, 3687994002, 3234156416, 3385345166, 4142626212, 4293295786, 3841024952, 3992742070, 174567692, 57326082, 410887952, 292596766, 777231668, 660510266, 1011452712, 893681702, 1108339068, 1258480242, 1343618912, 1494807662, 1715193156, 1865862730, 1948373848, 2100090966, 2701949495, 2818666809, 3004591147, 3122358053, 2235061775, 2352307457, 2535604243, 2653899549, 3915653703, 3764988233, 4219352155, 4067639125, 3444575871, 3294430577, 3746175075, 3594982253, 836553431, 953270745, 600235211, 718002117, 367585007, 484830689, 133361907, 251657213, 2041877159, 1891211689, 1806599355, 1654886325, 1568718495, 1418573201, 1335535747, 1184342925];
  29435. function vn(e) {
  29436. for (var t = [], n = 0; n < e.length; n += 4) {
  29437. t.push(e[n] << 24 | e[n + 1] << 16 | e[n + 2] << 8 | e[n + 3]);
  29438. }
  29439. return t;
  29440. }
  29441. var In = /*#__PURE__*/function () {
  29442. function In(e) {
  29443. (0, _classCallCheck2.default)(this, In);
  29444. if (!(this instanceof In)) throw Error("AES must be instanitated with `new`");
  29445. Object.defineProperty(this, "key", {
  29446. value: Qt(e, !0)
  29447. }), this._prepare();
  29448. }
  29449. (0, _createClass2.default)(In, [{
  29450. key: "_prepare",
  29451. value: function _prepare() {
  29452. var e = sn[this.key.length];
  29453. if (null == e) throw new Error("invalid key size (must be 16, 24 or 32 bytes)");
  29454. this._Ke = [], this._Kd = [];
  29455. for (var t = 0; t <= e; t++) {
  29456. this._Ke.push([0, 0, 0, 0]), this._Kd.push([0, 0, 0, 0]);
  29457. }
  29458. var n,
  29459. s = 4 * (e + 1),
  29460. r = this.key.length / 4,
  29461. i = vn(this.key);
  29462. for (t = 0; t < r; t++) {
  29463. n = t >> 2, this._Ke[n][t % 4] = i[t], this._Kd[e - n][t % 4] = i[t];
  29464. }
  29465. for (var o, a = 0, c = r; c < s;) {
  29466. if (o = i[r - 1], i[0] ^= on[o >> 16 & 255] << 24 ^ on[o >> 8 & 255] << 16 ^ on[255 & o] << 8 ^ on[o >> 24 & 255] ^ rn[a] << 24, a += 1, 8 != r) for (t = 1; t < r; t++) {
  29467. i[t] ^= i[t - 1];
  29468. } else {
  29469. for (t = 1; t < r / 2; t++) {
  29470. i[t] ^= i[t - 1];
  29471. }
  29472. o = i[r / 2 - 1], i[r / 2] ^= on[255 & o] ^ on[o >> 8 & 255] << 8 ^ on[o >> 16 & 255] << 16 ^ on[o >> 24 & 255] << 24;
  29473. for (t = r / 2 + 1; t < r; t++) {
  29474. i[t] ^= i[t - 1];
  29475. }
  29476. }
  29477. for (t = 0; t < r && c < s;) {
  29478. u = c >> 2, l = c % 4, this._Ke[u][l] = i[t], this._Kd[e - u][l] = i[t++], c++;
  29479. }
  29480. }
  29481. for (var u = 1; u < e; u++) {
  29482. for (var l = 0; l < 4; l++) {
  29483. o = this._Kd[u][l], this._Kd[u][l] = mn[o >> 24 & 255] ^ yn[o >> 16 & 255] ^ _n[o >> 8 & 255] ^ wn[255 & o];
  29484. }
  29485. }
  29486. }
  29487. }, {
  29488. key: "encrypt",
  29489. value: function encrypt(e) {
  29490. if (16 != e.length) throw new Error("invalid plaintext size (must be 16 bytes)");
  29491. for (var t = this._Ke.length - 1, n = [0, 0, 0, 0], s = vn(e), r = 0; r < 4; r++) {
  29492. s[r] ^= this._Ke[0][r];
  29493. }
  29494. for (var i = 1; i < t; i++) {
  29495. for (r = 0; r < 4; r++) {
  29496. n[r] = cn[s[r] >> 24 & 255] ^ un[s[(r + 1) % 4] >> 16 & 255] ^ ln[s[(r + 2) % 4] >> 8 & 255] ^ hn[255 & s[(r + 3) % 4]] ^ this._Ke[i][r];
  29497. }
  29498. s = n.slice();
  29499. }
  29500. var o,
  29501. a = Xt(16);
  29502. for (r = 0; r < 4; r++) {
  29503. o = this._Ke[t][r], a[4 * r] = 255 & (on[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (on[s[(r + 1) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (on[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (on[255 & s[(r + 3) % 4]] ^ o);
  29504. }
  29505. return a;
  29506. }
  29507. }, {
  29508. key: "decrypt",
  29509. value: function decrypt(e) {
  29510. if (16 != e.length) throw new Error("invalid ciphertext size (must be 16 bytes)");
  29511. for (var t = this._Kd.length - 1, n = [0, 0, 0, 0], s = vn(e), r = 0; r < 4; r++) {
  29512. s[r] ^= this._Kd[0][r];
  29513. }
  29514. for (var i = 1; i < t; i++) {
  29515. for (r = 0; r < 4; r++) {
  29516. n[r] = dn[s[r] >> 24 & 255] ^ pn[s[(r + 3) % 4] >> 16 & 255] ^ fn[s[(r + 2) % 4] >> 8 & 255] ^ gn[255 & s[(r + 1) % 4]] ^ this._Kd[i][r];
  29517. }
  29518. s = n.slice();
  29519. }
  29520. var o,
  29521. a = Xt(16);
  29522. for (r = 0; r < 4; r++) {
  29523. o = this._Kd[t][r], a[4 * r] = 255 & (an[s[r] >> 24 & 255] ^ o >> 24), a[4 * r + 1] = 255 & (an[s[(r + 3) % 4] >> 16 & 255] ^ o >> 16), a[4 * r + 2] = 255 & (an[s[(r + 2) % 4] >> 8 & 255] ^ o >> 8), a[4 * r + 3] = 255 & (an[255 & s[(r + 1) % 4]] ^ o);
  29524. }
  29525. return a;
  29526. }
  29527. }]);
  29528. return In;
  29529. }();
  29530. var Sn = /*#__PURE__*/function () {
  29531. function Sn(e) {
  29532. (0, _classCallCheck2.default)(this, Sn);
  29533. if (!(this instanceof Sn)) throw Error("AES must be instanitated with `new`");
  29534. this.description = "Electronic Code Block", this.name = "ecb", this._aes = new In(e);
  29535. }
  29536. (0, _createClass2.default)(Sn, [{
  29537. key: "encrypt",
  29538. value: function encrypt(e) {
  29539. if ((e = Qt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  29540. for (var t = Xt(e.length), n = Xt(16), s = 0; s < e.length; s += 16) {
  29541. Zt(e, n, 0, s, s + 16), Zt(n = this._aes.encrypt(n), t, s);
  29542. }
  29543. return t;
  29544. }
  29545. }, {
  29546. key: "decrypt",
  29547. value: function decrypt(e) {
  29548. if ((e = Qt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  29549. for (var t = Xt(e.length), n = Xt(16), s = 0; s < e.length; s += 16) {
  29550. Zt(e, n, 0, s, s + 16), Zt(n = this._aes.decrypt(n), t, s);
  29551. }
  29552. return t;
  29553. }
  29554. }]);
  29555. return Sn;
  29556. }();
  29557. var bn = /*#__PURE__*/function () {
  29558. function bn(e, t) {
  29559. (0, _classCallCheck2.default)(this, bn);
  29560. if (!(this instanceof bn)) throw Error("AES must be instanitated with `new`");
  29561. if (this.description = "Cipher Block Chaining", this.name = "cbc", t) {
  29562. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  29563. } else t = Xt(16);
  29564. this._lastCipherblock = Qt(t, !0), this._aes = new In(e);
  29565. }
  29566. (0, _createClass2.default)(bn, [{
  29567. key: "encrypt",
  29568. value: function encrypt(e) {
  29569. if ((e = Qt(e)).length % 16 != 0) throw new Error("invalid plaintext size (must be multiple of 16 bytes)");
  29570. for (var t = Xt(e.length), n = Xt(16), s = 0; s < e.length; s += 16) {
  29571. Zt(e, n, 0, s, s + 16);
  29572. for (var r = 0; r < 16; r++) {
  29573. n[r] ^= this._lastCipherblock[r];
  29574. }
  29575. this._lastCipherblock = this._aes.encrypt(n), Zt(this._lastCipherblock, t, s);
  29576. }
  29577. return t;
  29578. }
  29579. }, {
  29580. key: "decrypt",
  29581. value: function decrypt(e) {
  29582. if ((e = Qt(e)).length % 16 != 0) throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");
  29583. for (var t = Xt(e.length), n = Xt(16), s = 0; s < e.length; s += 16) {
  29584. Zt(e, n, 0, s, s + 16), n = this._aes.decrypt(n);
  29585. for (var r = 0; r < 16; r++) {
  29586. t[s + r] = n[r] ^ this._lastCipherblock[r];
  29587. }
  29588. Zt(e, this._lastCipherblock, 0, s, s + 16);
  29589. }
  29590. return t;
  29591. }
  29592. }]);
  29593. return bn;
  29594. }();
  29595. var kn = /*#__PURE__*/function () {
  29596. function kn(e, t, n) {
  29597. (0, _classCallCheck2.default)(this, kn);
  29598. if (!(this instanceof kn)) throw Error("AES must be instanitated with `new`");
  29599. if (this.description = "Cipher Feedback", this.name = "cfb", t) {
  29600. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 size)");
  29601. } else t = Xt(16);
  29602. n || (n = 1), this.segmentSize = n, this._shiftRegister = Qt(t, !0), this._aes = new In(e);
  29603. }
  29604. (0, _createClass2.default)(kn, [{
  29605. key: "encrypt",
  29606. value: function encrypt(e) {
  29607. if (e.length % this.segmentSize != 0) throw new Error("invalid plaintext size (must be segmentSize bytes)");
  29608. for (var t, n = Qt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  29609. t = this._aes.encrypt(this._shiftRegister);
  29610. for (var r = 0; r < this.segmentSize; r++) {
  29611. n[s + r] ^= t[r];
  29612. }
  29613. Zt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Zt(n, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  29614. }
  29615. return n;
  29616. }
  29617. }, {
  29618. key: "decrypt",
  29619. value: function decrypt(e) {
  29620. if (e.length % this.segmentSize != 0) throw new Error("invalid ciphertext size (must be segmentSize bytes)");
  29621. for (var t, n = Qt(e, !0), s = 0; s < n.length; s += this.segmentSize) {
  29622. t = this._aes.encrypt(this._shiftRegister);
  29623. for (var r = 0; r < this.segmentSize; r++) {
  29624. n[s + r] ^= t[r];
  29625. }
  29626. Zt(this._shiftRegister, this._shiftRegister, 0, this.segmentSize), Zt(e, this._shiftRegister, 16 - this.segmentSize, s, s + this.segmentSize);
  29627. }
  29628. return n;
  29629. }
  29630. }]);
  29631. return kn;
  29632. }();
  29633. var An = /*#__PURE__*/function () {
  29634. function An(e, t) {
  29635. (0, _classCallCheck2.default)(this, An);
  29636. if (!(this instanceof An)) throw Error("AES must be instanitated with `new`");
  29637. if (this.description = "Output Feedback", this.name = "ofb", t) {
  29638. if (16 != t.length) throw new Error("invalid initialation vector size (must be 16 bytes)");
  29639. } else t = Xt(16);
  29640. this._lastPrecipher = Qt(t, !0), this._lastPrecipherIndex = 16, this._aes = new In(e);
  29641. }
  29642. (0, _createClass2.default)(An, [{
  29643. key: "encrypt",
  29644. value: function encrypt(e) {
  29645. for (var t = Qt(e, !0), n = 0; n < t.length; n++) {
  29646. 16 === this._lastPrecipherIndex && (this._lastPrecipher = this._aes.encrypt(this._lastPrecipher), this._lastPrecipherIndex = 0), t[n] ^= this._lastPrecipher[this._lastPrecipherIndex++];
  29647. }
  29648. return t;
  29649. }
  29650. }, {
  29651. key: "decrypt",
  29652. value: function decrypt(e) {
  29653. return this.encrypt(e);
  29654. }
  29655. }]);
  29656. return An;
  29657. }();
  29658. var Cn = /*#__PURE__*/function () {
  29659. function Cn(e) {
  29660. (0, _classCallCheck2.default)(this, Cn);
  29661. if (!(this instanceof Cn)) throw Error("Counter must be instanitated with `new`");
  29662. 0 === e || e || (e = 1), "number" == typeof e ? (this._counter = Xt(16), this.setValue(e)) : this.setBytes(e);
  29663. }
  29664. (0, _createClass2.default)(Cn, [{
  29665. key: "setValue",
  29666. value: function setValue(e) {
  29667. if ("number" != typeof e || parseInt(e) != e) throw new Error("invalid counter value (must be an integer)");
  29668. if (e > Number.MAX_SAFE_INTEGER) throw new Error("integer value out of safe range");
  29669. for (var t = 15; t >= 0; --t) {
  29670. this._counter[t] = e % 256, e = parseInt(e / 256);
  29671. }
  29672. }
  29673. }, {
  29674. key: "setBytes",
  29675. value: function setBytes(e) {
  29676. if (16 != (e = Qt(e, !0)).length) throw new Error("invalid counter bytes size (must be 16 bytes)");
  29677. this._counter = e;
  29678. }
  29679. }, {
  29680. key: "increment",
  29681. value: function increment() {
  29682. for (var e = 15; e >= 0; e--) {
  29683. if (255 !== this._counter[e]) {
  29684. this._counter[e]++;
  29685. break;
  29686. }
  29687. this._counter[e] = 0;
  29688. }
  29689. }
  29690. }]);
  29691. return Cn;
  29692. }();
  29693. var Pn = /*#__PURE__*/function () {
  29694. function Pn(e, t) {
  29695. (0, _classCallCheck2.default)(this, Pn);
  29696. if (!(this instanceof Pn)) throw Error("AES must be instanitated with `new`");
  29697. this.description = "Counter", this.name = "ctr", t instanceof Cn || (t = new Cn(t)), this._counter = t, this._remainingCounter = null, this._remainingCounterIndex = 16, this._aes = new In(e);
  29698. }
  29699. (0, _createClass2.default)(Pn, [{
  29700. key: "encrypt",
  29701. value: function encrypt(e) {
  29702. for (var t = Qt(e, !0), n = 0; n < t.length; n++) {
  29703. 16 === this._remainingCounterIndex && (this._remainingCounter = this._aes.encrypt(this._counter._counter), this._remainingCounterIndex = 0, this._counter.increment()), t[n] ^= this._remainingCounter[this._remainingCounterIndex++];
  29704. }
  29705. return t;
  29706. }
  29707. }, {
  29708. key: "decrypt",
  29709. value: function decrypt(e) {
  29710. return this.encrypt(e);
  29711. }
  29712. }]);
  29713. return Pn;
  29714. }();
  29715. var Tn = {
  29716. AES: In,
  29717. Counter: Cn,
  29718. ModeOfOperation: {
  29719. ecb: Sn,
  29720. cbc: bn,
  29721. cfb: kn,
  29722. ofb: An,
  29723. ctr: Pn
  29724. },
  29725. utils: {
  29726. hex: nn,
  29727. utf8: tn
  29728. },
  29729. padding: {
  29730. pkcs7: {
  29731. pad: function pad(e) {
  29732. var t = 16 - (e = Qt(e, !0)).length % 16,
  29733. n = Xt(e.length + t);
  29734. Zt(e, n);
  29735. for (var s = e.length; s < n.length; s++) {
  29736. n[s] = t;
  29737. }
  29738. return n;
  29739. },
  29740. strip: function strip(e) {
  29741. if ((e = Qt(e, !0)).length < 16) throw new Error("PKCS#7 invalid length");
  29742. var t = e[e.length - 1];
  29743. if (t > 16) throw new Error("PKCS#7 padding byte out of range");
  29744. for (var n = e.length - t, s = 0; s < t; s++) {
  29745. if (e[n + s] !== t) throw new Error("PKCS#7 invalid padding byte");
  29746. }
  29747. var r = Xt(n);
  29748. return Zt(e, r, 0, 0, n), r;
  29749. }
  29750. }
  29751. },
  29752. _arrayTest: {
  29753. coerceArray: Qt,
  29754. createArray: Xt,
  29755. copyArray: Zt
  29756. }
  29757. };
  29758. function xn(e, t, n) {
  29759. var s = new Uint8Array(uni.base64ToArrayBuffer(t)),
  29760. r = Tn.utils.utf8.toBytes(n),
  29761. i = Tn.utils.utf8.toBytes(e),
  29762. o = new Tn.ModeOfOperation.cbc(s, r),
  29763. a = Tn.padding.pkcs7.pad(i),
  29764. c = o.encrypt(a);
  29765. return uni.arrayBufferToBase64(c);
  29766. }
  29767. var On = {
  29768. code: 2e4,
  29769. message: "System error"
  29770. },
  29771. En = {
  29772. code: 20101,
  29773. message: "Invalid client"
  29774. },
  29775. Ln = {
  29776. code: 20102,
  29777. message: "Get encrypt key failed"
  29778. },
  29779. Rn = {
  29780. 10001: "Secure network is not supported on current playground or unimpsdk",
  29781. 10003: "Config missing in current app. If the problem pesist, please contact DCloud.",
  29782. 10009: "Encrypt payload failed",
  29783. 10010: "Decrypt response failed"
  29784. };
  29785. function Un(e) {
  29786. var _ref32 = e || {},
  29787. t = _ref32.errSubject,
  29788. n = _ref32.subject,
  29789. s = _ref32.errCode,
  29790. r = _ref32.errMsg,
  29791. i = _ref32.code,
  29792. o = _ref32.message,
  29793. a = _ref32.cause;
  29794. return new te({
  29795. subject: t || n || "uni-secure-network",
  29796. code: s || i || On.code,
  29797. message: r || o,
  29798. cause: a
  29799. });
  29800. }
  29801. var Nn,
  29802. Dn,
  29803. qn = null;
  29804. var Mn = /*#__PURE__*/function (_Vt) {
  29805. (0, _inherits2.default)(Mn, _Vt);
  29806. var _super8 = _createSuper(Mn);
  29807. function Mn(e) {
  29808. var _this15;
  29809. (0, _classCallCheck2.default)(this, Mn);
  29810. _this15 = _super8.call(this, e), _this15.clientType = "mp-weixin", _this15.userEncryptKey = null;
  29811. return _this15;
  29812. }
  29813. (0, _createClass2.default)(Mn, [{
  29814. key: "isLogin",
  29815. value: function isLogin() {
  29816. return !!this.scopedGlobalCache.mpWeixinCode || !!this.scopedGlobalCache.mpWeixinOpenid;
  29817. }
  29818. }, {
  29819. key: "prepare",
  29820. value: function () {
  29821. var _prepare2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee43() {
  29822. return _regenerator.default.wrap(function _callee43$(_context43) {
  29823. while (1) {
  29824. switch (_context43.prev = _context43.next) {
  29825. case 0:
  29826. if (this.isLogin()) {
  29827. _context43.next = 7;
  29828. break;
  29829. }
  29830. if (this.scopedGlobalCache.initPromise) {
  29831. _context43.next = 3;
  29832. break;
  29833. }
  29834. throw new Error("`uniCloud.initSecureNetworkByWeixin` has not yet been called");
  29835. case 3:
  29836. _context43.next = 5;
  29837. return this.scopedGlobalCache.initPromise;
  29838. case 5:
  29839. if (this.isLogin()) {
  29840. _context43.next = 7;
  29841. break;
  29842. }
  29843. throw new Error("uniCloud.initSecureNetworkByWeixin` has not yet been called or successfully excuted");
  29844. case 7:
  29845. case "end":
  29846. return _context43.stop();
  29847. }
  29848. }
  29849. }, _callee43, this);
  29850. }));
  29851. function prepare() {
  29852. return _prepare2.apply(this, arguments);
  29853. }
  29854. return prepare;
  29855. }()
  29856. }, {
  29857. key: "getUserEncryptKey",
  29858. value: function () {
  29859. var _getUserEncryptKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee44() {
  29860. var _this16 = this;
  29861. var e;
  29862. return _regenerator.default.wrap(function _callee44$(_context44) {
  29863. while (1) {
  29864. switch (_context44.prev = _context44.next) {
  29865. case 0:
  29866. if (!this.userEncryptKey) {
  29867. _context44.next = 2;
  29868. break;
  29869. }
  29870. return _context44.abrupt("return", this.userEncryptKey);
  29871. case 2:
  29872. if (!(qn && qn.expireTime)) {
  29873. _context44.next = 6;
  29874. break;
  29875. }
  29876. e = Date.now();
  29877. if (!(qn.expireTime - e > 0)) {
  29878. _context44.next = 6;
  29879. break;
  29880. }
  29881. return _context44.abrupt("return", (this.userEncryptKey = qn, this.userEncryptKey));
  29882. case 6:
  29883. return _context44.abrupt("return", new Promise(function (e, t) {
  29884. uni.getUserCryptoManager().getLatestUserKey({
  29885. success: function success(t) {
  29886. qn = t, _this16.userEncryptKey = t, e(_this16.userEncryptKey);
  29887. },
  29888. fail: function fail(e) {
  29889. t(Un(_objectSpread(_objectSpread({}, Ln), {}, {
  29890. cause: e
  29891. })));
  29892. }
  29893. });
  29894. }));
  29895. case 7:
  29896. case "end":
  29897. return _context44.stop();
  29898. }
  29899. }
  29900. }, _callee44, this);
  29901. }));
  29902. function getUserEncryptKey() {
  29903. return _getUserEncryptKey.apply(this, arguments);
  29904. }
  29905. return getUserEncryptKey;
  29906. }()
  29907. }, {
  29908. key: "getWxAppId",
  29909. value: function getWxAppId() {
  29910. return wx.getAccountInfoSync().miniProgram.appId;
  29911. }
  29912. }, {
  29913. key: "platformGetSignOption",
  29914. value: function () {
  29915. var _platformGetSignOption = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee45() {
  29916. var _yield$this$getUserEn, e, t, n;
  29917. return _regenerator.default.wrap(function _callee45$(_context45) {
  29918. while (1) {
  29919. switch (_context45.prev = _context45.next) {
  29920. case 0:
  29921. _context45.next = 2;
  29922. return this.getUserEncryptKey();
  29923. case 2:
  29924. _yield$this$getUserEn = _context45.sent;
  29925. e = _yield$this$getUserEn.encryptKey;
  29926. t = _yield$this$getUserEn.iv;
  29927. n = _yield$this$getUserEn.version;
  29928. return _context45.abrupt("return", {
  29929. verifyClientSign: xn(JSON.stringify({
  29930. data: JSON.stringify({}),
  29931. appId: this.appId,
  29932. deviceId: this.deviceId,
  29933. wxAppId: this.getWxAppId(),
  29934. simulator: "devtools" === ae().platform,
  29935. timestamp: Date.now()
  29936. }), e, t),
  29937. encryptKeyId: n,
  29938. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  29939. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  29940. });
  29941. case 7:
  29942. case "end":
  29943. return _context45.stop();
  29944. }
  29945. }
  29946. }, _callee45, this);
  29947. }));
  29948. function platformGetSignOption() {
  29949. return _platformGetSignOption.apply(this, arguments);
  29950. }
  29951. return platformGetSignOption;
  29952. }()
  29953. }, {
  29954. key: "platformEncryptData",
  29955. value: function () {
  29956. var _platformEncryptData = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee46(e) {
  29957. var _yield$this$getUserEn2, t, n, s, r;
  29958. return _regenerator.default.wrap(function _callee46$(_context46) {
  29959. while (1) {
  29960. switch (_context46.prev = _context46.next) {
  29961. case 0:
  29962. _context46.next = 2;
  29963. return this.getUserEncryptKey();
  29964. case 2:
  29965. _yield$this$getUserEn2 = _context46.sent;
  29966. t = _yield$this$getUserEn2.encryptKey;
  29967. n = _yield$this$getUserEn2.iv;
  29968. s = _yield$this$getUserEn2.version;
  29969. r = {
  29970. secretType: this.secretType,
  29971. encryptKeyId: s,
  29972. mpWeixinCode: this.scopedGlobalCache.mpWeixinCode,
  29973. mpWeixinOpenid: this.scopedGlobalCache.mpWeixinOpenid
  29974. };
  29975. return _context46.abrupt("return", this.secretType === Jt ? {
  29976. content: e,
  29977. _uniCloudOptions: r
  29978. } : {
  29979. content: xn(JSON.stringify({
  29980. data: JSON.stringify(e),
  29981. appId: this.appId,
  29982. deviceId: this.deviceId,
  29983. wxAppId: this.getWxAppId(),
  29984. simulator: "devtools" === ae().platform,
  29985. timestamp: Date.now()
  29986. }), t, n),
  29987. _uniCloudOptions: r
  29988. });
  29989. case 8:
  29990. case "end":
  29991. return _context46.stop();
  29992. }
  29993. }
  29994. }, _callee46, this);
  29995. }));
  29996. function platformEncryptData(_x42) {
  29997. return _platformEncryptData.apply(this, arguments);
  29998. }
  29999. return platformEncryptData;
  30000. }()
  30001. }, {
  30002. key: "platformDecryptResult",
  30003. value: function () {
  30004. var _platformDecryptResult = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee47(e) {
  30005. var t, _yield$this$getUserEn3, n, s;
  30006. return _regenerator.default.wrap(function _callee47$(_context47) {
  30007. while (1) {
  30008. switch (_context47.prev = _context47.next) {
  30009. case 0:
  30010. t = e.content;
  30011. _context47.next = 3;
  30012. return this.getUserEncryptKey();
  30013. case 3:
  30014. _yield$this$getUserEn3 = _context47.sent;
  30015. n = _yield$this$getUserEn3.encryptKey;
  30016. s = _yield$this$getUserEn3.iv;
  30017. return _context47.abrupt("return", JSON.parse(function (e, t, n) {
  30018. var s = new Uint8Array(uni.base64ToArrayBuffer(e)),
  30019. r = new Uint8Array(uni.base64ToArrayBuffer(t)),
  30020. i = Tn.utils.utf8.toBytes(n),
  30021. o = new Tn.ModeOfOperation.cbc(r, i),
  30022. a = Tn.padding.pkcs7.strip(o.decrypt(s));
  30023. return Tn.utils.utf8.fromBytes(a);
  30024. }(t, n, s)));
  30025. case 7:
  30026. case "end":
  30027. return _context47.stop();
  30028. }
  30029. }
  30030. }, _callee47, this);
  30031. }));
  30032. function platformDecryptResult(_x43) {
  30033. return _platformDecryptResult.apply(this, arguments);
  30034. }
  30035. return platformDecryptResult;
  30036. }()
  30037. }, {
  30038. key: "isClientKeyNotFound",
  30039. value: function isClientKeyNotFound() {
  30040. return !1;
  30041. }
  30042. }]);
  30043. return Mn;
  30044. }(Vt);
  30045. function Fn(e) {
  30046. var t = ["hasClientKey", "encryptGetClientKeyPayload", "setClientKey", "encrypt", "decrypt"],
  30047. n = {};
  30048. var _loop = function _loop(_s13) {
  30049. var r = t[_s13];
  30050. n[r] = function () {
  30051. for (var _len = arguments.length, t = new Array(_len), _key = 0; _key < _len; _key++) {
  30052. t[_key] = arguments[_key];
  30053. }
  30054. return new Promise(function (n, s) {
  30055. "function" == typeof e[r] ? e[r].apply(e, t.concat([function () {
  30056. var _ref33 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  30057. e = _ref33.type,
  30058. t = _ref33.data,
  30059. r = _ref33.errCode,
  30060. i = _ref33.errMsg,
  30061. o = _ref33.errSubject,
  30062. a = _ref33.message;
  30063. "success" === e ? n(t) : s(Un({
  30064. errCode: r,
  30065. errMsg: Rn[r] || i || a,
  30066. errSubject: o
  30067. }));
  30068. }])) : s(Un({
  30069. message: "请检查manifest.json内是否开启安全网络模块,另外注意标准基座不支持安全网络模块"
  30070. }));
  30071. });
  30072. };
  30073. };
  30074. for (var _s13 = 0; _s13 < t.length; _s13++) {
  30075. _loop(_s13);
  30076. }
  30077. return n;
  30078. }
  30079. var Kn = /*#__PURE__*/function (_Vt2) {
  30080. (0, _inherits2.default)(Kn, _Vt2);
  30081. var _super9 = _createSuper(Kn);
  30082. function Kn(e) {
  30083. var _this17;
  30084. (0, _classCallCheck2.default)(this, Kn);
  30085. _this17 = _super9.call(this, e), _this17.clientType = "app", _this17.appUtils = _objectSpread({}, Fn(uni.requireNativePlugin("plus"))), _this17.systemInfo = Nn || (Nn = ae());
  30086. return _this17;
  30087. }
  30088. (0, _createClass2.default)(Kn, [{
  30089. key: "hasClientKey",
  30090. value: function () {
  30091. var _hasClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee48() {
  30092. return _regenerator.default.wrap(function _callee48$(_context48) {
  30093. while (1) {
  30094. switch (_context48.prev = _context48.next) {
  30095. case 0:
  30096. _context48.next = 2;
  30097. return this.appUtils.hasClientKey({
  30098. provider: this.provider,
  30099. spaceId: this.spaceId
  30100. });
  30101. case 2:
  30102. this._hasClientKey = _context48.sent;
  30103. return _context48.abrupt("return", this._hasClientKey);
  30104. case 4:
  30105. case "end":
  30106. return _context48.stop();
  30107. }
  30108. }
  30109. }, _callee48, this);
  30110. }));
  30111. function hasClientKey() {
  30112. return _hasClientKey.apply(this, arguments);
  30113. }
  30114. return hasClientKey;
  30115. }()
  30116. }, {
  30117. key: "getAppClientKey",
  30118. value: function () {
  30119. var _getAppClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee49() {
  30120. var _yield$this$appUtils$, e, t, n, s, r;
  30121. return _regenerator.default.wrap(function _callee49$(_context49) {
  30122. while (1) {
  30123. switch (_context49.prev = _context49.next) {
  30124. case 0:
  30125. _context49.next = 2;
  30126. return this.appUtils.encryptGetClientKeyPayload({
  30127. data: JSON.stringify({})
  30128. });
  30129. case 2:
  30130. _yield$this$appUtils$ = _context49.sent;
  30131. e = _yield$this$appUtils$.data;
  30132. t = _yield$this$appUtils$.key;
  30133. _context49.next = 7;
  30134. return this.uniCloudIns.callFunction({
  30135. name: "DCloud-clientDB",
  30136. data: {
  30137. redirectTo: "encryption",
  30138. action: "getAppClientKey",
  30139. data: e,
  30140. key: t
  30141. }
  30142. });
  30143. case 7:
  30144. _context49.t0 = _context49.sent.result;
  30145. if (_context49.t0) {
  30146. _context49.next = 10;
  30147. break;
  30148. }
  30149. _context49.t0 = {};
  30150. case 10:
  30151. n = _context49.t0;
  30152. if (!(0 !== n.errCode)) {
  30153. _context49.next = 13;
  30154. break;
  30155. }
  30156. throw function (e) {
  30157. return new te({
  30158. subject: e.errSubject || "uni-secure-network",
  30159. code: e.errCode || e.code || On.code,
  30160. message: e.errMsg || e.message
  30161. });
  30162. }(n);
  30163. case 13:
  30164. s = n.clientKey, r = n.key;
  30165. _context49.next = 16;
  30166. return this.appUtils.setClientKey({
  30167. provider: this.provider,
  30168. spaceId: this.spaceId,
  30169. clientKey: s,
  30170. key: r
  30171. });
  30172. case 16:
  30173. case "end":
  30174. return _context49.stop();
  30175. }
  30176. }
  30177. }, _callee49, this);
  30178. }));
  30179. function getAppClientKey() {
  30180. return _getAppClientKey.apply(this, arguments);
  30181. }
  30182. return getAppClientKey;
  30183. }()
  30184. }, {
  30185. key: "ensureClientKey",
  30186. value: function () {
  30187. var _ensureClientKey = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee50() {
  30188. var _this18 = this;
  30189. var _ref34,
  30190. _ref34$forceUpdate,
  30191. e,
  30192. _args50 = arguments;
  30193. return _regenerator.default.wrap(function _callee50$(_context50) {
  30194. while (1) {
  30195. switch (_context50.prev = _context50.next) {
  30196. case 0:
  30197. _ref34 = _args50.length > 0 && _args50[0] !== undefined ? _args50[0] : {}, _ref34$forceUpdate = _ref34.forceUpdate, e = _ref34$forceUpdate === void 0 ? !1 : _ref34$forceUpdate;
  30198. _context50.t1 = !0;
  30199. _context50.next = 4;
  30200. return this.hasClientKey();
  30201. case 4:
  30202. _context50.t2 = _context50.sent;
  30203. _context50.t0 = _context50.t1 !== _context50.t2;
  30204. if (_context50.t0) {
  30205. _context50.next = 8;
  30206. break;
  30207. }
  30208. _context50.t0 = e;
  30209. case 8:
  30210. if (!_context50.t0) {
  30211. _context50.next = 10;
  30212. break;
  30213. }
  30214. return _context50.abrupt("return", (e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus === h || !e && this.scopedGlobalCache.initPromise && this.scopedGlobalCache.initStatus !== p || (this.scopedGlobalCache.initPromise = this.getAppClientKey(), this.scopedGlobalCache.initPromise.then(function (e) {
  30215. _this18.scopedGlobalCache.initStatus = d;
  30216. }).catch(function (e) {
  30217. throw _this18.scopedGlobalCache.initStatus = p, e;
  30218. }), this.scopedGlobalCache.initStatus = h), this.scopedGlobalCache.initPromise));
  30219. case 10:
  30220. case "end":
  30221. return _context50.stop();
  30222. }
  30223. }
  30224. }, _callee50, this);
  30225. }));
  30226. function ensureClientKey() {
  30227. return _ensureClientKey.apply(this, arguments);
  30228. }
  30229. return ensureClientKey;
  30230. }()
  30231. }, {
  30232. key: "prepare",
  30233. value: function () {
  30234. var _prepare3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee51() {
  30235. var _ref35,
  30236. _ref35$forceUpdate,
  30237. e,
  30238. _args51 = arguments;
  30239. return _regenerator.default.wrap(function _callee51$(_context51) {
  30240. while (1) {
  30241. switch (_context51.prev = _context51.next) {
  30242. case 0:
  30243. _ref35 = _args51.length > 0 && _args51[0] !== undefined ? _args51[0] : {}, _ref35$forceUpdate = _ref35.forceUpdate, e = _ref35$forceUpdate === void 0 ? !1 : _ref35$forceUpdate;
  30244. _context51.next = 3;
  30245. return this.ensureClientKey({
  30246. forceUpdate: e
  30247. });
  30248. case 3:
  30249. case "end":
  30250. return _context51.stop();
  30251. }
  30252. }
  30253. }, _callee51, this);
  30254. }));
  30255. function prepare() {
  30256. return _prepare3.apply(this, arguments);
  30257. }
  30258. return prepare;
  30259. }()
  30260. }, {
  30261. key: "platformGetSignOption",
  30262. value: function () {
  30263. var _platformGetSignOption2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee52() {
  30264. var _yield$this$appUtils$2, e, t;
  30265. return _regenerator.default.wrap(function _callee52$(_context52) {
  30266. while (1) {
  30267. switch (_context52.prev = _context52.next) {
  30268. case 0:
  30269. _context52.next = 2;
  30270. return this.appUtils.encrypt({
  30271. provider: this.provider,
  30272. spaceId: this.spaceId,
  30273. data: JSON.stringify({})
  30274. });
  30275. case 2:
  30276. _yield$this$appUtils$2 = _context52.sent;
  30277. e = _yield$this$appUtils$2.data;
  30278. t = _yield$this$appUtils$2.key;
  30279. return _context52.abrupt("return", {
  30280. verifyClientSign: e,
  30281. encryptKeyId: t
  30282. });
  30283. case 6:
  30284. case "end":
  30285. return _context52.stop();
  30286. }
  30287. }
  30288. }, _callee52, this);
  30289. }));
  30290. function platformGetSignOption() {
  30291. return _platformGetSignOption2.apply(this, arguments);
  30292. }
  30293. return platformGetSignOption;
  30294. }()
  30295. }, {
  30296. key: "platformEncryptData",
  30297. value: function () {
  30298. var _platformEncryptData2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee53(e) {
  30299. var _yield$this$appUtils$3, t, n, s;
  30300. return _regenerator.default.wrap(function _callee53$(_context53) {
  30301. while (1) {
  30302. switch (_context53.prev = _context53.next) {
  30303. case 0:
  30304. _context53.next = 2;
  30305. return this.appUtils.encrypt({
  30306. provider: this.provider,
  30307. spaceId: this.spaceId,
  30308. data: JSON.stringify(e)
  30309. });
  30310. case 2:
  30311. _yield$this$appUtils$3 = _context53.sent;
  30312. t = _yield$this$appUtils$3.data;
  30313. n = _yield$this$appUtils$3.key;
  30314. s = {
  30315. secretType: this.secretType,
  30316. encryptKeyId: n
  30317. };
  30318. return _context53.abrupt("return", this.secretType === Jt ? {
  30319. content: e,
  30320. _uniCloudOptions: s
  30321. } : {
  30322. content: t,
  30323. _uniCloudOptions: s
  30324. });
  30325. case 7:
  30326. case "end":
  30327. return _context53.stop();
  30328. }
  30329. }
  30330. }, _callee53, this);
  30331. }));
  30332. function platformEncryptData(_x44) {
  30333. return _platformEncryptData2.apply(this, arguments);
  30334. }
  30335. return platformEncryptData;
  30336. }()
  30337. }, {
  30338. key: "platformDecryptResult",
  30339. value: function () {
  30340. var _platformDecryptResult2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee54(e) {
  30341. var t, _e$_uniCloudOptions, n, s, r;
  30342. return _regenerator.default.wrap(function _callee54$(_context54) {
  30343. while (1) {
  30344. switch (_context54.prev = _context54.next) {
  30345. case 0:
  30346. t = e.content;
  30347. _e$_uniCloudOptions = e._uniCloudOptions;
  30348. n = _e$_uniCloudOptions === void 0 ? {} : _e$_uniCloudOptions;
  30349. s = n.encryptKeyId;
  30350. _context54.next = 6;
  30351. return this.appUtils.decrypt({
  30352. provider: this.provider,
  30353. spaceId: this.spaceId,
  30354. data: t,
  30355. key: s
  30356. });
  30357. case 6:
  30358. r = _context54.sent;
  30359. return _context54.abrupt("return", JSON.parse(r.data));
  30360. case 8:
  30361. case "end":
  30362. return _context54.stop();
  30363. }
  30364. }
  30365. }, _callee54, this);
  30366. }));
  30367. function platformDecryptResult(_x45) {
  30368. return _platformDecryptResult2.apply(this, arguments);
  30369. }
  30370. return platformDecryptResult;
  30371. }()
  30372. }, {
  30373. key: "isClientKeyNotFound",
  30374. value: function isClientKeyNotFound() {
  30375. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  30376. var t = e.result || {};
  30377. return 70009 === t.errCode && "uni-secure-network" === t.errSubject;
  30378. }
  30379. }]);
  30380. return Kn;
  30381. }(Vt);
  30382. function jn() {
  30383. var _ref36 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  30384. e = _ref36.secretType;
  30385. return e === Ht || e === Jt || e === zt;
  30386. }
  30387. function $n() {
  30388. var _ref37 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  30389. e = _ref37.name,
  30390. _ref37$data = _ref37.data,
  30391. t = _ref37$data === void 0 ? {} : _ref37$data;
  30392. return "app" === C && "DCloud-clientDB" === e && "encryption" === t.redirectTo && "getAppClientKey" === t.action;
  30393. }
  30394. function Bn() {
  30395. var _ref38 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  30396. e = _ref38.provider,
  30397. t = _ref38.spaceId,
  30398. n = _ref38.functionName;
  30399. var _ae = ae(),
  30400. s = _ae.appId,
  30401. r = _ae.uniPlatform,
  30402. i = _ae.osName;
  30403. var o = r;
  30404. "app" === r && (o = i);
  30405. var a = function () {
  30406. var _ref39 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  30407. e = _ref39.provider,
  30408. t = _ref39.spaceId;
  30409. var n = A;
  30410. if (!n) return {};
  30411. e = function (e) {
  30412. return "tencent" === e ? "tcb" : e;
  30413. }(e);
  30414. var s = n.find(function (n) {
  30415. return n.provider === e && n.spaceId === t;
  30416. });
  30417. return s && s.config;
  30418. }({
  30419. provider: e,
  30420. spaceId: t
  30421. });
  30422. if (!a || !a.accessControl || !a.accessControl.enable) return !1;
  30423. var c = a.accessControl.function || {},
  30424. u = Object.keys(c);
  30425. if (0 === u.length) return !0;
  30426. var l = function (e, t) {
  30427. var n, s, r;
  30428. for (var _i2 = 0; _i2 < e.length; _i2++) {
  30429. var _o2 = e[_i2];
  30430. _o2 !== t ? "*" !== _o2 ? _o2.split(",").map(function (e) {
  30431. return e.trim();
  30432. }).indexOf(t) > -1 && (s = _o2) : r = _o2 : n = _o2;
  30433. }
  30434. return n || s || r;
  30435. }(u, n);
  30436. if (!l) return !1;
  30437. if ((c[l] || []).find(function () {
  30438. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  30439. return e.appId === s && (e.platform || "").toLowerCase() === o.toLowerCase();
  30440. })) return !0;
  30441. throw console.error("\u6B64\u5E94\u7528[appId: ".concat(s, ", platform: ").concat(o, "]\u4E0D\u5728\u4E91\u7AEF\u914D\u7F6E\u7684\u5141\u8BB8\u8BBF\u95EE\u7684\u5E94\u7528\u5217\u8868\u5185\uFF0C\u53C2\u8003\uFF1Ahttps://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")), Un(En);
  30442. }
  30443. function Wn(_ref40) {
  30444. var e = _ref40.functionName,
  30445. t = _ref40.result,
  30446. n = _ref40.logPvd;
  30447. if (S && this.__dev__.debugLog && t && t.requestId) {
  30448. var _s14 = JSON.stringify({
  30449. spaceId: this.config.spaceId,
  30450. functionName: e,
  30451. requestId: t.requestId
  30452. });
  30453. console.log("[".concat(n, "-request]").concat(_s14, "[/").concat(n, "-request]"));
  30454. }
  30455. }
  30456. function Hn(e) {
  30457. var t = e.callFunction,
  30458. n = function n(_n9) {
  30459. var _this19 = this;
  30460. var s = _n9.name;
  30461. _n9.data = Mt.call(e, {
  30462. data: _n9.data
  30463. });
  30464. var r = {
  30465. aliyun: "aliyun",
  30466. tencent: "tcb",
  30467. tcb: "tcb",
  30468. alipay: "alipay",
  30469. dcloud: "dcloud"
  30470. }[this.config.provider],
  30471. i = jn(_n9),
  30472. o = $n(_n9),
  30473. a = i || o;
  30474. return t.call(this, _n9).then(function (e) {
  30475. return e.errCode = 0, !a && Wn.call(_this19, {
  30476. functionName: s,
  30477. result: e,
  30478. logPvd: r
  30479. }), Promise.resolve(e);
  30480. }, function (e) {
  30481. return !a && Wn.call(_this19, {
  30482. functionName: s,
  30483. result: e,
  30484. logPvd: r
  30485. }), e && e.message && (e.message = function () {
  30486. var _ref41 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  30487. _ref41$message = _ref41.message,
  30488. e = _ref41$message === void 0 ? "" : _ref41$message,
  30489. _ref41$extraInfo = _ref41.extraInfo,
  30490. t = _ref41$extraInfo === void 0 ? {} : _ref41$extraInfo,
  30491. _ref41$formatter = _ref41.formatter,
  30492. n = _ref41$formatter === void 0 ? [] : _ref41$formatter;
  30493. for (var _s15 = 0; _s15 < n.length; _s15++) {
  30494. var _n$_s = n[_s15],
  30495. _r6 = _n$_s.rule,
  30496. _i3 = _n$_s.content,
  30497. _o3 = _n$_s.mode,
  30498. _a = e.match(_r6);
  30499. if (!_a) continue;
  30500. var _c = _i3;
  30501. for (var _e19 = 1; _e19 < _a.length; _e19++) {
  30502. _c = Bt(_c, "{$".concat(_e19, "}"), _a[_e19]);
  30503. }
  30504. for (var _e20 in t) {
  30505. _c = Bt(_c, "{".concat(_e20, "}"), t[_e20]);
  30506. }
  30507. return "replace" === _o3 ? _c : e + _c;
  30508. }
  30509. return e;
  30510. }({
  30511. message: "[".concat(_n9.name, "]: ").concat(e.message),
  30512. formatter: Kt,
  30513. extraInfo: {
  30514. functionName: s
  30515. }
  30516. })), Promise.reject(e);
  30517. });
  30518. };
  30519. e.callFunction = function (t) {
  30520. var _e$config = e.config,
  30521. s = _e$config.provider,
  30522. r = _e$config.spaceId,
  30523. i = t.name;
  30524. var o, a;
  30525. if (t.data = t.data || {}, S && e.__dev__.debugInfo && !e.__dev__.debugInfo.forceRemote && T ? (e._callCloudFunction || (e._callCloudFunction = n, e._callLocalFunction = Ft), o = Ft) : o = n, o = o.bind(e), $n(t)) a = n.call(e, t);else if (function (_ref42) {
  30526. var e = _ref42.name,
  30527. _ref42$data = _ref42.data,
  30528. t = _ref42$data === void 0 ? {} : _ref42$data;
  30529. return "mp-weixin" === C && "uni-id-co" === e && "secureNetworkHandshakeByWeixin" === t.method;
  30530. }(t)) a = o.call(e, t);else if (jn(t)) {
  30531. a = new Dn({
  30532. secretType: t.secretType,
  30533. uniCloudIns: e
  30534. }).wrapEncryptDataCallFunction(n.bind(e))(t);
  30535. } else if (Bn({
  30536. provider: s,
  30537. spaceId: r,
  30538. functionName: i
  30539. })) {
  30540. a = new Dn({
  30541. secretType: t.secretType,
  30542. uniCloudIns: e
  30543. }).wrapVerifyClientCallFunction(n.bind(e))(t);
  30544. } else a = o(t);
  30545. return Object.defineProperty(a, "result", {
  30546. get: function get() {
  30547. return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {};
  30548. }
  30549. }), a.then(function (e) {
  30550. return "undefined" != typeof UTSJSONObject && (e.result = new UTSJSONObject(e.result)), e;
  30551. });
  30552. };
  30553. }
  30554. Dn = "mp-weixin" !== C && "app" !== C ? /*#__PURE__*/function () {
  30555. function _class2() {
  30556. (0, _classCallCheck2.default)(this, _class2);
  30557. throw Un({
  30558. message: "Platform ".concat(C, " is not supported by secure network")
  30559. });
  30560. }
  30561. return (0, _createClass2.default)(_class2);
  30562. }() : k ? "mp-weixin" === C ? Mn : Kn : /*#__PURE__*/function () {
  30563. function _class3() {
  30564. (0, _classCallCheck2.default)(this, _class3);
  30565. throw Un({
  30566. message: "Platform ".concat(C, " is not enabled, please check whether secure network module is enabled in your manifest.json")
  30567. });
  30568. }
  30569. return (0, _createClass2.default)(_class3);
  30570. }();
  30571. var Jn = Symbol("CLIENT_DB_INTERNAL");
  30572. function zn(e, t) {
  30573. return e.then = "DoNotReturnProxyWithAFunctionNamedThen", e._internalType = Jn, e.inspect = null, e.__ob__ = void 0, new Proxy(e, {
  30574. get: function get(e, n, s) {
  30575. if ("_uniClient" === n) return null;
  30576. if ("symbol" == (0, _typeof2.default)(n)) return e[n];
  30577. if (n in e || "string" != typeof n) {
  30578. var _t12 = e[n];
  30579. return "function" == typeof _t12 ? _t12.bind(e) : _t12;
  30580. }
  30581. return t.get(e, n, s);
  30582. }
  30583. });
  30584. }
  30585. function Vn(e) {
  30586. return {
  30587. on: function on(t, n) {
  30588. e[t] = e[t] || [], e[t].indexOf(n) > -1 || e[t].push(n);
  30589. },
  30590. off: function off(t, n) {
  30591. e[t] = e[t] || [];
  30592. var s = e[t].indexOf(n);
  30593. -1 !== s && e[t].splice(s, 1);
  30594. }
  30595. };
  30596. }
  30597. var Gn = ["db.Geo", "db.command", "command.aggregate"];
  30598. function Yn(e, t) {
  30599. return Gn.indexOf("".concat(e, ".").concat(t)) > -1;
  30600. }
  30601. function Qn(e) {
  30602. switch (f(e)) {
  30603. case "array":
  30604. return e.map(function (e) {
  30605. return Qn(e);
  30606. });
  30607. case "object":
  30608. return e._internalType === Jn || Object.keys(e).forEach(function (t) {
  30609. e[t] = Qn(e[t]);
  30610. }), e;
  30611. case "regexp":
  30612. return {
  30613. $regexp: {
  30614. source: e.source,
  30615. flags: e.flags
  30616. }
  30617. };
  30618. case "date":
  30619. return {
  30620. $date: e.toISOString()
  30621. };
  30622. default:
  30623. return e;
  30624. }
  30625. }
  30626. function Xn(e) {
  30627. return e && e.content && e.content.$method;
  30628. }
  30629. var Zn = /*#__PURE__*/function () {
  30630. function Zn(e, t, n) {
  30631. (0, _classCallCheck2.default)(this, Zn);
  30632. this.content = e, this.prevStage = t || null, this.udb = null, this._database = n;
  30633. }
  30634. (0, _createClass2.default)(Zn, [{
  30635. key: "toJSON",
  30636. value: function toJSON() {
  30637. var e = this;
  30638. var t = [e.content];
  30639. for (; e.prevStage;) {
  30640. e = e.prevStage, t.push(e.content);
  30641. }
  30642. return {
  30643. $db: t.reverse().map(function (e) {
  30644. return {
  30645. $method: e.$method,
  30646. $param: Qn(e.$param)
  30647. };
  30648. })
  30649. };
  30650. }
  30651. }, {
  30652. key: "toString",
  30653. value: function toString() {
  30654. return JSON.stringify(this.toJSON());
  30655. }
  30656. }, {
  30657. key: "getAction",
  30658. value: function getAction() {
  30659. var e = this.toJSON().$db.find(function (e) {
  30660. return "action" === e.$method;
  30661. });
  30662. return e && e.$param && e.$param[0];
  30663. }
  30664. }, {
  30665. key: "getCommand",
  30666. value: function getCommand() {
  30667. return {
  30668. $db: this.toJSON().$db.filter(function (e) {
  30669. return "action" !== e.$method;
  30670. })
  30671. };
  30672. }
  30673. }, {
  30674. key: "isAggregate",
  30675. get: function get() {
  30676. var e = this;
  30677. for (; e;) {
  30678. var t = Xn(e),
  30679. _n10 = Xn(e.prevStage);
  30680. if ("aggregate" === t && "collection" === _n10 || "pipeline" === t) return !0;
  30681. e = e.prevStage;
  30682. }
  30683. return !1;
  30684. }
  30685. }, {
  30686. key: "isCommand",
  30687. get: function get() {
  30688. var e = this;
  30689. for (; e;) {
  30690. if ("command" === Xn(e)) return !0;
  30691. e = e.prevStage;
  30692. }
  30693. return !1;
  30694. }
  30695. }, {
  30696. key: "isAggregateCommand",
  30697. get: function get() {
  30698. var e = this;
  30699. for (; e;) {
  30700. var t = Xn(e),
  30701. _n11 = Xn(e.prevStage);
  30702. if ("aggregate" === t && "command" === _n11) return !0;
  30703. e = e.prevStage;
  30704. }
  30705. return !1;
  30706. }
  30707. }, {
  30708. key: "getNextStageFn",
  30709. value: function getNextStageFn(e) {
  30710. var t = this;
  30711. return function () {
  30712. return es({
  30713. $method: e,
  30714. $param: Qn(Array.from(arguments))
  30715. }, t, t._database);
  30716. };
  30717. }
  30718. }, {
  30719. key: "count",
  30720. get: function get() {
  30721. return this.isAggregate ? this.getNextStageFn("count") : function () {
  30722. return this._send("count", Array.from(arguments));
  30723. };
  30724. }
  30725. }, {
  30726. key: "remove",
  30727. get: function get() {
  30728. return this.isCommand ? this.getNextStageFn("remove") : function () {
  30729. return this._send("remove", Array.from(arguments));
  30730. };
  30731. }
  30732. }, {
  30733. key: "get",
  30734. value: function get() {
  30735. return this._send("get", Array.from(arguments));
  30736. }
  30737. }, {
  30738. key: "add",
  30739. get: function get() {
  30740. return this.isCommand ? this.getNextStageFn("add") : function () {
  30741. return this._send("add", Array.from(arguments));
  30742. };
  30743. }
  30744. }, {
  30745. key: "update",
  30746. value: function update() {
  30747. return this._send("update", Array.from(arguments));
  30748. }
  30749. }, {
  30750. key: "end",
  30751. value: function end() {
  30752. return this._send("end", Array.from(arguments));
  30753. }
  30754. }, {
  30755. key: "set",
  30756. get: function get() {
  30757. return this.isCommand ? this.getNextStageFn("set") : function () {
  30758. throw new Error("JQL禁止使用set方法");
  30759. };
  30760. }
  30761. }, {
  30762. key: "_send",
  30763. value: function _send(e, t) {
  30764. var n = this.getAction(),
  30765. s = this.getCommand();
  30766. if (s.$db.push({
  30767. $method: e,
  30768. $param: Qn(t)
  30769. }), S) {
  30770. var _e21 = s.$db.find(function (e) {
  30771. return "collection" === e.$method;
  30772. }),
  30773. _t13 = _e21 && _e21.$param;
  30774. _t13 && 1 === _t13.length && "string" == typeof _e21.$param[0] && _e21.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。");
  30775. }
  30776. return this._database._callCloudFunction({
  30777. action: n,
  30778. command: s
  30779. });
  30780. }
  30781. }]);
  30782. return Zn;
  30783. }();
  30784. function es(e, t, n) {
  30785. return zn(new Zn(e, t, n), {
  30786. get: function get(e, t) {
  30787. var s = "db";
  30788. return e && e.content && (s = e.content.$method), Yn(s, t) ? es({
  30789. $method: t
  30790. }, e, n) : function () {
  30791. return es({
  30792. $method: t,
  30793. $param: Qn(Array.from(arguments))
  30794. }, e, n);
  30795. };
  30796. }
  30797. });
  30798. }
  30799. function ts(_ref43) {
  30800. var e = _ref43.path,
  30801. t = _ref43.method;
  30802. return /*#__PURE__*/function () {
  30803. function _class4() {
  30804. (0, _classCallCheck2.default)(this, _class4);
  30805. this.param = Array.from(arguments);
  30806. }
  30807. (0, _createClass2.default)(_class4, [{
  30808. key: "toJSON",
  30809. value: function toJSON() {
  30810. return {
  30811. $newDb: [].concat((0, _toConsumableArray2.default)(e.map(function (e) {
  30812. return {
  30813. $method: e
  30814. };
  30815. })), [{
  30816. $method: t,
  30817. $param: this.param
  30818. }])
  30819. };
  30820. }
  30821. }, {
  30822. key: "toString",
  30823. value: function toString() {
  30824. return JSON.stringify(this.toJSON());
  30825. }
  30826. }]);
  30827. return _class4;
  30828. }();
  30829. }
  30830. function ns(e) {
  30831. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  30832. return zn(new e(t), {
  30833. get: function get(e, t) {
  30834. return Yn("db", t) ? es({
  30835. $method: t
  30836. }, null, e) : function () {
  30837. return es({
  30838. $method: t,
  30839. $param: Qn(Array.from(arguments))
  30840. }, null, e);
  30841. };
  30842. }
  30843. });
  30844. }
  30845. var ss = /*#__PURE__*/function (_ref44) {
  30846. (0, _inherits2.default)(ss, _ref44);
  30847. var _super10 = _createSuper(ss);
  30848. function ss() {
  30849. (0, _classCallCheck2.default)(this, ss);
  30850. return _super10.apply(this, arguments);
  30851. }
  30852. (0, _createClass2.default)(ss, [{
  30853. key: "_parseResult",
  30854. value: function _parseResult(e) {
  30855. return this._isJQL ? e.result : e;
  30856. }
  30857. }, {
  30858. key: "_callCloudFunction",
  30859. value: function _callCloudFunction(_ref45) {
  30860. var _this20 = this;
  30861. var e = _ref45.action,
  30862. t = _ref45.command,
  30863. n = _ref45.multiCommand,
  30864. s = _ref45.queryList;
  30865. function r(e, t) {
  30866. if (n && s) for (var _n12 = 0; _n12 < s.length; _n12++) {
  30867. var _r7 = s[_n12];
  30868. _r7.udb && "function" == typeof _r7.udb.setResult && (t ? _r7.udb.setResult(t) : _r7.udb.setResult(e.result.dataList[_n12]));
  30869. }
  30870. }
  30871. var i = this,
  30872. o = this._isJQL ? "databaseForJQL" : "database";
  30873. function a(e) {
  30874. return i._callback("error", [e]), q(M(o, "fail"), e).then(function () {
  30875. return q(M(o, "complete"), e);
  30876. }).then(function () {
  30877. return r(null, e), Y(j, {
  30878. type: W,
  30879. content: e
  30880. }), Promise.reject(e);
  30881. });
  30882. }
  30883. var c = q(M(o, "invoke")),
  30884. u = this._uniClient;
  30885. return c.then(function () {
  30886. return u.callFunction({
  30887. name: "DCloud-clientDB",
  30888. type: l,
  30889. data: {
  30890. action: e,
  30891. command: t,
  30892. multiCommand: n
  30893. }
  30894. });
  30895. }).then(function (e) {
  30896. var _e$result = e.result,
  30897. t = _e$result.code,
  30898. n = _e$result.message,
  30899. s = _e$result.token,
  30900. c = _e$result.tokenExpired,
  30901. _e$result$systemInfo = _e$result.systemInfo,
  30902. u = _e$result$systemInfo === void 0 ? [] : _e$result$systemInfo;
  30903. if (u) for (var _e22 = 0; _e22 < u.length; _e22++) {
  30904. var _u$_e = u[_e22],
  30905. _t14 = _u$_e.level,
  30906. _n13 = _u$_e.message,
  30907. _s16 = _u$_e.detail,
  30908. _r8 = console["app" === C && "warn" === _t14 ? "error" : _t14] || console.log;
  30909. var _i4 = "[System Info]" + _n13;
  30910. _s16 && (_i4 = "".concat(_i4, "\n\u8BE6\u7EC6\u4FE1\u606F\uFF1A").concat(_s16)), _r8(_i4);
  30911. }
  30912. if (t) {
  30913. return a(new te({
  30914. code: t,
  30915. message: n,
  30916. requestId: e.requestId
  30917. }));
  30918. }
  30919. e.result.errCode = e.result.errCode || e.result.code, e.result.errMsg = e.result.errMsg || e.result.message, s && c && (re({
  30920. token: s,
  30921. tokenExpired: c
  30922. }), _this20._callbackAuth("refreshToken", [{
  30923. token: s,
  30924. tokenExpired: c
  30925. }]), _this20._callback("refreshToken", [{
  30926. token: s,
  30927. tokenExpired: c
  30928. }]), Y(B, {
  30929. token: s,
  30930. tokenExpired: c
  30931. }));
  30932. var l = [{
  30933. prop: "affectedDocs",
  30934. tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"
  30935. }, {
  30936. prop: "code",
  30937. tips: "code不再推荐使用,请使用errCode替代"
  30938. }, {
  30939. prop: "message",
  30940. tips: "message不再推荐使用,请使用errMsg替代"
  30941. }];
  30942. var _loop2 = function _loop2(_t15) {
  30943. var _l$_t = l[_t15],
  30944. n = _l$_t.prop,
  30945. s = _l$_t.tips;
  30946. if (n in e.result) {
  30947. var _t16 = e.result[n];
  30948. Object.defineProperty(e.result, n, {
  30949. get: function get() {
  30950. return console.warn(s), _t16;
  30951. }
  30952. });
  30953. }
  30954. };
  30955. for (var _t15 = 0; _t15 < l.length; _t15++) {
  30956. _loop2(_t15);
  30957. }
  30958. return function (e) {
  30959. return q(M(o, "success"), e).then(function () {
  30960. return q(M(o, "complete"), e);
  30961. }).then(function () {
  30962. r(e, null);
  30963. var t = i._parseResult(e);
  30964. return Y(j, {
  30965. type: W,
  30966. content: t
  30967. }), Promise.resolve(t);
  30968. });
  30969. }(e);
  30970. }, function (e) {
  30971. /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB");
  30972. return a(new te({
  30973. code: e.code || "SYSTEM_ERROR",
  30974. message: e.message,
  30975. requestId: e.requestId
  30976. }));
  30977. });
  30978. }
  30979. }]);
  30980. return ss;
  30981. }( /*#__PURE__*/function () {
  30982. function _class5() {
  30983. var _ref46 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  30984. _ref46$uniClient = _ref46.uniClient,
  30985. e = _ref46$uniClient === void 0 ? {} : _ref46$uniClient,
  30986. _ref46$isJQL = _ref46.isJQL,
  30987. t = _ref46$isJQL === void 0 ? !1 : _ref46$isJQL;
  30988. (0, _classCallCheck2.default)(this, _class5);
  30989. this._uniClient = e, this._authCallBacks = {}, this._dbCallBacks = {}, e._isDefault && (this._dbCallBacks = L("_globalUniCloudDatabaseCallback")), t || (this.auth = Vn(this._authCallBacks)), this._isJQL = t, Object.assign(this, Vn(this._dbCallBacks)), this.env = zn({}, {
  30990. get: function get(e, t) {
  30991. return {
  30992. $env: t
  30993. };
  30994. }
  30995. }), this.Geo = zn({}, {
  30996. get: function get(e, t) {
  30997. return ts({
  30998. path: ["Geo"],
  30999. method: t
  31000. });
  31001. }
  31002. }), this.serverDate = ts({
  31003. path: [],
  31004. method: "serverDate"
  31005. }), this.RegExp = ts({
  31006. path: [],
  31007. method: "RegExp"
  31008. });
  31009. }
  31010. (0, _createClass2.default)(_class5, [{
  31011. key: "getCloudEnv",
  31012. value: function getCloudEnv(e) {
  31013. if ("string" != typeof e || !e.trim()) throw new Error("getCloudEnv参数错误");
  31014. return {
  31015. $env: e.replace("$cloudEnv_", "")
  31016. };
  31017. }
  31018. }, {
  31019. key: "_callback",
  31020. value: function _callback(e, t) {
  31021. var n = this._dbCallBacks;
  31022. n[e] && n[e].forEach(function (e) {
  31023. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  31024. });
  31025. }
  31026. }, {
  31027. key: "_callbackAuth",
  31028. value: function _callbackAuth(e, t) {
  31029. var n = this._authCallBacks;
  31030. n[e] && n[e].forEach(function (e) {
  31031. e.apply(void 0, (0, _toConsumableArray2.default)(t));
  31032. });
  31033. }
  31034. }, {
  31035. key: "multiSend",
  31036. value: function multiSend() {
  31037. var e = Array.from(arguments),
  31038. t = e.map(function (e) {
  31039. var t = e.getAction(),
  31040. n = e.getCommand();
  31041. if ("getTemp" !== n.$db[n.$db.length - 1].$method) throw new Error("multiSend只支持子命令内使用getTemp");
  31042. return {
  31043. action: t,
  31044. command: n
  31045. };
  31046. });
  31047. return this._callCloudFunction({
  31048. multiCommand: t,
  31049. queryList: e
  31050. });
  31051. }
  31052. }]);
  31053. return _class5;
  31054. }());
  31055. var rs = "token无效,跳转登录页面",
  31056. is = "token过期,跳转登录页面",
  31057. os = {
  31058. TOKEN_INVALID_TOKEN_EXPIRED: is,
  31059. TOKEN_INVALID_INVALID_CLIENTID: rs,
  31060. TOKEN_INVALID: rs,
  31061. TOKEN_INVALID_WRONG_TOKEN: rs,
  31062. TOKEN_INVALID_ANONYMOUS_USER: rs
  31063. },
  31064. as = {
  31065. "uni-id-token-expired": is,
  31066. "uni-id-check-token-failed": rs,
  31067. "uni-id-token-not-exist": rs,
  31068. "uni-id-check-device-feature-failed": rs
  31069. };
  31070. function cs(e, t) {
  31071. var n = "";
  31072. return n = e ? "".concat(e, "/").concat(t) : t, n.replace(/^\//, "");
  31073. }
  31074. function us() {
  31075. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  31076. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
  31077. var n = [],
  31078. s = [];
  31079. return e.forEach(function (e) {
  31080. !0 === e.needLogin ? n.push(cs(t, e.path)) : !1 === e.needLogin && s.push(cs(t, e.path));
  31081. }), {
  31082. needLoginPage: n,
  31083. notNeedLoginPage: s
  31084. };
  31085. }
  31086. function ls(e) {
  31087. return e.split("?")[0].replace(/^\//, "");
  31088. }
  31089. function hs() {
  31090. return function (e) {
  31091. var t = e && e.$page && e.$page.fullPath || "";
  31092. return t ? ("/" !== t.charAt(0) && (t = "/" + t), t) : t;
  31093. }(function () {
  31094. var e = getCurrentPages();
  31095. return e[e.length - 1];
  31096. }());
  31097. }
  31098. function ds() {
  31099. return ls(hs());
  31100. }
  31101. function ps() {
  31102. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
  31103. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  31104. if (!e) return !1;
  31105. if (!(t && t.list && t.list.length)) return !1;
  31106. var n = t.list,
  31107. s = ls(e);
  31108. return n.some(function (e) {
  31109. return e.pagePath === s;
  31110. });
  31111. }
  31112. var fs = !!_pages.default.uniIdRouter;
  31113. var _ref47 = function () {
  31114. var _ref28 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _pages.default,
  31115. _ref28$pages = _ref28.pages,
  31116. t = _ref28$pages === void 0 ? [] : _ref28$pages,
  31117. _ref28$subPackages = _ref28.subPackages,
  31118. n = _ref28$subPackages === void 0 ? [] : _ref28$subPackages,
  31119. _ref28$uniIdRouter = _ref28.uniIdRouter,
  31120. s = _ref28$uniIdRouter === void 0 ? {} : _ref28$uniIdRouter,
  31121. _ref28$tabBar = _ref28.tabBar,
  31122. r = _ref28$tabBar === void 0 ? {} : _ref28$tabBar;
  31123. var i = s.loginPage,
  31124. _s$needLogin = s.needLogin,
  31125. o = _s$needLogin === void 0 ? [] : _s$needLogin,
  31126. _s$resToLogin = s.resToLogin,
  31127. a = _s$resToLogin === void 0 ? !0 : _s$resToLogin,
  31128. _us = us(t),
  31129. c = _us.needLoginPage,
  31130. u = _us.notNeedLoginPage,
  31131. _ref30 = function () {
  31132. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  31133. var t = [],
  31134. n = [];
  31135. return e.forEach(function (e) {
  31136. var s = e.root,
  31137. _e$pages = e.pages,
  31138. r = _e$pages === void 0 ? [] : _e$pages,
  31139. _us2 = us(r, s),
  31140. i = _us2.needLoginPage,
  31141. o = _us2.notNeedLoginPage;
  31142. t.push.apply(t, (0, _toConsumableArray2.default)(i)), n.push.apply(n, (0, _toConsumableArray2.default)(o));
  31143. }), {
  31144. needLoginPage: t,
  31145. notNeedLoginPage: n
  31146. };
  31147. }(n),
  31148. l = _ref30.needLoginPage,
  31149. h = _ref30.notNeedLoginPage;
  31150. return {
  31151. loginPage: i,
  31152. routerNeedLogin: o,
  31153. resToLogin: a,
  31154. needLoginPage: [].concat((0, _toConsumableArray2.default)(c), (0, _toConsumableArray2.default)(l)),
  31155. notNeedLoginPage: [].concat((0, _toConsumableArray2.default)(u), (0, _toConsumableArray2.default)(h)),
  31156. loginPageInTabBar: ps(i, r)
  31157. };
  31158. }(),
  31159. gs = _ref47.loginPage,
  31160. ms = _ref47.routerNeedLogin,
  31161. ys = _ref47.resToLogin,
  31162. _s = _ref47.needLoginPage,
  31163. ws = _ref47.notNeedLoginPage,
  31164. vs = _ref47.loginPageInTabBar;
  31165. if (_s.indexOf(gs) > -1) throw new Error("Login page [".concat(gs, "] should not be \"needLogin\", please check your pages.json"));
  31166. function Is(e) {
  31167. var t = ds();
  31168. if ("/" === e.charAt(0)) return e;
  31169. var _e$split = e.split("?"),
  31170. _e$split2 = (0, _slicedToArray2.default)(_e$split, 2),
  31171. n = _e$split2[0],
  31172. s = _e$split2[1],
  31173. r = n.replace(/^\//, "").split("/"),
  31174. i = t.split("/");
  31175. i.pop();
  31176. for (var _e23 = 0; _e23 < r.length; _e23++) {
  31177. var _t17 = r[_e23];
  31178. ".." === _t17 ? i.pop() : "." !== _t17 && i.push(_t17);
  31179. }
  31180. return "" === i[0] && i.shift(), "/" + i.join("/") + (s ? "?" + s : "");
  31181. }
  31182. function Ss(e) {
  31183. var t = ls(Is(e));
  31184. return !(ws.indexOf(t) > -1) && (_s.indexOf(t) > -1 || ms.some(function (t) {
  31185. return function (e, t) {
  31186. return new RegExp(t).test(e);
  31187. }(e, t);
  31188. }));
  31189. }
  31190. function bs(_ref48) {
  31191. var e = _ref48.redirect;
  31192. var t = ls(e),
  31193. n = ls(gs);
  31194. return ds() !== n && t !== n;
  31195. }
  31196. function ks() {
  31197. var _ref49 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  31198. e = _ref49.api,
  31199. t = _ref49.redirect;
  31200. if (!t || !bs({
  31201. redirect: t
  31202. })) return;
  31203. var n = function (e, t) {
  31204. return "/" !== e.charAt(0) && (e = "/" + e), t ? e.indexOf("?") > -1 ? e + "&uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e + "?uniIdRedirectUrl=".concat(encodeURIComponent(t)) : e;
  31205. }(gs, t);
  31206. vs ? "navigateTo" !== e && "redirectTo" !== e || (e = "switchTab") : "switchTab" === e && (e = "navigateTo");
  31207. var s = {
  31208. navigateTo: uni.navigateTo,
  31209. redirectTo: uni.redirectTo,
  31210. switchTab: uni.switchTab,
  31211. reLaunch: uni.reLaunch
  31212. };
  31213. setTimeout(function () {
  31214. s[e]({
  31215. url: n
  31216. });
  31217. }, 0);
  31218. }
  31219. function As() {
  31220. var _ref50 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  31221. e = _ref50.url;
  31222. var t = {
  31223. abortLoginPageJump: !1,
  31224. autoToLoginPage: !1
  31225. },
  31226. n = function () {
  31227. var _se4 = se(),
  31228. e = _se4.token,
  31229. t = _se4.tokenExpired;
  31230. var n;
  31231. if (e) {
  31232. if (t < Date.now()) {
  31233. var _e24 = "uni-id-token-expired";
  31234. n = {
  31235. errCode: _e24,
  31236. errMsg: as[_e24]
  31237. };
  31238. }
  31239. } else {
  31240. var _e25 = "uni-id-check-token-failed";
  31241. n = {
  31242. errCode: _e25,
  31243. errMsg: as[_e25]
  31244. };
  31245. }
  31246. return n;
  31247. }();
  31248. if (Ss(e) && n) {
  31249. n.uniIdRedirectUrl = e;
  31250. if (z($).length > 0) return setTimeout(function () {
  31251. Y($, n);
  31252. }, 0), t.abortLoginPageJump = !0, t;
  31253. t.autoToLoginPage = !0;
  31254. }
  31255. return t;
  31256. }
  31257. function Cs() {
  31258. !function () {
  31259. var e = hs(),
  31260. _As = As({
  31261. url: e
  31262. }),
  31263. t = _As.abortLoginPageJump,
  31264. n = _As.autoToLoginPage;
  31265. t || n && ks({
  31266. api: "redirectTo",
  31267. redirect: e
  31268. });
  31269. }();
  31270. var e = ["navigateTo", "redirectTo", "reLaunch", "switchTab"];
  31271. var _loop3 = function _loop3(_t18) {
  31272. var n = e[_t18];
  31273. uni.addInterceptor(n, {
  31274. invoke: function invoke(e) {
  31275. var _As2 = As({
  31276. url: e.url
  31277. }),
  31278. t = _As2.abortLoginPageJump,
  31279. s = _As2.autoToLoginPage;
  31280. return t ? e : s ? (ks({
  31281. api: n,
  31282. redirect: Is(e.url)
  31283. }), !1) : e;
  31284. }
  31285. });
  31286. };
  31287. for (var _t18 = 0; _t18 < e.length; _t18++) {
  31288. _loop3(_t18);
  31289. }
  31290. }
  31291. function Ps() {
  31292. this.onResponse(function (e) {
  31293. var t = e.type,
  31294. n = e.content;
  31295. var s = !1;
  31296. switch (t) {
  31297. case "cloudobject":
  31298. s = function (e) {
  31299. if ("object" != (0, _typeof2.default)(e)) return !1;
  31300. var _ref51 = e || {},
  31301. t = _ref51.errCode;
  31302. return t in as;
  31303. }(n);
  31304. break;
  31305. case "clientdb":
  31306. s = function (e) {
  31307. if ("object" != (0, _typeof2.default)(e)) return !1;
  31308. var _ref52 = e || {},
  31309. t = _ref52.errCode;
  31310. return t in os;
  31311. }(n);
  31312. }
  31313. s && function () {
  31314. var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  31315. var t = z($);
  31316. Z().then(function () {
  31317. var n = hs();
  31318. if (n && bs({
  31319. redirect: n
  31320. })) return t.length > 0 ? Y($, Object.assign({
  31321. uniIdRedirectUrl: n
  31322. }, e)) : void (gs && ks({
  31323. api: "navigateTo",
  31324. redirect: n
  31325. }));
  31326. });
  31327. }(n);
  31328. });
  31329. }
  31330. function Ts(e) {
  31331. !function (e) {
  31332. e.onResponse = function (e) {
  31333. V(j, e);
  31334. }, e.offResponse = function (e) {
  31335. G(j, e);
  31336. };
  31337. }(e), function (e) {
  31338. e.onNeedLogin = function (e) {
  31339. V($, e);
  31340. }, e.offNeedLogin = function (e) {
  31341. G($, e);
  31342. }, fs && (L("_globalUniCloudStatus").needLoginInit || (L("_globalUniCloudStatus").needLoginInit = !0, Z().then(function () {
  31343. Cs.call(e);
  31344. }), ys && Ps.call(e)));
  31345. }(e), function (e) {
  31346. e.onRefreshToken = function (e) {
  31347. V(B, e);
  31348. }, e.offRefreshToken = function (e) {
  31349. G(B, e);
  31350. };
  31351. }(e);
  31352. }
  31353. var xs;
  31354. var Os = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
  31355. Es = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  31356. function Ls() {
  31357. var e = se().token || "",
  31358. t = e.split(".");
  31359. if (!e || 3 !== t.length) return {
  31360. uid: null,
  31361. role: [],
  31362. permission: [],
  31363. tokenExpired: 0
  31364. };
  31365. var n;
  31366. try {
  31367. n = JSON.parse((s = t[1], decodeURIComponent(xs(s).split("").map(function (e) {
  31368. return "%" + ("00" + e.charCodeAt(0).toString(16)).slice(-2);
  31369. }).join(""))));
  31370. } catch (e) {
  31371. throw new Error("获取当前用户信息出错,详细错误信息为:" + e.message);
  31372. }
  31373. var s;
  31374. return n.tokenExpired = 1e3 * n.exp, delete n.exp, delete n.iat, n;
  31375. }
  31376. xs = "function" != typeof atob ? function (e) {
  31377. if (e = String(e).replace(/[\t\n\f\r ]+/g, ""), !Es.test(e)) throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  31378. var t;
  31379. e += "==".slice(2 - (3 & e.length));
  31380. for (var n, s, r = "", i = 0; i < e.length;) {
  31381. t = Os.indexOf(e.charAt(i++)) << 18 | Os.indexOf(e.charAt(i++)) << 12 | (n = Os.indexOf(e.charAt(i++))) << 6 | (s = Os.indexOf(e.charAt(i++))), r += 64 === n ? String.fromCharCode(t >> 16 & 255) : 64 === s ? String.fromCharCode(t >> 16 & 255, t >> 8 & 255) : String.fromCharCode(t >> 16 & 255, t >> 8 & 255, 255 & t);
  31382. }
  31383. return r;
  31384. } : atob;
  31385. var Rs = n(function (e, t) {
  31386. Object.defineProperty(t, "__esModule", {
  31387. value: !0
  31388. });
  31389. var n = "chooseAndUploadFile:ok",
  31390. s = "chooseAndUploadFile:fail";
  31391. function r(e, t) {
  31392. return e.tempFiles.forEach(function (e, n) {
  31393. e.name || (e.name = e.path.substring(e.path.lastIndexOf("/") + 1)), t && (e.fileType = t), e.cloudPath = Date.now() + "_" + n + e.name.substring(e.name.lastIndexOf("."));
  31394. }), e.tempFilePaths || (e.tempFilePaths = e.tempFiles.map(function (e) {
  31395. return e.path;
  31396. })), e;
  31397. }
  31398. function i(e, t, _ref53) {
  31399. var s = _ref53.onChooseFile,
  31400. r = _ref53.onUploadProgress;
  31401. return t.then(function (e) {
  31402. if (s) {
  31403. var _t19 = s(e);
  31404. if (void 0 !== _t19) return Promise.resolve(_t19).then(function (t) {
  31405. return void 0 === t ? e : t;
  31406. });
  31407. }
  31408. return e;
  31409. }).then(function (t) {
  31410. return !1 === t ? {
  31411. errMsg: n,
  31412. tempFilePaths: [],
  31413. tempFiles: []
  31414. } : function (e, t) {
  31415. var s = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 5;
  31416. var r = arguments.length > 3 ? arguments[3] : undefined;
  31417. (t = Object.assign({}, t)).errMsg = n;
  31418. var i = t.tempFiles,
  31419. o = i.length;
  31420. var a = 0;
  31421. return new Promise(function (n) {
  31422. for (; a < s;) {
  31423. c();
  31424. }
  31425. function c() {
  31426. var s = a++;
  31427. if (s >= o) return void (!i.find(function (e) {
  31428. return !e.url && !e.errMsg;
  31429. }) && n(t));
  31430. var u = i[s];
  31431. e.uploadFile({
  31432. provider: u.provider,
  31433. filePath: u.path,
  31434. cloudPath: u.cloudPath,
  31435. fileType: u.fileType,
  31436. cloudPathAsRealPath: u.cloudPathAsRealPath,
  31437. onUploadProgress: function onUploadProgress(e) {
  31438. e.index = s, e.tempFile = u, e.tempFilePath = u.path, r && r(e);
  31439. }
  31440. }).then(function (e) {
  31441. u.url = e.fileID, s < o && c();
  31442. }).catch(function (e) {
  31443. u.errMsg = e.errMsg || e.message, s < o && c();
  31444. });
  31445. }
  31446. });
  31447. }(e, t, 5, r);
  31448. });
  31449. }
  31450. t.initChooseAndUploadFile = function (e) {
  31451. return function () {
  31452. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
  31453. type: "all"
  31454. };
  31455. return "image" === t.type ? i(e, function (e) {
  31456. var t = e.count,
  31457. n = e.sizeType,
  31458. _e$sourceType = e.sourceType,
  31459. i = _e$sourceType === void 0 ? ["album", "camera"] : _e$sourceType,
  31460. o = e.extension;
  31461. return new Promise(function (e, a) {
  31462. uni.chooseImage({
  31463. count: t,
  31464. sizeType: n,
  31465. sourceType: i,
  31466. extension: o,
  31467. success: function success(t) {
  31468. e(r(t, "image"));
  31469. },
  31470. fail: function fail(e) {
  31471. a({
  31472. errMsg: e.errMsg.replace("chooseImage:fail", s)
  31473. });
  31474. }
  31475. });
  31476. });
  31477. }(t), t) : "video" === t.type ? i(e, function (e) {
  31478. var t = e.camera,
  31479. n = e.compressed,
  31480. i = e.maxDuration,
  31481. _e$sourceType2 = e.sourceType,
  31482. o = _e$sourceType2 === void 0 ? ["album", "camera"] : _e$sourceType2,
  31483. a = e.extension;
  31484. return new Promise(function (e, c) {
  31485. uni.chooseVideo({
  31486. camera: t,
  31487. compressed: n,
  31488. maxDuration: i,
  31489. sourceType: o,
  31490. extension: a,
  31491. success: function success(t) {
  31492. var n = t.tempFilePath,
  31493. s = t.duration,
  31494. i = t.size,
  31495. o = t.height,
  31496. a = t.width;
  31497. e(r({
  31498. errMsg: "chooseVideo:ok",
  31499. tempFilePaths: [n],
  31500. tempFiles: [{
  31501. name: t.tempFile && t.tempFile.name || "",
  31502. path: n,
  31503. size: i,
  31504. type: t.tempFile && t.tempFile.type || "",
  31505. width: a,
  31506. height: o,
  31507. duration: s,
  31508. fileType: "video",
  31509. cloudPath: ""
  31510. }]
  31511. }, "video"));
  31512. },
  31513. fail: function fail(e) {
  31514. c({
  31515. errMsg: e.errMsg.replace("chooseVideo:fail", s)
  31516. });
  31517. }
  31518. });
  31519. });
  31520. }(t), t) : i(e, function (e) {
  31521. var t = e.count,
  31522. n = e.extension;
  31523. return new Promise(function (e, i) {
  31524. var o = uni.chooseFile;
  31525. if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o = wx.chooseMessageFile), "function" != typeof o) return i({
  31526. errMsg: s + " 请指定 type 类型,该平台仅支持选择 image 或 video。"
  31527. });
  31528. o({
  31529. type: "all",
  31530. count: t,
  31531. extension: n,
  31532. success: function success(t) {
  31533. e(r(t));
  31534. },
  31535. fail: function fail(e) {
  31536. i({
  31537. errMsg: e.errMsg.replace("chooseFile:fail", s)
  31538. });
  31539. }
  31540. });
  31541. });
  31542. }(t), t);
  31543. };
  31544. };
  31545. }),
  31546. Us = t(Rs);
  31547. var Ns = "manual";
  31548. function Ds(e) {
  31549. return {
  31550. props: {
  31551. localdata: {
  31552. type: Array,
  31553. default: function _default() {
  31554. return [];
  31555. }
  31556. },
  31557. options: {
  31558. type: [Object, Array],
  31559. default: function _default() {
  31560. return {};
  31561. }
  31562. },
  31563. spaceInfo: {
  31564. type: Object,
  31565. default: function _default() {
  31566. return {};
  31567. }
  31568. },
  31569. collection: {
  31570. type: [String, Array],
  31571. default: ""
  31572. },
  31573. action: {
  31574. type: String,
  31575. default: ""
  31576. },
  31577. field: {
  31578. type: String,
  31579. default: ""
  31580. },
  31581. orderby: {
  31582. type: String,
  31583. default: ""
  31584. },
  31585. where: {
  31586. type: [String, Object],
  31587. default: ""
  31588. },
  31589. pageData: {
  31590. type: String,
  31591. default: "add"
  31592. },
  31593. pageCurrent: {
  31594. type: Number,
  31595. default: 1
  31596. },
  31597. pageSize: {
  31598. type: Number,
  31599. default: 20
  31600. },
  31601. getcount: {
  31602. type: [Boolean, String],
  31603. default: !1
  31604. },
  31605. gettree: {
  31606. type: [Boolean, String],
  31607. default: !1
  31608. },
  31609. gettreepath: {
  31610. type: [Boolean, String],
  31611. default: !1
  31612. },
  31613. startwith: {
  31614. type: String,
  31615. default: ""
  31616. },
  31617. limitlevel: {
  31618. type: Number,
  31619. default: 10
  31620. },
  31621. groupby: {
  31622. type: String,
  31623. default: ""
  31624. },
  31625. groupField: {
  31626. type: String,
  31627. default: ""
  31628. },
  31629. distinct: {
  31630. type: [Boolean, String],
  31631. default: !1
  31632. },
  31633. foreignKey: {
  31634. type: String,
  31635. default: ""
  31636. },
  31637. loadtime: {
  31638. type: String,
  31639. default: "auto"
  31640. },
  31641. manual: {
  31642. type: Boolean,
  31643. default: !1
  31644. }
  31645. },
  31646. data: function data() {
  31647. return {
  31648. mixinDatacomLoading: !1,
  31649. mixinDatacomHasMore: !1,
  31650. mixinDatacomResData: [],
  31651. mixinDatacomErrorMessage: "",
  31652. mixinDatacomPage: {},
  31653. mixinDatacomError: null
  31654. };
  31655. },
  31656. created: function created() {
  31657. var _this21 = this;
  31658. this.mixinDatacomPage = {
  31659. current: this.pageCurrent,
  31660. size: this.pageSize,
  31661. count: 0
  31662. }, this.$watch(function () {
  31663. var e = [];
  31664. return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {
  31665. e.push(_this21[t]);
  31666. }), e;
  31667. }, function (e, t) {
  31668. if (_this21.loadtime === Ns) return;
  31669. var n = !1;
  31670. var s = [];
  31671. for (var _r9 = 2; _r9 < e.length; _r9++) {
  31672. e[_r9] !== t[_r9] && (s.push(e[_r9]), n = !0);
  31673. }
  31674. e[0] !== t[0] && (_this21.mixinDatacomPage.current = _this21.pageCurrent), _this21.mixinDatacomPage.size = _this21.pageSize, _this21.onMixinDatacomPropsChange(n, s);
  31675. });
  31676. },
  31677. methods: {
  31678. onMixinDatacomPropsChange: function onMixinDatacomPropsChange(e, t) {},
  31679. mixinDatacomEasyGet: function mixinDatacomEasyGet() {
  31680. var _this22 = this;
  31681. var _ref54 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  31682. _ref54$getone = _ref54.getone,
  31683. e = _ref54$getone === void 0 ? !1 : _ref54$getone,
  31684. t = _ref54.success,
  31685. n = _ref54.fail;
  31686. this.mixinDatacomLoading || (this.mixinDatacomLoading = !0, this.mixinDatacomErrorMessage = "", this.mixinDatacomError = null, this.mixinDatacomGet().then(function (n) {
  31687. _this22.mixinDatacomLoading = !1;
  31688. var _n$result = n.result,
  31689. s = _n$result.data,
  31690. r = _n$result.count;
  31691. _this22.getcount && (_this22.mixinDatacomPage.count = r), _this22.mixinDatacomHasMore = s.length < _this22.pageSize;
  31692. var i = e ? s.length ? s[0] : void 0 : s;
  31693. _this22.mixinDatacomResData = i, t && t(i);
  31694. }).catch(function (e) {
  31695. _this22.mixinDatacomLoading = !1, _this22.mixinDatacomErrorMessage = e, _this22.mixinDatacomError = e, n && n(e);
  31696. }));
  31697. },
  31698. mixinDatacomGet: function mixinDatacomGet() {
  31699. var _n14;
  31700. var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  31701. var n;
  31702. t = t || {}, n = "undefined" != typeof __uniX && __uniX ? e.databaseForJQL(this.spaceInfo) : e.database(this.spaceInfo);
  31703. var s = t.action || this.action;
  31704. s && (n = n.action(s));
  31705. var r = t.collection || this.collection;
  31706. n = Array.isArray(r) ? (_n14 = n).collection.apply(_n14, (0, _toConsumableArray2.default)(r)) : n.collection(r);
  31707. var i = t.where || this.where;
  31708. i && Object.keys(i).length && (n = n.where(i));
  31709. var o = t.field || this.field;
  31710. o && (n = n.field(o));
  31711. var a = t.foreignKey || this.foreignKey;
  31712. a && (n = n.foreignKey(a));
  31713. var c = t.groupby || this.groupby;
  31714. c && (n = n.groupBy(c));
  31715. var u = t.groupField || this.groupField;
  31716. u && (n = n.groupField(u));
  31717. !0 === (void 0 !== t.distinct ? t.distinct : this.distinct) && (n = n.distinct());
  31718. var l = t.orderby || this.orderby;
  31719. l && (n = n.orderBy(l));
  31720. var h = void 0 !== t.pageCurrent ? t.pageCurrent : this.mixinDatacomPage.current,
  31721. d = void 0 !== t.pageSize ? t.pageSize : this.mixinDatacomPage.size,
  31722. p = void 0 !== t.getcount ? t.getcount : this.getcount,
  31723. f = void 0 !== t.gettree ? t.gettree : this.gettree,
  31724. g = void 0 !== t.gettreepath ? t.gettreepath : this.gettreepath,
  31725. m = {
  31726. getCount: p
  31727. },
  31728. y = {
  31729. limitLevel: void 0 !== t.limitlevel ? t.limitlevel : this.limitlevel,
  31730. startWith: void 0 !== t.startwith ? t.startwith : this.startwith
  31731. };
  31732. return f && (m.getTree = y), g && (m.getTreePath = y), n = n.skip(d * (h - 1)).limit(d).get(m), n;
  31733. }
  31734. }
  31735. };
  31736. }
  31737. function qs(e) {
  31738. return function (t) {
  31739. var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  31740. n = function (e) {
  31741. var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  31742. return e.customUI = t.customUI || e.customUI, e.parseSystemError = t.parseSystemError || e.parseSystemError, Object.assign(e.loadingOptions, t.loadingOptions), Object.assign(e.errorOptions, t.errorOptions), "object" == (0, _typeof2.default)(t.secretMethods) && (e.secretMethods = t.secretMethods), e;
  31743. }({
  31744. customUI: !1,
  31745. loadingOptions: {
  31746. title: "加载中...",
  31747. mask: !0
  31748. },
  31749. errorOptions: {
  31750. type: "modal",
  31751. retry: !1
  31752. }
  31753. }, n);
  31754. var _n15 = n,
  31755. s = _n15.customUI,
  31756. r = _n15.loadingOptions,
  31757. i = _n15.errorOptions,
  31758. o = _n15.parseSystemError,
  31759. a = !s;
  31760. return new Proxy({}, {
  31761. get: function get(s, c) {
  31762. switch (c) {
  31763. case "toString":
  31764. return "[object UniCloudObject]";
  31765. case "toJSON":
  31766. return {};
  31767. }
  31768. return function () {
  31769. var _ref55 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  31770. e = _ref55.fn,
  31771. t = _ref55.interceptorName,
  31772. n = _ref55.getCallbackArgs;
  31773. return /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee55() {
  31774. var _len2,
  31775. s,
  31776. _key2,
  31777. r,
  31778. i,
  31779. o,
  31780. _args = arguments;
  31781. return _regenerator.default.wrap(function _callee55$(_context55) {
  31782. while (1) {
  31783. switch (_context55.prev = _context55.next) {
  31784. case 0:
  31785. for (_len2 = _args.length, s = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  31786. s[_key2] = _args[_key2];
  31787. }
  31788. r = n ? n({
  31789. params: s
  31790. }) : {};
  31791. _context55.prev = 2;
  31792. _context55.next = 5;
  31793. return q(M(t, "invoke"), _objectSpread({}, r));
  31794. case 5:
  31795. _context55.next = 7;
  31796. return e.apply(void 0, s);
  31797. case 7:
  31798. i = _context55.sent;
  31799. _context55.next = 10;
  31800. return q(M(t, "success"), _objectSpread(_objectSpread({}, r), {}, {
  31801. result: i
  31802. }));
  31803. case 10:
  31804. return _context55.abrupt("return", i);
  31805. case 13:
  31806. _context55.prev = 13;
  31807. _context55.t0 = _context55["catch"](2);
  31808. o = _context55.t0;
  31809. _context55.next = 18;
  31810. return q(M(t, "fail"), _objectSpread(_objectSpread({}, r), {}, {
  31811. error: o
  31812. }));
  31813. case 18:
  31814. throw o;
  31815. case 19:
  31816. _context55.prev = 19;
  31817. _context55.next = 22;
  31818. return q(M(t, "complete"), o ? _objectSpread(_objectSpread({}, r), {}, {
  31819. error: o
  31820. }) : _objectSpread(_objectSpread({}, r), {}, {
  31821. result: i
  31822. }));
  31823. case 22:
  31824. return _context55.finish(19);
  31825. case 23:
  31826. case "end":
  31827. return _context55.stop();
  31828. }
  31829. }
  31830. }, _callee55, null, [[2, 13, 19, 23]]);
  31831. }));
  31832. }({
  31833. fn: function () {
  31834. var _s17 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee57() {
  31835. var h,
  31836. _len3,
  31837. l,
  31838. _key3,
  31839. d,
  31840. p,
  31841. _ref57,
  31842. f,
  31843. g,
  31844. m,
  31845. y,
  31846. _e26,
  31847. _yield,
  31848. _t20,
  31849. _n16,
  31850. _args4 = arguments;
  31851. return _regenerator.default.wrap(function _callee57$(_context57) {
  31852. while (1) {
  31853. switch (_context57.prev = _context57.next) {
  31854. case 0:
  31855. a && uni.showLoading({
  31856. title: r.title,
  31857. mask: r.mask
  31858. });
  31859. for (_len3 = _args4.length, l = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  31860. l[_key3] = _args4[_key3];
  31861. }
  31862. d = {
  31863. name: t,
  31864. type: u,
  31865. data: {
  31866. method: c,
  31867. params: l
  31868. }
  31869. };
  31870. "object" == (0, _typeof2.default)(n.secretMethods) && function (e, t) {
  31871. var n = t.data.method,
  31872. s = e.secretMethods || {},
  31873. r = s[n] || s["*"];
  31874. r && (t.secretType = r);
  31875. }(n, d);
  31876. p = !1;
  31877. _context57.prev = 5;
  31878. _context57.next = 8;
  31879. return e.callFunction(d);
  31880. case 8:
  31881. h = _context57.sent;
  31882. _context57.next = 14;
  31883. break;
  31884. case 11:
  31885. _context57.prev = 11;
  31886. _context57.t0 = _context57["catch"](5);
  31887. p = !0, h = {
  31888. result: new te(_context57.t0)
  31889. };
  31890. case 14:
  31891. _ref57 = h.result || {}, f = _ref57.errSubject, g = _ref57.errCode, m = _ref57.errMsg, y = _ref57.newToken;
  31892. if (!(a && uni.hideLoading(), y && y.token && y.tokenExpired && (re(y), Y(B, _objectSpread({}, y))), g)) {
  31893. _context57.next = 39;
  31894. break;
  31895. }
  31896. _e26 = m;
  31897. if (!(p && o)) {
  31898. _context57.next = 24;
  31899. break;
  31900. }
  31901. _context57.next = 20;
  31902. return o({
  31903. objectName: t,
  31904. methodName: c,
  31905. params: l,
  31906. errSubject: f,
  31907. errCode: g,
  31908. errMsg: m
  31909. });
  31910. case 20:
  31911. _context57.t1 = _context57.sent.errMsg;
  31912. if (_context57.t1) {
  31913. _context57.next = 23;
  31914. break;
  31915. }
  31916. _context57.t1 = m;
  31917. case 23:
  31918. _e26 = _context57.t1;
  31919. case 24:
  31920. if (!a) {
  31921. _context57.next = 37;
  31922. break;
  31923. }
  31924. if (!("toast" === i.type)) {
  31925. _context57.next = 29;
  31926. break;
  31927. }
  31928. uni.showToast({
  31929. title: _e26,
  31930. icon: "none"
  31931. });
  31932. _context57.next = 37;
  31933. break;
  31934. case 29:
  31935. if (!("modal" !== i.type)) {
  31936. _context57.next = 31;
  31937. break;
  31938. }
  31939. throw new Error("Invalid errorOptions.type: ".concat(i.type));
  31940. case 31:
  31941. _context57.next = 33;
  31942. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee56() {
  31943. var _ref59,
  31944. e,
  31945. t,
  31946. n,
  31947. s,
  31948. r,
  31949. _args2 = arguments;
  31950. return _regenerator.default.wrap(function _callee56$(_context56) {
  31951. while (1) {
  31952. switch (_context56.prev = _context56.next) {
  31953. case 0:
  31954. _ref59 = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : {}, e = _ref59.title, t = _ref59.content, n = _ref59.showCancel, s = _ref59.cancelText, r = _ref59.confirmText;
  31955. return _context56.abrupt("return", new Promise(function (i, o) {
  31956. uni.showModal({
  31957. title: e,
  31958. content: t,
  31959. showCancel: n,
  31960. cancelText: s,
  31961. confirmText: r,
  31962. success: function success(e) {
  31963. i(e);
  31964. },
  31965. fail: function fail() {
  31966. i({
  31967. confirm: !1,
  31968. cancel: !0
  31969. });
  31970. }
  31971. });
  31972. }));
  31973. case 2:
  31974. case "end":
  31975. return _context56.stop();
  31976. }
  31977. }
  31978. }, _callee56);
  31979. }))({
  31980. title: "提示",
  31981. content: _e26,
  31982. showCancel: i.retry,
  31983. cancelText: "取消",
  31984. confirmText: i.retry ? "重试" : "确定"
  31985. });
  31986. case 33:
  31987. _yield = _context57.sent;
  31988. _t20 = _yield.confirm;
  31989. if (!(i.retry && _t20)) {
  31990. _context57.next = 37;
  31991. break;
  31992. }
  31993. return _context57.abrupt("return", s.apply(void 0, l));
  31994. case 37:
  31995. _n16 = new te({
  31996. subject: f,
  31997. code: g,
  31998. message: m,
  31999. requestId: h.requestId
  32000. });
  32001. throw _n16.detail = h.result, Y(j, {
  32002. type: J,
  32003. content: _n16
  32004. }), _n16;
  32005. case 39:
  32006. return _context57.abrupt("return", (Y(j, {
  32007. type: J,
  32008. content: h.result
  32009. }), h.result));
  32010. case 40:
  32011. case "end":
  32012. return _context57.stop();
  32013. }
  32014. }
  32015. }, _callee57, null, [[5, 11]]);
  32016. }));
  32017. function s() {
  32018. return _s17.apply(this, arguments);
  32019. }
  32020. return s;
  32021. }(),
  32022. interceptorName: "callObject",
  32023. getCallbackArgs: function getCallbackArgs() {
  32024. var _ref60 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  32025. e = _ref60.params;
  32026. return {
  32027. objectName: t,
  32028. methodName: c,
  32029. params: e
  32030. };
  32031. }
  32032. });
  32033. }
  32034. });
  32035. };
  32036. }
  32037. function Ms(e) {
  32038. return L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e.config.spaceId));
  32039. }
  32040. function Fs() {
  32041. return _Fs.apply(this, arguments);
  32042. }
  32043. function _Fs() {
  32044. _Fs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee62() {
  32045. var _ref71,
  32046. e,
  32047. _ref71$callLoginByWei,
  32048. t,
  32049. n,
  32050. s,
  32051. r,
  32052. _args9 = arguments;
  32053. return _regenerator.default.wrap(function _callee62$(_context62) {
  32054. while (1) {
  32055. switch (_context62.prev = _context62.next) {
  32056. case 0:
  32057. _ref71 = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : {}, e = _ref71.openid, _ref71$callLoginByWei = _ref71.callLoginByWeixin, t = _ref71$callLoginByWei === void 0 ? !1 : _ref71$callLoginByWei;
  32058. n = Ms(this);
  32059. if (!("mp-weixin" !== C)) {
  32060. _context62.next = 4;
  32061. break;
  32062. }
  32063. throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(C, "`"));
  32064. case 4:
  32065. if (!(e && t)) {
  32066. _context62.next = 6;
  32067. break;
  32068. }
  32069. throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");
  32070. case 6:
  32071. if (!e) {
  32072. _context62.next = 8;
  32073. break;
  32074. }
  32075. return _context62.abrupt("return", (n.mpWeixinOpenid = e, {}));
  32076. case 8:
  32077. _context62.next = 10;
  32078. return new Promise(function (e, t) {
  32079. uni.login({
  32080. success: function success(t) {
  32081. e(t.code);
  32082. },
  32083. fail: function fail(e) {
  32084. t(new Error(e.errMsg));
  32085. }
  32086. });
  32087. });
  32088. case 10:
  32089. s = _context62.sent;
  32090. r = this.importObject("uni-id-co", {
  32091. customUI: !0
  32092. });
  32093. _context62.next = 14;
  32094. return r.secureNetworkHandshakeByWeixin({
  32095. code: s,
  32096. callLoginByWeixin: t
  32097. });
  32098. case 14:
  32099. n.mpWeixinCode = s;
  32100. return _context62.abrupt("return", {
  32101. code: s
  32102. });
  32103. case 16:
  32104. case "end":
  32105. return _context62.stop();
  32106. }
  32107. }
  32108. }, _callee62, this);
  32109. }));
  32110. return _Fs.apply(this, arguments);
  32111. }
  32112. function Ks(_x46) {
  32113. return _Ks.apply(this, arguments);
  32114. }
  32115. function _Ks() {
  32116. _Ks = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee63(e) {
  32117. var t;
  32118. return _regenerator.default.wrap(function _callee63$(_context63) {
  32119. while (1) {
  32120. switch (_context63.prev = _context63.next) {
  32121. case 0:
  32122. t = Ms(this);
  32123. return _context63.abrupt("return", (t.initPromise || (t.initPromise = Fs.call(this, e).then(function (e) {
  32124. return e;
  32125. }).catch(function (e) {
  32126. throw delete t.initPromise, e;
  32127. })), t.initPromise));
  32128. case 2:
  32129. case "end":
  32130. return _context63.stop();
  32131. }
  32132. }
  32133. }, _callee63, this);
  32134. }));
  32135. return _Ks.apply(this, arguments);
  32136. }
  32137. function js(e) {
  32138. return function () {
  32139. var _ref61 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  32140. t = _ref61.openid,
  32141. _ref61$callLoginByWei = _ref61.callLoginByWeixin,
  32142. n = _ref61$callLoginByWei === void 0 ? !1 : _ref61$callLoginByWei;
  32143. return Ks.call(e, {
  32144. openid: t,
  32145. callLoginByWeixin: n
  32146. });
  32147. };
  32148. }
  32149. function $s(e) {
  32150. !function (e) {
  32151. ue = e;
  32152. }(e);
  32153. }
  32154. function Bs(e) {
  32155. var t = {
  32156. getSystemInfo: uni.getSystemInfo,
  32157. getPushClientId: uni.getPushClientId
  32158. };
  32159. return function (n) {
  32160. return new Promise(function (s, r) {
  32161. t[e](_objectSpread(_objectSpread({}, n), {}, {
  32162. success: function success(e) {
  32163. s(e);
  32164. },
  32165. fail: function fail(e) {
  32166. r(e);
  32167. }
  32168. }));
  32169. });
  32170. };
  32171. }
  32172. var Ws = /*#__PURE__*/function (_ref62) {
  32173. (0, _inherits2.default)(Ws, _ref62);
  32174. var _super11 = _createSuper(Ws);
  32175. function Ws() {
  32176. var _this23;
  32177. (0, _classCallCheck2.default)(this, Ws);
  32178. _this23 = _super11.call(this), _this23._uniPushMessageCallback = _this23._receivePushMessage.bind((0, _assertThisInitialized2.default)(_this23)), _this23._currentMessageId = -1, _this23._payloadQueue = [];
  32179. return _this23;
  32180. }
  32181. (0, _createClass2.default)(Ws, [{
  32182. key: "init",
  32183. value: function init() {
  32184. var _this24 = this;
  32185. return Promise.all([Bs("getSystemInfo")(), Bs("getPushClientId")()]).then(function () {
  32186. var _ref63 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [],
  32187. _ref64 = (0, _slicedToArray2.default)(_ref63, 2),
  32188. _ref64$ = _ref64[0];
  32189. _ref64$ = _ref64$ === void 0 ? {} : _ref64$;
  32190. var e = _ref64$.appId,
  32191. _ref64$2 = _ref64[1];
  32192. _ref64$2 = _ref64$2 === void 0 ? {} : _ref64$2;
  32193. var t = _ref64$2.cid;
  32194. if (!e) throw new Error("Invalid appId, please check the manifest.json file");
  32195. if (!t) throw new Error("Invalid push client id");
  32196. _this24._appId = e, _this24._pushClientId = t, _this24._seqId = Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5), _this24.emit("open"), _this24._initMessageListener();
  32197. }, function (e) {
  32198. throw _this24.emit("error", e), _this24.close(), e;
  32199. });
  32200. }
  32201. }, {
  32202. key: "open",
  32203. value: function () {
  32204. var _open = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee58() {
  32205. return _regenerator.default.wrap(function _callee58$(_context58) {
  32206. while (1) {
  32207. switch (_context58.prev = _context58.next) {
  32208. case 0:
  32209. return _context58.abrupt("return", this.init());
  32210. case 1:
  32211. case "end":
  32212. return _context58.stop();
  32213. }
  32214. }
  32215. }, _callee58, this);
  32216. }));
  32217. function open() {
  32218. return _open.apply(this, arguments);
  32219. }
  32220. return open;
  32221. }()
  32222. }, {
  32223. key: "_isUniCloudSSE",
  32224. value: function _isUniCloudSSE(e) {
  32225. if ("receive" !== e.type) return !1;
  32226. var t = e && e.data && e.data.payload;
  32227. return !(!t || "UNI_CLOUD_SSE" !== t.channel || t.seqId !== this._seqId);
  32228. }
  32229. }, {
  32230. key: "_receivePushMessage",
  32231. value: function _receivePushMessage(e) {
  32232. if (!this._isUniCloudSSE(e)) return;
  32233. var t = e && e.data && e.data.payload,
  32234. n = t.action,
  32235. s = t.messageId,
  32236. r = t.message;
  32237. this._payloadQueue.push({
  32238. action: n,
  32239. messageId: s,
  32240. message: r
  32241. }), this._consumMessage();
  32242. }
  32243. }, {
  32244. key: "_consumMessage",
  32245. value: function _consumMessage() {
  32246. var _this25 = this;
  32247. for (;;) {
  32248. var _e27 = this._payloadQueue.find(function (e) {
  32249. return e.messageId === _this25._currentMessageId + 1;
  32250. });
  32251. if (!_e27) break;
  32252. this._currentMessageId++, this._parseMessagePayload(_e27);
  32253. }
  32254. }
  32255. }, {
  32256. key: "_parseMessagePayload",
  32257. value: function _parseMessagePayload(e) {
  32258. var t = e.action,
  32259. n = e.messageId,
  32260. s = e.message;
  32261. "end" === t ? this._end({
  32262. messageId: n,
  32263. message: s
  32264. }) : "message" === t && this._appendMessage({
  32265. messageId: n,
  32266. message: s
  32267. });
  32268. }
  32269. }, {
  32270. key: "_appendMessage",
  32271. value: function _appendMessage() {
  32272. var _ref65 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  32273. e = _ref65.messageId,
  32274. t = _ref65.message;
  32275. this.emit("message", t);
  32276. }
  32277. }, {
  32278. key: "_end",
  32279. value: function _end() {
  32280. var _ref66 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  32281. e = _ref66.messageId,
  32282. t = _ref66.message;
  32283. this.emit("end", t), this.close();
  32284. }
  32285. }, {
  32286. key: "_initMessageListener",
  32287. value: function _initMessageListener() {
  32288. uni.onPushMessage(this._uniPushMessageCallback);
  32289. }
  32290. }, {
  32291. key: "_destroy",
  32292. value: function _destroy() {
  32293. uni.offPushMessage(this._uniPushMessageCallback);
  32294. }
  32295. }, {
  32296. key: "toJSON",
  32297. value: function toJSON() {
  32298. return {
  32299. appId: this._appId,
  32300. pushClientId: this._pushClientId,
  32301. seqId: this._seqId
  32302. };
  32303. }
  32304. }, {
  32305. key: "close",
  32306. value: function close() {
  32307. this._destroy(), this.emit("close");
  32308. }
  32309. }]);
  32310. return Ws;
  32311. }( /*#__PURE__*/function () {
  32312. function _class6() {
  32313. (0, _classCallCheck2.default)(this, _class6);
  32314. this._callback = {};
  32315. }
  32316. (0, _createClass2.default)(_class6, [{
  32317. key: "addListener",
  32318. value: function addListener(e, t) {
  32319. this._callback[e] || (this._callback[e] = []), this._callback[e].push(t);
  32320. }
  32321. }, {
  32322. key: "on",
  32323. value: function on(e, t) {
  32324. return this.addListener(e, t);
  32325. }
  32326. }, {
  32327. key: "removeListener",
  32328. value: function removeListener(e, t) {
  32329. if (!t) throw new Error('The "listener" argument must be of type function. Received undefined');
  32330. var n = this._callback[e];
  32331. if (!n) return;
  32332. var s = function (e, t) {
  32333. for (var _n17 = e.length - 1; _n17 >= 0; _n17--) {
  32334. if (e[_n17] === t) return _n17;
  32335. }
  32336. return -1;
  32337. }(n, t);
  32338. n.splice(s, 1);
  32339. }
  32340. }, {
  32341. key: "off",
  32342. value: function off(e, t) {
  32343. return this.removeListener(e, t);
  32344. }
  32345. }, {
  32346. key: "removeAllListener",
  32347. value: function removeAllListener(e) {
  32348. delete this._callback[e];
  32349. }
  32350. }, {
  32351. key: "emit",
  32352. value: function emit(e) {
  32353. var n = this._callback[e];
  32354. for (var _len4 = arguments.length, t = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  32355. t[_key4 - 1] = arguments[_key4];
  32356. }
  32357. if (n) for (var _e28 = 0; _e28 < n.length; _e28++) {
  32358. n[_e28].apply(n, t);
  32359. }
  32360. }
  32361. }]);
  32362. return _class6;
  32363. }());
  32364. function Hs(_x47) {
  32365. return _Hs.apply(this, arguments);
  32366. }
  32367. function _Hs() {
  32368. _Hs = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee64(e) {
  32369. var _ae2, _e32, _t22, t, _t$debugInfo, n, s, _yield$kt2, r, i, o;
  32370. return _regenerator.default.wrap(function _callee64$(_context64) {
  32371. while (1) {
  32372. switch (_context64.prev = _context64.next) {
  32373. case 0:
  32374. if (S) {
  32375. _context64.next = 2;
  32376. break;
  32377. }
  32378. return _context64.abrupt("return", Promise.resolve());
  32379. case 2:
  32380. if ("app" === C) {
  32381. _ae2 = ae(), _e32 = _ae2.osName, _t22 = _ae2.osVersion;
  32382. "ios" === _e32 && function (e) {
  32383. if (!e || "string" != typeof e) return 0;
  32384. var t = e.match(/^(\d+)./);
  32385. return t && t[1] ? parseInt(t[1]) : 0;
  32386. }(_t22) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)");
  32387. }
  32388. t = e.__dev__;
  32389. if (t.debugInfo) {
  32390. _context64.next = 6;
  32391. break;
  32392. }
  32393. return _context64.abrupt("return");
  32394. case 6:
  32395. _t$debugInfo = t.debugInfo;
  32396. n = _t$debugInfo.address;
  32397. s = _t$debugInfo.servePort;
  32398. _context64.next = 11;
  32399. return kt(n, s);
  32400. case 11:
  32401. _yield$kt2 = _context64.sent;
  32402. r = _yield$kt2.address;
  32403. if (!r) {
  32404. _context64.next = 15;
  32405. break;
  32406. }
  32407. return _context64.abrupt("return", (t.localAddress = r, void (t.localPort = s)));
  32408. case 15:
  32409. i = console["app" === C ? "error" : "warn"];
  32410. o = "";
  32411. if (!("remote" === t.debugInfo.initialLaunchType ? (t.debugInfo.forceRemote = !0, o = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。") : o = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。", o += "\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数", "web" === C && (o += "\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"), 0 === C.indexOf("mp-") && (o += "\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"), !t.debugInfo.forceRemote)) {
  32412. _context64.next = 19;
  32413. break;
  32414. }
  32415. throw new Error(o);
  32416. case 19:
  32417. i(o);
  32418. case 20:
  32419. case "end":
  32420. return _context64.stop();
  32421. }
  32422. }
  32423. }, _callee64);
  32424. }));
  32425. return _Hs.apply(this, arguments);
  32426. }
  32427. function Js(e) {
  32428. e._initPromiseHub || (e._initPromiseHub = new v({
  32429. createPromise: function createPromise() {
  32430. var t = Promise.resolve();
  32431. var n;
  32432. n = 1, t = new Promise(function (e) {
  32433. setTimeout(function () {
  32434. e();
  32435. }, n);
  32436. });
  32437. var s = e.auth();
  32438. return t.then(function () {
  32439. return s.getLoginState();
  32440. }).then(function (e) {
  32441. return e ? Promise.resolve() : s.signInAnonymously();
  32442. });
  32443. }
  32444. }));
  32445. }
  32446. var zs = {
  32447. tcb: St,
  32448. tencent: St,
  32449. aliyun: pe,
  32450. private: Pt,
  32451. dcloud: Pt,
  32452. alipay: qt
  32453. };
  32454. var Vs = new ( /*#__PURE__*/function () {
  32455. function _class7() {
  32456. (0, _classCallCheck2.default)(this, _class7);
  32457. }
  32458. (0, _createClass2.default)(_class7, [{
  32459. key: "init",
  32460. value: function init(e) {
  32461. var t = {};
  32462. var n = zs[e.provider];
  32463. if (!n) throw new Error("未提供正确的provider参数");
  32464. t = n.init(e), S && function (e) {
  32465. if (!S) return;
  32466. var t = {};
  32467. e.__dev__ = t, t.debugLog = S && ("web" === C && navigator.userAgent.indexOf("HBuilderX") > 0 || "app" === C);
  32468. var n = P;
  32469. n && !n.code && (t.debugInfo = n);
  32470. var s = new v({
  32471. createPromise: function createPromise() {
  32472. return Hs(e);
  32473. }
  32474. });
  32475. t.initLocalNetwork = function () {
  32476. return s.exec();
  32477. };
  32478. }(t), Js(t), Hn(t), function (e) {
  32479. var t = e.uploadFile;
  32480. e.uploadFile = function (e) {
  32481. return t.call(this, e);
  32482. };
  32483. }(t), function (e) {
  32484. e.database = function (t) {
  32485. if (t && Object.keys(t).length > 0) return e.init(t).database();
  32486. if (this._database) return this._database;
  32487. var n = ns(ss, {
  32488. uniClient: e
  32489. });
  32490. return this._database = n, n;
  32491. }, e.databaseForJQL = function (t) {
  32492. if (t && Object.keys(t).length > 0) return e.init(t).databaseForJQL();
  32493. if (this._databaseForJQL) return this._databaseForJQL;
  32494. var n = ns(ss, {
  32495. uniClient: e,
  32496. isJQL: !0
  32497. });
  32498. return this._databaseForJQL = n, n;
  32499. };
  32500. }(t), function (e) {
  32501. e.getCurrentUserInfo = Ls, e.chooseAndUploadFile = Us.initChooseAndUploadFile(e), Object.assign(e, {
  32502. get mixinDatacom() {
  32503. return Ds(e);
  32504. }
  32505. }), e.SSEChannel = Ws, e.initSecureNetworkByWeixin = js(e), e.setCustomClientInfo = $s, e.importObject = qs(e);
  32506. }(t);
  32507. return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach(function (e) {
  32508. if (!t[e]) return;
  32509. var n = t[e];
  32510. t[e] = function () {
  32511. return n.apply(t, Array.from(arguments));
  32512. }, t[e] = function (e, t) {
  32513. return function (n) {
  32514. var _this26 = this;
  32515. var s = !1;
  32516. if ("callFunction" === t) {
  32517. var _e29 = n && n.type || c;
  32518. s = _e29 !== c;
  32519. }
  32520. var r = "callFunction" === t && !s,
  32521. i = this._initPromiseHub.exec();
  32522. n = n || {};
  32523. var _ee2 = ee(n),
  32524. o = _ee2.success,
  32525. a = _ee2.fail,
  32526. u = _ee2.complete,
  32527. l = i.then(function () {
  32528. return s ? Promise.resolve() : q(M(t, "invoke"), n);
  32529. }).then(function () {
  32530. return e.call(_this26, n);
  32531. }).then(function (e) {
  32532. return s ? Promise.resolve(e) : q(M(t, "success"), e).then(function () {
  32533. return q(M(t, "complete"), e);
  32534. }).then(function () {
  32535. return r && Y(j, {
  32536. type: H,
  32537. content: e
  32538. }), Promise.resolve(e);
  32539. });
  32540. }, function (e) {
  32541. return s ? Promise.reject(e) : q(M(t, "fail"), e).then(function () {
  32542. return q(M(t, "complete"), e);
  32543. }).then(function () {
  32544. return Y(j, {
  32545. type: H,
  32546. content: e
  32547. }), Promise.reject(e);
  32548. });
  32549. });
  32550. if (!(o || a || u)) return l;
  32551. l.then(function (e) {
  32552. o && o(e), u && u(e), r && Y(j, {
  32553. type: H,
  32554. content: e
  32555. });
  32556. }, function (e) {
  32557. a && a(e), u && u(e), r && Y(j, {
  32558. type: H,
  32559. content: e
  32560. });
  32561. });
  32562. };
  32563. }(t[e], e).bind(t);
  32564. }), t.init = this.init, t;
  32565. }
  32566. }]);
  32567. return _class7;
  32568. }())();
  32569. (function () {
  32570. var e = T;
  32571. var t = {};
  32572. if (e && 1 === e.length) t = e[0], Vs = Vs.init(t), Vs._isDefault = !0;else {
  32573. var _t21 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"];
  32574. var _n18;
  32575. _n18 = e && e.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : x ? "应用未关联服务空间,请在uniCloud目录右键关联服务空间" : "uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间", _t21.forEach(function (e) {
  32576. Vs[e] = function () {
  32577. return console.error(_n18), Promise.reject(new te({
  32578. code: "SYS_ERR",
  32579. message: _n18
  32580. }));
  32581. };
  32582. });
  32583. }
  32584. Object.assign(Vs, {
  32585. get mixinDatacom() {
  32586. return Ds(Vs);
  32587. }
  32588. }), Ts(Vs), Vs.addInterceptor = N, Vs.removeInterceptor = D, Vs.interceptObject = F, S && "web" === C && (window.uniCloud = Vs);
  32589. })();
  32590. var Gs = Vs;
  32591. exports.default = Gs;
  32592. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3), __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  32593. /***/ }),
  32594. /* 499 */
  32595. /*!**********************************************************************!*\
  32596. !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
  32597. \**********************************************************************/
  32598. /*! no static exports found */
  32599. /***/ (function(module, exports) {
  32600. function _assertThisInitialized(self) {
  32601. if (self === void 0) {
  32602. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  32603. }
  32604. return self;
  32605. }
  32606. module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
  32607. /***/ }),
  32608. /* 500 */
  32609. /*!*********************************************************!*\
  32610. !*** ./node_modules/@babel/runtime/helpers/inherits.js ***!
  32611. \*********************************************************/
  32612. /*! no static exports found */
  32613. /***/ (function(module, exports, __webpack_require__) {
  32614. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  32615. function _inherits(subClass, superClass) {
  32616. if (typeof superClass !== "function" && superClass !== null) {
  32617. throw new TypeError("Super expression must either be null or a function");
  32618. }
  32619. subClass.prototype = Object.create(superClass && superClass.prototype, {
  32620. constructor: {
  32621. value: subClass,
  32622. writable: true,
  32623. configurable: true
  32624. }
  32625. });
  32626. Object.defineProperty(subClass, "prototype", {
  32627. writable: false
  32628. });
  32629. if (superClass) setPrototypeOf(subClass, superClass);
  32630. }
  32631. module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
  32632. /***/ }),
  32633. /* 501 */
  32634. /*!**************************************************************************!*\
  32635. !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
  32636. \**************************************************************************/
  32637. /*! no static exports found */
  32638. /***/ (function(module, exports, __webpack_require__) {
  32639. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  32640. var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ 499);
  32641. function _possibleConstructorReturn(self, call) {
  32642. if (call && (_typeof(call) === "object" || typeof call === "function")) {
  32643. return call;
  32644. } else if (call !== void 0) {
  32645. throw new TypeError("Derived constructors may only return object or undefined");
  32646. }
  32647. return assertThisInitialized(self);
  32648. }
  32649. module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
  32650. /***/ }),
  32651. /* 502 */
  32652. /*!***************************************************************!*\
  32653. !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
  32654. \***************************************************************/
  32655. /*! no static exports found */
  32656. /***/ (function(module, exports) {
  32657. function _getPrototypeOf(o) {
  32658. module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  32659. return o.__proto__ || Object.getPrototypeOf(o);
  32660. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  32661. return _getPrototypeOf(o);
  32662. }
  32663. module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  32664. /***/ }),
  32665. /* 503 */
  32666. /*!****************************************************************!*\
  32667. !*** ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
  32668. \****************************************************************/
  32669. /*! no static exports found */
  32670. /***/ (function(module, exports, __webpack_require__) {
  32671. var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ 502);
  32672. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  32673. var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ 504);
  32674. var construct = __webpack_require__(/*! ./construct.js */ 15);
  32675. function _wrapNativeSuper(Class) {
  32676. var _cache = typeof Map === "function" ? new Map() : undefined;
  32677. module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {
  32678. if (Class === null || !isNativeFunction(Class)) return Class;
  32679. if (typeof Class !== "function") {
  32680. throw new TypeError("Super expression must either be null or a function");
  32681. }
  32682. if (typeof _cache !== "undefined") {
  32683. if (_cache.has(Class)) return _cache.get(Class);
  32684. _cache.set(Class, Wrapper);
  32685. }
  32686. function Wrapper() {
  32687. return construct(Class, arguments, getPrototypeOf(this).constructor);
  32688. }
  32689. Wrapper.prototype = Object.create(Class.prototype, {
  32690. constructor: {
  32691. value: Wrapper,
  32692. enumerable: false,
  32693. writable: true,
  32694. configurable: true
  32695. }
  32696. });
  32697. return setPrototypeOf(Wrapper, Class);
  32698. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  32699. return _wrapNativeSuper(Class);
  32700. }
  32701. module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
  32702. /***/ }),
  32703. /* 504 */
  32704. /*!*****************************************************************!*\
  32705. !*** ./node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
  32706. \*****************************************************************/
  32707. /*! no static exports found */
  32708. /***/ (function(module, exports) {
  32709. function _isNativeFunction(fn) {
  32710. try {
  32711. return Function.toString.call(fn).indexOf("[native code]") !== -1;
  32712. } catch (e) {
  32713. return typeof fn === "function";
  32714. }
  32715. }
  32716. module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
  32717. /***/ }),
  32718. /* 505 */
  32719. /*!****************************************************************************!*\
  32720. !*** D:/2024/HBuilderProjects/xcx/pages.json?{"type":"origin-pages-json"} ***!
  32721. \****************************************************************************/
  32722. /*! no static exports found */
  32723. /***/ (function(module, exports, __webpack_require__) {
  32724. "use strict";
  32725. Object.defineProperty(exports, "__esModule", {
  32726. value: true
  32727. });
  32728. exports.default = void 0;
  32729. var _default = {
  32730. "easycom": {
  32731. "^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
  32732. },
  32733. "pages": [{
  32734. "path": "pages/index/index",
  32735. "style": {
  32736. "navigationBarTitleText": "uni-app",
  32737. "navigationStyle": "custom",
  32738. "enablePullDownRefresh": true
  32739. }
  32740. }, {
  32741. "path": "pages/jwgk/index",
  32742. "style": {
  32743. "navigationBarTitleText": "uni-app",
  32744. "navigationStyle": "custom",
  32745. "enablePullDownRefresh": true
  32746. }
  32747. }, {
  32748. "path": "pages/jfsc/index",
  32749. "style": {
  32750. "navigationBarTitleText": "uni-app",
  32751. "navigationStyle": "custom",
  32752. "enablePullDownRefresh": true
  32753. }
  32754. }, {
  32755. "path": "pages/jfsc/jfmx",
  32756. "style": {
  32757. "navigationBarTitleText": "积分明细",
  32758. "navigationStyle": "custom",
  32759. "navigationBarBackgroundColor": "#fff"
  32760. }
  32761. }, {
  32762. "path": "pages/my/index",
  32763. "style": {
  32764. "navigationBarTitleText": "uni-app",
  32765. "navigationStyle": "custom"
  32766. }
  32767. }, {
  32768. "path": "pages/detail/index",
  32769. "style": {
  32770. "navigationBarTitleText": "",
  32771. "navigationBarBackgroundColor": "#FFFFFF",
  32772. "navigationStyle": "custom"
  32773. }
  32774. }, {
  32775. "path": "pages/detail/searchResult",
  32776. "style": {
  32777. "navigationBarTitleText": "搜索结果",
  32778. "navigationBarBackgroundColor": "#FFFFFF"
  32779. }
  32780. }, {
  32781. "path": "pages/detail/content",
  32782. "style": {
  32783. "navigationBarTitleText": "",
  32784. "navigationBarBackgroundColor": "#FFFFFF",
  32785. "navigationStyle": "custom"
  32786. }
  32787. }],
  32788. "subPackages": [{
  32789. "root": "pageA",
  32790. "pages": [{
  32791. "path": "my/login",
  32792. "style": {
  32793. "navigationBarTitleText": "登录",
  32794. "navigationBarBackgroundColor": "#FFFFFF",
  32795. "navigationStyle": "custom"
  32796. }
  32797. }, {
  32798. "path": "my/reg"
  32799. }, {
  32800. "path": "my/profile",
  32801. "style": {
  32802. "navigationBarTitleText": "完善个人资料",
  32803. "navigationBarBackgroundColor": "#FFFFFF"
  32804. }
  32805. }]
  32806. }, {
  32807. "root": "jyzPage",
  32808. "pages": [{
  32809. "path": "jyz/jyzdj",
  32810. "style": {
  32811. "navigationBarTitleText": "加油站登记",
  32812. "navigationBarBackgroundColor": "#FFFFFF"
  32813. }
  32814. }, {
  32815. "path": "jyz/csjl",
  32816. "style": {
  32817. "navigationBarTitleText": "出售记录",
  32818. "navigationBarBackgroundColor": "#FFFFFF"
  32819. }
  32820. }, {
  32821. "path": "jyz/personjl",
  32822. "style": {
  32823. "navigationBarTitleText": "出售个人记录",
  32824. "navigationBarBackgroundColor": "#FFFFFF"
  32825. }
  32826. }, {
  32827. "path": "jyz/qiyejl",
  32828. "style": {
  32829. "navigationBarTitleText": "出售企业记录",
  32830. "navigationBarBackgroundColor": "#FFFFFF"
  32831. }
  32832. }]
  32833. }, {
  32834. "root": "product",
  32835. "pages": [{
  32836. "path": "product/card",
  32837. "style": {
  32838. "navigationBarTitleText": "购物车",
  32839. "navigationBarBackgroundColor": "#FFFFFF"
  32840. }
  32841. }, {
  32842. "path": "product/detail",
  32843. "style": {
  32844. "navigationBarTitleText": "商品详情",
  32845. "navigationBarBackgroundColor": "#FFFFFF"
  32846. }
  32847. }, {
  32848. "path": "order/historyOrder",
  32849. "style": {
  32850. "navigationBarTitleText": "历史订单",
  32851. "navigationBarBackgroundColor": "#FFFFFF"
  32852. }
  32853. }, {
  32854. "path": "order/dlq",
  32855. "style": {
  32856. "navigationBarTitleText": "待领取",
  32857. "navigationBarBackgroundColor": "#FFFFFF"
  32858. }
  32859. }]
  32860. }],
  32861. "globalStyle": {
  32862. "navigationBarTextStyle": "black",
  32863. "navigationBarTitleText": "uni-app",
  32864. "navigationBarBackgroundColor": "#F8F8F8",
  32865. "backgroundColor": "#F8F8F8"
  32866. },
  32867. "tabBar": {
  32868. "color": "#999999",
  32869. "selectedColor": "#000000",
  32870. "borderStyle": "white",
  32871. "backgroundColor": "#ffffff",
  32872. "list": [{
  32873. "pagePath": "pages/index/index",
  32874. "iconPath": "static/nav/label_home_gray@2x.png",
  32875. "selectedIconPath": "static/nav/label_home_color@2x.png",
  32876. "text": "防范宣传"
  32877. }, {
  32878. "pagePath": "pages/jwgk/index",
  32879. "iconPath": "static/nav/label_open_gray@2x.png",
  32880. "selectedIconPath": "static/nav/label_open_color@2x.png",
  32881. "text": "警务公开"
  32882. }, {
  32883. "pagePath": "pages/jfsc/index",
  32884. "iconPath": "static/nav/label_points_gray@2x.png",
  32885. "selectedIconPath": "static/nav/label_home_color@2xd.png",
  32886. "text": "积分商城"
  32887. }, {
  32888. "pagePath": "pages/my/index",
  32889. "iconPath": "static/nav/label_my_gray@2x.png",
  32890. "selectedIconPath": "static/nav/label_my_color@2x.png",
  32891. "text": "我的"
  32892. }]
  32893. },
  32894. "uniIdRouter": {}
  32895. };
  32896. exports.default = _default;
  32897. /***/ }),
  32898. /* 506 */
  32899. /*!***************************************************************!*\
  32900. !*** D:/2024/HBuilderProjects/xcx/pages.json?{"type":"stat"} ***!
  32901. \***************************************************************/
  32902. /*! no static exports found */
  32903. /***/ (function(module, exports, __webpack_require__) {
  32904. "use strict";
  32905. Object.defineProperty(exports, "__esModule", {
  32906. value: true
  32907. });
  32908. exports.default = void 0;
  32909. var _default = {
  32910. "appid": "__UNI__56B53F4"
  32911. };
  32912. exports.default = _default;
  32913. /***/ }),
  32914. /* 507 */,
  32915. /* 508 */,
  32916. /* 509 */,
  32917. /* 510 */,
  32918. /* 511 */,
  32919. /* 512 */,
  32920. /* 513 */,
  32921. /* 514 */
  32922. /*!****************************************************************************************************!*\
  32923. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js ***!
  32924. \****************************************************************************************************/
  32925. /*! no static exports found */
  32926. /***/ (function(module, exports, __webpack_require__) {
  32927. "use strict";
  32928. Object.defineProperty(exports, "__esModule", {
  32929. value: true
  32930. });
  32931. exports.fontData = void 0;
  32932. var fontData = [{
  32933. "font_class": "arrow-down",
  32934. "unicode": "\uE6BE"
  32935. }, {
  32936. "font_class": "arrow-left",
  32937. "unicode": "\uE6BC"
  32938. }, {
  32939. "font_class": "arrow-right",
  32940. "unicode": "\uE6BB"
  32941. }, {
  32942. "font_class": "arrow-up",
  32943. "unicode": "\uE6BD"
  32944. }, {
  32945. "font_class": "auth",
  32946. "unicode": "\uE6AB"
  32947. }, {
  32948. "font_class": "auth-filled",
  32949. "unicode": "\uE6CC"
  32950. }, {
  32951. "font_class": "back",
  32952. "unicode": "\uE6B9"
  32953. }, {
  32954. "font_class": "bars",
  32955. "unicode": "\uE627"
  32956. }, {
  32957. "font_class": "calendar",
  32958. "unicode": "\uE6A0"
  32959. }, {
  32960. "font_class": "calendar-filled",
  32961. "unicode": "\uE6C0"
  32962. }, {
  32963. "font_class": "camera",
  32964. "unicode": "\uE65A"
  32965. }, {
  32966. "font_class": "camera-filled",
  32967. "unicode": "\uE658"
  32968. }, {
  32969. "font_class": "cart",
  32970. "unicode": "\uE631"
  32971. }, {
  32972. "font_class": "cart-filled",
  32973. "unicode": "\uE6D0"
  32974. }, {
  32975. "font_class": "chat",
  32976. "unicode": "\uE65D"
  32977. }, {
  32978. "font_class": "chat-filled",
  32979. "unicode": "\uE659"
  32980. }, {
  32981. "font_class": "chatboxes",
  32982. "unicode": "\uE696"
  32983. }, {
  32984. "font_class": "chatboxes-filled",
  32985. "unicode": "\uE692"
  32986. }, {
  32987. "font_class": "chatbubble",
  32988. "unicode": "\uE697"
  32989. }, {
  32990. "font_class": "chatbubble-filled",
  32991. "unicode": "\uE694"
  32992. }, {
  32993. "font_class": "checkbox",
  32994. "unicode": "\uE62B"
  32995. }, {
  32996. "font_class": "checkbox-filled",
  32997. "unicode": "\uE62C"
  32998. }, {
  32999. "font_class": "checkmarkempty",
  33000. "unicode": "\uE65C"
  33001. }, {
  33002. "font_class": "circle",
  33003. "unicode": "\uE65B"
  33004. }, {
  33005. "font_class": "circle-filled",
  33006. "unicode": "\uE65E"
  33007. }, {
  33008. "font_class": "clear",
  33009. "unicode": "\uE66D"
  33010. }, {
  33011. "font_class": "close",
  33012. "unicode": "\uE673"
  33013. }, {
  33014. "font_class": "closeempty",
  33015. "unicode": "\uE66C"
  33016. }, {
  33017. "font_class": "cloud-download",
  33018. "unicode": "\uE647"
  33019. }, {
  33020. "font_class": "cloud-download-filled",
  33021. "unicode": "\uE646"
  33022. }, {
  33023. "font_class": "cloud-upload",
  33024. "unicode": "\uE645"
  33025. }, {
  33026. "font_class": "cloud-upload-filled",
  33027. "unicode": "\uE648"
  33028. }, {
  33029. "font_class": "color",
  33030. "unicode": "\uE6CF"
  33031. }, {
  33032. "font_class": "color-filled",
  33033. "unicode": "\uE6C9"
  33034. }, {
  33035. "font_class": "compose",
  33036. "unicode": "\uE67F"
  33037. }, {
  33038. "font_class": "contact",
  33039. "unicode": "\uE693"
  33040. }, {
  33041. "font_class": "contact-filled",
  33042. "unicode": "\uE695"
  33043. }, {
  33044. "font_class": "down",
  33045. "unicode": "\uE6B8"
  33046. }, {
  33047. "font_class": "bottom",
  33048. "unicode": "\uE6B8"
  33049. }, {
  33050. "font_class": "download",
  33051. "unicode": "\uE68D"
  33052. }, {
  33053. "font_class": "download-filled",
  33054. "unicode": "\uE681"
  33055. }, {
  33056. "font_class": "email",
  33057. "unicode": "\uE69E"
  33058. }, {
  33059. "font_class": "email-filled",
  33060. "unicode": "\uE69A"
  33061. }, {
  33062. "font_class": "eye",
  33063. "unicode": "\uE651"
  33064. }, {
  33065. "font_class": "eye-filled",
  33066. "unicode": "\uE66A"
  33067. }, {
  33068. "font_class": "eye-slash",
  33069. "unicode": "\uE6B3"
  33070. }, {
  33071. "font_class": "eye-slash-filled",
  33072. "unicode": "\uE6B4"
  33073. }, {
  33074. "font_class": "fire",
  33075. "unicode": "\uE6A1"
  33076. }, {
  33077. "font_class": "fire-filled",
  33078. "unicode": "\uE6C5"
  33079. }, {
  33080. "font_class": "flag",
  33081. "unicode": "\uE65F"
  33082. }, {
  33083. "font_class": "flag-filled",
  33084. "unicode": "\uE660"
  33085. }, {
  33086. "font_class": "folder-add",
  33087. "unicode": "\uE6A9"
  33088. }, {
  33089. "font_class": "folder-add-filled",
  33090. "unicode": "\uE6C8"
  33091. }, {
  33092. "font_class": "font",
  33093. "unicode": "\uE6A3"
  33094. }, {
  33095. "font_class": "forward",
  33096. "unicode": "\uE6BA"
  33097. }, {
  33098. "font_class": "gear",
  33099. "unicode": "\uE664"
  33100. }, {
  33101. "font_class": "gear-filled",
  33102. "unicode": "\uE661"
  33103. }, {
  33104. "font_class": "gift",
  33105. "unicode": "\uE6A4"
  33106. }, {
  33107. "font_class": "gift-filled",
  33108. "unicode": "\uE6C4"
  33109. }, {
  33110. "font_class": "hand-down",
  33111. "unicode": "\uE63D"
  33112. }, {
  33113. "font_class": "hand-down-filled",
  33114. "unicode": "\uE63C"
  33115. }, {
  33116. "font_class": "hand-up",
  33117. "unicode": "\uE63F"
  33118. }, {
  33119. "font_class": "hand-up-filled",
  33120. "unicode": "\uE63E"
  33121. }, {
  33122. "font_class": "headphones",
  33123. "unicode": "\uE630"
  33124. }, {
  33125. "font_class": "heart",
  33126. "unicode": "\uE639"
  33127. }, {
  33128. "font_class": "heart-filled",
  33129. "unicode": "\uE641"
  33130. }, {
  33131. "font_class": "help",
  33132. "unicode": "\uE679"
  33133. }, {
  33134. "font_class": "help-filled",
  33135. "unicode": "\uE674"
  33136. }, {
  33137. "font_class": "home",
  33138. "unicode": "\uE662"
  33139. }, {
  33140. "font_class": "home-filled",
  33141. "unicode": "\uE663"
  33142. }, {
  33143. "font_class": "image",
  33144. "unicode": "\uE670"
  33145. }, {
  33146. "font_class": "image-filled",
  33147. "unicode": "\uE678"
  33148. }, {
  33149. "font_class": "images",
  33150. "unicode": "\uE650"
  33151. }, {
  33152. "font_class": "images-filled",
  33153. "unicode": "\uE64B"
  33154. }, {
  33155. "font_class": "info",
  33156. "unicode": "\uE669"
  33157. }, {
  33158. "font_class": "info-filled",
  33159. "unicode": "\uE649"
  33160. }, {
  33161. "font_class": "left",
  33162. "unicode": "\uE6B7"
  33163. }, {
  33164. "font_class": "link",
  33165. "unicode": "\uE6A5"
  33166. }, {
  33167. "font_class": "list",
  33168. "unicode": "\uE644"
  33169. }, {
  33170. "font_class": "location",
  33171. "unicode": "\uE6AE"
  33172. }, {
  33173. "font_class": "location-filled",
  33174. "unicode": "\uE6AF"
  33175. }, {
  33176. "font_class": "locked",
  33177. "unicode": "\uE66B"
  33178. }, {
  33179. "font_class": "locked-filled",
  33180. "unicode": "\uE668"
  33181. }, {
  33182. "font_class": "loop",
  33183. "unicode": "\uE633"
  33184. }, {
  33185. "font_class": "mail-open",
  33186. "unicode": "\uE643"
  33187. }, {
  33188. "font_class": "mail-open-filled",
  33189. "unicode": "\uE63A"
  33190. }, {
  33191. "font_class": "map",
  33192. "unicode": "\uE667"
  33193. }, {
  33194. "font_class": "map-filled",
  33195. "unicode": "\uE666"
  33196. }, {
  33197. "font_class": "map-pin",
  33198. "unicode": "\uE6AD"
  33199. }, {
  33200. "font_class": "map-pin-ellipse",
  33201. "unicode": "\uE6AC"
  33202. }, {
  33203. "font_class": "medal",
  33204. "unicode": "\uE6A2"
  33205. }, {
  33206. "font_class": "medal-filled",
  33207. "unicode": "\uE6C3"
  33208. }, {
  33209. "font_class": "mic",
  33210. "unicode": "\uE671"
  33211. }, {
  33212. "font_class": "mic-filled",
  33213. "unicode": "\uE677"
  33214. }, {
  33215. "font_class": "micoff",
  33216. "unicode": "\uE67E"
  33217. }, {
  33218. "font_class": "micoff-filled",
  33219. "unicode": "\uE6B0"
  33220. }, {
  33221. "font_class": "minus",
  33222. "unicode": "\uE66F"
  33223. }, {
  33224. "font_class": "minus-filled",
  33225. "unicode": "\uE67D"
  33226. }, {
  33227. "font_class": "more",
  33228. "unicode": "\uE64D"
  33229. }, {
  33230. "font_class": "more-filled",
  33231. "unicode": "\uE64E"
  33232. }, {
  33233. "font_class": "navigate",
  33234. "unicode": "\uE66E"
  33235. }, {
  33236. "font_class": "navigate-filled",
  33237. "unicode": "\uE67A"
  33238. }, {
  33239. "font_class": "notification",
  33240. "unicode": "\uE6A6"
  33241. }, {
  33242. "font_class": "notification-filled",
  33243. "unicode": "\uE6C1"
  33244. }, {
  33245. "font_class": "paperclip",
  33246. "unicode": "\uE652"
  33247. }, {
  33248. "font_class": "paperplane",
  33249. "unicode": "\uE672"
  33250. }, {
  33251. "font_class": "paperplane-filled",
  33252. "unicode": "\uE675"
  33253. }, {
  33254. "font_class": "person",
  33255. "unicode": "\uE699"
  33256. }, {
  33257. "font_class": "person-filled",
  33258. "unicode": "\uE69D"
  33259. }, {
  33260. "font_class": "personadd",
  33261. "unicode": "\uE69F"
  33262. }, {
  33263. "font_class": "personadd-filled",
  33264. "unicode": "\uE698"
  33265. }, {
  33266. "font_class": "personadd-filled-copy",
  33267. "unicode": "\uE6D1"
  33268. }, {
  33269. "font_class": "phone",
  33270. "unicode": "\uE69C"
  33271. }, {
  33272. "font_class": "phone-filled",
  33273. "unicode": "\uE69B"
  33274. }, {
  33275. "font_class": "plus",
  33276. "unicode": "\uE676"
  33277. }, {
  33278. "font_class": "plus-filled",
  33279. "unicode": "\uE6C7"
  33280. }, {
  33281. "font_class": "plusempty",
  33282. "unicode": "\uE67B"
  33283. }, {
  33284. "font_class": "pulldown",
  33285. "unicode": "\uE632"
  33286. }, {
  33287. "font_class": "pyq",
  33288. "unicode": "\uE682"
  33289. }, {
  33290. "font_class": "qq",
  33291. "unicode": "\uE680"
  33292. }, {
  33293. "font_class": "redo",
  33294. "unicode": "\uE64A"
  33295. }, {
  33296. "font_class": "redo-filled",
  33297. "unicode": "\uE655"
  33298. }, {
  33299. "font_class": "refresh",
  33300. "unicode": "\uE657"
  33301. }, {
  33302. "font_class": "refresh-filled",
  33303. "unicode": "\uE656"
  33304. }, {
  33305. "font_class": "refreshempty",
  33306. "unicode": "\uE6BF"
  33307. }, {
  33308. "font_class": "reload",
  33309. "unicode": "\uE6B2"
  33310. }, {
  33311. "font_class": "right",
  33312. "unicode": "\uE6B5"
  33313. }, {
  33314. "font_class": "scan",
  33315. "unicode": "\uE62A"
  33316. }, {
  33317. "font_class": "search",
  33318. "unicode": "\uE654"
  33319. }, {
  33320. "font_class": "settings",
  33321. "unicode": "\uE653"
  33322. }, {
  33323. "font_class": "settings-filled",
  33324. "unicode": "\uE6CE"
  33325. }, {
  33326. "font_class": "shop",
  33327. "unicode": "\uE62F"
  33328. }, {
  33329. "font_class": "shop-filled",
  33330. "unicode": "\uE6CD"
  33331. }, {
  33332. "font_class": "smallcircle",
  33333. "unicode": "\uE67C"
  33334. }, {
  33335. "font_class": "smallcircle-filled",
  33336. "unicode": "\uE665"
  33337. }, {
  33338. "font_class": "sound",
  33339. "unicode": "\uE684"
  33340. }, {
  33341. "font_class": "sound-filled",
  33342. "unicode": "\uE686"
  33343. }, {
  33344. "font_class": "spinner-cycle",
  33345. "unicode": "\uE68A"
  33346. }, {
  33347. "font_class": "staff",
  33348. "unicode": "\uE6A7"
  33349. }, {
  33350. "font_class": "staff-filled",
  33351. "unicode": "\uE6CB"
  33352. }, {
  33353. "font_class": "star",
  33354. "unicode": "\uE688"
  33355. }, {
  33356. "font_class": "star-filled",
  33357. "unicode": "\uE68F"
  33358. }, {
  33359. "font_class": "starhalf",
  33360. "unicode": "\uE683"
  33361. }, {
  33362. "font_class": "trash",
  33363. "unicode": "\uE687"
  33364. }, {
  33365. "font_class": "trash-filled",
  33366. "unicode": "\uE685"
  33367. }, {
  33368. "font_class": "tune",
  33369. "unicode": "\uE6AA"
  33370. }, {
  33371. "font_class": "tune-filled",
  33372. "unicode": "\uE6CA"
  33373. }, {
  33374. "font_class": "undo",
  33375. "unicode": "\uE64F"
  33376. }, {
  33377. "font_class": "undo-filled",
  33378. "unicode": "\uE64C"
  33379. }, {
  33380. "font_class": "up",
  33381. "unicode": "\uE6B6"
  33382. }, {
  33383. "font_class": "top",
  33384. "unicode": "\uE6B6"
  33385. }, {
  33386. "font_class": "upload",
  33387. "unicode": "\uE690"
  33388. }, {
  33389. "font_class": "upload-filled",
  33390. "unicode": "\uE68E"
  33391. }, {
  33392. "font_class": "videocam",
  33393. "unicode": "\uE68C"
  33394. }, {
  33395. "font_class": "videocam-filled",
  33396. "unicode": "\uE689"
  33397. }, {
  33398. "font_class": "vip",
  33399. "unicode": "\uE6A8"
  33400. }, {
  33401. "font_class": "vip-filled",
  33402. "unicode": "\uE6C6"
  33403. }, {
  33404. "font_class": "wallet",
  33405. "unicode": "\uE6B1"
  33406. }, {
  33407. "font_class": "wallet-filled",
  33408. "unicode": "\uE6C2"
  33409. }, {
  33410. "font_class": "weibo",
  33411. "unicode": "\uE68B"
  33412. }, {
  33413. "font_class": "weixin",
  33414. "unicode": "\uE691"
  33415. }];
  33416. // export const fontData = JSON.parse<IconsDataItem>(fontDataJson)
  33417. exports.fontData = fontData;
  33418. /***/ }),
  33419. /* 515 */,
  33420. /* 516 */,
  33421. /* 517 */,
  33422. /* 518 */,
  33423. /* 519 */,
  33424. /* 520 */,
  33425. /* 521 */,
  33426. /* 522 */
  33427. /*!**************************************************************************************!*\
  33428. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-search/props.js ***!
  33429. \**************************************************************************************/
  33430. /*! no static exports found */
  33431. /***/ (function(module, exports, __webpack_require__) {
  33432. "use strict";
  33433. /* WEBPACK VAR INJECTION */(function(uni) {
  33434. Object.defineProperty(exports, "__esModule", {
  33435. value: true
  33436. });
  33437. exports.default = void 0;
  33438. var _default = {
  33439. props: {
  33440. // 搜索框形状,round-圆形,square-方形
  33441. shape: {
  33442. type: String,
  33443. default: uni.$u.props.search.shape
  33444. },
  33445. // 搜索框背景色,默认值#f2f2f2
  33446. bgColor: {
  33447. type: String,
  33448. default: uni.$u.props.search.bgColor
  33449. },
  33450. // 占位提示文字
  33451. placeholder: {
  33452. type: String,
  33453. default: uni.$u.props.search.placeholder
  33454. },
  33455. // 是否启用清除控件
  33456. clearabled: {
  33457. type: Boolean,
  33458. default: uni.$u.props.search.clearabled
  33459. },
  33460. // 是否自动聚焦
  33461. focus: {
  33462. type: Boolean,
  33463. default: uni.$u.props.search.focus
  33464. },
  33465. // 是否在搜索框右侧显示取消按钮
  33466. showAction: {
  33467. type: Boolean,
  33468. default: uni.$u.props.search.showAction
  33469. },
  33470. // 右边控件的样式
  33471. actionStyle: {
  33472. type: Object,
  33473. default: uni.$u.props.search.actionStyle
  33474. },
  33475. // 取消按钮文字
  33476. actionText: {
  33477. type: String,
  33478. default: uni.$u.props.search.actionText
  33479. },
  33480. // 输入框内容对齐方式,可选值为 left|center|right
  33481. inputAlign: {
  33482. type: String,
  33483. default: uni.$u.props.search.inputAlign
  33484. },
  33485. // input输入框的样式,可以定义文字颜色,大小等,对象形式
  33486. inputStyle: {
  33487. type: Object,
  33488. default: uni.$u.props.search.inputStyle
  33489. },
  33490. // 是否启用输入框
  33491. disabled: {
  33492. type: Boolean,
  33493. default: uni.$u.props.search.disabled
  33494. },
  33495. // 边框颜色
  33496. borderColor: {
  33497. type: String,
  33498. default: uni.$u.props.search.borderColor
  33499. },
  33500. // 搜索图标的颜色,默认同输入框字体颜色
  33501. searchIconColor: {
  33502. type: String,
  33503. default: uni.$u.props.search.searchIconColor
  33504. },
  33505. // 输入框字体颜色
  33506. color: {
  33507. type: String,
  33508. default: uni.$u.props.search.color
  33509. },
  33510. // placeholder的颜色
  33511. placeholderColor: {
  33512. type: String,
  33513. default: uni.$u.props.search.placeholderColor
  33514. },
  33515. // 左边输入框的图标,可以为uView图标名称或图片路径
  33516. searchIcon: {
  33517. type: String,
  33518. default: uni.$u.props.search.searchIcon
  33519. },
  33520. searchIconSize: {
  33521. type: [Number, String],
  33522. default: uni.$u.props.search.searchIconSize
  33523. },
  33524. // 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
  33525. margin: {
  33526. type: String,
  33527. default: uni.$u.props.search.margin
  33528. },
  33529. // 开启showAction时,是否在input获取焦点时才显示
  33530. animation: {
  33531. type: Boolean,
  33532. default: uni.$u.props.search.animation
  33533. },
  33534. // 输入框的初始化内容
  33535. value: {
  33536. type: String,
  33537. default: uni.$u.props.search.value
  33538. },
  33539. // 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
  33540. maxlength: {
  33541. type: [String, Number],
  33542. default: uni.$u.props.search.maxlength
  33543. },
  33544. // 搜索框高度,单位px
  33545. height: {
  33546. type: [String, Number],
  33547. default: uni.$u.props.search.height
  33548. },
  33549. // 搜索框左侧文本
  33550. label: {
  33551. type: [String, Number, null],
  33552. default: uni.$u.props.search.label
  33553. }
  33554. }
  33555. };
  33556. exports.default = _default;
  33557. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  33558. /***/ }),
  33559. /* 523 */,
  33560. /* 524 */,
  33561. /* 525 */,
  33562. /* 526 */,
  33563. /* 527 */,
  33564. /* 528 */,
  33565. /* 529 */,
  33566. /* 530 */
  33567. /*!************************************************************************************!*\
  33568. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-line/props.js ***!
  33569. \************************************************************************************/
  33570. /*! no static exports found */
  33571. /***/ (function(module, exports, __webpack_require__) {
  33572. "use strict";
  33573. /* WEBPACK VAR INJECTION */(function(uni) {
  33574. Object.defineProperty(exports, "__esModule", {
  33575. value: true
  33576. });
  33577. exports.default = void 0;
  33578. var _default = {
  33579. props: {
  33580. color: {
  33581. type: String,
  33582. default: uni.$u.props.line.color
  33583. },
  33584. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  33585. length: {
  33586. type: [String, Number],
  33587. default: uni.$u.props.line.length
  33588. },
  33589. // 线条方向,col-竖向,row-横向
  33590. direction: {
  33591. type: String,
  33592. default: uni.$u.props.line.direction
  33593. },
  33594. // 是否显示细边框
  33595. hairline: {
  33596. type: Boolean,
  33597. default: uni.$u.props.line.hairline
  33598. },
  33599. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  33600. margin: {
  33601. type: [String, Number],
  33602. default: uni.$u.props.line.margin
  33603. },
  33604. // 是否虚线,true-虚线,false-实线
  33605. dashed: {
  33606. type: Boolean,
  33607. default: uni.$u.props.line.dashed
  33608. }
  33609. }
  33610. };
  33611. exports.default = _default;
  33612. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  33613. /***/ }),
  33614. /* 531 */,
  33615. /* 532 */,
  33616. /* 533 */,
  33617. /* 534 */,
  33618. /* 535 */,
  33619. /* 536 */,
  33620. /* 537 */,
  33621. /* 538 */
  33622. /*!*************************************************************************************!*\
  33623. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-album/props.js ***!
  33624. \*************************************************************************************/
  33625. /*! no static exports found */
  33626. /***/ (function(module, exports, __webpack_require__) {
  33627. "use strict";
  33628. /* WEBPACK VAR INJECTION */(function(uni) {
  33629. Object.defineProperty(exports, "__esModule", {
  33630. value: true
  33631. });
  33632. exports.default = void 0;
  33633. var _default = {
  33634. props: {
  33635. // 图片地址,Array<String>|Array<Object>形式
  33636. urls: {
  33637. type: Array,
  33638. default: uni.$u.props.album.urls
  33639. },
  33640. // 指定从数组的对象元素中读取哪个属性作为图片地址
  33641. keyName: {
  33642. type: String,
  33643. default: uni.$u.props.album.keyName
  33644. },
  33645. // 单图时,图片长边的长度
  33646. singleSize: {
  33647. type: [String, Number],
  33648. default: uni.$u.props.album.singleSize
  33649. },
  33650. // 多图时,图片边长
  33651. multipleSize: {
  33652. type: [String, Number],
  33653. default: uni.$u.props.album.multipleSize
  33654. },
  33655. // 多图时,图片水平和垂直之间的间隔
  33656. space: {
  33657. type: [String, Number],
  33658. default: uni.$u.props.album.space
  33659. },
  33660. // 单图时,图片缩放裁剪的模式
  33661. singleMode: {
  33662. type: String,
  33663. default: uni.$u.props.album.singleMode
  33664. },
  33665. // 多图时,图片缩放裁剪的模式
  33666. multipleMode: {
  33667. type: String,
  33668. default: uni.$u.props.album.multipleMode
  33669. },
  33670. // 最多展示的图片数量,超出时最后一个位置将会显示剩余图片数量
  33671. maxCount: {
  33672. type: [String, Number],
  33673. default: uni.$u.props.album.maxCount
  33674. },
  33675. // 是否可以预览图片
  33676. previewFullImage: {
  33677. type: Boolean,
  33678. default: uni.$u.props.album.previewFullImage
  33679. },
  33680. // 每行展示图片数量,如设置,singleSize和multipleSize将会无效
  33681. rowCount: {
  33682. type: [String, Number],
  33683. default: uni.$u.props.album.rowCount
  33684. },
  33685. // 超出maxCount时是否显示查看更多的提示
  33686. showMore: {
  33687. type: Boolean,
  33688. default: uni.$u.props.album.showMore
  33689. }
  33690. }
  33691. };
  33692. exports.default = _default;
  33693. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  33694. /***/ }),
  33695. /* 539 */,
  33696. /* 540 */,
  33697. /* 541 */,
  33698. /* 542 */,
  33699. /* 543 */,
  33700. /* 544 */,
  33701. /* 545 */,
  33702. /* 546 */,
  33703. /* 547 */,
  33704. /* 548 */,
  33705. /* 549 */,
  33706. /* 550 */,
  33707. /* 551 */,
  33708. /* 552 */,
  33709. /* 553 */
  33710. /*!*****************************************************************************************************!*\
  33711. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js ***!
  33712. \*****************************************************************************************************/
  33713. /*! no static exports found */
  33714. /***/ (function(module, exports, __webpack_require__) {
  33715. "use strict";
  33716. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  33717. Object.defineProperty(exports, "__esModule", {
  33718. value: true
  33719. });
  33720. exports.default = void 0;
  33721. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 554));
  33722. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 555));
  33723. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 556));
  33724. var _default = {
  33725. en: _en.default,
  33726. 'zh-Hans': _zhHans.default,
  33727. 'zh-Hant': _zhHant.default
  33728. };
  33729. exports.default = _default;
  33730. /***/ }),
  33731. /* 554 */
  33732. /*!****************************************************************************************************!*\
  33733. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json ***!
  33734. \****************************************************************************************************/
  33735. /*! exports provided: uni-goods-nav.options.shop, uni-goods-nav.options.cart, uni-goods-nav.buttonGroup.addToCart, uni-goods-nav.buttonGroup.buyNow, default */
  33736. /***/ (function(module) {
  33737. module.exports = JSON.parse("{\"uni-goods-nav.options.shop\":\"shop\",\"uni-goods-nav.options.cart\":\"cart\",\"uni-goods-nav.buttonGroup.addToCart\":\"add to cart\",\"uni-goods-nav.buttonGroup.buyNow\":\"buy now\"}");
  33738. /***/ }),
  33739. /* 555 */
  33740. /*!*********************************************************************************************************!*\
  33741. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json ***!
  33742. \*********************************************************************************************************/
  33743. /*! exports provided: uni-goods-nav.options.shop, uni-goods-nav.options.cart, uni-goods-nav.buttonGroup.addToCart, uni-goods-nav.buttonGroup.buyNow, default */
  33744. /***/ (function(module) {
  33745. module.exports = JSON.parse("{\"uni-goods-nav.options.shop\":\"店铺\",\"uni-goods-nav.options.cart\":\"购物车\",\"uni-goods-nav.buttonGroup.addToCart\":\"加入购物车\",\"uni-goods-nav.buttonGroup.buyNow\":\"立即购买\"}");
  33746. /***/ }),
  33747. /* 556 */
  33748. /*!*********************************************************************************************************!*\
  33749. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json ***!
  33750. \*********************************************************************************************************/
  33751. /*! exports provided: uni-goods-nav.options.shop, uni-goods-nav.options.cart, uni-goods-nav.buttonGroup.addToCart, uni-goods-nav.buttonGroup.buyNow, default */
  33752. /***/ (function(module) {
  33753. module.exports = JSON.parse("{\"uni-goods-nav.options.shop\":\"店鋪\",\"uni-goods-nav.options.cart\":\"購物車\",\"uni-goods-nav.buttonGroup.addToCart\":\"加入購物車\",\"uni-goods-nav.buttonGroup.buyNow\":\"立即購買\"}");
  33754. /***/ }),
  33755. /* 557 */,
  33756. /* 558 */,
  33757. /* 559 */,
  33758. /* 560 */,
  33759. /* 561 */,
  33760. /* 562 */,
  33761. /* 563 */,
  33762. /* 564 */
  33763. /*!*************************************************************************************!*\
  33764. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-image/props.js ***!
  33765. \*************************************************************************************/
  33766. /*! no static exports found */
  33767. /***/ (function(module, exports, __webpack_require__) {
  33768. "use strict";
  33769. /* WEBPACK VAR INJECTION */(function(uni) {
  33770. Object.defineProperty(exports, "__esModule", {
  33771. value: true
  33772. });
  33773. exports.default = void 0;
  33774. var _default = {
  33775. props: {
  33776. // 图片地址
  33777. src: {
  33778. type: String,
  33779. default: uni.$u.props.image.src
  33780. },
  33781. // 裁剪模式
  33782. mode: {
  33783. type: String,
  33784. default: uni.$u.props.image.mode
  33785. },
  33786. // 宽度,单位任意
  33787. width: {
  33788. type: [String, Number],
  33789. default: uni.$u.props.image.width
  33790. },
  33791. // 高度,单位任意
  33792. height: {
  33793. type: [String, Number],
  33794. default: uni.$u.props.image.height
  33795. },
  33796. // 图片形状,circle-圆形,square-方形
  33797. shape: {
  33798. type: String,
  33799. default: uni.$u.props.image.shape
  33800. },
  33801. // 圆角,单位任意
  33802. radius: {
  33803. type: [String, Number],
  33804. default: uni.$u.props.image.radius
  33805. },
  33806. // 是否懒加载,微信小程序、App、百度小程序、字节跳动小程序
  33807. lazyLoad: {
  33808. type: Boolean,
  33809. default: uni.$u.props.image.lazyLoad
  33810. },
  33811. // 开启长按图片显示识别微信小程序码菜单
  33812. showMenuByLongpress: {
  33813. type: Boolean,
  33814. default: uni.$u.props.image.showMenuByLongpress
  33815. },
  33816. // 加载中的图标,或者小图片
  33817. loadingIcon: {
  33818. type: String,
  33819. default: uni.$u.props.image.loadingIcon
  33820. },
  33821. // 加载失败的图标,或者小图片
  33822. errorIcon: {
  33823. type: String,
  33824. default: uni.$u.props.image.errorIcon
  33825. },
  33826. // 是否显示加载中的图标或者自定义的slot
  33827. showLoading: {
  33828. type: Boolean,
  33829. default: uni.$u.props.image.showLoading
  33830. },
  33831. // 是否显示加载错误的图标或者自定义的slot
  33832. showError: {
  33833. type: Boolean,
  33834. default: uni.$u.props.image.showError
  33835. },
  33836. // 是否需要淡入效果
  33837. fade: {
  33838. type: Boolean,
  33839. default: uni.$u.props.image.fade
  33840. },
  33841. // 只支持网络资源,只对微信小程序有效
  33842. webp: {
  33843. type: Boolean,
  33844. default: uni.$u.props.image.webp
  33845. },
  33846. // 过渡时间,单位ms
  33847. duration: {
  33848. type: [String, Number],
  33849. default: uni.$u.props.image.duration
  33850. },
  33851. // 背景颜色,用于深色页面加载图片时,为了和背景色融合
  33852. bgColor: {
  33853. type: String,
  33854. default: uni.$u.props.image.bgColor
  33855. }
  33856. }
  33857. };
  33858. exports.default = _default;
  33859. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  33860. /***/ }),
  33861. /* 565 */,
  33862. /* 566 */,
  33863. /* 567 */,
  33864. /* 568 */,
  33865. /* 569 */,
  33866. /* 570 */
  33867. /*!******************************************************************************************!*\
  33868. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-transition/props.js ***!
  33869. \******************************************************************************************/
  33870. /*! no static exports found */
  33871. /***/ (function(module, exports, __webpack_require__) {
  33872. "use strict";
  33873. /* WEBPACK VAR INJECTION */(function(uni) {
  33874. Object.defineProperty(exports, "__esModule", {
  33875. value: true
  33876. });
  33877. exports.default = void 0;
  33878. var _default = {
  33879. props: {
  33880. // 是否展示组件
  33881. show: {
  33882. type: Boolean,
  33883. default: uni.$u.props.transition.show
  33884. },
  33885. // 使用的动画模式
  33886. mode: {
  33887. type: String,
  33888. default: uni.$u.props.transition.mode
  33889. },
  33890. // 动画的执行时间,单位ms
  33891. duration: {
  33892. type: [String, Number],
  33893. default: uni.$u.props.transition.duration
  33894. },
  33895. // 使用的动画过渡函数
  33896. timingFunction: {
  33897. type: String,
  33898. default: uni.$u.props.transition.timingFunction
  33899. }
  33900. }
  33901. };
  33902. exports.default = _default;
  33903. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  33904. /***/ }),
  33905. /* 571 */
  33906. /*!***********************************************************************************************!*\
  33907. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-transition/transition.js ***!
  33908. \***********************************************************************************************/
  33909. /*! no static exports found */
  33910. /***/ (function(module, exports, __webpack_require__) {
  33911. "use strict";
  33912. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  33913. Object.defineProperty(exports, "__esModule", {
  33914. value: true
  33915. });
  33916. exports.default = void 0;
  33917. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  33918. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  33919. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 572));
  33920. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  33921. var nextTick = function nextTick() {
  33922. return new Promise(function (resolve) {
  33923. return setTimeout(resolve, 1000 / 50);
  33924. });
  33925. };
  33926. // nvue动画模块实现细节抽离在外部文件
  33927. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  33928. var getClassNames = function getClassNames(name) {
  33929. return {
  33930. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  33931. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  33932. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  33933. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  33934. };
  33935. };
  33936. var _default = {
  33937. methods: {
  33938. // 组件被点击发出事件
  33939. clickHandler: function clickHandler() {
  33940. this.$emit('click');
  33941. },
  33942. // vue版本的组件进场处理
  33943. vueEnter: function vueEnter() {
  33944. var _this = this;
  33945. // 动画进入时的类名
  33946. var classNames = getClassNames(this.mode);
  33947. // 定义状态和发出动画进入前事件
  33948. this.status = 'enter';
  33949. this.$emit('beforeEnter');
  33950. this.inited = true;
  33951. this.display = true;
  33952. this.classes = classNames.enter;
  33953. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  33954. return _regenerator.default.wrap(function _callee$(_context) {
  33955. while (1) {
  33956. switch (_context.prev = _context.next) {
  33957. case 0:
  33958. // 标识动画尚未结束
  33959. _this.$emit('enter');
  33960. _this.transitionEnded = false;
  33961. // 组件动画进入后触发的事件
  33962. _this.$emit('afterEnter');
  33963. // 赋予组件enter-to类名
  33964. _this.classes = classNames['enter-to'];
  33965. case 4:
  33966. case "end":
  33967. return _context.stop();
  33968. }
  33969. }
  33970. }, _callee);
  33971. })));
  33972. },
  33973. // 动画离场处理
  33974. vueLeave: function vueLeave() {
  33975. var _this2 = this;
  33976. // 如果不是展示状态,无需执行逻辑
  33977. if (!this.display) return;
  33978. var classNames = getClassNames(this.mode);
  33979. // 标记离开状态和发出事件
  33980. this.status = 'leave';
  33981. this.$emit('beforeLeave');
  33982. // 获得类名
  33983. this.classes = classNames.leave;
  33984. this.$nextTick(function () {
  33985. // 动画正在离场的状态
  33986. _this2.transitionEnded = false;
  33987. _this2.$emit('leave');
  33988. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  33989. setTimeout(_this2.onTransitionEnd, _this2.duration);
  33990. _this2.classes = classNames['leave-to'];
  33991. });
  33992. },
  33993. // 完成过渡后触发
  33994. onTransitionEnd: function onTransitionEnd() {
  33995. // 如果已经是结束的状态,无需再处理
  33996. if (this.transitionEnded) return;
  33997. this.transitionEnded = true;
  33998. // 发出组件动画执行后的事件
  33999. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  34000. if (!this.show && this.display) {
  34001. this.display = false;
  34002. this.inited = false;
  34003. }
  34004. }
  34005. }
  34006. };
  34007. exports.default = _default;
  34008. /***/ }),
  34009. /* 572 */
  34010. /*!*************************************************************************************************!*\
  34011. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  34012. \*************************************************************************************************/
  34013. /*! no static exports found */
  34014. /***/ (function(module, exports, __webpack_require__) {
  34015. "use strict";
  34016. Object.defineProperty(exports, "__esModule", {
  34017. value: true
  34018. });
  34019. exports.default = void 0;
  34020. var _default = {
  34021. fade: {
  34022. enter: {
  34023. opacity: 0
  34024. },
  34025. 'enter-to': {
  34026. opacity: 1
  34027. },
  34028. leave: {
  34029. opacity: 1
  34030. },
  34031. 'leave-to': {
  34032. opacity: 0
  34033. }
  34034. },
  34035. 'fade-up': {
  34036. enter: {
  34037. opacity: 0,
  34038. transform: 'translateY(100%)'
  34039. },
  34040. 'enter-to': {
  34041. opacity: 1,
  34042. transform: 'translateY(0)'
  34043. },
  34044. leave: {
  34045. opacity: 1,
  34046. transform: 'translateY(0)'
  34047. },
  34048. 'leave-to': {
  34049. opacity: 0,
  34050. transform: 'translateY(100%)'
  34051. }
  34052. },
  34053. 'fade-down': {
  34054. enter: {
  34055. opacity: 0,
  34056. transform: 'translateY(-100%)'
  34057. },
  34058. 'enter-to': {
  34059. opacity: 1,
  34060. transform: 'translateY(0)'
  34061. },
  34062. leave: {
  34063. opacity: 1,
  34064. transform: 'translateY(0)'
  34065. },
  34066. 'leave-to': {
  34067. opacity: 0,
  34068. transform: 'translateY(-100%)'
  34069. }
  34070. },
  34071. 'fade-left': {
  34072. enter: {
  34073. opacity: 0,
  34074. transform: 'translateX(-100%)'
  34075. },
  34076. 'enter-to': {
  34077. opacity: 1,
  34078. transform: 'translateY(0)'
  34079. },
  34080. leave: {
  34081. opacity: 1,
  34082. transform: 'translateY(0)'
  34083. },
  34084. 'leave-to': {
  34085. opacity: 0,
  34086. transform: 'translateX(-100%)'
  34087. }
  34088. },
  34089. 'fade-right': {
  34090. enter: {
  34091. opacity: 0,
  34092. transform: 'translateX(100%)'
  34093. },
  34094. 'enter-to': {
  34095. opacity: 1,
  34096. transform: 'translateY(0)'
  34097. },
  34098. leave: {
  34099. opacity: 1,
  34100. transform: 'translateY(0)'
  34101. },
  34102. 'leave-to': {
  34103. opacity: 0,
  34104. transform: 'translateX(100%)'
  34105. }
  34106. },
  34107. 'slide-up': {
  34108. enter: {
  34109. transform: 'translateY(100%)'
  34110. },
  34111. 'enter-to': {
  34112. transform: 'translateY(0)'
  34113. },
  34114. leave: {
  34115. transform: 'translateY(0)'
  34116. },
  34117. 'leave-to': {
  34118. transform: 'translateY(100%)'
  34119. }
  34120. },
  34121. 'slide-down': {
  34122. enter: {
  34123. transform: 'translateY(-100%)'
  34124. },
  34125. 'enter-to': {
  34126. transform: 'translateY(0)'
  34127. },
  34128. leave: {
  34129. transform: 'translateY(0)'
  34130. },
  34131. 'leave-to': {
  34132. transform: 'translateY(-100%)'
  34133. }
  34134. },
  34135. 'slide-left': {
  34136. enter: {
  34137. transform: 'translateX(-100%)'
  34138. },
  34139. 'enter-to': {
  34140. transform: 'translateY(0)'
  34141. },
  34142. leave: {
  34143. transform: 'translateY(0)'
  34144. },
  34145. 'leave-to': {
  34146. transform: 'translateX(-100%)'
  34147. }
  34148. },
  34149. 'slide-right': {
  34150. enter: {
  34151. transform: 'translateX(100%)'
  34152. },
  34153. 'enter-to': {
  34154. transform: 'translateY(0)'
  34155. },
  34156. leave: {
  34157. transform: 'translateY(0)'
  34158. },
  34159. 'leave-to': {
  34160. transform: 'translateX(100%)'
  34161. }
  34162. },
  34163. zoom: {
  34164. enter: {
  34165. transform: 'scale(0.95)'
  34166. },
  34167. 'enter-to': {
  34168. transform: 'scale(1)'
  34169. },
  34170. leave: {
  34171. transform: 'scale(1)'
  34172. },
  34173. 'leave-to': {
  34174. transform: 'scale(0.95)'
  34175. }
  34176. },
  34177. 'fade-zoom': {
  34178. enter: {
  34179. opacity: 0,
  34180. transform: 'scale(0.95)'
  34181. },
  34182. 'enter-to': {
  34183. opacity: 1,
  34184. transform: 'scale(1)'
  34185. },
  34186. leave: {
  34187. opacity: 1,
  34188. transform: 'scale(1)'
  34189. },
  34190. 'leave-to': {
  34191. opacity: 0,
  34192. transform: 'scale(0.95)'
  34193. }
  34194. }
  34195. };
  34196. exports.default = _default;
  34197. /***/ }),
  34198. /* 573 */,
  34199. /* 574 */,
  34200. /* 575 */,
  34201. /* 576 */,
  34202. /* 577 */,
  34203. /* 578 */,
  34204. /* 579 */,
  34205. /* 580 */
  34206. /*!********************************************************************************************!*\
  34207. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  34208. \********************************************************************************************/
  34209. /*! no static exports found */
  34210. /***/ (function(module, exports, __webpack_require__) {
  34211. "use strict";
  34212. /* WEBPACK VAR INJECTION */(function(uni) {
  34213. Object.defineProperty(exports, "__esModule", {
  34214. value: true
  34215. });
  34216. exports.default = void 0;
  34217. var _default = {
  34218. props: {
  34219. // 是否显示组件
  34220. show: {
  34221. type: Boolean,
  34222. default: uni.$u.props.loadingIcon.show
  34223. },
  34224. // 颜色
  34225. color: {
  34226. type: String,
  34227. default: uni.$u.props.loadingIcon.color
  34228. },
  34229. // 提示文字颜色
  34230. textColor: {
  34231. type: String,
  34232. default: uni.$u.props.loadingIcon.textColor
  34233. },
  34234. // 文字和图标是否垂直排列
  34235. vertical: {
  34236. type: Boolean,
  34237. default: uni.$u.props.loadingIcon.vertical
  34238. },
  34239. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  34240. mode: {
  34241. type: String,
  34242. default: uni.$u.props.loadingIcon.mode
  34243. },
  34244. // 图标大小,单位默认px
  34245. size: {
  34246. type: [String, Number],
  34247. default: uni.$u.props.loadingIcon.size
  34248. },
  34249. // 文字大小
  34250. textSize: {
  34251. type: [String, Number],
  34252. default: uni.$u.props.loadingIcon.textSize
  34253. },
  34254. // 文字内容
  34255. text: {
  34256. type: [String, Number],
  34257. default: uni.$u.props.loadingIcon.text
  34258. },
  34259. // 动画模式
  34260. timingFunction: {
  34261. type: String,
  34262. default: uni.$u.props.loadingIcon.timingFunction
  34263. },
  34264. // 动画执行周期时间
  34265. duration: {
  34266. type: [String, Number],
  34267. default: uni.$u.props.loadingIcon.duration
  34268. },
  34269. // mode=circle时的暗边颜色
  34270. inactiveColor: {
  34271. type: String,
  34272. default: uni.$u.props.loadingIcon.inactiveColor
  34273. }
  34274. }
  34275. };
  34276. exports.default = _default;
  34277. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  34278. /***/ }),
  34279. /* 581 */,
  34280. /* 582 */,
  34281. /* 583 */,
  34282. /* 584 */,
  34283. /* 585 */,
  34284. /* 586 */,
  34285. /* 587 */,
  34286. /* 588 */
  34287. /*!*************************************************************************************!*\
  34288. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-badge/props.js ***!
  34289. \*************************************************************************************/
  34290. /*! no static exports found */
  34291. /***/ (function(module, exports, __webpack_require__) {
  34292. "use strict";
  34293. /* WEBPACK VAR INJECTION */(function(uni) {
  34294. Object.defineProperty(exports, "__esModule", {
  34295. value: true
  34296. });
  34297. exports.default = void 0;
  34298. var _default = {
  34299. props: {
  34300. // 是否显示圆点
  34301. isDot: {
  34302. type: Boolean,
  34303. default: uni.$u.props.badge.isDot
  34304. },
  34305. // 显示的内容
  34306. value: {
  34307. type: [Number, String],
  34308. default: uni.$u.props.badge.value
  34309. },
  34310. // 是否显示
  34311. show: {
  34312. type: Boolean,
  34313. default: uni.$u.props.badge.show
  34314. },
  34315. // 最大值,超过最大值会显示 '{max}+'
  34316. max: {
  34317. type: [Number, String],
  34318. default: uni.$u.props.badge.max
  34319. },
  34320. // 主题类型,error|warning|success|primary
  34321. type: {
  34322. type: String,
  34323. default: uni.$u.props.badge.type
  34324. },
  34325. // 当数值为 0 时,是否展示 Badge
  34326. showZero: {
  34327. type: Boolean,
  34328. default: uni.$u.props.badge.showZero
  34329. },
  34330. // 背景颜色,优先级比type高,如设置,type参数会失效
  34331. bgColor: {
  34332. type: [String, null],
  34333. default: uni.$u.props.badge.bgColor
  34334. },
  34335. // 字体颜色
  34336. color: {
  34337. type: [String, null],
  34338. default: uni.$u.props.badge.color
  34339. },
  34340. // 徽标形状,circle-四角均为圆角,horn-左下角为直角
  34341. shape: {
  34342. type: String,
  34343. default: uni.$u.props.badge.shape
  34344. },
  34345. // 设置数字的显示方式,overflow|ellipsis|limit
  34346. // overflow会根据max字段判断,超出显示`${max}+`
  34347. // ellipsis会根据max判断,超出显示`${max}...`
  34348. // limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
  34349. numberType: {
  34350. type: String,
  34351. default: uni.$u.props.badge.numberType
  34352. },
  34353. // 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
  34354. offset: {
  34355. type: Array,
  34356. default: uni.$u.props.badge.offset
  34357. },
  34358. // 是否反转背景和字体颜色
  34359. inverted: {
  34360. type: Boolean,
  34361. default: uni.$u.props.badge.inverted
  34362. },
  34363. // 是否绝对定位
  34364. absolute: {
  34365. type: Boolean,
  34366. default: uni.$u.props.badge.absolute
  34367. }
  34368. }
  34369. };
  34370. exports.default = _default;
  34371. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  34372. /***/ }),
  34373. /* 589 */,
  34374. /* 590 */,
  34375. /* 591 */,
  34376. /* 592 */,
  34377. /* 593 */,
  34378. /* 594 */,
  34379. /* 595 */,
  34380. /* 596 */,
  34381. /* 597 */,
  34382. /* 598 */,
  34383. /* 599 */,
  34384. /* 600 */,
  34385. /* 601 */,
  34386. /* 602 */,
  34387. /* 603 */
  34388. /*!*************************************************************************************!*\
  34389. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-popup/props.js ***!
  34390. \*************************************************************************************/
  34391. /*! no static exports found */
  34392. /***/ (function(module, exports, __webpack_require__) {
  34393. "use strict";
  34394. /* WEBPACK VAR INJECTION */(function(uni) {
  34395. Object.defineProperty(exports, "__esModule", {
  34396. value: true
  34397. });
  34398. exports.default = void 0;
  34399. var _default = {
  34400. props: {
  34401. // 是否展示弹窗
  34402. show: {
  34403. type: Boolean,
  34404. default: uni.$u.props.popup.show
  34405. },
  34406. // 是否显示遮罩
  34407. overlay: {
  34408. type: Boolean,
  34409. default: uni.$u.props.popup.overlay
  34410. },
  34411. // 弹出的方向,可选值为 top bottom right left center
  34412. mode: {
  34413. type: String,
  34414. default: uni.$u.props.popup.mode
  34415. },
  34416. // 动画时长,单位ms
  34417. duration: {
  34418. type: [String, Number],
  34419. default: uni.$u.props.popup.duration
  34420. },
  34421. // 是否显示关闭图标
  34422. closeable: {
  34423. type: Boolean,
  34424. default: uni.$u.props.popup.closeable
  34425. },
  34426. // 自定义遮罩的样式
  34427. overlayStyle: {
  34428. type: [Object, String],
  34429. default: uni.$u.props.popup.overlayStyle
  34430. },
  34431. // 点击遮罩是否关闭弹窗
  34432. closeOnClickOverlay: {
  34433. type: Boolean,
  34434. default: uni.$u.props.popup.closeOnClickOverlay
  34435. },
  34436. // 层级
  34437. zIndex: {
  34438. type: [String, Number],
  34439. default: uni.$u.props.popup.zIndex
  34440. },
  34441. // 是否为iPhoneX留出底部安全距离
  34442. safeAreaInsetBottom: {
  34443. type: Boolean,
  34444. default: uni.$u.props.popup.safeAreaInsetBottom
  34445. },
  34446. // 是否留出顶部安全距离(状态栏高度)
  34447. safeAreaInsetTop: {
  34448. type: Boolean,
  34449. default: uni.$u.props.popup.safeAreaInsetTop
  34450. },
  34451. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  34452. closeIconPos: {
  34453. type: String,
  34454. default: uni.$u.props.popup.closeIconPos
  34455. },
  34456. // 是否显示圆角
  34457. round: {
  34458. type: [Boolean, String, Number],
  34459. default: uni.$u.props.popup.round
  34460. },
  34461. // mode=center,也即中部弹出时,是否使用缩放模式
  34462. zoom: {
  34463. type: Boolean,
  34464. default: uni.$u.props.popup.zoom
  34465. },
  34466. // 弹窗背景色,设置为transparent可去除白色背景
  34467. bgColor: {
  34468. type: String,
  34469. default: uni.$u.props.popup.bgColor
  34470. },
  34471. // 遮罩的透明度,0-1之间
  34472. overlayOpacity: {
  34473. type: [Number, String],
  34474. default: uni.$u.props.popup.overlayOpacity
  34475. }
  34476. }
  34477. };
  34478. exports.default = _default;
  34479. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  34480. /***/ }),
  34481. /* 604 */,
  34482. /* 605 */,
  34483. /* 606 */,
  34484. /* 607 */,
  34485. /* 608 */,
  34486. /* 609 */,
  34487. /* 610 */,
  34488. /* 611 */,
  34489. /* 612 */,
  34490. /* 613 */,
  34491. /* 614 */,
  34492. /* 615 */,
  34493. /* 616 */,
  34494. /* 617 */,
  34495. /* 618 */,
  34496. /* 619 */,
  34497. /* 620 */
  34498. /*!************************************************************************************!*\
  34499. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-icon/icons.js ***!
  34500. \************************************************************************************/
  34501. /*! no static exports found */
  34502. /***/ (function(module, exports, __webpack_require__) {
  34503. "use strict";
  34504. Object.defineProperty(exports, "__esModule", {
  34505. value: true
  34506. });
  34507. exports.default = void 0;
  34508. var _default = {
  34509. 'uicon-level': "\uE693",
  34510. 'uicon-column-line': "\uE68E",
  34511. 'uicon-checkbox-mark': "\uE807",
  34512. 'uicon-folder': "\uE7F5",
  34513. 'uicon-movie': "\uE7F6",
  34514. 'uicon-star-fill': "\uE669",
  34515. 'uicon-star': "\uE65F",
  34516. 'uicon-phone-fill': "\uE64F",
  34517. 'uicon-phone': "\uE622",
  34518. 'uicon-apple-fill': "\uE881",
  34519. 'uicon-chrome-circle-fill': "\uE885",
  34520. 'uicon-backspace': "\uE67B",
  34521. 'uicon-attach': "\uE632",
  34522. 'uicon-cut': "\uE948",
  34523. 'uicon-empty-car': "\uE602",
  34524. 'uicon-empty-coupon': "\uE682",
  34525. 'uicon-empty-address': "\uE646",
  34526. 'uicon-empty-favor': "\uE67C",
  34527. 'uicon-empty-permission': "\uE686",
  34528. 'uicon-empty-news': "\uE687",
  34529. 'uicon-empty-search': "\uE664",
  34530. 'uicon-github-circle-fill': "\uE887",
  34531. 'uicon-rmb': "\uE608",
  34532. 'uicon-person-delete-fill': "\uE66A",
  34533. 'uicon-reload': "\uE788",
  34534. 'uicon-order': "\uE68F",
  34535. 'uicon-server-man': "\uE6BC",
  34536. 'uicon-search': "\uE62A",
  34537. 'uicon-fingerprint': "\uE955",
  34538. 'uicon-more-dot-fill': "\uE630",
  34539. 'uicon-scan': "\uE662",
  34540. 'uicon-share-square': "\uE60B",
  34541. 'uicon-map': "\uE61D",
  34542. 'uicon-map-fill': "\uE64E",
  34543. 'uicon-tags': "\uE629",
  34544. 'uicon-tags-fill': "\uE651",
  34545. 'uicon-bookmark-fill': "\uE63B",
  34546. 'uicon-bookmark': "\uE60A",
  34547. 'uicon-eye': "\uE613",
  34548. 'uicon-eye-fill': "\uE641",
  34549. 'uicon-mic': "\uE64A",
  34550. 'uicon-mic-off': "\uE649",
  34551. 'uicon-calendar': "\uE66E",
  34552. 'uicon-calendar-fill': "\uE634",
  34553. 'uicon-trash': "\uE623",
  34554. 'uicon-trash-fill': "\uE658",
  34555. 'uicon-play-left': "\uE66D",
  34556. 'uicon-play-right': "\uE610",
  34557. 'uicon-minus': "\uE618",
  34558. 'uicon-plus': "\uE62D",
  34559. 'uicon-info': "\uE653",
  34560. 'uicon-info-circle': "\uE7D2",
  34561. 'uicon-info-circle-fill': "\uE64B",
  34562. 'uicon-question': "\uE715",
  34563. 'uicon-error': "\uE6D3",
  34564. 'uicon-close': "\uE685",
  34565. 'uicon-checkmark': "\uE6A8",
  34566. 'uicon-android-circle-fill': "\uE67E",
  34567. 'uicon-android-fill': "\uE67D",
  34568. 'uicon-ie': "\uE87B",
  34569. 'uicon-IE-circle-fill': "\uE889",
  34570. 'uicon-google': "\uE87A",
  34571. 'uicon-google-circle-fill': "\uE88A",
  34572. 'uicon-setting-fill': "\uE872",
  34573. 'uicon-setting': "\uE61F",
  34574. 'uicon-minus-square-fill': "\uE855",
  34575. 'uicon-plus-square-fill': "\uE856",
  34576. 'uicon-heart': "\uE7DF",
  34577. 'uicon-heart-fill': "\uE851",
  34578. 'uicon-camera': "\uE7D7",
  34579. 'uicon-camera-fill': "\uE870",
  34580. 'uicon-more-circle': "\uE63E",
  34581. 'uicon-more-circle-fill': "\uE645",
  34582. 'uicon-chat': "\uE620",
  34583. 'uicon-chat-fill': "\uE61E",
  34584. 'uicon-bag-fill': "\uE617",
  34585. 'uicon-bag': "\uE619",
  34586. 'uicon-error-circle-fill': "\uE62C",
  34587. 'uicon-error-circle': "\uE624",
  34588. 'uicon-close-circle': "\uE63F",
  34589. 'uicon-close-circle-fill': "\uE637",
  34590. 'uicon-checkmark-circle': "\uE63D",
  34591. 'uicon-checkmark-circle-fill': "\uE635",
  34592. 'uicon-question-circle-fill': "\uE666",
  34593. 'uicon-question-circle': "\uE625",
  34594. 'uicon-share': "\uE631",
  34595. 'uicon-share-fill': "\uE65E",
  34596. 'uicon-shopping-cart': "\uE621",
  34597. 'uicon-shopping-cart-fill': "\uE65D",
  34598. 'uicon-bell': "\uE609",
  34599. 'uicon-bell-fill': "\uE640",
  34600. 'uicon-list': "\uE650",
  34601. 'uicon-list-dot': "\uE616",
  34602. 'uicon-zhihu': "\uE6BA",
  34603. 'uicon-zhihu-circle-fill': "\uE709",
  34604. 'uicon-zhifubao': "\uE6B9",
  34605. 'uicon-zhifubao-circle-fill': "\uE6B8",
  34606. 'uicon-weixin-circle-fill': "\uE6B1",
  34607. 'uicon-weixin-fill': "\uE6B2",
  34608. 'uicon-twitter-circle-fill': "\uE6AB",
  34609. 'uicon-twitter': "\uE6AA",
  34610. 'uicon-taobao-circle-fill': "\uE6A7",
  34611. 'uicon-taobao': "\uE6A6",
  34612. 'uicon-weibo-circle-fill': "\uE6A5",
  34613. 'uicon-weibo': "\uE6A4",
  34614. 'uicon-qq-fill': "\uE6A1",
  34615. 'uicon-qq-circle-fill': "\uE6A0",
  34616. 'uicon-moments-circel-fill': "\uE69A",
  34617. 'uicon-moments': "\uE69B",
  34618. 'uicon-qzone': "\uE695",
  34619. 'uicon-qzone-circle-fill': "\uE696",
  34620. 'uicon-baidu-circle-fill': "\uE680",
  34621. 'uicon-baidu': "\uE681",
  34622. 'uicon-facebook-circle-fill': "\uE68A",
  34623. 'uicon-facebook': "\uE689",
  34624. 'uicon-car': "\uE60C",
  34625. 'uicon-car-fill': "\uE636",
  34626. 'uicon-warning-fill': "\uE64D",
  34627. 'uicon-warning': "\uE694",
  34628. 'uicon-clock-fill': "\uE638",
  34629. 'uicon-clock': "\uE60F",
  34630. 'uicon-edit-pen': "\uE612",
  34631. 'uicon-edit-pen-fill': "\uE66B",
  34632. 'uicon-email': "\uE611",
  34633. 'uicon-email-fill': "\uE642",
  34634. 'uicon-minus-circle': "\uE61B",
  34635. 'uicon-minus-circle-fill': "\uE652",
  34636. 'uicon-plus-circle': "\uE62E",
  34637. 'uicon-plus-circle-fill': "\uE661",
  34638. 'uicon-file-text': "\uE663",
  34639. 'uicon-file-text-fill': "\uE665",
  34640. 'uicon-pushpin': "\uE7E3",
  34641. 'uicon-pushpin-fill': "\uE86E",
  34642. 'uicon-grid': "\uE673",
  34643. 'uicon-grid-fill': "\uE678",
  34644. 'uicon-play-circle': "\uE647",
  34645. 'uicon-play-circle-fill': "\uE655",
  34646. 'uicon-pause-circle-fill': "\uE654",
  34647. 'uicon-pause': "\uE8FA",
  34648. 'uicon-pause-circle': "\uE643",
  34649. 'uicon-eye-off': "\uE648",
  34650. 'uicon-eye-off-outline': "\uE62B",
  34651. 'uicon-gift-fill': "\uE65C",
  34652. 'uicon-gift': "\uE65B",
  34653. 'uicon-rmb-circle-fill': "\uE657",
  34654. 'uicon-rmb-circle': "\uE677",
  34655. 'uicon-kefu-ermai': "\uE656",
  34656. 'uicon-server-fill': "\uE751",
  34657. 'uicon-coupon-fill': "\uE8C4",
  34658. 'uicon-coupon': "\uE8AE",
  34659. 'uicon-integral': "\uE704",
  34660. 'uicon-integral-fill': "\uE703",
  34661. 'uicon-home-fill': "\uE964",
  34662. 'uicon-home': "\uE965",
  34663. 'uicon-hourglass-half-fill': "\uE966",
  34664. 'uicon-hourglass': "\uE967",
  34665. 'uicon-account': "\uE628",
  34666. 'uicon-plus-people-fill': "\uE626",
  34667. 'uicon-minus-people-fill': "\uE615",
  34668. 'uicon-account-fill': "\uE614",
  34669. 'uicon-thumb-down-fill': "\uE726",
  34670. 'uicon-thumb-down': "\uE727",
  34671. 'uicon-thumb-up': "\uE733",
  34672. 'uicon-thumb-up-fill': "\uE72F",
  34673. 'uicon-lock-fill': "\uE979",
  34674. 'uicon-lock-open': "\uE973",
  34675. 'uicon-lock-opened-fill': "\uE974",
  34676. 'uicon-lock': "\uE97A",
  34677. 'uicon-red-packet-fill': "\uE690",
  34678. 'uicon-photo-fill': "\uE98B",
  34679. 'uicon-photo': "\uE98D",
  34680. 'uicon-volume-off-fill': "\uE659",
  34681. 'uicon-volume-off': "\uE644",
  34682. 'uicon-volume-fill': "\uE670",
  34683. 'uicon-volume': "\uE633",
  34684. 'uicon-red-packet': "\uE691",
  34685. 'uicon-download': "\uE63C",
  34686. 'uicon-arrow-up-fill': "\uE6B0",
  34687. 'uicon-arrow-down-fill': "\uE600",
  34688. 'uicon-play-left-fill': "\uE675",
  34689. 'uicon-play-right-fill': "\uE676",
  34690. 'uicon-rewind-left-fill': "\uE679",
  34691. 'uicon-rewind-right-fill': "\uE67A",
  34692. 'uicon-arrow-downward': "\uE604",
  34693. 'uicon-arrow-leftward': "\uE601",
  34694. 'uicon-arrow-rightward': "\uE603",
  34695. 'uicon-arrow-upward': "\uE607",
  34696. 'uicon-arrow-down': "\uE60D",
  34697. 'uicon-arrow-right': "\uE605",
  34698. 'uicon-arrow-left': "\uE60E",
  34699. 'uicon-arrow-up': "\uE606",
  34700. 'uicon-skip-back-left': "\uE674",
  34701. 'uicon-skip-forward-right': "\uE672",
  34702. 'uicon-rewind-right': "\uE66F",
  34703. 'uicon-rewind-left': "\uE671",
  34704. 'uicon-arrow-right-double': "\uE68D",
  34705. 'uicon-arrow-left-double': "\uE68C",
  34706. 'uicon-wifi-off': "\uE668",
  34707. 'uicon-wifi': "\uE667",
  34708. 'uicon-empty-data': "\uE62F",
  34709. 'uicon-empty-history': "\uE684",
  34710. 'uicon-empty-list': "\uE68B",
  34711. 'uicon-empty-page': "\uE627",
  34712. 'uicon-empty-order': "\uE639",
  34713. 'uicon-man': "\uE697",
  34714. 'uicon-woman': "\uE69C",
  34715. 'uicon-man-add': "\uE61C",
  34716. 'uicon-man-add-fill': "\uE64C",
  34717. 'uicon-man-delete': "\uE61A",
  34718. 'uicon-man-delete-fill': "\uE66A",
  34719. 'uicon-zh': "\uE70A",
  34720. 'uicon-en': "\uE692"
  34721. };
  34722. exports.default = _default;
  34723. /***/ }),
  34724. /* 621 */
  34725. /*!************************************************************************************!*\
  34726. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-icon/props.js ***!
  34727. \************************************************************************************/
  34728. /*! no static exports found */
  34729. /***/ (function(module, exports, __webpack_require__) {
  34730. "use strict";
  34731. /* WEBPACK VAR INJECTION */(function(uni) {
  34732. Object.defineProperty(exports, "__esModule", {
  34733. value: true
  34734. });
  34735. exports.default = void 0;
  34736. var _default = {
  34737. props: {
  34738. // 图标类名
  34739. name: {
  34740. type: String,
  34741. default: uni.$u.props.icon.name
  34742. },
  34743. // 图标颜色,可接受主题色
  34744. color: {
  34745. type: String,
  34746. default: uni.$u.props.icon.color
  34747. },
  34748. // 字体大小,单位px
  34749. size: {
  34750. type: [String, Number],
  34751. default: uni.$u.props.icon.size
  34752. },
  34753. // 是否显示粗体
  34754. bold: {
  34755. type: Boolean,
  34756. default: uni.$u.props.icon.bold
  34757. },
  34758. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  34759. index: {
  34760. type: [String, Number],
  34761. default: uni.$u.props.icon.index
  34762. },
  34763. // 触摸图标时的类名
  34764. hoverClass: {
  34765. type: String,
  34766. default: uni.$u.props.icon.hoverClass
  34767. },
  34768. // 自定义扩展前缀,方便用户扩展自己的图标库
  34769. customPrefix: {
  34770. type: String,
  34771. default: uni.$u.props.icon.customPrefix
  34772. },
  34773. // 图标右边或者下面的文字
  34774. label: {
  34775. type: [String, Number],
  34776. default: uni.$u.props.icon.label
  34777. },
  34778. // label的位置,只能右边或者下边
  34779. labelPos: {
  34780. type: String,
  34781. default: uni.$u.props.icon.labelPos
  34782. },
  34783. // label的大小
  34784. labelSize: {
  34785. type: [String, Number],
  34786. default: uni.$u.props.icon.labelSize
  34787. },
  34788. // label的颜色
  34789. labelColor: {
  34790. type: String,
  34791. default: uni.$u.props.icon.labelColor
  34792. },
  34793. // label与图标的距离
  34794. space: {
  34795. type: [String, Number],
  34796. default: uni.$u.props.icon.space
  34797. },
  34798. // 图片的mode
  34799. imgMode: {
  34800. type: String,
  34801. default: uni.$u.props.icon.imgMode
  34802. },
  34803. // 用于显示图片小图标时,图片的宽度
  34804. width: {
  34805. type: [String, Number],
  34806. default: uni.$u.props.icon.width
  34807. },
  34808. // 用于显示图片小图标时,图片的高度
  34809. height: {
  34810. type: [String, Number],
  34811. default: uni.$u.props.icon.height
  34812. },
  34813. // 用于解决某些情况下,让图标垂直居中的用途
  34814. top: {
  34815. type: [String, Number],
  34816. default: uni.$u.props.icon.top
  34817. },
  34818. // 是否阻止事件传播
  34819. stop: {
  34820. type: Boolean,
  34821. default: uni.$u.props.icon.stop
  34822. }
  34823. }
  34824. };
  34825. exports.default = _default;
  34826. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  34827. /***/ }),
  34828. /* 622 */,
  34829. /* 623 */,
  34830. /* 624 */,
  34831. /* 625 */,
  34832. /* 626 */,
  34833. /* 627 */,
  34834. /* 628 */,
  34835. /* 629 */
  34836. /*!**************************************************************************************!*\
  34837. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/util/async-validator.js ***!
  34838. \**************************************************************************************/
  34839. /*! no static exports found */
  34840. /***/ (function(module, exports, __webpack_require__) {
  34841. "use strict";
  34842. /* WEBPACK VAR INJECTION */(function(process) {
  34843. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  34844. Object.defineProperty(exports, "__esModule", {
  34845. value: true
  34846. });
  34847. exports.default = void 0;
  34848. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  34849. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  34850. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  34851. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  34852. function _extends() {
  34853. _extends = Object.assign || function (target) {
  34854. for (var i = 1; i < arguments.length; i++) {
  34855. var source = arguments[i];
  34856. for (var key in source) {
  34857. if (Object.prototype.hasOwnProperty.call(source, key)) {
  34858. target[key] = source[key];
  34859. }
  34860. }
  34861. }
  34862. return target;
  34863. };
  34864. return _extends.apply(this, arguments);
  34865. }
  34866. /* eslint no-console:0 */
  34867. var formatRegExp = /%[sdj%]/g;
  34868. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  34869. if (typeof process !== 'undefined' && Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"xcx","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  34870. warning = function warning(type, errors) {
  34871. if (typeof console !== 'undefined' && console.warn) {
  34872. if (errors.every(function (e) {
  34873. return typeof e === 'string';
  34874. })) {
  34875. console.warn(type, errors);
  34876. }
  34877. }
  34878. };
  34879. }
  34880. function convertFieldsError(errors) {
  34881. if (!errors || !errors.length) return null;
  34882. var fields = {};
  34883. errors.forEach(function (error) {
  34884. var field = error.field;
  34885. fields[field] = fields[field] || [];
  34886. fields[field].push(error);
  34887. });
  34888. return fields;
  34889. }
  34890. function format() {
  34891. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  34892. args[_key] = arguments[_key];
  34893. }
  34894. var i = 1;
  34895. var f = args[0];
  34896. var len = args.length;
  34897. if (typeof f === 'function') {
  34898. return f.apply(null, args.slice(1));
  34899. }
  34900. if (typeof f === 'string') {
  34901. var str = String(f).replace(formatRegExp, function (x) {
  34902. if (x === '%%') {
  34903. return '%';
  34904. }
  34905. if (i >= len) {
  34906. return x;
  34907. }
  34908. switch (x) {
  34909. case '%s':
  34910. return String(args[i++]);
  34911. case '%d':
  34912. return Number(args[i++]);
  34913. case '%j':
  34914. try {
  34915. return JSON.stringify(args[i++]);
  34916. } catch (_) {
  34917. return '[Circular]';
  34918. }
  34919. break;
  34920. default:
  34921. return x;
  34922. }
  34923. });
  34924. for (var arg = args[i]; i < len; arg = args[++i]) {
  34925. str += " ".concat(arg);
  34926. }
  34927. return str;
  34928. }
  34929. return f;
  34930. }
  34931. function isNativeStringType(type) {
  34932. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  34933. }
  34934. function isEmptyValue(value, type) {
  34935. if (value === undefined || value === null) {
  34936. return true;
  34937. }
  34938. if (type === 'array' && Array.isArray(value) && !value.length) {
  34939. return true;
  34940. }
  34941. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  34942. return true;
  34943. }
  34944. return false;
  34945. }
  34946. function asyncParallelArray(arr, func, callback) {
  34947. var results = [];
  34948. var total = 0;
  34949. var arrLength = arr.length;
  34950. function count(errors) {
  34951. results.push.apply(results, errors);
  34952. total++;
  34953. if (total === arrLength) {
  34954. callback(results);
  34955. }
  34956. }
  34957. arr.forEach(function (a) {
  34958. func(a, count);
  34959. });
  34960. }
  34961. function asyncSerialArray(arr, func, callback) {
  34962. var index = 0;
  34963. var arrLength = arr.length;
  34964. function next(errors) {
  34965. if (errors && errors.length) {
  34966. callback(errors);
  34967. return;
  34968. }
  34969. var original = index;
  34970. index += 1;
  34971. if (original < arrLength) {
  34972. func(arr[original], next);
  34973. } else {
  34974. callback([]);
  34975. }
  34976. }
  34977. next([]);
  34978. }
  34979. function flattenObjArr(objArr) {
  34980. var ret = [];
  34981. Object.keys(objArr).forEach(function (k) {
  34982. ret.push.apply(ret, objArr[k]);
  34983. });
  34984. return ret;
  34985. }
  34986. function asyncMap(objArr, option, func, callback) {
  34987. if (option.first) {
  34988. var _pending = new Promise(function (resolve, reject) {
  34989. var next = function next(errors) {
  34990. callback(errors);
  34991. return errors.length ? reject({
  34992. errors: errors,
  34993. fields: convertFieldsError(errors)
  34994. }) : resolve();
  34995. };
  34996. var flattenArr = flattenObjArr(objArr);
  34997. asyncSerialArray(flattenArr, func, next);
  34998. });
  34999. _pending.catch(function (e) {
  35000. return e;
  35001. });
  35002. return _pending;
  35003. }
  35004. var firstFields = option.firstFields || [];
  35005. if (firstFields === true) {
  35006. firstFields = Object.keys(objArr);
  35007. }
  35008. var objArrKeys = Object.keys(objArr);
  35009. var objArrLength = objArrKeys.length;
  35010. var total = 0;
  35011. var results = [];
  35012. var pending = new Promise(function (resolve, reject) {
  35013. var next = function next(errors) {
  35014. results.push.apply(results, errors);
  35015. total++;
  35016. if (total === objArrLength) {
  35017. callback(results);
  35018. return results.length ? reject({
  35019. errors: results,
  35020. fields: convertFieldsError(results)
  35021. }) : resolve();
  35022. }
  35023. };
  35024. if (!objArrKeys.length) {
  35025. callback(results);
  35026. resolve();
  35027. }
  35028. objArrKeys.forEach(function (key) {
  35029. var arr = objArr[key];
  35030. if (firstFields.indexOf(key) !== -1) {
  35031. asyncSerialArray(arr, func, next);
  35032. } else {
  35033. asyncParallelArray(arr, func, next);
  35034. }
  35035. });
  35036. });
  35037. pending.catch(function (e) {
  35038. return e;
  35039. });
  35040. return pending;
  35041. }
  35042. function complementError(rule) {
  35043. return function (oe) {
  35044. if (oe && oe.message) {
  35045. oe.field = oe.field || rule.fullField;
  35046. return oe;
  35047. }
  35048. return {
  35049. message: typeof oe === 'function' ? oe() : oe,
  35050. field: oe.field || rule.fullField
  35051. };
  35052. };
  35053. }
  35054. function deepMerge(target, source) {
  35055. if (source) {
  35056. for (var s in source) {
  35057. if (source.hasOwnProperty(s)) {
  35058. var value = source[s];
  35059. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  35060. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  35061. } else {
  35062. target[s] = value;
  35063. }
  35064. }
  35065. }
  35066. }
  35067. return target;
  35068. }
  35069. /**
  35070. * Rule for validating required fields.
  35071. *
  35072. * @param rule The validation rule.
  35073. * @param value The value of the field on the source object.
  35074. * @param source The source object being validated.
  35075. * @param errors An array of errors that this rule may add
  35076. * validation errors to.
  35077. * @param options The validation options.
  35078. * @param options.messages The validation messages.
  35079. */
  35080. function required(rule, value, source, errors, options, type) {
  35081. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  35082. errors.push(format(options.messages.required, rule.fullField));
  35083. }
  35084. }
  35085. /**
  35086. * Rule for validating whitespace.
  35087. *
  35088. * @param rule The validation rule.
  35089. * @param value The value of the field on the source object.
  35090. * @param source The source object being validated.
  35091. * @param errors An array of errors that this rule may add
  35092. * validation errors to.
  35093. * @param options The validation options.
  35094. * @param options.messages The validation messages.
  35095. */
  35096. function whitespace(rule, value, source, errors, options) {
  35097. if (/^\s+$/.test(value) || value === '') {
  35098. errors.push(format(options.messages.whitespace, rule.fullField));
  35099. }
  35100. }
  35101. /* eslint max-len:0 */
  35102. var pattern = {
  35103. // http://emailregex.com/
  35104. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  35105. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
  35106. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  35107. };
  35108. var types = {
  35109. integer: function integer(value) {
  35110. return /^(-)?\d+$/.test(value);
  35111. },
  35112. float: function float(value) {
  35113. return /^(-)?\d+(\.\d+)?$/.test(value);
  35114. },
  35115. array: function array(value) {
  35116. return Array.isArray(value);
  35117. },
  35118. regexp: function regexp(value) {
  35119. if (value instanceof RegExp) {
  35120. return true;
  35121. }
  35122. try {
  35123. return !!new RegExp(value);
  35124. } catch (e) {
  35125. return false;
  35126. }
  35127. },
  35128. date: function date(value) {
  35129. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  35130. },
  35131. number: function number(value) {
  35132. if (isNaN(value)) {
  35133. return false;
  35134. }
  35135. // 修改源码,将字符串数值先转为数值
  35136. return typeof +value === 'number';
  35137. },
  35138. object: function object(value) {
  35139. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  35140. },
  35141. method: function method(value) {
  35142. return typeof value === 'function';
  35143. },
  35144. email: function email(value) {
  35145. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  35146. },
  35147. url: function url(value) {
  35148. return typeof value === 'string' && !!value.match(pattern.url);
  35149. },
  35150. hex: function hex(value) {
  35151. return typeof value === 'string' && !!value.match(pattern.hex);
  35152. }
  35153. };
  35154. /**
  35155. * Rule for validating the type of a value.
  35156. *
  35157. * @param rule The validation rule.
  35158. * @param value The value of the field on the source object.
  35159. * @param source The source object being validated.
  35160. * @param errors An array of errors that this rule may add
  35161. * validation errors to.
  35162. * @param options The validation options.
  35163. * @param options.messages The validation messages.
  35164. */
  35165. function type(rule, value, source, errors, options) {
  35166. if (rule.required && value === undefined) {
  35167. required(rule, value, source, errors, options);
  35168. return;
  35169. }
  35170. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  35171. var ruleType = rule.type;
  35172. if (custom.indexOf(ruleType) > -1) {
  35173. if (!types[ruleType](value)) {
  35174. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  35175. } // straight typeof check
  35176. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  35177. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  35178. }
  35179. }
  35180. /**
  35181. * Rule for validating minimum and maximum allowed values.
  35182. *
  35183. * @param rule The validation rule.
  35184. * @param value The value of the field on the source object.
  35185. * @param source The source object being validated.
  35186. * @param errors An array of errors that this rule may add
  35187. * validation errors to.
  35188. * @param options The validation options.
  35189. * @param options.messages The validation messages.
  35190. */
  35191. function range(rule, value, source, errors, options) {
  35192. var len = typeof rule.len === 'number';
  35193. var min = typeof rule.min === 'number';
  35194. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  35195. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  35196. var val = value;
  35197. var key = null;
  35198. var num = typeof value === 'number';
  35199. var str = typeof value === 'string';
  35200. var arr = Array.isArray(value);
  35201. if (num) {
  35202. key = 'number';
  35203. } else if (str) {
  35204. key = 'string';
  35205. } else if (arr) {
  35206. key = 'array';
  35207. } // if the value is not of a supported type for range validation
  35208. // the validation rule rule should use the
  35209. // type property to also test for a particular type
  35210. if (!key) {
  35211. return false;
  35212. }
  35213. if (arr) {
  35214. val = value.length;
  35215. }
  35216. if (str) {
  35217. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  35218. val = value.replace(spRegexp, '_').length;
  35219. }
  35220. if (len) {
  35221. if (val !== rule.len) {
  35222. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  35223. }
  35224. } else if (min && !max && val < rule.min) {
  35225. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  35226. } else if (max && !min && val > rule.max) {
  35227. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  35228. } else if (min && max && (val < rule.min || val > rule.max)) {
  35229. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  35230. }
  35231. }
  35232. var ENUM = 'enum';
  35233. /**
  35234. * Rule for validating a value exists in an enumerable list.
  35235. *
  35236. * @param rule The validation rule.
  35237. * @param value The value of the field on the source object.
  35238. * @param source The source object being validated.
  35239. * @param errors An array of errors that this rule may add
  35240. * validation errors to.
  35241. * @param options The validation options.
  35242. * @param options.messages The validation messages.
  35243. */
  35244. function enumerable(rule, value, source, errors, options) {
  35245. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  35246. if (rule[ENUM].indexOf(value) === -1) {
  35247. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  35248. }
  35249. }
  35250. /**
  35251. * Rule for validating a regular expression pattern.
  35252. *
  35253. * @param rule The validation rule.
  35254. * @param value The value of the field on the source object.
  35255. * @param source The source object being validated.
  35256. * @param errors An array of errors that this rule may add
  35257. * validation errors to.
  35258. * @param options The validation options.
  35259. * @param options.messages The validation messages.
  35260. */
  35261. function pattern$1(rule, value, source, errors, options) {
  35262. if (rule.pattern) {
  35263. if (rule.pattern instanceof RegExp) {
  35264. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  35265. // flag is accidentally set to `true`, which in a validation scenario
  35266. // is not necessary and the result might be misleading
  35267. rule.pattern.lastIndex = 0;
  35268. if (!rule.pattern.test(value)) {
  35269. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  35270. }
  35271. } else if (typeof rule.pattern === 'string') {
  35272. var _pattern = new RegExp(rule.pattern);
  35273. if (!_pattern.test(value)) {
  35274. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  35275. }
  35276. }
  35277. }
  35278. }
  35279. var rules = {
  35280. required: required,
  35281. whitespace: whitespace,
  35282. type: type,
  35283. range: range,
  35284. enum: enumerable,
  35285. pattern: pattern$1
  35286. };
  35287. /**
  35288. * Performs validation for string types.
  35289. *
  35290. * @param rule The validation rule.
  35291. * @param value The value of the field on the source object.
  35292. * @param callback The callback function.
  35293. * @param source The source object being validated.
  35294. * @param options The validation options.
  35295. * @param options.messages The validation messages.
  35296. */
  35297. function string(rule, value, callback, source, options) {
  35298. var errors = [];
  35299. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35300. if (validate) {
  35301. if (isEmptyValue(value, 'string') && !rule.required) {
  35302. return callback();
  35303. }
  35304. rules.required(rule, value, source, errors, options, 'string');
  35305. if (!isEmptyValue(value, 'string')) {
  35306. rules.type(rule, value, source, errors, options);
  35307. rules.range(rule, value, source, errors, options);
  35308. rules.pattern(rule, value, source, errors, options);
  35309. if (rule.whitespace === true) {
  35310. rules.whitespace(rule, value, source, errors, options);
  35311. }
  35312. }
  35313. }
  35314. callback(errors);
  35315. }
  35316. /**
  35317. * Validates a function.
  35318. *
  35319. * @param rule The validation rule.
  35320. * @param value The value of the field on the source object.
  35321. * @param callback The callback function.
  35322. * @param source The source object being validated.
  35323. * @param options The validation options.
  35324. * @param options.messages The validation messages.
  35325. */
  35326. function method(rule, value, callback, source, options) {
  35327. var errors = [];
  35328. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35329. if (validate) {
  35330. if (isEmptyValue(value) && !rule.required) {
  35331. return callback();
  35332. }
  35333. rules.required(rule, value, source, errors, options);
  35334. if (value !== undefined) {
  35335. rules.type(rule, value, source, errors, options);
  35336. }
  35337. }
  35338. callback(errors);
  35339. }
  35340. /**
  35341. * Validates a number.
  35342. *
  35343. * @param rule The validation rule.
  35344. * @param value The value of the field on the source object.
  35345. * @param callback The callback function.
  35346. * @param source The source object being validated.
  35347. * @param options The validation options.
  35348. * @param options.messages The validation messages.
  35349. */
  35350. function number(rule, value, callback, source, options) {
  35351. var errors = [];
  35352. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35353. if (validate) {
  35354. if (value === '') {
  35355. value = undefined;
  35356. }
  35357. if (isEmptyValue(value) && !rule.required) {
  35358. return callback();
  35359. }
  35360. rules.required(rule, value, source, errors, options);
  35361. if (value !== undefined) {
  35362. rules.type(rule, value, source, errors, options);
  35363. rules.range(rule, value, source, errors, options);
  35364. }
  35365. }
  35366. callback(errors);
  35367. }
  35368. /**
  35369. * Validates a boolean.
  35370. *
  35371. * @param rule The validation rule.
  35372. * @param value The value of the field on the source object.
  35373. * @param callback The callback function.
  35374. * @param source The source object being validated.
  35375. * @param options The validation options.
  35376. * @param options.messages The validation messages.
  35377. */
  35378. function _boolean(rule, value, callback, source, options) {
  35379. var errors = [];
  35380. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35381. if (validate) {
  35382. if (isEmptyValue(value) && !rule.required) {
  35383. return callback();
  35384. }
  35385. rules.required(rule, value, source, errors, options);
  35386. if (value !== undefined) {
  35387. rules.type(rule, value, source, errors, options);
  35388. }
  35389. }
  35390. callback(errors);
  35391. }
  35392. /**
  35393. * Validates the regular expression type.
  35394. *
  35395. * @param rule The validation rule.
  35396. * @param value The value of the field on the source object.
  35397. * @param callback The callback function.
  35398. * @param source The source object being validated.
  35399. * @param options The validation options.
  35400. * @param options.messages The validation messages.
  35401. */
  35402. function regexp(rule, value, callback, source, options) {
  35403. var errors = [];
  35404. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35405. if (validate) {
  35406. if (isEmptyValue(value) && !rule.required) {
  35407. return callback();
  35408. }
  35409. rules.required(rule, value, source, errors, options);
  35410. if (!isEmptyValue(value)) {
  35411. rules.type(rule, value, source, errors, options);
  35412. }
  35413. }
  35414. callback(errors);
  35415. }
  35416. /**
  35417. * Validates a number is an integer.
  35418. *
  35419. * @param rule The validation rule.
  35420. * @param value The value of the field on the source object.
  35421. * @param callback The callback function.
  35422. * @param source The source object being validated.
  35423. * @param options The validation options.
  35424. * @param options.messages The validation messages.
  35425. */
  35426. function integer(rule, value, callback, source, options) {
  35427. var errors = [];
  35428. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35429. if (validate) {
  35430. if (isEmptyValue(value) && !rule.required) {
  35431. return callback();
  35432. }
  35433. rules.required(rule, value, source, errors, options);
  35434. if (value !== undefined) {
  35435. rules.type(rule, value, source, errors, options);
  35436. rules.range(rule, value, source, errors, options);
  35437. }
  35438. }
  35439. callback(errors);
  35440. }
  35441. /**
  35442. * Validates a number is a floating point number.
  35443. *
  35444. * @param rule The validation rule.
  35445. * @param value The value of the field on the source object.
  35446. * @param callback The callback function.
  35447. * @param source The source object being validated.
  35448. * @param options The validation options.
  35449. * @param options.messages The validation messages.
  35450. */
  35451. function floatFn(rule, value, callback, source, options) {
  35452. var errors = [];
  35453. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35454. if (validate) {
  35455. if (isEmptyValue(value) && !rule.required) {
  35456. return callback();
  35457. }
  35458. rules.required(rule, value, source, errors, options);
  35459. if (value !== undefined) {
  35460. rules.type(rule, value, source, errors, options);
  35461. rules.range(rule, value, source, errors, options);
  35462. }
  35463. }
  35464. callback(errors);
  35465. }
  35466. /**
  35467. * Validates an array.
  35468. *
  35469. * @param rule The validation rule.
  35470. * @param value The value of the field on the source object.
  35471. * @param callback The callback function.
  35472. * @param source The source object being validated.
  35473. * @param options The validation options.
  35474. * @param options.messages The validation messages.
  35475. */
  35476. function array(rule, value, callback, source, options) {
  35477. var errors = [];
  35478. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35479. if (validate) {
  35480. if (isEmptyValue(value, 'array') && !rule.required) {
  35481. return callback();
  35482. }
  35483. rules.required(rule, value, source, errors, options, 'array');
  35484. if (!isEmptyValue(value, 'array')) {
  35485. rules.type(rule, value, source, errors, options);
  35486. rules.range(rule, value, source, errors, options);
  35487. }
  35488. }
  35489. callback(errors);
  35490. }
  35491. /**
  35492. * Validates an object.
  35493. *
  35494. * @param rule The validation rule.
  35495. * @param value The value of the field on the source object.
  35496. * @param callback The callback function.
  35497. * @param source The source object being validated.
  35498. * @param options The validation options.
  35499. * @param options.messages The validation messages.
  35500. */
  35501. function object(rule, value, callback, source, options) {
  35502. var errors = [];
  35503. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35504. if (validate) {
  35505. if (isEmptyValue(value) && !rule.required) {
  35506. return callback();
  35507. }
  35508. rules.required(rule, value, source, errors, options);
  35509. if (value !== undefined) {
  35510. rules.type(rule, value, source, errors, options);
  35511. }
  35512. }
  35513. callback(errors);
  35514. }
  35515. var ENUM$1 = 'enum';
  35516. /**
  35517. * Validates an enumerable list.
  35518. *
  35519. * @param rule The validation rule.
  35520. * @param value The value of the field on the source object.
  35521. * @param callback The callback function.
  35522. * @param source The source object being validated.
  35523. * @param options The validation options.
  35524. * @param options.messages The validation messages.
  35525. */
  35526. function enumerable$1(rule, value, callback, source, options) {
  35527. var errors = [];
  35528. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35529. if (validate) {
  35530. if (isEmptyValue(value) && !rule.required) {
  35531. return callback();
  35532. }
  35533. rules.required(rule, value, source, errors, options);
  35534. if (value !== undefined) {
  35535. rules[ENUM$1](rule, value, source, errors, options);
  35536. }
  35537. }
  35538. callback(errors);
  35539. }
  35540. /**
  35541. * Validates a regular expression pattern.
  35542. *
  35543. * Performs validation when a rule only contains
  35544. * a pattern property but is not declared as a string type.
  35545. *
  35546. * @param rule The validation rule.
  35547. * @param value The value of the field on the source object.
  35548. * @param callback The callback function.
  35549. * @param source The source object being validated.
  35550. * @param options The validation options.
  35551. * @param options.messages The validation messages.
  35552. */
  35553. function pattern$2(rule, value, callback, source, options) {
  35554. var errors = [];
  35555. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35556. if (validate) {
  35557. if (isEmptyValue(value, 'string') && !rule.required) {
  35558. return callback();
  35559. }
  35560. rules.required(rule, value, source, errors, options);
  35561. if (!isEmptyValue(value, 'string')) {
  35562. rules.pattern(rule, value, source, errors, options);
  35563. }
  35564. }
  35565. callback(errors);
  35566. }
  35567. function date(rule, value, callback, source, options) {
  35568. var errors = [];
  35569. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35570. if (validate) {
  35571. if (isEmptyValue(value) && !rule.required) {
  35572. return callback();
  35573. }
  35574. rules.required(rule, value, source, errors, options);
  35575. if (!isEmptyValue(value)) {
  35576. var dateObject;
  35577. if (typeof value === 'number') {
  35578. dateObject = new Date(value);
  35579. } else {
  35580. dateObject = value;
  35581. }
  35582. rules.type(rule, dateObject, source, errors, options);
  35583. if (dateObject) {
  35584. rules.range(rule, dateObject.getTime(), source, errors, options);
  35585. }
  35586. }
  35587. }
  35588. callback(errors);
  35589. }
  35590. function required$1(rule, value, callback, source, options) {
  35591. var errors = [];
  35592. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  35593. rules.required(rule, value, source, errors, options, type);
  35594. callback(errors);
  35595. }
  35596. function type$1(rule, value, callback, source, options) {
  35597. var ruleType = rule.type;
  35598. var errors = [];
  35599. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35600. if (validate) {
  35601. if (isEmptyValue(value, ruleType) && !rule.required) {
  35602. return callback();
  35603. }
  35604. rules.required(rule, value, source, errors, options, ruleType);
  35605. if (!isEmptyValue(value, ruleType)) {
  35606. rules.type(rule, value, source, errors, options);
  35607. }
  35608. }
  35609. callback(errors);
  35610. }
  35611. /**
  35612. * Performs validation for any type.
  35613. *
  35614. * @param rule The validation rule.
  35615. * @param value The value of the field on the source object.
  35616. * @param callback The callback function.
  35617. * @param source The source object being validated.
  35618. * @param options The validation options.
  35619. * @param options.messages The validation messages.
  35620. */
  35621. function any(rule, value, callback, source, options) {
  35622. var errors = [];
  35623. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  35624. if (validate) {
  35625. if (isEmptyValue(value) && !rule.required) {
  35626. return callback();
  35627. }
  35628. rules.required(rule, value, source, errors, options);
  35629. }
  35630. callback(errors);
  35631. }
  35632. var validators = {
  35633. string: string,
  35634. method: method,
  35635. number: number,
  35636. boolean: _boolean,
  35637. regexp: regexp,
  35638. integer: integer,
  35639. float: floatFn,
  35640. array: array,
  35641. object: object,
  35642. enum: enumerable$1,
  35643. pattern: pattern$2,
  35644. date: date,
  35645. url: type$1,
  35646. hex: type$1,
  35647. email: type$1,
  35648. required: required$1,
  35649. any: any
  35650. };
  35651. function newMessages() {
  35652. return {
  35653. default: 'Validation error on field %s',
  35654. required: '%s is required',
  35655. enum: '%s must be one of %s',
  35656. whitespace: '%s cannot be empty',
  35657. date: {
  35658. format: '%s date %s is invalid for format %s',
  35659. parse: '%s date could not be parsed, %s is invalid ',
  35660. invalid: '%s date %s is invalid'
  35661. },
  35662. types: {
  35663. string: '%s is not a %s',
  35664. method: '%s is not a %s (function)',
  35665. array: '%s is not an %s',
  35666. object: '%s is not an %s',
  35667. number: '%s is not a %s',
  35668. date: '%s is not a %s',
  35669. boolean: '%s is not a %s',
  35670. integer: '%s is not an %s',
  35671. float: '%s is not a %s',
  35672. regexp: '%s is not a valid %s',
  35673. email: '%s is not a valid %s',
  35674. url: '%s is not a valid %s',
  35675. hex: '%s is not a valid %s'
  35676. },
  35677. string: {
  35678. len: '%s must be exactly %s characters',
  35679. min: '%s must be at least %s characters',
  35680. max: '%s cannot be longer than %s characters',
  35681. range: '%s must be between %s and %s characters'
  35682. },
  35683. number: {
  35684. len: '%s must equal %s',
  35685. min: '%s cannot be less than %s',
  35686. max: '%s cannot be greater than %s',
  35687. range: '%s must be between %s and %s'
  35688. },
  35689. array: {
  35690. len: '%s must be exactly %s in length',
  35691. min: '%s cannot be less than %s in length',
  35692. max: '%s cannot be greater than %s in length',
  35693. range: '%s must be between %s and %s in length'
  35694. },
  35695. pattern: {
  35696. mismatch: '%s value %s does not match pattern %s'
  35697. },
  35698. clone: function clone() {
  35699. var cloned = JSON.parse(JSON.stringify(this));
  35700. cloned.clone = this.clone;
  35701. return cloned;
  35702. }
  35703. };
  35704. }
  35705. var messages = newMessages();
  35706. /**
  35707. * Encapsulates a validation schema.
  35708. *
  35709. * @param descriptor An object declaring validation rules
  35710. * for this schema.
  35711. */
  35712. function Schema(descriptor) {
  35713. this.rules = null;
  35714. this._messages = messages;
  35715. this.define(descriptor);
  35716. }
  35717. Schema.prototype = {
  35718. messages: function messages(_messages) {
  35719. if (_messages) {
  35720. this._messages = deepMerge(newMessages(), _messages);
  35721. }
  35722. return this._messages;
  35723. },
  35724. define: function define(rules) {
  35725. if (!rules) {
  35726. throw new Error('Cannot configure a schema with no rules');
  35727. }
  35728. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  35729. throw new Error('Rules must be an object');
  35730. }
  35731. this.rules = {};
  35732. var z;
  35733. var item;
  35734. for (z in rules) {
  35735. if (rules.hasOwnProperty(z)) {
  35736. item = rules[z];
  35737. this.rules[z] = Array.isArray(item) ? item : [item];
  35738. }
  35739. }
  35740. },
  35741. validate: function validate(source_, o, oc) {
  35742. var _this = this;
  35743. if (o === void 0) {
  35744. o = {};
  35745. }
  35746. if (oc === void 0) {
  35747. oc = function oc() {};
  35748. }
  35749. var source = source_;
  35750. var options = o;
  35751. var callback = oc;
  35752. if (typeof options === 'function') {
  35753. callback = options;
  35754. options = {};
  35755. }
  35756. if (!this.rules || Object.keys(this.rules).length === 0) {
  35757. if (callback) {
  35758. callback();
  35759. }
  35760. return Promise.resolve();
  35761. }
  35762. function complete(results) {
  35763. var i;
  35764. var errors = [];
  35765. var fields = {};
  35766. function add(e) {
  35767. if (Array.isArray(e)) {
  35768. var _errors;
  35769. errors = (_errors = errors).concat.apply(_errors, e);
  35770. } else {
  35771. errors.push(e);
  35772. }
  35773. }
  35774. for (i = 0; i < results.length; i++) {
  35775. add(results[i]);
  35776. }
  35777. if (!errors.length) {
  35778. errors = null;
  35779. fields = null;
  35780. } else {
  35781. fields = convertFieldsError(errors);
  35782. }
  35783. callback(errors, fields);
  35784. }
  35785. if (options.messages) {
  35786. var messages$1 = this.messages();
  35787. if (messages$1 === messages) {
  35788. messages$1 = newMessages();
  35789. }
  35790. deepMerge(messages$1, options.messages);
  35791. options.messages = messages$1;
  35792. } else {
  35793. options.messages = this.messages();
  35794. }
  35795. var arr;
  35796. var value;
  35797. var series = {};
  35798. var keys = options.keys || Object.keys(this.rules);
  35799. keys.forEach(function (z) {
  35800. arr = _this.rules[z];
  35801. value = source[z];
  35802. arr.forEach(function (r) {
  35803. var rule = r;
  35804. if (typeof rule.transform === 'function') {
  35805. if (source === source_) {
  35806. source = _objectSpread({}, source);
  35807. }
  35808. value = source[z] = rule.transform(value);
  35809. }
  35810. if (typeof rule === 'function') {
  35811. rule = {
  35812. validator: rule
  35813. };
  35814. } else {
  35815. rule = _objectSpread({}, rule);
  35816. }
  35817. rule.validator = _this.getValidationMethod(rule);
  35818. rule.field = z;
  35819. rule.fullField = rule.fullField || z;
  35820. rule.type = _this.getType(rule);
  35821. if (!rule.validator) {
  35822. return;
  35823. }
  35824. series[z] = series[z] || [];
  35825. series[z].push({
  35826. rule: rule,
  35827. value: value,
  35828. source: source,
  35829. field: z
  35830. });
  35831. });
  35832. });
  35833. var errorFields = {};
  35834. return asyncMap(series, options, function (data, doIt) {
  35835. var rule = data.rule;
  35836. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  35837. deep = deep && (rule.required || !rule.required && data.value);
  35838. rule.field = data.field;
  35839. function addFullfield(key, schema) {
  35840. return _objectSpread(_objectSpread({}, schema), {}, {
  35841. fullField: "".concat(rule.fullField, ".").concat(key)
  35842. });
  35843. }
  35844. function cb(e) {
  35845. if (e === void 0) {
  35846. e = [];
  35847. }
  35848. var errors = e;
  35849. if (!Array.isArray(errors)) {
  35850. errors = [errors];
  35851. }
  35852. if (!options.suppressWarning && errors.length) {
  35853. Schema.warning('async-validator:', errors);
  35854. }
  35855. if (errors.length && rule.message) {
  35856. errors = [].concat(rule.message);
  35857. }
  35858. errors = errors.map(complementError(rule));
  35859. if (options.first && errors.length) {
  35860. errorFields[rule.field] = 1;
  35861. return doIt(errors);
  35862. }
  35863. if (!deep) {
  35864. doIt(errors);
  35865. } else {
  35866. // if rule is required but the target object
  35867. // does not exist fail at the rule level and don't
  35868. // go deeper
  35869. if (rule.required && !data.value) {
  35870. if (rule.message) {
  35871. errors = [].concat(rule.message).map(complementError(rule));
  35872. } else if (options.error) {
  35873. errors = [options.error(rule, format(options.messages.required, rule.field))];
  35874. } else {
  35875. errors = [];
  35876. }
  35877. return doIt(errors);
  35878. }
  35879. var fieldsSchema = {};
  35880. if (rule.defaultField) {
  35881. for (var k in data.value) {
  35882. if (data.value.hasOwnProperty(k)) {
  35883. fieldsSchema[k] = rule.defaultField;
  35884. }
  35885. }
  35886. }
  35887. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  35888. for (var f in fieldsSchema) {
  35889. if (fieldsSchema.hasOwnProperty(f)) {
  35890. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  35891. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  35892. }
  35893. }
  35894. var schema = new Schema(fieldsSchema);
  35895. schema.messages(options.messages);
  35896. if (data.rule.options) {
  35897. data.rule.options.messages = options.messages;
  35898. data.rule.options.error = options.error;
  35899. }
  35900. schema.validate(data.value, data.rule.options || options, function (errs) {
  35901. var finalErrors = [];
  35902. if (errors && errors.length) {
  35903. finalErrors.push.apply(finalErrors, errors);
  35904. }
  35905. if (errs && errs.length) {
  35906. finalErrors.push.apply(finalErrors, errs);
  35907. }
  35908. doIt(finalErrors.length ? finalErrors : null);
  35909. });
  35910. }
  35911. }
  35912. var res;
  35913. if (rule.asyncValidator) {
  35914. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  35915. } else if (rule.validator) {
  35916. res = rule.validator(rule, data.value, cb, data.source, options);
  35917. if (res === true) {
  35918. cb();
  35919. } else if (res === false) {
  35920. cb(rule.message || "".concat(rule.field, " fails"));
  35921. } else if (res instanceof Array) {
  35922. cb(res);
  35923. } else if (res instanceof Error) {
  35924. cb(res.message);
  35925. }
  35926. }
  35927. if (res && res.then) {
  35928. res.then(function () {
  35929. return cb();
  35930. }, function (e) {
  35931. return cb(e);
  35932. });
  35933. }
  35934. }, function (results) {
  35935. complete(results);
  35936. });
  35937. },
  35938. getType: function getType(rule) {
  35939. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  35940. rule.type = 'pattern';
  35941. }
  35942. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  35943. throw new Error(format('Unknown rule type %s', rule.type));
  35944. }
  35945. return rule.type || 'string';
  35946. },
  35947. getValidationMethod: function getValidationMethod(rule) {
  35948. if (typeof rule.validator === 'function') {
  35949. return rule.validator;
  35950. }
  35951. var keys = Object.keys(rule);
  35952. var messageIndex = keys.indexOf('message');
  35953. if (messageIndex !== -1) {
  35954. keys.splice(messageIndex, 1);
  35955. }
  35956. if (keys.length === 1 && keys[0] === 'required') {
  35957. return validators.required;
  35958. }
  35959. return validators[this.getType(rule)] || false;
  35960. }
  35961. };
  35962. Schema.register = function register(type, validator) {
  35963. if (typeof validator !== 'function') {
  35964. throw new Error('Cannot register a validator by type, validator is not a function');
  35965. }
  35966. validators[type] = validator;
  35967. };
  35968. Schema.warning = warning;
  35969. Schema.messages = messages;
  35970. var _default = Schema; // # sourceMappingURL=index.js.map
  35971. exports.default = _default;
  35972. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../软件工具/开发工具/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 316)))
  35973. /***/ }),
  35974. /* 630 */,
  35975. /* 631 */,
  35976. /* 632 */,
  35977. /* 633 */,
  35978. /* 634 */,
  35979. /* 635 */,
  35980. /* 636 */,
  35981. /* 637 */,
  35982. /* 638 */,
  35983. /* 639 */,
  35984. /* 640 */,
  35985. /* 641 */,
  35986. /* 642 */
  35987. /*!*****************************************************************************************************!*\
  35988. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js ***!
  35989. \*****************************************************************************************************/
  35990. /*! no static exports found */
  35991. /***/ (function(module, exports, __webpack_require__) {
  35992. "use strict";
  35993. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  35994. Object.defineProperty(exports, "__esModule", {
  35995. value: true
  35996. });
  35997. exports.default = void 0;
  35998. var _en = _interopRequireDefault(__webpack_require__(/*! ./en.json */ 643));
  35999. var _zhHans = _interopRequireDefault(__webpack_require__(/*! ./zh-Hans.json */ 644));
  36000. var _zhHant = _interopRequireDefault(__webpack_require__(/*! ./zh-Hant.json */ 645));
  36001. var _default = {
  36002. en: _en.default,
  36003. 'zh-Hans': _zhHans.default,
  36004. 'zh-Hant': _zhHant.default
  36005. };
  36006. exports.default = _default;
  36007. /***/ }),
  36008. /* 643 */
  36009. /*!****************************************************************************************************!*\
  36010. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json ***!
  36011. \****************************************************************************************************/
  36012. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  36013. /***/ (function(module) {
  36014. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"Pull up to show more\",\"uni-load-more.contentrefresh\":\"loading...\",\"uni-load-more.contentnomore\":\"No more data\"}");
  36015. /***/ }),
  36016. /* 644 */
  36017. /*!*********************************************************************************************************!*\
  36018. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json ***!
  36019. \*********************************************************************************************************/
  36020. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  36021. /***/ (function(module) {
  36022. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉显示更多\",\"uni-load-more.contentrefresh\":\"正在加载...\",\"uni-load-more.contentnomore\":\"没有更多数据了\"}");
  36023. /***/ }),
  36024. /* 645 */
  36025. /*!*********************************************************************************************************!*\
  36026. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json ***!
  36027. \*********************************************************************************************************/
  36028. /*! exports provided: uni-load-more.contentdown, uni-load-more.contentrefresh, uni-load-more.contentnomore, default */
  36029. /***/ (function(module) {
  36030. module.exports = JSON.parse("{\"uni-load-more.contentdown\":\"上拉顯示更多\",\"uni-load-more.contentrefresh\":\"正在加載...\",\"uni-load-more.contentnomore\":\"沒有更多數據了\"}");
  36031. /***/ }),
  36032. /* 646 */,
  36033. /* 647 */,
  36034. /* 648 */,
  36035. /* 649 */,
  36036. /* 650 */,
  36037. /* 651 */,
  36038. /* 652 */,
  36039. /* 653 */,
  36040. /* 654 */,
  36041. /* 655 */,
  36042. /* 656 */,
  36043. /* 657 */,
  36044. /* 658 */,
  36045. /* 659 */,
  36046. /* 660 */
  36047. /*!************************************************************************************!*\
  36048. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-text/props.js ***!
  36049. \************************************************************************************/
  36050. /*! no static exports found */
  36051. /***/ (function(module, exports, __webpack_require__) {
  36052. "use strict";
  36053. /* WEBPACK VAR INJECTION */(function(uni) {
  36054. Object.defineProperty(exports, "__esModule", {
  36055. value: true
  36056. });
  36057. exports.default = void 0;
  36058. var _default = {
  36059. props: {
  36060. // 主题颜色
  36061. type: {
  36062. type: String,
  36063. default: uni.$u.props.text.type
  36064. },
  36065. // 是否显示
  36066. show: {
  36067. type: Boolean,
  36068. default: uni.$u.props.text.show
  36069. },
  36070. // 显示的值
  36071. text: {
  36072. type: [String, Number],
  36073. default: uni.$u.props.text.text
  36074. },
  36075. // 前置图标
  36076. prefixIcon: {
  36077. type: String,
  36078. default: uni.$u.props.text.prefixIcon
  36079. },
  36080. // 后置图标
  36081. suffixIcon: {
  36082. type: String,
  36083. default: uni.$u.props.text.suffixIcon
  36084. },
  36085. // 文本处理的匹配模式
  36086. // text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
  36087. mode: {
  36088. type: String,
  36089. default: uni.$u.props.text.mode
  36090. },
  36091. // mode=link下,配置的链接
  36092. href: {
  36093. type: String,
  36094. default: uni.$u.props.text.href
  36095. },
  36096. // 格式化规则
  36097. format: {
  36098. type: [String, Function],
  36099. default: uni.$u.props.text.format
  36100. },
  36101. // mode=phone时,点击文本是否拨打电话
  36102. call: {
  36103. type: Boolean,
  36104. default: uni.$u.props.text.call
  36105. },
  36106. // 小程序的打开方式
  36107. openType: {
  36108. type: String,
  36109. default: uni.$u.props.text.openType
  36110. },
  36111. // 是否粗体,默认normal
  36112. bold: {
  36113. type: Boolean,
  36114. default: uni.$u.props.text.bold
  36115. },
  36116. // 是否块状
  36117. block: {
  36118. type: Boolean,
  36119. default: uni.$u.props.text.block
  36120. },
  36121. // 文本显示的行数,如果设置,超出此行数,将会显示省略号
  36122. lines: {
  36123. type: [String, Number],
  36124. default: uni.$u.props.text.lines
  36125. },
  36126. // 文本颜色
  36127. color: {
  36128. type: String,
  36129. default: uni.$u.props.text.color
  36130. },
  36131. // 字体大小
  36132. size: {
  36133. type: [String, Number],
  36134. default: uni.$u.props.text.size
  36135. },
  36136. // 图标的样式
  36137. iconStyle: {
  36138. type: [Object, String],
  36139. default: uni.$u.props.text.iconStyle
  36140. },
  36141. // 文字装饰,下划线,中划线等,可选值 none|underline|line-through
  36142. decoration: {
  36143. type: String,
  36144. default: uni.$u.props.text.decoration
  36145. },
  36146. // 外边距,对象、字符串,数值形式均可
  36147. margin: {
  36148. type: [Object, String, Number],
  36149. default: uni.$u.props.text.margin
  36150. },
  36151. // 文本行高
  36152. lineHeight: {
  36153. type: [String, Number],
  36154. default: uni.$u.props.text.lineHeight
  36155. },
  36156. // 文本对齐方式,可选值left|center|right
  36157. align: {
  36158. type: String,
  36159. default: uni.$u.props.text.align
  36160. },
  36161. // 文字换行,可选值break-word|normal|anywhere
  36162. wordWrap: {
  36163. type: String,
  36164. default: uni.$u.props.text.wordWrap
  36165. }
  36166. }
  36167. };
  36168. exports.default = _default;
  36169. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  36170. /***/ }),
  36171. /* 661 */,
  36172. /* 662 */,
  36173. /* 663 */,
  36174. /* 664 */,
  36175. /* 665 */,
  36176. /* 666 */,
  36177. /* 667 */,
  36178. /* 668 */,
  36179. /* 669 */,
  36180. /* 670 */,
  36181. /* 671 */,
  36182. /* 672 */,
  36183. /* 673 */
  36184. /*!***************************************************************************************!*\
  36185. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-overlay/props.js ***!
  36186. \***************************************************************************************/
  36187. /*! no static exports found */
  36188. /***/ (function(module, exports, __webpack_require__) {
  36189. "use strict";
  36190. /* WEBPACK VAR INJECTION */(function(uni) {
  36191. Object.defineProperty(exports, "__esModule", {
  36192. value: true
  36193. });
  36194. exports.default = void 0;
  36195. var _default = {
  36196. props: {
  36197. // 是否显示遮罩
  36198. show: {
  36199. type: Boolean,
  36200. default: uni.$u.props.overlay.show
  36201. },
  36202. // 层级z-index
  36203. zIndex: {
  36204. type: [String, Number],
  36205. default: uni.$u.props.overlay.zIndex
  36206. },
  36207. // 遮罩的过渡时间,单位为ms
  36208. duration: {
  36209. type: [String, Number],
  36210. default: uni.$u.props.overlay.duration
  36211. },
  36212. // 不透明度值,当做rgba的第四个参数
  36213. opacity: {
  36214. type: [String, Number],
  36215. default: uni.$u.props.overlay.opacity
  36216. }
  36217. }
  36218. };
  36219. exports.default = _default;
  36220. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  36221. /***/ }),
  36222. /* 674 */,
  36223. /* 675 */,
  36224. /* 676 */,
  36225. /* 677 */,
  36226. /* 678 */,
  36227. /* 679 */,
  36228. /* 680 */,
  36229. /* 681 */
  36230. /*!******************************************************************************************!*\
  36231. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  36232. \******************************************************************************************/
  36233. /*! no static exports found */
  36234. /***/ (function(module, exports, __webpack_require__) {
  36235. "use strict";
  36236. /* WEBPACK VAR INJECTION */(function(uni) {
  36237. Object.defineProperty(exports, "__esModule", {
  36238. value: true
  36239. });
  36240. exports.default = void 0;
  36241. var _default = {
  36242. props: {
  36243. bgColor: {
  36244. type: String,
  36245. default: uni.$u.props.statusBar.bgColor
  36246. }
  36247. }
  36248. };
  36249. exports.default = _default;
  36250. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  36251. /***/ }),
  36252. /* 682 */,
  36253. /* 683 */,
  36254. /* 684 */,
  36255. /* 685 */,
  36256. /* 686 */,
  36257. /* 687 */,
  36258. /* 688 */,
  36259. /* 689 */
  36260. /*!*******************************************************************************************!*\
  36261. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  36262. \*******************************************************************************************/
  36263. /*! no static exports found */
  36264. /***/ (function(module, exports, __webpack_require__) {
  36265. "use strict";
  36266. Object.defineProperty(exports, "__esModule", {
  36267. value: true
  36268. });
  36269. exports.default = void 0;
  36270. var _default = {
  36271. props: {}
  36272. };
  36273. exports.default = _default;
  36274. /***/ }),
  36275. /* 690 */,
  36276. /* 691 */,
  36277. /* 692 */,
  36278. /* 693 */,
  36279. /* 694 */,
  36280. /* 695 */,
  36281. /* 696 */,
  36282. /* 697 */
  36283. /*!************************************************************************************!*\
  36284. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-text/value.js ***!
  36285. \************************************************************************************/
  36286. /*! no static exports found */
  36287. /***/ (function(module, exports, __webpack_require__) {
  36288. "use strict";
  36289. /* WEBPACK VAR INJECTION */(function(uni) {
  36290. Object.defineProperty(exports, "__esModule", {
  36291. value: true
  36292. });
  36293. exports.default = void 0;
  36294. var _default = {
  36295. computed: {
  36296. // 经处理后需要显示的值
  36297. value: function value() {
  36298. var text = this.text,
  36299. mode = this.mode,
  36300. format = this.format,
  36301. href = this.href;
  36302. // 价格类型
  36303. if (mode === 'price') {
  36304. // 如果text不为金额进行提示
  36305. if (!/^\d+(\.\d+)?$/.test(text)) {
  36306. uni.$u.error('金额模式下,text参数需要为金额格式');
  36307. }
  36308. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的金额格式化处理
  36309. if (uni.$u.test.func(format)) {
  36310. // 如果用户传入的是函数,使用函数格式化
  36311. return format(text);
  36312. }
  36313. // 如果format非正则,非函数,则使用默认的金额格式化方法进行操作
  36314. return uni.$u.priceFormat(text, 2);
  36315. }
  36316. if (mode === 'date') {
  36317. // 判断是否合法的日期或者时间戳
  36318. !uni.$u.test.date(text) && uni.$u.error('日期模式下,text参数需要为日期或时间戳格式');
  36319. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的格式化处理
  36320. if (uni.$u.test.func(format)) {
  36321. // 如果用户传入的是函数,使用函数格式化
  36322. return format(text);
  36323. }
  36324. if (format) {
  36325. // 如果format非正则,非函数,则使用默认的时间格式化方法进行操作
  36326. return uni.$u.timeFormat(text, format);
  36327. }
  36328. // 如果没有设置format,则设置为默认的时间格式化形式
  36329. return uni.$u.timeFormat(text, 'yyyy-mm-dd');
  36330. }
  36331. if (mode === 'phone') {
  36332. // 判断是否合法的手机号
  36333. // !uni.$u.test.mobile(text) && uni.$u.error('手机号模式下,text参数需要为手机号码格式')
  36334. if (uni.$u.test.func(format)) {
  36335. // 如果用户传入的是函数,使用函数格式化
  36336. return format(text);
  36337. }
  36338. if (format === 'encrypt') {
  36339. // 如果format为encrypt,则将手机号进行星号加密处理
  36340. return "".concat(text.substr(0, 3), "****").concat(text.substr(7));
  36341. }
  36342. return text;
  36343. }
  36344. if (mode === 'name') {
  36345. // 判断是否合法的字符粗
  36346. !(typeof text === 'string') && uni.$u.error('姓名模式下,text参数需要为字符串格式');
  36347. if (uni.$u.test.func(format)) {
  36348. // 如果用户传入的是函数,使用函数格式化
  36349. return format(text);
  36350. }
  36351. if (format === 'encrypt') {
  36352. // 如果format为encrypt,则将姓名进行星号加密处理
  36353. return this.formatName(text);
  36354. }
  36355. return text;
  36356. }
  36357. if (mode === 'link') {
  36358. // 判断是否合法的字符粗
  36359. !uni.$u.test.url(href) && uni.$u.error('超链接模式下,href参数需要为URL格式');
  36360. return text;
  36361. }
  36362. return text;
  36363. }
  36364. },
  36365. methods: {
  36366. // 默认的姓名脱敏规则
  36367. formatName: function formatName(name) {
  36368. var value = '';
  36369. if (name.length === 2) {
  36370. value = name.substr(0, 1) + '*';
  36371. } else if (name.length > 2) {
  36372. var char = '';
  36373. for (var i = 0, len = name.length - 2; i < len; i++) {
  36374. char += '*';
  36375. }
  36376. value = name.substr(0, 1) + char + name.substr(-1, 1);
  36377. } else {
  36378. value = name;
  36379. }
  36380. return value;
  36381. }
  36382. }
  36383. };
  36384. exports.default = _default;
  36385. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  36386. /***/ }),
  36387. /* 698 */
  36388. /*!******************************************************************************!*\
  36389. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/mixin/button.js ***!
  36390. \******************************************************************************/
  36391. /*! no static exports found */
  36392. /***/ (function(module, exports, __webpack_require__) {
  36393. "use strict";
  36394. Object.defineProperty(exports, "__esModule", {
  36395. value: true
  36396. });
  36397. exports.default = void 0;
  36398. var _default = {
  36399. props: {
  36400. lang: String,
  36401. sessionFrom: String,
  36402. sendMessageTitle: String,
  36403. sendMessagePath: String,
  36404. sendMessageImg: String,
  36405. showMessageCard: Boolean,
  36406. appParameter: String,
  36407. formType: String,
  36408. openType: String
  36409. }
  36410. };
  36411. exports.default = _default;
  36412. /***/ }),
  36413. /* 699 */
  36414. /*!********************************************************************************!*\
  36415. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/libs/mixin/openType.js ***!
  36416. \********************************************************************************/
  36417. /*! no static exports found */
  36418. /***/ (function(module, exports, __webpack_require__) {
  36419. "use strict";
  36420. Object.defineProperty(exports, "__esModule", {
  36421. value: true
  36422. });
  36423. exports.default = void 0;
  36424. var _default = {
  36425. props: {
  36426. openType: String
  36427. },
  36428. methods: {
  36429. onGetUserInfo: function onGetUserInfo(event) {
  36430. this.$emit('getuserinfo', event.detail);
  36431. },
  36432. onContact: function onContact(event) {
  36433. this.$emit('contact', event.detail);
  36434. },
  36435. onGetPhoneNumber: function onGetPhoneNumber(event) {
  36436. this.$emit('getphonenumber', event.detail);
  36437. },
  36438. onError: function onError(event) {
  36439. this.$emit('error', event.detail);
  36440. },
  36441. onLaunchApp: function onLaunchApp(event) {
  36442. this.$emit('launchapp', event.detail);
  36443. },
  36444. onOpenSetting: function onOpenSetting(event) {
  36445. this.$emit('opensetting', event.detail);
  36446. }
  36447. }
  36448. };
  36449. exports.default = _default;
  36450. /***/ }),
  36451. /* 700 */,
  36452. /* 701 */,
  36453. /* 702 */,
  36454. /* 703 */,
  36455. /* 704 */,
  36456. /* 705 */,
  36457. /* 706 */,
  36458. /* 707 */
  36459. /*!************************************************************************************!*\
  36460. !*** D:/2024/HBuilderProjects/xcx/uni_modules/uview-ui/components/u-link/props.js ***!
  36461. \************************************************************************************/
  36462. /*! no static exports found */
  36463. /***/ (function(module, exports, __webpack_require__) {
  36464. "use strict";
  36465. /* WEBPACK VAR INJECTION */(function(uni) {
  36466. Object.defineProperty(exports, "__esModule", {
  36467. value: true
  36468. });
  36469. exports.default = void 0;
  36470. var _default = {
  36471. props: {
  36472. // 文字颜色
  36473. color: {
  36474. type: String,
  36475. default: uni.$u.props.link.color
  36476. },
  36477. // 字体大小,单位px
  36478. fontSize: {
  36479. type: [String, Number],
  36480. default: uni.$u.props.link.fontSize
  36481. },
  36482. // 是否显示下划线
  36483. underLine: {
  36484. type: Boolean,
  36485. default: uni.$u.props.link.underLine
  36486. },
  36487. // 要跳转的链接
  36488. href: {
  36489. type: String,
  36490. default: uni.$u.props.link.href
  36491. },
  36492. // 小程序中复制到粘贴板的提示语
  36493. mpTips: {
  36494. type: String,
  36495. default: uni.$u.props.link.mpTips
  36496. },
  36497. // 下划线颜色
  36498. lineColor: {
  36499. type: String,
  36500. default: uni.$u.props.link.lineColor
  36501. },
  36502. // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
  36503. text: {
  36504. type: String,
  36505. default: uni.$u.props.link.text
  36506. }
  36507. }
  36508. };
  36509. exports.default = _default;
  36510. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  36511. /***/ })
  36512. ]]);
  36513. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map