vendor.js 372 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!*********************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  5. \*********************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(exports, "__esModule", {
  10. value: true
  11. });
  12. exports.default = void 0;
  13. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  14. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  15. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  16. return this;
  17. }();
  18. var key = ['w', 'x'].join('');
  19. var oldWx = target[key];
  20. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  21. function isWxKey(key) {
  22. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  23. return false;
  24. }
  25. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  26. }
  27. function initWx() {
  28. var newWx = {};
  29. for (var _key in oldWx) {
  30. if (isWxKey(_key)) {
  31. // TODO wrapper function
  32. newWx[_key] = oldWx[_key];
  33. }
  34. }
  35. return newWx;
  36. }
  37. target[key] = initWx();
  38. var _default = target[key];
  39. exports.default = _default;
  40. /***/ }),
  41. /***/ 10:
  42. /*!****************************************************************!*\
  43. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  44. \****************************************************************/
  45. /*! no static exports found */
  46. /***/ (function(module, exports) {
  47. function _nonIterableRest() {
  48. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  49. }
  50. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  51. /***/ }),
  52. /***/ 11:
  53. /*!***************************************************************!*\
  54. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  55. \***************************************************************/
  56. /*! no static exports found */
  57. /***/ (function(module, exports, __webpack_require__) {
  58. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  59. function _defineProperty(obj, key, value) {
  60. key = toPropertyKey(key);
  61. if (key in obj) {
  62. Object.defineProperty(obj, key, {
  63. value: value,
  64. enumerable: true,
  65. configurable: true,
  66. writable: true
  67. });
  68. } else {
  69. obj[key] = value;
  70. }
  71. return obj;
  72. }
  73. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  74. /***/ }),
  75. /***/ 12:
  76. /*!**************************************************************!*\
  77. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  78. \**************************************************************/
  79. /*! no static exports found */
  80. /***/ (function(module, exports, __webpack_require__) {
  81. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  82. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  83. function _toPropertyKey(arg) {
  84. var key = toPrimitive(arg, "string");
  85. return _typeof(key) === "symbol" ? key : String(key);
  86. }
  87. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  88. /***/ }),
  89. /***/ 128:
  90. /*!**********************************************************************************************!*\
  91. !*** D:/project/新医院随访2023/follow_applet/uni_modules/uni-icons/components/uni-icons/icons.js ***!
  92. \**********************************************************************************************/
  93. /*! no static exports found */
  94. /***/ (function(module, exports, __webpack_require__) {
  95. "use strict";
  96. Object.defineProperty(exports, "__esModule", {
  97. value: true
  98. });
  99. exports.default = void 0;
  100. var _default = {
  101. "id": "2852637",
  102. "name": "uniui图标库",
  103. "font_family": "uniicons",
  104. "css_prefix_text": "uniui-",
  105. "description": "",
  106. "glyphs": [{
  107. "icon_id": "25027049",
  108. "name": "yanse",
  109. "font_class": "color",
  110. "unicode": "e6cf",
  111. "unicode_decimal": 59087
  112. }, {
  113. "icon_id": "25027048",
  114. "name": "wallet",
  115. "font_class": "wallet",
  116. "unicode": "e6b1",
  117. "unicode_decimal": 59057
  118. }, {
  119. "icon_id": "25015720",
  120. "name": "settings-filled",
  121. "font_class": "settings-filled",
  122. "unicode": "e6ce",
  123. "unicode_decimal": 59086
  124. }, {
  125. "icon_id": "25015434",
  126. "name": "shimingrenzheng-filled",
  127. "font_class": "auth-filled",
  128. "unicode": "e6cc",
  129. "unicode_decimal": 59084
  130. }, {
  131. "icon_id": "24934246",
  132. "name": "shop-filled",
  133. "font_class": "shop-filled",
  134. "unicode": "e6cd",
  135. "unicode_decimal": 59085
  136. }, {
  137. "icon_id": "24934159",
  138. "name": "staff-filled-01",
  139. "font_class": "staff-filled",
  140. "unicode": "e6cb",
  141. "unicode_decimal": 59083
  142. }, {
  143. "icon_id": "24932461",
  144. "name": "VIP-filled",
  145. "font_class": "vip-filled",
  146. "unicode": "e6c6",
  147. "unicode_decimal": 59078
  148. }, {
  149. "icon_id": "24932462",
  150. "name": "plus_circle_fill",
  151. "font_class": "plus-filled",
  152. "unicode": "e6c7",
  153. "unicode_decimal": 59079
  154. }, {
  155. "icon_id": "24932463",
  156. "name": "folder_add-filled",
  157. "font_class": "folder-add-filled",
  158. "unicode": "e6c8",
  159. "unicode_decimal": 59080
  160. }, {
  161. "icon_id": "24932464",
  162. "name": "yanse-filled",
  163. "font_class": "color-filled",
  164. "unicode": "e6c9",
  165. "unicode_decimal": 59081
  166. }, {
  167. "icon_id": "24932465",
  168. "name": "tune-filled",
  169. "font_class": "tune-filled",
  170. "unicode": "e6ca",
  171. "unicode_decimal": 59082
  172. }, {
  173. "icon_id": "24932455",
  174. "name": "a-rilidaka-filled",
  175. "font_class": "calendar-filled",
  176. "unicode": "e6c0",
  177. "unicode_decimal": 59072
  178. }, {
  179. "icon_id": "24932456",
  180. "name": "notification-filled",
  181. "font_class": "notification-filled",
  182. "unicode": "e6c1",
  183. "unicode_decimal": 59073
  184. }, {
  185. "icon_id": "24932457",
  186. "name": "wallet-filled",
  187. "font_class": "wallet-filled",
  188. "unicode": "e6c2",
  189. "unicode_decimal": 59074
  190. }, {
  191. "icon_id": "24932458",
  192. "name": "paihangbang-filled",
  193. "font_class": "medal-filled",
  194. "unicode": "e6c3",
  195. "unicode_decimal": 59075
  196. }, {
  197. "icon_id": "24932459",
  198. "name": "gift-filled",
  199. "font_class": "gift-filled",
  200. "unicode": "e6c4",
  201. "unicode_decimal": 59076
  202. }, {
  203. "icon_id": "24932460",
  204. "name": "fire-filled",
  205. "font_class": "fire-filled",
  206. "unicode": "e6c5",
  207. "unicode_decimal": 59077
  208. }, {
  209. "icon_id": "24928001",
  210. "name": "refreshempty",
  211. "font_class": "refreshempty",
  212. "unicode": "e6bf",
  213. "unicode_decimal": 59071
  214. }, {
  215. "icon_id": "24926853",
  216. "name": "location-ellipse",
  217. "font_class": "location-filled",
  218. "unicode": "e6af",
  219. "unicode_decimal": 59055
  220. }, {
  221. "icon_id": "24926735",
  222. "name": "person-filled",
  223. "font_class": "person-filled",
  224. "unicode": "e69d",
  225. "unicode_decimal": 59037
  226. }, {
  227. "icon_id": "24926703",
  228. "name": "personadd-filled",
  229. "font_class": "personadd-filled",
  230. "unicode": "e698",
  231. "unicode_decimal": 59032
  232. }, {
  233. "icon_id": "24923351",
  234. "name": "back",
  235. "font_class": "back",
  236. "unicode": "e6b9",
  237. "unicode_decimal": 59065
  238. }, {
  239. "icon_id": "24923352",
  240. "name": "forward",
  241. "font_class": "forward",
  242. "unicode": "e6ba",
  243. "unicode_decimal": 59066
  244. }, {
  245. "icon_id": "24923353",
  246. "name": "arrowthinright",
  247. "font_class": "arrow-right",
  248. "unicode": "e6bb",
  249. "unicode_decimal": 59067
  250. }, {
  251. "icon_id": "24923353",
  252. "name": "arrowthinright",
  253. "font_class": "arrowthinright",
  254. "unicode": "e6bb",
  255. "unicode_decimal": 59067
  256. }, {
  257. "icon_id": "24923354",
  258. "name": "arrowthinleft",
  259. "font_class": "arrow-left",
  260. "unicode": "e6bc",
  261. "unicode_decimal": 59068
  262. }, {
  263. "icon_id": "24923354",
  264. "name": "arrowthinleft",
  265. "font_class": "arrowthinleft",
  266. "unicode": "e6bc",
  267. "unicode_decimal": 59068
  268. }, {
  269. "icon_id": "24923355",
  270. "name": "arrowthinup",
  271. "font_class": "arrow-up",
  272. "unicode": "e6bd",
  273. "unicode_decimal": 59069
  274. }, {
  275. "icon_id": "24923355",
  276. "name": "arrowthinup",
  277. "font_class": "arrowthinup",
  278. "unicode": "e6bd",
  279. "unicode_decimal": 59069
  280. }, {
  281. "icon_id": "24923356",
  282. "name": "arrowthindown",
  283. "font_class": "arrow-down",
  284. "unicode": "e6be",
  285. "unicode_decimal": 59070
  286. }, {
  287. "icon_id": "24923356",
  288. "name": "arrowthindown",
  289. "font_class": "arrowthindown",
  290. "unicode": "e6be",
  291. "unicode_decimal": 59070
  292. }, {
  293. "icon_id": "24923349",
  294. "name": "arrowdown",
  295. "font_class": "bottom",
  296. "unicode": "e6b8",
  297. "unicode_decimal": 59064
  298. }, {
  299. "icon_id": "24923349",
  300. "name": "arrowdown",
  301. "font_class": "arrowdown",
  302. "unicode": "e6b8",
  303. "unicode_decimal": 59064
  304. }, {
  305. "icon_id": "24923346",
  306. "name": "arrowright",
  307. "font_class": "right",
  308. "unicode": "e6b5",
  309. "unicode_decimal": 59061
  310. }, {
  311. "icon_id": "24923346",
  312. "name": "arrowright",
  313. "font_class": "arrowright",
  314. "unicode": "e6b5",
  315. "unicode_decimal": 59061
  316. }, {
  317. "icon_id": "24923347",
  318. "name": "arrowup",
  319. "font_class": "top",
  320. "unicode": "e6b6",
  321. "unicode_decimal": 59062
  322. }, {
  323. "icon_id": "24923347",
  324. "name": "arrowup",
  325. "font_class": "arrowup",
  326. "unicode": "e6b6",
  327. "unicode_decimal": 59062
  328. }, {
  329. "icon_id": "24923348",
  330. "name": "arrowleft",
  331. "font_class": "left",
  332. "unicode": "e6b7",
  333. "unicode_decimal": 59063
  334. }, {
  335. "icon_id": "24923348",
  336. "name": "arrowleft",
  337. "font_class": "arrowleft",
  338. "unicode": "e6b7",
  339. "unicode_decimal": 59063
  340. }, {
  341. "icon_id": "24923334",
  342. "name": "eye",
  343. "font_class": "eye",
  344. "unicode": "e651",
  345. "unicode_decimal": 58961
  346. }, {
  347. "icon_id": "24923335",
  348. "name": "eye-filled",
  349. "font_class": "eye-filled",
  350. "unicode": "e66a",
  351. "unicode_decimal": 58986
  352. }, {
  353. "icon_id": "24923336",
  354. "name": "eye-slash",
  355. "font_class": "eye-slash",
  356. "unicode": "e6b3",
  357. "unicode_decimal": 59059
  358. }, {
  359. "icon_id": "24923337",
  360. "name": "eye-slash-filled",
  361. "font_class": "eye-slash-filled",
  362. "unicode": "e6b4",
  363. "unicode_decimal": 59060
  364. }, {
  365. "icon_id": "24923305",
  366. "name": "info-filled",
  367. "font_class": "info-filled",
  368. "unicode": "e649",
  369. "unicode_decimal": 58953
  370. }, {
  371. "icon_id": "24923299",
  372. "name": "reload-01",
  373. "font_class": "reload",
  374. "unicode": "e6b2",
  375. "unicode_decimal": 59058
  376. }, {
  377. "icon_id": "24923195",
  378. "name": "mic_slash_fill",
  379. "font_class": "micoff-filled",
  380. "unicode": "e6b0",
  381. "unicode_decimal": 59056
  382. }, {
  383. "icon_id": "24923165",
  384. "name": "map-pin-ellipse",
  385. "font_class": "map-pin-ellipse",
  386. "unicode": "e6ac",
  387. "unicode_decimal": 59052
  388. }, {
  389. "icon_id": "24923166",
  390. "name": "map-pin",
  391. "font_class": "map-pin",
  392. "unicode": "e6ad",
  393. "unicode_decimal": 59053
  394. }, {
  395. "icon_id": "24923167",
  396. "name": "location",
  397. "font_class": "location",
  398. "unicode": "e6ae",
  399. "unicode_decimal": 59054
  400. }, {
  401. "icon_id": "24923064",
  402. "name": "starhalf",
  403. "font_class": "starhalf",
  404. "unicode": "e683",
  405. "unicode_decimal": 59011
  406. }, {
  407. "icon_id": "24923065",
  408. "name": "star",
  409. "font_class": "star",
  410. "unicode": "e688",
  411. "unicode_decimal": 59016
  412. }, {
  413. "icon_id": "24923066",
  414. "name": "star-filled",
  415. "font_class": "star-filled",
  416. "unicode": "e68f",
  417. "unicode_decimal": 59023
  418. }, {
  419. "icon_id": "24899646",
  420. "name": "a-rilidaka",
  421. "font_class": "calendar",
  422. "unicode": "e6a0",
  423. "unicode_decimal": 59040
  424. }, {
  425. "icon_id": "24899647",
  426. "name": "fire",
  427. "font_class": "fire",
  428. "unicode": "e6a1",
  429. "unicode_decimal": 59041
  430. }, {
  431. "icon_id": "24899648",
  432. "name": "paihangbang",
  433. "font_class": "medal",
  434. "unicode": "e6a2",
  435. "unicode_decimal": 59042
  436. }, {
  437. "icon_id": "24899649",
  438. "name": "font",
  439. "font_class": "font",
  440. "unicode": "e6a3",
  441. "unicode_decimal": 59043
  442. }, {
  443. "icon_id": "24899650",
  444. "name": "gift",
  445. "font_class": "gift",
  446. "unicode": "e6a4",
  447. "unicode_decimal": 59044
  448. }, {
  449. "icon_id": "24899651",
  450. "name": "link",
  451. "font_class": "link",
  452. "unicode": "e6a5",
  453. "unicode_decimal": 59045
  454. }, {
  455. "icon_id": "24899652",
  456. "name": "notification",
  457. "font_class": "notification",
  458. "unicode": "e6a6",
  459. "unicode_decimal": 59046
  460. }, {
  461. "icon_id": "24899653",
  462. "name": "staff",
  463. "font_class": "staff",
  464. "unicode": "e6a7",
  465. "unicode_decimal": 59047
  466. }, {
  467. "icon_id": "24899654",
  468. "name": "VIP",
  469. "font_class": "vip",
  470. "unicode": "e6a8",
  471. "unicode_decimal": 59048
  472. }, {
  473. "icon_id": "24899655",
  474. "name": "folder_add",
  475. "font_class": "folder-add",
  476. "unicode": "e6a9",
  477. "unicode_decimal": 59049
  478. }, {
  479. "icon_id": "24899656",
  480. "name": "tune",
  481. "font_class": "tune",
  482. "unicode": "e6aa",
  483. "unicode_decimal": 59050
  484. }, {
  485. "icon_id": "24899657",
  486. "name": "shimingrenzheng",
  487. "font_class": "auth",
  488. "unicode": "e6ab",
  489. "unicode_decimal": 59051
  490. }, {
  491. "icon_id": "24899565",
  492. "name": "person",
  493. "font_class": "person",
  494. "unicode": "e699",
  495. "unicode_decimal": 59033
  496. }, {
  497. "icon_id": "24899566",
  498. "name": "email-filled",
  499. "font_class": "email-filled",
  500. "unicode": "e69a",
  501. "unicode_decimal": 59034
  502. }, {
  503. "icon_id": "24899567",
  504. "name": "phone-filled",
  505. "font_class": "phone-filled",
  506. "unicode": "e69b",
  507. "unicode_decimal": 59035
  508. }, {
  509. "icon_id": "24899568",
  510. "name": "phone",
  511. "font_class": "phone",
  512. "unicode": "e69c",
  513. "unicode_decimal": 59036
  514. }, {
  515. "icon_id": "24899570",
  516. "name": "email",
  517. "font_class": "email",
  518. "unicode": "e69e",
  519. "unicode_decimal": 59038
  520. }, {
  521. "icon_id": "24899571",
  522. "name": "personadd",
  523. "font_class": "personadd",
  524. "unicode": "e69f",
  525. "unicode_decimal": 59039
  526. }, {
  527. "icon_id": "24899558",
  528. "name": "chatboxes-filled",
  529. "font_class": "chatboxes-filled",
  530. "unicode": "e692",
  531. "unicode_decimal": 59026
  532. }, {
  533. "icon_id": "24899559",
  534. "name": "contact",
  535. "font_class": "contact",
  536. "unicode": "e693",
  537. "unicode_decimal": 59027
  538. }, {
  539. "icon_id": "24899560",
  540. "name": "chatbubble-filled",
  541. "font_class": "chatbubble-filled",
  542. "unicode": "e694",
  543. "unicode_decimal": 59028
  544. }, {
  545. "icon_id": "24899561",
  546. "name": "contact-filled",
  547. "font_class": "contact-filled",
  548. "unicode": "e695",
  549. "unicode_decimal": 59029
  550. }, {
  551. "icon_id": "24899562",
  552. "name": "chatboxes",
  553. "font_class": "chatboxes",
  554. "unicode": "e696",
  555. "unicode_decimal": 59030
  556. }, {
  557. "icon_id": "24899563",
  558. "name": "chatbubble",
  559. "font_class": "chatbubble",
  560. "unicode": "e697",
  561. "unicode_decimal": 59031
  562. }, {
  563. "icon_id": "24881290",
  564. "name": "upload-filled",
  565. "font_class": "upload-filled",
  566. "unicode": "e68e",
  567. "unicode_decimal": 59022
  568. }, {
  569. "icon_id": "24881292",
  570. "name": "upload",
  571. "font_class": "upload",
  572. "unicode": "e690",
  573. "unicode_decimal": 59024
  574. }, {
  575. "icon_id": "24881293",
  576. "name": "weixin",
  577. "font_class": "weixin",
  578. "unicode": "e691",
  579. "unicode_decimal": 59025
  580. }, {
  581. "icon_id": "24881274",
  582. "name": "compose",
  583. "font_class": "compose",
  584. "unicode": "e67f",
  585. "unicode_decimal": 59007
  586. }, {
  587. "icon_id": "24881275",
  588. "name": "qq",
  589. "font_class": "qq",
  590. "unicode": "e680",
  591. "unicode_decimal": 59008
  592. }, {
  593. "icon_id": "24881276",
  594. "name": "download-filled",
  595. "font_class": "download-filled",
  596. "unicode": "e681",
  597. "unicode_decimal": 59009
  598. }, {
  599. "icon_id": "24881277",
  600. "name": "pengyouquan",
  601. "font_class": "pyq",
  602. "unicode": "e682",
  603. "unicode_decimal": 59010
  604. }, {
  605. "icon_id": "24881279",
  606. "name": "sound",
  607. "font_class": "sound",
  608. "unicode": "e684",
  609. "unicode_decimal": 59012
  610. }, {
  611. "icon_id": "24881280",
  612. "name": "trash-filled",
  613. "font_class": "trash-filled",
  614. "unicode": "e685",
  615. "unicode_decimal": 59013
  616. }, {
  617. "icon_id": "24881281",
  618. "name": "sound-filled",
  619. "font_class": "sound-filled",
  620. "unicode": "e686",
  621. "unicode_decimal": 59014
  622. }, {
  623. "icon_id": "24881282",
  624. "name": "trash",
  625. "font_class": "trash",
  626. "unicode": "e687",
  627. "unicode_decimal": 59015
  628. }, {
  629. "icon_id": "24881284",
  630. "name": "videocam-filled",
  631. "font_class": "videocam-filled",
  632. "unicode": "e689",
  633. "unicode_decimal": 59017
  634. }, {
  635. "icon_id": "24881285",
  636. "name": "spinner-cycle",
  637. "font_class": "spinner-cycle",
  638. "unicode": "e68a",
  639. "unicode_decimal": 59018
  640. }, {
  641. "icon_id": "24881286",
  642. "name": "weibo",
  643. "font_class": "weibo",
  644. "unicode": "e68b",
  645. "unicode_decimal": 59019
  646. }, {
  647. "icon_id": "24881288",
  648. "name": "videocam",
  649. "font_class": "videocam",
  650. "unicode": "e68c",
  651. "unicode_decimal": 59020
  652. }, {
  653. "icon_id": "24881289",
  654. "name": "download",
  655. "font_class": "download",
  656. "unicode": "e68d",
  657. "unicode_decimal": 59021
  658. }, {
  659. "icon_id": "24879601",
  660. "name": "help",
  661. "font_class": "help",
  662. "unicode": "e679",
  663. "unicode_decimal": 59001
  664. }, {
  665. "icon_id": "24879602",
  666. "name": "navigate-filled",
  667. "font_class": "navigate-filled",
  668. "unicode": "e67a",
  669. "unicode_decimal": 59002
  670. }, {
  671. "icon_id": "24879603",
  672. "name": "plusempty",
  673. "font_class": "plusempty",
  674. "unicode": "e67b",
  675. "unicode_decimal": 59003
  676. }, {
  677. "icon_id": "24879604",
  678. "name": "smallcircle",
  679. "font_class": "smallcircle",
  680. "unicode": "e67c",
  681. "unicode_decimal": 59004
  682. }, {
  683. "icon_id": "24879605",
  684. "name": "minus-filled",
  685. "font_class": "minus-filled",
  686. "unicode": "e67d",
  687. "unicode_decimal": 59005
  688. }, {
  689. "icon_id": "24879606",
  690. "name": "micoff",
  691. "font_class": "micoff",
  692. "unicode": "e67e",
  693. "unicode_decimal": 59006
  694. }, {
  695. "icon_id": "24879588",
  696. "name": "closeempty",
  697. "font_class": "closeempty",
  698. "unicode": "e66c",
  699. "unicode_decimal": 58988
  700. }, {
  701. "icon_id": "24879589",
  702. "name": "clear",
  703. "font_class": "clear",
  704. "unicode": "e66d",
  705. "unicode_decimal": 58989
  706. }, {
  707. "icon_id": "24879590",
  708. "name": "navigate",
  709. "font_class": "navigate",
  710. "unicode": "e66e",
  711. "unicode_decimal": 58990
  712. }, {
  713. "icon_id": "24879591",
  714. "name": "minus",
  715. "font_class": "minus",
  716. "unicode": "e66f",
  717. "unicode_decimal": 58991
  718. }, {
  719. "icon_id": "24879592",
  720. "name": "image",
  721. "font_class": "image",
  722. "unicode": "e670",
  723. "unicode_decimal": 58992
  724. }, {
  725. "icon_id": "24879593",
  726. "name": "mic",
  727. "font_class": "mic",
  728. "unicode": "e671",
  729. "unicode_decimal": 58993
  730. }, {
  731. "icon_id": "24879594",
  732. "name": "paperplane",
  733. "font_class": "paperplane",
  734. "unicode": "e672",
  735. "unicode_decimal": 58994
  736. }, {
  737. "icon_id": "24879595",
  738. "name": "close",
  739. "font_class": "close",
  740. "unicode": "e673",
  741. "unicode_decimal": 58995
  742. }, {
  743. "icon_id": "24879596",
  744. "name": "help-filled",
  745. "font_class": "help-filled",
  746. "unicode": "e674",
  747. "unicode_decimal": 58996
  748. }, {
  749. "icon_id": "24879597",
  750. "name": "plus-filled",
  751. "font_class": "paperplane-filled",
  752. "unicode": "e675",
  753. "unicode_decimal": 58997
  754. }, {
  755. "icon_id": "24879598",
  756. "name": "plus",
  757. "font_class": "plus",
  758. "unicode": "e676",
  759. "unicode_decimal": 58998
  760. }, {
  761. "icon_id": "24879599",
  762. "name": "mic-filled",
  763. "font_class": "mic-filled",
  764. "unicode": "e677",
  765. "unicode_decimal": 58999
  766. }, {
  767. "icon_id": "24879600",
  768. "name": "image-filled",
  769. "font_class": "image-filled",
  770. "unicode": "e678",
  771. "unicode_decimal": 59000
  772. }, {
  773. "icon_id": "24855900",
  774. "name": "locked-filled",
  775. "font_class": "locked-filled",
  776. "unicode": "e668",
  777. "unicode_decimal": 58984
  778. }, {
  779. "icon_id": "24855901",
  780. "name": "info",
  781. "font_class": "info",
  782. "unicode": "e669",
  783. "unicode_decimal": 58985
  784. }, {
  785. "icon_id": "24855903",
  786. "name": "locked",
  787. "font_class": "locked",
  788. "unicode": "e66b",
  789. "unicode_decimal": 58987
  790. }, {
  791. "icon_id": "24855884",
  792. "name": "camera-filled",
  793. "font_class": "camera-filled",
  794. "unicode": "e658",
  795. "unicode_decimal": 58968
  796. }, {
  797. "icon_id": "24855885",
  798. "name": "chat-filled",
  799. "font_class": "chat-filled",
  800. "unicode": "e659",
  801. "unicode_decimal": 58969
  802. }, {
  803. "icon_id": "24855886",
  804. "name": "camera",
  805. "font_class": "camera",
  806. "unicode": "e65a",
  807. "unicode_decimal": 58970
  808. }, {
  809. "icon_id": "24855887",
  810. "name": "circle",
  811. "font_class": "circle",
  812. "unicode": "e65b",
  813. "unicode_decimal": 58971
  814. }, {
  815. "icon_id": "24855888",
  816. "name": "checkmarkempty",
  817. "font_class": "checkmarkempty",
  818. "unicode": "e65c",
  819. "unicode_decimal": 58972
  820. }, {
  821. "icon_id": "24855889",
  822. "name": "chat",
  823. "font_class": "chat",
  824. "unicode": "e65d",
  825. "unicode_decimal": 58973
  826. }, {
  827. "icon_id": "24855890",
  828. "name": "circle-filled",
  829. "font_class": "circle-filled",
  830. "unicode": "e65e",
  831. "unicode_decimal": 58974
  832. }, {
  833. "icon_id": "24855891",
  834. "name": "flag",
  835. "font_class": "flag",
  836. "unicode": "e65f",
  837. "unicode_decimal": 58975
  838. }, {
  839. "icon_id": "24855892",
  840. "name": "flag-filled",
  841. "font_class": "flag-filled",
  842. "unicode": "e660",
  843. "unicode_decimal": 58976
  844. }, {
  845. "icon_id": "24855893",
  846. "name": "gear-filled",
  847. "font_class": "gear-filled",
  848. "unicode": "e661",
  849. "unicode_decimal": 58977
  850. }, {
  851. "icon_id": "24855894",
  852. "name": "home",
  853. "font_class": "home",
  854. "unicode": "e662",
  855. "unicode_decimal": 58978
  856. }, {
  857. "icon_id": "24855895",
  858. "name": "home-filled",
  859. "font_class": "home-filled",
  860. "unicode": "e663",
  861. "unicode_decimal": 58979
  862. }, {
  863. "icon_id": "24855896",
  864. "name": "gear",
  865. "font_class": "gear",
  866. "unicode": "e664",
  867. "unicode_decimal": 58980
  868. }, {
  869. "icon_id": "24855897",
  870. "name": "smallcircle-filled",
  871. "font_class": "smallcircle-filled",
  872. "unicode": "e665",
  873. "unicode_decimal": 58981
  874. }, {
  875. "icon_id": "24855898",
  876. "name": "map-filled",
  877. "font_class": "map-filled",
  878. "unicode": "e666",
  879. "unicode_decimal": 58982
  880. }, {
  881. "icon_id": "24855899",
  882. "name": "map",
  883. "font_class": "map",
  884. "unicode": "e667",
  885. "unicode_decimal": 58983
  886. }, {
  887. "icon_id": "24855825",
  888. "name": "refresh-filled",
  889. "font_class": "refresh-filled",
  890. "unicode": "e656",
  891. "unicode_decimal": 58966
  892. }, {
  893. "icon_id": "24855826",
  894. "name": "refresh",
  895. "font_class": "refresh",
  896. "unicode": "e657",
  897. "unicode_decimal": 58967
  898. }, {
  899. "icon_id": "24855808",
  900. "name": "cloud-upload",
  901. "font_class": "cloud-upload",
  902. "unicode": "e645",
  903. "unicode_decimal": 58949
  904. }, {
  905. "icon_id": "24855809",
  906. "name": "cloud-download-filled",
  907. "font_class": "cloud-download-filled",
  908. "unicode": "e646",
  909. "unicode_decimal": 58950
  910. }, {
  911. "icon_id": "24855810",
  912. "name": "cloud-download",
  913. "font_class": "cloud-download",
  914. "unicode": "e647",
  915. "unicode_decimal": 58951
  916. }, {
  917. "icon_id": "24855811",
  918. "name": "cloud-upload-filled",
  919. "font_class": "cloud-upload-filled",
  920. "unicode": "e648",
  921. "unicode_decimal": 58952
  922. }, {
  923. "icon_id": "24855813",
  924. "name": "redo",
  925. "font_class": "redo",
  926. "unicode": "e64a",
  927. "unicode_decimal": 58954
  928. }, {
  929. "icon_id": "24855814",
  930. "name": "images-filled",
  931. "font_class": "images-filled",
  932. "unicode": "e64b",
  933. "unicode_decimal": 58955
  934. }, {
  935. "icon_id": "24855815",
  936. "name": "undo-filled",
  937. "font_class": "undo-filled",
  938. "unicode": "e64c",
  939. "unicode_decimal": 58956
  940. }, {
  941. "icon_id": "24855816",
  942. "name": "more",
  943. "font_class": "more",
  944. "unicode": "e64d",
  945. "unicode_decimal": 58957
  946. }, {
  947. "icon_id": "24855817",
  948. "name": "more-filled",
  949. "font_class": "more-filled",
  950. "unicode": "e64e",
  951. "unicode_decimal": 58958
  952. }, {
  953. "icon_id": "24855818",
  954. "name": "undo",
  955. "font_class": "undo",
  956. "unicode": "e64f",
  957. "unicode_decimal": 58959
  958. }, {
  959. "icon_id": "24855819",
  960. "name": "images",
  961. "font_class": "images",
  962. "unicode": "e650",
  963. "unicode_decimal": 58960
  964. }, {
  965. "icon_id": "24855821",
  966. "name": "paperclip",
  967. "font_class": "paperclip",
  968. "unicode": "e652",
  969. "unicode_decimal": 58962
  970. }, {
  971. "icon_id": "24855822",
  972. "name": "settings",
  973. "font_class": "settings",
  974. "unicode": "e653",
  975. "unicode_decimal": 58963
  976. }, {
  977. "icon_id": "24855823",
  978. "name": "search",
  979. "font_class": "search",
  980. "unicode": "e654",
  981. "unicode_decimal": 58964
  982. }, {
  983. "icon_id": "24855824",
  984. "name": "redo-filled",
  985. "font_class": "redo-filled",
  986. "unicode": "e655",
  987. "unicode_decimal": 58965
  988. }, {
  989. "icon_id": "24841702",
  990. "name": "list",
  991. "font_class": "list",
  992. "unicode": "e644",
  993. "unicode_decimal": 58948
  994. }, {
  995. "icon_id": "24841489",
  996. "name": "mail-open-filled",
  997. "font_class": "mail-open-filled",
  998. "unicode": "e63a",
  999. "unicode_decimal": 58938
  1000. }, {
  1001. "icon_id": "24841491",
  1002. "name": "hand-thumbsdown-filled",
  1003. "font_class": "hand-down-filled",
  1004. "unicode": "e63c",
  1005. "unicode_decimal": 58940
  1006. }, {
  1007. "icon_id": "24841492",
  1008. "name": "hand-thumbsdown",
  1009. "font_class": "hand-down",
  1010. "unicode": "e63d",
  1011. "unicode_decimal": 58941
  1012. }, {
  1013. "icon_id": "24841493",
  1014. "name": "hand-thumbsup-filled",
  1015. "font_class": "hand-up-filled",
  1016. "unicode": "e63e",
  1017. "unicode_decimal": 58942
  1018. }, {
  1019. "icon_id": "24841494",
  1020. "name": "hand-thumbsup",
  1021. "font_class": "hand-up",
  1022. "unicode": "e63f",
  1023. "unicode_decimal": 58943
  1024. }, {
  1025. "icon_id": "24841496",
  1026. "name": "heart-filled",
  1027. "font_class": "heart-filled",
  1028. "unicode": "e641",
  1029. "unicode_decimal": 58945
  1030. }, {
  1031. "icon_id": "24841498",
  1032. "name": "mail-open",
  1033. "font_class": "mail-open",
  1034. "unicode": "e643",
  1035. "unicode_decimal": 58947
  1036. }, {
  1037. "icon_id": "24841488",
  1038. "name": "heart",
  1039. "font_class": "heart",
  1040. "unicode": "e639",
  1041. "unicode_decimal": 58937
  1042. }, {
  1043. "icon_id": "24839963",
  1044. "name": "loop",
  1045. "font_class": "loop",
  1046. "unicode": "e633",
  1047. "unicode_decimal": 58931
  1048. }, {
  1049. "icon_id": "24839866",
  1050. "name": "pulldown",
  1051. "font_class": "pulldown",
  1052. "unicode": "e632",
  1053. "unicode_decimal": 58930
  1054. }, {
  1055. "icon_id": "24813798",
  1056. "name": "scan",
  1057. "font_class": "scan",
  1058. "unicode": "e62a",
  1059. "unicode_decimal": 58922
  1060. }, {
  1061. "icon_id": "24813786",
  1062. "name": "bars",
  1063. "font_class": "bars",
  1064. "unicode": "e627",
  1065. "unicode_decimal": 58919
  1066. }, {
  1067. "icon_id": "24813788",
  1068. "name": "cart-filled",
  1069. "font_class": "cart-filled",
  1070. "unicode": "e629",
  1071. "unicode_decimal": 58921
  1072. }, {
  1073. "icon_id": "24813790",
  1074. "name": "checkbox",
  1075. "font_class": "checkbox",
  1076. "unicode": "e62b",
  1077. "unicode_decimal": 58923
  1078. }, {
  1079. "icon_id": "24813791",
  1080. "name": "checkbox-filled",
  1081. "font_class": "checkbox-filled",
  1082. "unicode": "e62c",
  1083. "unicode_decimal": 58924
  1084. }, {
  1085. "icon_id": "24813794",
  1086. "name": "shop",
  1087. "font_class": "shop",
  1088. "unicode": "e62f",
  1089. "unicode_decimal": 58927
  1090. }, {
  1091. "icon_id": "24813795",
  1092. "name": "headphones",
  1093. "font_class": "headphones",
  1094. "unicode": "e630",
  1095. "unicode_decimal": 58928
  1096. }, {
  1097. "icon_id": "24813796",
  1098. "name": "cart",
  1099. "font_class": "cart",
  1100. "unicode": "e631",
  1101. "unicode_decimal": 58929
  1102. }]
  1103. };
  1104. exports.default = _default;
  1105. /***/ }),
  1106. /***/ 13:
  1107. /*!*******************************************************!*\
  1108. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  1109. \*******************************************************/
  1110. /*! no static exports found */
  1111. /***/ (function(module, exports) {
  1112. function _typeof(obj) {
  1113. "@babel/helpers - typeof";
  1114. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  1115. return typeof obj;
  1116. } : function (obj) {
  1117. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  1118. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  1119. }
  1120. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1121. /***/ }),
  1122. /***/ 14:
  1123. /*!************************************************************!*\
  1124. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  1125. \************************************************************/
  1126. /*! no static exports found */
  1127. /***/ (function(module, exports, __webpack_require__) {
  1128. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  1129. function _toPrimitive(input, hint) {
  1130. if (_typeof(input) !== "object" || input === null) return input;
  1131. var prim = input[Symbol.toPrimitive];
  1132. if (prim !== undefined) {
  1133. var res = prim.call(input, hint || "default");
  1134. if (_typeof(res) !== "object") return res;
  1135. throw new TypeError("@@toPrimitive must return a primitive value.");
  1136. }
  1137. return (hint === "string" ? String : Number)(input);
  1138. }
  1139. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1140. /***/ }),
  1141. /***/ 15:
  1142. /*!**********************************************************!*\
  1143. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  1144. \**********************************************************/
  1145. /*! no static exports found */
  1146. /***/ (function(module, exports, __webpack_require__) {
  1147. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  1148. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  1149. function _construct(Parent, args, Class) {
  1150. if (isNativeReflectConstruct()) {
  1151. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  1152. } else {
  1153. module.exports = _construct = function _construct(Parent, args, Class) {
  1154. var a = [null];
  1155. a.push.apply(a, args);
  1156. var Constructor = Function.bind.apply(Parent, a);
  1157. var instance = new Constructor();
  1158. if (Class) setPrototypeOf(instance, Class.prototype);
  1159. return instance;
  1160. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1161. }
  1162. return _construct.apply(null, arguments);
  1163. }
  1164. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1165. /***/ }),
  1166. /***/ 16:
  1167. /*!***************************************************************!*\
  1168. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  1169. \***************************************************************/
  1170. /*! no static exports found */
  1171. /***/ (function(module, exports) {
  1172. function _setPrototypeOf(o, p) {
  1173. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  1174. o.__proto__ = p;
  1175. return o;
  1176. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1177. return _setPrototypeOf(o, p);
  1178. }
  1179. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1180. /***/ }),
  1181. /***/ 17:
  1182. /*!*************************************************************************!*\
  1183. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  1184. \*************************************************************************/
  1185. /*! no static exports found */
  1186. /***/ (function(module, exports) {
  1187. function _isNativeReflectConstruct() {
  1188. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  1189. if (Reflect.construct.sham) return false;
  1190. if (typeof Proxy === "function") return true;
  1191. try {
  1192. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  1193. return true;
  1194. } catch (e) {
  1195. return false;
  1196. }
  1197. }
  1198. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1199. /***/ }),
  1200. /***/ 18:
  1201. /*!******************************************************************!*\
  1202. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  1203. \******************************************************************/
  1204. /*! no static exports found */
  1205. /***/ (function(module, exports, __webpack_require__) {
  1206. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  1207. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  1208. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  1209. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  1210. function _toConsumableArray(arr) {
  1211. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  1212. }
  1213. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1214. /***/ }),
  1215. /***/ 19:
  1216. /*!******************************************************************!*\
  1217. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  1218. \******************************************************************/
  1219. /*! no static exports found */
  1220. /***/ (function(module, exports, __webpack_require__) {
  1221. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  1222. function _arrayWithoutHoles(arr) {
  1223. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  1224. }
  1225. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1226. /***/ }),
  1227. /***/ 2:
  1228. /*!************************************************************!*\
  1229. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  1230. \************************************************************/
  1231. /*! no static exports found */
  1232. /***/ (function(module, exports, __webpack_require__) {
  1233. "use strict";
  1234. /* WEBPACK VAR INJECTION */(function(wx, global) {
  1235. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  1236. Object.defineProperty(exports, "__esModule", {
  1237. value: true
  1238. });
  1239. exports.createApp = createApp;
  1240. exports.createComponent = createComponent;
  1241. exports.createPage = createPage;
  1242. exports.createPlugin = createPlugin;
  1243. exports.createSubpackageApp = createSubpackageApp;
  1244. exports.default = void 0;
  1245. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  1246. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  1247. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  1248. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  1249. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  1250. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  1251. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  1252. 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; }
  1253. 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; }
  1254. var realAtob;
  1255. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  1256. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  1257. if (typeof atob !== 'function') {
  1258. realAtob = function realAtob(str) {
  1259. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  1260. if (!b64re.test(str)) {
  1261. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  1262. }
  1263. // Adding the padding if missing, for semplicity
  1264. str += '=='.slice(2 - (str.length & 3));
  1265. var bitmap;
  1266. var result = '';
  1267. var r1;
  1268. var r2;
  1269. var i = 0;
  1270. for (; i < str.length;) {
  1271. 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++)));
  1272. 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);
  1273. }
  1274. return result;
  1275. };
  1276. } else {
  1277. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  1278. realAtob = atob;
  1279. }
  1280. function b64DecodeUnicode(str) {
  1281. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  1282. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  1283. }).join(''));
  1284. }
  1285. function getCurrentUserInfo() {
  1286. var token = wx.getStorageSync('uni_id_token') || '';
  1287. var tokenArr = token.split('.');
  1288. if (!token || tokenArr.length !== 3) {
  1289. return {
  1290. uid: null,
  1291. role: [],
  1292. permission: [],
  1293. tokenExpired: 0
  1294. };
  1295. }
  1296. var userInfo;
  1297. try {
  1298. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  1299. } catch (error) {
  1300. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  1301. }
  1302. userInfo.tokenExpired = userInfo.exp * 1000;
  1303. delete userInfo.exp;
  1304. delete userInfo.iat;
  1305. return userInfo;
  1306. }
  1307. function uniIdMixin(Vue) {
  1308. Vue.prototype.uniIDHasRole = function (roleId) {
  1309. var _getCurrentUserInfo = getCurrentUserInfo(),
  1310. role = _getCurrentUserInfo.role;
  1311. return role.indexOf(roleId) > -1;
  1312. };
  1313. Vue.prototype.uniIDHasPermission = function (permissionId) {
  1314. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  1315. permission = _getCurrentUserInfo2.permission;
  1316. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  1317. };
  1318. Vue.prototype.uniIDTokenValid = function () {
  1319. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  1320. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  1321. return tokenExpired > Date.now();
  1322. };
  1323. }
  1324. var _toString = Object.prototype.toString;
  1325. var hasOwnProperty = Object.prototype.hasOwnProperty;
  1326. function isFn(fn) {
  1327. return typeof fn === 'function';
  1328. }
  1329. function isStr(str) {
  1330. return typeof str === 'string';
  1331. }
  1332. function isObject(obj) {
  1333. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  1334. }
  1335. function isPlainObject(obj) {
  1336. return _toString.call(obj) === '[object Object]';
  1337. }
  1338. function hasOwn(obj, key) {
  1339. return hasOwnProperty.call(obj, key);
  1340. }
  1341. function noop() {}
  1342. /**
  1343. * Create a cached version of a pure function.
  1344. */
  1345. function cached(fn) {
  1346. var cache = Object.create(null);
  1347. return function cachedFn(str) {
  1348. var hit = cache[str];
  1349. return hit || (cache[str] = fn(str));
  1350. };
  1351. }
  1352. /**
  1353. * Camelize a hyphen-delimited string.
  1354. */
  1355. var camelizeRE = /-(\w)/g;
  1356. var camelize = cached(function (str) {
  1357. return str.replace(camelizeRE, function (_, c) {
  1358. return c ? c.toUpperCase() : '';
  1359. });
  1360. });
  1361. function sortObject(obj) {
  1362. var sortObj = {};
  1363. if (isPlainObject(obj)) {
  1364. Object.keys(obj).sort().forEach(function (key) {
  1365. sortObj[key] = obj[key];
  1366. });
  1367. }
  1368. return !Object.keys(sortObj) ? obj : sortObj;
  1369. }
  1370. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  1371. var globalInterceptors = {};
  1372. var scopedInterceptors = {};
  1373. function mergeHook(parentVal, childVal) {
  1374. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  1375. return res ? dedupeHooks(res) : res;
  1376. }
  1377. function dedupeHooks(hooks) {
  1378. var res = [];
  1379. for (var i = 0; i < hooks.length; i++) {
  1380. if (res.indexOf(hooks[i]) === -1) {
  1381. res.push(hooks[i]);
  1382. }
  1383. }
  1384. return res;
  1385. }
  1386. function removeHook(hooks, hook) {
  1387. var index = hooks.indexOf(hook);
  1388. if (index !== -1) {
  1389. hooks.splice(index, 1);
  1390. }
  1391. }
  1392. function mergeInterceptorHook(interceptor, option) {
  1393. Object.keys(option).forEach(function (hook) {
  1394. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  1395. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  1396. }
  1397. });
  1398. }
  1399. function removeInterceptorHook(interceptor, option) {
  1400. if (!interceptor || !option) {
  1401. return;
  1402. }
  1403. Object.keys(option).forEach(function (hook) {
  1404. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  1405. removeHook(interceptor[hook], option[hook]);
  1406. }
  1407. });
  1408. }
  1409. function addInterceptor(method, option) {
  1410. if (typeof method === 'string' && isPlainObject(option)) {
  1411. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  1412. } else if (isPlainObject(method)) {
  1413. mergeInterceptorHook(globalInterceptors, method);
  1414. }
  1415. }
  1416. function removeInterceptor(method, option) {
  1417. if (typeof method === 'string') {
  1418. if (isPlainObject(option)) {
  1419. removeInterceptorHook(scopedInterceptors[method], option);
  1420. } else {
  1421. delete scopedInterceptors[method];
  1422. }
  1423. } else if (isPlainObject(method)) {
  1424. removeInterceptorHook(globalInterceptors, method);
  1425. }
  1426. }
  1427. function wrapperHook(hook, params) {
  1428. return function (data) {
  1429. return hook(data, params) || data;
  1430. };
  1431. }
  1432. function isPromise(obj) {
  1433. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  1434. }
  1435. function queue(hooks, data, params) {
  1436. var promise = false;
  1437. for (var i = 0; i < hooks.length; i++) {
  1438. var hook = hooks[i];
  1439. if (promise) {
  1440. promise = Promise.resolve(wrapperHook(hook, params));
  1441. } else {
  1442. var res = hook(data, params);
  1443. if (isPromise(res)) {
  1444. promise = Promise.resolve(res);
  1445. }
  1446. if (res === false) {
  1447. return {
  1448. then: function then() {}
  1449. };
  1450. }
  1451. }
  1452. }
  1453. return promise || {
  1454. then: function then(callback) {
  1455. return callback(data);
  1456. }
  1457. };
  1458. }
  1459. function wrapperOptions(interceptor) {
  1460. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1461. ['success', 'fail', 'complete'].forEach(function (name) {
  1462. if (Array.isArray(interceptor[name])) {
  1463. var oldCallback = options[name];
  1464. options[name] = function callbackInterceptor(res) {
  1465. queue(interceptor[name], res, options).then(function (res) {
  1466. /* eslint-disable no-mixed-operators */
  1467. return isFn(oldCallback) && oldCallback(res) || res;
  1468. });
  1469. };
  1470. }
  1471. });
  1472. return options;
  1473. }
  1474. function wrapperReturnValue(method, returnValue) {
  1475. var returnValueHooks = [];
  1476. if (Array.isArray(globalInterceptors.returnValue)) {
  1477. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  1478. }
  1479. var interceptor = scopedInterceptors[method];
  1480. if (interceptor && Array.isArray(interceptor.returnValue)) {
  1481. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  1482. }
  1483. returnValueHooks.forEach(function (hook) {
  1484. returnValue = hook(returnValue) || returnValue;
  1485. });
  1486. return returnValue;
  1487. }
  1488. function getApiInterceptorHooks(method) {
  1489. var interceptor = Object.create(null);
  1490. Object.keys(globalInterceptors).forEach(function (hook) {
  1491. if (hook !== 'returnValue') {
  1492. interceptor[hook] = globalInterceptors[hook].slice();
  1493. }
  1494. });
  1495. var scopedInterceptor = scopedInterceptors[method];
  1496. if (scopedInterceptor) {
  1497. Object.keys(scopedInterceptor).forEach(function (hook) {
  1498. if (hook !== 'returnValue') {
  1499. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  1500. }
  1501. });
  1502. }
  1503. return interceptor;
  1504. }
  1505. function invokeApi(method, api, options) {
  1506. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  1507. params[_key - 3] = arguments[_key];
  1508. }
  1509. var interceptor = getApiInterceptorHooks(method);
  1510. if (interceptor && Object.keys(interceptor).length) {
  1511. if (Array.isArray(interceptor.invoke)) {
  1512. var res = queue(interceptor.invoke, options);
  1513. return res.then(function (options) {
  1514. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  1515. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  1516. });
  1517. } else {
  1518. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  1519. }
  1520. }
  1521. return api.apply(void 0, [options].concat(params));
  1522. }
  1523. var promiseInterceptor = {
  1524. returnValue: function returnValue(res) {
  1525. if (!isPromise(res)) {
  1526. return res;
  1527. }
  1528. return new Promise(function (resolve, reject) {
  1529. res.then(function (res) {
  1530. if (res[0]) {
  1531. reject(res[0]);
  1532. } else {
  1533. resolve(res[1]);
  1534. }
  1535. });
  1536. });
  1537. }
  1538. };
  1539. 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/;
  1540. var CONTEXT_API_RE = /^create|Manager$/;
  1541. // Context例外情况
  1542. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  1543. // 同步例外情况
  1544. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  1545. var CALLBACK_API_RE = /^on|^off/;
  1546. function isContextApi(name) {
  1547. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  1548. }
  1549. function isSyncApi(name) {
  1550. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  1551. }
  1552. function isCallbackApi(name) {
  1553. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  1554. }
  1555. function handlePromise(promise) {
  1556. return promise.then(function (data) {
  1557. return [null, data];
  1558. }).catch(function (err) {
  1559. return [err];
  1560. });
  1561. }
  1562. function shouldPromise(name) {
  1563. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  1564. return false;
  1565. }
  1566. return true;
  1567. }
  1568. /* eslint-disable no-extend-native */
  1569. if (!Promise.prototype.finally) {
  1570. Promise.prototype.finally = function (callback) {
  1571. var promise = this.constructor;
  1572. return this.then(function (value) {
  1573. return promise.resolve(callback()).then(function () {
  1574. return value;
  1575. });
  1576. }, function (reason) {
  1577. return promise.resolve(callback()).then(function () {
  1578. throw reason;
  1579. });
  1580. });
  1581. };
  1582. }
  1583. function promisify(name, api) {
  1584. if (!shouldPromise(name) || !isFn(api)) {
  1585. return api;
  1586. }
  1587. return function promiseApi() {
  1588. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1589. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  1590. params[_key2 - 1] = arguments[_key2];
  1591. }
  1592. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  1593. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  1594. }
  1595. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  1596. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  1597. success: resolve,
  1598. fail: reject
  1599. })].concat(params));
  1600. })));
  1601. };
  1602. }
  1603. var EPS = 1e-4;
  1604. var BASE_DEVICE_WIDTH = 750;
  1605. var isIOS = false;
  1606. var deviceWidth = 0;
  1607. var deviceDPR = 0;
  1608. function checkDeviceWidth() {
  1609. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  1610. platform = _wx$getSystemInfoSync.platform,
  1611. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  1612. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  1613. deviceWidth = windowWidth;
  1614. deviceDPR = pixelRatio;
  1615. isIOS = platform === 'ios';
  1616. }
  1617. function upx2px(number, newDeviceWidth) {
  1618. if (deviceWidth === 0) {
  1619. checkDeviceWidth();
  1620. }
  1621. number = Number(number);
  1622. if (number === 0) {
  1623. return 0;
  1624. }
  1625. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  1626. if (result < 0) {
  1627. result = -result;
  1628. }
  1629. result = Math.floor(result + EPS);
  1630. if (result === 0) {
  1631. if (deviceDPR === 1 || !isIOS) {
  1632. result = 1;
  1633. } else {
  1634. result = 0.5;
  1635. }
  1636. }
  1637. return number < 0 ? -result : result;
  1638. }
  1639. var LOCALE_ZH_HANS = 'zh-Hans';
  1640. var LOCALE_ZH_HANT = 'zh-Hant';
  1641. var LOCALE_EN = 'en';
  1642. var LOCALE_FR = 'fr';
  1643. var LOCALE_ES = 'es';
  1644. var messages = {};
  1645. var locale;
  1646. {
  1647. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  1648. }
  1649. function initI18nMessages() {
  1650. if (!isEnableLocale()) {
  1651. return;
  1652. }
  1653. var localeKeys = Object.keys(__uniConfig.locales);
  1654. if (localeKeys.length) {
  1655. localeKeys.forEach(function (locale) {
  1656. var curMessages = messages[locale];
  1657. var userMessages = __uniConfig.locales[locale];
  1658. if (curMessages) {
  1659. Object.assign(curMessages, userMessages);
  1660. } else {
  1661. messages[locale] = userMessages;
  1662. }
  1663. });
  1664. }
  1665. }
  1666. initI18nMessages();
  1667. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  1668. var t = i18n.t;
  1669. var i18nMixin = i18n.mixin = {
  1670. beforeCreate: function beforeCreate() {
  1671. var _this = this;
  1672. var unwatch = i18n.i18n.watchLocale(function () {
  1673. _this.$forceUpdate();
  1674. });
  1675. this.$once('hook:beforeDestroy', function () {
  1676. unwatch();
  1677. });
  1678. },
  1679. methods: {
  1680. $$t: function $$t(key, values) {
  1681. return t(key, values);
  1682. }
  1683. }
  1684. };
  1685. var setLocale = i18n.setLocale;
  1686. var getLocale = i18n.getLocale;
  1687. function initAppLocale(Vue, appVm, locale) {
  1688. var state = Vue.observable({
  1689. locale: locale || i18n.getLocale()
  1690. });
  1691. var localeWatchers = [];
  1692. appVm.$watchLocale = function (fn) {
  1693. localeWatchers.push(fn);
  1694. };
  1695. Object.defineProperty(appVm, '$locale', {
  1696. get: function get() {
  1697. return state.locale;
  1698. },
  1699. set: function set(v) {
  1700. state.locale = v;
  1701. localeWatchers.forEach(function (watch) {
  1702. return watch(v);
  1703. });
  1704. }
  1705. });
  1706. }
  1707. function isEnableLocale() {
  1708. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  1709. }
  1710. function include(str, parts) {
  1711. return !!parts.find(function (part) {
  1712. return str.indexOf(part) !== -1;
  1713. });
  1714. }
  1715. function startsWith(str, parts) {
  1716. return parts.find(function (part) {
  1717. return str.indexOf(part) === 0;
  1718. });
  1719. }
  1720. function normalizeLocale(locale, messages) {
  1721. if (!locale) {
  1722. return;
  1723. }
  1724. locale = locale.trim().replace(/_/g, '-');
  1725. if (messages && messages[locale]) {
  1726. return locale;
  1727. }
  1728. locale = locale.toLowerCase();
  1729. if (locale === 'chinese') {
  1730. // 支付宝
  1731. return LOCALE_ZH_HANS;
  1732. }
  1733. if (locale.indexOf('zh') === 0) {
  1734. if (locale.indexOf('-hans') > -1) {
  1735. return LOCALE_ZH_HANS;
  1736. }
  1737. if (locale.indexOf('-hant') > -1) {
  1738. return LOCALE_ZH_HANT;
  1739. }
  1740. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  1741. return LOCALE_ZH_HANT;
  1742. }
  1743. return LOCALE_ZH_HANS;
  1744. }
  1745. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  1746. if (lang) {
  1747. return lang;
  1748. }
  1749. }
  1750. // export function initI18n() {
  1751. // const localeKeys = Object.keys(__uniConfig.locales || {})
  1752. // if (localeKeys.length) {
  1753. // localeKeys.forEach((locale) =>
  1754. // i18n.add(locale, __uniConfig.locales[locale])
  1755. // )
  1756. // }
  1757. // }
  1758. function getLocale$1() {
  1759. // 优先使用 $locale
  1760. if (isFn(getApp)) {
  1761. var app = getApp({
  1762. allowDefault: true
  1763. });
  1764. if (app && app.$vm) {
  1765. return app.$vm.$locale;
  1766. }
  1767. }
  1768. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  1769. }
  1770. function setLocale$1(locale) {
  1771. var app = isFn(getApp) ? getApp() : false;
  1772. if (!app) {
  1773. return false;
  1774. }
  1775. var oldLocale = app.$vm.$locale;
  1776. if (oldLocale !== locale) {
  1777. app.$vm.$locale = locale;
  1778. onLocaleChangeCallbacks.forEach(function (fn) {
  1779. return fn({
  1780. locale: locale
  1781. });
  1782. });
  1783. return true;
  1784. }
  1785. return false;
  1786. }
  1787. var onLocaleChangeCallbacks = [];
  1788. function onLocaleChange(fn) {
  1789. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  1790. onLocaleChangeCallbacks.push(fn);
  1791. }
  1792. }
  1793. if (typeof global !== 'undefined') {
  1794. global.getLocale = getLocale$1;
  1795. }
  1796. var interceptors = {
  1797. promiseInterceptor: promiseInterceptor
  1798. };
  1799. var baseApi = /*#__PURE__*/Object.freeze({
  1800. __proto__: null,
  1801. upx2px: upx2px,
  1802. getLocale: getLocale$1,
  1803. setLocale: setLocale$1,
  1804. onLocaleChange: onLocaleChange,
  1805. addInterceptor: addInterceptor,
  1806. removeInterceptor: removeInterceptor,
  1807. interceptors: interceptors
  1808. });
  1809. function findExistsPageIndex(url) {
  1810. var pages = getCurrentPages();
  1811. var len = pages.length;
  1812. while (len--) {
  1813. var page = pages[len];
  1814. if (page.$page && page.$page.fullPath === url) {
  1815. return len;
  1816. }
  1817. }
  1818. return -1;
  1819. }
  1820. var redirectTo = {
  1821. name: function name(fromArgs) {
  1822. if (fromArgs.exists === 'back' && fromArgs.delta) {
  1823. return 'navigateBack';
  1824. }
  1825. return 'redirectTo';
  1826. },
  1827. args: function args(fromArgs) {
  1828. if (fromArgs.exists === 'back' && fromArgs.url) {
  1829. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  1830. if (existsPageIndex !== -1) {
  1831. var delta = getCurrentPages().length - 1 - existsPageIndex;
  1832. if (delta > 0) {
  1833. fromArgs.delta = delta;
  1834. }
  1835. }
  1836. }
  1837. }
  1838. };
  1839. var previewImage = {
  1840. args: function args(fromArgs) {
  1841. var currentIndex = parseInt(fromArgs.current);
  1842. if (isNaN(currentIndex)) {
  1843. return;
  1844. }
  1845. var urls = fromArgs.urls;
  1846. if (!Array.isArray(urls)) {
  1847. return;
  1848. }
  1849. var len = urls.length;
  1850. if (!len) {
  1851. return;
  1852. }
  1853. if (currentIndex < 0) {
  1854. currentIndex = 0;
  1855. } else if (currentIndex >= len) {
  1856. currentIndex = len - 1;
  1857. }
  1858. if (currentIndex > 0) {
  1859. fromArgs.current = urls[currentIndex];
  1860. fromArgs.urls = urls.filter(function (item, index) {
  1861. return index < currentIndex ? item !== urls[currentIndex] : true;
  1862. });
  1863. } else {
  1864. fromArgs.current = urls[0];
  1865. }
  1866. return {
  1867. indicator: false,
  1868. loop: false
  1869. };
  1870. }
  1871. };
  1872. var UUID_KEY = '__DC_STAT_UUID';
  1873. var deviceId;
  1874. function useDeviceId(result) {
  1875. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  1876. if (!deviceId) {
  1877. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  1878. wx.setStorage({
  1879. key: UUID_KEY,
  1880. data: deviceId
  1881. });
  1882. }
  1883. result.deviceId = deviceId;
  1884. }
  1885. function addSafeAreaInsets(result) {
  1886. if (result.safeArea) {
  1887. var safeArea = result.safeArea;
  1888. result.safeAreaInsets = {
  1889. top: safeArea.top,
  1890. left: safeArea.left,
  1891. right: result.windowWidth - safeArea.right,
  1892. bottom: result.screenHeight - safeArea.bottom
  1893. };
  1894. }
  1895. }
  1896. function populateParameters(result) {
  1897. var _result$brand = result.brand,
  1898. brand = _result$brand === void 0 ? '' : _result$brand,
  1899. _result$model = result.model,
  1900. model = _result$model === void 0 ? '' : _result$model,
  1901. _result$system = result.system,
  1902. system = _result$system === void 0 ? '' : _result$system,
  1903. _result$language = result.language,
  1904. language = _result$language === void 0 ? '' : _result$language,
  1905. theme = result.theme,
  1906. version = result.version,
  1907. platform = result.platform,
  1908. fontSizeSetting = result.fontSizeSetting,
  1909. SDKVersion = result.SDKVersion,
  1910. pixelRatio = result.pixelRatio,
  1911. deviceOrientation = result.deviceOrientation;
  1912. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  1913. var extraParam = {};
  1914. // osName osVersion
  1915. var osName = '';
  1916. var osVersion = '';
  1917. {
  1918. osName = system.split(' ')[0] || '';
  1919. osVersion = system.split(' ')[1] || '';
  1920. }
  1921. var hostVersion = version;
  1922. // deviceType
  1923. var deviceType = getGetDeviceType(result, model);
  1924. // deviceModel
  1925. var deviceBrand = getDeviceBrand(brand);
  1926. // hostName
  1927. var _hostName = getHostName(result);
  1928. // deviceOrientation
  1929. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  1930. // devicePixelRatio
  1931. var _devicePixelRatio = pixelRatio;
  1932. // SDKVersion
  1933. var _SDKVersion = SDKVersion;
  1934. // hostLanguage
  1935. var hostLanguage = language.replace(/_/g, '-');
  1936. // wx.getAccountInfoSync
  1937. var parameters = {
  1938. appId: "__UNI__806E1A1",
  1939. appName: "follow_applet",
  1940. appVersion: "1.0.0",
  1941. appVersionCode: "100",
  1942. appLanguage: getAppLanguage(hostLanguage),
  1943. uniCompileVersion: "3.8.7",
  1944. uniRuntimeVersion: "3.8.7",
  1945. uniPlatform: undefined || "mp-weixin",
  1946. deviceBrand: deviceBrand,
  1947. deviceModel: model,
  1948. deviceType: deviceType,
  1949. devicePixelRatio: _devicePixelRatio,
  1950. deviceOrientation: _deviceOrientation,
  1951. osName: osName.toLocaleLowerCase(),
  1952. osVersion: osVersion,
  1953. hostTheme: theme,
  1954. hostVersion: hostVersion,
  1955. hostLanguage: hostLanguage,
  1956. hostName: _hostName,
  1957. hostSDKVersion: _SDKVersion,
  1958. hostFontSizeSetting: fontSizeSetting,
  1959. windowTop: 0,
  1960. windowBottom: 0,
  1961. // TODO
  1962. osLanguage: undefined,
  1963. osTheme: undefined,
  1964. ua: undefined,
  1965. hostPackageName: undefined,
  1966. browserName: undefined,
  1967. browserVersion: undefined
  1968. };
  1969. Object.assign(result, parameters, extraParam);
  1970. }
  1971. function getGetDeviceType(result, model) {
  1972. var deviceType = result.deviceType || 'phone';
  1973. {
  1974. var deviceTypeMaps = {
  1975. ipad: 'pad',
  1976. windows: 'pc',
  1977. mac: 'pc'
  1978. };
  1979. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  1980. var _model = model.toLocaleLowerCase();
  1981. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  1982. var _m = deviceTypeMapsKeys[index];
  1983. if (_model.indexOf(_m) !== -1) {
  1984. deviceType = deviceTypeMaps[_m];
  1985. break;
  1986. }
  1987. }
  1988. }
  1989. return deviceType;
  1990. }
  1991. function getDeviceBrand(brand) {
  1992. var deviceBrand = brand;
  1993. if (deviceBrand) {
  1994. deviceBrand = brand.toLocaleLowerCase();
  1995. }
  1996. return deviceBrand;
  1997. }
  1998. function getAppLanguage(defaultLanguage) {
  1999. return getLocale$1 ? getLocale$1() : defaultLanguage;
  2000. }
  2001. function getHostName(result) {
  2002. var _platform = 'WeChat';
  2003. var _hostName = result.hostName || _platform; // mp-jd
  2004. {
  2005. if (result.environment) {
  2006. _hostName = result.environment;
  2007. } else if (result.host && result.host.env) {
  2008. _hostName = result.host.env;
  2009. }
  2010. }
  2011. return _hostName;
  2012. }
  2013. var getSystemInfo = {
  2014. returnValue: function returnValue(result) {
  2015. useDeviceId(result);
  2016. addSafeAreaInsets(result);
  2017. populateParameters(result);
  2018. }
  2019. };
  2020. var showActionSheet = {
  2021. args: function args(fromArgs) {
  2022. if ((0, _typeof2.default)(fromArgs) === 'object') {
  2023. fromArgs.alertText = fromArgs.title;
  2024. }
  2025. }
  2026. };
  2027. var getAppBaseInfo = {
  2028. returnValue: function returnValue(result) {
  2029. var _result = result,
  2030. version = _result.version,
  2031. language = _result.language,
  2032. SDKVersion = _result.SDKVersion,
  2033. theme = _result.theme;
  2034. var _hostName = getHostName(result);
  2035. var hostLanguage = language.replace('_', '-');
  2036. result = sortObject(Object.assign(result, {
  2037. appId: "__UNI__806E1A1",
  2038. appName: "follow_applet",
  2039. appVersion: "1.0.0",
  2040. appVersionCode: "100",
  2041. appLanguage: getAppLanguage(hostLanguage),
  2042. hostVersion: version,
  2043. hostLanguage: hostLanguage,
  2044. hostName: _hostName,
  2045. hostSDKVersion: SDKVersion,
  2046. hostTheme: theme
  2047. }));
  2048. }
  2049. };
  2050. var getDeviceInfo = {
  2051. returnValue: function returnValue(result) {
  2052. var _result2 = result,
  2053. brand = _result2.brand,
  2054. model = _result2.model;
  2055. var deviceType = getGetDeviceType(result, model);
  2056. var deviceBrand = getDeviceBrand(brand);
  2057. useDeviceId(result);
  2058. result = sortObject(Object.assign(result, {
  2059. deviceType: deviceType,
  2060. deviceBrand: deviceBrand,
  2061. deviceModel: model
  2062. }));
  2063. }
  2064. };
  2065. var getWindowInfo = {
  2066. returnValue: function returnValue(result) {
  2067. addSafeAreaInsets(result);
  2068. result = sortObject(Object.assign(result, {
  2069. windowTop: 0,
  2070. windowBottom: 0
  2071. }));
  2072. }
  2073. };
  2074. var getAppAuthorizeSetting = {
  2075. returnValue: function returnValue(result) {
  2076. var locationReducedAccuracy = result.locationReducedAccuracy;
  2077. result.locationAccuracy = 'unsupported';
  2078. if (locationReducedAccuracy === true) {
  2079. result.locationAccuracy = 'reduced';
  2080. } else if (locationReducedAccuracy === false) {
  2081. result.locationAccuracy = 'full';
  2082. }
  2083. }
  2084. };
  2085. // import navigateTo from 'uni-helpers/navigate-to'
  2086. var compressImage = {
  2087. args: function args(fromArgs) {
  2088. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  2089. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  2090. fromArgs.compressHeight = fromArgs.compressedHeight;
  2091. }
  2092. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  2093. fromArgs.compressWidth = fromArgs.compressedWidth;
  2094. }
  2095. }
  2096. };
  2097. var protocols = {
  2098. redirectTo: redirectTo,
  2099. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  2100. previewImage: previewImage,
  2101. getSystemInfo: getSystemInfo,
  2102. getSystemInfoSync: getSystemInfo,
  2103. showActionSheet: showActionSheet,
  2104. getAppBaseInfo: getAppBaseInfo,
  2105. getDeviceInfo: getDeviceInfo,
  2106. getWindowInfo: getWindowInfo,
  2107. getAppAuthorizeSetting: getAppAuthorizeSetting,
  2108. compressImage: compressImage
  2109. };
  2110. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  2111. var canIUses = [];
  2112. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  2113. function processCallback(methodName, method, returnValue) {
  2114. return function (res) {
  2115. return method(processReturnValue(methodName, res, returnValue));
  2116. };
  2117. }
  2118. function processArgs(methodName, fromArgs) {
  2119. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  2120. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  2121. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  2122. if (isPlainObject(fromArgs)) {
  2123. // 一般 api 的参数解析
  2124. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  2125. if (isFn(argsOption)) {
  2126. argsOption = argsOption(fromArgs, toArgs) || {};
  2127. }
  2128. for (var key in fromArgs) {
  2129. if (hasOwn(argsOption, key)) {
  2130. var keyOption = argsOption[key];
  2131. if (isFn(keyOption)) {
  2132. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  2133. }
  2134. if (!keyOption) {
  2135. // 不支持的参数
  2136. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  2137. } else if (isStr(keyOption)) {
  2138. // 重写参数 key
  2139. toArgs[keyOption] = fromArgs[key];
  2140. } else if (isPlainObject(keyOption)) {
  2141. // {name:newName,value:value}可重新指定参数 key:value
  2142. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  2143. }
  2144. } else if (CALLBACKS.indexOf(key) !== -1) {
  2145. if (isFn(fromArgs[key])) {
  2146. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  2147. }
  2148. } else {
  2149. if (!keepFromArgs) {
  2150. toArgs[key] = fromArgs[key];
  2151. }
  2152. }
  2153. }
  2154. return toArgs;
  2155. } else if (isFn(fromArgs)) {
  2156. fromArgs = processCallback(methodName, fromArgs, returnValue);
  2157. }
  2158. return fromArgs;
  2159. }
  2160. function processReturnValue(methodName, res, returnValue) {
  2161. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  2162. if (isFn(protocols.returnValue)) {
  2163. // 处理通用 returnValue
  2164. res = protocols.returnValue(methodName, res);
  2165. }
  2166. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  2167. }
  2168. function wrapper(methodName, method) {
  2169. if (hasOwn(protocols, methodName)) {
  2170. var protocol = protocols[methodName];
  2171. if (!protocol) {
  2172. // 暂不支持的 api
  2173. return function () {
  2174. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  2175. };
  2176. }
  2177. return function (arg1, arg2) {
  2178. // 目前 api 最多两个参数
  2179. var options = protocol;
  2180. if (isFn(protocol)) {
  2181. options = protocol(arg1);
  2182. }
  2183. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  2184. var args = [arg1];
  2185. if (typeof arg2 !== 'undefined') {
  2186. args.push(arg2);
  2187. }
  2188. if (isFn(options.name)) {
  2189. methodName = options.name(arg1);
  2190. } else if (isStr(options.name)) {
  2191. methodName = options.name;
  2192. }
  2193. var returnValue = wx[methodName].apply(wx, args);
  2194. if (isSyncApi(methodName)) {
  2195. // 同步 api
  2196. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  2197. }
  2198. return returnValue;
  2199. };
  2200. }
  2201. return method;
  2202. }
  2203. var todoApis = Object.create(null);
  2204. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  2205. function createTodoApi(name) {
  2206. return function todoApi(_ref) {
  2207. var fail = _ref.fail,
  2208. complete = _ref.complete;
  2209. var res = {
  2210. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  2211. };
  2212. isFn(fail) && fail(res);
  2213. isFn(complete) && complete(res);
  2214. };
  2215. }
  2216. TODOS.forEach(function (name) {
  2217. todoApis[name] = createTodoApi(name);
  2218. });
  2219. var providers = {
  2220. oauth: ['weixin'],
  2221. share: ['weixin'],
  2222. payment: ['wxpay'],
  2223. push: ['weixin']
  2224. };
  2225. function getProvider(_ref2) {
  2226. var service = _ref2.service,
  2227. success = _ref2.success,
  2228. fail = _ref2.fail,
  2229. complete = _ref2.complete;
  2230. var res = false;
  2231. if (providers[service]) {
  2232. res = {
  2233. errMsg: 'getProvider:ok',
  2234. service: service,
  2235. provider: providers[service]
  2236. };
  2237. isFn(success) && success(res);
  2238. } else {
  2239. res = {
  2240. errMsg: 'getProvider:fail service not found'
  2241. };
  2242. isFn(fail) && fail(res);
  2243. }
  2244. isFn(complete) && complete(res);
  2245. }
  2246. var extraApi = /*#__PURE__*/Object.freeze({
  2247. __proto__: null,
  2248. getProvider: getProvider
  2249. });
  2250. var getEmitter = function () {
  2251. var Emitter;
  2252. return function getUniEmitter() {
  2253. if (!Emitter) {
  2254. Emitter = new _vue.default();
  2255. }
  2256. return Emitter;
  2257. };
  2258. }();
  2259. function apply(ctx, method, args) {
  2260. return ctx[method].apply(ctx, args);
  2261. }
  2262. function $on() {
  2263. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  2264. }
  2265. function $off() {
  2266. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  2267. }
  2268. function $once() {
  2269. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  2270. }
  2271. function $emit() {
  2272. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  2273. }
  2274. var eventApi = /*#__PURE__*/Object.freeze({
  2275. __proto__: null,
  2276. $on: $on,
  2277. $off: $off,
  2278. $once: $once,
  2279. $emit: $emit
  2280. });
  2281. /**
  2282. * 框架内 try-catch
  2283. */
  2284. /**
  2285. * 开发者 try-catch
  2286. */
  2287. function tryCatch(fn) {
  2288. return function () {
  2289. try {
  2290. return fn.apply(fn, arguments);
  2291. } catch (e) {
  2292. // TODO
  2293. console.error(e);
  2294. }
  2295. };
  2296. }
  2297. function getApiCallbacks(params) {
  2298. var apiCallbacks = {};
  2299. for (var name in params) {
  2300. var param = params[name];
  2301. if (isFn(param)) {
  2302. apiCallbacks[name] = tryCatch(param);
  2303. delete params[name];
  2304. }
  2305. }
  2306. return apiCallbacks;
  2307. }
  2308. var cid;
  2309. var cidErrMsg;
  2310. var enabled;
  2311. function normalizePushMessage(message) {
  2312. try {
  2313. return JSON.parse(message);
  2314. } catch (e) {}
  2315. return message;
  2316. }
  2317. function invokePushCallback(args) {
  2318. if (args.type === 'enabled') {
  2319. enabled = true;
  2320. } else if (args.type === 'clientId') {
  2321. cid = args.cid;
  2322. cidErrMsg = args.errMsg;
  2323. invokeGetPushCidCallbacks(cid, args.errMsg);
  2324. } else if (args.type === 'pushMsg') {
  2325. var message = {
  2326. type: 'receive',
  2327. data: normalizePushMessage(args.message)
  2328. };
  2329. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  2330. var callback = onPushMessageCallbacks[i];
  2331. callback(message);
  2332. // 该消息已被阻止
  2333. if (message.stopped) {
  2334. break;
  2335. }
  2336. }
  2337. } else if (args.type === 'click') {
  2338. onPushMessageCallbacks.forEach(function (callback) {
  2339. callback({
  2340. type: 'click',
  2341. data: normalizePushMessage(args.message)
  2342. });
  2343. });
  2344. }
  2345. }
  2346. var getPushCidCallbacks = [];
  2347. function invokeGetPushCidCallbacks(cid, errMsg) {
  2348. getPushCidCallbacks.forEach(function (callback) {
  2349. callback(cid, errMsg);
  2350. });
  2351. getPushCidCallbacks.length = 0;
  2352. }
  2353. function getPushClientId(args) {
  2354. if (!isPlainObject(args)) {
  2355. args = {};
  2356. }
  2357. var _getApiCallbacks = getApiCallbacks(args),
  2358. success = _getApiCallbacks.success,
  2359. fail = _getApiCallbacks.fail,
  2360. complete = _getApiCallbacks.complete;
  2361. var hasSuccess = isFn(success);
  2362. var hasFail = isFn(fail);
  2363. var hasComplete = isFn(complete);
  2364. Promise.resolve().then(function () {
  2365. if (typeof enabled === 'undefined') {
  2366. enabled = false;
  2367. cid = '';
  2368. cidErrMsg = 'uniPush is not enabled';
  2369. }
  2370. getPushCidCallbacks.push(function (cid, errMsg) {
  2371. var res;
  2372. if (cid) {
  2373. res = {
  2374. errMsg: 'getPushClientId:ok',
  2375. cid: cid
  2376. };
  2377. hasSuccess && success(res);
  2378. } else {
  2379. res = {
  2380. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  2381. };
  2382. hasFail && fail(res);
  2383. }
  2384. hasComplete && complete(res);
  2385. });
  2386. if (typeof cid !== 'undefined') {
  2387. invokeGetPushCidCallbacks(cid, cidErrMsg);
  2388. }
  2389. });
  2390. }
  2391. var onPushMessageCallbacks = [];
  2392. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  2393. var onPushMessage = function onPushMessage(fn) {
  2394. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  2395. onPushMessageCallbacks.push(fn);
  2396. }
  2397. };
  2398. var offPushMessage = function offPushMessage(fn) {
  2399. if (!fn) {
  2400. onPushMessageCallbacks.length = 0;
  2401. } else {
  2402. var index = onPushMessageCallbacks.indexOf(fn);
  2403. if (index > -1) {
  2404. onPushMessageCallbacks.splice(index, 1);
  2405. }
  2406. }
  2407. };
  2408. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  2409. if (!baseInfo) {
  2410. baseInfo = wx.getSystemInfoSync();
  2411. }
  2412. var host = baseInfo ? baseInfo.host : null;
  2413. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  2414. var api = /*#__PURE__*/Object.freeze({
  2415. __proto__: null,
  2416. shareVideoMessage: shareVideoMessage,
  2417. getPushClientId: getPushClientId,
  2418. onPushMessage: onPushMessage,
  2419. offPushMessage: offPushMessage,
  2420. invokePushCallback: invokePushCallback
  2421. });
  2422. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  2423. function findVmByVueId(vm, vuePid) {
  2424. var $children = vm.$children;
  2425. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  2426. for (var i = $children.length - 1; i >= 0; i--) {
  2427. var childVm = $children[i];
  2428. if (childVm.$scope._$vueId === vuePid) {
  2429. return childVm;
  2430. }
  2431. }
  2432. // 反向递归查找
  2433. var parentVm;
  2434. for (var _i = $children.length - 1; _i >= 0; _i--) {
  2435. parentVm = findVmByVueId($children[_i], vuePid);
  2436. if (parentVm) {
  2437. return parentVm;
  2438. }
  2439. }
  2440. }
  2441. function initBehavior(options) {
  2442. return Behavior(options);
  2443. }
  2444. function isPage() {
  2445. return !!this.route;
  2446. }
  2447. function initRelation(detail) {
  2448. this.triggerEvent('__l', detail);
  2449. }
  2450. function selectAllComponents(mpInstance, selector, $refs) {
  2451. var components = mpInstance.selectAllComponents(selector) || [];
  2452. components.forEach(function (component) {
  2453. var ref = component.dataset.ref;
  2454. $refs[ref] = component.$vm || toSkip(component);
  2455. {
  2456. if (component.dataset.vueGeneric === 'scoped') {
  2457. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  2458. selectAllComponents(scopedComponent, selector, $refs);
  2459. });
  2460. }
  2461. }
  2462. });
  2463. }
  2464. function syncRefs(refs, newRefs) {
  2465. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  2466. var newKeys = Object.keys(newRefs);
  2467. newKeys.forEach(function (key) {
  2468. var oldValue = refs[key];
  2469. var newValue = newRefs[key];
  2470. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  2471. return oldValue.includes(value);
  2472. })) {
  2473. return;
  2474. }
  2475. refs[key] = newValue;
  2476. oldKeys.delete(key);
  2477. });
  2478. oldKeys.forEach(function (key) {
  2479. delete refs[key];
  2480. });
  2481. return refs;
  2482. }
  2483. function initRefs(vm) {
  2484. var mpInstance = vm.$scope;
  2485. var refs = {};
  2486. Object.defineProperty(vm, '$refs', {
  2487. get: function get() {
  2488. var $refs = {};
  2489. selectAllComponents(mpInstance, '.vue-ref', $refs);
  2490. // TODO 暂不考虑 for 中的 scoped
  2491. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  2492. forComponents.forEach(function (component) {
  2493. var ref = component.dataset.ref;
  2494. if (!$refs[ref]) {
  2495. $refs[ref] = [];
  2496. }
  2497. $refs[ref].push(component.$vm || toSkip(component));
  2498. });
  2499. return syncRefs(refs, $refs);
  2500. }
  2501. });
  2502. }
  2503. function handleLink(event) {
  2504. var _ref3 = event.detail || event.value,
  2505. vuePid = _ref3.vuePid,
  2506. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  2507. var parentVm;
  2508. if (vuePid) {
  2509. parentVm = findVmByVueId(this.$vm, vuePid);
  2510. }
  2511. if (!parentVm) {
  2512. parentVm = this.$vm;
  2513. }
  2514. vueOptions.parent = parentVm;
  2515. }
  2516. function markMPComponent(component) {
  2517. // 在 Vue 中标记为小程序组件
  2518. var IS_MP = '__v_isMPComponent';
  2519. Object.defineProperty(component, IS_MP, {
  2520. configurable: true,
  2521. enumerable: false,
  2522. value: true
  2523. });
  2524. return component;
  2525. }
  2526. function toSkip(obj) {
  2527. var OB = '__ob__';
  2528. var SKIP = '__v_skip';
  2529. if (isObject(obj) && Object.isExtensible(obj)) {
  2530. // 避免被 @vue/composition-api 观测
  2531. Object.defineProperty(obj, OB, {
  2532. configurable: true,
  2533. enumerable: false,
  2534. value: (0, _defineProperty2.default)({}, SKIP, true)
  2535. });
  2536. }
  2537. return obj;
  2538. }
  2539. var WORKLET_RE = /_(.*)_worklet_factory_/;
  2540. function initWorkletMethods(mpMethods, vueMethods) {
  2541. if (vueMethods) {
  2542. Object.keys(vueMethods).forEach(function (name) {
  2543. var matches = name.match(WORKLET_RE);
  2544. if (matches) {
  2545. var workletName = matches[1];
  2546. mpMethods[name] = vueMethods[name];
  2547. mpMethods[workletName] = vueMethods[workletName];
  2548. }
  2549. });
  2550. }
  2551. }
  2552. var MPPage = Page;
  2553. var MPComponent = Component;
  2554. var customizeRE = /:/g;
  2555. var customize = cached(function (str) {
  2556. return camelize(str.replace(customizeRE, '-'));
  2557. });
  2558. function initTriggerEvent(mpInstance) {
  2559. var oldTriggerEvent = mpInstance.triggerEvent;
  2560. var newTriggerEvent = function newTriggerEvent(event) {
  2561. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  2562. args[_key3 - 1] = arguments[_key3];
  2563. }
  2564. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  2565. if (this.$vm || this.dataset && this.dataset.comType) {
  2566. event = customize(event);
  2567. } else {
  2568. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  2569. var newEvent = customize(event);
  2570. if (newEvent !== event) {
  2571. oldTriggerEvent.apply(this, [newEvent].concat(args));
  2572. }
  2573. }
  2574. return oldTriggerEvent.apply(this, [event].concat(args));
  2575. };
  2576. try {
  2577. // 京东小程序 triggerEvent 为只读
  2578. mpInstance.triggerEvent = newTriggerEvent;
  2579. } catch (error) {
  2580. mpInstance._triggerEvent = newTriggerEvent;
  2581. }
  2582. }
  2583. function initHook(name, options, isComponent) {
  2584. var oldHook = options[name];
  2585. options[name] = function () {
  2586. markMPComponent(this);
  2587. initTriggerEvent(this);
  2588. if (oldHook) {
  2589. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  2590. args[_key4] = arguments[_key4];
  2591. }
  2592. return oldHook.apply(this, args);
  2593. }
  2594. };
  2595. }
  2596. if (!MPPage.__$wrappered) {
  2597. MPPage.__$wrappered = true;
  2598. Page = function Page() {
  2599. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2600. initHook('onLoad', options);
  2601. return MPPage(options);
  2602. };
  2603. Page.after = MPPage.after;
  2604. Component = function Component() {
  2605. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  2606. initHook('created', options);
  2607. return MPComponent(options);
  2608. };
  2609. }
  2610. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  2611. function initMocks(vm, mocks) {
  2612. var mpInstance = vm.$mp[vm.mpType];
  2613. mocks.forEach(function (mock) {
  2614. if (hasOwn(mpInstance, mock)) {
  2615. vm[mock] = mpInstance[mock];
  2616. }
  2617. });
  2618. }
  2619. function hasHook(hook, vueOptions) {
  2620. if (!vueOptions) {
  2621. return true;
  2622. }
  2623. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  2624. return true;
  2625. }
  2626. vueOptions = vueOptions.default || vueOptions;
  2627. if (isFn(vueOptions)) {
  2628. if (isFn(vueOptions.extendOptions[hook])) {
  2629. return true;
  2630. }
  2631. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  2632. return true;
  2633. }
  2634. return false;
  2635. }
  2636. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  2637. return true;
  2638. }
  2639. var mixins = vueOptions.mixins;
  2640. if (Array.isArray(mixins)) {
  2641. return !!mixins.find(function (mixin) {
  2642. return hasHook(hook, mixin);
  2643. });
  2644. }
  2645. }
  2646. function initHooks(mpOptions, hooks, vueOptions) {
  2647. hooks.forEach(function (hook) {
  2648. if (hasHook(hook, vueOptions)) {
  2649. mpOptions[hook] = function (args) {
  2650. return this.$vm && this.$vm.__call_hook(hook, args);
  2651. };
  2652. }
  2653. });
  2654. }
  2655. function initUnknownHooks(mpOptions, vueOptions) {
  2656. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  2657. findHooks(vueOptions).forEach(function (hook) {
  2658. return initHook$1(mpOptions, hook, excludes);
  2659. });
  2660. }
  2661. function findHooks(vueOptions) {
  2662. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  2663. if (vueOptions) {
  2664. Object.keys(vueOptions).forEach(function (name) {
  2665. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  2666. hooks.push(name);
  2667. }
  2668. });
  2669. }
  2670. return hooks;
  2671. }
  2672. function initHook$1(mpOptions, hook, excludes) {
  2673. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  2674. mpOptions[hook] = function (args) {
  2675. return this.$vm && this.$vm.__call_hook(hook, args);
  2676. };
  2677. }
  2678. }
  2679. function initVueComponent(Vue, vueOptions) {
  2680. vueOptions = vueOptions.default || vueOptions;
  2681. var VueComponent;
  2682. if (isFn(vueOptions)) {
  2683. VueComponent = vueOptions;
  2684. } else {
  2685. VueComponent = Vue.extend(vueOptions);
  2686. }
  2687. vueOptions = VueComponent.options;
  2688. return [VueComponent, vueOptions];
  2689. }
  2690. function initSlots(vm, vueSlots) {
  2691. if (Array.isArray(vueSlots) && vueSlots.length) {
  2692. var $slots = Object.create(null);
  2693. vueSlots.forEach(function (slotName) {
  2694. $slots[slotName] = true;
  2695. });
  2696. vm.$scopedSlots = vm.$slots = $slots;
  2697. }
  2698. }
  2699. function initVueIds(vueIds, mpInstance) {
  2700. vueIds = (vueIds || '').split(',');
  2701. var len = vueIds.length;
  2702. if (len === 1) {
  2703. mpInstance._$vueId = vueIds[0];
  2704. } else if (len === 2) {
  2705. mpInstance._$vueId = vueIds[0];
  2706. mpInstance._$vuePid = vueIds[1];
  2707. }
  2708. }
  2709. function initData(vueOptions, context) {
  2710. var data = vueOptions.data || {};
  2711. var methods = vueOptions.methods || {};
  2712. if (typeof data === 'function') {
  2713. try {
  2714. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  2715. } catch (e) {
  2716. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"follow_applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  2717. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  2718. }
  2719. }
  2720. } else {
  2721. try {
  2722. // 对 data 格式化
  2723. data = JSON.parse(JSON.stringify(data));
  2724. } catch (e) {}
  2725. }
  2726. if (!isPlainObject(data)) {
  2727. data = {};
  2728. }
  2729. Object.keys(methods).forEach(function (methodName) {
  2730. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  2731. data[methodName] = methods[methodName];
  2732. }
  2733. });
  2734. return data;
  2735. }
  2736. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  2737. function createObserver(name) {
  2738. return function observer(newVal, oldVal) {
  2739. if (this.$vm) {
  2740. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  2741. }
  2742. };
  2743. }
  2744. function initBehaviors(vueOptions, initBehavior) {
  2745. var vueBehaviors = vueOptions.behaviors;
  2746. var vueExtends = vueOptions.extends;
  2747. var vueMixins = vueOptions.mixins;
  2748. var vueProps = vueOptions.props;
  2749. if (!vueProps) {
  2750. vueOptions.props = vueProps = [];
  2751. }
  2752. var behaviors = [];
  2753. if (Array.isArray(vueBehaviors)) {
  2754. vueBehaviors.forEach(function (behavior) {
  2755. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  2756. if (behavior === 'uni://form-field') {
  2757. if (Array.isArray(vueProps)) {
  2758. vueProps.push('name');
  2759. vueProps.push('value');
  2760. } else {
  2761. vueProps.name = {
  2762. type: String,
  2763. default: ''
  2764. };
  2765. vueProps.value = {
  2766. type: [String, Number, Boolean, Array, Object, Date],
  2767. default: ''
  2768. };
  2769. }
  2770. }
  2771. });
  2772. }
  2773. if (isPlainObject(vueExtends) && vueExtends.props) {
  2774. behaviors.push(initBehavior({
  2775. properties: initProperties(vueExtends.props, true)
  2776. }));
  2777. }
  2778. if (Array.isArray(vueMixins)) {
  2779. vueMixins.forEach(function (vueMixin) {
  2780. if (isPlainObject(vueMixin) && vueMixin.props) {
  2781. behaviors.push(initBehavior({
  2782. properties: initProperties(vueMixin.props, true)
  2783. }));
  2784. }
  2785. });
  2786. }
  2787. return behaviors;
  2788. }
  2789. function parsePropType(key, type, defaultValue, file) {
  2790. // [String]=>String
  2791. if (Array.isArray(type) && type.length === 1) {
  2792. return type[0];
  2793. }
  2794. return type;
  2795. }
  2796. function initProperties(props) {
  2797. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  2798. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  2799. var options = arguments.length > 3 ? arguments[3] : undefined;
  2800. var properties = {};
  2801. if (!isBehavior) {
  2802. properties.vueId = {
  2803. type: String,
  2804. value: ''
  2805. };
  2806. {
  2807. if (options.virtualHost) {
  2808. properties.virtualHostStyle = {
  2809. type: null,
  2810. value: ''
  2811. };
  2812. properties.virtualHostClass = {
  2813. type: null,
  2814. value: ''
  2815. };
  2816. }
  2817. }
  2818. // scopedSlotsCompiler auto
  2819. properties.scopedSlotsCompiler = {
  2820. type: String,
  2821. value: ''
  2822. };
  2823. properties.vueSlots = {
  2824. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  2825. type: null,
  2826. value: [],
  2827. observer: function observer(newVal, oldVal) {
  2828. var $slots = Object.create(null);
  2829. newVal.forEach(function (slotName) {
  2830. $slots[slotName] = true;
  2831. });
  2832. this.setData({
  2833. $slots: $slots
  2834. });
  2835. }
  2836. };
  2837. }
  2838. if (Array.isArray(props)) {
  2839. // ['title']
  2840. props.forEach(function (key) {
  2841. properties[key] = {
  2842. type: null,
  2843. observer: createObserver(key)
  2844. };
  2845. });
  2846. } else if (isPlainObject(props)) {
  2847. // {title:{type:String,default:''},content:String}
  2848. Object.keys(props).forEach(function (key) {
  2849. var opts = props[key];
  2850. if (isPlainObject(opts)) {
  2851. // title:{type:String,default:''}
  2852. var value = opts.default;
  2853. if (isFn(value)) {
  2854. value = value();
  2855. }
  2856. opts.type = parsePropType(key, opts.type);
  2857. properties[key] = {
  2858. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  2859. value: value,
  2860. observer: createObserver(key)
  2861. };
  2862. } else {
  2863. // content:String
  2864. var type = parsePropType(key, opts);
  2865. properties[key] = {
  2866. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  2867. observer: createObserver(key)
  2868. };
  2869. }
  2870. });
  2871. }
  2872. return properties;
  2873. }
  2874. function wrapper$1(event) {
  2875. // TODO 又得兼容 mpvue 的 mp 对象
  2876. try {
  2877. event.mp = JSON.parse(JSON.stringify(event));
  2878. } catch (e) {}
  2879. event.stopPropagation = noop;
  2880. event.preventDefault = noop;
  2881. event.target = event.target || {};
  2882. if (!hasOwn(event, 'detail')) {
  2883. event.detail = {};
  2884. }
  2885. if (hasOwn(event, 'markerId')) {
  2886. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  2887. event.detail.markerId = event.markerId;
  2888. }
  2889. if (isPlainObject(event.detail)) {
  2890. event.target = Object.assign({}, event.target, event.detail);
  2891. }
  2892. return event;
  2893. }
  2894. function getExtraValue(vm, dataPathsArray) {
  2895. var context = vm;
  2896. dataPathsArray.forEach(function (dataPathArray) {
  2897. var dataPath = dataPathArray[0];
  2898. var value = dataPathArray[2];
  2899. if (dataPath || typeof value !== 'undefined') {
  2900. // ['','',index,'disable']
  2901. var propPath = dataPathArray[1];
  2902. var valuePath = dataPathArray[3];
  2903. var vFor;
  2904. if (Number.isInteger(dataPath)) {
  2905. vFor = dataPath;
  2906. } else if (!dataPath) {
  2907. vFor = context;
  2908. } else if (typeof dataPath === 'string' && dataPath) {
  2909. if (dataPath.indexOf('#s#') === 0) {
  2910. vFor = dataPath.substr(3);
  2911. } else {
  2912. vFor = vm.__get_value(dataPath, context);
  2913. }
  2914. }
  2915. if (Number.isInteger(vFor)) {
  2916. context = value;
  2917. } else if (!propPath) {
  2918. context = vFor[value];
  2919. } else {
  2920. if (Array.isArray(vFor)) {
  2921. context = vFor.find(function (vForItem) {
  2922. return vm.__get_value(propPath, vForItem) === value;
  2923. });
  2924. } else if (isPlainObject(vFor)) {
  2925. context = Object.keys(vFor).find(function (vForKey) {
  2926. return vm.__get_value(propPath, vFor[vForKey]) === value;
  2927. });
  2928. } else {
  2929. console.error('v-for 暂不支持循环数据:', vFor);
  2930. }
  2931. }
  2932. if (valuePath) {
  2933. context = vm.__get_value(valuePath, context);
  2934. }
  2935. }
  2936. });
  2937. return context;
  2938. }
  2939. function processEventExtra(vm, extra, event, __args__) {
  2940. var extraObj = {};
  2941. if (Array.isArray(extra) && extra.length) {
  2942. /**
  2943. *[
  2944. * ['data.items', 'data.id', item.data.id],
  2945. * ['metas', 'id', meta.id]
  2946. *],
  2947. *[
  2948. * ['data.items', 'data.id', item.data.id],
  2949. * ['metas', 'id', meta.id]
  2950. *],
  2951. *'test'
  2952. */
  2953. extra.forEach(function (dataPath, index) {
  2954. if (typeof dataPath === 'string') {
  2955. if (!dataPath) {
  2956. // model,prop.sync
  2957. extraObj['$' + index] = vm;
  2958. } else {
  2959. if (dataPath === '$event') {
  2960. // $event
  2961. extraObj['$' + index] = event;
  2962. } else if (dataPath === 'arguments') {
  2963. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  2964. } else if (dataPath.indexOf('$event.') === 0) {
  2965. // $event.target.value
  2966. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  2967. } else {
  2968. extraObj['$' + index] = vm.__get_value(dataPath);
  2969. }
  2970. }
  2971. } else {
  2972. extraObj['$' + index] = getExtraValue(vm, dataPath);
  2973. }
  2974. });
  2975. }
  2976. return extraObj;
  2977. }
  2978. function getObjByArray(arr) {
  2979. var obj = {};
  2980. for (var i = 1; i < arr.length; i++) {
  2981. var element = arr[i];
  2982. obj[element[0]] = element[1];
  2983. }
  2984. return obj;
  2985. }
  2986. function processEventArgs(vm, event) {
  2987. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  2988. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  2989. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  2990. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  2991. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  2992. // fixed 用户直接触发 mpInstance.triggerEvent
  2993. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  2994. if (isCustom) {
  2995. // 自定义事件
  2996. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  2997. if (!args.length) {
  2998. // 无参数,直接传入 event 或 detail 数组
  2999. if (isCustomMPEvent) {
  3000. return [event];
  3001. }
  3002. return __args__;
  3003. }
  3004. }
  3005. var extraObj = processEventExtra(vm, extra, event, __args__);
  3006. var ret = [];
  3007. args.forEach(function (arg) {
  3008. if (arg === '$event') {
  3009. if (methodName === '__set_model' && !isCustom) {
  3010. // input v-model value
  3011. ret.push(event.target.value);
  3012. } else {
  3013. if (isCustom && !isCustomMPEvent) {
  3014. ret.push(__args__[0]);
  3015. } else {
  3016. // wxcomponent 组件或内置组件
  3017. ret.push(event);
  3018. }
  3019. }
  3020. } else {
  3021. if (Array.isArray(arg) && arg[0] === 'o') {
  3022. ret.push(getObjByArray(arg));
  3023. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  3024. ret.push(extraObj[arg]);
  3025. } else {
  3026. ret.push(arg);
  3027. }
  3028. }
  3029. });
  3030. return ret;
  3031. }
  3032. var ONCE = '~';
  3033. var CUSTOM = '^';
  3034. function isMatchEventType(eventType, optType) {
  3035. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  3036. }
  3037. function getContextVm(vm) {
  3038. var $parent = vm.$parent;
  3039. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  3040. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  3041. $parent = $parent.$parent;
  3042. }
  3043. return $parent && $parent.$parent;
  3044. }
  3045. function handleEvent(event) {
  3046. var _this2 = this;
  3047. event = wrapper$1(event);
  3048. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  3049. var dataset = (event.currentTarget || event.target).dataset;
  3050. if (!dataset) {
  3051. return console.warn('事件信息不存在');
  3052. }
  3053. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  3054. if (!eventOpts) {
  3055. return console.warn('事件信息不存在');
  3056. }
  3057. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  3058. var eventType = event.type;
  3059. var ret = [];
  3060. eventOpts.forEach(function (eventOpt) {
  3061. var type = eventOpt[0];
  3062. var eventsArray = eventOpt[1];
  3063. var isCustom = type.charAt(0) === CUSTOM;
  3064. type = isCustom ? type.slice(1) : type;
  3065. var isOnce = type.charAt(0) === ONCE;
  3066. type = isOnce ? type.slice(1) : type;
  3067. if (eventsArray && isMatchEventType(eventType, type)) {
  3068. eventsArray.forEach(function (eventArray) {
  3069. var methodName = eventArray[0];
  3070. if (methodName) {
  3071. var handlerCtx = _this2.$vm;
  3072. if (handlerCtx.$options.generic) {
  3073. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  3074. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  3075. }
  3076. if (methodName === '$emit') {
  3077. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  3078. return;
  3079. }
  3080. var handler = handlerCtx[methodName];
  3081. if (!isFn(handler)) {
  3082. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  3083. var path = _this2.route || _this2.is;
  3084. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  3085. }
  3086. if (isOnce) {
  3087. if (handler.once) {
  3088. return;
  3089. }
  3090. handler.once = true;
  3091. }
  3092. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  3093. params = Array.isArray(params) ? params : [];
  3094. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  3095. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  3096. // eslint-disable-next-line no-sparse-arrays
  3097. params = params.concat([,,,,,,,,,, event]);
  3098. }
  3099. ret.push(handler.apply(handlerCtx, params));
  3100. }
  3101. });
  3102. }
  3103. });
  3104. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  3105. return ret[0];
  3106. }
  3107. }
  3108. var eventChannels = {};
  3109. function getEventChannel(id) {
  3110. var eventChannel = eventChannels[id];
  3111. delete eventChannels[id];
  3112. return eventChannel;
  3113. }
  3114. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  3115. function initEventChannel() {
  3116. _vue.default.prototype.getOpenerEventChannel = function () {
  3117. // 微信小程序使用自身getOpenerEventChannel
  3118. {
  3119. return this.$scope.getOpenerEventChannel();
  3120. }
  3121. };
  3122. var callHook = _vue.default.prototype.__call_hook;
  3123. _vue.default.prototype.__call_hook = function (hook, args) {
  3124. if (hook === 'onLoad' && args && args.__id__) {
  3125. this.__eventChannel__ = getEventChannel(args.__id__);
  3126. delete args.__id__;
  3127. }
  3128. return callHook.call(this, hook, args);
  3129. };
  3130. }
  3131. function initScopedSlotsParams() {
  3132. var center = {};
  3133. var parents = {};
  3134. function currentId(fn) {
  3135. var vueIds = this.$options.propsData.vueId;
  3136. if (vueIds) {
  3137. var vueId = vueIds.split(',')[0];
  3138. fn(vueId);
  3139. }
  3140. }
  3141. _vue.default.prototype.$hasSSP = function (vueId) {
  3142. var slot = center[vueId];
  3143. if (!slot) {
  3144. parents[vueId] = this;
  3145. this.$on('hook:destroyed', function () {
  3146. delete parents[vueId];
  3147. });
  3148. }
  3149. return slot;
  3150. };
  3151. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  3152. var slot = center[vueId];
  3153. if (slot) {
  3154. var params = slot[name] || [];
  3155. if (needAll) {
  3156. return params;
  3157. }
  3158. return params[0];
  3159. }
  3160. };
  3161. _vue.default.prototype.$setSSP = function (name, value) {
  3162. var index = 0;
  3163. currentId.call(this, function (vueId) {
  3164. var slot = center[vueId];
  3165. var params = slot[name] = slot[name] || [];
  3166. params.push(value);
  3167. index = params.length - 1;
  3168. });
  3169. return index;
  3170. };
  3171. _vue.default.prototype.$initSSP = function () {
  3172. currentId.call(this, function (vueId) {
  3173. center[vueId] = {};
  3174. });
  3175. };
  3176. _vue.default.prototype.$callSSP = function () {
  3177. currentId.call(this, function (vueId) {
  3178. if (parents[vueId]) {
  3179. parents[vueId].$forceUpdate();
  3180. }
  3181. });
  3182. };
  3183. _vue.default.mixin({
  3184. destroyed: function destroyed() {
  3185. var propsData = this.$options.propsData;
  3186. var vueId = propsData && propsData.vueId;
  3187. if (vueId) {
  3188. delete center[vueId];
  3189. delete parents[vueId];
  3190. }
  3191. }
  3192. });
  3193. }
  3194. function parseBaseApp(vm, _ref4) {
  3195. var mocks = _ref4.mocks,
  3196. initRefs = _ref4.initRefs;
  3197. initEventChannel();
  3198. {
  3199. initScopedSlotsParams();
  3200. }
  3201. if (vm.$options.store) {
  3202. _vue.default.prototype.$store = vm.$options.store;
  3203. }
  3204. uniIdMixin(_vue.default);
  3205. _vue.default.prototype.mpHost = "mp-weixin";
  3206. _vue.default.mixin({
  3207. beforeCreate: function beforeCreate() {
  3208. if (!this.$options.mpType) {
  3209. return;
  3210. }
  3211. this.mpType = this.$options.mpType;
  3212. this.$mp = (0, _defineProperty2.default)({
  3213. data: {}
  3214. }, this.mpType, this.$options.mpInstance);
  3215. this.$scope = this.$options.mpInstance;
  3216. delete this.$options.mpType;
  3217. delete this.$options.mpInstance;
  3218. if (this.mpType === 'page' && typeof getApp === 'function') {
  3219. // hack vue-i18n
  3220. var app = getApp();
  3221. if (app.$vm && app.$vm.$i18n) {
  3222. this._i18n = app.$vm.$i18n;
  3223. }
  3224. }
  3225. if (this.mpType !== 'app') {
  3226. initRefs(this);
  3227. initMocks(this, mocks);
  3228. }
  3229. }
  3230. });
  3231. var appOptions = {
  3232. onLaunch: function onLaunch(args) {
  3233. if (this.$vm) {
  3234. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  3235. return;
  3236. }
  3237. {
  3238. if (wx.canIUse && !wx.canIUse('nextTick')) {
  3239. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  3240. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  3241. }
  3242. }
  3243. this.$vm = vm;
  3244. this.$vm.$mp = {
  3245. app: this
  3246. };
  3247. this.$vm.$scope = this;
  3248. // vm 上也挂载 globalData
  3249. this.$vm.globalData = this.globalData;
  3250. this.$vm._isMounted = true;
  3251. this.$vm.__call_hook('mounted', args);
  3252. this.$vm.__call_hook('onLaunch', args);
  3253. }
  3254. };
  3255. // 兼容旧版本 globalData
  3256. appOptions.globalData = vm.$options.globalData || {};
  3257. // 将 methods 中的方法挂在 getApp() 中
  3258. var methods = vm.$options.methods;
  3259. if (methods) {
  3260. Object.keys(methods).forEach(function (name) {
  3261. appOptions[name] = methods[name];
  3262. });
  3263. }
  3264. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  3265. initHooks(appOptions, hooks);
  3266. initUnknownHooks(appOptions, vm.$options);
  3267. return appOptions;
  3268. }
  3269. function parseApp(vm) {
  3270. return parseBaseApp(vm, {
  3271. mocks: mocks,
  3272. initRefs: initRefs
  3273. });
  3274. }
  3275. function createApp(vm) {
  3276. App(parseApp(vm));
  3277. return vm;
  3278. }
  3279. var encodeReserveRE = /[!'()*]/g;
  3280. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  3281. return '%' + c.charCodeAt(0).toString(16);
  3282. };
  3283. var commaRE = /%2C/g;
  3284. // fixed encodeURIComponent which is more conformant to RFC3986:
  3285. // - escapes [!'()*]
  3286. // - preserve commas
  3287. var encode = function encode(str) {
  3288. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  3289. };
  3290. function stringifyQuery(obj) {
  3291. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  3292. var res = obj ? Object.keys(obj).map(function (key) {
  3293. var val = obj[key];
  3294. if (val === undefined) {
  3295. return '';
  3296. }
  3297. if (val === null) {
  3298. return encodeStr(key);
  3299. }
  3300. if (Array.isArray(val)) {
  3301. var result = [];
  3302. val.forEach(function (val2) {
  3303. if (val2 === undefined) {
  3304. return;
  3305. }
  3306. if (val2 === null) {
  3307. result.push(encodeStr(key));
  3308. } else {
  3309. result.push(encodeStr(key) + '=' + encodeStr(val2));
  3310. }
  3311. });
  3312. return result.join('&');
  3313. }
  3314. return encodeStr(key) + '=' + encodeStr(val);
  3315. }).filter(function (x) {
  3316. return x.length > 0;
  3317. }).join('&') : null;
  3318. return res ? "?".concat(res) : '';
  3319. }
  3320. function parseBaseComponent(vueComponentOptions) {
  3321. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  3322. isPage = _ref5.isPage,
  3323. initRelation = _ref5.initRelation;
  3324. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  3325. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  3326. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  3327. VueComponent = _initVueComponent2[0],
  3328. vueOptions = _initVueComponent2[1];
  3329. var options = _objectSpread({
  3330. multipleSlots: true,
  3331. // styleIsolation: 'apply-shared',
  3332. addGlobalClass: true
  3333. }, vueOptions.options || {});
  3334. {
  3335. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  3336. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  3337. Object.assign(options, vueOptions['mp-weixin'].options);
  3338. }
  3339. }
  3340. var componentOptions = {
  3341. options: options,
  3342. data: initData(vueOptions, _vue.default.prototype),
  3343. behaviors: initBehaviors(vueOptions, initBehavior),
  3344. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  3345. lifetimes: {
  3346. attached: function attached() {
  3347. var properties = this.properties;
  3348. var options = {
  3349. mpType: isPage.call(this) ? 'page' : 'component',
  3350. mpInstance: this,
  3351. propsData: properties
  3352. };
  3353. initVueIds(properties.vueId, this);
  3354. // 处理父子关系
  3355. initRelation.call(this, {
  3356. vuePid: this._$vuePid,
  3357. vueOptions: options
  3358. });
  3359. // 初始化 vue 实例
  3360. this.$vm = new VueComponent(options);
  3361. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  3362. initSlots(this.$vm, properties.vueSlots);
  3363. // 触发首次 setData
  3364. this.$vm.$mount();
  3365. },
  3366. ready: function ready() {
  3367. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  3368. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  3369. if (this.$vm) {
  3370. this.$vm._isMounted = true;
  3371. this.$vm.__call_hook('mounted');
  3372. this.$vm.__call_hook('onReady');
  3373. }
  3374. },
  3375. detached: function detached() {
  3376. this.$vm && this.$vm.$destroy();
  3377. }
  3378. },
  3379. pageLifetimes: {
  3380. show: function show(args) {
  3381. this.$vm && this.$vm.__call_hook('onPageShow', args);
  3382. },
  3383. hide: function hide() {
  3384. this.$vm && this.$vm.__call_hook('onPageHide');
  3385. },
  3386. resize: function resize(size) {
  3387. this.$vm && this.$vm.__call_hook('onPageResize', size);
  3388. }
  3389. },
  3390. methods: {
  3391. __l: handleLink,
  3392. __e: handleEvent
  3393. }
  3394. };
  3395. // externalClasses
  3396. if (vueOptions.externalClasses) {
  3397. componentOptions.externalClasses = vueOptions.externalClasses;
  3398. }
  3399. if (Array.isArray(vueOptions.wxsCallMethods)) {
  3400. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  3401. componentOptions.methods[callMethod] = function (args) {
  3402. return this.$vm[callMethod](args);
  3403. };
  3404. });
  3405. }
  3406. if (needVueOptions) {
  3407. return [componentOptions, vueOptions, VueComponent];
  3408. }
  3409. if (isPage) {
  3410. return componentOptions;
  3411. }
  3412. return [componentOptions, VueComponent];
  3413. }
  3414. function parseComponent(vueComponentOptions, needVueOptions) {
  3415. return parseBaseComponent(vueComponentOptions, {
  3416. isPage: isPage,
  3417. initRelation: initRelation
  3418. }, needVueOptions);
  3419. }
  3420. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  3421. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  3422. function parseBasePage(vuePageOptions) {
  3423. var _parseComponent = parseComponent(vuePageOptions, true),
  3424. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  3425. pageOptions = _parseComponent2[0],
  3426. vueOptions = _parseComponent2[1];
  3427. initHooks(pageOptions.methods, hooks$1, vueOptions);
  3428. pageOptions.methods.onLoad = function (query) {
  3429. this.options = query;
  3430. var copyQuery = Object.assign({}, query);
  3431. delete copyQuery.__id__;
  3432. this.$page = {
  3433. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  3434. };
  3435. this.$vm.$mp.query = query; // 兼容 mpvue
  3436. this.$vm.__call_hook('onLoad', query);
  3437. };
  3438. {
  3439. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  3440. }
  3441. {
  3442. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  3443. }
  3444. return pageOptions;
  3445. }
  3446. function parsePage(vuePageOptions) {
  3447. return parseBasePage(vuePageOptions);
  3448. }
  3449. function createPage(vuePageOptions) {
  3450. {
  3451. return Component(parsePage(vuePageOptions));
  3452. }
  3453. }
  3454. function createComponent(vueOptions) {
  3455. {
  3456. return Component(parseComponent(vueOptions));
  3457. }
  3458. }
  3459. function createSubpackageApp(vm) {
  3460. var appOptions = parseApp(vm);
  3461. var app = getApp({
  3462. allowDefault: true
  3463. });
  3464. vm.$scope = app;
  3465. var globalData = app.globalData;
  3466. if (globalData) {
  3467. Object.keys(appOptions.globalData).forEach(function (name) {
  3468. if (!hasOwn(globalData, name)) {
  3469. globalData[name] = appOptions.globalData[name];
  3470. }
  3471. });
  3472. }
  3473. Object.keys(appOptions).forEach(function (name) {
  3474. if (!hasOwn(app, name)) {
  3475. app[name] = appOptions[name];
  3476. }
  3477. });
  3478. if (isFn(appOptions.onShow) && wx.onAppShow) {
  3479. wx.onAppShow(function () {
  3480. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  3481. args[_key5] = arguments[_key5];
  3482. }
  3483. vm.__call_hook('onShow', args);
  3484. });
  3485. }
  3486. if (isFn(appOptions.onHide) && wx.onAppHide) {
  3487. wx.onAppHide(function () {
  3488. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  3489. args[_key6] = arguments[_key6];
  3490. }
  3491. vm.__call_hook('onHide', args);
  3492. });
  3493. }
  3494. if (isFn(appOptions.onLaunch)) {
  3495. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  3496. vm.__call_hook('onLaunch', args);
  3497. }
  3498. return vm;
  3499. }
  3500. function createPlugin(vm) {
  3501. var appOptions = parseApp(vm);
  3502. if (isFn(appOptions.onShow) && wx.onAppShow) {
  3503. wx.onAppShow(function () {
  3504. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  3505. args[_key7] = arguments[_key7];
  3506. }
  3507. vm.__call_hook('onShow', args);
  3508. });
  3509. }
  3510. if (isFn(appOptions.onHide) && wx.onAppHide) {
  3511. wx.onAppHide(function () {
  3512. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  3513. args[_key8] = arguments[_key8];
  3514. }
  3515. vm.__call_hook('onHide', args);
  3516. });
  3517. }
  3518. if (isFn(appOptions.onLaunch)) {
  3519. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  3520. vm.__call_hook('onLaunch', args);
  3521. }
  3522. return vm;
  3523. }
  3524. todos.forEach(function (todoApi) {
  3525. protocols[todoApi] = false;
  3526. });
  3527. canIUses.forEach(function (canIUseApi) {
  3528. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  3529. if (!wx.canIUse(apiName)) {
  3530. protocols[canIUseApi] = false;
  3531. }
  3532. });
  3533. var uni = {};
  3534. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  3535. uni = new Proxy({}, {
  3536. get: function get(target, name) {
  3537. if (hasOwn(target, name)) {
  3538. return target[name];
  3539. }
  3540. if (baseApi[name]) {
  3541. return baseApi[name];
  3542. }
  3543. if (api[name]) {
  3544. return promisify(name, api[name]);
  3545. }
  3546. {
  3547. if (extraApi[name]) {
  3548. return promisify(name, extraApi[name]);
  3549. }
  3550. if (todoApis[name]) {
  3551. return promisify(name, todoApis[name]);
  3552. }
  3553. }
  3554. if (eventApi[name]) {
  3555. return eventApi[name];
  3556. }
  3557. return promisify(name, wrapper(name, wx[name]));
  3558. },
  3559. set: function set(target, name, value) {
  3560. target[name] = value;
  3561. return true;
  3562. }
  3563. });
  3564. } else {
  3565. Object.keys(baseApi).forEach(function (name) {
  3566. uni[name] = baseApi[name];
  3567. });
  3568. {
  3569. Object.keys(todoApis).forEach(function (name) {
  3570. uni[name] = promisify(name, todoApis[name]);
  3571. });
  3572. Object.keys(extraApi).forEach(function (name) {
  3573. uni[name] = promisify(name, extraApi[name]);
  3574. });
  3575. }
  3576. Object.keys(eventApi).forEach(function (name) {
  3577. uni[name] = eventApi[name];
  3578. });
  3579. Object.keys(api).forEach(function (name) {
  3580. uni[name] = promisify(name, api[name]);
  3581. });
  3582. Object.keys(wx).forEach(function (name) {
  3583. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  3584. uni[name] = promisify(name, wrapper(name, wx[name]));
  3585. }
  3586. });
  3587. }
  3588. wx.createApp = createApp;
  3589. wx.createPage = createPage;
  3590. wx.createComponent = createComponent;
  3591. wx.createSubpackageApp = createSubpackageApp;
  3592. wx.createPlugin = createPlugin;
  3593. var uni$1 = uni;
  3594. var _default = uni$1;
  3595. exports.default = _default;
  3596. /* 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)))
  3597. /***/ }),
  3598. /***/ 20:
  3599. /*!****************************************************************!*\
  3600. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  3601. \****************************************************************/
  3602. /*! no static exports found */
  3603. /***/ (function(module, exports) {
  3604. function _iterableToArray(iter) {
  3605. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  3606. }
  3607. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3608. /***/ }),
  3609. /***/ 21:
  3610. /*!******************************************************************!*\
  3611. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  3612. \******************************************************************/
  3613. /*! no static exports found */
  3614. /***/ (function(module, exports) {
  3615. function _nonIterableSpread() {
  3616. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  3617. }
  3618. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3619. /***/ }),
  3620. /***/ 22:
  3621. /*!*************************************************************!*\
  3622. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  3623. \*************************************************************/
  3624. /*! no static exports found */
  3625. /***/ (function(module, exports, __webpack_require__) {
  3626. "use strict";
  3627. /* WEBPACK VAR INJECTION */(function(uni, global) {
  3628. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  3629. Object.defineProperty(exports, "__esModule", {
  3630. value: true
  3631. });
  3632. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  3633. exports.compileI18nJsonStr = compileI18nJsonStr;
  3634. exports.hasI18nJson = hasI18nJson;
  3635. exports.initVueI18n = initVueI18n;
  3636. exports.isI18nStr = isI18nStr;
  3637. exports.isString = void 0;
  3638. exports.normalizeLocale = normalizeLocale;
  3639. exports.parseI18nJson = parseI18nJson;
  3640. exports.resolveLocale = resolveLocale;
  3641. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  3642. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  3643. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  3644. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  3645. var isObject = function isObject(val) {
  3646. return val !== null && (0, _typeof2.default)(val) === 'object';
  3647. };
  3648. var defaultDelimiters = ['{', '}'];
  3649. var BaseFormatter = /*#__PURE__*/function () {
  3650. function BaseFormatter() {
  3651. (0, _classCallCheck2.default)(this, BaseFormatter);
  3652. this._caches = Object.create(null);
  3653. }
  3654. (0, _createClass2.default)(BaseFormatter, [{
  3655. key: "interpolate",
  3656. value: function interpolate(message, values) {
  3657. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  3658. if (!values) {
  3659. return [message];
  3660. }
  3661. var tokens = this._caches[message];
  3662. if (!tokens) {
  3663. tokens = parse(message, delimiters);
  3664. this._caches[message] = tokens;
  3665. }
  3666. return compile(tokens, values);
  3667. }
  3668. }]);
  3669. return BaseFormatter;
  3670. }();
  3671. exports.Formatter = BaseFormatter;
  3672. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  3673. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  3674. function parse(format, _ref) {
  3675. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  3676. startDelimiter = _ref2[0],
  3677. endDelimiter = _ref2[1];
  3678. var tokens = [];
  3679. var position = 0;
  3680. var text = '';
  3681. while (position < format.length) {
  3682. var char = format[position++];
  3683. if (char === startDelimiter) {
  3684. if (text) {
  3685. tokens.push({
  3686. type: 'text',
  3687. value: text
  3688. });
  3689. }
  3690. text = '';
  3691. var sub = '';
  3692. char = format[position++];
  3693. while (char !== undefined && char !== endDelimiter) {
  3694. sub += char;
  3695. char = format[position++];
  3696. }
  3697. var isClosed = char === endDelimiter;
  3698. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  3699. tokens.push({
  3700. value: sub,
  3701. type: type
  3702. });
  3703. }
  3704. // else if (char === '%') {
  3705. // // when found rails i18n syntax, skip text capture
  3706. // if (format[position] !== '{') {
  3707. // text += char
  3708. // }
  3709. // }
  3710. else {
  3711. text += char;
  3712. }
  3713. }
  3714. text && tokens.push({
  3715. type: 'text',
  3716. value: text
  3717. });
  3718. return tokens;
  3719. }
  3720. function compile(tokens, values) {
  3721. var compiled = [];
  3722. var index = 0;
  3723. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  3724. if (mode === 'unknown') {
  3725. return compiled;
  3726. }
  3727. while (index < tokens.length) {
  3728. var token = tokens[index];
  3729. switch (token.type) {
  3730. case 'text':
  3731. compiled.push(token.value);
  3732. break;
  3733. case 'list':
  3734. compiled.push(values[parseInt(token.value, 10)]);
  3735. break;
  3736. case 'named':
  3737. if (mode === 'named') {
  3738. compiled.push(values[token.value]);
  3739. } else {
  3740. if (true) {
  3741. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  3742. }
  3743. }
  3744. break;
  3745. case 'unknown':
  3746. if (true) {
  3747. console.warn("Detect 'unknown' type of token!");
  3748. }
  3749. break;
  3750. }
  3751. index++;
  3752. }
  3753. return compiled;
  3754. }
  3755. var LOCALE_ZH_HANS = 'zh-Hans';
  3756. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  3757. var LOCALE_ZH_HANT = 'zh-Hant';
  3758. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  3759. var LOCALE_EN = 'en';
  3760. exports.LOCALE_EN = LOCALE_EN;
  3761. var LOCALE_FR = 'fr';
  3762. exports.LOCALE_FR = LOCALE_FR;
  3763. var LOCALE_ES = 'es';
  3764. exports.LOCALE_ES = LOCALE_ES;
  3765. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3766. var hasOwn = function hasOwn(val, key) {
  3767. return hasOwnProperty.call(val, key);
  3768. };
  3769. var defaultFormatter = new BaseFormatter();
  3770. function include(str, parts) {
  3771. return !!parts.find(function (part) {
  3772. return str.indexOf(part) !== -1;
  3773. });
  3774. }
  3775. function startsWith(str, parts) {
  3776. return parts.find(function (part) {
  3777. return str.indexOf(part) === 0;
  3778. });
  3779. }
  3780. function normalizeLocale(locale, messages) {
  3781. if (!locale) {
  3782. return;
  3783. }
  3784. locale = locale.trim().replace(/_/g, '-');
  3785. if (messages && messages[locale]) {
  3786. return locale;
  3787. }
  3788. locale = locale.toLowerCase();
  3789. if (locale === 'chinese') {
  3790. // 支付宝
  3791. return LOCALE_ZH_HANS;
  3792. }
  3793. if (locale.indexOf('zh') === 0) {
  3794. if (locale.indexOf('-hans') > -1) {
  3795. return LOCALE_ZH_HANS;
  3796. }
  3797. if (locale.indexOf('-hant') > -1) {
  3798. return LOCALE_ZH_HANT;
  3799. }
  3800. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  3801. return LOCALE_ZH_HANT;
  3802. }
  3803. return LOCALE_ZH_HANS;
  3804. }
  3805. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  3806. if (messages && Object.keys(messages).length > 0) {
  3807. locales = Object.keys(messages);
  3808. }
  3809. var lang = startsWith(locale, locales);
  3810. if (lang) {
  3811. return lang;
  3812. }
  3813. }
  3814. var I18n = /*#__PURE__*/function () {
  3815. function I18n(_ref3) {
  3816. var locale = _ref3.locale,
  3817. fallbackLocale = _ref3.fallbackLocale,
  3818. messages = _ref3.messages,
  3819. watcher = _ref3.watcher,
  3820. formater = _ref3.formater;
  3821. (0, _classCallCheck2.default)(this, I18n);
  3822. this.locale = LOCALE_EN;
  3823. this.fallbackLocale = LOCALE_EN;
  3824. this.message = {};
  3825. this.messages = {};
  3826. this.watchers = [];
  3827. if (fallbackLocale) {
  3828. this.fallbackLocale = fallbackLocale;
  3829. }
  3830. this.formater = formater || defaultFormatter;
  3831. this.messages = messages || {};
  3832. this.setLocale(locale || LOCALE_EN);
  3833. if (watcher) {
  3834. this.watchLocale(watcher);
  3835. }
  3836. }
  3837. (0, _createClass2.default)(I18n, [{
  3838. key: "setLocale",
  3839. value: function setLocale(locale) {
  3840. var _this = this;
  3841. var oldLocale = this.locale;
  3842. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  3843. if (!this.messages[this.locale]) {
  3844. // 可能初始化时不存在
  3845. this.messages[this.locale] = {};
  3846. }
  3847. this.message = this.messages[this.locale];
  3848. // 仅发生变化时,通知
  3849. if (oldLocale !== this.locale) {
  3850. this.watchers.forEach(function (watcher) {
  3851. watcher(_this.locale, oldLocale);
  3852. });
  3853. }
  3854. }
  3855. }, {
  3856. key: "getLocale",
  3857. value: function getLocale() {
  3858. return this.locale;
  3859. }
  3860. }, {
  3861. key: "watchLocale",
  3862. value: function watchLocale(fn) {
  3863. var _this2 = this;
  3864. var index = this.watchers.push(fn) - 1;
  3865. return function () {
  3866. _this2.watchers.splice(index, 1);
  3867. };
  3868. }
  3869. }, {
  3870. key: "add",
  3871. value: function add(locale, message) {
  3872. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3873. var curMessages = this.messages[locale];
  3874. if (curMessages) {
  3875. if (override) {
  3876. Object.assign(curMessages, message);
  3877. } else {
  3878. Object.keys(message).forEach(function (key) {
  3879. if (!hasOwn(curMessages, key)) {
  3880. curMessages[key] = message[key];
  3881. }
  3882. });
  3883. }
  3884. } else {
  3885. this.messages[locale] = message;
  3886. }
  3887. }
  3888. }, {
  3889. key: "f",
  3890. value: function f(message, values, delimiters) {
  3891. return this.formater.interpolate(message, values, delimiters).join('');
  3892. }
  3893. }, {
  3894. key: "t",
  3895. value: function t(key, locale, values) {
  3896. var message = this.message;
  3897. if (typeof locale === 'string') {
  3898. locale = normalizeLocale(locale, this.messages);
  3899. locale && (message = this.messages[locale]);
  3900. } else {
  3901. values = locale;
  3902. }
  3903. if (!hasOwn(message, key)) {
  3904. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3905. return key;
  3906. }
  3907. return this.formater.interpolate(message[key], values).join('');
  3908. }
  3909. }]);
  3910. return I18n;
  3911. }();
  3912. exports.I18n = I18n;
  3913. function watchAppLocale(appVm, i18n) {
  3914. // 需要保证 watch 的触发在组件渲染之前
  3915. if (appVm.$watchLocale) {
  3916. // vue2
  3917. appVm.$watchLocale(function (newLocale) {
  3918. i18n.setLocale(newLocale);
  3919. });
  3920. } else {
  3921. appVm.$watch(function () {
  3922. return appVm.$locale;
  3923. }, function (newLocale) {
  3924. i18n.setLocale(newLocale);
  3925. });
  3926. }
  3927. }
  3928. function getDefaultLocale() {
  3929. if (typeof uni !== 'undefined' && uni.getLocale) {
  3930. return uni.getLocale();
  3931. }
  3932. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3933. if (typeof global !== 'undefined' && global.getLocale) {
  3934. return global.getLocale();
  3935. }
  3936. return LOCALE_EN;
  3937. }
  3938. function initVueI18n(locale) {
  3939. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3940. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3941. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3942. // 兼容旧版本入参
  3943. if (typeof locale !== 'string') {
  3944. var _ref4 = [messages, locale];
  3945. locale = _ref4[0];
  3946. messages = _ref4[1];
  3947. }
  3948. if (typeof locale !== 'string') {
  3949. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3950. locale = getDefaultLocale();
  3951. }
  3952. if (typeof fallbackLocale !== 'string') {
  3953. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3954. }
  3955. var i18n = new I18n({
  3956. locale: locale,
  3957. fallbackLocale: fallbackLocale,
  3958. messages: messages,
  3959. watcher: watcher
  3960. });
  3961. var _t = function t(key, values) {
  3962. if (typeof getApp !== 'function') {
  3963. // app view
  3964. /* eslint-disable no-func-assign */
  3965. _t = function t(key, values) {
  3966. return i18n.t(key, values);
  3967. };
  3968. } else {
  3969. var isWatchedAppLocale = false;
  3970. _t = function t(key, values) {
  3971. var appVm = getApp().$vm;
  3972. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3973. // options: {
  3974. // type: Array,
  3975. // default () {
  3976. // return [{
  3977. // icon: 'shop',
  3978. // text: t("uni-goods-nav.options.shop"),
  3979. // }, {
  3980. // icon: 'cart',
  3981. // text: t("uni-goods-nav.options.cart")
  3982. // }]
  3983. // }
  3984. // },
  3985. if (appVm) {
  3986. // 触发响应式
  3987. appVm.$locale;
  3988. if (!isWatchedAppLocale) {
  3989. isWatchedAppLocale = true;
  3990. watchAppLocale(appVm, i18n);
  3991. }
  3992. }
  3993. return i18n.t(key, values);
  3994. };
  3995. }
  3996. return _t(key, values);
  3997. };
  3998. return {
  3999. i18n: i18n,
  4000. f: function f(message, values, delimiters) {
  4001. return i18n.f(message, values, delimiters);
  4002. },
  4003. t: function t(key, values) {
  4004. return _t(key, values);
  4005. },
  4006. add: function add(locale, message) {
  4007. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  4008. return i18n.add(locale, message, override);
  4009. },
  4010. watch: function watch(fn) {
  4011. return i18n.watchLocale(fn);
  4012. },
  4013. getLocale: function getLocale() {
  4014. return i18n.getLocale();
  4015. },
  4016. setLocale: function setLocale(newLocale) {
  4017. return i18n.setLocale(newLocale);
  4018. }
  4019. };
  4020. }
  4021. var isString = function isString(val) {
  4022. return typeof val === 'string';
  4023. };
  4024. exports.isString = isString;
  4025. var formater;
  4026. function hasI18nJson(jsonObj, delimiters) {
  4027. if (!formater) {
  4028. formater = new BaseFormatter();
  4029. }
  4030. return walkJsonObj(jsonObj, function (jsonObj, key) {
  4031. var value = jsonObj[key];
  4032. if (isString(value)) {
  4033. if (isI18nStr(value, delimiters)) {
  4034. return true;
  4035. }
  4036. } else {
  4037. return hasI18nJson(value, delimiters);
  4038. }
  4039. });
  4040. }
  4041. function parseI18nJson(jsonObj, values, delimiters) {
  4042. if (!formater) {
  4043. formater = new BaseFormatter();
  4044. }
  4045. walkJsonObj(jsonObj, function (jsonObj, key) {
  4046. var value = jsonObj[key];
  4047. if (isString(value)) {
  4048. if (isI18nStr(value, delimiters)) {
  4049. jsonObj[key] = compileStr(value, values, delimiters);
  4050. }
  4051. } else {
  4052. parseI18nJson(value, values, delimiters);
  4053. }
  4054. });
  4055. return jsonObj;
  4056. }
  4057. function compileI18nJsonStr(jsonStr, _ref5) {
  4058. var locale = _ref5.locale,
  4059. locales = _ref5.locales,
  4060. delimiters = _ref5.delimiters;
  4061. if (!isI18nStr(jsonStr, delimiters)) {
  4062. return jsonStr;
  4063. }
  4064. if (!formater) {
  4065. formater = new BaseFormatter();
  4066. }
  4067. var localeValues = [];
  4068. Object.keys(locales).forEach(function (name) {
  4069. if (name !== locale) {
  4070. localeValues.push({
  4071. locale: name,
  4072. values: locales[name]
  4073. });
  4074. }
  4075. });
  4076. localeValues.unshift({
  4077. locale: locale,
  4078. values: locales[locale]
  4079. });
  4080. try {
  4081. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  4082. } catch (e) {}
  4083. return jsonStr;
  4084. }
  4085. function isI18nStr(value, delimiters) {
  4086. return value.indexOf(delimiters[0]) > -1;
  4087. }
  4088. function compileStr(value, values, delimiters) {
  4089. return formater.interpolate(value, values, delimiters).join('');
  4090. }
  4091. function compileValue(jsonObj, key, localeValues, delimiters) {
  4092. var value = jsonObj[key];
  4093. if (isString(value)) {
  4094. // 存在国际化
  4095. if (isI18nStr(value, delimiters)) {
  4096. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  4097. if (localeValues.length > 1) {
  4098. // 格式化国际化语言
  4099. var valueLocales = jsonObj[key + 'Locales'] = {};
  4100. localeValues.forEach(function (localValue) {
  4101. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  4102. });
  4103. }
  4104. }
  4105. } else {
  4106. compileJsonObj(value, localeValues, delimiters);
  4107. }
  4108. }
  4109. function compileJsonObj(jsonObj, localeValues, delimiters) {
  4110. walkJsonObj(jsonObj, function (jsonObj, key) {
  4111. compileValue(jsonObj, key, localeValues, delimiters);
  4112. });
  4113. return jsonObj;
  4114. }
  4115. function walkJsonObj(jsonObj, walk) {
  4116. if (Array.isArray(jsonObj)) {
  4117. for (var i = 0; i < jsonObj.length; i++) {
  4118. if (walk(jsonObj, i)) {
  4119. return true;
  4120. }
  4121. }
  4122. } else if (isObject(jsonObj)) {
  4123. for (var key in jsonObj) {
  4124. if (walk(jsonObj, key)) {
  4125. return true;
  4126. }
  4127. }
  4128. }
  4129. return false;
  4130. }
  4131. function resolveLocale(locales) {
  4132. return function (locale) {
  4133. if (!locale) {
  4134. return locale;
  4135. }
  4136. locale = normalizeLocale(locale) || locale;
  4137. return resolveLocaleChain(locale).find(function (locale) {
  4138. return locales.indexOf(locale) > -1;
  4139. });
  4140. };
  4141. }
  4142. function resolveLocaleChain(locale) {
  4143. var chain = [];
  4144. var tokens = locale.split('-');
  4145. while (tokens.length) {
  4146. chain.push(tokens.join('-'));
  4147. tokens.pop();
  4148. }
  4149. return chain;
  4150. }
  4151. /* 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)))
  4152. /***/ }),
  4153. /***/ 23:
  4154. /*!***************************************************************!*\
  4155. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  4156. \***************************************************************/
  4157. /*! no static exports found */
  4158. /***/ (function(module, exports) {
  4159. function _classCallCheck(instance, Constructor) {
  4160. if (!(instance instanceof Constructor)) {
  4161. throw new TypeError("Cannot call a class as a function");
  4162. }
  4163. }
  4164. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  4165. /***/ }),
  4166. /***/ 24:
  4167. /*!************************************************************!*\
  4168. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  4169. \************************************************************/
  4170. /*! no static exports found */
  4171. /***/ (function(module, exports, __webpack_require__) {
  4172. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  4173. function _defineProperties(target, props) {
  4174. for (var i = 0; i < props.length; i++) {
  4175. var descriptor = props[i];
  4176. descriptor.enumerable = descriptor.enumerable || false;
  4177. descriptor.configurable = true;
  4178. if ("value" in descriptor) descriptor.writable = true;
  4179. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  4180. }
  4181. }
  4182. function _createClass(Constructor, protoProps, staticProps) {
  4183. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  4184. if (staticProps) _defineProperties(Constructor, staticProps);
  4185. Object.defineProperty(Constructor, "prototype", {
  4186. writable: false
  4187. });
  4188. return Constructor;
  4189. }
  4190. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  4191. /***/ }),
  4192. /***/ 25:
  4193. /*!******************************************************************************************!*\
  4194. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  4195. \******************************************************************************************/
  4196. /*! exports provided: default */
  4197. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4198. "use strict";
  4199. __webpack_require__.r(__webpack_exports__);
  4200. /* WEBPACK VAR INJECTION */(function(global) {/*!
  4201. * Vue.js v2.6.11
  4202. * (c) 2014-2023 Evan You
  4203. * Released under the MIT License.
  4204. */
  4205. /* */
  4206. var emptyObject = Object.freeze({});
  4207. // These helpers produce better VM code in JS engines due to their
  4208. // explicitness and function inlining.
  4209. function isUndef (v) {
  4210. return v === undefined || v === null
  4211. }
  4212. function isDef (v) {
  4213. return v !== undefined && v !== null
  4214. }
  4215. function isTrue (v) {
  4216. return v === true
  4217. }
  4218. function isFalse (v) {
  4219. return v === false
  4220. }
  4221. /**
  4222. * Check if value is primitive.
  4223. */
  4224. function isPrimitive (value) {
  4225. return (
  4226. typeof value === 'string' ||
  4227. typeof value === 'number' ||
  4228. // $flow-disable-line
  4229. typeof value === 'symbol' ||
  4230. typeof value === 'boolean'
  4231. )
  4232. }
  4233. /**
  4234. * Quick object check - this is primarily used to tell
  4235. * Objects from primitive values when we know the value
  4236. * is a JSON-compliant type.
  4237. */
  4238. function isObject (obj) {
  4239. return obj !== null && typeof obj === 'object'
  4240. }
  4241. /**
  4242. * Get the raw type string of a value, e.g., [object Object].
  4243. */
  4244. var _toString = Object.prototype.toString;
  4245. function toRawType (value) {
  4246. return _toString.call(value).slice(8, -1)
  4247. }
  4248. /**
  4249. * Strict object type check. Only returns true
  4250. * for plain JavaScript objects.
  4251. */
  4252. function isPlainObject (obj) {
  4253. return _toString.call(obj) === '[object Object]'
  4254. }
  4255. function isRegExp (v) {
  4256. return _toString.call(v) === '[object RegExp]'
  4257. }
  4258. /**
  4259. * Check if val is a valid array index.
  4260. */
  4261. function isValidArrayIndex (val) {
  4262. var n = parseFloat(String(val));
  4263. return n >= 0 && Math.floor(n) === n && isFinite(val)
  4264. }
  4265. function isPromise (val) {
  4266. return (
  4267. isDef(val) &&
  4268. typeof val.then === 'function' &&
  4269. typeof val.catch === 'function'
  4270. )
  4271. }
  4272. /**
  4273. * Convert a value to a string that is actually rendered.
  4274. */
  4275. function toString (val) {
  4276. return val == null
  4277. ? ''
  4278. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  4279. ? JSON.stringify(val, null, 2)
  4280. : String(val)
  4281. }
  4282. /**
  4283. * Convert an input value to a number for persistence.
  4284. * If the conversion fails, return original string.
  4285. */
  4286. function toNumber (val) {
  4287. var n = parseFloat(val);
  4288. return isNaN(n) ? val : n
  4289. }
  4290. /**
  4291. * Make a map and return a function for checking if a key
  4292. * is in that map.
  4293. */
  4294. function makeMap (
  4295. str,
  4296. expectsLowerCase
  4297. ) {
  4298. var map = Object.create(null);
  4299. var list = str.split(',');
  4300. for (var i = 0; i < list.length; i++) {
  4301. map[list[i]] = true;
  4302. }
  4303. return expectsLowerCase
  4304. ? function (val) { return map[val.toLowerCase()]; }
  4305. : function (val) { return map[val]; }
  4306. }
  4307. /**
  4308. * Check if a tag is a built-in tag.
  4309. */
  4310. var isBuiltInTag = makeMap('slot,component', true);
  4311. /**
  4312. * Check if an attribute is a reserved attribute.
  4313. */
  4314. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  4315. /**
  4316. * Remove an item from an array.
  4317. */
  4318. function remove (arr, item) {
  4319. if (arr.length) {
  4320. var index = arr.indexOf(item);
  4321. if (index > -1) {
  4322. return arr.splice(index, 1)
  4323. }
  4324. }
  4325. }
  4326. /**
  4327. * Check whether an object has the property.
  4328. */
  4329. var hasOwnProperty = Object.prototype.hasOwnProperty;
  4330. function hasOwn (obj, key) {
  4331. return hasOwnProperty.call(obj, key)
  4332. }
  4333. /**
  4334. * Create a cached version of a pure function.
  4335. */
  4336. function cached (fn) {
  4337. var cache = Object.create(null);
  4338. return (function cachedFn (str) {
  4339. var hit = cache[str];
  4340. return hit || (cache[str] = fn(str))
  4341. })
  4342. }
  4343. /**
  4344. * Camelize a hyphen-delimited string.
  4345. */
  4346. var camelizeRE = /-(\w)/g;
  4347. var camelize = cached(function (str) {
  4348. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  4349. });
  4350. /**
  4351. * Capitalize a string.
  4352. */
  4353. var capitalize = cached(function (str) {
  4354. return str.charAt(0).toUpperCase() + str.slice(1)
  4355. });
  4356. /**
  4357. * Hyphenate a camelCase string.
  4358. */
  4359. var hyphenateRE = /\B([A-Z])/g;
  4360. var hyphenate = cached(function (str) {
  4361. return str.replace(hyphenateRE, '-$1').toLowerCase()
  4362. });
  4363. /**
  4364. * Simple bind polyfill for environments that do not support it,
  4365. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  4366. * since native bind is now performant enough in most browsers.
  4367. * But removing it would mean breaking code that was able to run in
  4368. * PhantomJS 1.x, so this must be kept for backward compatibility.
  4369. */
  4370. /* istanbul ignore next */
  4371. function polyfillBind (fn, ctx) {
  4372. function boundFn (a) {
  4373. var l = arguments.length;
  4374. return l
  4375. ? l > 1
  4376. ? fn.apply(ctx, arguments)
  4377. : fn.call(ctx, a)
  4378. : fn.call(ctx)
  4379. }
  4380. boundFn._length = fn.length;
  4381. return boundFn
  4382. }
  4383. function nativeBind (fn, ctx) {
  4384. return fn.bind(ctx)
  4385. }
  4386. var bind = Function.prototype.bind
  4387. ? nativeBind
  4388. : polyfillBind;
  4389. /**
  4390. * Convert an Array-like object to a real Array.
  4391. */
  4392. function toArray (list, start) {
  4393. start = start || 0;
  4394. var i = list.length - start;
  4395. var ret = new Array(i);
  4396. while (i--) {
  4397. ret[i] = list[i + start];
  4398. }
  4399. return ret
  4400. }
  4401. /**
  4402. * Mix properties into target object.
  4403. */
  4404. function extend (to, _from) {
  4405. for (var key in _from) {
  4406. to[key] = _from[key];
  4407. }
  4408. return to
  4409. }
  4410. /**
  4411. * Merge an Array of Objects into a single Object.
  4412. */
  4413. function toObject (arr) {
  4414. var res = {};
  4415. for (var i = 0; i < arr.length; i++) {
  4416. if (arr[i]) {
  4417. extend(res, arr[i]);
  4418. }
  4419. }
  4420. return res
  4421. }
  4422. /* eslint-disable no-unused-vars */
  4423. /**
  4424. * Perform no operation.
  4425. * Stubbing args to make Flow happy without leaving useless transpiled code
  4426. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  4427. */
  4428. function noop (a, b, c) {}
  4429. /**
  4430. * Always return false.
  4431. */
  4432. var no = function (a, b, c) { return false; };
  4433. /* eslint-enable no-unused-vars */
  4434. /**
  4435. * Return the same value.
  4436. */
  4437. var identity = function (_) { return _; };
  4438. /**
  4439. * Check if two values are loosely equal - that is,
  4440. * if they are plain objects, do they have the same shape?
  4441. */
  4442. function looseEqual (a, b) {
  4443. if (a === b) { return true }
  4444. var isObjectA = isObject(a);
  4445. var isObjectB = isObject(b);
  4446. if (isObjectA && isObjectB) {
  4447. try {
  4448. var isArrayA = Array.isArray(a);
  4449. var isArrayB = Array.isArray(b);
  4450. if (isArrayA && isArrayB) {
  4451. return a.length === b.length && a.every(function (e, i) {
  4452. return looseEqual(e, b[i])
  4453. })
  4454. } else if (a instanceof Date && b instanceof Date) {
  4455. return a.getTime() === b.getTime()
  4456. } else if (!isArrayA && !isArrayB) {
  4457. var keysA = Object.keys(a);
  4458. var keysB = Object.keys(b);
  4459. return keysA.length === keysB.length && keysA.every(function (key) {
  4460. return looseEqual(a[key], b[key])
  4461. })
  4462. } else {
  4463. /* istanbul ignore next */
  4464. return false
  4465. }
  4466. } catch (e) {
  4467. /* istanbul ignore next */
  4468. return false
  4469. }
  4470. } else if (!isObjectA && !isObjectB) {
  4471. return String(a) === String(b)
  4472. } else {
  4473. return false
  4474. }
  4475. }
  4476. /**
  4477. * Return the first index at which a loosely equal value can be
  4478. * found in the array (if value is a plain object, the array must
  4479. * contain an object of the same shape), or -1 if it is not present.
  4480. */
  4481. function looseIndexOf (arr, val) {
  4482. for (var i = 0; i < arr.length; i++) {
  4483. if (looseEqual(arr[i], val)) { return i }
  4484. }
  4485. return -1
  4486. }
  4487. /**
  4488. * Ensure a function is called only once.
  4489. */
  4490. function once (fn) {
  4491. var called = false;
  4492. return function () {
  4493. if (!called) {
  4494. called = true;
  4495. fn.apply(this, arguments);
  4496. }
  4497. }
  4498. }
  4499. var ASSET_TYPES = [
  4500. 'component',
  4501. 'directive',
  4502. 'filter'
  4503. ];
  4504. var LIFECYCLE_HOOKS = [
  4505. 'beforeCreate',
  4506. 'created',
  4507. 'beforeMount',
  4508. 'mounted',
  4509. 'beforeUpdate',
  4510. 'updated',
  4511. 'beforeDestroy',
  4512. 'destroyed',
  4513. 'activated',
  4514. 'deactivated',
  4515. 'errorCaptured',
  4516. 'serverPrefetch'
  4517. ];
  4518. /* */
  4519. var config = ({
  4520. /**
  4521. * Option merge strategies (used in core/util/options)
  4522. */
  4523. // $flow-disable-line
  4524. optionMergeStrategies: Object.create(null),
  4525. /**
  4526. * Whether to suppress warnings.
  4527. */
  4528. silent: false,
  4529. /**
  4530. * Show production mode tip message on boot?
  4531. */
  4532. productionTip: "development" !== 'production',
  4533. /**
  4534. * Whether to enable devtools
  4535. */
  4536. devtools: "development" !== 'production',
  4537. /**
  4538. * Whether to record perf
  4539. */
  4540. performance: false,
  4541. /**
  4542. * Error handler for watcher errors
  4543. */
  4544. errorHandler: null,
  4545. /**
  4546. * Warn handler for watcher warns
  4547. */
  4548. warnHandler: null,
  4549. /**
  4550. * Ignore certain custom elements
  4551. */
  4552. ignoredElements: [],
  4553. /**
  4554. * Custom user key aliases for v-on
  4555. */
  4556. // $flow-disable-line
  4557. keyCodes: Object.create(null),
  4558. /**
  4559. * Check if a tag is reserved so that it cannot be registered as a
  4560. * component. This is platform-dependent and may be overwritten.
  4561. */
  4562. isReservedTag: no,
  4563. /**
  4564. * Check if an attribute is reserved so that it cannot be used as a component
  4565. * prop. This is platform-dependent and may be overwritten.
  4566. */
  4567. isReservedAttr: no,
  4568. /**
  4569. * Check if a tag is an unknown element.
  4570. * Platform-dependent.
  4571. */
  4572. isUnknownElement: no,
  4573. /**
  4574. * Get the namespace of an element
  4575. */
  4576. getTagNamespace: noop,
  4577. /**
  4578. * Parse the real tag name for the specific platform.
  4579. */
  4580. parsePlatformTagName: identity,
  4581. /**
  4582. * Check if an attribute must be bound using property, e.g. value
  4583. * Platform-dependent.
  4584. */
  4585. mustUseProp: no,
  4586. /**
  4587. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  4588. * This will significantly reduce performance if set to false.
  4589. */
  4590. async: true,
  4591. /**
  4592. * Exposed for legacy reasons
  4593. */
  4594. _lifecycleHooks: LIFECYCLE_HOOKS
  4595. });
  4596. /* */
  4597. /**
  4598. * unicode letters used for parsing html tags, component names and property paths.
  4599. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  4600. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  4601. */
  4602. 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/;
  4603. /**
  4604. * Check if a string starts with $ or _
  4605. */
  4606. function isReserved (str) {
  4607. var c = (str + '').charCodeAt(0);
  4608. return c === 0x24 || c === 0x5F
  4609. }
  4610. /**
  4611. * Define a property.
  4612. */
  4613. function def (obj, key, val, enumerable) {
  4614. Object.defineProperty(obj, key, {
  4615. value: val,
  4616. enumerable: !!enumerable,
  4617. writable: true,
  4618. configurable: true
  4619. });
  4620. }
  4621. /**
  4622. * Parse simple path.
  4623. */
  4624. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  4625. function parsePath (path) {
  4626. if (bailRE.test(path)) {
  4627. return
  4628. }
  4629. var segments = path.split('.');
  4630. return function (obj) {
  4631. for (var i = 0; i < segments.length; i++) {
  4632. if (!obj) { return }
  4633. obj = obj[segments[i]];
  4634. }
  4635. return obj
  4636. }
  4637. }
  4638. /* */
  4639. // can we use __proto__?
  4640. var hasProto = '__proto__' in {};
  4641. // Browser environment sniffing
  4642. var inBrowser = typeof window !== 'undefined';
  4643. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  4644. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  4645. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  4646. var isIE = UA && /msie|trident/.test(UA);
  4647. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  4648. var isEdge = UA && UA.indexOf('edge/') > 0;
  4649. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  4650. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  4651. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  4652. var isPhantomJS = UA && /phantomjs/.test(UA);
  4653. var isFF = UA && UA.match(/firefox\/(\d+)/);
  4654. // Firefox has a "watch" function on Object.prototype...
  4655. var nativeWatch = ({}).watch;
  4656. if (inBrowser) {
  4657. try {
  4658. var opts = {};
  4659. Object.defineProperty(opts, 'passive', ({
  4660. get: function get () {
  4661. }
  4662. })); // https://github.com/facebook/flow/issues/285
  4663. window.addEventListener('test-passive', null, opts);
  4664. } catch (e) {}
  4665. }
  4666. // this needs to be lazy-evaled because vue may be required before
  4667. // vue-server-renderer can set VUE_ENV
  4668. var _isServer;
  4669. var isServerRendering = function () {
  4670. if (_isServer === undefined) {
  4671. /* istanbul ignore if */
  4672. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  4673. // detect presence of vue-server-renderer and avoid
  4674. // Webpack shimming the process
  4675. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  4676. } else {
  4677. _isServer = false;
  4678. }
  4679. }
  4680. return _isServer
  4681. };
  4682. // detect devtools
  4683. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  4684. /* istanbul ignore next */
  4685. function isNative (Ctor) {
  4686. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  4687. }
  4688. var hasSymbol =
  4689. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  4690. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  4691. var _Set;
  4692. /* istanbul ignore if */ // $flow-disable-line
  4693. if (typeof Set !== 'undefined' && isNative(Set)) {
  4694. // use native Set when available.
  4695. _Set = Set;
  4696. } else {
  4697. // a non-standard Set polyfill that only works with primitive keys.
  4698. _Set = /*@__PURE__*/(function () {
  4699. function Set () {
  4700. this.set = Object.create(null);
  4701. }
  4702. Set.prototype.has = function has (key) {
  4703. return this.set[key] === true
  4704. };
  4705. Set.prototype.add = function add (key) {
  4706. this.set[key] = true;
  4707. };
  4708. Set.prototype.clear = function clear () {
  4709. this.set = Object.create(null);
  4710. };
  4711. return Set;
  4712. }());
  4713. }
  4714. /* */
  4715. var warn = noop;
  4716. var tip = noop;
  4717. var generateComponentTrace = (noop); // work around flow check
  4718. var formatComponentName = (noop);
  4719. if (true) {
  4720. var hasConsole = typeof console !== 'undefined';
  4721. var classifyRE = /(?:^|[-_])(\w)/g;
  4722. var classify = function (str) { return str
  4723. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  4724. .replace(/[-_]/g, ''); };
  4725. warn = function (msg, vm) {
  4726. var trace = vm ? generateComponentTrace(vm) : '';
  4727. if (config.warnHandler) {
  4728. config.warnHandler.call(null, msg, vm, trace);
  4729. } else if (hasConsole && (!config.silent)) {
  4730. console.error(("[Vue warn]: " + msg + trace));
  4731. }
  4732. };
  4733. tip = function (msg, vm) {
  4734. if (hasConsole && (!config.silent)) {
  4735. console.warn("[Vue tip]: " + msg + (
  4736. vm ? generateComponentTrace(vm) : ''
  4737. ));
  4738. }
  4739. };
  4740. formatComponentName = function (vm, includeFile) {
  4741. if (vm.$root === vm) {
  4742. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  4743. return ('') + vm.$options.__file
  4744. }
  4745. return '<Root>'
  4746. }
  4747. var options = typeof vm === 'function' && vm.cid != null
  4748. ? vm.options
  4749. : vm._isVue
  4750. ? vm.$options || vm.constructor.options
  4751. : vm;
  4752. var name = options.name || options._componentTag;
  4753. var file = options.__file;
  4754. if (!name && file) {
  4755. var match = file.match(/([^/\\]+)\.vue$/);
  4756. name = match && match[1];
  4757. }
  4758. return (
  4759. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  4760. (file && includeFile !== false ? (" at " + file) : '')
  4761. )
  4762. };
  4763. var repeat = function (str, n) {
  4764. var res = '';
  4765. while (n) {
  4766. if (n % 2 === 1) { res += str; }
  4767. if (n > 1) { str += str; }
  4768. n >>= 1;
  4769. }
  4770. return res
  4771. };
  4772. generateComponentTrace = function (vm) {
  4773. if (vm._isVue && vm.$parent) {
  4774. var tree = [];
  4775. var currentRecursiveSequence = 0;
  4776. while (vm && vm.$options.name !== 'PageBody') {
  4777. if (tree.length > 0) {
  4778. var last = tree[tree.length - 1];
  4779. if (last.constructor === vm.constructor) {
  4780. currentRecursiveSequence++;
  4781. vm = vm.$parent;
  4782. continue
  4783. } else if (currentRecursiveSequence > 0) {
  4784. tree[tree.length - 1] = [last, currentRecursiveSequence];
  4785. currentRecursiveSequence = 0;
  4786. }
  4787. }
  4788. !vm.$options.isReserved && tree.push(vm);
  4789. vm = vm.$parent;
  4790. }
  4791. return '\n\nfound in\n\n' + tree
  4792. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  4793. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  4794. : formatComponentName(vm))); })
  4795. .join('\n')
  4796. } else {
  4797. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  4798. }
  4799. };
  4800. }
  4801. /* */
  4802. var uid = 0;
  4803. /**
  4804. * A dep is an observable that can have multiple
  4805. * directives subscribing to it.
  4806. */
  4807. var Dep = function Dep () {
  4808. this.id = uid++;
  4809. this.subs = [];
  4810. };
  4811. Dep.prototype.addSub = function addSub (sub) {
  4812. this.subs.push(sub);
  4813. };
  4814. Dep.prototype.removeSub = function removeSub (sub) {
  4815. remove(this.subs, sub);
  4816. };
  4817. Dep.prototype.depend = function depend () {
  4818. if (Dep.SharedObject.target) {
  4819. Dep.SharedObject.target.addDep(this);
  4820. }
  4821. };
  4822. Dep.prototype.notify = function notify () {
  4823. // stabilize the subscriber list first
  4824. var subs = this.subs.slice();
  4825. if ( true && !config.async) {
  4826. // subs aren't sorted in scheduler if not running async
  4827. // we need to sort them now to make sure they fire in correct
  4828. // order
  4829. subs.sort(function (a, b) { return a.id - b.id; });
  4830. }
  4831. for (var i = 0, l = subs.length; i < l; i++) {
  4832. subs[i].update();
  4833. }
  4834. };
  4835. // The current target watcher being evaluated.
  4836. // This is globally unique because only one watcher
  4837. // can be evaluated at a time.
  4838. // fixed by xxxxxx (nvue shared vuex)
  4839. /* eslint-disable no-undef */
  4840. Dep.SharedObject = {};
  4841. Dep.SharedObject.target = null;
  4842. Dep.SharedObject.targetStack = [];
  4843. function pushTarget (target) {
  4844. Dep.SharedObject.targetStack.push(target);
  4845. Dep.SharedObject.target = target;
  4846. Dep.target = target;
  4847. }
  4848. function popTarget () {
  4849. Dep.SharedObject.targetStack.pop();
  4850. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  4851. Dep.target = Dep.SharedObject.target;
  4852. }
  4853. /* */
  4854. var VNode = function VNode (
  4855. tag,
  4856. data,
  4857. children,
  4858. text,
  4859. elm,
  4860. context,
  4861. componentOptions,
  4862. asyncFactory
  4863. ) {
  4864. this.tag = tag;
  4865. this.data = data;
  4866. this.children = children;
  4867. this.text = text;
  4868. this.elm = elm;
  4869. this.ns = undefined;
  4870. this.context = context;
  4871. this.fnContext = undefined;
  4872. this.fnOptions = undefined;
  4873. this.fnScopeId = undefined;
  4874. this.key = data && data.key;
  4875. this.componentOptions = componentOptions;
  4876. this.componentInstance = undefined;
  4877. this.parent = undefined;
  4878. this.raw = false;
  4879. this.isStatic = false;
  4880. this.isRootInsert = true;
  4881. this.isComment = false;
  4882. this.isCloned = false;
  4883. this.isOnce = false;
  4884. this.asyncFactory = asyncFactory;
  4885. this.asyncMeta = undefined;
  4886. this.isAsyncPlaceholder = false;
  4887. };
  4888. var prototypeAccessors = { child: { configurable: true } };
  4889. // DEPRECATED: alias for componentInstance for backwards compat.
  4890. /* istanbul ignore next */
  4891. prototypeAccessors.child.get = function () {
  4892. return this.componentInstance
  4893. };
  4894. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4895. var createEmptyVNode = function (text) {
  4896. if ( text === void 0 ) text = '';
  4897. var node = new VNode();
  4898. node.text = text;
  4899. node.isComment = true;
  4900. return node
  4901. };
  4902. function createTextVNode (val) {
  4903. return new VNode(undefined, undefined, undefined, String(val))
  4904. }
  4905. // optimized shallow clone
  4906. // used for static nodes and slot nodes because they may be reused across
  4907. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4908. // on their elm reference.
  4909. function cloneVNode (vnode) {
  4910. var cloned = new VNode(
  4911. vnode.tag,
  4912. vnode.data,
  4913. // #7975
  4914. // clone children array to avoid mutating original in case of cloning
  4915. // a child.
  4916. vnode.children && vnode.children.slice(),
  4917. vnode.text,
  4918. vnode.elm,
  4919. vnode.context,
  4920. vnode.componentOptions,
  4921. vnode.asyncFactory
  4922. );
  4923. cloned.ns = vnode.ns;
  4924. cloned.isStatic = vnode.isStatic;
  4925. cloned.key = vnode.key;
  4926. cloned.isComment = vnode.isComment;
  4927. cloned.fnContext = vnode.fnContext;
  4928. cloned.fnOptions = vnode.fnOptions;
  4929. cloned.fnScopeId = vnode.fnScopeId;
  4930. cloned.asyncMeta = vnode.asyncMeta;
  4931. cloned.isCloned = true;
  4932. return cloned
  4933. }
  4934. /*
  4935. * not type checking this file because flow doesn't play well with
  4936. * dynamically accessing methods on Array prototype
  4937. */
  4938. var arrayProto = Array.prototype;
  4939. var arrayMethods = Object.create(arrayProto);
  4940. var methodsToPatch = [
  4941. 'push',
  4942. 'pop',
  4943. 'shift',
  4944. 'unshift',
  4945. 'splice',
  4946. 'sort',
  4947. 'reverse'
  4948. ];
  4949. /**
  4950. * Intercept mutating methods and emit events
  4951. */
  4952. methodsToPatch.forEach(function (method) {
  4953. // cache original method
  4954. var original = arrayProto[method];
  4955. def(arrayMethods, method, function mutator () {
  4956. var args = [], len = arguments.length;
  4957. while ( len-- ) args[ len ] = arguments[ len ];
  4958. var result = original.apply(this, args);
  4959. var ob = this.__ob__;
  4960. var inserted;
  4961. switch (method) {
  4962. case 'push':
  4963. case 'unshift':
  4964. inserted = args;
  4965. break
  4966. case 'splice':
  4967. inserted = args.slice(2);
  4968. break
  4969. }
  4970. if (inserted) { ob.observeArray(inserted); }
  4971. // notify change
  4972. ob.dep.notify();
  4973. return result
  4974. });
  4975. });
  4976. /* */
  4977. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4978. /**
  4979. * In some cases we may want to disable observation inside a component's
  4980. * update computation.
  4981. */
  4982. var shouldObserve = true;
  4983. function toggleObserving (value) {
  4984. shouldObserve = value;
  4985. }
  4986. /**
  4987. * Observer class that is attached to each observed
  4988. * object. Once attached, the observer converts the target
  4989. * object's property keys into getter/setters that
  4990. * collect dependencies and dispatch updates.
  4991. */
  4992. var Observer = function Observer (value) {
  4993. this.value = value;
  4994. this.dep = new Dep();
  4995. this.vmCount = 0;
  4996. def(value, '__ob__', this);
  4997. if (Array.isArray(value)) {
  4998. if (hasProto) {
  4999. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  5000. if(value.push !== value.__proto__.push){
  5001. copyAugment(value, arrayMethods, arrayKeys);
  5002. } else {
  5003. protoAugment(value, arrayMethods);
  5004. }
  5005. }
  5006. } else {
  5007. copyAugment(value, arrayMethods, arrayKeys);
  5008. }
  5009. this.observeArray(value);
  5010. } else {
  5011. this.walk(value);
  5012. }
  5013. };
  5014. /**
  5015. * Walk through all properties and convert them into
  5016. * getter/setters. This method should only be called when
  5017. * value type is Object.
  5018. */
  5019. Observer.prototype.walk = function walk (obj) {
  5020. var keys = Object.keys(obj);
  5021. for (var i = 0; i < keys.length; i++) {
  5022. defineReactive$$1(obj, keys[i]);
  5023. }
  5024. };
  5025. /**
  5026. * Observe a list of Array items.
  5027. */
  5028. Observer.prototype.observeArray = function observeArray (items) {
  5029. for (var i = 0, l = items.length; i < l; i++) {
  5030. observe(items[i]);
  5031. }
  5032. };
  5033. // helpers
  5034. /**
  5035. * Augment a target Object or Array by intercepting
  5036. * the prototype chain using __proto__
  5037. */
  5038. function protoAugment (target, src) {
  5039. /* eslint-disable no-proto */
  5040. target.__proto__ = src;
  5041. /* eslint-enable no-proto */
  5042. }
  5043. /**
  5044. * Augment a target Object or Array by defining
  5045. * hidden properties.
  5046. */
  5047. /* istanbul ignore next */
  5048. function copyAugment (target, src, keys) {
  5049. for (var i = 0, l = keys.length; i < l; i++) {
  5050. var key = keys[i];
  5051. def(target, key, src[key]);
  5052. }
  5053. }
  5054. /**
  5055. * Attempt to create an observer instance for a value,
  5056. * returns the new observer if successfully observed,
  5057. * or the existing observer if the value already has one.
  5058. */
  5059. function observe (value, asRootData) {
  5060. if (!isObject(value) || value instanceof VNode) {
  5061. return
  5062. }
  5063. var ob;
  5064. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  5065. ob = value.__ob__;
  5066. } else if (
  5067. shouldObserve &&
  5068. !isServerRendering() &&
  5069. (Array.isArray(value) || isPlainObject(value)) &&
  5070. Object.isExtensible(value) &&
  5071. !value._isVue &&
  5072. !value.__v_isMPComponent
  5073. ) {
  5074. ob = new Observer(value);
  5075. }
  5076. if (asRootData && ob) {
  5077. ob.vmCount++;
  5078. }
  5079. return ob
  5080. }
  5081. /**
  5082. * Define a reactive property on an Object.
  5083. */
  5084. function defineReactive$$1 (
  5085. obj,
  5086. key,
  5087. val,
  5088. customSetter,
  5089. shallow
  5090. ) {
  5091. var dep = new Dep();
  5092. var property = Object.getOwnPropertyDescriptor(obj, key);
  5093. if (property && property.configurable === false) {
  5094. return
  5095. }
  5096. // cater for pre-defined getter/setters
  5097. var getter = property && property.get;
  5098. var setter = property && property.set;
  5099. if ((!getter || setter) && arguments.length === 2) {
  5100. val = obj[key];
  5101. }
  5102. var childOb = !shallow && observe(val);
  5103. Object.defineProperty(obj, key, {
  5104. enumerable: true,
  5105. configurable: true,
  5106. get: function reactiveGetter () {
  5107. var value = getter ? getter.call(obj) : val;
  5108. if (Dep.SharedObject.target) { // fixed by xxxxxx
  5109. dep.depend();
  5110. if (childOb) {
  5111. childOb.dep.depend();
  5112. if (Array.isArray(value)) {
  5113. dependArray(value);
  5114. }
  5115. }
  5116. }
  5117. return value
  5118. },
  5119. set: function reactiveSetter (newVal) {
  5120. var value = getter ? getter.call(obj) : val;
  5121. /* eslint-disable no-self-compare */
  5122. if (newVal === value || (newVal !== newVal && value !== value)) {
  5123. return
  5124. }
  5125. /* eslint-enable no-self-compare */
  5126. if ( true && customSetter) {
  5127. customSetter();
  5128. }
  5129. // #7981: for accessor properties without setter
  5130. if (getter && !setter) { return }
  5131. if (setter) {
  5132. setter.call(obj, newVal);
  5133. } else {
  5134. val = newVal;
  5135. }
  5136. childOb = !shallow && observe(newVal);
  5137. dep.notify();
  5138. }
  5139. });
  5140. }
  5141. /**
  5142. * Set a property on an object. Adds the new property and
  5143. * triggers change notification if the property doesn't
  5144. * already exist.
  5145. */
  5146. function set (target, key, val) {
  5147. if ( true &&
  5148. (isUndef(target) || isPrimitive(target))
  5149. ) {
  5150. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  5151. }
  5152. if (Array.isArray(target) && isValidArrayIndex(key)) {
  5153. target.length = Math.max(target.length, key);
  5154. target.splice(key, 1, val);
  5155. return val
  5156. }
  5157. if (key in target && !(key in Object.prototype)) {
  5158. target[key] = val;
  5159. return val
  5160. }
  5161. var ob = (target).__ob__;
  5162. if (target._isVue || (ob && ob.vmCount)) {
  5163. true && warn(
  5164. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  5165. 'at runtime - declare it upfront in the data option.'
  5166. );
  5167. return val
  5168. }
  5169. if (!ob) {
  5170. target[key] = val;
  5171. return val
  5172. }
  5173. defineReactive$$1(ob.value, key, val);
  5174. ob.dep.notify();
  5175. return val
  5176. }
  5177. /**
  5178. * Delete a property and trigger change if necessary.
  5179. */
  5180. function del (target, key) {
  5181. if ( true &&
  5182. (isUndef(target) || isPrimitive(target))
  5183. ) {
  5184. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  5185. }
  5186. if (Array.isArray(target) && isValidArrayIndex(key)) {
  5187. target.splice(key, 1);
  5188. return
  5189. }
  5190. var ob = (target).__ob__;
  5191. if (target._isVue || (ob && ob.vmCount)) {
  5192. true && warn(
  5193. 'Avoid deleting properties on a Vue instance or its root $data ' +
  5194. '- just set it to null.'
  5195. );
  5196. return
  5197. }
  5198. if (!hasOwn(target, key)) {
  5199. return
  5200. }
  5201. delete target[key];
  5202. if (!ob) {
  5203. return
  5204. }
  5205. ob.dep.notify();
  5206. }
  5207. /**
  5208. * Collect dependencies on array elements when the array is touched, since
  5209. * we cannot intercept array element access like property getters.
  5210. */
  5211. function dependArray (value) {
  5212. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  5213. e = value[i];
  5214. e && e.__ob__ && e.__ob__.dep.depend();
  5215. if (Array.isArray(e)) {
  5216. dependArray(e);
  5217. }
  5218. }
  5219. }
  5220. /* */
  5221. /**
  5222. * Option overwriting strategies are functions that handle
  5223. * how to merge a parent option value and a child option
  5224. * value into the final value.
  5225. */
  5226. var strats = config.optionMergeStrategies;
  5227. /**
  5228. * Options with restrictions
  5229. */
  5230. if (true) {
  5231. strats.el = strats.propsData = function (parent, child, vm, key) {
  5232. if (!vm) {
  5233. warn(
  5234. "option \"" + key + "\" can only be used during instance " +
  5235. 'creation with the `new` keyword.'
  5236. );
  5237. }
  5238. return defaultStrat(parent, child)
  5239. };
  5240. }
  5241. /**
  5242. * Helper that recursively merges two data objects together.
  5243. */
  5244. function mergeData (to, from) {
  5245. if (!from) { return to }
  5246. var key, toVal, fromVal;
  5247. var keys = hasSymbol
  5248. ? Reflect.ownKeys(from)
  5249. : Object.keys(from);
  5250. for (var i = 0; i < keys.length; i++) {
  5251. key = keys[i];
  5252. // in case the object is already observed...
  5253. if (key === '__ob__') { continue }
  5254. toVal = to[key];
  5255. fromVal = from[key];
  5256. if (!hasOwn(to, key)) {
  5257. set(to, key, fromVal);
  5258. } else if (
  5259. toVal !== fromVal &&
  5260. isPlainObject(toVal) &&
  5261. isPlainObject(fromVal)
  5262. ) {
  5263. mergeData(toVal, fromVal);
  5264. }
  5265. }
  5266. return to
  5267. }
  5268. /**
  5269. * Data
  5270. */
  5271. function mergeDataOrFn (
  5272. parentVal,
  5273. childVal,
  5274. vm
  5275. ) {
  5276. if (!vm) {
  5277. // in a Vue.extend merge, both should be functions
  5278. if (!childVal) {
  5279. return parentVal
  5280. }
  5281. if (!parentVal) {
  5282. return childVal
  5283. }
  5284. // when parentVal & childVal are both present,
  5285. // we need to return a function that returns the
  5286. // merged result of both functions... no need to
  5287. // check if parentVal is a function here because
  5288. // it has to be a function to pass previous merges.
  5289. return function mergedDataFn () {
  5290. return mergeData(
  5291. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  5292. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  5293. )
  5294. }
  5295. } else {
  5296. return function mergedInstanceDataFn () {
  5297. // instance merge
  5298. var instanceData = typeof childVal === 'function'
  5299. ? childVal.call(vm, vm)
  5300. : childVal;
  5301. var defaultData = typeof parentVal === 'function'
  5302. ? parentVal.call(vm, vm)
  5303. : parentVal;
  5304. if (instanceData) {
  5305. return mergeData(instanceData, defaultData)
  5306. } else {
  5307. return defaultData
  5308. }
  5309. }
  5310. }
  5311. }
  5312. strats.data = function (
  5313. parentVal,
  5314. childVal,
  5315. vm
  5316. ) {
  5317. if (!vm) {
  5318. if (childVal && typeof childVal !== 'function') {
  5319. true && warn(
  5320. 'The "data" option should be a function ' +
  5321. 'that returns a per-instance value in component ' +
  5322. 'definitions.',
  5323. vm
  5324. );
  5325. return parentVal
  5326. }
  5327. return mergeDataOrFn(parentVal, childVal)
  5328. }
  5329. return mergeDataOrFn(parentVal, childVal, vm)
  5330. };
  5331. /**
  5332. * Hooks and props are merged as arrays.
  5333. */
  5334. function mergeHook (
  5335. parentVal,
  5336. childVal
  5337. ) {
  5338. var res = childVal
  5339. ? parentVal
  5340. ? parentVal.concat(childVal)
  5341. : Array.isArray(childVal)
  5342. ? childVal
  5343. : [childVal]
  5344. : parentVal;
  5345. return res
  5346. ? dedupeHooks(res)
  5347. : res
  5348. }
  5349. function dedupeHooks (hooks) {
  5350. var res = [];
  5351. for (var i = 0; i < hooks.length; i++) {
  5352. if (res.indexOf(hooks[i]) === -1) {
  5353. res.push(hooks[i]);
  5354. }
  5355. }
  5356. return res
  5357. }
  5358. LIFECYCLE_HOOKS.forEach(function (hook) {
  5359. strats[hook] = mergeHook;
  5360. });
  5361. /**
  5362. * Assets
  5363. *
  5364. * When a vm is present (instance creation), we need to do
  5365. * a three-way merge between constructor options, instance
  5366. * options and parent options.
  5367. */
  5368. function mergeAssets (
  5369. parentVal,
  5370. childVal,
  5371. vm,
  5372. key
  5373. ) {
  5374. var res = Object.create(parentVal || null);
  5375. if (childVal) {
  5376. true && assertObjectType(key, childVal, vm);
  5377. return extend(res, childVal)
  5378. } else {
  5379. return res
  5380. }
  5381. }
  5382. ASSET_TYPES.forEach(function (type) {
  5383. strats[type + 's'] = mergeAssets;
  5384. });
  5385. /**
  5386. * Watchers.
  5387. *
  5388. * Watchers hashes should not overwrite one
  5389. * another, so we merge them as arrays.
  5390. */
  5391. strats.watch = function (
  5392. parentVal,
  5393. childVal,
  5394. vm,
  5395. key
  5396. ) {
  5397. // work around Firefox's Object.prototype.watch...
  5398. if (parentVal === nativeWatch) { parentVal = undefined; }
  5399. if (childVal === nativeWatch) { childVal = undefined; }
  5400. /* istanbul ignore if */
  5401. if (!childVal) { return Object.create(parentVal || null) }
  5402. if (true) {
  5403. assertObjectType(key, childVal, vm);
  5404. }
  5405. if (!parentVal) { return childVal }
  5406. var ret = {};
  5407. extend(ret, parentVal);
  5408. for (var key$1 in childVal) {
  5409. var parent = ret[key$1];
  5410. var child = childVal[key$1];
  5411. if (parent && !Array.isArray(parent)) {
  5412. parent = [parent];
  5413. }
  5414. ret[key$1] = parent
  5415. ? parent.concat(child)
  5416. : Array.isArray(child) ? child : [child];
  5417. }
  5418. return ret
  5419. };
  5420. /**
  5421. * Other object hashes.
  5422. */
  5423. strats.props =
  5424. strats.methods =
  5425. strats.inject =
  5426. strats.computed = function (
  5427. parentVal,
  5428. childVal,
  5429. vm,
  5430. key
  5431. ) {
  5432. if (childVal && "development" !== 'production') {
  5433. assertObjectType(key, childVal, vm);
  5434. }
  5435. if (!parentVal) { return childVal }
  5436. var ret = Object.create(null);
  5437. extend(ret, parentVal);
  5438. if (childVal) { extend(ret, childVal); }
  5439. return ret
  5440. };
  5441. strats.provide = mergeDataOrFn;
  5442. /**
  5443. * Default strategy.
  5444. */
  5445. var defaultStrat = function (parentVal, childVal) {
  5446. return childVal === undefined
  5447. ? parentVal
  5448. : childVal
  5449. };
  5450. /**
  5451. * Validate component names
  5452. */
  5453. function checkComponents (options) {
  5454. for (var key in options.components) {
  5455. validateComponentName(key);
  5456. }
  5457. }
  5458. function validateComponentName (name) {
  5459. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  5460. warn(
  5461. 'Invalid component name: "' + name + '". Component names ' +
  5462. 'should conform to valid custom element name in html5 specification.'
  5463. );
  5464. }
  5465. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  5466. warn(
  5467. 'Do not use built-in or reserved HTML elements as component ' +
  5468. 'id: ' + name
  5469. );
  5470. }
  5471. }
  5472. /**
  5473. * Ensure all props option syntax are normalized into the
  5474. * Object-based format.
  5475. */
  5476. function normalizeProps (options, vm) {
  5477. var props = options.props;
  5478. if (!props) { return }
  5479. var res = {};
  5480. var i, val, name;
  5481. if (Array.isArray(props)) {
  5482. i = props.length;
  5483. while (i--) {
  5484. val = props[i];
  5485. if (typeof val === 'string') {
  5486. name = camelize(val);
  5487. res[name] = { type: null };
  5488. } else if (true) {
  5489. warn('props must be strings when using array syntax.');
  5490. }
  5491. }
  5492. } else if (isPlainObject(props)) {
  5493. for (var key in props) {
  5494. val = props[key];
  5495. name = camelize(key);
  5496. res[name] = isPlainObject(val)
  5497. ? val
  5498. : { type: val };
  5499. }
  5500. } else if (true) {
  5501. warn(
  5502. "Invalid value for option \"props\": expected an Array or an Object, " +
  5503. "but got " + (toRawType(props)) + ".",
  5504. vm
  5505. );
  5506. }
  5507. options.props = res;
  5508. }
  5509. /**
  5510. * Normalize all injections into Object-based format
  5511. */
  5512. function normalizeInject (options, vm) {
  5513. var inject = options.inject;
  5514. if (!inject) { return }
  5515. var normalized = options.inject = {};
  5516. if (Array.isArray(inject)) {
  5517. for (var i = 0; i < inject.length; i++) {
  5518. normalized[inject[i]] = { from: inject[i] };
  5519. }
  5520. } else if (isPlainObject(inject)) {
  5521. for (var key in inject) {
  5522. var val = inject[key];
  5523. normalized[key] = isPlainObject(val)
  5524. ? extend({ from: key }, val)
  5525. : { from: val };
  5526. }
  5527. } else if (true) {
  5528. warn(
  5529. "Invalid value for option \"inject\": expected an Array or an Object, " +
  5530. "but got " + (toRawType(inject)) + ".",
  5531. vm
  5532. );
  5533. }
  5534. }
  5535. /**
  5536. * Normalize raw function directives into object format.
  5537. */
  5538. function normalizeDirectives (options) {
  5539. var dirs = options.directives;
  5540. if (dirs) {
  5541. for (var key in dirs) {
  5542. var def$$1 = dirs[key];
  5543. if (typeof def$$1 === 'function') {
  5544. dirs[key] = { bind: def$$1, update: def$$1 };
  5545. }
  5546. }
  5547. }
  5548. }
  5549. function assertObjectType (name, value, vm) {
  5550. if (!isPlainObject(value)) {
  5551. warn(
  5552. "Invalid value for option \"" + name + "\": expected an Object, " +
  5553. "but got " + (toRawType(value)) + ".",
  5554. vm
  5555. );
  5556. }
  5557. }
  5558. /**
  5559. * Merge two option objects into a new one.
  5560. * Core utility used in both instantiation and inheritance.
  5561. */
  5562. function mergeOptions (
  5563. parent,
  5564. child,
  5565. vm
  5566. ) {
  5567. if (true) {
  5568. checkComponents(child);
  5569. }
  5570. if (typeof child === 'function') {
  5571. child = child.options;
  5572. }
  5573. normalizeProps(child, vm);
  5574. normalizeInject(child, vm);
  5575. normalizeDirectives(child);
  5576. // Apply extends and mixins on the child options,
  5577. // but only if it is a raw options object that isn't
  5578. // the result of another mergeOptions call.
  5579. // Only merged options has the _base property.
  5580. if (!child._base) {
  5581. if (child.extends) {
  5582. parent = mergeOptions(parent, child.extends, vm);
  5583. }
  5584. if (child.mixins) {
  5585. for (var i = 0, l = child.mixins.length; i < l; i++) {
  5586. parent = mergeOptions(parent, child.mixins[i], vm);
  5587. }
  5588. }
  5589. }
  5590. var options = {};
  5591. var key;
  5592. for (key in parent) {
  5593. mergeField(key);
  5594. }
  5595. for (key in child) {
  5596. if (!hasOwn(parent, key)) {
  5597. mergeField(key);
  5598. }
  5599. }
  5600. function mergeField (key) {
  5601. var strat = strats[key] || defaultStrat;
  5602. options[key] = strat(parent[key], child[key], vm, key);
  5603. }
  5604. return options
  5605. }
  5606. /**
  5607. * Resolve an asset.
  5608. * This function is used because child instances need access
  5609. * to assets defined in its ancestor chain.
  5610. */
  5611. function resolveAsset (
  5612. options,
  5613. type,
  5614. id,
  5615. warnMissing
  5616. ) {
  5617. /* istanbul ignore if */
  5618. if (typeof id !== 'string') {
  5619. return
  5620. }
  5621. var assets = options[type];
  5622. // check local registration variations first
  5623. if (hasOwn(assets, id)) { return assets[id] }
  5624. var camelizedId = camelize(id);
  5625. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  5626. var PascalCaseId = capitalize(camelizedId);
  5627. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  5628. // fallback to prototype chain
  5629. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  5630. if ( true && warnMissing && !res) {
  5631. warn(
  5632. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  5633. options
  5634. );
  5635. }
  5636. return res
  5637. }
  5638. /* */
  5639. function validateProp (
  5640. key,
  5641. propOptions,
  5642. propsData,
  5643. vm
  5644. ) {
  5645. var prop = propOptions[key];
  5646. var absent = !hasOwn(propsData, key);
  5647. var value = propsData[key];
  5648. // boolean casting
  5649. var booleanIndex = getTypeIndex(Boolean, prop.type);
  5650. if (booleanIndex > -1) {
  5651. if (absent && !hasOwn(prop, 'default')) {
  5652. value = false;
  5653. } else if (value === '' || value === hyphenate(key)) {
  5654. // only cast empty string / same name to boolean if
  5655. // boolean has higher priority
  5656. var stringIndex = getTypeIndex(String, prop.type);
  5657. if (stringIndex < 0 || booleanIndex < stringIndex) {
  5658. value = true;
  5659. }
  5660. }
  5661. }
  5662. // check default value
  5663. if (value === undefined) {
  5664. value = getPropDefaultValue(vm, prop, key);
  5665. // since the default value is a fresh copy,
  5666. // make sure to observe it.
  5667. var prevShouldObserve = shouldObserve;
  5668. toggleObserving(true);
  5669. observe(value);
  5670. toggleObserving(prevShouldObserve);
  5671. }
  5672. if (
  5673. true
  5674. ) {
  5675. assertProp(prop, key, value, vm, absent);
  5676. }
  5677. return value
  5678. }
  5679. /**
  5680. * Get the default value of a prop.
  5681. */
  5682. function getPropDefaultValue (vm, prop, key) {
  5683. // no default, return undefined
  5684. if (!hasOwn(prop, 'default')) {
  5685. return undefined
  5686. }
  5687. var def = prop.default;
  5688. // warn against non-factory defaults for Object & Array
  5689. if ( true && isObject(def)) {
  5690. warn(
  5691. 'Invalid default value for prop "' + key + '": ' +
  5692. 'Props with type Object/Array must use a factory function ' +
  5693. 'to return the default value.',
  5694. vm
  5695. );
  5696. }
  5697. // the raw prop value was also undefined from previous render,
  5698. // return previous default value to avoid unnecessary watcher trigger
  5699. if (vm && vm.$options.propsData &&
  5700. vm.$options.propsData[key] === undefined &&
  5701. vm._props[key] !== undefined
  5702. ) {
  5703. return vm._props[key]
  5704. }
  5705. // call factory function for non-Function types
  5706. // a value is Function if its prototype is function even across different execution context
  5707. return typeof def === 'function' && getType(prop.type) !== 'Function'
  5708. ? def.call(vm)
  5709. : def
  5710. }
  5711. /**
  5712. * Assert whether a prop is valid.
  5713. */
  5714. function assertProp (
  5715. prop,
  5716. name,
  5717. value,
  5718. vm,
  5719. absent
  5720. ) {
  5721. if (prop.required && absent) {
  5722. warn(
  5723. 'Missing required prop: "' + name + '"',
  5724. vm
  5725. );
  5726. return
  5727. }
  5728. if (value == null && !prop.required) {
  5729. return
  5730. }
  5731. var type = prop.type;
  5732. var valid = !type || type === true;
  5733. var expectedTypes = [];
  5734. if (type) {
  5735. if (!Array.isArray(type)) {
  5736. type = [type];
  5737. }
  5738. for (var i = 0; i < type.length && !valid; i++) {
  5739. var assertedType = assertType(value, type[i]);
  5740. expectedTypes.push(assertedType.expectedType || '');
  5741. valid = assertedType.valid;
  5742. }
  5743. }
  5744. if (!valid) {
  5745. warn(
  5746. getInvalidTypeMessage(name, value, expectedTypes),
  5747. vm
  5748. );
  5749. return
  5750. }
  5751. var validator = prop.validator;
  5752. if (validator) {
  5753. if (!validator(value)) {
  5754. warn(
  5755. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  5756. vm
  5757. );
  5758. }
  5759. }
  5760. }
  5761. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  5762. function assertType (value, type) {
  5763. var valid;
  5764. var expectedType = getType(type);
  5765. if (simpleCheckRE.test(expectedType)) {
  5766. var t = typeof value;
  5767. valid = t === expectedType.toLowerCase();
  5768. // for primitive wrapper objects
  5769. if (!valid && t === 'object') {
  5770. valid = value instanceof type;
  5771. }
  5772. } else if (expectedType === 'Object') {
  5773. valid = isPlainObject(value);
  5774. } else if (expectedType === 'Array') {
  5775. valid = Array.isArray(value);
  5776. } else {
  5777. valid = value instanceof type;
  5778. }
  5779. return {
  5780. valid: valid,
  5781. expectedType: expectedType
  5782. }
  5783. }
  5784. /**
  5785. * Use function string name to check built-in types,
  5786. * because a simple equality check will fail when running
  5787. * across different vms / iframes.
  5788. */
  5789. function getType (fn) {
  5790. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  5791. return match ? match[1] : ''
  5792. }
  5793. function isSameType (a, b) {
  5794. return getType(a) === getType(b)
  5795. }
  5796. function getTypeIndex (type, expectedTypes) {
  5797. if (!Array.isArray(expectedTypes)) {
  5798. return isSameType(expectedTypes, type) ? 0 : -1
  5799. }
  5800. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  5801. if (isSameType(expectedTypes[i], type)) {
  5802. return i
  5803. }
  5804. }
  5805. return -1
  5806. }
  5807. function getInvalidTypeMessage (name, value, expectedTypes) {
  5808. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  5809. " Expected " + (expectedTypes.map(capitalize).join(', '));
  5810. var expectedType = expectedTypes[0];
  5811. var receivedType = toRawType(value);
  5812. var expectedValue = styleValue(value, expectedType);
  5813. var receivedValue = styleValue(value, receivedType);
  5814. // check if we need to specify expected value
  5815. if (expectedTypes.length === 1 &&
  5816. isExplicable(expectedType) &&
  5817. !isBoolean(expectedType, receivedType)) {
  5818. message += " with value " + expectedValue;
  5819. }
  5820. message += ", got " + receivedType + " ";
  5821. // check if we need to specify received value
  5822. if (isExplicable(receivedType)) {
  5823. message += "with value " + receivedValue + ".";
  5824. }
  5825. return message
  5826. }
  5827. function styleValue (value, type) {
  5828. if (type === 'String') {
  5829. return ("\"" + value + "\"")
  5830. } else if (type === 'Number') {
  5831. return ("" + (Number(value)))
  5832. } else {
  5833. return ("" + value)
  5834. }
  5835. }
  5836. function isExplicable (value) {
  5837. var explicitTypes = ['string', 'number', 'boolean'];
  5838. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  5839. }
  5840. function isBoolean () {
  5841. var args = [], len = arguments.length;
  5842. while ( len-- ) args[ len ] = arguments[ len ];
  5843. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  5844. }
  5845. /* */
  5846. function handleError (err, vm, info) {
  5847. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  5848. // See: https://github.com/vuejs/vuex/issues/1505
  5849. pushTarget();
  5850. try {
  5851. if (vm) {
  5852. var cur = vm;
  5853. while ((cur = cur.$parent)) {
  5854. var hooks = cur.$options.errorCaptured;
  5855. if (hooks) {
  5856. for (var i = 0; i < hooks.length; i++) {
  5857. try {
  5858. var capture = hooks[i].call(cur, err, vm, info) === false;
  5859. if (capture) { return }
  5860. } catch (e) {
  5861. globalHandleError(e, cur, 'errorCaptured hook');
  5862. }
  5863. }
  5864. }
  5865. }
  5866. }
  5867. globalHandleError(err, vm, info);
  5868. } finally {
  5869. popTarget();
  5870. }
  5871. }
  5872. function invokeWithErrorHandling (
  5873. handler,
  5874. context,
  5875. args,
  5876. vm,
  5877. info
  5878. ) {
  5879. var res;
  5880. try {
  5881. res = args ? handler.apply(context, args) : handler.call(context);
  5882. if (res && !res._isVue && isPromise(res) && !res._handled) {
  5883. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  5884. // issue #9511
  5885. // avoid catch triggering multiple times when nested calls
  5886. res._handled = true;
  5887. }
  5888. } catch (e) {
  5889. handleError(e, vm, info);
  5890. }
  5891. return res
  5892. }
  5893. function globalHandleError (err, vm, info) {
  5894. if (config.errorHandler) {
  5895. try {
  5896. return config.errorHandler.call(null, err, vm, info)
  5897. } catch (e) {
  5898. // if the user intentionally throws the original error in the handler,
  5899. // do not log it twice
  5900. if (e !== err) {
  5901. logError(e, null, 'config.errorHandler');
  5902. }
  5903. }
  5904. }
  5905. logError(err, vm, info);
  5906. }
  5907. function logError (err, vm, info) {
  5908. if (true) {
  5909. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5910. }
  5911. /* istanbul ignore else */
  5912. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5913. console.error(err);
  5914. } else {
  5915. throw err
  5916. }
  5917. }
  5918. /* */
  5919. var callbacks = [];
  5920. var pending = false;
  5921. function flushCallbacks () {
  5922. pending = false;
  5923. var copies = callbacks.slice(0);
  5924. callbacks.length = 0;
  5925. for (var i = 0; i < copies.length; i++) {
  5926. copies[i]();
  5927. }
  5928. }
  5929. // Here we have async deferring wrappers using microtasks.
  5930. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5931. // However, it has subtle problems when state is changed right before repaint
  5932. // (e.g. #6813, out-in transitions).
  5933. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5934. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5935. // So we now use microtasks everywhere, again.
  5936. // A major drawback of this tradeoff is that there are some scenarios
  5937. // where microtasks have too high a priority and fire in between supposedly
  5938. // sequential events (e.g. #4521, #6690, which have workarounds)
  5939. // or even between bubbling of the same event (#6566).
  5940. var timerFunc;
  5941. // The nextTick behavior leverages the microtask queue, which can be accessed
  5942. // via either native Promise.then or MutationObserver.
  5943. // MutationObserver has wider support, however it is seriously bugged in
  5944. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5945. // completely stops working after triggering a few times... so, if native
  5946. // Promise is available, we will use it:
  5947. /* istanbul ignore next, $flow-disable-line */
  5948. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5949. var p = Promise.resolve();
  5950. timerFunc = function () {
  5951. p.then(flushCallbacks);
  5952. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5953. // it can get stuck in a weird state where callbacks are pushed into the
  5954. // microtask queue but the queue isn't being flushed, until the browser
  5955. // needs to do some other work, e.g. handle a timer. Therefore we can
  5956. // "force" the microtask queue to be flushed by adding an empty timer.
  5957. if (isIOS) { setTimeout(noop); }
  5958. };
  5959. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5960. isNative(MutationObserver) ||
  5961. // PhantomJS and iOS 7.x
  5962. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5963. )) {
  5964. // Use MutationObserver where native Promise is not available,
  5965. // e.g. PhantomJS, iOS7, Android 4.4
  5966. // (#6466 MutationObserver is unreliable in IE11)
  5967. var counter = 1;
  5968. var observer = new MutationObserver(flushCallbacks);
  5969. var textNode = document.createTextNode(String(counter));
  5970. observer.observe(textNode, {
  5971. characterData: true
  5972. });
  5973. timerFunc = function () {
  5974. counter = (counter + 1) % 2;
  5975. textNode.data = String(counter);
  5976. };
  5977. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5978. // Fallback to setImmediate.
  5979. // Technically it leverages the (macro) task queue,
  5980. // but it is still a better choice than setTimeout.
  5981. timerFunc = function () {
  5982. setImmediate(flushCallbacks);
  5983. };
  5984. } else {
  5985. // Fallback to setTimeout.
  5986. timerFunc = function () {
  5987. setTimeout(flushCallbacks, 0);
  5988. };
  5989. }
  5990. function nextTick (cb, ctx) {
  5991. var _resolve;
  5992. callbacks.push(function () {
  5993. if (cb) {
  5994. try {
  5995. cb.call(ctx);
  5996. } catch (e) {
  5997. handleError(e, ctx, 'nextTick');
  5998. }
  5999. } else if (_resolve) {
  6000. _resolve(ctx);
  6001. }
  6002. });
  6003. if (!pending) {
  6004. pending = true;
  6005. timerFunc();
  6006. }
  6007. // $flow-disable-line
  6008. if (!cb && typeof Promise !== 'undefined') {
  6009. return new Promise(function (resolve) {
  6010. _resolve = resolve;
  6011. })
  6012. }
  6013. }
  6014. /* */
  6015. /* not type checking this file because flow doesn't play well with Proxy */
  6016. var initProxy;
  6017. if (true) {
  6018. var allowedGlobals = makeMap(
  6019. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  6020. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  6021. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  6022. 'require' // for Webpack/Browserify
  6023. );
  6024. var warnNonPresent = function (target, key) {
  6025. warn(
  6026. "Property or method \"" + key + "\" is not defined on the instance but " +
  6027. 'referenced during render. Make sure that this property is reactive, ' +
  6028. 'either in the data option, or for class-based components, by ' +
  6029. 'initializing the property. ' +
  6030. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  6031. target
  6032. );
  6033. };
  6034. var warnReservedPrefix = function (target, key) {
  6035. warn(
  6036. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  6037. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  6038. 'prevent conflicts with Vue internals. ' +
  6039. 'See: https://vuejs.org/v2/api/#data',
  6040. target
  6041. );
  6042. };
  6043. var hasProxy =
  6044. typeof Proxy !== 'undefined' && isNative(Proxy);
  6045. if (hasProxy) {
  6046. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  6047. config.keyCodes = new Proxy(config.keyCodes, {
  6048. set: function set (target, key, value) {
  6049. if (isBuiltInModifier(key)) {
  6050. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  6051. return false
  6052. } else {
  6053. target[key] = value;
  6054. return true
  6055. }
  6056. }
  6057. });
  6058. }
  6059. var hasHandler = {
  6060. has: function has (target, key) {
  6061. var has = key in target;
  6062. var isAllowed = allowedGlobals(key) ||
  6063. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  6064. if (!has && !isAllowed) {
  6065. if (key in target.$data) { warnReservedPrefix(target, key); }
  6066. else { warnNonPresent(target, key); }
  6067. }
  6068. return has || !isAllowed
  6069. }
  6070. };
  6071. var getHandler = {
  6072. get: function get (target, key) {
  6073. if (typeof key === 'string' && !(key in target)) {
  6074. if (key in target.$data) { warnReservedPrefix(target, key); }
  6075. else { warnNonPresent(target, key); }
  6076. }
  6077. return target[key]
  6078. }
  6079. };
  6080. initProxy = function initProxy (vm) {
  6081. if (hasProxy) {
  6082. // determine which proxy handler to use
  6083. var options = vm.$options;
  6084. var handlers = options.render && options.render._withStripped
  6085. ? getHandler
  6086. : hasHandler;
  6087. vm._renderProxy = new Proxy(vm, handlers);
  6088. } else {
  6089. vm._renderProxy = vm;
  6090. }
  6091. };
  6092. }
  6093. /* */
  6094. var seenObjects = new _Set();
  6095. /**
  6096. * Recursively traverse an object to evoke all converted
  6097. * getters, so that every nested property inside the object
  6098. * is collected as a "deep" dependency.
  6099. */
  6100. function traverse (val) {
  6101. _traverse(val, seenObjects);
  6102. seenObjects.clear();
  6103. }
  6104. function _traverse (val, seen) {
  6105. var i, keys;
  6106. var isA = Array.isArray(val);
  6107. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  6108. return
  6109. }
  6110. if (val.__ob__) {
  6111. var depId = val.__ob__.dep.id;
  6112. if (seen.has(depId)) {
  6113. return
  6114. }
  6115. seen.add(depId);
  6116. }
  6117. if (isA) {
  6118. i = val.length;
  6119. while (i--) { _traverse(val[i], seen); }
  6120. } else {
  6121. keys = Object.keys(val);
  6122. i = keys.length;
  6123. while (i--) { _traverse(val[keys[i]], seen); }
  6124. }
  6125. }
  6126. var mark;
  6127. var measure;
  6128. if (true) {
  6129. var perf = inBrowser && window.performance;
  6130. /* istanbul ignore if */
  6131. if (
  6132. perf &&
  6133. perf.mark &&
  6134. perf.measure &&
  6135. perf.clearMarks &&
  6136. perf.clearMeasures
  6137. ) {
  6138. mark = function (tag) { return perf.mark(tag); };
  6139. measure = function (name, startTag, endTag) {
  6140. perf.measure(name, startTag, endTag);
  6141. perf.clearMarks(startTag);
  6142. perf.clearMarks(endTag);
  6143. // perf.clearMeasures(name)
  6144. };
  6145. }
  6146. }
  6147. /* */
  6148. var normalizeEvent = cached(function (name) {
  6149. var passive = name.charAt(0) === '&';
  6150. name = passive ? name.slice(1) : name;
  6151. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  6152. name = once$$1 ? name.slice(1) : name;
  6153. var capture = name.charAt(0) === '!';
  6154. name = capture ? name.slice(1) : name;
  6155. return {
  6156. name: name,
  6157. once: once$$1,
  6158. capture: capture,
  6159. passive: passive
  6160. }
  6161. });
  6162. function createFnInvoker (fns, vm) {
  6163. function invoker () {
  6164. var arguments$1 = arguments;
  6165. var fns = invoker.fns;
  6166. if (Array.isArray(fns)) {
  6167. var cloned = fns.slice();
  6168. for (var i = 0; i < cloned.length; i++) {
  6169. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  6170. }
  6171. } else {
  6172. // return handler return value for single handlers
  6173. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  6174. }
  6175. }
  6176. invoker.fns = fns;
  6177. return invoker
  6178. }
  6179. function updateListeners (
  6180. on,
  6181. oldOn,
  6182. add,
  6183. remove$$1,
  6184. createOnceHandler,
  6185. vm
  6186. ) {
  6187. var name, def$$1, cur, old, event;
  6188. for (name in on) {
  6189. def$$1 = cur = on[name];
  6190. old = oldOn[name];
  6191. event = normalizeEvent(name);
  6192. if (isUndef(cur)) {
  6193. true && warn(
  6194. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  6195. vm
  6196. );
  6197. } else if (isUndef(old)) {
  6198. if (isUndef(cur.fns)) {
  6199. cur = on[name] = createFnInvoker(cur, vm);
  6200. }
  6201. if (isTrue(event.once)) {
  6202. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  6203. }
  6204. add(event.name, cur, event.capture, event.passive, event.params);
  6205. } else if (cur !== old) {
  6206. old.fns = cur;
  6207. on[name] = old;
  6208. }
  6209. }
  6210. for (name in oldOn) {
  6211. if (isUndef(on[name])) {
  6212. event = normalizeEvent(name);
  6213. remove$$1(event.name, oldOn[name], event.capture);
  6214. }
  6215. }
  6216. }
  6217. /* */
  6218. /* */
  6219. // fixed by xxxxxx (mp properties)
  6220. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  6221. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  6222. if (isUndef(propOptions)) {
  6223. return res
  6224. }
  6225. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  6226. var attrs = data.attrs;
  6227. var props = data.props;
  6228. if (isDef(attrs) || isDef(props)) {
  6229. for (var key in propOptions) {
  6230. var altKey = hyphenate(key);
  6231. var result = checkProp(res, props, key, altKey, true) ||
  6232. checkProp(res, attrs, key, altKey, false);
  6233. // externalClass
  6234. if (
  6235. result &&
  6236. res[key] &&
  6237. externalClasses.indexOf(altKey) !== -1 &&
  6238. context[camelize(res[key])]
  6239. ) {
  6240. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  6241. res[key] = context[camelize(res[key])];
  6242. }
  6243. }
  6244. }
  6245. return res
  6246. }
  6247. function extractPropsFromVNodeData (
  6248. data,
  6249. Ctor,
  6250. tag,
  6251. context// fixed by xxxxxx
  6252. ) {
  6253. // we are only extracting raw values here.
  6254. // validation and default values are handled in the child
  6255. // component itself.
  6256. var propOptions = Ctor.options.props;
  6257. if (isUndef(propOptions)) {
  6258. // fixed by xxxxxx
  6259. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  6260. }
  6261. var res = {};
  6262. var attrs = data.attrs;
  6263. var props = data.props;
  6264. if (isDef(attrs) || isDef(props)) {
  6265. for (var key in propOptions) {
  6266. var altKey = hyphenate(key);
  6267. if (true) {
  6268. var keyInLowerCase = key.toLowerCase();
  6269. if (
  6270. key !== keyInLowerCase &&
  6271. attrs && hasOwn(attrs, keyInLowerCase)
  6272. ) {
  6273. tip(
  6274. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  6275. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  6276. " \"" + key + "\". " +
  6277. "Note that HTML attributes are case-insensitive and camelCased " +
  6278. "props need to use their kebab-case equivalents when using in-DOM " +
  6279. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  6280. );
  6281. }
  6282. }
  6283. checkProp(res, props, key, altKey, true) ||
  6284. checkProp(res, attrs, key, altKey, false);
  6285. }
  6286. }
  6287. // fixed by xxxxxx
  6288. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  6289. }
  6290. function checkProp (
  6291. res,
  6292. hash,
  6293. key,
  6294. altKey,
  6295. preserve
  6296. ) {
  6297. if (isDef(hash)) {
  6298. if (hasOwn(hash, key)) {
  6299. res[key] = hash[key];
  6300. if (!preserve) {
  6301. delete hash[key];
  6302. }
  6303. return true
  6304. } else if (hasOwn(hash, altKey)) {
  6305. res[key] = hash[altKey];
  6306. if (!preserve) {
  6307. delete hash[altKey];
  6308. }
  6309. return true
  6310. }
  6311. }
  6312. return false
  6313. }
  6314. /* */
  6315. // The template compiler attempts to minimize the need for normalization by
  6316. // statically analyzing the template at compile time.
  6317. //
  6318. // For plain HTML markup, normalization can be completely skipped because the
  6319. // generated render function is guaranteed to return Array<VNode>. There are
  6320. // two cases where extra normalization is needed:
  6321. // 1. When the children contains components - because a functional component
  6322. // may return an Array instead of a single root. In this case, just a simple
  6323. // normalization is needed - if any child is an Array, we flatten the whole
  6324. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  6325. // because functional components already normalize their own children.
  6326. function simpleNormalizeChildren (children) {
  6327. for (var i = 0; i < children.length; i++) {
  6328. if (Array.isArray(children[i])) {
  6329. return Array.prototype.concat.apply([], children)
  6330. }
  6331. }
  6332. return children
  6333. }
  6334. // 2. When the children contains constructs that always generated nested Arrays,
  6335. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  6336. // with hand-written render functions / JSX. In such cases a full normalization
  6337. // is needed to cater to all possible types of children values.
  6338. function normalizeChildren (children) {
  6339. return isPrimitive(children)
  6340. ? [createTextVNode(children)]
  6341. : Array.isArray(children)
  6342. ? normalizeArrayChildren(children)
  6343. : undefined
  6344. }
  6345. function isTextNode (node) {
  6346. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  6347. }
  6348. function normalizeArrayChildren (children, nestedIndex) {
  6349. var res = [];
  6350. var i, c, lastIndex, last;
  6351. for (i = 0; i < children.length; i++) {
  6352. c = children[i];
  6353. if (isUndef(c) || typeof c === 'boolean') { continue }
  6354. lastIndex = res.length - 1;
  6355. last = res[lastIndex];
  6356. // nested
  6357. if (Array.isArray(c)) {
  6358. if (c.length > 0) {
  6359. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  6360. // merge adjacent text nodes
  6361. if (isTextNode(c[0]) && isTextNode(last)) {
  6362. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  6363. c.shift();
  6364. }
  6365. res.push.apply(res, c);
  6366. }
  6367. } else if (isPrimitive(c)) {
  6368. if (isTextNode(last)) {
  6369. // merge adjacent text nodes
  6370. // this is necessary for SSR hydration because text nodes are
  6371. // essentially merged when rendered to HTML strings
  6372. res[lastIndex] = createTextVNode(last.text + c);
  6373. } else if (c !== '') {
  6374. // convert primitive to vnode
  6375. res.push(createTextVNode(c));
  6376. }
  6377. } else {
  6378. if (isTextNode(c) && isTextNode(last)) {
  6379. // merge adjacent text nodes
  6380. res[lastIndex] = createTextVNode(last.text + c.text);
  6381. } else {
  6382. // default key for nested array children (likely generated by v-for)
  6383. if (isTrue(children._isVList) &&
  6384. isDef(c.tag) &&
  6385. isUndef(c.key) &&
  6386. isDef(nestedIndex)) {
  6387. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  6388. }
  6389. res.push(c);
  6390. }
  6391. }
  6392. }
  6393. return res
  6394. }
  6395. /* */
  6396. function initProvide (vm) {
  6397. var provide = vm.$options.provide;
  6398. if (provide) {
  6399. vm._provided = typeof provide === 'function'
  6400. ? provide.call(vm)
  6401. : provide;
  6402. }
  6403. }
  6404. function initInjections (vm) {
  6405. var result = resolveInject(vm.$options.inject, vm);
  6406. if (result) {
  6407. toggleObserving(false);
  6408. Object.keys(result).forEach(function (key) {
  6409. /* istanbul ignore else */
  6410. if (true) {
  6411. defineReactive$$1(vm, key, result[key], function () {
  6412. warn(
  6413. "Avoid mutating an injected value directly since the changes will be " +
  6414. "overwritten whenever the provided component re-renders. " +
  6415. "injection being mutated: \"" + key + "\"",
  6416. vm
  6417. );
  6418. });
  6419. } else {}
  6420. });
  6421. toggleObserving(true);
  6422. }
  6423. }
  6424. function resolveInject (inject, vm) {
  6425. if (inject) {
  6426. // inject is :any because flow is not smart enough to figure out cached
  6427. var result = Object.create(null);
  6428. var keys = hasSymbol
  6429. ? Reflect.ownKeys(inject)
  6430. : Object.keys(inject);
  6431. for (var i = 0; i < keys.length; i++) {
  6432. var key = keys[i];
  6433. // #6574 in case the inject object is observed...
  6434. if (key === '__ob__') { continue }
  6435. var provideKey = inject[key].from;
  6436. var source = vm;
  6437. while (source) {
  6438. if (source._provided && hasOwn(source._provided, provideKey)) {
  6439. result[key] = source._provided[provideKey];
  6440. break
  6441. }
  6442. source = source.$parent;
  6443. }
  6444. if (!source) {
  6445. if ('default' in inject[key]) {
  6446. var provideDefault = inject[key].default;
  6447. result[key] = typeof provideDefault === 'function'
  6448. ? provideDefault.call(vm)
  6449. : provideDefault;
  6450. } else if (true) {
  6451. warn(("Injection \"" + key + "\" not found"), vm);
  6452. }
  6453. }
  6454. }
  6455. return result
  6456. }
  6457. }
  6458. /* */
  6459. /**
  6460. * Runtime helper for resolving raw children VNodes into a slot object.
  6461. */
  6462. function resolveSlots (
  6463. children,
  6464. context
  6465. ) {
  6466. if (!children || !children.length) {
  6467. return {}
  6468. }
  6469. var slots = {};
  6470. for (var i = 0, l = children.length; i < l; i++) {
  6471. var child = children[i];
  6472. var data = child.data;
  6473. // remove slot attribute if the node is resolved as a Vue slot node
  6474. if (data && data.attrs && data.attrs.slot) {
  6475. delete data.attrs.slot;
  6476. }
  6477. // named slots should only be respected if the vnode was rendered in the
  6478. // same context.
  6479. if ((child.context === context || child.fnContext === context) &&
  6480. data && data.slot != null
  6481. ) {
  6482. var name = data.slot;
  6483. var slot = (slots[name] || (slots[name] = []));
  6484. if (child.tag === 'template') {
  6485. slot.push.apply(slot, child.children || []);
  6486. } else {
  6487. slot.push(child);
  6488. }
  6489. } else {
  6490. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  6491. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  6492. (slots['page'] || (slots['page'] = [])).push(child);
  6493. }else{
  6494. (slots.default || (slots.default = [])).push(child);
  6495. }
  6496. }
  6497. }
  6498. // ignore slots that contains only whitespace
  6499. for (var name$1 in slots) {
  6500. if (slots[name$1].every(isWhitespace)) {
  6501. delete slots[name$1];
  6502. }
  6503. }
  6504. return slots
  6505. }
  6506. function isWhitespace (node) {
  6507. return (node.isComment && !node.asyncFactory) || node.text === ' '
  6508. }
  6509. /* */
  6510. function normalizeScopedSlots (
  6511. slots,
  6512. normalSlots,
  6513. prevSlots
  6514. ) {
  6515. var res;
  6516. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  6517. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  6518. var key = slots && slots.$key;
  6519. if (!slots) {
  6520. res = {};
  6521. } else if (slots._normalized) {
  6522. // fast path 1: child component re-render only, parent did not change
  6523. return slots._normalized
  6524. } else if (
  6525. isStable &&
  6526. prevSlots &&
  6527. prevSlots !== emptyObject &&
  6528. key === prevSlots.$key &&
  6529. !hasNormalSlots &&
  6530. !prevSlots.$hasNormal
  6531. ) {
  6532. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  6533. // only need to normalize once
  6534. return prevSlots
  6535. } else {
  6536. res = {};
  6537. for (var key$1 in slots) {
  6538. if (slots[key$1] && key$1[0] !== '$') {
  6539. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  6540. }
  6541. }
  6542. }
  6543. // expose normal slots on scopedSlots
  6544. for (var key$2 in normalSlots) {
  6545. if (!(key$2 in res)) {
  6546. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  6547. }
  6548. }
  6549. // avoriaz seems to mock a non-extensible $scopedSlots object
  6550. // and when that is passed down this would cause an error
  6551. if (slots && Object.isExtensible(slots)) {
  6552. (slots)._normalized = res;
  6553. }
  6554. def(res, '$stable', isStable);
  6555. def(res, '$key', key);
  6556. def(res, '$hasNormal', hasNormalSlots);
  6557. return res
  6558. }
  6559. function normalizeScopedSlot(normalSlots, key, fn) {
  6560. var normalized = function () {
  6561. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  6562. res = res && typeof res === 'object' && !Array.isArray(res)
  6563. ? [res] // single vnode
  6564. : normalizeChildren(res);
  6565. return res && (
  6566. res.length === 0 ||
  6567. (res.length === 1 && res[0].isComment) // #9658
  6568. ) ? undefined
  6569. : res
  6570. };
  6571. // this is a slot using the new v-slot syntax without scope. although it is
  6572. // compiled as a scoped slot, render fn users would expect it to be present
  6573. // on this.$slots because the usage is semantically a normal slot.
  6574. if (fn.proxy) {
  6575. Object.defineProperty(normalSlots, key, {
  6576. get: normalized,
  6577. enumerable: true,
  6578. configurable: true
  6579. });
  6580. }
  6581. return normalized
  6582. }
  6583. function proxyNormalSlot(slots, key) {
  6584. return function () { return slots[key]; }
  6585. }
  6586. /* */
  6587. /**
  6588. * Runtime helper for rendering v-for lists.
  6589. */
  6590. function renderList (
  6591. val,
  6592. render
  6593. ) {
  6594. var ret, i, l, keys, key;
  6595. if (Array.isArray(val) || typeof val === 'string') {
  6596. ret = new Array(val.length);
  6597. for (i = 0, l = val.length; i < l; i++) {
  6598. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  6599. }
  6600. } else if (typeof val === 'number') {
  6601. ret = new Array(val);
  6602. for (i = 0; i < val; i++) {
  6603. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  6604. }
  6605. } else if (isObject(val)) {
  6606. if (hasSymbol && val[Symbol.iterator]) {
  6607. ret = [];
  6608. var iterator = val[Symbol.iterator]();
  6609. var result = iterator.next();
  6610. while (!result.done) {
  6611. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  6612. result = iterator.next();
  6613. }
  6614. } else {
  6615. keys = Object.keys(val);
  6616. ret = new Array(keys.length);
  6617. for (i = 0, l = keys.length; i < l; i++) {
  6618. key = keys[i];
  6619. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  6620. }
  6621. }
  6622. }
  6623. if (!isDef(ret)) {
  6624. ret = [];
  6625. }
  6626. (ret)._isVList = true;
  6627. return ret
  6628. }
  6629. /* */
  6630. /**
  6631. * Runtime helper for rendering <slot>
  6632. */
  6633. function renderSlot (
  6634. name,
  6635. fallback,
  6636. props,
  6637. bindObject
  6638. ) {
  6639. var scopedSlotFn = this.$scopedSlots[name];
  6640. var nodes;
  6641. if (scopedSlotFn) { // scoped slot
  6642. props = props || {};
  6643. if (bindObject) {
  6644. if ( true && !isObject(bindObject)) {
  6645. warn(
  6646. 'slot v-bind without argument expects an Object',
  6647. this
  6648. );
  6649. }
  6650. props = extend(extend({}, bindObject), props);
  6651. }
  6652. // fixed by xxxxxx app-plus scopedSlot
  6653. nodes = scopedSlotFn(props, this, props._i) || fallback;
  6654. } else {
  6655. nodes = this.$slots[name] || fallback;
  6656. }
  6657. var target = props && props.slot;
  6658. if (target) {
  6659. return this.$createElement('template', { slot: target }, nodes)
  6660. } else {
  6661. return nodes
  6662. }
  6663. }
  6664. /* */
  6665. /**
  6666. * Runtime helper for resolving filters
  6667. */
  6668. function resolveFilter (id) {
  6669. return resolveAsset(this.$options, 'filters', id, true) || identity
  6670. }
  6671. /* */
  6672. function isKeyNotMatch (expect, actual) {
  6673. if (Array.isArray(expect)) {
  6674. return expect.indexOf(actual) === -1
  6675. } else {
  6676. return expect !== actual
  6677. }
  6678. }
  6679. /**
  6680. * Runtime helper for checking keyCodes from config.
  6681. * exposed as Vue.prototype._k
  6682. * passing in eventKeyName as last argument separately for backwards compat
  6683. */
  6684. function checkKeyCodes (
  6685. eventKeyCode,
  6686. key,
  6687. builtInKeyCode,
  6688. eventKeyName,
  6689. builtInKeyName
  6690. ) {
  6691. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  6692. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  6693. return isKeyNotMatch(builtInKeyName, eventKeyName)
  6694. } else if (mappedKeyCode) {
  6695. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  6696. } else if (eventKeyName) {
  6697. return hyphenate(eventKeyName) !== key
  6698. }
  6699. }
  6700. /* */
  6701. /**
  6702. * Runtime helper for merging v-bind="object" into a VNode's data.
  6703. */
  6704. function bindObjectProps (
  6705. data,
  6706. tag,
  6707. value,
  6708. asProp,
  6709. isSync
  6710. ) {
  6711. if (value) {
  6712. if (!isObject(value)) {
  6713. true && warn(
  6714. 'v-bind without argument expects an Object or Array value',
  6715. this
  6716. );
  6717. } else {
  6718. if (Array.isArray(value)) {
  6719. value = toObject(value);
  6720. }
  6721. var hash;
  6722. var loop = function ( key ) {
  6723. if (
  6724. key === 'class' ||
  6725. key === 'style' ||
  6726. isReservedAttribute(key)
  6727. ) {
  6728. hash = data;
  6729. } else {
  6730. var type = data.attrs && data.attrs.type;
  6731. hash = asProp || config.mustUseProp(tag, type, key)
  6732. ? data.domProps || (data.domProps = {})
  6733. : data.attrs || (data.attrs = {});
  6734. }
  6735. var camelizedKey = camelize(key);
  6736. var hyphenatedKey = hyphenate(key);
  6737. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  6738. hash[key] = value[key];
  6739. if (isSync) {
  6740. var on = data.on || (data.on = {});
  6741. on[("update:" + key)] = function ($event) {
  6742. value[key] = $event;
  6743. };
  6744. }
  6745. }
  6746. };
  6747. for (var key in value) loop( key );
  6748. }
  6749. }
  6750. return data
  6751. }
  6752. /* */
  6753. /**
  6754. * Runtime helper for rendering static trees.
  6755. */
  6756. function renderStatic (
  6757. index,
  6758. isInFor
  6759. ) {
  6760. var cached = this._staticTrees || (this._staticTrees = []);
  6761. var tree = cached[index];
  6762. // if has already-rendered static tree and not inside v-for,
  6763. // we can reuse the same tree.
  6764. if (tree && !isInFor) {
  6765. return tree
  6766. }
  6767. // otherwise, render a fresh tree.
  6768. tree = cached[index] = this.$options.staticRenderFns[index].call(
  6769. this._renderProxy,
  6770. null,
  6771. this // for render fns generated for functional component templates
  6772. );
  6773. markStatic(tree, ("__static__" + index), false);
  6774. return tree
  6775. }
  6776. /**
  6777. * Runtime helper for v-once.
  6778. * Effectively it means marking the node as static with a unique key.
  6779. */
  6780. function markOnce (
  6781. tree,
  6782. index,
  6783. key
  6784. ) {
  6785. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  6786. return tree
  6787. }
  6788. function markStatic (
  6789. tree,
  6790. key,
  6791. isOnce
  6792. ) {
  6793. if (Array.isArray(tree)) {
  6794. for (var i = 0; i < tree.length; i++) {
  6795. if (tree[i] && typeof tree[i] !== 'string') {
  6796. markStaticNode(tree[i], (key + "_" + i), isOnce);
  6797. }
  6798. }
  6799. } else {
  6800. markStaticNode(tree, key, isOnce);
  6801. }
  6802. }
  6803. function markStaticNode (node, key, isOnce) {
  6804. node.isStatic = true;
  6805. node.key = key;
  6806. node.isOnce = isOnce;
  6807. }
  6808. /* */
  6809. function bindObjectListeners (data, value) {
  6810. if (value) {
  6811. if (!isPlainObject(value)) {
  6812. true && warn(
  6813. 'v-on without argument expects an Object value',
  6814. this
  6815. );
  6816. } else {
  6817. var on = data.on = data.on ? extend({}, data.on) : {};
  6818. for (var key in value) {
  6819. var existing = on[key];
  6820. var ours = value[key];
  6821. on[key] = existing ? [].concat(existing, ours) : ours;
  6822. }
  6823. }
  6824. }
  6825. return data
  6826. }
  6827. /* */
  6828. function resolveScopedSlots (
  6829. fns, // see flow/vnode
  6830. res,
  6831. // the following are added in 2.6
  6832. hasDynamicKeys,
  6833. contentHashKey
  6834. ) {
  6835. res = res || { $stable: !hasDynamicKeys };
  6836. for (var i = 0; i < fns.length; i++) {
  6837. var slot = fns[i];
  6838. if (Array.isArray(slot)) {
  6839. resolveScopedSlots(slot, res, hasDynamicKeys);
  6840. } else if (slot) {
  6841. // marker for reverse proxying v-slot without scope on this.$slots
  6842. if (slot.proxy) {
  6843. slot.fn.proxy = true;
  6844. }
  6845. res[slot.key] = slot.fn;
  6846. }
  6847. }
  6848. if (contentHashKey) {
  6849. (res).$key = contentHashKey;
  6850. }
  6851. return res
  6852. }
  6853. /* */
  6854. function bindDynamicKeys (baseObj, values) {
  6855. for (var i = 0; i < values.length; i += 2) {
  6856. var key = values[i];
  6857. if (typeof key === 'string' && key) {
  6858. baseObj[values[i]] = values[i + 1];
  6859. } else if ( true && key !== '' && key !== null) {
  6860. // null is a special value for explicitly removing a binding
  6861. warn(
  6862. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  6863. this
  6864. );
  6865. }
  6866. }
  6867. return baseObj
  6868. }
  6869. // helper to dynamically append modifier runtime markers to event names.
  6870. // ensure only append when value is already string, otherwise it will be cast
  6871. // to string and cause the type check to miss.
  6872. function prependModifier (value, symbol) {
  6873. return typeof value === 'string' ? symbol + value : value
  6874. }
  6875. /* */
  6876. function installRenderHelpers (target) {
  6877. target._o = markOnce;
  6878. target._n = toNumber;
  6879. target._s = toString;
  6880. target._l = renderList;
  6881. target._t = renderSlot;
  6882. target._q = looseEqual;
  6883. target._i = looseIndexOf;
  6884. target._m = renderStatic;
  6885. target._f = resolveFilter;
  6886. target._k = checkKeyCodes;
  6887. target._b = bindObjectProps;
  6888. target._v = createTextVNode;
  6889. target._e = createEmptyVNode;
  6890. target._u = resolveScopedSlots;
  6891. target._g = bindObjectListeners;
  6892. target._d = bindDynamicKeys;
  6893. target._p = prependModifier;
  6894. }
  6895. /* */
  6896. function FunctionalRenderContext (
  6897. data,
  6898. props,
  6899. children,
  6900. parent,
  6901. Ctor
  6902. ) {
  6903. var this$1 = this;
  6904. var options = Ctor.options;
  6905. // ensure the createElement function in functional components
  6906. // gets a unique context - this is necessary for correct named slot check
  6907. var contextVm;
  6908. if (hasOwn(parent, '_uid')) {
  6909. contextVm = Object.create(parent);
  6910. // $flow-disable-line
  6911. contextVm._original = parent;
  6912. } else {
  6913. // the context vm passed in is a functional context as well.
  6914. // in this case we want to make sure we are able to get a hold to the
  6915. // real context instance.
  6916. contextVm = parent;
  6917. // $flow-disable-line
  6918. parent = parent._original;
  6919. }
  6920. var isCompiled = isTrue(options._compiled);
  6921. var needNormalization = !isCompiled;
  6922. this.data = data;
  6923. this.props = props;
  6924. this.children = children;
  6925. this.parent = parent;
  6926. this.listeners = data.on || emptyObject;
  6927. this.injections = resolveInject(options.inject, parent);
  6928. this.slots = function () {
  6929. if (!this$1.$slots) {
  6930. normalizeScopedSlots(
  6931. data.scopedSlots,
  6932. this$1.$slots = resolveSlots(children, parent)
  6933. );
  6934. }
  6935. return this$1.$slots
  6936. };
  6937. Object.defineProperty(this, 'scopedSlots', ({
  6938. enumerable: true,
  6939. get: function get () {
  6940. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6941. }
  6942. }));
  6943. // support for compiled functional template
  6944. if (isCompiled) {
  6945. // exposing $options for renderStatic()
  6946. this.$options = options;
  6947. // pre-resolve slots for renderSlot()
  6948. this.$slots = this.slots();
  6949. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6950. }
  6951. if (options._scopeId) {
  6952. this._c = function (a, b, c, d) {
  6953. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6954. if (vnode && !Array.isArray(vnode)) {
  6955. vnode.fnScopeId = options._scopeId;
  6956. vnode.fnContext = parent;
  6957. }
  6958. return vnode
  6959. };
  6960. } else {
  6961. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6962. }
  6963. }
  6964. installRenderHelpers(FunctionalRenderContext.prototype);
  6965. function createFunctionalComponent (
  6966. Ctor,
  6967. propsData,
  6968. data,
  6969. contextVm,
  6970. children
  6971. ) {
  6972. var options = Ctor.options;
  6973. var props = {};
  6974. var propOptions = options.props;
  6975. if (isDef(propOptions)) {
  6976. for (var key in propOptions) {
  6977. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6978. }
  6979. } else {
  6980. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6981. if (isDef(data.props)) { mergeProps(props, data.props); }
  6982. }
  6983. var renderContext = new FunctionalRenderContext(
  6984. data,
  6985. props,
  6986. children,
  6987. contextVm,
  6988. Ctor
  6989. );
  6990. var vnode = options.render.call(null, renderContext._c, renderContext);
  6991. if (vnode instanceof VNode) {
  6992. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6993. } else if (Array.isArray(vnode)) {
  6994. var vnodes = normalizeChildren(vnode) || [];
  6995. var res = new Array(vnodes.length);
  6996. for (var i = 0; i < vnodes.length; i++) {
  6997. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6998. }
  6999. return res
  7000. }
  7001. }
  7002. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  7003. // #7817 clone node before setting fnContext, otherwise if the node is reused
  7004. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  7005. // that should not be matched to match.
  7006. var clone = cloneVNode(vnode);
  7007. clone.fnContext = contextVm;
  7008. clone.fnOptions = options;
  7009. if (true) {
  7010. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  7011. }
  7012. if (data.slot) {
  7013. (clone.data || (clone.data = {})).slot = data.slot;
  7014. }
  7015. return clone
  7016. }
  7017. function mergeProps (to, from) {
  7018. for (var key in from) {
  7019. to[camelize(key)] = from[key];
  7020. }
  7021. }
  7022. /* */
  7023. /* */
  7024. /* */
  7025. /* */
  7026. // inline hooks to be invoked on component VNodes during patch
  7027. var componentVNodeHooks = {
  7028. init: function init (vnode, hydrating) {
  7029. if (
  7030. vnode.componentInstance &&
  7031. !vnode.componentInstance._isDestroyed &&
  7032. vnode.data.keepAlive
  7033. ) {
  7034. // kept-alive components, treat as a patch
  7035. var mountedNode = vnode; // work around flow
  7036. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  7037. } else {
  7038. var child = vnode.componentInstance = createComponentInstanceForVnode(
  7039. vnode,
  7040. activeInstance
  7041. );
  7042. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  7043. }
  7044. },
  7045. prepatch: function prepatch (oldVnode, vnode) {
  7046. var options = vnode.componentOptions;
  7047. var child = vnode.componentInstance = oldVnode.componentInstance;
  7048. updateChildComponent(
  7049. child,
  7050. options.propsData, // updated props
  7051. options.listeners, // updated listeners
  7052. vnode, // new parent vnode
  7053. options.children // new children
  7054. );
  7055. },
  7056. insert: function insert (vnode) {
  7057. var context = vnode.context;
  7058. var componentInstance = vnode.componentInstance;
  7059. if (!componentInstance._isMounted) {
  7060. callHook(componentInstance, 'onServiceCreated');
  7061. callHook(componentInstance, 'onServiceAttached');
  7062. componentInstance._isMounted = true;
  7063. callHook(componentInstance, 'mounted');
  7064. }
  7065. if (vnode.data.keepAlive) {
  7066. if (context._isMounted) {
  7067. // vue-router#1212
  7068. // During updates, a kept-alive component's child components may
  7069. // change, so directly walking the tree here may call activated hooks
  7070. // on incorrect children. Instead we push them into a queue which will
  7071. // be processed after the whole patch process ended.
  7072. queueActivatedComponent(componentInstance);
  7073. } else {
  7074. activateChildComponent(componentInstance, true /* direct */);
  7075. }
  7076. }
  7077. },
  7078. destroy: function destroy (vnode) {
  7079. var componentInstance = vnode.componentInstance;
  7080. if (!componentInstance._isDestroyed) {
  7081. if (!vnode.data.keepAlive) {
  7082. componentInstance.$destroy();
  7083. } else {
  7084. deactivateChildComponent(componentInstance, true /* direct */);
  7085. }
  7086. }
  7087. }
  7088. };
  7089. var hooksToMerge = Object.keys(componentVNodeHooks);
  7090. function createComponent (
  7091. Ctor,
  7092. data,
  7093. context,
  7094. children,
  7095. tag
  7096. ) {
  7097. if (isUndef(Ctor)) {
  7098. return
  7099. }
  7100. var baseCtor = context.$options._base;
  7101. // plain options object: turn it into a constructor
  7102. if (isObject(Ctor)) {
  7103. Ctor = baseCtor.extend(Ctor);
  7104. }
  7105. // if at this stage it's not a constructor or an async component factory,
  7106. // reject.
  7107. if (typeof Ctor !== 'function') {
  7108. if (true) {
  7109. warn(("Invalid Component definition: " + (String(Ctor))), context);
  7110. }
  7111. return
  7112. }
  7113. // async component
  7114. var asyncFactory;
  7115. if (isUndef(Ctor.cid)) {
  7116. asyncFactory = Ctor;
  7117. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  7118. if (Ctor === undefined) {
  7119. // return a placeholder node for async component, which is rendered
  7120. // as a comment node but preserves all the raw information for the node.
  7121. // the information will be used for async server-rendering and hydration.
  7122. return createAsyncPlaceholder(
  7123. asyncFactory,
  7124. data,
  7125. context,
  7126. children,
  7127. tag
  7128. )
  7129. }
  7130. }
  7131. data = data || {};
  7132. // resolve constructor options in case global mixins are applied after
  7133. // component constructor creation
  7134. resolveConstructorOptions(Ctor);
  7135. // transform component v-model data into props & events
  7136. if (isDef(data.model)) {
  7137. transformModel(Ctor.options, data);
  7138. }
  7139. // extract props
  7140. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  7141. // functional component
  7142. if (isTrue(Ctor.options.functional)) {
  7143. return createFunctionalComponent(Ctor, propsData, data, context, children)
  7144. }
  7145. // extract listeners, since these needs to be treated as
  7146. // child component listeners instead of DOM listeners
  7147. var listeners = data.on;
  7148. // replace with listeners with .native modifier
  7149. // so it gets processed during parent component patch.
  7150. data.on = data.nativeOn;
  7151. if (isTrue(Ctor.options.abstract)) {
  7152. // abstract components do not keep anything
  7153. // other than props & listeners & slot
  7154. // work around flow
  7155. var slot = data.slot;
  7156. data = {};
  7157. if (slot) {
  7158. data.slot = slot;
  7159. }
  7160. }
  7161. // install component management hooks onto the placeholder node
  7162. installComponentHooks(data);
  7163. // return a placeholder vnode
  7164. var name = Ctor.options.name || tag;
  7165. var vnode = new VNode(
  7166. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  7167. data, undefined, undefined, undefined, context,
  7168. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  7169. asyncFactory
  7170. );
  7171. return vnode
  7172. }
  7173. function createComponentInstanceForVnode (
  7174. vnode, // we know it's MountedComponentVNode but flow doesn't
  7175. parent // activeInstance in lifecycle state
  7176. ) {
  7177. var options = {
  7178. _isComponent: true,
  7179. _parentVnode: vnode,
  7180. parent: parent
  7181. };
  7182. // check inline-template render functions
  7183. var inlineTemplate = vnode.data.inlineTemplate;
  7184. if (isDef(inlineTemplate)) {
  7185. options.render = inlineTemplate.render;
  7186. options.staticRenderFns = inlineTemplate.staticRenderFns;
  7187. }
  7188. return new vnode.componentOptions.Ctor(options)
  7189. }
  7190. function installComponentHooks (data) {
  7191. var hooks = data.hook || (data.hook = {});
  7192. for (var i = 0; i < hooksToMerge.length; i++) {
  7193. var key = hooksToMerge[i];
  7194. var existing = hooks[key];
  7195. var toMerge = componentVNodeHooks[key];
  7196. if (existing !== toMerge && !(existing && existing._merged)) {
  7197. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  7198. }
  7199. }
  7200. }
  7201. function mergeHook$1 (f1, f2) {
  7202. var merged = function (a, b) {
  7203. // flow complains about extra args which is why we use any
  7204. f1(a, b);
  7205. f2(a, b);
  7206. };
  7207. merged._merged = true;
  7208. return merged
  7209. }
  7210. // transform component v-model info (value and callback) into
  7211. // prop and event handler respectively.
  7212. function transformModel (options, data) {
  7213. var prop = (options.model && options.model.prop) || 'value';
  7214. var event = (options.model && options.model.event) || 'input'
  7215. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  7216. var on = data.on || (data.on = {});
  7217. var existing = on[event];
  7218. var callback = data.model.callback;
  7219. if (isDef(existing)) {
  7220. if (
  7221. Array.isArray(existing)
  7222. ? existing.indexOf(callback) === -1
  7223. : existing !== callback
  7224. ) {
  7225. on[event] = [callback].concat(existing);
  7226. }
  7227. } else {
  7228. on[event] = callback;
  7229. }
  7230. }
  7231. /* */
  7232. var SIMPLE_NORMALIZE = 1;
  7233. var ALWAYS_NORMALIZE = 2;
  7234. // wrapper function for providing a more flexible interface
  7235. // without getting yelled at by flow
  7236. function createElement (
  7237. context,
  7238. tag,
  7239. data,
  7240. children,
  7241. normalizationType,
  7242. alwaysNormalize
  7243. ) {
  7244. if (Array.isArray(data) || isPrimitive(data)) {
  7245. normalizationType = children;
  7246. children = data;
  7247. data = undefined;
  7248. }
  7249. if (isTrue(alwaysNormalize)) {
  7250. normalizationType = ALWAYS_NORMALIZE;
  7251. }
  7252. return _createElement(context, tag, data, children, normalizationType)
  7253. }
  7254. function _createElement (
  7255. context,
  7256. tag,
  7257. data,
  7258. children,
  7259. normalizationType
  7260. ) {
  7261. if (isDef(data) && isDef((data).__ob__)) {
  7262. true && warn(
  7263. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  7264. 'Always create fresh vnode data objects in each render!',
  7265. context
  7266. );
  7267. return createEmptyVNode()
  7268. }
  7269. // object syntax in v-bind
  7270. if (isDef(data) && isDef(data.is)) {
  7271. tag = data.is;
  7272. }
  7273. if (!tag) {
  7274. // in case of component :is set to falsy value
  7275. return createEmptyVNode()
  7276. }
  7277. // warn against non-primitive key
  7278. if ( true &&
  7279. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  7280. ) {
  7281. {
  7282. warn(
  7283. 'Avoid using non-primitive value as key, ' +
  7284. 'use string/number value instead.',
  7285. context
  7286. );
  7287. }
  7288. }
  7289. // support single function children as default scoped slot
  7290. if (Array.isArray(children) &&
  7291. typeof children[0] === 'function'
  7292. ) {
  7293. data = data || {};
  7294. data.scopedSlots = { default: children[0] };
  7295. children.length = 0;
  7296. }
  7297. if (normalizationType === ALWAYS_NORMALIZE) {
  7298. children = normalizeChildren(children);
  7299. } else if (normalizationType === SIMPLE_NORMALIZE) {
  7300. children = simpleNormalizeChildren(children);
  7301. }
  7302. var vnode, ns;
  7303. if (typeof tag === 'string') {
  7304. var Ctor;
  7305. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  7306. if (config.isReservedTag(tag)) {
  7307. // platform built-in elements
  7308. if ( true && isDef(data) && isDef(data.nativeOn)) {
  7309. warn(
  7310. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  7311. context
  7312. );
  7313. }
  7314. vnode = new VNode(
  7315. config.parsePlatformTagName(tag), data, children,
  7316. undefined, undefined, context
  7317. );
  7318. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  7319. // component
  7320. vnode = createComponent(Ctor, data, context, children, tag);
  7321. } else {
  7322. // unknown or unlisted namespaced elements
  7323. // check at runtime because it may get assigned a namespace when its
  7324. // parent normalizes children
  7325. vnode = new VNode(
  7326. tag, data, children,
  7327. undefined, undefined, context
  7328. );
  7329. }
  7330. } else {
  7331. // direct component options / constructor
  7332. vnode = createComponent(tag, data, context, children);
  7333. }
  7334. if (Array.isArray(vnode)) {
  7335. return vnode
  7336. } else if (isDef(vnode)) {
  7337. if (isDef(ns)) { applyNS(vnode, ns); }
  7338. if (isDef(data)) { registerDeepBindings(data); }
  7339. return vnode
  7340. } else {
  7341. return createEmptyVNode()
  7342. }
  7343. }
  7344. function applyNS (vnode, ns, force) {
  7345. vnode.ns = ns;
  7346. if (vnode.tag === 'foreignObject') {
  7347. // use default namespace inside foreignObject
  7348. ns = undefined;
  7349. force = true;
  7350. }
  7351. if (isDef(vnode.children)) {
  7352. for (var i = 0, l = vnode.children.length; i < l; i++) {
  7353. var child = vnode.children[i];
  7354. if (isDef(child.tag) && (
  7355. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  7356. applyNS(child, ns, force);
  7357. }
  7358. }
  7359. }
  7360. }
  7361. // ref #5318
  7362. // necessary to ensure parent re-render when deep bindings like :style and
  7363. // :class are used on slot nodes
  7364. function registerDeepBindings (data) {
  7365. if (isObject(data.style)) {
  7366. traverse(data.style);
  7367. }
  7368. if (isObject(data.class)) {
  7369. traverse(data.class);
  7370. }
  7371. }
  7372. /* */
  7373. function initRender (vm) {
  7374. vm._vnode = null; // the root of the child tree
  7375. vm._staticTrees = null; // v-once cached trees
  7376. var options = vm.$options;
  7377. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  7378. var renderContext = parentVnode && parentVnode.context;
  7379. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  7380. vm.$scopedSlots = emptyObject;
  7381. // bind the createElement fn to this instance
  7382. // so that we get proper render context inside it.
  7383. // args order: tag, data, children, normalizationType, alwaysNormalize
  7384. // internal version is used by render functions compiled from templates
  7385. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  7386. // normalization is always applied for the public version, used in
  7387. // user-written render functions.
  7388. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  7389. // $attrs & $listeners are exposed for easier HOC creation.
  7390. // they need to be reactive so that HOCs using them are always updated
  7391. var parentData = parentVnode && parentVnode.data;
  7392. /* istanbul ignore else */
  7393. if (true) {
  7394. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  7395. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  7396. }, true);
  7397. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  7398. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  7399. }, true);
  7400. } else {}
  7401. }
  7402. var currentRenderingInstance = null;
  7403. function renderMixin (Vue) {
  7404. // install runtime convenience helpers
  7405. installRenderHelpers(Vue.prototype);
  7406. Vue.prototype.$nextTick = function (fn) {
  7407. return nextTick(fn, this)
  7408. };
  7409. Vue.prototype._render = function () {
  7410. var vm = this;
  7411. var ref = vm.$options;
  7412. var render = ref.render;
  7413. var _parentVnode = ref._parentVnode;
  7414. if (_parentVnode) {
  7415. vm.$scopedSlots = normalizeScopedSlots(
  7416. _parentVnode.data.scopedSlots,
  7417. vm.$slots,
  7418. vm.$scopedSlots
  7419. );
  7420. }
  7421. // set parent vnode. this allows render functions to have access
  7422. // to the data on the placeholder node.
  7423. vm.$vnode = _parentVnode;
  7424. // render self
  7425. var vnode;
  7426. try {
  7427. // There's no need to maintain a stack because all render fns are called
  7428. // separately from one another. Nested component's render fns are called
  7429. // when parent component is patched.
  7430. currentRenderingInstance = vm;
  7431. vnode = render.call(vm._renderProxy, vm.$createElement);
  7432. } catch (e) {
  7433. handleError(e, vm, "render");
  7434. // return error render result,
  7435. // or previous vnode to prevent render error causing blank component
  7436. /* istanbul ignore else */
  7437. if ( true && vm.$options.renderError) {
  7438. try {
  7439. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  7440. } catch (e) {
  7441. handleError(e, vm, "renderError");
  7442. vnode = vm._vnode;
  7443. }
  7444. } else {
  7445. vnode = vm._vnode;
  7446. }
  7447. } finally {
  7448. currentRenderingInstance = null;
  7449. }
  7450. // if the returned array contains only a single node, allow it
  7451. if (Array.isArray(vnode) && vnode.length === 1) {
  7452. vnode = vnode[0];
  7453. }
  7454. // return empty vnode in case the render function errored out
  7455. if (!(vnode instanceof VNode)) {
  7456. if ( true && Array.isArray(vnode)) {
  7457. warn(
  7458. 'Multiple root nodes returned from render function. Render function ' +
  7459. 'should return a single root node.',
  7460. vm
  7461. );
  7462. }
  7463. vnode = createEmptyVNode();
  7464. }
  7465. // set parent
  7466. vnode.parent = _parentVnode;
  7467. return vnode
  7468. };
  7469. }
  7470. /* */
  7471. function ensureCtor (comp, base) {
  7472. if (
  7473. comp.__esModule ||
  7474. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  7475. ) {
  7476. comp = comp.default;
  7477. }
  7478. return isObject(comp)
  7479. ? base.extend(comp)
  7480. : comp
  7481. }
  7482. function createAsyncPlaceholder (
  7483. factory,
  7484. data,
  7485. context,
  7486. children,
  7487. tag
  7488. ) {
  7489. var node = createEmptyVNode();
  7490. node.asyncFactory = factory;
  7491. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  7492. return node
  7493. }
  7494. function resolveAsyncComponent (
  7495. factory,
  7496. baseCtor
  7497. ) {
  7498. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  7499. return factory.errorComp
  7500. }
  7501. if (isDef(factory.resolved)) {
  7502. return factory.resolved
  7503. }
  7504. var owner = currentRenderingInstance;
  7505. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  7506. // already pending
  7507. factory.owners.push(owner);
  7508. }
  7509. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  7510. return factory.loadingComp
  7511. }
  7512. if (owner && !isDef(factory.owners)) {
  7513. var owners = factory.owners = [owner];
  7514. var sync = true;
  7515. var timerLoading = null;
  7516. var timerTimeout = null
  7517. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  7518. var forceRender = function (renderCompleted) {
  7519. for (var i = 0, l = owners.length; i < l; i++) {
  7520. (owners[i]).$forceUpdate();
  7521. }
  7522. if (renderCompleted) {
  7523. owners.length = 0;
  7524. if (timerLoading !== null) {
  7525. clearTimeout(timerLoading);
  7526. timerLoading = null;
  7527. }
  7528. if (timerTimeout !== null) {
  7529. clearTimeout(timerTimeout);
  7530. timerTimeout = null;
  7531. }
  7532. }
  7533. };
  7534. var resolve = once(function (res) {
  7535. // cache resolved
  7536. factory.resolved = ensureCtor(res, baseCtor);
  7537. // invoke callbacks only if this is not a synchronous resolve
  7538. // (async resolves are shimmed as synchronous during SSR)
  7539. if (!sync) {
  7540. forceRender(true);
  7541. } else {
  7542. owners.length = 0;
  7543. }
  7544. });
  7545. var reject = once(function (reason) {
  7546. true && warn(
  7547. "Failed to resolve async component: " + (String(factory)) +
  7548. (reason ? ("\nReason: " + reason) : '')
  7549. );
  7550. if (isDef(factory.errorComp)) {
  7551. factory.error = true;
  7552. forceRender(true);
  7553. }
  7554. });
  7555. var res = factory(resolve, reject);
  7556. if (isObject(res)) {
  7557. if (isPromise(res)) {
  7558. // () => Promise
  7559. if (isUndef(factory.resolved)) {
  7560. res.then(resolve, reject);
  7561. }
  7562. } else if (isPromise(res.component)) {
  7563. res.component.then(resolve, reject);
  7564. if (isDef(res.error)) {
  7565. factory.errorComp = ensureCtor(res.error, baseCtor);
  7566. }
  7567. if (isDef(res.loading)) {
  7568. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  7569. if (res.delay === 0) {
  7570. factory.loading = true;
  7571. } else {
  7572. timerLoading = setTimeout(function () {
  7573. timerLoading = null;
  7574. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  7575. factory.loading = true;
  7576. forceRender(false);
  7577. }
  7578. }, res.delay || 200);
  7579. }
  7580. }
  7581. if (isDef(res.timeout)) {
  7582. timerTimeout = setTimeout(function () {
  7583. timerTimeout = null;
  7584. if (isUndef(factory.resolved)) {
  7585. reject(
  7586. true
  7587. ? ("timeout (" + (res.timeout) + "ms)")
  7588. : undefined
  7589. );
  7590. }
  7591. }, res.timeout);
  7592. }
  7593. }
  7594. }
  7595. sync = false;
  7596. // return in case resolved synchronously
  7597. return factory.loading
  7598. ? factory.loadingComp
  7599. : factory.resolved
  7600. }
  7601. }
  7602. /* */
  7603. function isAsyncPlaceholder (node) {
  7604. return node.isComment && node.asyncFactory
  7605. }
  7606. /* */
  7607. function getFirstComponentChild (children) {
  7608. if (Array.isArray(children)) {
  7609. for (var i = 0; i < children.length; i++) {
  7610. var c = children[i];
  7611. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  7612. return c
  7613. }
  7614. }
  7615. }
  7616. }
  7617. /* */
  7618. /* */
  7619. function initEvents (vm) {
  7620. vm._events = Object.create(null);
  7621. vm._hasHookEvent = false;
  7622. // init parent attached events
  7623. var listeners = vm.$options._parentListeners;
  7624. if (listeners) {
  7625. updateComponentListeners(vm, listeners);
  7626. }
  7627. }
  7628. var target;
  7629. function add (event, fn) {
  7630. target.$on(event, fn);
  7631. }
  7632. function remove$1 (event, fn) {
  7633. target.$off(event, fn);
  7634. }
  7635. function createOnceHandler (event, fn) {
  7636. var _target = target;
  7637. return function onceHandler () {
  7638. var res = fn.apply(null, arguments);
  7639. if (res !== null) {
  7640. _target.$off(event, onceHandler);
  7641. }
  7642. }
  7643. }
  7644. function updateComponentListeners (
  7645. vm,
  7646. listeners,
  7647. oldListeners
  7648. ) {
  7649. target = vm;
  7650. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  7651. target = undefined;
  7652. }
  7653. function eventsMixin (Vue) {
  7654. var hookRE = /^hook:/;
  7655. Vue.prototype.$on = function (event, fn) {
  7656. var vm = this;
  7657. if (Array.isArray(event)) {
  7658. for (var i = 0, l = event.length; i < l; i++) {
  7659. vm.$on(event[i], fn);
  7660. }
  7661. } else {
  7662. (vm._events[event] || (vm._events[event] = [])).push(fn);
  7663. // optimize hook:event cost by using a boolean flag marked at registration
  7664. // instead of a hash lookup
  7665. if (hookRE.test(event)) {
  7666. vm._hasHookEvent = true;
  7667. }
  7668. }
  7669. return vm
  7670. };
  7671. Vue.prototype.$once = function (event, fn) {
  7672. var vm = this;
  7673. function on () {
  7674. vm.$off(event, on);
  7675. fn.apply(vm, arguments);
  7676. }
  7677. on.fn = fn;
  7678. vm.$on(event, on);
  7679. return vm
  7680. };
  7681. Vue.prototype.$off = function (event, fn) {
  7682. var vm = this;
  7683. // all
  7684. if (!arguments.length) {
  7685. vm._events = Object.create(null);
  7686. return vm
  7687. }
  7688. // array of events
  7689. if (Array.isArray(event)) {
  7690. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  7691. vm.$off(event[i$1], fn);
  7692. }
  7693. return vm
  7694. }
  7695. // specific event
  7696. var cbs = vm._events[event];
  7697. if (!cbs) {
  7698. return vm
  7699. }
  7700. if (!fn) {
  7701. vm._events[event] = null;
  7702. return vm
  7703. }
  7704. // specific handler
  7705. var cb;
  7706. var i = cbs.length;
  7707. while (i--) {
  7708. cb = cbs[i];
  7709. if (cb === fn || cb.fn === fn) {
  7710. cbs.splice(i, 1);
  7711. break
  7712. }
  7713. }
  7714. return vm
  7715. };
  7716. Vue.prototype.$emit = function (event) {
  7717. var vm = this;
  7718. if (true) {
  7719. var lowerCaseEvent = event.toLowerCase();
  7720. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  7721. tip(
  7722. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  7723. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  7724. "Note that HTML attributes are case-insensitive and you cannot use " +
  7725. "v-on to listen to camelCase events when using in-DOM templates. " +
  7726. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  7727. );
  7728. }
  7729. }
  7730. var cbs = vm._events[event];
  7731. if (cbs) {
  7732. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  7733. var args = toArray(arguments, 1);
  7734. var info = "event handler for \"" + event + "\"";
  7735. for (var i = 0, l = cbs.length; i < l; i++) {
  7736. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  7737. }
  7738. }
  7739. return vm
  7740. };
  7741. }
  7742. /* */
  7743. var activeInstance = null;
  7744. var isUpdatingChildComponent = false;
  7745. function setActiveInstance(vm) {
  7746. var prevActiveInstance = activeInstance;
  7747. activeInstance = vm;
  7748. return function () {
  7749. activeInstance = prevActiveInstance;
  7750. }
  7751. }
  7752. function initLifecycle (vm) {
  7753. var options = vm.$options;
  7754. // locate first non-abstract parent
  7755. var parent = options.parent;
  7756. if (parent && !options.abstract) {
  7757. while (parent.$options.abstract && parent.$parent) {
  7758. parent = parent.$parent;
  7759. }
  7760. parent.$children.push(vm);
  7761. }
  7762. vm.$parent = parent;
  7763. vm.$root = parent ? parent.$root : vm;
  7764. vm.$children = [];
  7765. vm.$refs = {};
  7766. vm._watcher = null;
  7767. vm._inactive = null;
  7768. vm._directInactive = false;
  7769. vm._isMounted = false;
  7770. vm._isDestroyed = false;
  7771. vm._isBeingDestroyed = false;
  7772. }
  7773. function lifecycleMixin (Vue) {
  7774. Vue.prototype._update = function (vnode, hydrating) {
  7775. var vm = this;
  7776. var prevEl = vm.$el;
  7777. var prevVnode = vm._vnode;
  7778. var restoreActiveInstance = setActiveInstance(vm);
  7779. vm._vnode = vnode;
  7780. // Vue.prototype.__patch__ is injected in entry points
  7781. // based on the rendering backend used.
  7782. if (!prevVnode) {
  7783. // initial render
  7784. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  7785. } else {
  7786. // updates
  7787. vm.$el = vm.__patch__(prevVnode, vnode);
  7788. }
  7789. restoreActiveInstance();
  7790. // update __vue__ reference
  7791. if (prevEl) {
  7792. prevEl.__vue__ = null;
  7793. }
  7794. if (vm.$el) {
  7795. vm.$el.__vue__ = vm;
  7796. }
  7797. // if parent is an HOC, update its $el as well
  7798. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  7799. vm.$parent.$el = vm.$el;
  7800. }
  7801. // updated hook is called by the scheduler to ensure that children are
  7802. // updated in a parent's updated hook.
  7803. };
  7804. Vue.prototype.$forceUpdate = function () {
  7805. var vm = this;
  7806. if (vm._watcher) {
  7807. vm._watcher.update();
  7808. }
  7809. };
  7810. Vue.prototype.$destroy = function () {
  7811. var vm = this;
  7812. if (vm._isBeingDestroyed) {
  7813. return
  7814. }
  7815. callHook(vm, 'beforeDestroy');
  7816. vm._isBeingDestroyed = true;
  7817. // remove self from parent
  7818. var parent = vm.$parent;
  7819. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  7820. remove(parent.$children, vm);
  7821. }
  7822. // teardown watchers
  7823. if (vm._watcher) {
  7824. vm._watcher.teardown();
  7825. }
  7826. var i = vm._watchers.length;
  7827. while (i--) {
  7828. vm._watchers[i].teardown();
  7829. }
  7830. // remove reference from data ob
  7831. // frozen object may not have observer.
  7832. if (vm._data.__ob__) {
  7833. vm._data.__ob__.vmCount--;
  7834. }
  7835. // call the last hook...
  7836. vm._isDestroyed = true;
  7837. // invoke destroy hooks on current rendered tree
  7838. vm.__patch__(vm._vnode, null);
  7839. // fire destroyed hook
  7840. callHook(vm, 'destroyed');
  7841. // turn off all instance listeners.
  7842. vm.$off();
  7843. // remove __vue__ reference
  7844. if (vm.$el) {
  7845. vm.$el.__vue__ = null;
  7846. }
  7847. // release circular reference (#6759)
  7848. if (vm.$vnode) {
  7849. vm.$vnode.parent = null;
  7850. }
  7851. };
  7852. }
  7853. function updateChildComponent (
  7854. vm,
  7855. propsData,
  7856. listeners,
  7857. parentVnode,
  7858. renderChildren
  7859. ) {
  7860. if (true) {
  7861. isUpdatingChildComponent = true;
  7862. }
  7863. // determine whether component has slot children
  7864. // we need to do this before overwriting $options._renderChildren.
  7865. // check if there are dynamic scopedSlots (hand-written or compiled but with
  7866. // dynamic slot names). Static scoped slots compiled from template has the
  7867. // "$stable" marker.
  7868. var newScopedSlots = parentVnode.data.scopedSlots;
  7869. var oldScopedSlots = vm.$scopedSlots;
  7870. var hasDynamicScopedSlot = !!(
  7871. (newScopedSlots && !newScopedSlots.$stable) ||
  7872. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  7873. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  7874. );
  7875. // Any static slot children from the parent may have changed during parent's
  7876. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  7877. // update is necessary to ensure correctness.
  7878. var needsForceUpdate = !!(
  7879. renderChildren || // has new static slots
  7880. vm.$options._renderChildren || // has old static slots
  7881. hasDynamicScopedSlot
  7882. );
  7883. vm.$options._parentVnode = parentVnode;
  7884. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7885. if (vm._vnode) { // update child tree's parent
  7886. vm._vnode.parent = parentVnode;
  7887. }
  7888. vm.$options._renderChildren = renderChildren;
  7889. // update $attrs and $listeners hash
  7890. // these are also reactive so they may trigger child update if the child
  7891. // used them during render
  7892. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7893. vm.$listeners = listeners || emptyObject;
  7894. // update props
  7895. if (propsData && vm.$options.props) {
  7896. toggleObserving(false);
  7897. var props = vm._props;
  7898. var propKeys = vm.$options._propKeys || [];
  7899. for (var i = 0; i < propKeys.length; i++) {
  7900. var key = propKeys[i];
  7901. var propOptions = vm.$options.props; // wtf flow?
  7902. props[key] = validateProp(key, propOptions, propsData, vm);
  7903. }
  7904. toggleObserving(true);
  7905. // keep a copy of raw propsData
  7906. vm.$options.propsData = propsData;
  7907. }
  7908. // fixed by xxxxxx update properties(mp runtime)
  7909. vm._$updateProperties && vm._$updateProperties(vm);
  7910. // update listeners
  7911. listeners = listeners || emptyObject;
  7912. var oldListeners = vm.$options._parentListeners;
  7913. vm.$options._parentListeners = listeners;
  7914. updateComponentListeners(vm, listeners, oldListeners);
  7915. // resolve slots + force update if has children
  7916. if (needsForceUpdate) {
  7917. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7918. vm.$forceUpdate();
  7919. }
  7920. if (true) {
  7921. isUpdatingChildComponent = false;
  7922. }
  7923. }
  7924. function isInInactiveTree (vm) {
  7925. while (vm && (vm = vm.$parent)) {
  7926. if (vm._inactive) { return true }
  7927. }
  7928. return false
  7929. }
  7930. function activateChildComponent (vm, direct) {
  7931. if (direct) {
  7932. vm._directInactive = false;
  7933. if (isInInactiveTree(vm)) {
  7934. return
  7935. }
  7936. } else if (vm._directInactive) {
  7937. return
  7938. }
  7939. if (vm._inactive || vm._inactive === null) {
  7940. vm._inactive = false;
  7941. for (var i = 0; i < vm.$children.length; i++) {
  7942. activateChildComponent(vm.$children[i]);
  7943. }
  7944. callHook(vm, 'activated');
  7945. }
  7946. }
  7947. function deactivateChildComponent (vm, direct) {
  7948. if (direct) {
  7949. vm._directInactive = true;
  7950. if (isInInactiveTree(vm)) {
  7951. return
  7952. }
  7953. }
  7954. if (!vm._inactive) {
  7955. vm._inactive = true;
  7956. for (var i = 0; i < vm.$children.length; i++) {
  7957. deactivateChildComponent(vm.$children[i]);
  7958. }
  7959. callHook(vm, 'deactivated');
  7960. }
  7961. }
  7962. function callHook (vm, hook) {
  7963. // #7573 disable dep collection when invoking lifecycle hooks
  7964. pushTarget();
  7965. var handlers = vm.$options[hook];
  7966. var info = hook + " hook";
  7967. if (handlers) {
  7968. for (var i = 0, j = handlers.length; i < j; i++) {
  7969. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7970. }
  7971. }
  7972. if (vm._hasHookEvent) {
  7973. vm.$emit('hook:' + hook);
  7974. }
  7975. popTarget();
  7976. }
  7977. /* */
  7978. var MAX_UPDATE_COUNT = 100;
  7979. var queue = [];
  7980. var activatedChildren = [];
  7981. var has = {};
  7982. var circular = {};
  7983. var waiting = false;
  7984. var flushing = false;
  7985. var index = 0;
  7986. /**
  7987. * Reset the scheduler's state.
  7988. */
  7989. function resetSchedulerState () {
  7990. index = queue.length = activatedChildren.length = 0;
  7991. has = {};
  7992. if (true) {
  7993. circular = {};
  7994. }
  7995. waiting = flushing = false;
  7996. }
  7997. // Async edge case #6566 requires saving the timestamp when event listeners are
  7998. // attached. However, calling performance.now() has a perf overhead especially
  7999. // if the page has thousands of event listeners. Instead, we take a timestamp
  8000. // every time the scheduler flushes and use that for all event listeners
  8001. // attached during that flush.
  8002. var currentFlushTimestamp = 0;
  8003. // Async edge case fix requires storing an event listener's attach timestamp.
  8004. var getNow = Date.now;
  8005. // Determine what event timestamp the browser is using. Annoyingly, the
  8006. // timestamp can either be hi-res (relative to page load) or low-res
  8007. // (relative to UNIX epoch), so in order to compare time we have to use the
  8008. // same timestamp type when saving the flush timestamp.
  8009. // All IE versions use low-res event timestamps, and have problematic clock
  8010. // implementations (#9632)
  8011. if (inBrowser && !isIE) {
  8012. var performance = window.performance;
  8013. if (
  8014. performance &&
  8015. typeof performance.now === 'function' &&
  8016. getNow() > document.createEvent('Event').timeStamp
  8017. ) {
  8018. // if the event timestamp, although evaluated AFTER the Date.now(), is
  8019. // smaller than it, it means the event is using a hi-res timestamp,
  8020. // and we need to use the hi-res version for event listener timestamps as
  8021. // well.
  8022. getNow = function () { return performance.now(); };
  8023. }
  8024. }
  8025. /**
  8026. * Flush both queues and run the watchers.
  8027. */
  8028. function flushSchedulerQueue () {
  8029. currentFlushTimestamp = getNow();
  8030. flushing = true;
  8031. var watcher, id;
  8032. // Sort queue before flush.
  8033. // This ensures that:
  8034. // 1. Components are updated from parent to child. (because parent is always
  8035. // created before the child)
  8036. // 2. A component's user watchers are run before its render watcher (because
  8037. // user watchers are created before the render watcher)
  8038. // 3. If a component is destroyed during a parent component's watcher run,
  8039. // its watchers can be skipped.
  8040. queue.sort(function (a, b) { return a.id - b.id; });
  8041. // do not cache length because more watchers might be pushed
  8042. // as we run existing watchers
  8043. for (index = 0; index < queue.length; index++) {
  8044. watcher = queue[index];
  8045. if (watcher.before) {
  8046. watcher.before();
  8047. }
  8048. id = watcher.id;
  8049. has[id] = null;
  8050. watcher.run();
  8051. // in dev build, check and stop circular updates.
  8052. if ( true && has[id] != null) {
  8053. circular[id] = (circular[id] || 0) + 1;
  8054. if (circular[id] > MAX_UPDATE_COUNT) {
  8055. warn(
  8056. 'You may have an infinite update loop ' + (
  8057. watcher.user
  8058. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  8059. : "in a component render function."
  8060. ),
  8061. watcher.vm
  8062. );
  8063. break
  8064. }
  8065. }
  8066. }
  8067. // keep copies of post queues before resetting state
  8068. var activatedQueue = activatedChildren.slice();
  8069. var updatedQueue = queue.slice();
  8070. resetSchedulerState();
  8071. // call component updated and activated hooks
  8072. callActivatedHooks(activatedQueue);
  8073. callUpdatedHooks(updatedQueue);
  8074. // devtool hook
  8075. /* istanbul ignore if */
  8076. if (devtools && config.devtools) {
  8077. devtools.emit('flush');
  8078. }
  8079. }
  8080. function callUpdatedHooks (queue) {
  8081. var i = queue.length;
  8082. while (i--) {
  8083. var watcher = queue[i];
  8084. var vm = watcher.vm;
  8085. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  8086. callHook(vm, 'updated');
  8087. }
  8088. }
  8089. }
  8090. /**
  8091. * Queue a kept-alive component that was activated during patch.
  8092. * The queue will be processed after the entire tree has been patched.
  8093. */
  8094. function queueActivatedComponent (vm) {
  8095. // setting _inactive to false here so that a render function can
  8096. // rely on checking whether it's in an inactive tree (e.g. router-view)
  8097. vm._inactive = false;
  8098. activatedChildren.push(vm);
  8099. }
  8100. function callActivatedHooks (queue) {
  8101. for (var i = 0; i < queue.length; i++) {
  8102. queue[i]._inactive = true;
  8103. activateChildComponent(queue[i], true /* true */);
  8104. }
  8105. }
  8106. /**
  8107. * Push a watcher into the watcher queue.
  8108. * Jobs with duplicate IDs will be skipped unless it's
  8109. * pushed when the queue is being flushed.
  8110. */
  8111. function queueWatcher (watcher) {
  8112. var id = watcher.id;
  8113. if (has[id] == null) {
  8114. has[id] = true;
  8115. if (!flushing) {
  8116. queue.push(watcher);
  8117. } else {
  8118. // if already flushing, splice the watcher based on its id
  8119. // if already past its id, it will be run next immediately.
  8120. var i = queue.length - 1;
  8121. while (i > index && queue[i].id > watcher.id) {
  8122. i--;
  8123. }
  8124. queue.splice(i + 1, 0, watcher);
  8125. }
  8126. // queue the flush
  8127. if (!waiting) {
  8128. waiting = true;
  8129. if ( true && !config.async) {
  8130. flushSchedulerQueue();
  8131. return
  8132. }
  8133. nextTick(flushSchedulerQueue);
  8134. }
  8135. }
  8136. }
  8137. /* */
  8138. var uid$2 = 0;
  8139. /**
  8140. * A watcher parses an expression, collects dependencies,
  8141. * and fires callback when the expression value changes.
  8142. * This is used for both the $watch() api and directives.
  8143. */
  8144. var Watcher = function Watcher (
  8145. vm,
  8146. expOrFn,
  8147. cb,
  8148. options,
  8149. isRenderWatcher
  8150. ) {
  8151. this.vm = vm;
  8152. if (isRenderWatcher) {
  8153. vm._watcher = this;
  8154. }
  8155. vm._watchers.push(this);
  8156. // options
  8157. if (options) {
  8158. this.deep = !!options.deep;
  8159. this.user = !!options.user;
  8160. this.lazy = !!options.lazy;
  8161. this.sync = !!options.sync;
  8162. this.before = options.before;
  8163. } else {
  8164. this.deep = this.user = this.lazy = this.sync = false;
  8165. }
  8166. this.cb = cb;
  8167. this.id = ++uid$2; // uid for batching
  8168. this.active = true;
  8169. this.dirty = this.lazy; // for lazy watchers
  8170. this.deps = [];
  8171. this.newDeps = [];
  8172. this.depIds = new _Set();
  8173. this.newDepIds = new _Set();
  8174. this.expression = true
  8175. ? expOrFn.toString()
  8176. : undefined;
  8177. // parse expression for getter
  8178. if (typeof expOrFn === 'function') {
  8179. this.getter = expOrFn;
  8180. } else {
  8181. this.getter = parsePath(expOrFn);
  8182. if (!this.getter) {
  8183. this.getter = noop;
  8184. true && warn(
  8185. "Failed watching path: \"" + expOrFn + "\" " +
  8186. 'Watcher only accepts simple dot-delimited paths. ' +
  8187. 'For full control, use a function instead.',
  8188. vm
  8189. );
  8190. }
  8191. }
  8192. this.value = this.lazy
  8193. ? undefined
  8194. : this.get();
  8195. };
  8196. /**
  8197. * Evaluate the getter, and re-collect dependencies.
  8198. */
  8199. Watcher.prototype.get = function get () {
  8200. pushTarget(this);
  8201. var value;
  8202. var vm = this.vm;
  8203. try {
  8204. value = this.getter.call(vm, vm);
  8205. } catch (e) {
  8206. if (this.user) {
  8207. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  8208. } else {
  8209. throw e
  8210. }
  8211. } finally {
  8212. // "touch" every property so they are all tracked as
  8213. // dependencies for deep watching
  8214. if (this.deep) {
  8215. traverse(value);
  8216. }
  8217. popTarget();
  8218. this.cleanupDeps();
  8219. }
  8220. return value
  8221. };
  8222. /**
  8223. * Add a dependency to this directive.
  8224. */
  8225. Watcher.prototype.addDep = function addDep (dep) {
  8226. var id = dep.id;
  8227. if (!this.newDepIds.has(id)) {
  8228. this.newDepIds.add(id);
  8229. this.newDeps.push(dep);
  8230. if (!this.depIds.has(id)) {
  8231. dep.addSub(this);
  8232. }
  8233. }
  8234. };
  8235. /**
  8236. * Clean up for dependency collection.
  8237. */
  8238. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  8239. var i = this.deps.length;
  8240. while (i--) {
  8241. var dep = this.deps[i];
  8242. if (!this.newDepIds.has(dep.id)) {
  8243. dep.removeSub(this);
  8244. }
  8245. }
  8246. var tmp = this.depIds;
  8247. this.depIds = this.newDepIds;
  8248. this.newDepIds = tmp;
  8249. this.newDepIds.clear();
  8250. tmp = this.deps;
  8251. this.deps = this.newDeps;
  8252. this.newDeps = tmp;
  8253. this.newDeps.length = 0;
  8254. };
  8255. /**
  8256. * Subscriber interface.
  8257. * Will be called when a dependency changes.
  8258. */
  8259. Watcher.prototype.update = function update () {
  8260. /* istanbul ignore else */
  8261. if (this.lazy) {
  8262. this.dirty = true;
  8263. } else if (this.sync) {
  8264. this.run();
  8265. } else {
  8266. queueWatcher(this);
  8267. }
  8268. };
  8269. /**
  8270. * Scheduler job interface.
  8271. * Will be called by the scheduler.
  8272. */
  8273. Watcher.prototype.run = function run () {
  8274. if (this.active) {
  8275. var value = this.get();
  8276. if (
  8277. value !== this.value ||
  8278. // Deep watchers and watchers on Object/Arrays should fire even
  8279. // when the value is the same, because the value may
  8280. // have mutated.
  8281. isObject(value) ||
  8282. this.deep
  8283. ) {
  8284. // set new value
  8285. var oldValue = this.value;
  8286. this.value = value;
  8287. if (this.user) {
  8288. try {
  8289. this.cb.call(this.vm, value, oldValue);
  8290. } catch (e) {
  8291. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  8292. }
  8293. } else {
  8294. this.cb.call(this.vm, value, oldValue);
  8295. }
  8296. }
  8297. }
  8298. };
  8299. /**
  8300. * Evaluate the value of the watcher.
  8301. * This only gets called for lazy watchers.
  8302. */
  8303. Watcher.prototype.evaluate = function evaluate () {
  8304. this.value = this.get();
  8305. this.dirty = false;
  8306. };
  8307. /**
  8308. * Depend on all deps collected by this watcher.
  8309. */
  8310. Watcher.prototype.depend = function depend () {
  8311. var i = this.deps.length;
  8312. while (i--) {
  8313. this.deps[i].depend();
  8314. }
  8315. };
  8316. /**
  8317. * Remove self from all dependencies' subscriber list.
  8318. */
  8319. Watcher.prototype.teardown = function teardown () {
  8320. if (this.active) {
  8321. // remove self from vm's watcher list
  8322. // this is a somewhat expensive operation so we skip it
  8323. // if the vm is being destroyed.
  8324. if (!this.vm._isBeingDestroyed) {
  8325. remove(this.vm._watchers, this);
  8326. }
  8327. var i = this.deps.length;
  8328. while (i--) {
  8329. this.deps[i].removeSub(this);
  8330. }
  8331. this.active = false;
  8332. }
  8333. };
  8334. /* */
  8335. var sharedPropertyDefinition = {
  8336. enumerable: true,
  8337. configurable: true,
  8338. get: noop,
  8339. set: noop
  8340. };
  8341. function proxy (target, sourceKey, key) {
  8342. sharedPropertyDefinition.get = function proxyGetter () {
  8343. return this[sourceKey][key]
  8344. };
  8345. sharedPropertyDefinition.set = function proxySetter (val) {
  8346. this[sourceKey][key] = val;
  8347. };
  8348. Object.defineProperty(target, key, sharedPropertyDefinition);
  8349. }
  8350. function initState (vm) {
  8351. vm._watchers = [];
  8352. var opts = vm.$options;
  8353. if (opts.props) { initProps(vm, opts.props); }
  8354. if (opts.methods) { initMethods(vm, opts.methods); }
  8355. if (opts.data) {
  8356. initData(vm);
  8357. } else {
  8358. observe(vm._data = {}, true /* asRootData */);
  8359. }
  8360. if (opts.computed) { initComputed(vm, opts.computed); }
  8361. if (opts.watch && opts.watch !== nativeWatch) {
  8362. initWatch(vm, opts.watch);
  8363. }
  8364. }
  8365. function initProps (vm, propsOptions) {
  8366. var propsData = vm.$options.propsData || {};
  8367. var props = vm._props = {};
  8368. // cache prop keys so that future props updates can iterate using Array
  8369. // instead of dynamic object key enumeration.
  8370. var keys = vm.$options._propKeys = [];
  8371. var isRoot = !vm.$parent;
  8372. // root instance props should be converted
  8373. if (!isRoot) {
  8374. toggleObserving(false);
  8375. }
  8376. var loop = function ( key ) {
  8377. keys.push(key);
  8378. var value = validateProp(key, propsOptions, propsData, vm);
  8379. /* istanbul ignore else */
  8380. if (true) {
  8381. var hyphenatedKey = hyphenate(key);
  8382. if (isReservedAttribute(hyphenatedKey) ||
  8383. config.isReservedAttr(hyphenatedKey)) {
  8384. warn(
  8385. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  8386. vm
  8387. );
  8388. }
  8389. defineReactive$$1(props, key, value, function () {
  8390. if (!isRoot && !isUpdatingChildComponent) {
  8391. {
  8392. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  8393. return
  8394. }
  8395. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  8396. if(
  8397. key === 'value' &&
  8398. Array.isArray(vm.$options.behaviors) &&
  8399. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8400. ){
  8401. return
  8402. }
  8403. if(vm._getFormData){
  8404. return
  8405. }
  8406. var $parent = vm.$parent;
  8407. while($parent){
  8408. if($parent.__next_tick_pending){
  8409. return
  8410. }
  8411. $parent = $parent.$parent;
  8412. }
  8413. }
  8414. warn(
  8415. "Avoid mutating a prop directly since the value will be " +
  8416. "overwritten whenever the parent component re-renders. " +
  8417. "Instead, use a data or computed property based on the prop's " +
  8418. "value. Prop being mutated: \"" + key + "\"",
  8419. vm
  8420. );
  8421. }
  8422. });
  8423. } else {}
  8424. // static props are already proxied on the component's prototype
  8425. // during Vue.extend(). We only need to proxy props defined at
  8426. // instantiation here.
  8427. if (!(key in vm)) {
  8428. proxy(vm, "_props", key);
  8429. }
  8430. };
  8431. for (var key in propsOptions) loop( key );
  8432. toggleObserving(true);
  8433. }
  8434. function initData (vm) {
  8435. var data = vm.$options.data;
  8436. data = vm._data = typeof data === 'function'
  8437. ? getData(data, vm)
  8438. : data || {};
  8439. if (!isPlainObject(data)) {
  8440. data = {};
  8441. true && warn(
  8442. 'data functions should return an object:\n' +
  8443. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  8444. vm
  8445. );
  8446. }
  8447. // proxy data on instance
  8448. var keys = Object.keys(data);
  8449. var props = vm.$options.props;
  8450. var methods = vm.$options.methods;
  8451. var i = keys.length;
  8452. while (i--) {
  8453. var key = keys[i];
  8454. if (true) {
  8455. if (methods && hasOwn(methods, key)) {
  8456. warn(
  8457. ("Method \"" + key + "\" has already been defined as a data property."),
  8458. vm
  8459. );
  8460. }
  8461. }
  8462. if (props && hasOwn(props, key)) {
  8463. true && warn(
  8464. "The data property \"" + key + "\" is already declared as a prop. " +
  8465. "Use prop default value instead.",
  8466. vm
  8467. );
  8468. } else if (!isReserved(key)) {
  8469. proxy(vm, "_data", key);
  8470. }
  8471. }
  8472. // observe data
  8473. observe(data, true /* asRootData */);
  8474. }
  8475. function getData (data, vm) {
  8476. // #7573 disable dep collection when invoking data getters
  8477. pushTarget();
  8478. try {
  8479. return data.call(vm, vm)
  8480. } catch (e) {
  8481. handleError(e, vm, "data()");
  8482. return {}
  8483. } finally {
  8484. popTarget();
  8485. }
  8486. }
  8487. var computedWatcherOptions = { lazy: true };
  8488. function initComputed (vm, computed) {
  8489. // $flow-disable-line
  8490. var watchers = vm._computedWatchers = Object.create(null);
  8491. // computed properties are just getters during SSR
  8492. var isSSR = isServerRendering();
  8493. for (var key in computed) {
  8494. var userDef = computed[key];
  8495. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  8496. if ( true && getter == null) {
  8497. warn(
  8498. ("Getter is missing for computed property \"" + key + "\"."),
  8499. vm
  8500. );
  8501. }
  8502. if (!isSSR) {
  8503. // create internal watcher for the computed property.
  8504. watchers[key] = new Watcher(
  8505. vm,
  8506. getter || noop,
  8507. noop,
  8508. computedWatcherOptions
  8509. );
  8510. }
  8511. // component-defined computed properties are already defined on the
  8512. // component prototype. We only need to define computed properties defined
  8513. // at instantiation here.
  8514. if (!(key in vm)) {
  8515. defineComputed(vm, key, userDef);
  8516. } else if (true) {
  8517. if (key in vm.$data) {
  8518. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  8519. } else if (vm.$options.props && key in vm.$options.props) {
  8520. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  8521. }
  8522. }
  8523. }
  8524. }
  8525. function defineComputed (
  8526. target,
  8527. key,
  8528. userDef
  8529. ) {
  8530. var shouldCache = !isServerRendering();
  8531. if (typeof userDef === 'function') {
  8532. sharedPropertyDefinition.get = shouldCache
  8533. ? createComputedGetter(key)
  8534. : createGetterInvoker(userDef);
  8535. sharedPropertyDefinition.set = noop;
  8536. } else {
  8537. sharedPropertyDefinition.get = userDef.get
  8538. ? shouldCache && userDef.cache !== false
  8539. ? createComputedGetter(key)
  8540. : createGetterInvoker(userDef.get)
  8541. : noop;
  8542. sharedPropertyDefinition.set = userDef.set || noop;
  8543. }
  8544. if ( true &&
  8545. sharedPropertyDefinition.set === noop) {
  8546. sharedPropertyDefinition.set = function () {
  8547. warn(
  8548. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  8549. this
  8550. );
  8551. };
  8552. }
  8553. Object.defineProperty(target, key, sharedPropertyDefinition);
  8554. }
  8555. function createComputedGetter (key) {
  8556. return function computedGetter () {
  8557. var watcher = this._computedWatchers && this._computedWatchers[key];
  8558. if (watcher) {
  8559. if (watcher.dirty) {
  8560. watcher.evaluate();
  8561. }
  8562. if (Dep.SharedObject.target) {// fixed by xxxxxx
  8563. watcher.depend();
  8564. }
  8565. return watcher.value
  8566. }
  8567. }
  8568. }
  8569. function createGetterInvoker(fn) {
  8570. return function computedGetter () {
  8571. return fn.call(this, this)
  8572. }
  8573. }
  8574. function initMethods (vm, methods) {
  8575. var props = vm.$options.props;
  8576. for (var key in methods) {
  8577. if (true) {
  8578. if (typeof methods[key] !== 'function') {
  8579. warn(
  8580. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  8581. "Did you reference the function correctly?",
  8582. vm
  8583. );
  8584. }
  8585. if (props && hasOwn(props, key)) {
  8586. warn(
  8587. ("Method \"" + key + "\" has already been defined as a prop."),
  8588. vm
  8589. );
  8590. }
  8591. if ((key in vm) && isReserved(key)) {
  8592. warn(
  8593. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  8594. "Avoid defining component methods that start with _ or $."
  8595. );
  8596. }
  8597. }
  8598. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  8599. }
  8600. }
  8601. function initWatch (vm, watch) {
  8602. for (var key in watch) {
  8603. var handler = watch[key];
  8604. if (Array.isArray(handler)) {
  8605. for (var i = 0; i < handler.length; i++) {
  8606. createWatcher(vm, key, handler[i]);
  8607. }
  8608. } else {
  8609. createWatcher(vm, key, handler);
  8610. }
  8611. }
  8612. }
  8613. function createWatcher (
  8614. vm,
  8615. expOrFn,
  8616. handler,
  8617. options
  8618. ) {
  8619. if (isPlainObject(handler)) {
  8620. options = handler;
  8621. handler = handler.handler;
  8622. }
  8623. if (typeof handler === 'string') {
  8624. handler = vm[handler];
  8625. }
  8626. return vm.$watch(expOrFn, handler, options)
  8627. }
  8628. function stateMixin (Vue) {
  8629. // flow somehow has problems with directly declared definition object
  8630. // when using Object.defineProperty, so we have to procedurally build up
  8631. // the object here.
  8632. var dataDef = {};
  8633. dataDef.get = function () { return this._data };
  8634. var propsDef = {};
  8635. propsDef.get = function () { return this._props };
  8636. if (true) {
  8637. dataDef.set = function () {
  8638. warn(
  8639. 'Avoid replacing instance root $data. ' +
  8640. 'Use nested data properties instead.',
  8641. this
  8642. );
  8643. };
  8644. propsDef.set = function () {
  8645. warn("$props is readonly.", this);
  8646. };
  8647. }
  8648. Object.defineProperty(Vue.prototype, '$data', dataDef);
  8649. Object.defineProperty(Vue.prototype, '$props', propsDef);
  8650. Vue.prototype.$set = set;
  8651. Vue.prototype.$delete = del;
  8652. Vue.prototype.$watch = function (
  8653. expOrFn,
  8654. cb,
  8655. options
  8656. ) {
  8657. var vm = this;
  8658. if (isPlainObject(cb)) {
  8659. return createWatcher(vm, expOrFn, cb, options)
  8660. }
  8661. options = options || {};
  8662. options.user = true;
  8663. var watcher = new Watcher(vm, expOrFn, cb, options);
  8664. if (options.immediate) {
  8665. try {
  8666. cb.call(vm, watcher.value);
  8667. } catch (error) {
  8668. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  8669. }
  8670. }
  8671. return function unwatchFn () {
  8672. watcher.teardown();
  8673. }
  8674. };
  8675. }
  8676. /* */
  8677. var uid$3 = 0;
  8678. function initMixin (Vue) {
  8679. Vue.prototype._init = function (options) {
  8680. var vm = this;
  8681. // a uid
  8682. vm._uid = uid$3++;
  8683. var startTag, endTag;
  8684. /* istanbul ignore if */
  8685. if ( true && config.performance && mark) {
  8686. startTag = "vue-perf-start:" + (vm._uid);
  8687. endTag = "vue-perf-end:" + (vm._uid);
  8688. mark(startTag);
  8689. }
  8690. // a flag to avoid this being observed
  8691. vm._isVue = true;
  8692. // merge options
  8693. if (options && options._isComponent) {
  8694. // optimize internal component instantiation
  8695. // since dynamic options merging is pretty slow, and none of the
  8696. // internal component options needs special treatment.
  8697. initInternalComponent(vm, options);
  8698. } else {
  8699. vm.$options = mergeOptions(
  8700. resolveConstructorOptions(vm.constructor),
  8701. options || {},
  8702. vm
  8703. );
  8704. }
  8705. /* istanbul ignore else */
  8706. if (true) {
  8707. initProxy(vm);
  8708. } else {}
  8709. // expose real self
  8710. vm._self = vm;
  8711. initLifecycle(vm);
  8712. initEvents(vm);
  8713. initRender(vm);
  8714. callHook(vm, 'beforeCreate');
  8715. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  8716. initState(vm);
  8717. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  8718. !vm._$fallback && callHook(vm, 'created');
  8719. /* istanbul ignore if */
  8720. if ( true && config.performance && mark) {
  8721. vm._name = formatComponentName(vm, false);
  8722. mark(endTag);
  8723. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  8724. }
  8725. if (vm.$options.el) {
  8726. vm.$mount(vm.$options.el);
  8727. }
  8728. };
  8729. }
  8730. function initInternalComponent (vm, options) {
  8731. var opts = vm.$options = Object.create(vm.constructor.options);
  8732. // doing this because it's faster than dynamic enumeration.
  8733. var parentVnode = options._parentVnode;
  8734. opts.parent = options.parent;
  8735. opts._parentVnode = parentVnode;
  8736. var vnodeComponentOptions = parentVnode.componentOptions;
  8737. opts.propsData = vnodeComponentOptions.propsData;
  8738. opts._parentListeners = vnodeComponentOptions.listeners;
  8739. opts._renderChildren = vnodeComponentOptions.children;
  8740. opts._componentTag = vnodeComponentOptions.tag;
  8741. if (options.render) {
  8742. opts.render = options.render;
  8743. opts.staticRenderFns = options.staticRenderFns;
  8744. }
  8745. }
  8746. function resolveConstructorOptions (Ctor) {
  8747. var options = Ctor.options;
  8748. if (Ctor.super) {
  8749. var superOptions = resolveConstructorOptions(Ctor.super);
  8750. var cachedSuperOptions = Ctor.superOptions;
  8751. if (superOptions !== cachedSuperOptions) {
  8752. // super option changed,
  8753. // need to resolve new options.
  8754. Ctor.superOptions = superOptions;
  8755. // check if there are any late-modified/attached options (#4976)
  8756. var modifiedOptions = resolveModifiedOptions(Ctor);
  8757. // update base extend options
  8758. if (modifiedOptions) {
  8759. extend(Ctor.extendOptions, modifiedOptions);
  8760. }
  8761. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  8762. if (options.name) {
  8763. options.components[options.name] = Ctor;
  8764. }
  8765. }
  8766. }
  8767. return options
  8768. }
  8769. function resolveModifiedOptions (Ctor) {
  8770. var modified;
  8771. var latest = Ctor.options;
  8772. var sealed = Ctor.sealedOptions;
  8773. for (var key in latest) {
  8774. if (latest[key] !== sealed[key]) {
  8775. if (!modified) { modified = {}; }
  8776. modified[key] = latest[key];
  8777. }
  8778. }
  8779. return modified
  8780. }
  8781. function Vue (options) {
  8782. if ( true &&
  8783. !(this instanceof Vue)
  8784. ) {
  8785. warn('Vue is a constructor and should be called with the `new` keyword');
  8786. }
  8787. this._init(options);
  8788. }
  8789. initMixin(Vue);
  8790. stateMixin(Vue);
  8791. eventsMixin(Vue);
  8792. lifecycleMixin(Vue);
  8793. renderMixin(Vue);
  8794. /* */
  8795. function initUse (Vue) {
  8796. Vue.use = function (plugin) {
  8797. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  8798. if (installedPlugins.indexOf(plugin) > -1) {
  8799. return this
  8800. }
  8801. // additional parameters
  8802. var args = toArray(arguments, 1);
  8803. args.unshift(this);
  8804. if (typeof plugin.install === 'function') {
  8805. plugin.install.apply(plugin, args);
  8806. } else if (typeof plugin === 'function') {
  8807. plugin.apply(null, args);
  8808. }
  8809. installedPlugins.push(plugin);
  8810. return this
  8811. };
  8812. }
  8813. /* */
  8814. function initMixin$1 (Vue) {
  8815. Vue.mixin = function (mixin) {
  8816. this.options = mergeOptions(this.options, mixin);
  8817. return this
  8818. };
  8819. }
  8820. /* */
  8821. function initExtend (Vue) {
  8822. /**
  8823. * Each instance constructor, including Vue, has a unique
  8824. * cid. This enables us to create wrapped "child
  8825. * constructors" for prototypal inheritance and cache them.
  8826. */
  8827. Vue.cid = 0;
  8828. var cid = 1;
  8829. /**
  8830. * Class inheritance
  8831. */
  8832. Vue.extend = function (extendOptions) {
  8833. extendOptions = extendOptions || {};
  8834. var Super = this;
  8835. var SuperId = Super.cid;
  8836. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  8837. if (cachedCtors[SuperId]) {
  8838. return cachedCtors[SuperId]
  8839. }
  8840. var name = extendOptions.name || Super.options.name;
  8841. if ( true && name) {
  8842. validateComponentName(name);
  8843. }
  8844. var Sub = function VueComponent (options) {
  8845. this._init(options);
  8846. };
  8847. Sub.prototype = Object.create(Super.prototype);
  8848. Sub.prototype.constructor = Sub;
  8849. Sub.cid = cid++;
  8850. Sub.options = mergeOptions(
  8851. Super.options,
  8852. extendOptions
  8853. );
  8854. Sub['super'] = Super;
  8855. // For props and computed properties, we define the proxy getters on
  8856. // the Vue instances at extension time, on the extended prototype. This
  8857. // avoids Object.defineProperty calls for each instance created.
  8858. if (Sub.options.props) {
  8859. initProps$1(Sub);
  8860. }
  8861. if (Sub.options.computed) {
  8862. initComputed$1(Sub);
  8863. }
  8864. // allow further extension/mixin/plugin usage
  8865. Sub.extend = Super.extend;
  8866. Sub.mixin = Super.mixin;
  8867. Sub.use = Super.use;
  8868. // create asset registers, so extended classes
  8869. // can have their private assets too.
  8870. ASSET_TYPES.forEach(function (type) {
  8871. Sub[type] = Super[type];
  8872. });
  8873. // enable recursive self-lookup
  8874. if (name) {
  8875. Sub.options.components[name] = Sub;
  8876. }
  8877. // keep a reference to the super options at extension time.
  8878. // later at instantiation we can check if Super's options have
  8879. // been updated.
  8880. Sub.superOptions = Super.options;
  8881. Sub.extendOptions = extendOptions;
  8882. Sub.sealedOptions = extend({}, Sub.options);
  8883. // cache constructor
  8884. cachedCtors[SuperId] = Sub;
  8885. return Sub
  8886. };
  8887. }
  8888. function initProps$1 (Comp) {
  8889. var props = Comp.options.props;
  8890. for (var key in props) {
  8891. proxy(Comp.prototype, "_props", key);
  8892. }
  8893. }
  8894. function initComputed$1 (Comp) {
  8895. var computed = Comp.options.computed;
  8896. for (var key in computed) {
  8897. defineComputed(Comp.prototype, key, computed[key]);
  8898. }
  8899. }
  8900. /* */
  8901. function initAssetRegisters (Vue) {
  8902. /**
  8903. * Create asset registration methods.
  8904. */
  8905. ASSET_TYPES.forEach(function (type) {
  8906. Vue[type] = function (
  8907. id,
  8908. definition
  8909. ) {
  8910. if (!definition) {
  8911. return this.options[type + 's'][id]
  8912. } else {
  8913. /* istanbul ignore if */
  8914. if ( true && type === 'component') {
  8915. validateComponentName(id);
  8916. }
  8917. if (type === 'component' && isPlainObject(definition)) {
  8918. definition.name = definition.name || id;
  8919. definition = this.options._base.extend(definition);
  8920. }
  8921. if (type === 'directive' && typeof definition === 'function') {
  8922. definition = { bind: definition, update: definition };
  8923. }
  8924. this.options[type + 's'][id] = definition;
  8925. return definition
  8926. }
  8927. };
  8928. });
  8929. }
  8930. /* */
  8931. function getComponentName (opts) {
  8932. return opts && (opts.Ctor.options.name || opts.tag)
  8933. }
  8934. function matches (pattern, name) {
  8935. if (Array.isArray(pattern)) {
  8936. return pattern.indexOf(name) > -1
  8937. } else if (typeof pattern === 'string') {
  8938. return pattern.split(',').indexOf(name) > -1
  8939. } else if (isRegExp(pattern)) {
  8940. return pattern.test(name)
  8941. }
  8942. /* istanbul ignore next */
  8943. return false
  8944. }
  8945. function pruneCache (keepAliveInstance, filter) {
  8946. var cache = keepAliveInstance.cache;
  8947. var keys = keepAliveInstance.keys;
  8948. var _vnode = keepAliveInstance._vnode;
  8949. for (var key in cache) {
  8950. var cachedNode = cache[key];
  8951. if (cachedNode) {
  8952. var name = getComponentName(cachedNode.componentOptions);
  8953. if (name && !filter(name)) {
  8954. pruneCacheEntry(cache, key, keys, _vnode);
  8955. }
  8956. }
  8957. }
  8958. }
  8959. function pruneCacheEntry (
  8960. cache,
  8961. key,
  8962. keys,
  8963. current
  8964. ) {
  8965. var cached$$1 = cache[key];
  8966. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8967. cached$$1.componentInstance.$destroy();
  8968. }
  8969. cache[key] = null;
  8970. remove(keys, key);
  8971. }
  8972. var patternTypes = [String, RegExp, Array];
  8973. var KeepAlive = {
  8974. name: 'keep-alive',
  8975. abstract: true,
  8976. props: {
  8977. include: patternTypes,
  8978. exclude: patternTypes,
  8979. max: [String, Number]
  8980. },
  8981. created: function created () {
  8982. this.cache = Object.create(null);
  8983. this.keys = [];
  8984. },
  8985. destroyed: function destroyed () {
  8986. for (var key in this.cache) {
  8987. pruneCacheEntry(this.cache, key, this.keys);
  8988. }
  8989. },
  8990. mounted: function mounted () {
  8991. var this$1 = this;
  8992. this.$watch('include', function (val) {
  8993. pruneCache(this$1, function (name) { return matches(val, name); });
  8994. });
  8995. this.$watch('exclude', function (val) {
  8996. pruneCache(this$1, function (name) { return !matches(val, name); });
  8997. });
  8998. },
  8999. render: function render () {
  9000. var slot = this.$slots.default;
  9001. var vnode = getFirstComponentChild(slot);
  9002. var componentOptions = vnode && vnode.componentOptions;
  9003. if (componentOptions) {
  9004. // check pattern
  9005. var name = getComponentName(componentOptions);
  9006. var ref = this;
  9007. var include = ref.include;
  9008. var exclude = ref.exclude;
  9009. if (
  9010. // not included
  9011. (include && (!name || !matches(include, name))) ||
  9012. // excluded
  9013. (exclude && name && matches(exclude, name))
  9014. ) {
  9015. return vnode
  9016. }
  9017. var ref$1 = this;
  9018. var cache = ref$1.cache;
  9019. var keys = ref$1.keys;
  9020. var key = vnode.key == null
  9021. // same constructor may get registered as different local components
  9022. // so cid alone is not enough (#3269)
  9023. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  9024. : vnode.key;
  9025. if (cache[key]) {
  9026. vnode.componentInstance = cache[key].componentInstance;
  9027. // make current key freshest
  9028. remove(keys, key);
  9029. keys.push(key);
  9030. } else {
  9031. cache[key] = vnode;
  9032. keys.push(key);
  9033. // prune oldest entry
  9034. if (this.max && keys.length > parseInt(this.max)) {
  9035. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  9036. }
  9037. }
  9038. vnode.data.keepAlive = true;
  9039. }
  9040. return vnode || (slot && slot[0])
  9041. }
  9042. };
  9043. var builtInComponents = {
  9044. KeepAlive: KeepAlive
  9045. };
  9046. /* */
  9047. function initGlobalAPI (Vue) {
  9048. // config
  9049. var configDef = {};
  9050. configDef.get = function () { return config; };
  9051. if (true) {
  9052. configDef.set = function () {
  9053. warn(
  9054. 'Do not replace the Vue.config object, set individual fields instead.'
  9055. );
  9056. };
  9057. }
  9058. Object.defineProperty(Vue, 'config', configDef);
  9059. // exposed util methods.
  9060. // NOTE: these are not considered part of the public API - avoid relying on
  9061. // them unless you are aware of the risk.
  9062. Vue.util = {
  9063. warn: warn,
  9064. extend: extend,
  9065. mergeOptions: mergeOptions,
  9066. defineReactive: defineReactive$$1
  9067. };
  9068. Vue.set = set;
  9069. Vue.delete = del;
  9070. Vue.nextTick = nextTick;
  9071. // 2.6 explicit observable API
  9072. Vue.observable = function (obj) {
  9073. observe(obj);
  9074. return obj
  9075. };
  9076. Vue.options = Object.create(null);
  9077. ASSET_TYPES.forEach(function (type) {
  9078. Vue.options[type + 's'] = Object.create(null);
  9079. });
  9080. // this is used to identify the "base" constructor to extend all plain-object
  9081. // components with in Weex's multi-instance scenarios.
  9082. Vue.options._base = Vue;
  9083. extend(Vue.options.components, builtInComponents);
  9084. initUse(Vue);
  9085. initMixin$1(Vue);
  9086. initExtend(Vue);
  9087. initAssetRegisters(Vue);
  9088. }
  9089. initGlobalAPI(Vue);
  9090. Object.defineProperty(Vue.prototype, '$isServer', {
  9091. get: isServerRendering
  9092. });
  9093. Object.defineProperty(Vue.prototype, '$ssrContext', {
  9094. get: function get () {
  9095. /* istanbul ignore next */
  9096. return this.$vnode && this.$vnode.ssrContext
  9097. }
  9098. });
  9099. // expose FunctionalRenderContext for ssr runtime helper installation
  9100. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  9101. value: FunctionalRenderContext
  9102. });
  9103. Vue.version = '2.6.11';
  9104. /**
  9105. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  9106. */
  9107. var ARRAYTYPE = '[object Array]';
  9108. var OBJECTTYPE = '[object Object]';
  9109. var NULLTYPE = '[object Null]';
  9110. var UNDEFINEDTYPE = '[object Undefined]';
  9111. // const FUNCTIONTYPE = '[object Function]'
  9112. function diff(current, pre) {
  9113. var result = {};
  9114. syncKeys(current, pre);
  9115. _diff(current, pre, '', result);
  9116. return result
  9117. }
  9118. function syncKeys(current, pre) {
  9119. if (current === pre) { return }
  9120. var rootCurrentType = type(current);
  9121. var rootPreType = type(pre);
  9122. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  9123. if(Object.keys(current).length >= Object.keys(pre).length){
  9124. for (var key in pre) {
  9125. var currentValue = current[key];
  9126. if (currentValue === undefined) {
  9127. current[key] = null;
  9128. } else {
  9129. syncKeys(currentValue, pre[key]);
  9130. }
  9131. }
  9132. }
  9133. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  9134. if (current.length >= pre.length) {
  9135. pre.forEach(function (item, index) {
  9136. syncKeys(current[index], item);
  9137. });
  9138. }
  9139. }
  9140. }
  9141. function nullOrUndefined(currentType, preType) {
  9142. if(
  9143. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  9144. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  9145. ) {
  9146. return false
  9147. }
  9148. return true
  9149. }
  9150. function _diff(current, pre, path, result) {
  9151. if (current === pre) { return }
  9152. var rootCurrentType = type(current);
  9153. var rootPreType = type(pre);
  9154. if (rootCurrentType == OBJECTTYPE) {
  9155. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  9156. setResult(result, path, current);
  9157. } else {
  9158. var loop = function ( key ) {
  9159. var currentValue = current[key];
  9160. var preValue = pre[key];
  9161. var currentType = type(currentValue);
  9162. var preType = type(preValue);
  9163. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  9164. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  9165. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9166. }
  9167. } else if (currentType == ARRAYTYPE) {
  9168. if (preType != ARRAYTYPE) {
  9169. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9170. } else {
  9171. if (currentValue.length < preValue.length) {
  9172. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9173. } else {
  9174. currentValue.forEach(function (item, index) {
  9175. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  9176. });
  9177. }
  9178. }
  9179. } else if (currentType == OBJECTTYPE) {
  9180. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  9181. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  9182. } else {
  9183. for (var subKey in currentValue) {
  9184. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  9185. }
  9186. }
  9187. }
  9188. };
  9189. for (var key in current) loop( key );
  9190. }
  9191. } else if (rootCurrentType == ARRAYTYPE) {
  9192. if (rootPreType != ARRAYTYPE) {
  9193. setResult(result, path, current);
  9194. } else {
  9195. if (current.length < pre.length) {
  9196. setResult(result, path, current);
  9197. } else {
  9198. current.forEach(function (item, index) {
  9199. _diff(item, pre[index], path + '[' + index + ']', result);
  9200. });
  9201. }
  9202. }
  9203. } else {
  9204. setResult(result, path, current);
  9205. }
  9206. }
  9207. function setResult(result, k, v) {
  9208. // if (type(v) != FUNCTIONTYPE) {
  9209. result[k] = v;
  9210. // }
  9211. }
  9212. function type(obj) {
  9213. return Object.prototype.toString.call(obj)
  9214. }
  9215. /* */
  9216. function flushCallbacks$1(vm) {
  9217. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  9218. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"follow_applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  9219. var mpInstance = vm.$scope;
  9220. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  9221. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  9222. }
  9223. var copies = vm.__next_tick_callbacks.slice(0);
  9224. vm.__next_tick_callbacks.length = 0;
  9225. for (var i = 0; i < copies.length; i++) {
  9226. copies[i]();
  9227. }
  9228. }
  9229. }
  9230. function hasRenderWatcher(vm) {
  9231. return queue.find(function (watcher) { return vm._watcher === watcher; })
  9232. }
  9233. function nextTick$1(vm, cb) {
  9234. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  9235. //2.nextTick 之前存在 render watcher
  9236. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  9237. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"follow_applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  9238. var mpInstance = vm.$scope;
  9239. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  9240. ']:nextVueTick');
  9241. }
  9242. return nextTick(cb, vm)
  9243. }else{
  9244. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"follow_applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  9245. var mpInstance$1 = vm.$scope;
  9246. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  9247. ']:nextMPTick');
  9248. }
  9249. }
  9250. var _resolve;
  9251. if (!vm.__next_tick_callbacks) {
  9252. vm.__next_tick_callbacks = [];
  9253. }
  9254. vm.__next_tick_callbacks.push(function () {
  9255. if (cb) {
  9256. try {
  9257. cb.call(vm);
  9258. } catch (e) {
  9259. handleError(e, vm, 'nextTick');
  9260. }
  9261. } else if (_resolve) {
  9262. _resolve(vm);
  9263. }
  9264. });
  9265. // $flow-disable-line
  9266. if (!cb && typeof Promise !== 'undefined') {
  9267. return new Promise(function (resolve) {
  9268. _resolve = resolve;
  9269. })
  9270. }
  9271. }
  9272. /* */
  9273. function clearInstance(key, value) {
  9274. // 简易去除 Vue 和小程序组件实例
  9275. if (value) {
  9276. if (value._isVue || value.__v_isMPComponent) {
  9277. return {}
  9278. }
  9279. }
  9280. return value
  9281. }
  9282. function cloneWithData(vm) {
  9283. // 确保当前 vm 所有数据被同步
  9284. var ret = Object.create(null);
  9285. var dataKeys = [].concat(
  9286. Object.keys(vm._data || {}),
  9287. Object.keys(vm._computedWatchers || {}));
  9288. dataKeys.reduce(function(ret, key) {
  9289. ret[key] = vm[key];
  9290. return ret
  9291. }, ret);
  9292. // vue-composition-api
  9293. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  9294. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  9295. if (rawBindings) {
  9296. Object.keys(rawBindings).forEach(function (key) {
  9297. ret[key] = vm[key];
  9298. });
  9299. }
  9300. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  9301. Object.assign(ret, vm.$mp.data || {});
  9302. if (
  9303. Array.isArray(vm.$options.behaviors) &&
  9304. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  9305. ) { //form-field
  9306. ret['name'] = vm.name;
  9307. ret['value'] = vm.value;
  9308. }
  9309. return JSON.parse(JSON.stringify(ret, clearInstance))
  9310. }
  9311. var patch = function(oldVnode, vnode) {
  9312. var this$1 = this;
  9313. if (vnode === null) { //destroy
  9314. return
  9315. }
  9316. if (this.mpType === 'page' || this.mpType === 'component') {
  9317. var mpInstance = this.$scope;
  9318. var data = Object.create(null);
  9319. try {
  9320. data = cloneWithData(this);
  9321. } catch (err) {
  9322. console.error(err);
  9323. }
  9324. data.__webviewId__ = mpInstance.data.__webviewId__;
  9325. var mpData = Object.create(null);
  9326. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  9327. mpData[key] = mpInstance.data[key];
  9328. });
  9329. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  9330. if (Object.keys(diffData).length) {
  9331. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"follow_applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  9332. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  9333. ']差量更新',
  9334. JSON.stringify(diffData));
  9335. }
  9336. this.__next_tick_pending = true;
  9337. mpInstance.setData(diffData, function () {
  9338. this$1.__next_tick_pending = false;
  9339. flushCallbacks$1(this$1);
  9340. });
  9341. } else {
  9342. flushCallbacks$1(this);
  9343. }
  9344. }
  9345. };
  9346. /* */
  9347. function createEmptyRender() {
  9348. }
  9349. function mountComponent$1(
  9350. vm,
  9351. el,
  9352. hydrating
  9353. ) {
  9354. if (!vm.mpType) {//main.js 中的 new Vue
  9355. return vm
  9356. }
  9357. if (vm.mpType === 'app') {
  9358. vm.$options.render = createEmptyRender;
  9359. }
  9360. if (!vm.$options.render) {
  9361. vm.$options.render = createEmptyRender;
  9362. if (true) {
  9363. /* istanbul ignore if */
  9364. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  9365. vm.$options.el || el) {
  9366. warn(
  9367. 'You are using the runtime-only build of Vue where the template ' +
  9368. 'compiler is not available. Either pre-compile the templates into ' +
  9369. 'render functions, or use the compiler-included build.',
  9370. vm
  9371. );
  9372. } else {
  9373. warn(
  9374. 'Failed to mount component: template or render function not defined.',
  9375. vm
  9376. );
  9377. }
  9378. }
  9379. }
  9380. !vm._$fallback && callHook(vm, 'beforeMount');
  9381. var updateComponent = function () {
  9382. vm._update(vm._render(), hydrating);
  9383. };
  9384. // we set this to vm._watcher inside the watcher's constructor
  9385. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  9386. // component's mounted hook), which relies on vm._watcher being already defined
  9387. new Watcher(vm, updateComponent, noop, {
  9388. before: function before() {
  9389. if (vm._isMounted && !vm._isDestroyed) {
  9390. callHook(vm, 'beforeUpdate');
  9391. }
  9392. }
  9393. }, true /* isRenderWatcher */);
  9394. hydrating = false;
  9395. return vm
  9396. }
  9397. /* */
  9398. function renderClass (
  9399. staticClass,
  9400. dynamicClass
  9401. ) {
  9402. if (isDef(staticClass) || isDef(dynamicClass)) {
  9403. return concat(staticClass, stringifyClass(dynamicClass))
  9404. }
  9405. /* istanbul ignore next */
  9406. return ''
  9407. }
  9408. function concat (a, b) {
  9409. return a ? b ? (a + ' ' + b) : a : (b || '')
  9410. }
  9411. function stringifyClass (value) {
  9412. if (Array.isArray(value)) {
  9413. return stringifyArray(value)
  9414. }
  9415. if (isObject(value)) {
  9416. return stringifyObject(value)
  9417. }
  9418. if (typeof value === 'string') {
  9419. return value
  9420. }
  9421. /* istanbul ignore next */
  9422. return ''
  9423. }
  9424. function stringifyArray (value) {
  9425. var res = '';
  9426. var stringified;
  9427. for (var i = 0, l = value.length; i < l; i++) {
  9428. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  9429. if (res) { res += ' '; }
  9430. res += stringified;
  9431. }
  9432. }
  9433. return res
  9434. }
  9435. function stringifyObject (value) {
  9436. var res = '';
  9437. for (var key in value) {
  9438. if (value[key]) {
  9439. if (res) { res += ' '; }
  9440. res += key;
  9441. }
  9442. }
  9443. return res
  9444. }
  9445. /* */
  9446. var parseStyleText = cached(function (cssText) {
  9447. var res = {};
  9448. var listDelimiter = /;(?![^(]*\))/g;
  9449. var propertyDelimiter = /:(.+)/;
  9450. cssText.split(listDelimiter).forEach(function (item) {
  9451. if (item) {
  9452. var tmp = item.split(propertyDelimiter);
  9453. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  9454. }
  9455. });
  9456. return res
  9457. });
  9458. // normalize possible array / string values into Object
  9459. function normalizeStyleBinding (bindingStyle) {
  9460. if (Array.isArray(bindingStyle)) {
  9461. return toObject(bindingStyle)
  9462. }
  9463. if (typeof bindingStyle === 'string') {
  9464. return parseStyleText(bindingStyle)
  9465. }
  9466. return bindingStyle
  9467. }
  9468. /* */
  9469. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  9470. function getTarget(obj, path) {
  9471. var parts = path.split('.');
  9472. var key = parts[0];
  9473. if (key.indexOf('__$n') === 0) { //number index
  9474. key = parseInt(key.replace('__$n', ''));
  9475. }
  9476. if (parts.length === 1) {
  9477. return obj[key]
  9478. }
  9479. return getTarget(obj[key], parts.slice(1).join('.'))
  9480. }
  9481. function internalMixin(Vue) {
  9482. Vue.config.errorHandler = function(err, vm, info) {
  9483. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  9484. console.error(err);
  9485. /* eslint-disable no-undef */
  9486. var app = typeof getApp === 'function' && getApp();
  9487. if (app && app.onError) {
  9488. app.onError(err);
  9489. }
  9490. };
  9491. var oldEmit = Vue.prototype.$emit;
  9492. Vue.prototype.$emit = function(event) {
  9493. if (this.$scope && event) {
  9494. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  9495. if (triggerEvent) {
  9496. try {
  9497. triggerEvent.call(this.$scope, event, {
  9498. __args__: toArray(arguments, 1)
  9499. });
  9500. } catch (error) {
  9501. }
  9502. }
  9503. }
  9504. return oldEmit.apply(this, arguments)
  9505. };
  9506. Vue.prototype.$nextTick = function(fn) {
  9507. return nextTick$1(this, fn)
  9508. };
  9509. MP_METHODS.forEach(function (method) {
  9510. Vue.prototype[method] = function(args) {
  9511. if (this.$scope && this.$scope[method]) {
  9512. return this.$scope[method](args)
  9513. }
  9514. // mp-alipay
  9515. if (typeof my === 'undefined') {
  9516. return
  9517. }
  9518. if (method === 'createSelectorQuery') {
  9519. /* eslint-disable no-undef */
  9520. return my.createSelectorQuery(args)
  9521. } else if (method === 'createIntersectionObserver') {
  9522. /* eslint-disable no-undef */
  9523. return my.createIntersectionObserver(args)
  9524. }
  9525. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  9526. };
  9527. });
  9528. Vue.prototype.__init_provide = initProvide;
  9529. Vue.prototype.__init_injections = initInjections;
  9530. Vue.prototype.__call_hook = function(hook, args) {
  9531. var vm = this;
  9532. // #7573 disable dep collection when invoking lifecycle hooks
  9533. pushTarget();
  9534. var handlers = vm.$options[hook];
  9535. var info = hook + " hook";
  9536. var ret;
  9537. if (handlers) {
  9538. for (var i = 0, j = handlers.length; i < j; i++) {
  9539. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  9540. }
  9541. }
  9542. if (vm._hasHookEvent) {
  9543. vm.$emit('hook:' + hook, args);
  9544. }
  9545. popTarget();
  9546. return ret
  9547. };
  9548. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  9549. if (Array.isArray(modifiers)) {
  9550. if (modifiers.indexOf('trim') !== -1) {
  9551. value = value.trim();
  9552. }
  9553. if (modifiers.indexOf('number') !== -1) {
  9554. value = this._n(value);
  9555. }
  9556. }
  9557. if (!target) {
  9558. target = this;
  9559. }
  9560. // 解决动态属性添加
  9561. Vue.set(target, key, value);
  9562. };
  9563. Vue.prototype.__set_sync = function(target, key, value) {
  9564. if (!target) {
  9565. target = this;
  9566. }
  9567. // 解决动态属性添加
  9568. Vue.set(target, key, value);
  9569. };
  9570. Vue.prototype.__get_orig = function(item) {
  9571. if (isPlainObject(item)) {
  9572. return item['$orig'] || item
  9573. }
  9574. return item
  9575. };
  9576. Vue.prototype.__get_value = function(dataPath, target) {
  9577. return getTarget(target || this, dataPath)
  9578. };
  9579. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  9580. return renderClass(staticClass, dynamicClass)
  9581. };
  9582. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  9583. if (!dynamicStyle && !staticStyle) {
  9584. return ''
  9585. }
  9586. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  9587. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  9588. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  9589. };
  9590. Vue.prototype.__map = function(val, iteratee) {
  9591. //TODO 暂不考虑 string
  9592. var ret, i, l, keys, key;
  9593. if (Array.isArray(val)) {
  9594. ret = new Array(val.length);
  9595. for (i = 0, l = val.length; i < l; i++) {
  9596. ret[i] = iteratee(val[i], i);
  9597. }
  9598. return ret
  9599. } else if (isObject(val)) {
  9600. keys = Object.keys(val);
  9601. ret = Object.create(null);
  9602. for (i = 0, l = keys.length; i < l; i++) {
  9603. key = keys[i];
  9604. ret[key] = iteratee(val[key], key, i);
  9605. }
  9606. return ret
  9607. } else if (typeof val === 'number') {
  9608. ret = new Array(val);
  9609. for (i = 0, l = val; i < l; i++) {
  9610. // 第一个参数暂时仍和小程序一致
  9611. ret[i] = iteratee(i, i);
  9612. }
  9613. return ret
  9614. }
  9615. return []
  9616. };
  9617. }
  9618. /* */
  9619. var LIFECYCLE_HOOKS$1 = [
  9620. //App
  9621. 'onLaunch',
  9622. 'onShow',
  9623. 'onHide',
  9624. 'onUniNViewMessage',
  9625. 'onPageNotFound',
  9626. 'onThemeChange',
  9627. 'onError',
  9628. 'onUnhandledRejection',
  9629. //Page
  9630. 'onInit',
  9631. 'onLoad',
  9632. // 'onShow',
  9633. 'onReady',
  9634. // 'onHide',
  9635. 'onUnload',
  9636. 'onPullDownRefresh',
  9637. 'onReachBottom',
  9638. 'onTabItemTap',
  9639. 'onAddToFavorites',
  9640. 'onShareTimeline',
  9641. 'onShareAppMessage',
  9642. 'onResize',
  9643. 'onPageScroll',
  9644. 'onNavigationBarButtonTap',
  9645. 'onBackPress',
  9646. 'onNavigationBarSearchInputChanged',
  9647. 'onNavigationBarSearchInputConfirmed',
  9648. 'onNavigationBarSearchInputClicked',
  9649. 'onUploadDouyinVideo',
  9650. 'onNFCReadMessage',
  9651. //Component
  9652. // 'onReady', // 兼容旧版本,应该移除该事件
  9653. 'onPageShow',
  9654. 'onPageHide',
  9655. 'onPageResize'
  9656. ];
  9657. function lifecycleMixin$1(Vue) {
  9658. //fixed vue-class-component
  9659. var oldExtend = Vue.extend;
  9660. Vue.extend = function(extendOptions) {
  9661. extendOptions = extendOptions || {};
  9662. var methods = extendOptions.methods;
  9663. if (methods) {
  9664. Object.keys(methods).forEach(function (methodName) {
  9665. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  9666. extendOptions[methodName] = methods[methodName];
  9667. delete methods[methodName];
  9668. }
  9669. });
  9670. }
  9671. return oldExtend.call(this, extendOptions)
  9672. };
  9673. var strategies = Vue.config.optionMergeStrategies;
  9674. var mergeHook = strategies.created;
  9675. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  9676. strategies[hook] = mergeHook;
  9677. });
  9678. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  9679. }
  9680. /* */
  9681. // install platform patch function
  9682. Vue.prototype.__patch__ = patch;
  9683. // public mount method
  9684. Vue.prototype.$mount = function(
  9685. el ,
  9686. hydrating
  9687. ) {
  9688. return mountComponent$1(this, el, hydrating)
  9689. };
  9690. lifecycleMixin$1(Vue);
  9691. internalMixin(Vue);
  9692. /* */
  9693. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  9694. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  9695. /***/ }),
  9696. /***/ 26:
  9697. /*!*****************************************************!*\
  9698. !*** D:/project/新医院随访2023/follow_applet/pages.json ***!
  9699. \*****************************************************/
  9700. /*! no static exports found */
  9701. /***/ (function(module, exports) {
  9702. /***/ }),
  9703. /***/ 3:
  9704. /*!***********************************!*\
  9705. !*** (webpack)/buildin/global.js ***!
  9706. \***********************************/
  9707. /*! no static exports found */
  9708. /***/ (function(module, exports) {
  9709. var g;
  9710. // This works in non-strict mode
  9711. g = (function() {
  9712. return this;
  9713. })();
  9714. try {
  9715. // This works if eval is allowed (see CSP)
  9716. g = g || new Function("return this")();
  9717. } catch (e) {
  9718. // This works if the window reference is available
  9719. if (typeof window === "object") g = window;
  9720. }
  9721. // g can still be undefined, but nothing to do about it...
  9722. // We return undefined, instead of nothing here, so it's
  9723. // easier to handle this case. if(!global) { ...}
  9724. module.exports = g;
  9725. /***/ }),
  9726. /***/ 30:
  9727. /*!************************************************************************************************!*\
  9728. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  9729. \************************************************************************************************/
  9730. /*! no static exports found */
  9731. /***/ (function(module, exports, __webpack_require__) {
  9732. // TODO(Babel 8): Remove this file.
  9733. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 31)();
  9734. module.exports = runtime;
  9735. /***/ }),
  9736. /***/ 31:
  9737. /*!*******************************************************************!*\
  9738. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  9739. \*******************************************************************/
  9740. /*! no static exports found */
  9741. /***/ (function(module, exports, __webpack_require__) {
  9742. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  9743. function _regeneratorRuntime() {
  9744. "use strict";
  9745. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  9746. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  9747. return exports;
  9748. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  9749. var exports = {},
  9750. Op = Object.prototype,
  9751. hasOwn = Op.hasOwnProperty,
  9752. defineProperty = Object.defineProperty || function (obj, key, desc) {
  9753. obj[key] = desc.value;
  9754. },
  9755. $Symbol = "function" == typeof Symbol ? Symbol : {},
  9756. iteratorSymbol = $Symbol.iterator || "@@iterator",
  9757. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  9758. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  9759. function define(obj, key, value) {
  9760. return Object.defineProperty(obj, key, {
  9761. value: value,
  9762. enumerable: !0,
  9763. configurable: !0,
  9764. writable: !0
  9765. }), obj[key];
  9766. }
  9767. try {
  9768. define({}, "");
  9769. } catch (err) {
  9770. define = function define(obj, key, value) {
  9771. return obj[key] = value;
  9772. };
  9773. }
  9774. function wrap(innerFn, outerFn, self, tryLocsList) {
  9775. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  9776. generator = Object.create(protoGenerator.prototype),
  9777. context = new Context(tryLocsList || []);
  9778. return defineProperty(generator, "_invoke", {
  9779. value: makeInvokeMethod(innerFn, self, context)
  9780. }), generator;
  9781. }
  9782. function tryCatch(fn, obj, arg) {
  9783. try {
  9784. return {
  9785. type: "normal",
  9786. arg: fn.call(obj, arg)
  9787. };
  9788. } catch (err) {
  9789. return {
  9790. type: "throw",
  9791. arg: err
  9792. };
  9793. }
  9794. }
  9795. exports.wrap = wrap;
  9796. var ContinueSentinel = {};
  9797. function Generator() {}
  9798. function GeneratorFunction() {}
  9799. function GeneratorFunctionPrototype() {}
  9800. var IteratorPrototype = {};
  9801. define(IteratorPrototype, iteratorSymbol, function () {
  9802. return this;
  9803. });
  9804. var getProto = Object.getPrototypeOf,
  9805. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  9806. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  9807. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  9808. function defineIteratorMethods(prototype) {
  9809. ["next", "throw", "return"].forEach(function (method) {
  9810. define(prototype, method, function (arg) {
  9811. return this._invoke(method, arg);
  9812. });
  9813. });
  9814. }
  9815. function AsyncIterator(generator, PromiseImpl) {
  9816. function invoke(method, arg, resolve, reject) {
  9817. var record = tryCatch(generator[method], generator, arg);
  9818. if ("throw" !== record.type) {
  9819. var result = record.arg,
  9820. value = result.value;
  9821. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  9822. invoke("next", value, resolve, reject);
  9823. }, function (err) {
  9824. invoke("throw", err, resolve, reject);
  9825. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  9826. result.value = unwrapped, resolve(result);
  9827. }, function (error) {
  9828. return invoke("throw", error, resolve, reject);
  9829. });
  9830. }
  9831. reject(record.arg);
  9832. }
  9833. var previousPromise;
  9834. defineProperty(this, "_invoke", {
  9835. value: function value(method, arg) {
  9836. function callInvokeWithMethodAndArg() {
  9837. return new PromiseImpl(function (resolve, reject) {
  9838. invoke(method, arg, resolve, reject);
  9839. });
  9840. }
  9841. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  9842. }
  9843. });
  9844. }
  9845. function makeInvokeMethod(innerFn, self, context) {
  9846. var state = "suspendedStart";
  9847. return function (method, arg) {
  9848. if ("executing" === state) throw new Error("Generator is already running");
  9849. if ("completed" === state) {
  9850. if ("throw" === method) throw arg;
  9851. return doneResult();
  9852. }
  9853. for (context.method = method, context.arg = arg;;) {
  9854. var delegate = context.delegate;
  9855. if (delegate) {
  9856. var delegateResult = maybeInvokeDelegate(delegate, context);
  9857. if (delegateResult) {
  9858. if (delegateResult === ContinueSentinel) continue;
  9859. return delegateResult;
  9860. }
  9861. }
  9862. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  9863. if ("suspendedStart" === state) throw state = "completed", context.arg;
  9864. context.dispatchException(context.arg);
  9865. } else "return" === context.method && context.abrupt("return", context.arg);
  9866. state = "executing";
  9867. var record = tryCatch(innerFn, self, context);
  9868. if ("normal" === record.type) {
  9869. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  9870. return {
  9871. value: record.arg,
  9872. done: context.done
  9873. };
  9874. }
  9875. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  9876. }
  9877. };
  9878. }
  9879. function maybeInvokeDelegate(delegate, context) {
  9880. var methodName = context.method,
  9881. method = delegate.iterator[methodName];
  9882. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  9883. var record = tryCatch(method, delegate.iterator, context.arg);
  9884. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  9885. var info = record.arg;
  9886. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  9887. }
  9888. function pushTryEntry(locs) {
  9889. var entry = {
  9890. tryLoc: locs[0]
  9891. };
  9892. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  9893. }
  9894. function resetTryEntry(entry) {
  9895. var record = entry.completion || {};
  9896. record.type = "normal", delete record.arg, entry.completion = record;
  9897. }
  9898. function Context(tryLocsList) {
  9899. this.tryEntries = [{
  9900. tryLoc: "root"
  9901. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  9902. }
  9903. function values(iterable) {
  9904. if (iterable) {
  9905. var iteratorMethod = iterable[iteratorSymbol];
  9906. if (iteratorMethod) return iteratorMethod.call(iterable);
  9907. if ("function" == typeof iterable.next) return iterable;
  9908. if (!isNaN(iterable.length)) {
  9909. var i = -1,
  9910. next = function next() {
  9911. for (; ++i < iterable.length;) {
  9912. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  9913. }
  9914. return next.value = undefined, next.done = !0, next;
  9915. };
  9916. return next.next = next;
  9917. }
  9918. }
  9919. return {
  9920. next: doneResult
  9921. };
  9922. }
  9923. function doneResult() {
  9924. return {
  9925. value: undefined,
  9926. done: !0
  9927. };
  9928. }
  9929. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  9930. value: GeneratorFunctionPrototype,
  9931. configurable: !0
  9932. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  9933. value: GeneratorFunction,
  9934. configurable: !0
  9935. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  9936. var ctor = "function" == typeof genFun && genFun.constructor;
  9937. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  9938. }, exports.mark = function (genFun) {
  9939. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  9940. }, exports.awrap = function (arg) {
  9941. return {
  9942. __await: arg
  9943. };
  9944. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  9945. return this;
  9946. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  9947. void 0 === PromiseImpl && (PromiseImpl = Promise);
  9948. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  9949. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  9950. return result.done ? result.value : iter.next();
  9951. });
  9952. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  9953. return this;
  9954. }), define(Gp, "toString", function () {
  9955. return "[object Generator]";
  9956. }), exports.keys = function (val) {
  9957. var object = Object(val),
  9958. keys = [];
  9959. for (var key in object) {
  9960. keys.push(key);
  9961. }
  9962. return keys.reverse(), function next() {
  9963. for (; keys.length;) {
  9964. var key = keys.pop();
  9965. if (key in object) return next.value = key, next.done = !1, next;
  9966. }
  9967. return next.done = !0, next;
  9968. };
  9969. }, exports.values = values, Context.prototype = {
  9970. constructor: Context,
  9971. reset: function reset(skipTempReset) {
  9972. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  9973. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  9974. }
  9975. },
  9976. stop: function stop() {
  9977. this.done = !0;
  9978. var rootRecord = this.tryEntries[0].completion;
  9979. if ("throw" === rootRecord.type) throw rootRecord.arg;
  9980. return this.rval;
  9981. },
  9982. dispatchException: function dispatchException(exception) {
  9983. if (this.done) throw exception;
  9984. var context = this;
  9985. function handle(loc, caught) {
  9986. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  9987. }
  9988. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  9989. var entry = this.tryEntries[i],
  9990. record = entry.completion;
  9991. if ("root" === entry.tryLoc) return handle("end");
  9992. if (entry.tryLoc <= this.prev) {
  9993. var hasCatch = hasOwn.call(entry, "catchLoc"),
  9994. hasFinally = hasOwn.call(entry, "finallyLoc");
  9995. if (hasCatch && hasFinally) {
  9996. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  9997. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  9998. } else if (hasCatch) {
  9999. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  10000. } else {
  10001. if (!hasFinally) throw new Error("try statement without catch or finally");
  10002. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  10003. }
  10004. }
  10005. }
  10006. },
  10007. abrupt: function abrupt(type, arg) {
  10008. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10009. var entry = this.tryEntries[i];
  10010. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  10011. var finallyEntry = entry;
  10012. break;
  10013. }
  10014. }
  10015. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  10016. var record = finallyEntry ? finallyEntry.completion : {};
  10017. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  10018. },
  10019. complete: function complete(record, afterLoc) {
  10020. if ("throw" === record.type) throw record.arg;
  10021. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  10022. },
  10023. finish: function finish(finallyLoc) {
  10024. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10025. var entry = this.tryEntries[i];
  10026. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  10027. }
  10028. },
  10029. "catch": function _catch(tryLoc) {
  10030. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  10031. var entry = this.tryEntries[i];
  10032. if (entry.tryLoc === tryLoc) {
  10033. var record = entry.completion;
  10034. if ("throw" === record.type) {
  10035. var thrown = record.arg;
  10036. resetTryEntry(entry);
  10037. }
  10038. return thrown;
  10039. }
  10040. }
  10041. throw new Error("illegal catch attempt");
  10042. },
  10043. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  10044. return this.delegate = {
  10045. iterator: values(iterable),
  10046. resultName: resultName,
  10047. nextLoc: nextLoc
  10048. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  10049. }
  10050. }, exports;
  10051. }
  10052. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  10053. /***/ }),
  10054. /***/ 32:
  10055. /*!*****************************************************************!*\
  10056. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  10057. \*****************************************************************/
  10058. /*! no static exports found */
  10059. /***/ (function(module, exports) {
  10060. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  10061. try {
  10062. var info = gen[key](arg);
  10063. var value = info.value;
  10064. } catch (error) {
  10065. reject(error);
  10066. return;
  10067. }
  10068. if (info.done) {
  10069. resolve(value);
  10070. } else {
  10071. Promise.resolve(value).then(_next, _throw);
  10072. }
  10073. }
  10074. function _asyncToGenerator(fn) {
  10075. return function () {
  10076. var self = this,
  10077. args = arguments;
  10078. return new Promise(function (resolve, reject) {
  10079. var gen = fn.apply(self, args);
  10080. function _next(value) {
  10081. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  10082. }
  10083. function _throw(err) {
  10084. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  10085. }
  10086. _next(undefined);
  10087. });
  10088. };
  10089. }
  10090. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  10091. /***/ }),
  10092. /***/ 35:
  10093. /*!**********************************************************************************************************!*\
  10094. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  10095. \**********************************************************************************************************/
  10096. /*! exports provided: default */
  10097. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  10098. "use strict";
  10099. __webpack_require__.r(__webpack_exports__);
  10100. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  10101. /* globals __VUE_SSR_CONTEXT__ */
  10102. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  10103. // This module is a runtime utility for cleaner component module output and will
  10104. // be included in the final webpack user bundle.
  10105. function normalizeComponent (
  10106. scriptExports,
  10107. render,
  10108. staticRenderFns,
  10109. functionalTemplate,
  10110. injectStyles,
  10111. scopeId,
  10112. moduleIdentifier, /* server only */
  10113. shadowMode, /* vue-cli only */
  10114. components, // fixed by xxxxxx auto components
  10115. renderjs // fixed by xxxxxx renderjs
  10116. ) {
  10117. // Vue.extend constructor export interop
  10118. var options = typeof scriptExports === 'function'
  10119. ? scriptExports.options
  10120. : scriptExports
  10121. // fixed by xxxxxx auto components
  10122. if (components) {
  10123. if (!options.components) {
  10124. options.components = {}
  10125. }
  10126. var hasOwn = Object.prototype.hasOwnProperty
  10127. for (var name in components) {
  10128. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  10129. options.components[name] = components[name]
  10130. }
  10131. }
  10132. }
  10133. // fixed by xxxxxx renderjs
  10134. if (renderjs) {
  10135. if(typeof renderjs.beforeCreate === 'function'){
  10136. renderjs.beforeCreate = [renderjs.beforeCreate]
  10137. }
  10138. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  10139. this[renderjs.__module] = this
  10140. });
  10141. (options.mixins || (options.mixins = [])).push(renderjs)
  10142. }
  10143. // render functions
  10144. if (render) {
  10145. options.render = render
  10146. options.staticRenderFns = staticRenderFns
  10147. options._compiled = true
  10148. }
  10149. // functional template
  10150. if (functionalTemplate) {
  10151. options.functional = true
  10152. }
  10153. // scopedId
  10154. if (scopeId) {
  10155. options._scopeId = 'data-v-' + scopeId
  10156. }
  10157. var hook
  10158. if (moduleIdentifier) { // server build
  10159. hook = function (context) {
  10160. // 2.3 injection
  10161. context =
  10162. context || // cached call
  10163. (this.$vnode && this.$vnode.ssrContext) || // stateful
  10164. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  10165. // 2.2 with runInNewContext: true
  10166. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  10167. context = __VUE_SSR_CONTEXT__
  10168. }
  10169. // inject component styles
  10170. if (injectStyles) {
  10171. injectStyles.call(this, context)
  10172. }
  10173. // register component module identifier for async chunk inferrence
  10174. if (context && context._registeredComponents) {
  10175. context._registeredComponents.add(moduleIdentifier)
  10176. }
  10177. }
  10178. // used by ssr in case component is cached and beforeCreate
  10179. // never gets called
  10180. options._ssrRegister = hook
  10181. } else if (injectStyles) {
  10182. hook = shadowMode
  10183. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  10184. : injectStyles
  10185. }
  10186. if (hook) {
  10187. if (options.functional) {
  10188. // for template-only hot-reload because in that case the render fn doesn't
  10189. // go through the normalizer
  10190. options._injectStyles = hook
  10191. // register for functioal component in vue file
  10192. var originalRender = options.render
  10193. options.render = function renderWithStyleInjection (h, context) {
  10194. hook.call(context)
  10195. return originalRender(h, context)
  10196. }
  10197. } else {
  10198. // inject component registration as beforeCreate hook
  10199. var existing = options.beforeCreate
  10200. options.beforeCreate = existing
  10201. ? [].concat(existing, hook)
  10202. : [hook]
  10203. }
  10204. }
  10205. return {
  10206. exports: scriptExports,
  10207. options: options
  10208. }
  10209. }
  10210. /***/ }),
  10211. /***/ 36:
  10212. /*!**************************************************************!*\
  10213. !*** D:/project/新医院随访2023/follow_applet/common/weapp-jwt.js ***!
  10214. \**************************************************************/
  10215. /*! no static exports found */
  10216. /***/ (function(module, exports, __webpack_require__) {
  10217. "use strict";
  10218. Object.defineProperty(exports, "__esModule", {
  10219. value: true
  10220. });
  10221. var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
  10222. var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
  10223. exports.weBtoa = function (string) {
  10224. string = String(string);
  10225. var bitmap,
  10226. a,
  10227. b,
  10228. c,
  10229. result = "",
  10230. i = 0,
  10231. rest = string.length % 3;
  10232. for (; i < string.length;) {
  10233. if ((a = string.charCodeAt(i++)) > 255 || (b = string.charCodeAt(i++)) > 255 || (c = string.charCodeAt(i++)) > 255) throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");
  10234. bitmap = a << 16 | b << 8 | c;
  10235. result += b64.charAt(bitmap >> 18 & 63) + b64.charAt(bitmap >> 12 & 63) + b64.charAt(bitmap >> 6 & 63) + b64.charAt(bitmap & 63);
  10236. }
  10237. return rest ? result.slice(0, rest - 3) + "===".substring(rest) : result;
  10238. };
  10239. exports.weAtob = function (string) {
  10240. string = String(string).replace(/[\t\n\f\r ]+/g, "");
  10241. if (!b64re.test(string)) throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  10242. string += "==".slice(2 - (string.length & 3));
  10243. var bitmap,
  10244. result = "",
  10245. r1,
  10246. r2,
  10247. i = 0;
  10248. for (; i < string.length;) {
  10249. bitmap = b64.indexOf(string.charAt(i++)) << 18 | b64.indexOf(string.charAt(i++)) << 12 | (r1 = b64.indexOf(string.charAt(i++))) << 6 | (r2 = b64.indexOf(string.charAt(i++)));
  10250. 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);
  10251. }
  10252. return result;
  10253. };
  10254. function b64DecodeUnicode(str) {
  10255. return decodeURIComponent(exports.weAtob(str).replace(/(.)/g, function (p) {
  10256. var code = p.charCodeAt(0).toString(16).toUpperCase();
  10257. if (code.length < 2) {
  10258. code = "0" + code;
  10259. }
  10260. return "%" + code;
  10261. }));
  10262. }
  10263. function base64_url_decode(str) {
  10264. var output = str.replace(/-/g, "+").replace(/_/g, "/");
  10265. switch (output.length % 4) {
  10266. case 0:
  10267. break;
  10268. case 2:
  10269. output += "==";
  10270. break;
  10271. case 3:
  10272. output += "=";
  10273. break;
  10274. default:
  10275. throw "Illegal base64url string!";
  10276. }
  10277. try {
  10278. return b64DecodeUnicode(output);
  10279. } catch (err) {
  10280. return exports.weAtob(output);
  10281. }
  10282. }
  10283. function weappJwtDecode(token, options) {
  10284. if (typeof token !== "string") {
  10285. throw "Invalid token specified";
  10286. }
  10287. options = options || {};
  10288. var pos = options.header === true ? 0 : 1;
  10289. try {
  10290. return JSON.parse(base64_url_decode(token.split(".")[pos]));
  10291. } catch (e) {
  10292. throw "Invalid token specified: " + e.message;
  10293. }
  10294. }
  10295. exports.default = weappJwtDecode;
  10296. /***/ }),
  10297. /***/ 37:
  10298. /*!********************************************************!*\
  10299. !*** D:/project/新医院随访2023/follow_applet/common/api.js ***!
  10300. \********************************************************/
  10301. /*! no static exports found */
  10302. /***/ (function(module, exports, __webpack_require__) {
  10303. "use strict";
  10304. /* WEBPACK VAR INJECTION */(function(uni) {
  10305. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  10306. Object.defineProperty(exports, "__esModule", {
  10307. value: true
  10308. });
  10309. exports.requestFile = exports.requestBase = void 0;
  10310. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
  10311. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  10312. var _config = _interopRequireDefault(__webpack_require__(/*! ../config.js */ 38));
  10313. var getDomain = function getDomain(uri, method, type) {
  10314. var serverUrl = _config.default.serverUrl;
  10315. var fileUrl = _config.default.serverFile;
  10316. if (type && type == 'file') return fileUrl + "/visit/api/files" + uri;else return serverUrl + "/visit" + uri;
  10317. };
  10318. // 获取token
  10319. var getToken = function getToken() {
  10320. try {
  10321. var value = uni.getStorageSync('token');
  10322. if (value) return value;
  10323. } catch (_unused) {}
  10324. };
  10325. var requestBase = /*#__PURE__*/function () {
  10326. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(uri) {
  10327. var method,
  10328. data,
  10329. type,
  10330. baseUrl,
  10331. header,
  10332. token,
  10333. _args = arguments;
  10334. return _regenerator.default.wrap(function _callee$(_context) {
  10335. while (1) {
  10336. switch (_context.prev = _context.next) {
  10337. case 0:
  10338. method = _args.length > 1 && _args[1] !== undefined ? _args[1] : 'GET';
  10339. data = _args.length > 2 ? _args[2] : undefined;
  10340. type = _args.length > 3 ? _args[3] : undefined;
  10341. baseUrl = getDomain(uri, method, type);
  10342. header = {};
  10343. token = uni.getStorageSync('token');
  10344. if (token) header.token = token;
  10345. return _context.abrupt("return", new Promise(function (resolve, reject) {
  10346. uni.request({
  10347. url: baseUrl,
  10348. method: method || 'GET',
  10349. data: data || {},
  10350. header: header,
  10351. success: function success(res) {
  10352. resolve(res.data);
  10353. },
  10354. fail: function fail(err) {
  10355. uni.showToast({
  10356. title: '请求接口失败',
  10357. icon: 'fail'
  10358. });
  10359. reject(err.data);
  10360. }
  10361. });
  10362. }));
  10363. case 8:
  10364. case "end":
  10365. return _context.stop();
  10366. }
  10367. }
  10368. }, _callee);
  10369. }));
  10370. return function requestBase(_x) {
  10371. return _ref.apply(this, arguments);
  10372. };
  10373. }();
  10374. exports.requestBase = requestBase;
  10375. var requestFile = function requestFile(uri, method, data, type) {
  10376. var baseUrl = getDomain(uri, method, type);
  10377. return new Promise(function (resolve, reject) {
  10378. uni.uploadFile({
  10379. url: baseUrl,
  10380. filePath: data,
  10381. name: method || 'file',
  10382. formData: {},
  10383. success: function success(res) {
  10384. var data = JSON.parse(res.data);
  10385. if (data.errcode != '0') {
  10386. return uni.showToast({
  10387. title: data.errmsg,
  10388. icon: 'error'
  10389. });
  10390. }
  10391. resolve(data);
  10392. },
  10393. fail: function fail(err) {
  10394. var data = JSON.parse(err.data);
  10395. uni.showToast({
  10396. title: '请求接口失败',
  10397. icon: 'fail'
  10398. });
  10399. reject(data);
  10400. }
  10401. });
  10402. });
  10403. };
  10404. exports.requestFile = requestFile;
  10405. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  10406. /***/ }),
  10407. /***/ 38:
  10408. /*!****************************************************!*\
  10409. !*** D:/project/新医院随访2023/follow_applet/config.js ***!
  10410. \****************************************************/
  10411. /*! no static exports found */
  10412. /***/ (function(module, exports, __webpack_require__) {
  10413. "use strict";
  10414. /* WEBPACK VAR INJECTION */(function(uni) {
  10415. Object.defineProperty(exports, "__esModule", {
  10416. value: true
  10417. });
  10418. exports.default = void 0;
  10419. // 微信版本
  10420. var wx_min = uni.getAccountInfoSync();
  10421. // 设备信息
  10422. var system = uni.getSystemInfoSync();
  10423. var wx_projectkey = 'followApp';
  10424. if (system.uniPlatform == 'mp-weixin') {
  10425. var envV = wx_min.miniProgram.envVersion;
  10426. }
  10427. var _default = {
  10428. serverFile: 'http://192.168.1.113:8890',
  10429. serverUrl: 'http://192.168.1.113:8890',
  10430. wx_projectkey: wx_projectkey,
  10431. wx_miniProgram: wx_min.miniProgram,
  10432. system: system,
  10433. share: {},
  10434. menuList: [{
  10435. icon: "icon-fabu",
  10436. title: "基本信息",
  10437. route: "pagesMy/basic/index"
  10438. }, {
  10439. icon: "icon-youhuijuan",
  10440. title: "群组信息",
  10441. route: "pagesMy/group/index"
  10442. }, {
  10443. icon: "icon-7yijianfankui",
  10444. title: "答复记录",
  10445. route: "pagesMy/answer/index"
  10446. }],
  10447. china: [
  10448. //全国地址
  10449. {
  10450. name: '北京市',
  10451. city: [{
  10452. name: '北京市',
  10453. area: ['东城区', '西城区', '崇文区', '宣武区', '朝阳区', '丰台区', '石景山区', '海淀区', '门头沟区', '房山区', '通州区', '顺义区', '昌平区', '大兴区', '平谷区', '怀柔区', '密云县', '延庆县']
  10454. }]
  10455. }, {
  10456. name: '天津市',
  10457. city: [{
  10458. name: '天津市',
  10459. area: ['和平区', '河东区', '河西区', '南开区', '河北区', '红桥区', '塘沽区', '汉沽区', '大港区', '东丽区', '西青区', '津南区', '北辰区', '武清区', '宝坻区', '宁河县', '静海县', '蓟 县']
  10460. }]
  10461. }, {
  10462. name: '河北省',
  10463. city: [{
  10464. name: '石家庄市',
  10465. area: ['长安区', '桥东区', '桥西区', '新华区', '郊 区', '井陉矿区', '井陉县', '正定县', '栾城县', '行唐县', '灵寿县', '高邑县', '深泽县', '赞皇县', '无极县', '平山县', '元氏县', '赵 县', '辛集市', '藁', '晋州市', '新乐市', '鹿泉市']
  10466. }, {
  10467. name: '唐山市',
  10468. area: ['路南区', '路北区', '古冶区', '开平区', '新 区', '丰润县', '滦 县', '滦南县', '乐亭县', '迁西县', '玉田县', '唐海县', '遵化市', '丰南市', '迁安市']
  10469. }, {
  10470. name: '秦皇岛市',
  10471. area: ['海港区', '山海关区', '北戴河区', '青龙满族自治县', '昌黎县', '抚宁县', '卢龙县']
  10472. }, {
  10473. name: '邯郸市',
  10474. area: ['邯山区', '丛台区', '复兴区', '峰峰矿区', '邯郸县', '临漳县', '成安县', '大名县', '涉 县', '磁 县', '肥乡县', '永年县', '邱 县', '鸡泽县', '广平县', '馆陶县', '魏 县', '曲周县', '武安市']
  10475. }, {
  10476. name: '邢台市',
  10477. area: ['桥东区', '桥西区', '邢台县', '临城县', '内丘县', '柏乡县', '隆尧县', '任 县', '南和县', '宁晋县', '巨鹿县', '新河县', '广宗县', '平乡县', '威 县', '清河县', '临西县', '南宫市', '沙河市']
  10478. }, {
  10479. name: '保定市',
  10480. area: ['新市区', '北市区', '南市区', '满城县', '清苑县', '涞水县', '阜平县', '徐水县', '定兴县', '唐 县', '高阳县', '容城县', '涞源县', '望都县', '安新县', '易 县', '曲阳县', '蠡 县', '顺平县', '博野', '雄县', '涿州市', '定州市', '安国市', '高碑店市']
  10481. }, {
  10482. name: '张家口',
  10483. area: ['桥东区', '桥西区', '宣化区', '下花园区', '宣化县', '张北县', '康保县', '沽源县', '尚义县', '蔚 县', '阳原县', '怀安县', '万全县', '怀来县', '涿鹿县', '赤城县', '崇礼县']
  10484. }, {
  10485. name: '承德市',
  10486. area: ['双桥区', '双滦区', '鹰手营子矿区', '承德县', '兴隆县', '平泉县', '滦平县', '隆化县', '丰宁满族自治县', '宽城满族自治县', '围场满族蒙古族自治县']
  10487. }, {
  10488. name: '沧州市',
  10489. area: ['新华区', '运河区', '沧 县', '青 县', '东光县', '海兴县', '盐山县', '肃宁县', '南皮县', '吴桥县', '献 县', '孟村回族自治县', '泊头市', '任丘市', '黄骅市', '河间市']
  10490. }, {
  10491. name: '廊坊市',
  10492. area: ['安次区', '固安县', '永清县', '香河县', '大城县', '文安县', '大厂回族自治县', '霸州市', '三河市']
  10493. }, {
  10494. name: '衡水市',
  10495. area: ['桃城区', '枣强县', '武邑县', '武强县', '饶阳县', '安平县', '故城县', '景 县', '阜城县', '冀州市', '深州市']
  10496. }]
  10497. }, {
  10498. name: '山西省',
  10499. city: [{
  10500. name: '太原市',
  10501. area: ['小店区', '迎泽区', '杏花岭区', '尖草坪区', '万柏林区', '晋源区', '清徐县', '阳曲县', '娄烦县', '古交市']
  10502. }, {
  10503. name: '大同市',
  10504. area: ['城 区', '矿 区', '南郊区', '新荣区', '阳高县', '天镇县', '广灵县', '灵丘县', '浑源县', '左云县', '大同县']
  10505. }, {
  10506. name: '阳泉市',
  10507. area: ['城 区', '矿 区', '郊 区', '平定县', '盂 县']
  10508. }, {
  10509. name: '长治市',
  10510. area: ['城 区', '郊 区', '长治县', '襄垣县', '屯留县', '平顺县', '黎城县', '壶关县', '长子县', '武乡县', '沁 县', '沁源县', '潞城市']
  10511. }, {
  10512. name: '晋城市',
  10513. area: ['城 区', '沁水县', '阳城县', '陵川县', '泽州县', '高平市']
  10514. }, {
  10515. name: '朔州市',
  10516. area: ['朔城区', '平鲁区', '山阴县', '应 县', '右玉县', '怀仁县']
  10517. }, {
  10518. name: '忻州市',
  10519. area: ['忻府区', '原平市', '定襄县', '五台县', '代 县', '繁峙县', '宁武县', '静乐县', '神池县', '五寨县', '岢岚县', '河曲县', '保德县', '偏关县']
  10520. }, {
  10521. name: '吕梁市',
  10522. area: ['离石区', '孝义市', '汾阳市', '文水县', '交城县', '兴 县', '临 县', '柳林县', '石楼县', '岚 县', '方山县', '中阳县', '交口县']
  10523. }, {
  10524. name: '晋中市',
  10525. area: ['榆次市', '介休市', '榆社县', '左权县', '和顺县', '昔阳县', '寿阳县', '太谷县', '祁 县', '平遥县', '灵石县']
  10526. }, {
  10527. name: '临汾市',
  10528. area: ['临汾市', '侯马市', '霍州市', '曲沃县', '翼城县', '襄汾县', '洪洞县', '古 县', '安泽县', '浮山县', '吉 县', '乡宁县', '蒲 县', '大宁县', '永和县', '隰 县', '汾西县']
  10529. }, {
  10530. name: '运城市',
  10531. area: ['运城市', '永济市', '河津市', '芮城县', '临猗县', '万荣县', '新绛县', '稷山县', '闻喜县', '夏 县', '绛 县', '平陆县', '垣曲县']
  10532. }]
  10533. }, {
  10534. name: '内蒙古',
  10535. city: [{
  10536. name: '呼和浩特市',
  10537. area: ['新城区', '回民区', '玉泉区', '郊 区', '土默特左旗', '托克托县', '和林格尔县', '清水河县', '武川县']
  10538. }, {
  10539. name: '包头市',
  10540. area: ['东河区', '昆都伦区', '青山区', '石拐矿区', '白云矿区', '郊 区', '土默特右旗', '固阳县', '达尔罕茂明安联合旗']
  10541. }, {
  10542. name: '乌海市',
  10543. area: ['海勃湾区', '海南区', '乌达区']
  10544. }, {
  10545. name: '赤峰市',
  10546. area: ['红山区', '元宝山区', '松山区', '阿鲁科尔沁旗', '巴林左旗', '巴林右旗', '林西县', '克什克腾旗', '翁牛特旗', '喀喇沁旗', '宁城县', '敖汉旗']
  10547. }, {
  10548. name: '呼伦贝尔市',
  10549. area: ['海拉尔市', '满洲里市', '扎兰屯市', '牙克石市', '根河市', '额尔古纳市', '阿荣旗', '莫力达瓦达斡尔族自治旗', '鄂伦春自治旗', '鄂温克族自治旗', '新巴尔虎右旗', '新巴尔虎左旗', '陈巴尔虎旗']
  10550. }, {
  10551. name: '兴安盟',
  10552. area: ['乌兰浩特市', '阿尔山市', '科尔沁右翼前旗', '科尔沁右翼中旗', '扎赉特旗', '突泉县']
  10553. }, {
  10554. name: '通辽市',
  10555. area: ['科尔沁区', '霍林郭勒市', '科尔沁左翼中旗', '科尔沁左翼后旗', '开鲁县', '库伦旗', '奈曼旗', '扎鲁特旗']
  10556. }, {
  10557. name: '锡林郭勒盟',
  10558. area: ['二连浩特市', '锡林浩特市', '阿巴嘎旗', '苏尼特左旗', '苏尼特右旗', '东乌珠穆沁旗', '西乌珠穆沁旗', '太仆寺旗', '镶黄旗', '正镶白旗', '正蓝旗', '多伦县']
  10559. }, {
  10560. name: '乌兰察布盟',
  10561. area: ['集宁市', '丰镇市', '卓资县', '化德县', '商都县', '兴和县', '凉城县', '察哈尔右翼前旗', '察哈尔右翼中旗', '察哈尔右翼后旗', '四子王旗']
  10562. }, {
  10563. name: '伊克昭盟',
  10564. area: ['东胜市', '达拉特旗', '准格尔旗', '鄂托克前旗', '鄂托克旗', '杭锦旗', '乌审旗', '伊金霍洛旗']
  10565. }, {
  10566. name: '巴彦淖尔盟',
  10567. area: ['临河市', '五原县', '磴口县', '乌拉特前旗', '乌拉特中旗', '乌拉特后旗', '杭锦后旗']
  10568. }, {
  10569. name: '阿拉善盟',
  10570. area: ['阿拉善左旗', '阿拉善右旗', '额济纳旗']
  10571. }]
  10572. }, {
  10573. name: '辽宁省',
  10574. city: [{
  10575. name: '沈阳市',
  10576. area: ['沈河区', '皇姑区', '和平区', '大东区', '铁西区', '苏家屯区', '东陵区', '于洪区', '新民市', '法库县', '辽中县', '康平县', '新城子区']
  10577. }, {
  10578. name: '大连市',
  10579. area: ['西岗区', '中山区', '沙河口区', '甘井子区', '旅顺口区', '金州区', '瓦房店市', '普兰店市', '庄河市', '长海县']
  10580. }, {
  10581. name: '鞍山市',
  10582. area: ['铁东区', '铁西区', '立山区', '千山区', '海城市', '台安县', '岫岩满族自治县']
  10583. }, {
  10584. name: '抚顺市',
  10585. area: ['顺城区', '新抚区', '东洲区', '望花区', '抚顺县', '清原满族自治县', '新宾满族自治县']
  10586. }, {
  10587. name: '本溪市',
  10588. area: ['平山区', '明山区', '溪湖区', '南芬区', '本溪满族自治县', '桓仁满族自治县']
  10589. }, {
  10590. name: '丹东市',
  10591. area: ['振兴区', '元宝区', '振安区', '东港市', '凤城市', '宽甸满族自治县']
  10592. }, {
  10593. name: '锦州市',
  10594. area: ['太和区', '古塔区', '凌河区', '凌海市', '黑山县', '义县', '北宁市']
  10595. }, {
  10596. name: '营口市',
  10597. area: ['站前区', '西市区', '鲅鱼圈区', '老边区', '大石桥市', '盖州市']
  10598. }, {
  10599. name: '阜新市',
  10600. area: ['海州区', '新邱区', '太平区', '清河门区', '细河区', '彰武县', '阜新蒙古族自治县']
  10601. }, {
  10602. name: '辽阳市',
  10603. area: ['白塔区', '文圣区', '宏伟区', '太子河区', '弓长岭区', '灯塔市', '辽阳县']
  10604. }, {
  10605. name: '盘锦',
  10606. area: ['双台子区', '兴隆台区', '盘山县', '大洼县']
  10607. }, {
  10608. name: '铁岭市',
  10609. area: ['银州区', '清河区', '调兵山市', '开原市', '铁岭县', '昌图县', '西丰县']
  10610. }, {
  10611. name: '朝阳市',
  10612. area: ['双塔区', '龙城区', '凌源市', '北票市', '朝阳县', '建平县', '喀喇沁左翼蒙古族自治县']
  10613. }, {
  10614. name: '葫芦岛市',
  10615. area: ['龙港区', '南票区', '连山区', '兴城市', '绥中县', '建昌县']
  10616. }]
  10617. }, {
  10618. name: '吉林省',
  10619. city: [{
  10620. name: '长春市',
  10621. area: ['朝阳区', '宽城区', '二道区', '南关区', '绿园区', '双阳区', '九台市', '榆树市', '德惠市', '农安县']
  10622. }, {
  10623. name: '吉林市',
  10624. area: ['船营区', '昌邑区', '龙潭区', '丰满区', '舒兰市', '桦甸市', '蛟河市', '磐石市', '永吉县']
  10625. }, {
  10626. name: '四平',
  10627. area: ['铁西区', '铁东区', '公主岭市', '双辽市', '梨树县', '伊通满族自治县']
  10628. }, {
  10629. name: '辽源市',
  10630. area: ['龙山区', '西安区', '东辽县', '东丰县']
  10631. }, {
  10632. name: '通化市',
  10633. area: ['东昌区', '二道江区', '梅河口市', '集安市', '通化县', '辉南县', '柳河县']
  10634. }, {
  10635. name: '白山市',
  10636. area: ['八道江区', '江源区', '临江市', '靖宇县', '抚松县', '长白朝鲜族自治县']
  10637. }, {
  10638. name: '松原市',
  10639. area: ['宁江区', '乾安县', '长岭县', '扶余县', '前郭尔罗斯蒙古族自治县']
  10640. }, {
  10641. name: '白城市',
  10642. area: ['洮北区', '大安市', '洮南市', '镇赉县', '通榆县']
  10643. }, {
  10644. name: '延边朝鲜族自治州',
  10645. area: ['延吉市', '图们市', '敦化市', '龙井市', '珲春市', '和龙市', '安图县', '汪清县']
  10646. }]
  10647. }, {
  10648. name: '黑龙江省',
  10649. city: [{
  10650. name: '哈尔滨市',
  10651. area: ['松北区', '道里区', '南岗区', '平房区', '香坊区', '道外区', '呼兰区', '阿城区', '双城市', '尚志市', '五常市', '宾县', '方正县', '通河县', '巴彦县', '延寿县', '木兰县', '依兰县']
  10652. }, {
  10653. name: '齐齐哈尔市',
  10654. area: ['龙沙区', '昂昂溪区', '铁锋区', '建华区', '富拉尔基区', '碾子山区', '梅里斯达斡尔族区', '讷河市', '富裕县', '拜泉县', '甘南县', '依安县', '克山县', '泰来县', '克东县', '龙江县']
  10655. }, {
  10656. name: '鹤岗市',
  10657. area: ['兴山区', '工农区', '南山区', '兴安区', '向阳区', '东山区', '萝北县', '绥滨县']
  10658. }, {
  10659. name: '双鸭山',
  10660. area: ['尖山区', '岭东区', '四方台区', '宝山区', '集贤县', '宝清县', '友谊县', '饶河县']
  10661. }, {
  10662. name: '鸡西市',
  10663. area: ['鸡冠区', '恒山区', '城子河区', '滴道区', '梨树区', '麻山区', '密山市', '虎林市', '鸡东县']
  10664. }, {
  10665. name: '大庆市',
  10666. area: ['萨尔图区', '红岗区', '龙凤区', '让胡路区', '大同区', '林甸县', '肇州县', '肇源县', '杜尔伯特蒙古族自治县']
  10667. }, {
  10668. name: '伊春市',
  10669. area: ['伊春区', '带岭区', '南岔区', '金山屯区', '西林区', '美溪区', '乌马河区', '翠峦区', '友好区', '上甘岭区', '五营区', '红星区', '新青区', '汤旺河区', '乌伊岭区', '铁力市', '嘉荫县']
  10670. }, {
  10671. name: '牡丹江市',
  10672. area: ['爱民区', '东安区', '阳明区', '西安区', '绥芬河市', '宁安市', '海林市', '穆棱市', '林口县', '东宁县']
  10673. }, {
  10674. name: '佳木斯市',
  10675. area: ['向阳区', '前进区', '东风区', '郊区', '同江市', '富锦市', '桦川县', '抚远县', '桦南县', '汤原县']
  10676. }, {
  10677. name: '七台河市',
  10678. area: ['桃山区', '新兴区', '茄子河区', '勃利县']
  10679. }, {
  10680. name: '黑河市',
  10681. area: ['爱辉区', '北安市', '五大连池市', '逊克县', '嫩江县', '孙吴县']
  10682. }, {
  10683. name: '绥化市',
  10684. area: ['北林区', '安达市', '肇东市', '海伦市', '绥棱县', '兰西县', '明水县', '青冈县', '庆安县', '望奎县']
  10685. }, {
  10686. name: '大兴安岭地区',
  10687. area: ['呼玛县', '塔河县', '漠河县', '大兴安岭辖区']
  10688. }]
  10689. }, {
  10690. name: '上海市',
  10691. city: [{
  10692. name: '上海市',
  10693. area: ['黄浦区', '卢湾区', '徐汇区', '长宁区', '静安区', '普陀区', '闸北区', '虹口区', '杨浦区', '宝山区', '闵行区', '嘉定区', '松江区', '金山区', '青浦区', '南汇区', '奉贤区', '浦东新区', '崇明县']
  10694. }]
  10695. }, {
  10696. name: '江苏省',
  10697. city: [{
  10698. name: '南京市',
  10699. area: ['玄武区', '白下区', '秦淮区', '建邺区', '鼓楼区', '下关区', '栖霞区', '雨花台区', '浦口区', '江宁区', '六合区', '溧水县', '高淳县']
  10700. }, {
  10701. name: '苏州市',
  10702. area: ['金阊区', '平江区', '沧浪区', '虎丘区', '吴中区', '相城区', '常熟市', '张家港市', '昆山市', '吴江市', '太仓市']
  10703. }, {
  10704. name: '无锡市',
  10705. area: ['崇安区', '南长区', '北塘区', '滨湖区', '锡山区', '惠山区', '江阴市', '宜兴市']
  10706. }, {
  10707. name: '常州市',
  10708. area: ['钟楼区', '天宁区', '戚墅堰区', '新北区', '武进区', '金坛市', '溧阳市']
  10709. }, {
  10710. name: '镇江市',
  10711. area: ['京口区', '润州区', '丹徒区', '丹阳市', '扬中市', '句容市']
  10712. }, {
  10713. name: '南通市',
  10714. area: ['崇川区', '港闸区', '通州市', '如皋市', '海门市', '启东市', '海安县', '如东县']
  10715. }, {
  10716. name: '泰州市',
  10717. area: ['海陵区', '高港区', '姜堰市', '泰兴市', '靖江市', '兴化市']
  10718. }, {
  10719. name: '扬州市',
  10720. area: ['广陵区', '维扬区', '邗江区', '江都市', '仪征市', '高邮市', '宝应县']
  10721. }, {
  10722. name: '盐城市',
  10723. area: ['亭湖区', '盐都区', '大丰市', '东台市', '建湖县', '射阳县', '阜宁县', '滨海县', '响水县']
  10724. }, {
  10725. name: '连云港市',
  10726. area: ['新浦区', '海州区', '连云区', '东海县', '灌云县', '赣榆县', '灌南县']
  10727. }, {
  10728. name: '徐州市',
  10729. area: ['云龙区', '鼓楼区', '九里区', '泉山区', '贾汪区', '邳州市', '新沂市', '铜山县', '睢宁县', '沛县', '丰县']
  10730. }, {
  10731. name: '淮安市',
  10732. area: ['清河区', '清浦区', '楚州区', '淮阴区', '涟水县', '洪泽县', '金湖县', '盱眙县']
  10733. }, {
  10734. name: '宿迁市',
  10735. area: ['宿城区', '宿豫区', '沭阳县', '泗阳县', '泗洪县']
  10736. }]
  10737. }, {
  10738. name: '浙江省',
  10739. city: [{
  10740. name: '杭州市',
  10741. area: ['拱墅区', '西湖区', '上城区', '下城区', '江干区', '滨江区', '余杭区', '萧山区', '建德市', '富阳市', '临安市', '桐庐县', '淳安县']
  10742. }, {
  10743. name: '宁波市',
  10744. area: ['海曙区', '江东区', '江北区', '镇海区', '北仑区', '鄞州区', '余姚市', '慈溪市', '奉化市', '宁海县', '象山县']
  10745. }, {
  10746. name: '温州市',
  10747. area: ['鹿城区', '龙湾区', '瓯海区', '瑞安市', '乐清市', '永嘉县', '洞头县', '平阳县', '苍南县', '文成县', '泰顺县']
  10748. }, {
  10749. name: '嘉兴市',
  10750. area: ['秀城区', '秀洲区', '海宁市', '平湖市', '桐乡市', '嘉善县', '海盐县']
  10751. }, {
  10752. name: '湖州市',
  10753. area: ['吴兴区', '南浔区', '长兴县', '德清县', '安吉县']
  10754. }, {
  10755. name: '绍兴市',
  10756. area: ['越城区', '诸暨市', '上虞市', '嵊州市', '绍兴县', '新昌县']
  10757. }, {
  10758. name: '金华市',
  10759. area: ['婺城区', '金东区', '兰溪市', '义乌市', '东阳市', '永康市', '武义县', '浦江县', '磐安县']
  10760. }, {
  10761. name: '衢州市',
  10762. area: ['柯城区', '衢江区', '江山市', '龙游县', '常山县', '开化县']
  10763. }, {
  10764. name: '舟山市',
  10765. area: ['定海区', '普陀区', '岱山县', '嵊泗县']
  10766. }, {
  10767. name: '台州市',
  10768. area: ['椒江区', '黄岩区', '路桥区', '临海市', '温岭市', '玉环县', '天台县', '仙居县', '三门县']
  10769. }, {
  10770. name: '丽水市',
  10771. area: ['莲都区', '龙泉市', '缙云县', '青田县', '云和县', '遂昌县', '松阳县', '庆元县', '景宁畲族自治县']
  10772. }]
  10773. }, {
  10774. name: '安徽省',
  10775. city: [{
  10776. name: '合肥市',
  10777. area: ['庐阳区', '瑶海区', '蜀山区', '包河区', '长丰县', '肥东县', '肥西县']
  10778. }, {
  10779. name: '芜湖市',
  10780. area: ['镜湖区', '弋江区', '鸠江区', '三山区', '芜湖县', '南陵县', '繁昌县']
  10781. }, {
  10782. name: '蚌埠市',
  10783. area: ['蚌山区', '龙子湖区', '禹会区', '淮上区', '怀远县', '固镇县', '五河县']
  10784. }, {
  10785. name: '淮南市',
  10786. area: ['田家庵区', '大通区', '谢家集区', '八公山区', '潘集区', '凤台县']
  10787. }, {
  10788. name: '马鞍山市',
  10789. area: ['雨山区', '花山区', '金家庄区', '当涂县']
  10790. }, {
  10791. name: '淮北市',
  10792. area: ['相山区', '杜集区', '烈山区', '濉溪县']
  10793. }, {
  10794. name: '铜陵市',
  10795. area: ['铜官山区', '狮子山区', '郊区', '铜陵县']
  10796. }, {
  10797. name: '安庆市',
  10798. area: ['迎江区', '大观区', '宜秀区', '桐城市', '宿松县', '枞阳县', '太湖县', '怀宁县', '岳西县', '望江县', '潜山县']
  10799. }, {
  10800. name: '黄山市',
  10801. area: ['屯溪区', '黄山区', '徽州区', '休宁县', '歙县', '祁门县', '黟县']
  10802. }, {
  10803. name: '滁州市',
  10804. area: ['琅琊区', '南谯区', '天长市', '明光市', '全椒县', '来安县', '定远县', '凤阳县']
  10805. }, {
  10806. name: '阜阳市',
  10807. area: ['颍州区', '颍东区', '颍泉区', '界首市', '临泉县', '颍上县', '阜南县', '太和县']
  10808. }, {
  10809. name: '宿州市',
  10810. area: ['埇桥区', '萧县', '泗县', '砀山县', '灵璧县']
  10811. }, {
  10812. name: '巢湖市',
  10813. area: ['居巢区', '含山县', '无为县', '庐江县', '和县']
  10814. }, {
  10815. name: '六安市',
  10816. area: ['金安区', '裕安区', '寿县', '霍山县', '霍邱县', '舒城县', '金寨县']
  10817. }, {
  10818. name: '亳州市',
  10819. area: ['谯城区', '利辛县', '涡阳县', '蒙城县']
  10820. }, {
  10821. name: '池州市',
  10822. area: ['贵池区', '东至县', '石台县', '青阳县']
  10823. }, {
  10824. name: '宣城市',
  10825. area: ['宣州区', '宁国市', '广德县', '郎溪县', '泾县', '旌德县', '绩溪县']
  10826. }]
  10827. }, {
  10828. name: '福建省',
  10829. city: [{
  10830. name: '福州市',
  10831. area: ['鼓楼区', '台江区', '仓山区', '马尾区', '晋安区', '福清市', '长乐市', '闽侯县', '闽清县', '永泰县', '连江县', '罗源县', '平潭县']
  10832. }, {
  10833. name: '厦门市',
  10834. area: ['思明区', '海沧区', '湖里区', '集美区', '同安区', '翔安区']
  10835. }, {
  10836. name: '莆田市',
  10837. area: ['城厢区', '涵江区', '荔城区', '秀屿区', '仙游县']
  10838. }, {
  10839. name: '三明市',
  10840. area: ['梅列区', '三元区', '永安市', '明溪县', '将乐县', '大田县', '宁化县', '建宁县', '沙县', '尤溪县', '清流县', '泰宁县']
  10841. }, {
  10842. name: '泉州市',
  10843. area: ['鲤城区', '丰泽区', '洛江区', '泉港区', '石狮市', '晋江市', '南安市', '惠安县', '永春县', '安溪县', '德化县', '金门县']
  10844. }, {
  10845. name: '漳州市',
  10846. area: ['芗城区', '龙文区', '龙海市', '平和县', '南靖县', '诏安县', '漳浦县', '华安县', '东山县', '长泰县', '云霄县']
  10847. }, {
  10848. name: '南平市',
  10849. area: ['延平区', '建瓯市', '邵武市', '武夷山市', '建阳市', '松溪县', '光泽县', '顺昌县', '浦城县', '政和县']
  10850. }, {
  10851. name: '龙岩市',
  10852. area: ['新罗区', '漳平市', '长汀县', '武平县', '上杭县', '永定县', '连城县']
  10853. }, {
  10854. name: '宁德市',
  10855. area: ['蕉城区', '福安市', '福鼎市', '寿宁县', '霞浦县', '柘荣县', '屏南县', '古田县', '周宁县']
  10856. }]
  10857. }, {
  10858. name: '江西省',
  10859. city: [{
  10860. name: '南昌市',
  10861. area: ['东湖区', '西湖区', '青云谱区', '湾里区', '青山湖区', '新建县', '南昌县', '进贤县', '安义县']
  10862. }, {
  10863. name: '景德镇市',
  10864. area: ['珠山区', '昌江区', '乐平市', '浮梁县']
  10865. }, {
  10866. name: '萍乡市',
  10867. area: ['安源区', '湘东区', '莲花县', '上栗县', '芦溪县']
  10868. }, {
  10869. name: '九江市',
  10870. area: ['浔阳区', '庐山区', '瑞昌市', '九江县', '星子县', '武宁县', '彭泽县', '永修县', '修水县', '湖口县', '德安县', '都昌县']
  10871. }, {
  10872. name: '新余市',
  10873. area: ['渝水区', '分宜县']
  10874. }, {
  10875. name: '鹰潭市',
  10876. area: ['月湖区', '贵溪市', '余江县']
  10877. }, {
  10878. name: '赣州市',
  10879. area: ['章贡区', '瑞金市', '南康市', '石城县', '安远县', '赣县', '宁都县', '寻乌县', '兴国县', '定南县', '上犹县', '于都县', '龙南县', '崇义县', '信丰县', '全南县', '大余县', '会昌县']
  10880. }, {
  10881. name: '吉安市',
  10882. area: ['吉州区', '青原区', '井冈山市', '吉安县', '永丰县', '永新县', '新干县', '泰和县', '峡江县', '遂川县', '安福县', '吉水县', '万安县']
  10883. }, {
  10884. name: '宜春市',
  10885. area: ['袁州区', '丰城市', '樟树市', '高安市', '铜鼓县', '靖安县', '宜丰县', '奉新县', '万载县', '上高县']
  10886. }, {
  10887. name: '抚州市',
  10888. area: ['临川区', '南丰县', '乐安县', '金溪县', '南城县', '东乡县', '资溪县', '宜黄县', '广昌县', '黎川县', '崇仁县']
  10889. }, {
  10890. name: '上饶市',
  10891. area: ['信州区', '德兴市', '上饶县', '广丰县', '鄱阳县', '婺源县', '铅山县', '余干县', '横峰县', '弋阳县', '玉山县', '万年县']
  10892. }]
  10893. }, {
  10894. name: '山东省',
  10895. city: [{
  10896. name: '济南市',
  10897. area: ['市中区', '历下区', '天桥区', '槐荫区', '历城区', '长清区', '章丘市', '平阴县', '济阳县', '商河县']
  10898. }, {
  10899. name: '青岛市',
  10900. area: ['市南区', '市北区', '城阳区', '四方区', '李沧区', '黄岛区', '崂山区', '胶南市', '胶州市', '平度市', '莱西市', '即墨市']
  10901. }, {
  10902. name: '淄博市',
  10903. area: ['张店区', '临淄区', '淄川区', '博山区', '周村区', '桓台县', '高青县', '沂源县']
  10904. }, {
  10905. name: '枣庄市',
  10906. area: ['市中区', '山亭区', '峄城区', '台儿庄区', '薛城区', '滕州市']
  10907. }, {
  10908. name: '东营市',
  10909. area: ['东营区', '河口区', '垦利县', '广饶县', '利津县']
  10910. }, {
  10911. name: '烟台市',
  10912. area: ['芝罘区', '福山区', '牟平区', '莱山区', '龙口市', '莱阳市', '莱州市', '招远市', '蓬莱市', '栖霞市', '海阳市', '长岛县']
  10913. }, {
  10914. name: '潍坊市',
  10915. area: ['潍城区', '寒亭区', '坊子区', '奎文区', '青州市', '诸城市', '寿光市', '安丘市', '高密市', '昌邑市', '昌乐县', '临朐县']
  10916. }, {
  10917. name: '济宁市',
  10918. area: ['市中区', '任城区', '曲阜市', '兖州市', '邹城市', '鱼台县', '金乡县', '嘉祥县', '微山县', '汶上县', '泗水县', '梁山县']
  10919. }, {
  10920. name: '泰安市',
  10921. area: ['泰山区', '岱岳区', '新泰市', '肥城市', '宁阳县', '东平县']
  10922. }, {
  10923. name: '威海市',
  10924. area: ['环翠区', '乳山市', '文登市', '荣成市']
  10925. }, {
  10926. name: '日照市',
  10927. area: ['东港区', '岚山区', '五莲县', '莒县']
  10928. }, {
  10929. name: '莱芜市',
  10930. area: ['莱城区', '钢城区']
  10931. }, {
  10932. name: '临沂市',
  10933. area: ['兰山区', '罗庄区', '河东区', '沂南县', '郯城县', '沂水县', '苍山县', '费县', '平邑县', '莒南县', '蒙阴县', '临沭县']
  10934. }, {
  10935. name: '德州市',
  10936. area: ['德城区', '乐陵市', '禹城市', '陵县', '宁津县', '齐河县', '武城县', '庆云县', '平原县', '夏津县', '临邑县']
  10937. }, {
  10938. name: '聊城市',
  10939. area: ['东昌府区', '临清市', '高唐县', '阳谷县', '茌平县', '莘县', '东阿县', '冠县']
  10940. }, {
  10941. name: '滨州市',
  10942. area: ['滨城区', '邹平县', '沾化县', '惠民县', '博兴县', '阳信县', '无棣县']
  10943. }, {
  10944. name: '菏泽市',
  10945. area: ['牡丹区', '鄄城县', '单县', '郓城县', '曹县', '定陶县', '巨野县', '东明县', '成武县']
  10946. }]
  10947. }, {
  10948. name: '河南省',
  10949. city: [{
  10950. name: '郑州市',
  10951. area: ['中原区', '金水区', '二七区', '管城回族区', '上街区', '惠济区', '巩义市', '新郑市', '新密市', '登封市', '荥阳市', '中牟县']
  10952. }, {
  10953. name: '开封市',
  10954. area: ['鼓楼区', '龙亭区', '顺河回族区', '禹王台区', '金明区', '开封县', '尉氏县', '兰考县', '杞县', '通许县']
  10955. }, {
  10956. name: '洛阳市',
  10957. area: ['西工区', '老城区', '涧西区', '瀍河回族区', '洛龙区', '吉利区', '偃师市', '孟津县', '汝阳县', '伊川县', '洛宁县', '嵩县', '宜阳县', '新安县', '栾川县']
  10958. }, {
  10959. name: '平顶山市',
  10960. area: ['新华区', '卫东区', '湛河区', '石龙区', '汝州市', '舞钢市', '宝丰县', '叶县', '郏县', '鲁山县']
  10961. }, {
  10962. name: '安阳市',
  10963. area: ['北关区', '文峰区', '殷都区', '龙安区', '林州市', '安阳县', '滑县', '内黄县', '汤阴县']
  10964. }, {
  10965. name: '鹤壁市',
  10966. area: ['淇滨区', '山城区', '鹤山区', '浚县', '淇县']
  10967. }, {
  10968. name: '新乡市',
  10969. area: ['卫滨区', '红旗区', '凤泉区', '牧野区', '卫辉市', '辉县市', '新乡县', '获嘉县', '原阳县', '长垣县', '封丘县', '延津县']
  10970. }, {
  10971. name: '焦作市',
  10972. area: ['解放区', '中站区', '马村区', '山阳区', '沁阳市', '孟州市', '修武县', '温县', '武陟县', '博爱县']
  10973. }, {
  10974. name: '濮阳市',
  10975. area: ['华龙区', '濮阳县', '南乐县', '台前县', '清丰县', '范县']
  10976. }, {
  10977. name: '许昌市',
  10978. area: ['魏都区', '禹州市', '长葛市', '许昌县', '鄢陵县', '襄城县']
  10979. }, {
  10980. name: '漯河市',
  10981. area: ['源汇区', '郾城区', '召陵区', '临颍县', '舞阳县']
  10982. }, {
  10983. name: '三门峡市',
  10984. area: ['湖滨区', '义马市', '灵宝市', '渑池县', '卢氏县', '陕县']
  10985. }, {
  10986. name: '南阳市',
  10987. area: ['卧龙区', '宛城区', '邓州市', '桐柏县', '方城县', '淅川县', '镇平县', '唐河县', '南召县', '内乡县', '新野县', '社旗县', '西峡县']
  10988. }, {
  10989. name: '商丘市',
  10990. area: ['梁园区', '睢阳区', '永城市', '宁陵县', '虞城县', '民权县', '夏邑县', '柘城县', '睢县']
  10991. }, {
  10992. name: '信阳市',
  10993. area: ['浉河区', '平桥区', '潢川县', '淮滨县', '息县', '新县', '商城县', '固始县', '罗山县', '光山县']
  10994. }, {
  10995. name: '周口市',
  10996. area: ['川汇区', '项城市', '商水县', '淮阳县', '太康县', '鹿邑县', '西华县', '扶沟县', '沈丘县', '郸城县']
  10997. }, {
  10998. name: '驻马店市',
  10999. area: ['驿城区', '确山县', '新蔡县', '上蔡县', '西平县', '泌阳县', '平舆县', '汝南县', '遂平县', '正阳县']
  11000. }, {
  11001. name: '焦作市',
  11002. area: ['济源市']
  11003. }]
  11004. }, {
  11005. name: '湖北省',
  11006. city: [{
  11007. name: '武汉市',
  11008. area: ['江岸区', '武昌区', '江汉区', '硚口区', '汉阳区', '青山区', '洪山区', '东西湖区', '汉南区', '蔡甸区', '江夏区', '黄陂区', '新洲区']
  11009. }, {
  11010. name: '黄石市',
  11011. area: ['黄石港区', '西塞山区', '下陆区', '铁山区', '大冶市', '阳新县']
  11012. }, {
  11013. name: '十堰市',
  11014. area: ['张湾区', '茅箭区', '丹江口市', '郧县', '竹山县', '房县', '郧西县', '竹溪县']
  11015. }, {
  11016. name: '荆州市',
  11017. area: ['沙市区', '荆州区', '洪湖市', '石首市', '松滋市', '监利县', '公安县', '江陵县']
  11018. }, {
  11019. name: '宜昌市',
  11020. area: ['西陵区', '伍家岗区', '点军区', '猇亭区', '夷陵区', '宜都市', '当阳市', '枝江市', '秭归县', '远安县', '兴山县', '五峰土家族自治县', '长阳土家族自治县']
  11021. }, {
  11022. name: '襄樊市',
  11023. area: ['襄城区', '樊城区', '襄阳区', '老河口市', '枣阳市', '宜城市', '南漳县', '谷城县', '保康县']
  11024. }, {
  11025. name: '鄂州市',
  11026. area: ['鄂城区', '华容区', '梁子湖区']
  11027. }, {
  11028. name: '荆门市',
  11029. area: ['东宝区', '掇刀区', '钟祥市', '京山县', '沙洋县']
  11030. }, {
  11031. name: '孝感市',
  11032. area: ['孝南区', '应城市', '安陆市', '汉川市', '云梦县', '大悟县', '孝昌县']
  11033. }, {
  11034. name: '黄冈市',
  11035. area: ['黄州区', '麻城市', '武穴市', '红安县', '罗田县', '浠水县', '蕲春县', '黄梅县', '英山县', '团风县']
  11036. }, {
  11037. name: '咸宁市',
  11038. area: ['咸安区', '赤壁市', '嘉鱼县', '通山县', '崇阳县', '通城县']
  11039. }, {
  11040. name: '随州市',
  11041. area: ['曾都区', '广水市']
  11042. }, {
  11043. name: '恩施土家族苗族自治州',
  11044. area: ['恩施市', '利川市', '建始县', '来凤县', '巴东县', '鹤峰县', '宣恩县', '咸丰县']
  11045. }, {
  11046. name: '仙桃市',
  11047. area: ['仙桃']
  11048. }, {
  11049. name: '天门市',
  11050. area: ['天门']
  11051. }, {
  11052. name: '潜江市',
  11053. area: ['潜江']
  11054. }, {
  11055. name: '神农架林区',
  11056. area: ['神农架林区']
  11057. }]
  11058. }, {
  11059. name: '湖南省',
  11060. city: [{
  11061. name: '长沙市',
  11062. area: ['岳麓区', '芙蓉区', '天心区', '开福区', '雨花区', '浏阳市', '长沙县', '望城县', '宁乡县']
  11063. }, {
  11064. name: '株洲市',
  11065. area: ['天元区', '荷塘区', '芦淞区', '石峰区', '醴陵市', '株洲县', '炎陵县', '茶陵县', '攸县']
  11066. }, {
  11067. name: '湘潭市',
  11068. area: ['岳塘区', '雨湖区', '湘乡市', '韶山市', '湘潭县']
  11069. }, {
  11070. name: '衡阳市',
  11071. area: ['雁峰区', '珠晖区', '石鼓区', '蒸湘区', '南岳区', '耒阳市', '常宁市', '衡阳县', '衡东县', '衡山县', '衡南县', '祁东县']
  11072. }, {
  11073. name: '邵阳市',
  11074. area: ['双清区', '大祥区', '北塔区', '武冈市', '邵东县', '洞口县', '新邵县', '绥宁县', '新宁县', '邵阳县', '隆回县', '城步苗族自治县']
  11075. }, {
  11076. name: '岳阳市',
  11077. area: ['岳阳楼区', '云溪区', '君山区', '临湘市', '汨罗市', '岳阳县', '湘阴县', '平江县', '华容县']
  11078. }, {
  11079. name: '常德市',
  11080. area: ['武陵区', '鼎城区', '津市市', '澧县', '临澧县', '桃源县', '汉寿县', '安乡县', '石门县']
  11081. }, {
  11082. name: '张家界市',
  11083. area: ['永定区', '武陵源区', '慈利县', '桑植县']
  11084. }, {
  11085. name: '益阳市',
  11086. area: ['赫山区', '资阳区', '沅江市', '桃江县', '南县', '安化县']
  11087. }, {
  11088. name: '郴州市',
  11089. area: ['北湖区', '苏仙区', '资兴市', '宜章县', '汝城县', '安仁县', '嘉禾县', '临武县', '桂东县', '永兴县', '桂阳县']
  11090. }, {
  11091. name: '永州市',
  11092. area: ['冷水滩区', '零陵区', '祁阳县', '蓝山县', '宁远县', '新田县', '东安县', '江永县', '道县', '双牌县', '江华瑶族自治县']
  11093. }, {
  11094. name: '怀化市',
  11095. area: ['鹤城区', '洪江市', '会同县', '沅陵县', '辰溪县', '溆浦县', '中方县', '新晃侗族自治县', '芷江侗族自治县', '通道侗族自治县', '靖州苗族侗族自治县', '麻阳苗族自治县']
  11096. }, {
  11097. name: '娄底市',
  11098. area: ['娄星区', '冷水江市', '涟源市', '新化县', '双峰县']
  11099. }, {
  11100. name: '湘西土家族苗族自治州',
  11101. area: ['吉首市', '古丈县', '龙山县', '永顺县', '凤凰县', '泸溪县', '保靖县', '花垣县']
  11102. }]
  11103. }, {
  11104. name: '广东省',
  11105. city: [{
  11106. name: '广州市',
  11107. area: ['越秀区', '荔湾区', '海珠区', '天河区', '白云区', '黄埔区', '番禺区', '花都区', '南沙区', '萝岗区', '增城市', '从化市']
  11108. }, {
  11109. name: '深圳市',
  11110. area: ['福田区', '罗湖区', '南山区', '宝安区', '龙岗区', '盐田区']
  11111. }, {
  11112. name: '东莞市',
  11113. area: ['莞城', '常平', '塘厦', '塘厦', '塘厦']
  11114. }, {
  11115. name: '中山市',
  11116. area: ['中山']
  11117. }, {
  11118. name: '潮州市',
  11119. area: ['湘桥区', '潮安县', '饶平县']
  11120. }, {
  11121. name: '揭阳市',
  11122. area: ['榕城区', '揭东县', '揭西县', '惠来县', '普宁市']
  11123. }, {
  11124. name: '云浮市',
  11125. area: ['云城区', '新兴县', '郁南县', '云安县', '罗定市']
  11126. }, {
  11127. name: '珠海市',
  11128. area: ['香洲区', '斗门区', '金湾区']
  11129. }, {
  11130. name: '汕头市',
  11131. area: ['金平区', '濠江区', '龙湖区', '潮阳区', '潮南区', '澄海区', '南澳县']
  11132. }, {
  11133. name: '韶关市',
  11134. area: ['浈江区', '武江区', '曲江区', '乐昌市', '南雄市', '始兴县', '仁化县', '翁源县', '新丰县', '乳源瑶族自治县']
  11135. }, {
  11136. name: '佛山市',
  11137. area: ['禅城区', '南海区', '顺德区', '三水区', '高明区']
  11138. }, {
  11139. name: '江门市',
  11140. area: ['蓬江区', '江海区', '新会区', '恩平市', '台山市', '开平市', '鹤山市']
  11141. }, {
  11142. name: '湛江市',
  11143. area: ['赤坎区', '霞山区', '坡头区', '麻章区', '吴川市', '廉江市', '雷州市', '遂溪县', '徐闻县']
  11144. }, {
  11145. name: '茂名市',
  11146. area: ['茂南区', '茂港区', '化州市', '信宜市', '高州市', '电白县']
  11147. }, {
  11148. name: '肇庆市',
  11149. area: ['端州区', '鼎湖区', '高要市', '四会市', '广宁县', '怀集县', '封开县', '德庆县']
  11150. }, {
  11151. name: '惠州市',
  11152. area: ['惠城区', '惠阳区', '博罗县', '惠东县', '龙门县']
  11153. }, {
  11154. name: '梅州市',
  11155. area: ['梅江区', '兴宁市', '梅县', '大埔县', '丰顺县', '五华县', '平远县', '蕉岭县']
  11156. }, {
  11157. name: '汕尾市',
  11158. area: ['城区', '陆丰市', '海丰县', '陆河县']
  11159. }, {
  11160. name: '河源市',
  11161. area: ['源城区', '紫金县', '龙川县', '连平县', '和平县', '东源县']
  11162. }, {
  11163. name: '阳江市',
  11164. area: ['江城区', '阳春市', '阳西县', '阳东县']
  11165. }, {
  11166. name: '清远市',
  11167. area: ['清城区', '英德市', '连州市', '佛冈县', '阳山县', '清新县', '连山壮族瑶族自治县', '连南瑶族自治县']
  11168. }]
  11169. }, {
  11170. name: '广西',
  11171. city: [{
  11172. name: '南宁市',
  11173. area: ['青秀区', '兴宁区', '西乡塘区', '良庆区', '江南区', '邕宁区', '武鸣县', '隆安县', '马山县', '上林县', '宾阳县', '横县']
  11174. }, {
  11175. name: '柳州市',
  11176. area: ['城中区', '鱼峰区', '柳北区', '柳南区', '柳江县', '柳城县', '鹿寨县', '融安县', '融水苗族自治县', '三江侗族自治县']
  11177. }, {
  11178. name: '桂林市',
  11179. area: ['象山区', '秀峰区', '叠彩区', '七星区', '雁山区', '阳朔县', '临桂县', '灵川县', '全州县', '平乐县', '兴安县', '灌阳县', '荔浦县', '资源县', '永福县', '龙胜各族自治县', '恭城瑶族自治县']
  11180. }, {
  11181. name: '梧州市',
  11182. area: ['万秀区', '蝶山区', '长洲区', '岑溪市', '苍梧县', '藤县', '蒙山县']
  11183. }, {
  11184. name: '北海市',
  11185. area: ['海城区', '银海区', '铁山港区', '合浦县']
  11186. }, {
  11187. name: '防城港市',
  11188. area: ['港口区', '防城区', '东兴市', '上思县']
  11189. }, {
  11190. name: '钦州市',
  11191. area: ['钦南区', '钦北区', '灵山县', '浦北县']
  11192. }, {
  11193. name: '贵港市',
  11194. area: ['港北区', '港南区', '覃塘区', '桂平市', '平南县']
  11195. }, {
  11196. name: '玉林市',
  11197. area: ['玉州区', '北流市', '容县', '陆川县', '博白县', '兴业县']
  11198. }, {
  11199. name: '百色市',
  11200. area: ['右江区', '凌云县', '平果县', '西林县', '乐业县', '德保县', '田林县', '田阳县', '靖西县', '田东县', '那坡县', '隆林各族自治县']
  11201. }, {
  11202. name: '贺州市',
  11203. area: ['八步区', '钟山县', '昭平县', '富川瑶族自治县']
  11204. }, {
  11205. name: '河池市',
  11206. area: ['金城江区', '宜州市', '天峨县', '凤山县', '南丹县', '东兰县', '都安瑶族自治县', '罗城仫佬族自治县', '巴马瑶族自治县', '环江毛南族自治县', '大化瑶族自治县']
  11207. }, {
  11208. name: '来宾市',
  11209. area: ['兴宾区', '合山市', '象州县', '武宣县', '忻城县', '金秀瑶族自治县']
  11210. }, {
  11211. name: '崇左市',
  11212. area: ['江州区', '凭祥市', '宁明县', '扶绥县', '龙州县', '大新县', '天等县']
  11213. }]
  11214. }, {
  11215. name: '海南省',
  11216. city: [{
  11217. name: '海口市',
  11218. area: ['龙华区', '秀英区', '琼山区', '美兰区']
  11219. }, {
  11220. name: '三亚市',
  11221. area: ['三亚市']
  11222. }, {
  11223. name: '五指山市',
  11224. area: ['五指山']
  11225. }, {
  11226. name: '琼海市',
  11227. area: ['琼海']
  11228. }, {
  11229. name: '儋州市',
  11230. area: ['儋州']
  11231. }, {
  11232. name: '文昌市',
  11233. area: ['文昌']
  11234. }, {
  11235. name: '万宁市',
  11236. area: ['万宁']
  11237. }, {
  11238. name: '东方市',
  11239. area: ['东方']
  11240. }, {
  11241. name: '澄迈县',
  11242. area: ['澄迈县']
  11243. }, {
  11244. name: '定安县',
  11245. area: ['定安县']
  11246. }, {
  11247. name: '屯昌县',
  11248. area: ['屯昌县']
  11249. }, {
  11250. name: '临高县',
  11251. area: ['临高县']
  11252. }, {
  11253. name: '白沙黎族自治县',
  11254. area: ['白沙黎族自治县']
  11255. }, {
  11256. name: '昌江黎族自治县',
  11257. area: ['昌江黎族自治县']
  11258. }, {
  11259. name: '乐东黎族自治县',
  11260. area: ['乐东黎族自治县']
  11261. }, {
  11262. name: '陵水黎族自治县',
  11263. area: ['陵水黎族自治县']
  11264. }, {
  11265. name: '保亭黎族苗族自治县',
  11266. area: ['保亭黎族苗族自治县']
  11267. }, {
  11268. name: '琼中黎族苗族自治县',
  11269. area: ['琼中黎族苗族自治县']
  11270. }]
  11271. }, {
  11272. name: '重庆市',
  11273. city: [{
  11274. name: '重庆市',
  11275. area: ['渝中区', '大渡口区', '江北区', '南岸区', '北碚区', '渝北区', '巴南区', '长寿区', '双桥区', '沙坪坝区', '万盛区', '万州区', '涪陵区', '黔江区', '永川区', '合川区', '江津区', '九龙坡区', '南川区', '綦江县', '潼南县', '荣昌县', '璧山县', '大足县', '铜梁县', '梁平县', '开县', '忠县', '城口县', '垫江县', '武隆县', '丰都县', '奉节县', '云阳县', '巫溪县', '巫山县', '石柱土家族自治县', '秀山土家族苗族自治县', '酉阳土家族苗族自治县', '彭水苗族土家族自治县']
  11276. }]
  11277. }, {
  11278. name: '四川省',
  11279. city: [{
  11280. name: '成都市',
  11281. area: ['青羊区', '锦江区', '金牛区', '武侯区', '成华区', '龙泉驿区', '青白江区', '新都区', '温江区', '都江堰市', '彭州市', '邛崃市', '崇州市', '金堂县', '郫县', '新津县', '双流县', '蒲江县', '大邑县']
  11282. }, {
  11283. name: '自贡市',
  11284. area: ['大安区', '自流井区', '贡井区', '沿滩区', '荣县', '富顺县']
  11285. }, {
  11286. name: '攀枝花市',
  11287. area: ['仁和区', '米易县', '盐边县', '东区', '西区']
  11288. }, {
  11289. name: '泸州市',
  11290. area: ['江阳区', '纳溪区', '龙马潭区', '泸县', '合江县', '叙永县', '古蔺县']
  11291. }, {
  11292. name: '德阳市',
  11293. area: ['旌阳区', '广汉市', '什邡市', '绵竹市', '罗江县', '中江县']
  11294. }, {
  11295. name: '绵阳市',
  11296. area: ['涪城区', '游仙区', '江油市', '盐亭县', '三台县', '平武县', '安县', '梓潼县', '北川羌族自治县']
  11297. }, {
  11298. name: '广元市',
  11299. area: ['元坝区', '朝天区', '青川县', '旺苍县', '剑阁县', '苍溪县', '市中区']
  11300. }, {
  11301. name: '遂宁市',
  11302. area: ['船山区', '安居区', '射洪县', '蓬溪县', '大英县']
  11303. }, {
  11304. name: '内江市',
  11305. area: ['市中区', '东兴区', '资中县', '隆昌县', '威远县']
  11306. }, {
  11307. name: '乐山市',
  11308. area: ['市中区', '五通桥区', '沙湾区', '金口河区', '峨眉山市', '夹江县', '井研县', '犍为县', '沐川县', '马边彝族自治县', '峨边彝族自治县']
  11309. }, {
  11310. name: '南充',
  11311. area: ['顺庆区', '高坪区', '嘉陵区', '阆中市', '营山县', '蓬安县', '仪陇县', '南部县', '西充县']
  11312. }, {
  11313. name: '眉山市',
  11314. area: ['东坡区', '仁寿县', '彭山县', '洪雅县', '丹棱县', '青神县']
  11315. }, {
  11316. name: '宜宾市',
  11317. area: ['翠屏区', '宜宾县', '兴文县', '南溪县', '珙县', '长宁县', '高县', '江安县', '筠连县', '屏山县']
  11318. }, {
  11319. name: '广安市',
  11320. area: ['广安区', '华蓥市', '岳池县', '邻水县', '武胜县']
  11321. }, {
  11322. name: '达州市',
  11323. area: ['通川区', '万源市', '达县', '渠县', '宣汉县', '开江县', '大竹县']
  11324. }, {
  11325. name: '雅安市',
  11326. area: ['雨城区', '芦山县', '石棉县', '名山县', '天全县', '荥经县', '宝兴县', '汉源县']
  11327. }, {
  11328. name: '巴中市',
  11329. area: ['巴州区', '南江县', '平昌县', '通江县']
  11330. }, {
  11331. name: '资阳市',
  11332. area: ['雁江区', '简阳市', '安岳县', '乐至县']
  11333. }, {
  11334. name: '阿坝藏族羌族自治州',
  11335. area: ['马尔康县', '九寨沟县', '红原县', '汶川县', '阿坝县', '理县', '若尔盖县', '小金县', '黑水县', '金川县', '松潘县', '壤塘县', '茂县']
  11336. }, {
  11337. name: '甘孜藏族自治州',
  11338. area: ['康定县', '丹巴县', '炉霍县', '九龙县', '甘孜县', '雅江县', '新龙县', '道孚县', '白玉县', '理塘县', '德格县', '乡城县', '石渠县', '稻城县', '色达县', '巴塘县', '泸定县', '得荣县']
  11339. }, {
  11340. name: '凉山彝族自治州',
  11341. area: ['西昌市', '美姑县', '昭觉县', '金阳县', '甘洛县', '布拖县', '雷波县', '普格县', '宁南县', '喜德县', '会东县', '越西县', '会理县', '盐源县', '德昌县', '冕宁县', '木里藏族自治县']
  11342. }]
  11343. }, {
  11344. name: '贵州省',
  11345. city: [{
  11346. name: '贵阳市',
  11347. area: ['南明区', '云岩区', '花溪区', '乌当区', '白云区', '小河区', '清镇市', '开阳县', '修文县', '息烽县']
  11348. }, {
  11349. name: '六盘水市',
  11350. area: ['钟山区', '水城县', '盘县', '六枝特区']
  11351. }, {
  11352. name: '遵义市',
  11353. area: ['红花岗区', '汇川区', '赤水市', '仁怀市', '遵义县', '绥阳县', '桐梓县', '习水县', '凤冈县', '正安县', '余庆县', '湄潭县', '道真仡佬族苗族自治县', '务川仡佬族苗族自治县']
  11354. }, {
  11355. name: '安顺市',
  11356. area: ['西秀区', '普定县', '平坝县', '镇宁布依族苗族自治县', '紫云苗族布依族自治县', '关岭布依族苗族自治县']
  11357. }, {
  11358. name: '铜仁地区',
  11359. area: ['铜仁市', '德江县', '江口县', '思南县', '石阡县', '玉屏侗族自治县', '松桃苗族自治县', '印江土家族苗族自治县', '沿河土家族自治县', '万山特区']
  11360. }, {
  11361. name: '毕节地区',
  11362. area: ['毕节市', '黔西县', '大方县', '织金县', '金沙县', '赫章县', '纳雍县', '威宁彝族回族苗族自治县']
  11363. }, {
  11364. name: '黔西南布依族苗族自治州',
  11365. area: ['兴义市', '望谟县', '兴仁县', '普安县', '册亨县', '晴隆县', '贞丰县', '安龙县']
  11366. }, {
  11367. name: '黔东南苗族侗族自治州',
  11368. area: ['凯里市', '施秉县', '从江县', '锦屏县', '镇远县', '麻江县', '台江县', '天柱县', '黄平县', '榕江县', '剑河县', '三穗县', '雷山县', '黎平县', '岑巩县', '丹寨县']
  11369. }, {
  11370. name: '黔南布依族苗族自治州',
  11371. area: ['都匀市', '福泉市', '贵定县', '惠水县', '罗甸县', '瓮安县', '荔波县', '龙里县', '平塘县', '长顺县', '独山县', '三都水族自治县']
  11372. }]
  11373. }, {
  11374. name: '云南省',
  11375. city: [{
  11376. name: '昆明市',
  11377. area: ['盘龙区', '五华区', '官渡区', '西山区', '东川区', '安宁市', '呈贡县', '晋宁县', '富民县', '宜良县', '嵩明县', '石林彝族自治县', '禄劝彝族苗族自治县', '寻甸回族彝族自治县']
  11378. }, {
  11379. name: '曲靖市',
  11380. area: ['麒麟区', '宣威市', '马龙县', '沾益县', '富源县', '罗平县', '师宗县', '陆良县', '会泽县']
  11381. }, {
  11382. name: '玉溪市',
  11383. area: ['红塔区', '江川县', '澄江县', '通海县', '华宁县', '易门县', '峨山彝族自治县', '新平彝族傣族自治县', '元江哈尼族彝族傣族自治县']
  11384. }, {
  11385. name: '保山市',
  11386. area: ['隆阳区', '施甸县', '腾冲县', '龙陵县', '昌宁县']
  11387. }, {
  11388. name: '昭通市',
  11389. area: ['昭阳区', '鲁甸县', '巧家县', '盐津县', '大关县', '永善县', '绥江县', '镇雄县', '彝良县', '威信县', '水富县']
  11390. }, {
  11391. name: '丽江市',
  11392. area: ['古城区', '永胜县', '华坪县', '玉龙纳西族自治县', '宁蒗彝族自治县']
  11393. }, {
  11394. name: '普洱市',
  11395. area: ['思茅区', '普洱哈尼族彝族自治县', '墨江哈尼族自治县', '景东彝族自治县', '景谷傣族彝族自治县', '镇沅彝族哈尼族拉祜族自治县', '江城哈尼族彝族自治县', '孟连傣族拉祜族佤族自治县', '澜沧拉祜族自治县', '西盟佤族自治县']
  11396. }, {
  11397. name: '临沧市',
  11398. area: ['临翔区', '凤庆县', '云县', '永德县', '镇康县', '双江拉祜族佤族布朗族傣族自治县', '耿马傣族佤族自治县', '沧源佤族自治县']
  11399. }, {
  11400. name: '德宏傣族景颇族自治州',
  11401. area: ['潞西市', '瑞丽市', '梁河县', '盈江县', '陇川县']
  11402. }, {
  11403. name: '怒江傈僳族自治州',
  11404. area: ['泸水县', '福贡县', '贡山独龙族怒族自治县', '兰坪白族普米族自治县']
  11405. }, {
  11406. name: '迪庆藏族自治州',
  11407. area: ['香格里拉县', '德钦县', '维西傈僳族自治县']
  11408. }, {
  11409. name: '大理白族自治州',
  11410. area: ['大理市', '祥云县', '宾川县', '弥渡县', '永平县', '云龙县', '洱源县', '剑川县', '鹤庆县', '漾濞彝族自治县', '南涧彝族自治县', '巍山彝族回族自治县']
  11411. }, {
  11412. name: '楚雄彝族自治州',
  11413. area: ['楚雄市', '双柏县', '牟定县', '南华县', '姚安县', '大姚县', '永仁县', '元谋县', '武定县', '禄丰县']
  11414. }, {
  11415. name: '红河哈尼族彝族自治州',
  11416. area: ['蒙自县', '个旧市', '开远市', '绿春县', '建水县', '石屏县', '弥勒县', '泸西县', '元阳县', '红河县', '金平苗族瑶族傣族自治县', '河口瑶族自治县', '屏边苗族自治县']
  11417. }, {
  11418. name: '文山壮族苗族自治州',
  11419. area: ['文山县', '砚山县', '西畴县', '麻栗坡县', '马关县', '丘北县', '广南县', '富宁县']
  11420. }, {
  11421. name: '西双版纳傣族自治州',
  11422. area: ['景洪市', '勐海县', '勐腊县']
  11423. }]
  11424. }, {
  11425. name: '西藏',
  11426. city: [{
  11427. name: '拉萨市',
  11428. area: ['城关区', '林周县', '当雄县', '尼木县', '曲水县', '堆龙德庆县', '达孜县', '墨竹工卡县']
  11429. }, {
  11430. name: '那曲地区',
  11431. area: ['那曲县', '嘉黎县', '比如县', '聂荣县', '安多县', '申扎县', '索县', '班戈县', '巴青县', '尼玛县']
  11432. }, {
  11433. name: '昌都地区',
  11434. area: ['昌都县', '江达县', '贡觉县', '类乌齐县', '丁青县', '察雅县', '八宿县', '左贡县', '芒康县', '洛隆县', '边坝县']
  11435. }, {
  11436. name: '林芝地区',
  11437. area: ['林芝县', '工布江达县', '米林县', '墨脱县', '波密县', '察隅县', '朗县']
  11438. }, {
  11439. name: '山南地区',
  11440. area: ['乃东县', '扎囊县', '贡嘎县', '桑日县', '琼结县', '曲松县', '措美县', '洛扎县', '加查县', '隆子县', '错那县', '浪卡子县']
  11441. }, {
  11442. name: '日喀则地区',
  11443. area: ['日喀则市', '南木林县', '江孜县', '定日县', '萨迦县', '拉孜县', '昂仁县', '谢通门县', '白朗县', '仁布县', '康马县', '定结县', '仲巴县', '亚东县', '吉隆县', '聂拉木县', '萨嘎县', '岗巴县']
  11444. }, {
  11445. name: '阿里地区',
  11446. area: ['噶尔县', '普兰县', '札达县', '日土县', '革吉县', '改则县', '措勤县']
  11447. }]
  11448. }, {
  11449. name: '陕西省',
  11450. city: [{
  11451. name: '西安市',
  11452. area: ['莲湖区', '新城区', '碑林区', '雁塔区', '灞桥区', '未央区', '阎良区', '临潼区', '长安区', '高陵县', '蓝田县', '户县', '周至县']
  11453. }, {
  11454. name: '铜川市',
  11455. area: ['耀州区', '王益区', '印台区', '宜君县']
  11456. }, {
  11457. name: '宝鸡市',
  11458. area: ['渭滨区', '金台区', '陈仓区', '岐山县', '凤翔县', '陇县', '太白县', '麟游县', '扶风县', '千阳县', '眉县', '凤县']
  11459. }, {
  11460. name: '咸阳市',
  11461. area: ['秦都区', '渭城区', '杨陵区', '兴平市', '礼泉县', '泾阳县', '永寿县', '三原县', '彬县', '旬邑县', '长武县', '乾县', '武功县', '淳化县']
  11462. }, {
  11463. name: '渭南市',
  11464. area: ['临渭区', '韩城市', '华阴市', '蒲城县', '潼关县', '白水县', '澄城县', '华县', '合阳县', '富平县', '大荔县']
  11465. }, {
  11466. name: '延安市',
  11467. area: ['宝塔区', '安塞县', '洛川县', '子长县', '黄陵县', '延川县', '富县', '延长县', '甘泉县', '宜川县', '志丹县', '黄龙县', '吴起县']
  11468. }, {
  11469. name: '汉中市',
  11470. area: ['汉台区', '留坝县', '镇巴县', '城固县', '南郑县', '洋县', '宁强县', '佛坪县', '勉县', '西乡县', '略阳县']
  11471. }, {
  11472. name: '榆林市',
  11473. area: ['榆阳区', '清涧县', '绥德县', '神木县', '佳县', '府谷县', '子洲县', '靖边县', '横山县', '米脂县', '吴堡县', '定边县']
  11474. }, {
  11475. name: '安康市',
  11476. area: ['汉滨区', '紫阳县', '岚皋县', '旬阳县', '镇坪县', '平利县', '石泉县', '宁陕县', '白河县', '汉阴县']
  11477. }, {
  11478. name: '商洛市',
  11479. area: ['商州区', '镇安县', '山阳县', '洛南县', '商南县', '丹凤县', '柞水县']
  11480. }]
  11481. }, {
  11482. name: '甘肃省',
  11483. city: [{
  11484. name: '兰州市',
  11485. area: ['城关区', '七里河区', '西固区', '安宁区', '红古区', '永登县', '皋兰县', '榆中县']
  11486. }, {
  11487. name: '嘉峪关市',
  11488. area: ['嘉峪关市']
  11489. }, {
  11490. name: '金昌市',
  11491. area: ['金川区', '永昌县']
  11492. }, {
  11493. name: '白银市',
  11494. area: ['白银区', '平川区', '靖远县', '会宁县', '景泰县']
  11495. }, {
  11496. name: '天水市',
  11497. area: ['清水县', '秦安县', '甘谷县', '武山县', '张家川回族自治县', '北道区', '秦城区']
  11498. }, {
  11499. name: '武威市',
  11500. area: ['凉州区', '民勤县', '古浪县', '天祝藏族自治县']
  11501. }, {
  11502. name: '酒泉市',
  11503. area: ['肃州区', '玉门市', '敦煌市', '金塔县', '肃北蒙古族自治县', '阿克塞哈萨克族自治县', '安西县']
  11504. }, {
  11505. name: '张掖市',
  11506. area: ['甘州区', '民乐县', '临泽县', '高台县', '山丹县', '肃南裕固族自治县']
  11507. }, {
  11508. name: '庆阳市',
  11509. area: ['西峰区', '庆城县', '环县', '华池县', '合水县', '正宁县', '宁县', '镇原县']
  11510. }, {
  11511. name: '平凉市',
  11512. area: ['崆峒区', '泾川县', '灵台县', '崇信县', '华亭县', '庄浪县', '静宁县']
  11513. }, {
  11514. name: '定西市',
  11515. area: ['安定区', '通渭县', '临洮县', '漳县', '岷县', '渭源县', '陇西县']
  11516. }, {
  11517. name: '陇南市',
  11518. area: ['武都区', '成县', '宕昌县', '康县', '文县', '西和县', '礼县', '两当县', '徽县']
  11519. }, {
  11520. name: '临夏回族自治州',
  11521. area: ['临夏市', '临夏县', '康乐县', '永靖县', '广河县', '和政县', '东乡族自治县', '积石山保安族东乡族撒拉族自治县']
  11522. }, {
  11523. name: '甘南藏族自治州',
  11524. area: ['合作市', '临潭县', '卓尼县', '舟曲县', '迭部县', '玛曲县', '碌曲县', '夏河县']
  11525. }]
  11526. }, {
  11527. name: '青海省',
  11528. city: [{
  11529. name: '西宁市',
  11530. area: ['城中区', '城东区', '城西区', '城北区', '湟源县', '湟中县', '大通回族土族自治县']
  11531. }, {
  11532. name: '海东地区',
  11533. area: ['平安县', '乐都县', '民和回族土族自治县', '互助土族自治县', '化隆回族自治县', '循化撒拉族自治县']
  11534. }, {
  11535. name: '海北藏族自治州',
  11536. area: ['海晏县', '祁连县', '刚察县', '门源回族自治县']
  11537. }, {
  11538. name: '海南藏族自治州',
  11539. area: ['共和县', '同德县', '贵德县', '兴海县', '贵南县']
  11540. }, {
  11541. name: '黄南藏族自治州',
  11542. area: ['同仁县', '尖扎县', '泽库县', '河南蒙古族自治县']
  11543. }, {
  11544. name: '果洛藏族自治州',
  11545. area: ['玛沁县', '班玛县', '甘德县', '达日县', '久治县', '玛多县']
  11546. }, {
  11547. name: '玉树藏族自治州',
  11548. area: ['玉树县', '杂多县', '称多县', '治多县', '囊谦县', '曲麻莱县']
  11549. }, {
  11550. name: '海西蒙古族藏族自治州',
  11551. area: ['德令哈市', '格尔木市', '乌兰县', '都兰县', '天峻县']
  11552. }]
  11553. }, {
  11554. name: '宁夏',
  11555. city: [{
  11556. name: '银川市',
  11557. area: ['兴庆区', '西夏区', '金凤区', '灵武市', '永宁县', '贺兰县']
  11558. }, {
  11559. name: '石嘴山市',
  11560. area: ['大武口区', '惠农区', '平罗县']
  11561. }, {
  11562. name: '吴忠市',
  11563. area: ['利通区', '青铜峡市', '盐池县', '同心县']
  11564. }, {
  11565. name: '固原市',
  11566. area: ['原州区', '西吉县', '隆德县', '泾源县', '彭阳县']
  11567. }, {
  11568. name: '中卫市',
  11569. area: ['沙坡头区', '中宁县', '海原县']
  11570. }]
  11571. }, {
  11572. name: '新疆',
  11573. city: [{
  11574. name: '乌鲁木齐市',
  11575. area: ['天山区', '沙依巴克区', '新市区', '水磨沟区', '头屯河区', '达坂城区', '东山区', '乌鲁木齐县']
  11576. }, {
  11577. name: '克拉玛依市',
  11578. area: ['克拉玛依区', '独山子区', '白碱滩区', '乌尔禾区']
  11579. }, {
  11580. name: '吐鲁番地区',
  11581. area: ['吐鲁番市', '托克逊县', '鄯善县']
  11582. }, {
  11583. name: '哈密地区',
  11584. area: ['哈密市', '伊吾县', '巴里坤哈萨克自治县']
  11585. }, {
  11586. name: '和田地区',
  11587. area: ['和田市', '和田县', '洛浦县', '民丰县', '皮山县', '策勒县', '于田县', '墨玉县']
  11588. }, {
  11589. name: '阿克苏地区',
  11590. area: ['阿克苏市', '温宿县', '沙雅县', '拜城县', '阿瓦提县', '库车县', '柯坪县', '新和县', '乌什县']
  11591. }, {
  11592. name: '喀什地区',
  11593. area: ['喀什市', '巴楚县', '泽普县', '伽师县', '叶城县', '岳普湖县', '疏勒县', '麦盖提县', '英吉沙县', '莎车县', '疏附县', '塔什库尔干塔吉克自治县']
  11594. }, {
  11595. name: '克孜勒苏柯尔克孜自治州',
  11596. area: ['阿图什市', '阿合奇县', '乌恰县', '阿克陶县']
  11597. }, {
  11598. name: '巴音郭楞蒙古自治州',
  11599. area: ['库尔勒市', '和静县', '尉犁县', '和硕县', '且末县', '博湖县', '轮台县', '若羌县', '焉耆回族自治县']
  11600. }, {
  11601. name: '昌吉回族自治州',
  11602. area: ['昌吉市', '阜康市', '奇台县', '玛纳斯县', '吉木萨尔县', '呼图壁县', '木垒哈萨克自治县', '米泉市']
  11603. }, {
  11604. name: '博尔塔拉蒙古自治州',
  11605. area: ['博乐市', '精河县', '温泉县']
  11606. }, {
  11607. name: '石河子',
  11608. area: ['石河子']
  11609. }, {
  11610. name: '阿拉尔',
  11611. area: ['阿拉尔']
  11612. }, {
  11613. name: '图木舒克',
  11614. area: ['图木舒克']
  11615. }, {
  11616. name: '五家渠',
  11617. area: ['五家渠']
  11618. }, {
  11619. name: '伊犁哈萨克自治州',
  11620. area: ['伊宁市', '奎屯市', '伊宁县', '特克斯县', '尼勒克县', '昭苏县', '新源县', '霍城县', '巩留县', '察布查尔锡伯自治县', '塔城地区', '阿勒泰地区']
  11621. }]
  11622. }, {
  11623. name: '台湾省',
  11624. city: [{
  11625. name: '台北市',
  11626. area: ['内湖区', '南港区', '中正区', '万华区', '大同区', '中山区', '松山区', '大安区', '信义区', '文山区', '士林区', '北投区']
  11627. }, {
  11628. name: '新北市',
  11629. area: ['板桥区', '汐止区', '新店区']
  11630. }, {
  11631. name: '桃园市',
  11632. area: ['其他']
  11633. }, {
  11634. name: '台中市',
  11635. area: ['其他']
  11636. }, {
  11637. name: '台南市',
  11638. area: ['其他']
  11639. }, {
  11640. name: '高雄市',
  11641. area: ['其他']
  11642. }]
  11643. }, {
  11644. name: '澳门',
  11645. city: [{
  11646. name: '澳门',
  11647. area: ['花地玛堂区', '圣安多尼堂区', '大堂区', '望德堂区', '风顺堂区', '嘉模堂区', '圣方济各堂区', '路凼']
  11648. }]
  11649. }, {
  11650. name: '香港',
  11651. city: [{
  11652. name: '香港',
  11653. area: ['深水埗区', '油尖旺区', '九龙城区', '黄大仙区', '观塘区', '北区', '大埔区', '沙田区', '西贡区', '元朗区', '屯门区', '荃湾区', '葵青区', '离岛区', '中西区', '湾仔区', '东区', '南区']
  11654. }]
  11655. }],
  11656. debug: true
  11657. };
  11658. exports.default = _default;
  11659. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  11660. /***/ }),
  11661. /***/ 4:
  11662. /*!**********************************************************************!*\
  11663. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  11664. \**********************************************************************/
  11665. /*! no static exports found */
  11666. /***/ (function(module, exports) {
  11667. function _interopRequireDefault(obj) {
  11668. return obj && obj.__esModule ? obj : {
  11669. "default": obj
  11670. };
  11671. }
  11672. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11673. /***/ }),
  11674. /***/ 5:
  11675. /*!**************************************************************!*\
  11676. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  11677. \**************************************************************/
  11678. /*! no static exports found */
  11679. /***/ (function(module, exports, __webpack_require__) {
  11680. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  11681. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  11682. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  11683. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  11684. function _slicedToArray(arr, i) {
  11685. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  11686. }
  11687. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11688. /***/ }),
  11689. /***/ 6:
  11690. /*!***************************************************************!*\
  11691. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  11692. \***************************************************************/
  11693. /*! no static exports found */
  11694. /***/ (function(module, exports) {
  11695. function _arrayWithHoles(arr) {
  11696. if (Array.isArray(arr)) return arr;
  11697. }
  11698. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11699. /***/ }),
  11700. /***/ 7:
  11701. /*!*********************************************************************!*\
  11702. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  11703. \*********************************************************************/
  11704. /*! no static exports found */
  11705. /***/ (function(module, exports) {
  11706. function _iterableToArrayLimit(arr, i) {
  11707. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  11708. if (null != _i) {
  11709. var _s,
  11710. _e,
  11711. _x,
  11712. _r,
  11713. _arr = [],
  11714. _n = !0,
  11715. _d = !1;
  11716. try {
  11717. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  11718. if (Object(_i) !== _i) return;
  11719. _n = !1;
  11720. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  11721. ;
  11722. }
  11723. } catch (err) {
  11724. _d = !0, _e = err;
  11725. } finally {
  11726. try {
  11727. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  11728. } finally {
  11729. if (_d) throw _e;
  11730. }
  11731. }
  11732. return _arr;
  11733. }
  11734. }
  11735. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11736. /***/ }),
  11737. /***/ 8:
  11738. /*!***************************************************************************!*\
  11739. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  11740. \***************************************************************************/
  11741. /*! no static exports found */
  11742. /***/ (function(module, exports, __webpack_require__) {
  11743. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  11744. function _unsupportedIterableToArray(o, minLen) {
  11745. if (!o) return;
  11746. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  11747. var n = Object.prototype.toString.call(o).slice(8, -1);
  11748. if (n === "Object" && o.constructor) n = o.constructor.name;
  11749. if (n === "Map" || n === "Set") return Array.from(o);
  11750. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  11751. }
  11752. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11753. /***/ }),
  11754. /***/ 9:
  11755. /*!*****************************************************************!*\
  11756. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  11757. \*****************************************************************/
  11758. /*! no static exports found */
  11759. /***/ (function(module, exports) {
  11760. function _arrayLikeToArray(arr, len) {
  11761. if (len == null || len > arr.length) len = arr.length;
  11762. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  11763. arr2[i] = arr[i];
  11764. }
  11765. return arr2;
  11766. }
  11767. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11768. /***/ })
  11769. }]);
  11770. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map