vendor.js 296 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!************************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  5. \************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. /* WEBPACK VAR INJECTION */(function(global) {Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createPlugin = createPlugin;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 3));
  10. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 4);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}
  11. var realAtob;
  12. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  13. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  14. if (typeof atob !== 'function') {
  15. realAtob = function realAtob(str) {
  16. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  17. if (!b64re.test(str)) {throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");}
  18. // Adding the padding if missing, for semplicity
  19. str += '=='.slice(2 - (str.length & 3));
  20. var bitmap;var result = '';var r1;var r2;var i = 0;
  21. for (; i < str.length;) {
  22. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 |
  23. (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  24. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
  25. r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
  26. String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  27. }
  28. return result;
  29. };
  30. } else {
  31. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  32. realAtob = atob;
  33. }
  34. function b64DecodeUnicode(str) {
  35. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  36. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  37. }).join(''));
  38. }
  39. function getCurrentUserInfo() {
  40. var token = wx.getStorageSync('uni_id_token') || '';
  41. var tokenArr = token.split('.');
  42. if (!token || tokenArr.length !== 3) {
  43. return {
  44. uid: null,
  45. role: [],
  46. permission: [],
  47. tokenExpired: 0 };
  48. }
  49. var userInfo;
  50. try {
  51. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  52. } catch (error) {
  53. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  54. }
  55. userInfo.tokenExpired = userInfo.exp * 1000;
  56. delete userInfo.exp;
  57. delete userInfo.iat;
  58. return userInfo;
  59. }
  60. function uniIdMixin(Vue) {
  61. Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
  62. getCurrentUserInfo(),role = _getCurrentUserInfo.role;
  63. return role.indexOf(roleId) > -1;
  64. };
  65. Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
  66. getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
  67. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  68. };
  69. Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
  70. getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
  71. return tokenExpired > Date.now();
  72. };
  73. }
  74. var _toString = Object.prototype.toString;
  75. var hasOwnProperty = Object.prototype.hasOwnProperty;
  76. function isFn(fn) {
  77. return typeof fn === 'function';
  78. }
  79. function isStr(str) {
  80. return typeof str === 'string';
  81. }
  82. function isPlainObject(obj) {
  83. return _toString.call(obj) === '[object Object]';
  84. }
  85. function hasOwn(obj, key) {
  86. return hasOwnProperty.call(obj, key);
  87. }
  88. function noop() {}
  89. /**
  90. * Create a cached version of a pure function.
  91. */
  92. function cached(fn) {
  93. var cache = Object.create(null);
  94. return function cachedFn(str) {
  95. var hit = cache[str];
  96. return hit || (cache[str] = fn(str));
  97. };
  98. }
  99. /**
  100. * Camelize a hyphen-delimited string.
  101. */
  102. var camelizeRE = /-(\w)/g;
  103. var camelize = cached(function (str) {
  104. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  105. });
  106. var HOOKS = [
  107. 'invoke',
  108. 'success',
  109. 'fail',
  110. 'complete',
  111. 'returnValue'];
  112. var globalInterceptors = {};
  113. var scopedInterceptors = {};
  114. function mergeHook(parentVal, childVal) {
  115. var res = childVal ?
  116. parentVal ?
  117. parentVal.concat(childVal) :
  118. Array.isArray(childVal) ?
  119. childVal : [childVal] :
  120. parentVal;
  121. return res ?
  122. dedupeHooks(res) :
  123. res;
  124. }
  125. function dedupeHooks(hooks) {
  126. var res = [];
  127. for (var i = 0; i < hooks.length; i++) {
  128. if (res.indexOf(hooks[i]) === -1) {
  129. res.push(hooks[i]);
  130. }
  131. }
  132. return res;
  133. }
  134. function removeHook(hooks, hook) {
  135. var index = hooks.indexOf(hook);
  136. if (index !== -1) {
  137. hooks.splice(index, 1);
  138. }
  139. }
  140. function mergeInterceptorHook(interceptor, option) {
  141. Object.keys(option).forEach(function (hook) {
  142. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  143. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  144. }
  145. });
  146. }
  147. function removeInterceptorHook(interceptor, option) {
  148. if (!interceptor || !option) {
  149. return;
  150. }
  151. Object.keys(option).forEach(function (hook) {
  152. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  153. removeHook(interceptor[hook], option[hook]);
  154. }
  155. });
  156. }
  157. function addInterceptor(method, option) {
  158. if (typeof method === 'string' && isPlainObject(option)) {
  159. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  160. } else if (isPlainObject(method)) {
  161. mergeInterceptorHook(globalInterceptors, method);
  162. }
  163. }
  164. function removeInterceptor(method, option) {
  165. if (typeof method === 'string') {
  166. if (isPlainObject(option)) {
  167. removeInterceptorHook(scopedInterceptors[method], option);
  168. } else {
  169. delete scopedInterceptors[method];
  170. }
  171. } else if (isPlainObject(method)) {
  172. removeInterceptorHook(globalInterceptors, method);
  173. }
  174. }
  175. function wrapperHook(hook) {
  176. return function (data) {
  177. return hook(data) || data;
  178. };
  179. }
  180. function isPromise(obj) {
  181. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  182. }
  183. function queue(hooks, data) {
  184. var promise = false;
  185. for (var i = 0; i < hooks.length; i++) {
  186. var hook = hooks[i];
  187. if (promise) {
  188. promise = Promise.resolve(wrapperHook(hook));
  189. } else {
  190. var res = hook(data);
  191. if (isPromise(res)) {
  192. promise = Promise.resolve(res);
  193. }
  194. if (res === false) {
  195. return {
  196. then: function then() {} };
  197. }
  198. }
  199. }
  200. return promise || {
  201. then: function then(callback) {
  202. return callback(data);
  203. } };
  204. }
  205. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  206. ['success', 'fail', 'complete'].forEach(function (name) {
  207. if (Array.isArray(interceptor[name])) {
  208. var oldCallback = options[name];
  209. options[name] = function callbackInterceptor(res) {
  210. queue(interceptor[name], res).then(function (res) {
  211. /* eslint-disable no-mixed-operators */
  212. return isFn(oldCallback) && oldCallback(res) || res;
  213. });
  214. };
  215. }
  216. });
  217. return options;
  218. }
  219. function wrapperReturnValue(method, returnValue) {
  220. var returnValueHooks = [];
  221. if (Array.isArray(globalInterceptors.returnValue)) {
  222. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  223. }
  224. var interceptor = scopedInterceptors[method];
  225. if (interceptor && Array.isArray(interceptor.returnValue)) {
  226. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  227. }
  228. returnValueHooks.forEach(function (hook) {
  229. returnValue = hook(returnValue) || returnValue;
  230. });
  231. return returnValue;
  232. }
  233. function getApiInterceptorHooks(method) {
  234. var interceptor = Object.create(null);
  235. Object.keys(globalInterceptors).forEach(function (hook) {
  236. if (hook !== 'returnValue') {
  237. interceptor[hook] = globalInterceptors[hook].slice();
  238. }
  239. });
  240. var scopedInterceptor = scopedInterceptors[method];
  241. if (scopedInterceptor) {
  242. Object.keys(scopedInterceptor).forEach(function (hook) {
  243. if (hook !== 'returnValue') {
  244. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  245. }
  246. });
  247. }
  248. return interceptor;
  249. }
  250. function invokeApi(method, api, options) {for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {params[_key - 3] = arguments[_key];}
  251. var interceptor = getApiInterceptorHooks(method);
  252. if (interceptor && Object.keys(interceptor).length) {
  253. if (Array.isArray(interceptor.invoke)) {
  254. var res = queue(interceptor.invoke, options);
  255. return res.then(function (options) {
  256. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  257. });
  258. } else {
  259. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  260. }
  261. }
  262. return api.apply(void 0, [options].concat(params));
  263. }
  264. var promiseInterceptor = {
  265. returnValue: function returnValue(res) {
  266. if (!isPromise(res)) {
  267. return res;
  268. }
  269. return new Promise(function (resolve, reject) {
  270. res.then(function (res) {
  271. if (res[0]) {
  272. reject(res[0]);
  273. } else {
  274. resolve(res[1]);
  275. }
  276. });
  277. });
  278. } };
  279. var SYNC_API_RE =
  280. /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale/;
  281. var CONTEXT_API_RE = /^create|Manager$/;
  282. // Context例外情况
  283. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  284. // 同步例外情况
  285. var ASYNC_API = ['createBLEConnection'];
  286. var CALLBACK_API_RE = /^on|^off/;
  287. function isContextApi(name) {
  288. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  289. }
  290. function isSyncApi(name) {
  291. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  292. }
  293. function isCallbackApi(name) {
  294. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  295. }
  296. function handlePromise(promise) {
  297. return promise.then(function (data) {
  298. return [null, data];
  299. }).
  300. catch(function (err) {return [err];});
  301. }
  302. function shouldPromise(name) {
  303. if (
  304. isContextApi(name) ||
  305. isSyncApi(name) ||
  306. isCallbackApi(name))
  307. {
  308. return false;
  309. }
  310. return true;
  311. }
  312. /* eslint-disable no-extend-native */
  313. if (!Promise.prototype.finally) {
  314. Promise.prototype.finally = function (callback) {
  315. var promise = this.constructor;
  316. return this.then(
  317. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  318. function (reason) {return promise.resolve(callback()).then(function () {
  319. throw reason;
  320. });});
  321. };
  322. }
  323. function promisify(name, api) {
  324. if (!shouldPromise(name)) {
  325. return api;
  326. }
  327. return function promiseApi() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {params[_key2 - 1] = arguments[_key2];}
  328. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  329. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  330. }
  331. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  332. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  333. success: resolve,
  334. fail: reject })].concat(
  335. params));
  336. })));
  337. };
  338. }
  339. var EPS = 1e-4;
  340. var BASE_DEVICE_WIDTH = 750;
  341. var isIOS = false;
  342. var deviceWidth = 0;
  343. var deviceDPR = 0;
  344. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  345. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  346. deviceWidth = windowWidth;
  347. deviceDPR = pixelRatio;
  348. isIOS = platform === 'ios';
  349. }
  350. function upx2px(number, newDeviceWidth) {
  351. if (deviceWidth === 0) {
  352. checkDeviceWidth();
  353. }
  354. number = Number(number);
  355. if (number === 0) {
  356. return 0;
  357. }
  358. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  359. if (result < 0) {
  360. result = -result;
  361. }
  362. result = Math.floor(result + EPS);
  363. if (result === 0) {
  364. if (deviceDPR === 1 || !isIOS) {
  365. result = 1;
  366. } else {
  367. result = 0.5;
  368. }
  369. }
  370. return number < 0 ? -result : result;
  371. }
  372. function getLocale() {
  373. // 优先使用 $locale
  374. var app = getApp({
  375. allowDefault: true });
  376. if (app && app.$vm) {
  377. return app.$vm.$locale;
  378. }
  379. return wx.getSystemInfoSync().language || 'zh-Hans';
  380. }
  381. function setLocale(locale) {
  382. var app = getApp();
  383. if (!app) {
  384. return false;
  385. }
  386. var oldLocale = app.$vm.$locale;
  387. if (oldLocale !== locale) {
  388. app.$vm.$locale = locale;
  389. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  390. locale: locale });});
  391. return true;
  392. }
  393. return false;
  394. }
  395. var onLocaleChangeCallbacks = [];
  396. function onLocaleChange(fn) {
  397. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  398. onLocaleChangeCallbacks.push(fn);
  399. }
  400. }
  401. if (typeof global !== 'undefined') {
  402. global.getLocale = getLocale;
  403. }
  404. var interceptors = {
  405. promiseInterceptor: promiseInterceptor };
  406. var baseApi = /*#__PURE__*/Object.freeze({
  407. __proto__: null,
  408. upx2px: upx2px,
  409. getLocale: getLocale,
  410. setLocale: setLocale,
  411. onLocaleChange: onLocaleChange,
  412. addInterceptor: addInterceptor,
  413. removeInterceptor: removeInterceptor,
  414. interceptors: interceptors });
  415. function findExistsPageIndex(url) {
  416. var pages = getCurrentPages();
  417. var len = pages.length;
  418. while (len--) {
  419. var page = pages[len];
  420. if (page.$page && page.$page.fullPath === url) {
  421. return len;
  422. }
  423. }
  424. return -1;
  425. }
  426. var redirectTo = {
  427. name: function name(fromArgs) {
  428. if (fromArgs.exists === 'back' && fromArgs.delta) {
  429. return 'navigateBack';
  430. }
  431. return 'redirectTo';
  432. },
  433. args: function args(fromArgs) {
  434. if (fromArgs.exists === 'back' && fromArgs.url) {
  435. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  436. if (existsPageIndex !== -1) {
  437. var delta = getCurrentPages().length - 1 - existsPageIndex;
  438. if (delta > 0) {
  439. fromArgs.delta = delta;
  440. }
  441. }
  442. }
  443. } };
  444. var previewImage = {
  445. args: function args(fromArgs) {
  446. var currentIndex = parseInt(fromArgs.current);
  447. if (isNaN(currentIndex)) {
  448. return;
  449. }
  450. var urls = fromArgs.urls;
  451. if (!Array.isArray(urls)) {
  452. return;
  453. }
  454. var len = urls.length;
  455. if (!len) {
  456. return;
  457. }
  458. if (currentIndex < 0) {
  459. currentIndex = 0;
  460. } else if (currentIndex >= len) {
  461. currentIndex = len - 1;
  462. }
  463. if (currentIndex > 0) {
  464. fromArgs.current = urls[currentIndex];
  465. fromArgs.urls = urls.filter(
  466. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  467. } else {
  468. fromArgs.current = urls[0];
  469. }
  470. return {
  471. indicator: false,
  472. loop: false };
  473. } };
  474. var UUID_KEY = '__DC_STAT_UUID';
  475. var deviceId;
  476. function addUuid(result) {
  477. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  478. if (!deviceId) {
  479. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  480. wx.setStorage({
  481. key: UUID_KEY,
  482. data: deviceId });
  483. }
  484. result.deviceId = deviceId;
  485. }
  486. function addSafeAreaInsets(result) {
  487. if (result.safeArea) {
  488. var safeArea = result.safeArea;
  489. result.safeAreaInsets = {
  490. top: safeArea.top,
  491. left: safeArea.left,
  492. right: result.windowWidth - safeArea.right,
  493. bottom: result.windowHeight - safeArea.bottom };
  494. }
  495. }
  496. var getSystemInfo = {
  497. returnValue: function returnValue(result) {
  498. addUuid(result);
  499. addSafeAreaInsets(result);
  500. } };
  501. // import navigateTo from 'uni-helpers/navigate-to'
  502. var protocols = {
  503. redirectTo: redirectTo,
  504. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  505. previewImage: previewImage,
  506. getSystemInfo: getSystemInfo,
  507. getSystemInfoSync: getSystemInfo };
  508. var todos = [
  509. 'vibrate',
  510. 'preloadPage',
  511. 'unPreloadPage',
  512. 'loadSubPackage'];
  513. var canIUses = [];
  514. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  515. function processCallback(methodName, method, returnValue) {
  516. return function (res) {
  517. return method(processReturnValue(methodName, res, returnValue));
  518. };
  519. }
  520. function processArgs(methodName, fromArgs) {var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  521. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  522. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  523. if (isFn(argsOption)) {
  524. argsOption = argsOption(fromArgs, toArgs) || {};
  525. }
  526. for (var key in fromArgs) {
  527. if (hasOwn(argsOption, key)) {
  528. var keyOption = argsOption[key];
  529. if (isFn(keyOption)) {
  530. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  531. }
  532. if (!keyOption) {// 不支持的参数
  533. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  534. } else if (isStr(keyOption)) {// 重写参数 key
  535. toArgs[keyOption] = fromArgs[key];
  536. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  537. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  538. }
  539. } else if (CALLBACKS.indexOf(key) !== -1) {
  540. if (isFn(fromArgs[key])) {
  541. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  542. }
  543. } else {
  544. if (!keepFromArgs) {
  545. toArgs[key] = fromArgs[key];
  546. }
  547. }
  548. }
  549. return toArgs;
  550. } else if (isFn(fromArgs)) {
  551. fromArgs = processCallback(methodName, fromArgs, returnValue);
  552. }
  553. return fromArgs;
  554. }
  555. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  556. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  557. res = protocols.returnValue(methodName, res);
  558. }
  559. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  560. }
  561. function wrapper(methodName, method) {
  562. if (hasOwn(protocols, methodName)) {
  563. var protocol = protocols[methodName];
  564. if (!protocol) {// 暂不支持的 api
  565. return function () {
  566. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  567. };
  568. }
  569. return function (arg1, arg2) {// 目前 api 最多两个参数
  570. var options = protocol;
  571. if (isFn(protocol)) {
  572. options = protocol(arg1);
  573. }
  574. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  575. var args = [arg1];
  576. if (typeof arg2 !== 'undefined') {
  577. args.push(arg2);
  578. }
  579. if (isFn(options.name)) {
  580. methodName = options.name(arg1);
  581. } else if (isStr(options.name)) {
  582. methodName = options.name;
  583. }
  584. var returnValue = wx[methodName].apply(wx, args);
  585. if (isSyncApi(methodName)) {// 同步 api
  586. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  587. }
  588. return returnValue;
  589. };
  590. }
  591. return method;
  592. }
  593. var todoApis = Object.create(null);
  594. var TODOS = [
  595. 'onTabBarMidButtonTap',
  596. 'subscribePush',
  597. 'unsubscribePush',
  598. 'onPush',
  599. 'offPush',
  600. 'share'];
  601. function createTodoApi(name) {
  602. return function todoApi(_ref)
  603. {var fail = _ref.fail,complete = _ref.complete;
  604. var res = {
  605. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  606. isFn(fail) && fail(res);
  607. isFn(complete) && complete(res);
  608. };
  609. }
  610. TODOS.forEach(function (name) {
  611. todoApis[name] = createTodoApi(name);
  612. });
  613. var providers = {
  614. oauth: ['weixin'],
  615. share: ['weixin'],
  616. payment: ['wxpay'],
  617. push: ['weixin'] };
  618. function getProvider(_ref2)
  619. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  620. var res = false;
  621. if (providers[service]) {
  622. res = {
  623. errMsg: 'getProvider:ok',
  624. service: service,
  625. provider: providers[service] };
  626. isFn(success) && success(res);
  627. } else {
  628. res = {
  629. errMsg: 'getProvider:fail service not found' };
  630. isFn(fail) && fail(res);
  631. }
  632. isFn(complete) && complete(res);
  633. }
  634. var extraApi = /*#__PURE__*/Object.freeze({
  635. __proto__: null,
  636. getProvider: getProvider });
  637. var getEmitter = function () {
  638. var Emitter;
  639. return function getUniEmitter() {
  640. if (!Emitter) {
  641. Emitter = new _vue.default();
  642. }
  643. return Emitter;
  644. };
  645. }();
  646. function apply(ctx, method, args) {
  647. return ctx[method].apply(ctx, args);
  648. }
  649. function $on() {
  650. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  651. }
  652. function $off() {
  653. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  654. }
  655. function $once() {
  656. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  657. }
  658. function $emit() {
  659. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  660. }
  661. var eventApi = /*#__PURE__*/Object.freeze({
  662. __proto__: null,
  663. $on: $on,
  664. $off: $off,
  665. $once: $once,
  666. $emit: $emit });
  667. var api = /*#__PURE__*/Object.freeze({
  668. __proto__: null });
  669. var MPPage = Page;
  670. var MPComponent = Component;
  671. var customizeRE = /:/g;
  672. var customize = cached(function (str) {
  673. return camelize(str.replace(customizeRE, '-'));
  674. });
  675. function initTriggerEvent(mpInstance) {
  676. var oldTriggerEvent = mpInstance.triggerEvent;
  677. var newTriggerEvent = function newTriggerEvent(event) {for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {args[_key3 - 1] = arguments[_key3];}
  678. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  679. };
  680. try {
  681. // 京东小程序 triggerEvent 为只读
  682. mpInstance.triggerEvent = newTriggerEvent;
  683. } catch (error) {
  684. mpInstance._triggerEvent = newTriggerEvent;
  685. }
  686. }
  687. function initHook(name, options, isComponent) {
  688. var oldHook = options[name];
  689. if (!oldHook) {
  690. options[name] = function () {
  691. initTriggerEvent(this);
  692. };
  693. } else {
  694. options[name] = function () {
  695. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  696. return oldHook.apply(this, args);
  697. };
  698. }
  699. }
  700. if (!MPPage.__$wrappered) {
  701. MPPage.__$wrappered = true;
  702. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  703. initHook('onLoad', options);
  704. return MPPage(options);
  705. };
  706. Page.after = MPPage.after;
  707. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  708. initHook('created', options);
  709. return MPComponent(options);
  710. };
  711. }
  712. var PAGE_EVENT_HOOKS = [
  713. 'onPullDownRefresh',
  714. 'onReachBottom',
  715. 'onAddToFavorites',
  716. 'onShareTimeline',
  717. 'onShareAppMessage',
  718. 'onPageScroll',
  719. 'onResize',
  720. 'onTabItemTap'];
  721. function initMocks(vm, mocks) {
  722. var mpInstance = vm.$mp[vm.mpType];
  723. mocks.forEach(function (mock) {
  724. if (hasOwn(mpInstance, mock)) {
  725. vm[mock] = mpInstance[mock];
  726. }
  727. });
  728. }
  729. function hasHook(hook, vueOptions) {
  730. if (!vueOptions) {
  731. return true;
  732. }
  733. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  734. return true;
  735. }
  736. vueOptions = vueOptions.default || vueOptions;
  737. if (isFn(vueOptions)) {
  738. if (isFn(vueOptions.extendOptions[hook])) {
  739. return true;
  740. }
  741. if (vueOptions.super &&
  742. vueOptions.super.options &&
  743. Array.isArray(vueOptions.super.options[hook])) {
  744. return true;
  745. }
  746. return false;
  747. }
  748. if (isFn(vueOptions[hook])) {
  749. return true;
  750. }
  751. var mixins = vueOptions.mixins;
  752. if (Array.isArray(mixins)) {
  753. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  754. }
  755. }
  756. function initHooks(mpOptions, hooks, vueOptions) {
  757. hooks.forEach(function (hook) {
  758. if (hasHook(hook, vueOptions)) {
  759. mpOptions[hook] = function (args) {
  760. return this.$vm && this.$vm.__call_hook(hook, args);
  761. };
  762. }
  763. });
  764. }
  765. function initVueComponent(Vue, vueOptions) {
  766. vueOptions = vueOptions.default || vueOptions;
  767. var VueComponent;
  768. if (isFn(vueOptions)) {
  769. VueComponent = vueOptions;
  770. } else {
  771. VueComponent = Vue.extend(vueOptions);
  772. }
  773. vueOptions = VueComponent.options;
  774. return [VueComponent, vueOptions];
  775. }
  776. function initSlots(vm, vueSlots) {
  777. if (Array.isArray(vueSlots) && vueSlots.length) {
  778. var $slots = Object.create(null);
  779. vueSlots.forEach(function (slotName) {
  780. $slots[slotName] = true;
  781. });
  782. vm.$scopedSlots = vm.$slots = $slots;
  783. }
  784. }
  785. function initVueIds(vueIds, mpInstance) {
  786. vueIds = (vueIds || '').split(',');
  787. var len = vueIds.length;
  788. if (len === 1) {
  789. mpInstance._$vueId = vueIds[0];
  790. } else if (len === 2) {
  791. mpInstance._$vueId = vueIds[0];
  792. mpInstance._$vuePid = vueIds[1];
  793. }
  794. }
  795. function initData(vueOptions, context) {
  796. var data = vueOptions.data || {};
  797. var methods = vueOptions.methods || {};
  798. if (typeof data === 'function') {
  799. try {
  800. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  801. } catch (e) {
  802. if (Object({"VUE_APP_NAME":"66applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  803. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  804. }
  805. }
  806. } else {
  807. try {
  808. // 对 data 格式化
  809. data = JSON.parse(JSON.stringify(data));
  810. } catch (e) {}
  811. }
  812. if (!isPlainObject(data)) {
  813. data = {};
  814. }
  815. Object.keys(methods).forEach(function (methodName) {
  816. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  817. data[methodName] = methods[methodName];
  818. }
  819. });
  820. return data;
  821. }
  822. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  823. function createObserver(name) {
  824. return function observer(newVal, oldVal) {
  825. if (this.$vm) {
  826. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  827. }
  828. };
  829. }
  830. function initBehaviors(vueOptions, initBehavior) {
  831. var vueBehaviors = vueOptions.behaviors;
  832. var vueExtends = vueOptions.extends;
  833. var vueMixins = vueOptions.mixins;
  834. var vueProps = vueOptions.props;
  835. if (!vueProps) {
  836. vueOptions.props = vueProps = [];
  837. }
  838. var behaviors = [];
  839. if (Array.isArray(vueBehaviors)) {
  840. vueBehaviors.forEach(function (behavior) {
  841. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  842. if (behavior === 'uni://form-field') {
  843. if (Array.isArray(vueProps)) {
  844. vueProps.push('name');
  845. vueProps.push('value');
  846. } else {
  847. vueProps.name = {
  848. type: String,
  849. default: '' };
  850. vueProps.value = {
  851. type: [String, Number, Boolean, Array, Object, Date],
  852. default: '' };
  853. }
  854. }
  855. });
  856. }
  857. if (isPlainObject(vueExtends) && vueExtends.props) {
  858. behaviors.push(
  859. initBehavior({
  860. properties: initProperties(vueExtends.props, true) }));
  861. }
  862. if (Array.isArray(vueMixins)) {
  863. vueMixins.forEach(function (vueMixin) {
  864. if (isPlainObject(vueMixin) && vueMixin.props) {
  865. behaviors.push(
  866. initBehavior({
  867. properties: initProperties(vueMixin.props, true) }));
  868. }
  869. });
  870. }
  871. return behaviors;
  872. }
  873. function parsePropType(key, type, defaultValue, file) {
  874. // [String]=>String
  875. if (Array.isArray(type) && type.length === 1) {
  876. return type[0];
  877. }
  878. return type;
  879. }
  880. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  881. var properties = {};
  882. if (!isBehavior) {
  883. properties.vueId = {
  884. type: String,
  885. value: '' };
  886. // 用于字节跳动小程序模拟抽象节点
  887. properties.generic = {
  888. type: Object,
  889. value: null };
  890. // scopedSlotsCompiler auto
  891. properties.scopedSlotsCompiler = {
  892. type: String,
  893. value: '' };
  894. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  895. type: null,
  896. value: [],
  897. observer: function observer(newVal, oldVal) {
  898. var $slots = Object.create(null);
  899. newVal.forEach(function (slotName) {
  900. $slots[slotName] = true;
  901. });
  902. this.setData({
  903. $slots: $slots });
  904. } };
  905. }
  906. if (Array.isArray(props)) {// ['title']
  907. props.forEach(function (key) {
  908. properties[key] = {
  909. type: null,
  910. observer: createObserver(key) };
  911. });
  912. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  913. Object.keys(props).forEach(function (key) {
  914. var opts = props[key];
  915. if (isPlainObject(opts)) {// title:{type:String,default:''}
  916. var value = opts.default;
  917. if (isFn(value)) {
  918. value = value();
  919. }
  920. opts.type = parsePropType(key, opts.type);
  921. properties[key] = {
  922. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  923. value: value,
  924. observer: createObserver(key) };
  925. } else {// content:String
  926. var type = parsePropType(key, opts);
  927. properties[key] = {
  928. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  929. observer: createObserver(key) };
  930. }
  931. });
  932. }
  933. return properties;
  934. }
  935. function wrapper$1(event) {
  936. // TODO 又得兼容 mpvue 的 mp 对象
  937. try {
  938. event.mp = JSON.parse(JSON.stringify(event));
  939. } catch (e) {}
  940. event.stopPropagation = noop;
  941. event.preventDefault = noop;
  942. event.target = event.target || {};
  943. if (!hasOwn(event, 'detail')) {
  944. event.detail = {};
  945. }
  946. if (hasOwn(event, 'markerId')) {
  947. event.detail = typeof event.detail === 'object' ? event.detail : {};
  948. event.detail.markerId = event.markerId;
  949. }
  950. if (isPlainObject(event.detail)) {
  951. event.target = Object.assign({}, event.target, event.detail);
  952. }
  953. return event;
  954. }
  955. function getExtraValue(vm, dataPathsArray) {
  956. var context = vm;
  957. dataPathsArray.forEach(function (dataPathArray) {
  958. var dataPath = dataPathArray[0];
  959. var value = dataPathArray[2];
  960. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  961. var propPath = dataPathArray[1];
  962. var valuePath = dataPathArray[3];
  963. var vFor;
  964. if (Number.isInteger(dataPath)) {
  965. vFor = dataPath;
  966. } else if (!dataPath) {
  967. vFor = context;
  968. } else if (typeof dataPath === 'string' && dataPath) {
  969. if (dataPath.indexOf('#s#') === 0) {
  970. vFor = dataPath.substr(3);
  971. } else {
  972. vFor = vm.__get_value(dataPath, context);
  973. }
  974. }
  975. if (Number.isInteger(vFor)) {
  976. context = value;
  977. } else if (!propPath) {
  978. context = vFor[value];
  979. } else {
  980. if (Array.isArray(vFor)) {
  981. context = vFor.find(function (vForItem) {
  982. return vm.__get_value(propPath, vForItem) === value;
  983. });
  984. } else if (isPlainObject(vFor)) {
  985. context = Object.keys(vFor).find(function (vForKey) {
  986. return vm.__get_value(propPath, vFor[vForKey]) === value;
  987. });
  988. } else {
  989. console.error('v-for 暂不支持循环数据:', vFor);
  990. }
  991. }
  992. if (valuePath) {
  993. context = vm.__get_value(valuePath, context);
  994. }
  995. }
  996. });
  997. return context;
  998. }
  999. function processEventExtra(vm, extra, event) {
  1000. var extraObj = {};
  1001. if (Array.isArray(extra) && extra.length) {
  1002. /**
  1003. *[
  1004. * ['data.items', 'data.id', item.data.id],
  1005. * ['metas', 'id', meta.id]
  1006. *],
  1007. *[
  1008. * ['data.items', 'data.id', item.data.id],
  1009. * ['metas', 'id', meta.id]
  1010. *],
  1011. *'test'
  1012. */
  1013. extra.forEach(function (dataPath, index) {
  1014. if (typeof dataPath === 'string') {
  1015. if (!dataPath) {// model,prop.sync
  1016. extraObj['$' + index] = vm;
  1017. } else {
  1018. if (dataPath === '$event') {// $event
  1019. extraObj['$' + index] = event;
  1020. } else if (dataPath === 'arguments') {
  1021. if (event.detail && event.detail.__args__) {
  1022. extraObj['$' + index] = event.detail.__args__;
  1023. } else {
  1024. extraObj['$' + index] = [event];
  1025. }
  1026. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1027. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1028. } else {
  1029. extraObj['$' + index] = vm.__get_value(dataPath);
  1030. }
  1031. }
  1032. } else {
  1033. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1034. }
  1035. });
  1036. }
  1037. return extraObj;
  1038. }
  1039. function getObjByArray(arr) {
  1040. var obj = {};
  1041. for (var i = 1; i < arr.length; i++) {
  1042. var element = arr[i];
  1043. obj[element[0]] = element[1];
  1044. }
  1045. return obj;
  1046. }
  1047. function processEventArgs(vm, event) {var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];var isCustom = arguments.length > 4 ? arguments[4] : undefined;var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1048. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1049. if (isCustom) {// 自定义事件
  1050. isCustomMPEvent = event.currentTarget &&
  1051. event.currentTarget.dataset &&
  1052. event.currentTarget.dataset.comType === 'wx';
  1053. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1054. if (isCustomMPEvent) {
  1055. return [event];
  1056. }
  1057. return event.detail.__args__ || event.detail;
  1058. }
  1059. }
  1060. var extraObj = processEventExtra(vm, extra, event);
  1061. var ret = [];
  1062. args.forEach(function (arg) {
  1063. if (arg === '$event') {
  1064. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1065. ret.push(event.target.value);
  1066. } else {
  1067. if (isCustom && !isCustomMPEvent) {
  1068. ret.push(event.detail.__args__[0]);
  1069. } else {// wxcomponent 组件或内置组件
  1070. ret.push(event);
  1071. }
  1072. }
  1073. } else {
  1074. if (Array.isArray(arg) && arg[0] === 'o') {
  1075. ret.push(getObjByArray(arg));
  1076. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1077. ret.push(extraObj[arg]);
  1078. } else {
  1079. ret.push(arg);
  1080. }
  1081. }
  1082. });
  1083. return ret;
  1084. }
  1085. var ONCE = '~';
  1086. var CUSTOM = '^';
  1087. function isMatchEventType(eventType, optType) {
  1088. return eventType === optType ||
  1089. optType === 'regionchange' && (
  1090. eventType === 'begin' ||
  1091. eventType === 'end');
  1092. }
  1093. function getContextVm(vm) {
  1094. var $parent = vm.$parent;
  1095. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1096. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1097. $parent = $parent.$parent;
  1098. }
  1099. return $parent && $parent.$parent;
  1100. }
  1101. function handleEvent(event) {var _this = this;
  1102. event = wrapper$1(event);
  1103. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1104. var dataset = (event.currentTarget || event.target).dataset;
  1105. if (!dataset) {
  1106. return console.warn('事件信息不存在');
  1107. }
  1108. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1109. if (!eventOpts) {
  1110. return console.warn('事件信息不存在');
  1111. }
  1112. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1113. var eventType = event.type;
  1114. var ret = [];
  1115. eventOpts.forEach(function (eventOpt) {
  1116. var type = eventOpt[0];
  1117. var eventsArray = eventOpt[1];
  1118. var isCustom = type.charAt(0) === CUSTOM;
  1119. type = isCustom ? type.slice(1) : type;
  1120. var isOnce = type.charAt(0) === ONCE;
  1121. type = isOnce ? type.slice(1) : type;
  1122. if (eventsArray && isMatchEventType(eventType, type)) {
  1123. eventsArray.forEach(function (eventArray) {
  1124. var methodName = eventArray[0];
  1125. if (methodName) {
  1126. var handlerCtx = _this.$vm;
  1127. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1128. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1129. }
  1130. if (methodName === '$emit') {
  1131. handlerCtx.$emit.apply(handlerCtx,
  1132. processEventArgs(
  1133. _this.$vm,
  1134. event,
  1135. eventArray[1],
  1136. eventArray[2],
  1137. isCustom,
  1138. methodName));
  1139. return;
  1140. }
  1141. var handler = handlerCtx[methodName];
  1142. if (!isFn(handler)) {
  1143. throw new Error(" _vm.".concat(methodName, " is not a function"));
  1144. }
  1145. if (isOnce) {
  1146. if (handler.once) {
  1147. return;
  1148. }
  1149. handler.once = true;
  1150. }
  1151. var params = processEventArgs(
  1152. _this.$vm,
  1153. event,
  1154. eventArray[1],
  1155. eventArray[2],
  1156. isCustom,
  1157. methodName);
  1158. params = Array.isArray(params) ? params : [];
  1159. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1160. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1161. // eslint-disable-next-line no-sparse-arrays
  1162. params = params.concat([,,,,,,,,,, event]);
  1163. }
  1164. ret.push(handler.apply(handlerCtx, params));
  1165. }
  1166. });
  1167. }
  1168. });
  1169. if (
  1170. eventType === 'input' &&
  1171. ret.length === 1 &&
  1172. typeof ret[0] !== 'undefined')
  1173. {
  1174. return ret[0];
  1175. }
  1176. }
  1177. var messages = {};
  1178. var locale;
  1179. {
  1180. locale = wx.getSystemInfoSync().language;
  1181. }
  1182. function initI18nMessages() {
  1183. if (!isEnableLocale()) {
  1184. return;
  1185. }
  1186. var localeKeys = Object.keys(__uniConfig.locales);
  1187. if (localeKeys.length) {
  1188. localeKeys.forEach(function (locale) {
  1189. var curMessages = messages[locale];
  1190. var userMessages = __uniConfig.locales[locale];
  1191. if (curMessages) {
  1192. Object.assign(curMessages, userMessages);
  1193. } else {
  1194. messages[locale] = userMessages;
  1195. }
  1196. });
  1197. }
  1198. }
  1199. initI18nMessages();
  1200. var i18n = (0, _uniI18n.initVueI18n)(
  1201. locale,
  1202. {});
  1203. var t = i18n.t;
  1204. var i18nMixin = i18n.mixin = {
  1205. beforeCreate: function beforeCreate() {var _this2 = this;
  1206. var unwatch = i18n.i18n.watchLocale(function () {
  1207. _this2.$forceUpdate();
  1208. });
  1209. this.$once('hook:beforeDestroy', function () {
  1210. unwatch();
  1211. });
  1212. },
  1213. methods: {
  1214. $$t: function $$t(key, values) {
  1215. return t(key, values);
  1216. } } };
  1217. var setLocale$1 = i18n.setLocale;
  1218. var getLocale$1 = i18n.getLocale;
  1219. function initAppLocale(Vue, appVm, locale) {
  1220. var state = Vue.observable({
  1221. locale: locale || i18n.getLocale() });
  1222. var localeWatchers = [];
  1223. appVm.$watchLocale = function (fn) {
  1224. localeWatchers.push(fn);
  1225. };
  1226. Object.defineProperty(appVm, '$locale', {
  1227. get: function get() {
  1228. return state.locale;
  1229. },
  1230. set: function set(v) {
  1231. state.locale = v;
  1232. localeWatchers.forEach(function (watch) {return watch(v);});
  1233. } });
  1234. }
  1235. function isEnableLocale() {
  1236. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  1237. }
  1238. // export function initI18n() {
  1239. // const localeKeys = Object.keys(__uniConfig.locales || {})
  1240. // if (localeKeys.length) {
  1241. // localeKeys.forEach((locale) =>
  1242. // i18n.add(locale, __uniConfig.locales[locale])
  1243. // )
  1244. // }
  1245. // }
  1246. var eventChannels = {};
  1247. var eventChannelStack = [];
  1248. function getEventChannel(id) {
  1249. if (id) {
  1250. var eventChannel = eventChannels[id];
  1251. delete eventChannels[id];
  1252. return eventChannel;
  1253. }
  1254. return eventChannelStack.shift();
  1255. }
  1256. var hooks = [
  1257. 'onShow',
  1258. 'onHide',
  1259. 'onError',
  1260. 'onPageNotFound',
  1261. 'onThemeChange',
  1262. 'onUnhandledRejection'];
  1263. function initEventChannel() {
  1264. _vue.default.prototype.getOpenerEventChannel = function () {
  1265. // 微信小程序使用自身getOpenerEventChannel
  1266. {
  1267. return this.$scope.getOpenerEventChannel();
  1268. }
  1269. };
  1270. var callHook = _vue.default.prototype.__call_hook;
  1271. _vue.default.prototype.__call_hook = function (hook, args) {
  1272. if (hook === 'onLoad' && args && args.__id__) {
  1273. this.__eventChannel__ = getEventChannel(args.__id__);
  1274. delete args.__id__;
  1275. }
  1276. return callHook.call(this, hook, args);
  1277. };
  1278. }
  1279. function initScopedSlotsParams() {
  1280. var center = {};
  1281. var parents = {};
  1282. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1283. var has = center[vueId];
  1284. if (!has) {
  1285. parents[vueId] = this;
  1286. this.$on('hook:destroyed', function () {
  1287. delete parents[vueId];
  1288. });
  1289. }
  1290. return has;
  1291. };
  1292. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1293. var data = center[vueId];
  1294. if (data) {
  1295. var object = data[name] || {};
  1296. return key ? object[key] : object;
  1297. } else {
  1298. parents[vueId] = this;
  1299. this.$on('hook:destroyed', function () {
  1300. delete parents[vueId];
  1301. });
  1302. }
  1303. };
  1304. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1305. var vueIds = this.$options.propsData.vueId;
  1306. if (vueIds) {
  1307. var vueId = vueIds.split(',')[0];
  1308. var object = center[vueId] = center[vueId] || {};
  1309. object[name] = value;
  1310. if (parents[vueId]) {
  1311. parents[vueId].$forceUpdate();
  1312. }
  1313. }
  1314. };
  1315. _vue.default.mixin({
  1316. destroyed: function destroyed() {
  1317. var propsData = this.$options.propsData;
  1318. var vueId = propsData && propsData.vueId;
  1319. if (vueId) {
  1320. delete center[vueId];
  1321. delete parents[vueId];
  1322. }
  1323. } });
  1324. }
  1325. function parseBaseApp(vm, _ref3)
  1326. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1327. initEventChannel();
  1328. {
  1329. initScopedSlotsParams();
  1330. }
  1331. if (vm.$options.store) {
  1332. _vue.default.prototype.$store = vm.$options.store;
  1333. }
  1334. uniIdMixin(_vue.default);
  1335. _vue.default.prototype.mpHost = "mp-weixin";
  1336. _vue.default.mixin({
  1337. beforeCreate: function beforeCreate() {
  1338. if (!this.$options.mpType) {
  1339. return;
  1340. }
  1341. this.mpType = this.$options.mpType;
  1342. this.$mp = _defineProperty({
  1343. data: {} },
  1344. this.mpType, this.$options.mpInstance);
  1345. this.$scope = this.$options.mpInstance;
  1346. delete this.$options.mpType;
  1347. delete this.$options.mpInstance;
  1348. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1349. var app = getApp();
  1350. if (app.$vm && app.$vm.$i18n) {
  1351. this._i18n = app.$vm.$i18n;
  1352. }
  1353. }
  1354. if (this.mpType !== 'app') {
  1355. initRefs(this);
  1356. initMocks(this, mocks);
  1357. }
  1358. } });
  1359. var appOptions = {
  1360. onLaunch: function onLaunch(args) {
  1361. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1362. return;
  1363. }
  1364. {
  1365. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1366. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1367. }
  1368. }
  1369. this.$vm = vm;
  1370. this.$vm.$mp = {
  1371. app: this };
  1372. this.$vm.$scope = this;
  1373. // vm 上也挂载 globalData
  1374. this.$vm.globalData = this.globalData;
  1375. this.$vm._isMounted = true;
  1376. this.$vm.__call_hook('mounted', args);
  1377. this.$vm.__call_hook('onLaunch', args);
  1378. } };
  1379. // 兼容旧版本 globalData
  1380. appOptions.globalData = vm.$options.globalData || {};
  1381. // 将 methods 中的方法挂在 getApp() 中
  1382. var methods = vm.$options.methods;
  1383. if (methods) {
  1384. Object.keys(methods).forEach(function (name) {
  1385. appOptions[name] = methods[name];
  1386. });
  1387. }
  1388. initAppLocale(_vue.default, vm, wx.getSystemInfoSync().language || 'zh-Hans');
  1389. initHooks(appOptions, hooks);
  1390. return appOptions;
  1391. }
  1392. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1393. function findVmByVueId(vm, vuePid) {
  1394. var $children = vm.$children;
  1395. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1396. for (var i = $children.length - 1; i >= 0; i--) {
  1397. var childVm = $children[i];
  1398. if (childVm.$scope._$vueId === vuePid) {
  1399. return childVm;
  1400. }
  1401. }
  1402. // 反向递归查找
  1403. var parentVm;
  1404. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1405. parentVm = findVmByVueId($children[_i], vuePid);
  1406. if (parentVm) {
  1407. return parentVm;
  1408. }
  1409. }
  1410. }
  1411. function initBehavior(options) {
  1412. return Behavior(options);
  1413. }
  1414. function isPage() {
  1415. return !!this.route;
  1416. }
  1417. function initRelation(detail) {
  1418. this.triggerEvent('__l', detail);
  1419. }
  1420. function selectAllComponents(mpInstance, selector, $refs) {
  1421. var components = mpInstance.selectAllComponents(selector);
  1422. components.forEach(function (component) {
  1423. var ref = component.dataset.ref;
  1424. $refs[ref] = component.$vm || component;
  1425. {
  1426. if (component.dataset.vueGeneric === 'scoped') {
  1427. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1428. selectAllComponents(scopedComponent, selector, $refs);
  1429. });
  1430. }
  1431. }
  1432. });
  1433. }
  1434. function initRefs(vm) {
  1435. var mpInstance = vm.$scope;
  1436. Object.defineProperty(vm, '$refs', {
  1437. get: function get() {
  1438. var $refs = {};
  1439. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1440. // TODO 暂不考虑 for 中的 scoped
  1441. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1442. forComponents.forEach(function (component) {
  1443. var ref = component.dataset.ref;
  1444. if (!$refs[ref]) {
  1445. $refs[ref] = [];
  1446. }
  1447. $refs[ref].push(component.$vm || component);
  1448. });
  1449. return $refs;
  1450. } });
  1451. }
  1452. function handleLink(event) {var _ref4 =
  1453. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1454. var parentVm;
  1455. if (vuePid) {
  1456. parentVm = findVmByVueId(this.$vm, vuePid);
  1457. }
  1458. if (!parentVm) {
  1459. parentVm = this.$vm;
  1460. }
  1461. vueOptions.parent = parentVm;
  1462. }
  1463. function parseApp(vm) {
  1464. return parseBaseApp(vm, {
  1465. mocks: mocks,
  1466. initRefs: initRefs });
  1467. }
  1468. function createApp(vm) {
  1469. App(parseApp(vm));
  1470. return vm;
  1471. }
  1472. var encodeReserveRE = /[!'()*]/g;
  1473. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1474. var commaRE = /%2C/g;
  1475. // fixed encodeURIComponent which is more conformant to RFC3986:
  1476. // - escapes [!'()*]
  1477. // - preserve commas
  1478. var encode = function encode(str) {return encodeURIComponent(str).
  1479. replace(encodeReserveRE, encodeReserveReplacer).
  1480. replace(commaRE, ',');};
  1481. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1482. var res = obj ? Object.keys(obj).map(function (key) {
  1483. var val = obj[key];
  1484. if (val === undefined) {
  1485. return '';
  1486. }
  1487. if (val === null) {
  1488. return encodeStr(key);
  1489. }
  1490. if (Array.isArray(val)) {
  1491. var result = [];
  1492. val.forEach(function (val2) {
  1493. if (val2 === undefined) {
  1494. return;
  1495. }
  1496. if (val2 === null) {
  1497. result.push(encodeStr(key));
  1498. } else {
  1499. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1500. }
  1501. });
  1502. return result.join('&');
  1503. }
  1504. return encodeStr(key) + '=' + encodeStr(val);
  1505. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1506. return res ? "?".concat(res) : '';
  1507. }
  1508. function parseBaseComponent(vueComponentOptions)
  1509. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1510. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1511. var options = _objectSpread({
  1512. multipleSlots: true,
  1513. addGlobalClass: true },
  1514. vueOptions.options || {});
  1515. {
  1516. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1517. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1518. Object.assign(options, vueOptions['mp-weixin'].options);
  1519. }
  1520. }
  1521. var componentOptions = {
  1522. options: options,
  1523. data: initData(vueOptions, _vue.default.prototype),
  1524. behaviors: initBehaviors(vueOptions, initBehavior),
  1525. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  1526. lifetimes: {
  1527. attached: function attached() {
  1528. var properties = this.properties;
  1529. var options = {
  1530. mpType: isPage.call(this) ? 'page' : 'component',
  1531. mpInstance: this,
  1532. propsData: properties };
  1533. initVueIds(properties.vueId, this);
  1534. // 处理父子关系
  1535. initRelation.call(this, {
  1536. vuePid: this._$vuePid,
  1537. vueOptions: options });
  1538. // 初始化 vue 实例
  1539. this.$vm = new VueComponent(options);
  1540. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1541. initSlots(this.$vm, properties.vueSlots);
  1542. // 触发首次 setData
  1543. this.$vm.$mount();
  1544. },
  1545. ready: function ready() {
  1546. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1547. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1548. if (this.$vm) {
  1549. this.$vm._isMounted = true;
  1550. this.$vm.__call_hook('mounted');
  1551. this.$vm.__call_hook('onReady');
  1552. }
  1553. },
  1554. detached: function detached() {
  1555. this.$vm && this.$vm.$destroy();
  1556. } },
  1557. pageLifetimes: {
  1558. show: function show(args) {
  1559. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1560. },
  1561. hide: function hide() {
  1562. this.$vm && this.$vm.__call_hook('onPageHide');
  1563. },
  1564. resize: function resize(size) {
  1565. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1566. } },
  1567. methods: {
  1568. __l: handleLink,
  1569. __e: handleEvent } };
  1570. // externalClasses
  1571. if (vueOptions.externalClasses) {
  1572. componentOptions.externalClasses = vueOptions.externalClasses;
  1573. }
  1574. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1575. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1576. componentOptions.methods[callMethod] = function (args) {
  1577. return this.$vm[callMethod](args);
  1578. };
  1579. });
  1580. }
  1581. if (isPage) {
  1582. return componentOptions;
  1583. }
  1584. return [componentOptions, VueComponent];
  1585. }
  1586. function parseComponent(vueComponentOptions) {
  1587. return parseBaseComponent(vueComponentOptions, {
  1588. isPage: isPage,
  1589. initRelation: initRelation });
  1590. }
  1591. var hooks$1 = [
  1592. 'onShow',
  1593. 'onHide',
  1594. 'onUnload'];
  1595. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1596. function parseBasePage(vuePageOptions, _ref6)
  1597. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1598. var pageOptions = parseComponent(vuePageOptions);
  1599. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1600. pageOptions.methods.onLoad = function (query) {
  1601. this.options = query;
  1602. var copyQuery = Object.assign({}, query);
  1603. delete copyQuery.__id__;
  1604. this.$page = {
  1605. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1606. this.$vm.$mp.query = query; // 兼容 mpvue
  1607. this.$vm.__call_hook('onLoad', query);
  1608. };
  1609. return pageOptions;
  1610. }
  1611. function parsePage(vuePageOptions) {
  1612. return parseBasePage(vuePageOptions, {
  1613. isPage: isPage,
  1614. initRelation: initRelation });
  1615. }
  1616. function createPage(vuePageOptions) {
  1617. {
  1618. return Component(parsePage(vuePageOptions));
  1619. }
  1620. }
  1621. function createComponent(vueOptions) {
  1622. {
  1623. return Component(parseComponent(vueOptions));
  1624. }
  1625. }
  1626. function createSubpackageApp(vm) {
  1627. var appOptions = parseApp(vm);
  1628. var app = getApp({
  1629. allowDefault: true });
  1630. vm.$scope = app;
  1631. var globalData = app.globalData;
  1632. if (globalData) {
  1633. Object.keys(appOptions.globalData).forEach(function (name) {
  1634. if (!hasOwn(globalData, name)) {
  1635. globalData[name] = appOptions.globalData[name];
  1636. }
  1637. });
  1638. }
  1639. Object.keys(appOptions).forEach(function (name) {
  1640. if (!hasOwn(app, name)) {
  1641. app[name] = appOptions[name];
  1642. }
  1643. });
  1644. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1645. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1646. vm.__call_hook('onShow', args);
  1647. });
  1648. }
  1649. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1650. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1651. vm.__call_hook('onHide', args);
  1652. });
  1653. }
  1654. if (isFn(appOptions.onLaunch)) {
  1655. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1656. vm.__call_hook('onLaunch', args);
  1657. }
  1658. return vm;
  1659. }
  1660. function createPlugin(vm) {
  1661. var appOptions = parseApp(vm);
  1662. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1663. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  1664. vm.__call_hook('onShow', args);
  1665. });
  1666. }
  1667. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1668. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  1669. vm.__call_hook('onHide', args);
  1670. });
  1671. }
  1672. if (isFn(appOptions.onLaunch)) {
  1673. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1674. vm.__call_hook('onLaunch', args);
  1675. }
  1676. return vm;
  1677. }
  1678. todos.forEach(function (todoApi) {
  1679. protocols[todoApi] = false;
  1680. });
  1681. canIUses.forEach(function (canIUseApi) {
  1682. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  1683. canIUseApi;
  1684. if (!wx.canIUse(apiName)) {
  1685. protocols[canIUseApi] = false;
  1686. }
  1687. });
  1688. var uni = {};
  1689. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  1690. uni = new Proxy({}, {
  1691. get: function get(target, name) {
  1692. if (hasOwn(target, name)) {
  1693. return target[name];
  1694. }
  1695. if (baseApi[name]) {
  1696. return baseApi[name];
  1697. }
  1698. if (api[name]) {
  1699. return promisify(name, api[name]);
  1700. }
  1701. {
  1702. if (extraApi[name]) {
  1703. return promisify(name, extraApi[name]);
  1704. }
  1705. if (todoApis[name]) {
  1706. return promisify(name, todoApis[name]);
  1707. }
  1708. }
  1709. if (eventApi[name]) {
  1710. return eventApi[name];
  1711. }
  1712. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  1713. return;
  1714. }
  1715. return promisify(name, wrapper(name, wx[name]));
  1716. },
  1717. set: function set(target, name, value) {
  1718. target[name] = value;
  1719. return true;
  1720. } });
  1721. } else {
  1722. Object.keys(baseApi).forEach(function (name) {
  1723. uni[name] = baseApi[name];
  1724. });
  1725. {
  1726. Object.keys(todoApis).forEach(function (name) {
  1727. uni[name] = promisify(name, todoApis[name]);
  1728. });
  1729. Object.keys(extraApi).forEach(function (name) {
  1730. uni[name] = promisify(name, todoApis[name]);
  1731. });
  1732. }
  1733. Object.keys(eventApi).forEach(function (name) {
  1734. uni[name] = eventApi[name];
  1735. });
  1736. Object.keys(api).forEach(function (name) {
  1737. uni[name] = promisify(name, api[name]);
  1738. });
  1739. Object.keys(wx).forEach(function (name) {
  1740. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  1741. uni[name] = promisify(name, wrapper(name, wx[name]));
  1742. }
  1743. });
  1744. }
  1745. wx.createApp = createApp;
  1746. wx.createPage = createPage;
  1747. wx.createComponent = createComponent;
  1748. wx.createSubpackageApp = createSubpackageApp;
  1749. wx.createPlugin = createPlugin;
  1750. var uni$1 = uni;var _default =
  1751. uni$1;exports.default = _default;
  1752. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  1753. /***/ }),
  1754. /***/ 11:
  1755. /*!**********************************************************************************************************!*\
  1756. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  1757. \**********************************************************************************************************/
  1758. /*! exports provided: default */
  1759. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1760. "use strict";
  1761. __webpack_require__.r(__webpack_exports__);
  1762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  1763. /* globals __VUE_SSR_CONTEXT__ */
  1764. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  1765. // This module is a runtime utility for cleaner component module output and will
  1766. // be included in the final webpack user bundle.
  1767. function normalizeComponent (
  1768. scriptExports,
  1769. render,
  1770. staticRenderFns,
  1771. functionalTemplate,
  1772. injectStyles,
  1773. scopeId,
  1774. moduleIdentifier, /* server only */
  1775. shadowMode, /* vue-cli only */
  1776. components, // fixed by xxxxxx auto components
  1777. renderjs // fixed by xxxxxx renderjs
  1778. ) {
  1779. // Vue.extend constructor export interop
  1780. var options = typeof scriptExports === 'function'
  1781. ? scriptExports.options
  1782. : scriptExports
  1783. // fixed by xxxxxx auto components
  1784. if (components) {
  1785. if (!options.components) {
  1786. options.components = {}
  1787. }
  1788. var hasOwn = Object.prototype.hasOwnProperty
  1789. for (var name in components) {
  1790. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  1791. options.components[name] = components[name]
  1792. }
  1793. }
  1794. }
  1795. // fixed by xxxxxx renderjs
  1796. if (renderjs) {
  1797. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  1798. this[renderjs.__module] = this
  1799. });
  1800. (options.mixins || (options.mixins = [])).push(renderjs)
  1801. }
  1802. // render functions
  1803. if (render) {
  1804. options.render = render
  1805. options.staticRenderFns = staticRenderFns
  1806. options._compiled = true
  1807. }
  1808. // functional template
  1809. if (functionalTemplate) {
  1810. options.functional = true
  1811. }
  1812. // scopedId
  1813. if (scopeId) {
  1814. options._scopeId = 'data-v-' + scopeId
  1815. }
  1816. var hook
  1817. if (moduleIdentifier) { // server build
  1818. hook = function (context) {
  1819. // 2.3 injection
  1820. context =
  1821. context || // cached call
  1822. (this.$vnode && this.$vnode.ssrContext) || // stateful
  1823. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  1824. // 2.2 with runInNewContext: true
  1825. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  1826. context = __VUE_SSR_CONTEXT__
  1827. }
  1828. // inject component styles
  1829. if (injectStyles) {
  1830. injectStyles.call(this, context)
  1831. }
  1832. // register component module identifier for async chunk inferrence
  1833. if (context && context._registeredComponents) {
  1834. context._registeredComponents.add(moduleIdentifier)
  1835. }
  1836. }
  1837. // used by ssr in case component is cached and beforeCreate
  1838. // never gets called
  1839. options._ssrRegister = hook
  1840. } else if (injectStyles) {
  1841. hook = shadowMode
  1842. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  1843. : injectStyles
  1844. }
  1845. if (hook) {
  1846. if (options.functional) {
  1847. // for template-only hot-reload because in that case the render fn doesn't
  1848. // go through the normalizer
  1849. options._injectStyles = hook
  1850. // register for functioal component in vue file
  1851. var originalRender = options.render
  1852. options.render = function renderWithStyleInjection (h, context) {
  1853. hook.call(context)
  1854. return originalRender(h, context)
  1855. }
  1856. } else {
  1857. // inject component registration as beforeCreate hook
  1858. var existing = options.beforeCreate
  1859. options.beforeCreate = existing
  1860. ? [].concat(existing, hook)
  1861. : [hook]
  1862. }
  1863. }
  1864. return {
  1865. exports: scriptExports,
  1866. options: options
  1867. }
  1868. }
  1869. /***/ }),
  1870. /***/ 12:
  1871. /*!****************************************!*\
  1872. !*** D:/66/66applet/common/request.js ***!
  1873. \****************************************/
  1874. /*! no static exports found */
  1875. /***/ (function(module, exports, __webpack_require__) {
  1876. "use strict";
  1877. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  1878. var _MD = _interopRequireDefault(__webpack_require__(/*! ./MD5.js */ 13));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}var baseURL = 'https://api.dms.66km.com/'; //const baseURL='http://wx.32che.cn/'
  1879. //const baseURL='http://58.56.15.138:20189/'
  1880. // baseURL: 'http://192.168.0.140:20187',
  1881. //authorizaURL: 'https://api.dms.66km.com/weixin/authorize',
  1882. //const authorizaURL='http://wx.32che.cn/weixin/authorize'
  1883. //authorizaURL: 'http://58.56.15.138:20187/weixin/authorizeSimulation',
  1884. // authorizaURL: 'http://192.168.0.140:20187/weixin/authorizeSimulation',
  1885. //const code='B527DBDDC89D4A29902D1C7CE34814FB'
  1886. //const webURL='http://192.168.0.215:9588/#/'
  1887. //const webURL='http://dms.32che.cn/#/'
  1888. var webURL = 'https://minh5.66km.com/#/';var fetchPost = function fetchPost() {var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};return new Promise(function (resolve, reject) {header['Content-Type'] = 'application/x-www-form-urlencoded';header['code'] = code;params = _objectSpread(_objectSpread({}, params), {}, { _t: new Date().getTime() });
  1889. uni.request({
  1890. method: 'POST',
  1891. url: baseURL + url,
  1892. data: params,
  1893. header: header,
  1894. dataType: 'json' }).
  1895. then(function (response) {
  1896. setTimeout(function () {
  1897. uni.hideLoading();
  1898. }, 200);var _response = _slicedToArray(
  1899. response, 2),error = _response[0],res = _response[1];
  1900. if (res.data.code == 403) {
  1901. uni.showToast({
  1902. title: res.data.msg,
  1903. icon: 'none',
  1904. duration: 3000 });
  1905. uni.clearStorageSync();
  1906. uni.navigateTo({
  1907. url: '../login/login' });
  1908. } else if (res.data.code == 409) {
  1909. // getToken(url,date,type,header)
  1910. }
  1911. resolve(res.data);
  1912. }).catch(function (error) {var _error = _slicedToArray(
  1913. error, 2),err = _error[0],res = _error[1];
  1914. reject(err);
  1915. });
  1916. });
  1917. };
  1918. var fetchGet = function fetchGet()
  1919. {var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1920. return new Promise(function (resolve, reject) {
  1921. header['Content-Type'] = 'application/x-www-form-urlencoded';
  1922. header['code'] = code;
  1923. params = _objectSpread(_objectSpread({},
  1924. params), {}, {
  1925. _t: new Date().getTime() });
  1926. uni.request({
  1927. method: 'GET',
  1928. url: baseURL + url,
  1929. data: params,
  1930. header: header,
  1931. dataType: 'json' }).
  1932. then(function (response) {
  1933. setTimeout(function () {
  1934. uni.hideLoading();
  1935. }, 200);var _response2 = _slicedToArray(
  1936. response, 2),error = _response2[0],res = _response2[1];
  1937. resolve(res.data);
  1938. }).catch(function (error) {var _error2 = _slicedToArray(
  1939. error, 2),err = _error2[0],res = _error2[1];
  1940. reject(err);
  1941. });
  1942. });
  1943. };
  1944. var http = function http()
  1945. {var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';var date = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'POST';var header = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  1946. return new Promise(function (resolve, reject) {
  1947. header = {};
  1948. var wxOpendata = uni.getStorageSync("wxOpendata");
  1949. if (wxOpendata) {
  1950. header['code'] = wxOpendata.code;
  1951. } else {
  1952. header['code'] = '';
  1953. }
  1954. //header['token']='98A9FED8814B457288166BDF623F33D1';
  1955. //header['uid']='795957B6-8F4B-4E7F-96FE-1F26E5BA21A1';
  1956. header['Content-Type'] = 'application/x-www-form-urlencoded';
  1957. console.log(baseURL + url);
  1958. uni.request({
  1959. method: type,
  1960. url: baseURL + url,
  1961. data: date,
  1962. header: header,
  1963. dataType: 'json' }).
  1964. then(function (response) {
  1965. /* setTimeout(function() {
  1966. uni.hideLoading();
  1967. }, 200); */var _response3 = _slicedToArray(
  1968. response, 2),error = _response3[0],res = _response3[1];
  1969. if (res.data.code == 401 || res.data.code == 403) {
  1970. uni.showToast({
  1971. title: res.data.msg,
  1972. icon: 'none',
  1973. duration: 3000 });
  1974. uni.clearStorageSync();
  1975. /* uni.navigateTo({
  1976. url:'../login/login'
  1977. }) */
  1978. } else if (res.data.code == 409) {
  1979. // getToken(url,date,type,header)
  1980. }
  1981. resolve(res.data);
  1982. }).catch(function (error) {var _error3 = _slicedToArray(
  1983. error, 2),err = _error3[0],res = _error3[1];
  1984. reject(err);
  1985. });
  1986. });
  1987. };
  1988. function getToken(url, date, type, header) {
  1989. var header = {};
  1990. //var userId=uni.getStorageSync("devData").userId;
  1991. //var devData=uni.getStorageSync("devData")
  1992. header['Content-Type'] = 'application/x-www-form-urlencoded';
  1993. uni.request({
  1994. method: "POST",
  1995. url: baseURL + '/sys/getTokenByUserID',
  1996. data: {
  1997. userId: userId },
  1998. header: header,
  1999. dataType: 'json' }).
  2000. then(function (response) {var _response4 = _slicedToArray(
  2001. response, 2),error = _response4[0],res = _response4[1];
  2002. var accessToken = res.data.data.accessToken.accessToken;
  2003. devData.accessToken = accessToken;
  2004. uni.setStorage({
  2005. key: 'devData',
  2006. data: devData,
  2007. success: function success() {
  2008. refresh(url, date, type, header); //刷新接口
  2009. } });
  2010. // console.log(accessToken)
  2011. }).catch(function (error) {
  2012. });
  2013. }
  2014. function refresh(url, date, type, header) {
  2015. uni.request({
  2016. method: type,
  2017. url: baseURL + url,
  2018. data: date,
  2019. header: header,
  2020. dataType: 'json' }).
  2021. then(function (response) {
  2022. setTimeout(function () {
  2023. uni.hideLoading();
  2024. }, 200);var _response5 = _slicedToArray(
  2025. response, 2),error = _response5[0],res = _response5[1];
  2026. if (res.data.code == 403) {
  2027. uni.showToast({
  2028. title: res.data.msg,
  2029. icon: 'none',
  2030. duration: 3000 });
  2031. uni.navigateTo({
  2032. url: '../login/login' });
  2033. }
  2034. resolve(res.data);
  2035. }).catch(function (error) {var _error4 = _slicedToArray(
  2036. error, 2),err = _error4[0],res = _error4[1];
  2037. reject(err);
  2038. });
  2039. }var _default =
  2040. {
  2041. http: http, baseURL: baseURL, fetchGet: fetchGet, fetchPost: fetchPost, webURL: webURL };exports.default = _default;
  2042. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  2043. /***/ }),
  2044. /***/ 13:
  2045. /*!************************************!*\
  2046. !*** D:/66/66applet/common/MD5.js ***!
  2047. \************************************/
  2048. /*! no static exports found */
  2049. /***/ (function(module, exports, __webpack_require__) {
  2050. "use strict";
  2051. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function md5(string) {
  2052. var x = Array();
  2053. var k, AA, BB, CC, DD, a, b, c, d;
  2054. var S11 = 7,S12 = 12,S13 = 17,S14 = 22;
  2055. var S21 = 5,S22 = 9,S23 = 14,S24 = 20;
  2056. var S31 = 4,S32 = 11,S33 = 16,S34 = 23;
  2057. var S41 = 6,S42 = 10,S43 = 15,S44 = 21;
  2058. string = Utf8Encode(string);
  2059. x = ConvertToWordArray(string);
  2060. a = 0x67452301;
  2061. b = 0xEFCDAB89;
  2062. c = 0x98BADCFE;
  2063. d = 0x10325476;
  2064. for (k = 0; k < x.length; k += 16) {
  2065. AA = a;
  2066. BB = b;
  2067. CC = c;
  2068. DD = d;
  2069. a = FF(a, b, c, d, x[k + 0], S11, 0xD76AA478);
  2070. d = FF(d, a, b, c, x[k + 1], S12, 0xE8C7B756);
  2071. c = FF(c, d, a, b, x[k + 2], S13, 0x242070DB);
  2072. b = FF(b, c, d, a, x[k + 3], S14, 0xC1BDCEEE);
  2073. a = FF(a, b, c, d, x[k + 4], S11, 0xF57C0FAF);
  2074. d = FF(d, a, b, c, x[k + 5], S12, 0x4787C62A);
  2075. c = FF(c, d, a, b, x[k + 6], S13, 0xA8304613);
  2076. b = FF(b, c, d, a, x[k + 7], S14, 0xFD469501);
  2077. a = FF(a, b, c, d, x[k + 8], S11, 0x698098D8);
  2078. d = FF(d, a, b, c, x[k + 9], S12, 0x8B44F7AF);
  2079. c = FF(c, d, a, b, x[k + 10], S13, 0xFFFF5BB1);
  2080. b = FF(b, c, d, a, x[k + 11], S14, 0x895CD7BE);
  2081. a = FF(a, b, c, d, x[k + 12], S11, 0x6B901122);
  2082. d = FF(d, a, b, c, x[k + 13], S12, 0xFD987193);
  2083. c = FF(c, d, a, b, x[k + 14], S13, 0xA679438E);
  2084. b = FF(b, c, d, a, x[k + 15], S14, 0x49B40821);
  2085. a = GG(a, b, c, d, x[k + 1], S21, 0xF61E2562);
  2086. d = GG(d, a, b, c, x[k + 6], S22, 0xC040B340);
  2087. c = GG(c, d, a, b, x[k + 11], S23, 0x265E5A51);
  2088. b = GG(b, c, d, a, x[k + 0], S24, 0xE9B6C7AA);
  2089. a = GG(a, b, c, d, x[k + 5], S21, 0xD62F105D);
  2090. d = GG(d, a, b, c, x[k + 10], S22, 0x2441453);
  2091. c = GG(c, d, a, b, x[k + 15], S23, 0xD8A1E681);
  2092. b = GG(b, c, d, a, x[k + 4], S24, 0xE7D3FBC8);
  2093. a = GG(a, b, c, d, x[k + 9], S21, 0x21E1CDE6);
  2094. d = GG(d, a, b, c, x[k + 14], S22, 0xC33707D6);
  2095. c = GG(c, d, a, b, x[k + 3], S23, 0xF4D50D87);
  2096. b = GG(b, c, d, a, x[k + 8], S24, 0x455A14ED);
  2097. a = GG(a, b, c, d, x[k + 13], S21, 0xA9E3E905);
  2098. d = GG(d, a, b, c, x[k + 2], S22, 0xFCEFA3F8);
  2099. c = GG(c, d, a, b, x[k + 7], S23, 0x676F02D9);
  2100. b = GG(b, c, d, a, x[k + 12], S24, 0x8D2A4C8A);
  2101. a = HH(a, b, c, d, x[k + 5], S31, 0xFFFA3942);
  2102. d = HH(d, a, b, c, x[k + 8], S32, 0x8771F681);
  2103. c = HH(c, d, a, b, x[k + 11], S33, 0x6D9D6122);
  2104. b = HH(b, c, d, a, x[k + 14], S34, 0xFDE5380C);
  2105. a = HH(a, b, c, d, x[k + 1], S31, 0xA4BEEA44);
  2106. d = HH(d, a, b, c, x[k + 4], S32, 0x4BDECFA9);
  2107. c = HH(c, d, a, b, x[k + 7], S33, 0xF6BB4B60);
  2108. b = HH(b, c, d, a, x[k + 10], S34, 0xBEBFBC70);
  2109. a = HH(a, b, c, d, x[k + 13], S31, 0x289B7EC6);
  2110. d = HH(d, a, b, c, x[k + 0], S32, 0xEAA127FA);
  2111. c = HH(c, d, a, b, x[k + 3], S33, 0xD4EF3085);
  2112. b = HH(b, c, d, a, x[k + 6], S34, 0x4881D05);
  2113. a = HH(a, b, c, d, x[k + 9], S31, 0xD9D4D039);
  2114. d = HH(d, a, b, c, x[k + 12], S32, 0xE6DB99E5);
  2115. c = HH(c, d, a, b, x[k + 15], S33, 0x1FA27CF8);
  2116. b = HH(b, c, d, a, x[k + 2], S34, 0xC4AC5665);
  2117. a = II(a, b, c, d, x[k + 0], S41, 0xF4292244);
  2118. d = II(d, a, b, c, x[k + 7], S42, 0x432AFF97);
  2119. c = II(c, d, a, b, x[k + 14], S43, 0xAB9423A7);
  2120. b = II(b, c, d, a, x[k + 5], S44, 0xFC93A039);
  2121. a = II(a, b, c, d, x[k + 12], S41, 0x655B59C3);
  2122. d = II(d, a, b, c, x[k + 3], S42, 0x8F0CCC92);
  2123. c = II(c, d, a, b, x[k + 10], S43, 0xFFEFF47D);
  2124. b = II(b, c, d, a, x[k + 1], S44, 0x85845DD1);
  2125. a = II(a, b, c, d, x[k + 8], S41, 0x6FA87E4F);
  2126. d = II(d, a, b, c, x[k + 15], S42, 0xFE2CE6E0);
  2127. c = II(c, d, a, b, x[k + 6], S43, 0xA3014314);
  2128. b = II(b, c, d, a, x[k + 13], S44, 0x4E0811A1);
  2129. a = II(a, b, c, d, x[k + 4], S41, 0xF7537E82);
  2130. d = II(d, a, b, c, x[k + 11], S42, 0xBD3AF235);
  2131. c = II(c, d, a, b, x[k + 2], S43, 0x2AD7D2BB);
  2132. b = II(b, c, d, a, x[k + 9], S44, 0xEB86D391);
  2133. a = AddUnsigned(a, AA);
  2134. b = AddUnsigned(b, BB);
  2135. c = AddUnsigned(c, CC);
  2136. d = AddUnsigned(d, DD);
  2137. }
  2138. var temp = WordToHex(a) + WordToHex(b) + WordToHex(c) + WordToHex(d);
  2139. return temp.toUpperCase();
  2140. }
  2141. function RotateLeft(lValue, iShiftBits) {
  2142. return lValue << iShiftBits | lValue >>> 32 - iShiftBits;
  2143. }
  2144. function AddUnsigned(lX, lY) {
  2145. var lX4, lY4, lX8, lY8, lResult;
  2146. lX8 = lX & 0x80000000;
  2147. lY8 = lY & 0x80000000;
  2148. lX4 = lX & 0x40000000;
  2149. lY4 = lY & 0x40000000;
  2150. lResult = (lX & 0x3FFFFFFF) + (lY & 0x3FFFFFFF);
  2151. if (lX4 & lY4) {
  2152. return lResult ^ 0x80000000 ^ lX8 ^ lY8;
  2153. }
  2154. if (lX4 | lY4) {
  2155. if (lResult & 0x40000000) {
  2156. return lResult ^ 0xC0000000 ^ lX8 ^ lY8;
  2157. } else {
  2158. return lResult ^ 0x40000000 ^ lX8 ^ lY8;
  2159. }
  2160. } else {
  2161. return lResult ^ lX8 ^ lY8;
  2162. }
  2163. }
  2164. function F(x, y, z) {
  2165. return x & y | ~x & z;
  2166. }
  2167. function G(x, y, z) {
  2168. return x & z | y & ~z;
  2169. }
  2170. function H(x, y, z) {
  2171. return x ^ y ^ z;
  2172. }
  2173. function I(x, y, z) {
  2174. return y ^ (x | ~z);
  2175. }
  2176. function FF(a, b, c, d, x, s, ac) {
  2177. a = AddUnsigned(a, AddUnsigned(AddUnsigned(F(b, c, d), x), ac));
  2178. return AddUnsigned(RotateLeft(a, s), b);
  2179. }
  2180. function GG(a, b, c, d, x, s, ac) {
  2181. a = AddUnsigned(a, AddUnsigned(AddUnsigned(G(b, c, d), x), ac));
  2182. return AddUnsigned(RotateLeft(a, s), b);
  2183. }
  2184. function HH(a, b, c, d, x, s, ac) {
  2185. a = AddUnsigned(a, AddUnsigned(AddUnsigned(H(b, c, d), x), ac));
  2186. return AddUnsigned(RotateLeft(a, s), b);
  2187. }
  2188. function II(a, b, c, d, x, s, ac) {
  2189. a = AddUnsigned(a, AddUnsigned(AddUnsigned(I(b, c, d), x), ac));
  2190. return AddUnsigned(RotateLeft(a, s), b);
  2191. }
  2192. function ConvertToWordArray(string) {
  2193. var lWordCount;
  2194. var lMessageLength = string.length;
  2195. var lNumberOfWords_temp1 = lMessageLength + 8;
  2196. var lNumberOfWords_temp2 = (lNumberOfWords_temp1 - lNumberOfWords_temp1 % 64) / 64;
  2197. var lNumberOfWords = (lNumberOfWords_temp2 + 1) * 16;
  2198. var lWordArray = Array(lNumberOfWords - 1);
  2199. var lBytePosition = 0;
  2200. var lByteCount = 0;
  2201. while (lByteCount < lMessageLength) {
  2202. lWordCount = (lByteCount - lByteCount % 4) / 4;
  2203. lBytePosition = lByteCount % 4 * 8;
  2204. lWordArray[lWordCount] = lWordArray[lWordCount] | string.charCodeAt(lByteCount) << lBytePosition;
  2205. lByteCount++;
  2206. }
  2207. lWordCount = (lByteCount - lByteCount % 4) / 4;
  2208. lBytePosition = lByteCount % 4 * 8;
  2209. lWordArray[lWordCount] = lWordArray[lWordCount] | 0x80 << lBytePosition;
  2210. lWordArray[lNumberOfWords - 2] = lMessageLength << 3;
  2211. lWordArray[lNumberOfWords - 1] = lMessageLength >>> 29;
  2212. return lWordArray;
  2213. }
  2214. function WordToHex(lValue) {
  2215. var WordToHexValue = "",WordToHexValue_temp = "",lByte,lCount;
  2216. for (lCount = 0; lCount <= 3; lCount++) {
  2217. lByte = lValue >>> lCount * 8 & 255;
  2218. WordToHexValue_temp = "0" + lByte.toString(16);
  2219. WordToHexValue = WordToHexValue + WordToHexValue_temp.substr(WordToHexValue_temp.length - 2, 2);
  2220. }
  2221. return WordToHexValue;
  2222. }
  2223. function Utf8Encode(string) {
  2224. var utftext = "";
  2225. for (var n = 0; n < string.length; n++) {
  2226. var c = string.charCodeAt(n);
  2227. if (c < 128) {
  2228. utftext += String.fromCharCode(c);
  2229. } else if (c > 127 && c < 2048) {
  2230. utftext += String.fromCharCode(c >> 6 | 192);
  2231. utftext += String.fromCharCode(c & 63 | 128);
  2232. } else {
  2233. utftext += String.fromCharCode(c >> 12 | 224);
  2234. utftext += String.fromCharCode(c >> 6 & 63 | 128);
  2235. utftext += String.fromCharCode(c & 63 | 128);
  2236. }
  2237. }
  2238. return utftext;
  2239. }var _default =
  2240. {
  2241. md5: md5 };exports.default = _default;
  2242. /***/ }),
  2243. /***/ 14:
  2244. /*!***************************************!*\
  2245. !*** D:/66/66applet/common/common.js ***!
  2246. \***************************************/
  2247. /*! no static exports found */
  2248. /***/ (function(module, exports, __webpack_require__) {
  2249. "use strict";
  2250. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  2251. var isUserId = function isUserId() {
  2252. var userId = uni.getStorageSync("logodata").uid;
  2253. //console.log("userId---"+userId)
  2254. if (!userId) {
  2255. uni.navigateTo({
  2256. url: '../login/login' });
  2257. }
  2258. };
  2259. /* const uid =function() {
  2260. var userId=uni.getStorageSync("logodata").uid;
  2261. return
  2262. } */
  2263. // 防止处理多次点击
  2264. function noMultipleClicks(methods, info) {
  2265. // methods是点击后需要执行的函数, info是函数需要传的参数
  2266. var that = this;
  2267. if (that.noClick) {
  2268. // 第一次点击
  2269. that.noClick = false;
  2270. if (info && info !== '' || info == 0) {
  2271. // info是执行函数需要传的参数
  2272. methods(info);
  2273. } else {
  2274. methods();
  2275. }
  2276. setTimeout(function () {
  2277. that.noClick = true;
  2278. }, 3000);
  2279. } else {
  2280. // 这里是重复点击的判断
  2281. }
  2282. }var _default =
  2283. {
  2284. commonData: {
  2285. companyType: 1 },
  2286. isUserId: isUserId,
  2287. noMultipleClicks: noMultipleClicks // 禁止多次点击
  2288. };exports.default = _default;
  2289. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  2290. /***/ }),
  2291. /***/ 2:
  2292. /*!***********************************!*\
  2293. !*** (webpack)/buildin/global.js ***!
  2294. \***********************************/
  2295. /*! no static exports found */
  2296. /***/ (function(module, exports) {
  2297. var g;
  2298. // This works in non-strict mode
  2299. g = (function() {
  2300. return this;
  2301. })();
  2302. try {
  2303. // This works if eval is allowed (see CSP)
  2304. g = g || new Function("return this")();
  2305. } catch (e) {
  2306. // This works if the window reference is available
  2307. if (typeof window === "object") g = window;
  2308. }
  2309. // g can still be undefined, but nothing to do about it...
  2310. // We return undefined, instead of nothing here, so it's
  2311. // easier to handle this case. if(!global) { ...}
  2312. module.exports = g;
  2313. /***/ }),
  2314. /***/ 3:
  2315. /*!******************************************************************************************!*\
  2316. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  2317. \******************************************************************************************/
  2318. /*! exports provided: default */
  2319. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2320. "use strict";
  2321. __webpack_require__.r(__webpack_exports__);
  2322. /* WEBPACK VAR INJECTION */(function(global) {/*!
  2323. * Vue.js v2.6.11
  2324. * (c) 2014-2021 Evan You
  2325. * Released under the MIT License.
  2326. */
  2327. /* */
  2328. var emptyObject = Object.freeze({});
  2329. // These helpers produce better VM code in JS engines due to their
  2330. // explicitness and function inlining.
  2331. function isUndef (v) {
  2332. return v === undefined || v === null
  2333. }
  2334. function isDef (v) {
  2335. return v !== undefined && v !== null
  2336. }
  2337. function isTrue (v) {
  2338. return v === true
  2339. }
  2340. function isFalse (v) {
  2341. return v === false
  2342. }
  2343. /**
  2344. * Check if value is primitive.
  2345. */
  2346. function isPrimitive (value) {
  2347. return (
  2348. typeof value === 'string' ||
  2349. typeof value === 'number' ||
  2350. // $flow-disable-line
  2351. typeof value === 'symbol' ||
  2352. typeof value === 'boolean'
  2353. )
  2354. }
  2355. /**
  2356. * Quick object check - this is primarily used to tell
  2357. * Objects from primitive values when we know the value
  2358. * is a JSON-compliant type.
  2359. */
  2360. function isObject (obj) {
  2361. return obj !== null && typeof obj === 'object'
  2362. }
  2363. /**
  2364. * Get the raw type string of a value, e.g., [object Object].
  2365. */
  2366. var _toString = Object.prototype.toString;
  2367. function toRawType (value) {
  2368. return _toString.call(value).slice(8, -1)
  2369. }
  2370. /**
  2371. * Strict object type check. Only returns true
  2372. * for plain JavaScript objects.
  2373. */
  2374. function isPlainObject (obj) {
  2375. return _toString.call(obj) === '[object Object]'
  2376. }
  2377. function isRegExp (v) {
  2378. return _toString.call(v) === '[object RegExp]'
  2379. }
  2380. /**
  2381. * Check if val is a valid array index.
  2382. */
  2383. function isValidArrayIndex (val) {
  2384. var n = parseFloat(String(val));
  2385. return n >= 0 && Math.floor(n) === n && isFinite(val)
  2386. }
  2387. function isPromise (val) {
  2388. return (
  2389. isDef(val) &&
  2390. typeof val.then === 'function' &&
  2391. typeof val.catch === 'function'
  2392. )
  2393. }
  2394. /**
  2395. * Convert a value to a string that is actually rendered.
  2396. */
  2397. function toString (val) {
  2398. return val == null
  2399. ? ''
  2400. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  2401. ? JSON.stringify(val, null, 2)
  2402. : String(val)
  2403. }
  2404. /**
  2405. * Convert an input value to a number for persistence.
  2406. * If the conversion fails, return original string.
  2407. */
  2408. function toNumber (val) {
  2409. var n = parseFloat(val);
  2410. return isNaN(n) ? val : n
  2411. }
  2412. /**
  2413. * Make a map and return a function for checking if a key
  2414. * is in that map.
  2415. */
  2416. function makeMap (
  2417. str,
  2418. expectsLowerCase
  2419. ) {
  2420. var map = Object.create(null);
  2421. var list = str.split(',');
  2422. for (var i = 0; i < list.length; i++) {
  2423. map[list[i]] = true;
  2424. }
  2425. return expectsLowerCase
  2426. ? function (val) { return map[val.toLowerCase()]; }
  2427. : function (val) { return map[val]; }
  2428. }
  2429. /**
  2430. * Check if a tag is a built-in tag.
  2431. */
  2432. var isBuiltInTag = makeMap('slot,component', true);
  2433. /**
  2434. * Check if an attribute is a reserved attribute.
  2435. */
  2436. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  2437. /**
  2438. * Remove an item from an array.
  2439. */
  2440. function remove (arr, item) {
  2441. if (arr.length) {
  2442. var index = arr.indexOf(item);
  2443. if (index > -1) {
  2444. return arr.splice(index, 1)
  2445. }
  2446. }
  2447. }
  2448. /**
  2449. * Check whether an object has the property.
  2450. */
  2451. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2452. function hasOwn (obj, key) {
  2453. return hasOwnProperty.call(obj, key)
  2454. }
  2455. /**
  2456. * Create a cached version of a pure function.
  2457. */
  2458. function cached (fn) {
  2459. var cache = Object.create(null);
  2460. return (function cachedFn (str) {
  2461. var hit = cache[str];
  2462. return hit || (cache[str] = fn(str))
  2463. })
  2464. }
  2465. /**
  2466. * Camelize a hyphen-delimited string.
  2467. */
  2468. var camelizeRE = /-(\w)/g;
  2469. var camelize = cached(function (str) {
  2470. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  2471. });
  2472. /**
  2473. * Capitalize a string.
  2474. */
  2475. var capitalize = cached(function (str) {
  2476. return str.charAt(0).toUpperCase() + str.slice(1)
  2477. });
  2478. /**
  2479. * Hyphenate a camelCase string.
  2480. */
  2481. var hyphenateRE = /\B([A-Z])/g;
  2482. var hyphenate = cached(function (str) {
  2483. return str.replace(hyphenateRE, '-$1').toLowerCase()
  2484. });
  2485. /**
  2486. * Simple bind polyfill for environments that do not support it,
  2487. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  2488. * since native bind is now performant enough in most browsers.
  2489. * But removing it would mean breaking code that was able to run in
  2490. * PhantomJS 1.x, so this must be kept for backward compatibility.
  2491. */
  2492. /* istanbul ignore next */
  2493. function polyfillBind (fn, ctx) {
  2494. function boundFn (a) {
  2495. var l = arguments.length;
  2496. return l
  2497. ? l > 1
  2498. ? fn.apply(ctx, arguments)
  2499. : fn.call(ctx, a)
  2500. : fn.call(ctx)
  2501. }
  2502. boundFn._length = fn.length;
  2503. return boundFn
  2504. }
  2505. function nativeBind (fn, ctx) {
  2506. return fn.bind(ctx)
  2507. }
  2508. var bind = Function.prototype.bind
  2509. ? nativeBind
  2510. : polyfillBind;
  2511. /**
  2512. * Convert an Array-like object to a real Array.
  2513. */
  2514. function toArray (list, start) {
  2515. start = start || 0;
  2516. var i = list.length - start;
  2517. var ret = new Array(i);
  2518. while (i--) {
  2519. ret[i] = list[i + start];
  2520. }
  2521. return ret
  2522. }
  2523. /**
  2524. * Mix properties into target object.
  2525. */
  2526. function extend (to, _from) {
  2527. for (var key in _from) {
  2528. to[key] = _from[key];
  2529. }
  2530. return to
  2531. }
  2532. /**
  2533. * Merge an Array of Objects into a single Object.
  2534. */
  2535. function toObject (arr) {
  2536. var res = {};
  2537. for (var i = 0; i < arr.length; i++) {
  2538. if (arr[i]) {
  2539. extend(res, arr[i]);
  2540. }
  2541. }
  2542. return res
  2543. }
  2544. /* eslint-disable no-unused-vars */
  2545. /**
  2546. * Perform no operation.
  2547. * Stubbing args to make Flow happy without leaving useless transpiled code
  2548. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  2549. */
  2550. function noop (a, b, c) {}
  2551. /**
  2552. * Always return false.
  2553. */
  2554. var no = function (a, b, c) { return false; };
  2555. /* eslint-enable no-unused-vars */
  2556. /**
  2557. * Return the same value.
  2558. */
  2559. var identity = function (_) { return _; };
  2560. /**
  2561. * Check if two values are loosely equal - that is,
  2562. * if they are plain objects, do they have the same shape?
  2563. */
  2564. function looseEqual (a, b) {
  2565. if (a === b) { return true }
  2566. var isObjectA = isObject(a);
  2567. var isObjectB = isObject(b);
  2568. if (isObjectA && isObjectB) {
  2569. try {
  2570. var isArrayA = Array.isArray(a);
  2571. var isArrayB = Array.isArray(b);
  2572. if (isArrayA && isArrayB) {
  2573. return a.length === b.length && a.every(function (e, i) {
  2574. return looseEqual(e, b[i])
  2575. })
  2576. } else if (a instanceof Date && b instanceof Date) {
  2577. return a.getTime() === b.getTime()
  2578. } else if (!isArrayA && !isArrayB) {
  2579. var keysA = Object.keys(a);
  2580. var keysB = Object.keys(b);
  2581. return keysA.length === keysB.length && keysA.every(function (key) {
  2582. return looseEqual(a[key], b[key])
  2583. })
  2584. } else {
  2585. /* istanbul ignore next */
  2586. return false
  2587. }
  2588. } catch (e) {
  2589. /* istanbul ignore next */
  2590. return false
  2591. }
  2592. } else if (!isObjectA && !isObjectB) {
  2593. return String(a) === String(b)
  2594. } else {
  2595. return false
  2596. }
  2597. }
  2598. /**
  2599. * Return the first index at which a loosely equal value can be
  2600. * found in the array (if value is a plain object, the array must
  2601. * contain an object of the same shape), or -1 if it is not present.
  2602. */
  2603. function looseIndexOf (arr, val) {
  2604. for (var i = 0; i < arr.length; i++) {
  2605. if (looseEqual(arr[i], val)) { return i }
  2606. }
  2607. return -1
  2608. }
  2609. /**
  2610. * Ensure a function is called only once.
  2611. */
  2612. function once (fn) {
  2613. var called = false;
  2614. return function () {
  2615. if (!called) {
  2616. called = true;
  2617. fn.apply(this, arguments);
  2618. }
  2619. }
  2620. }
  2621. var ASSET_TYPES = [
  2622. 'component',
  2623. 'directive',
  2624. 'filter'
  2625. ];
  2626. var LIFECYCLE_HOOKS = [
  2627. 'beforeCreate',
  2628. 'created',
  2629. 'beforeMount',
  2630. 'mounted',
  2631. 'beforeUpdate',
  2632. 'updated',
  2633. 'beforeDestroy',
  2634. 'destroyed',
  2635. 'activated',
  2636. 'deactivated',
  2637. 'errorCaptured',
  2638. 'serverPrefetch'
  2639. ];
  2640. /* */
  2641. var config = ({
  2642. /**
  2643. * Option merge strategies (used in core/util/options)
  2644. */
  2645. // $flow-disable-line
  2646. optionMergeStrategies: Object.create(null),
  2647. /**
  2648. * Whether to suppress warnings.
  2649. */
  2650. silent: false,
  2651. /**
  2652. * Show production mode tip message on boot?
  2653. */
  2654. productionTip: "development" !== 'production',
  2655. /**
  2656. * Whether to enable devtools
  2657. */
  2658. devtools: "development" !== 'production',
  2659. /**
  2660. * Whether to record perf
  2661. */
  2662. performance: false,
  2663. /**
  2664. * Error handler for watcher errors
  2665. */
  2666. errorHandler: null,
  2667. /**
  2668. * Warn handler for watcher warns
  2669. */
  2670. warnHandler: null,
  2671. /**
  2672. * Ignore certain custom elements
  2673. */
  2674. ignoredElements: [],
  2675. /**
  2676. * Custom user key aliases for v-on
  2677. */
  2678. // $flow-disable-line
  2679. keyCodes: Object.create(null),
  2680. /**
  2681. * Check if a tag is reserved so that it cannot be registered as a
  2682. * component. This is platform-dependent and may be overwritten.
  2683. */
  2684. isReservedTag: no,
  2685. /**
  2686. * Check if an attribute is reserved so that it cannot be used as a component
  2687. * prop. This is platform-dependent and may be overwritten.
  2688. */
  2689. isReservedAttr: no,
  2690. /**
  2691. * Check if a tag is an unknown element.
  2692. * Platform-dependent.
  2693. */
  2694. isUnknownElement: no,
  2695. /**
  2696. * Get the namespace of an element
  2697. */
  2698. getTagNamespace: noop,
  2699. /**
  2700. * Parse the real tag name for the specific platform.
  2701. */
  2702. parsePlatformTagName: identity,
  2703. /**
  2704. * Check if an attribute must be bound using property, e.g. value
  2705. * Platform-dependent.
  2706. */
  2707. mustUseProp: no,
  2708. /**
  2709. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  2710. * This will significantly reduce performance if set to false.
  2711. */
  2712. async: true,
  2713. /**
  2714. * Exposed for legacy reasons
  2715. */
  2716. _lifecycleHooks: LIFECYCLE_HOOKS
  2717. });
  2718. /* */
  2719. /**
  2720. * unicode letters used for parsing html tags, component names and property paths.
  2721. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  2722. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  2723. */
  2724. 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/;
  2725. /**
  2726. * Check if a string starts with $ or _
  2727. */
  2728. function isReserved (str) {
  2729. var c = (str + '').charCodeAt(0);
  2730. return c === 0x24 || c === 0x5F
  2731. }
  2732. /**
  2733. * Define a property.
  2734. */
  2735. function def (obj, key, val, enumerable) {
  2736. Object.defineProperty(obj, key, {
  2737. value: val,
  2738. enumerable: !!enumerable,
  2739. writable: true,
  2740. configurable: true
  2741. });
  2742. }
  2743. /**
  2744. * Parse simple path.
  2745. */
  2746. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  2747. function parsePath (path) {
  2748. if (bailRE.test(path)) {
  2749. return
  2750. }
  2751. var segments = path.split('.');
  2752. return function (obj) {
  2753. for (var i = 0; i < segments.length; i++) {
  2754. if (!obj) { return }
  2755. obj = obj[segments[i]];
  2756. }
  2757. return obj
  2758. }
  2759. }
  2760. /* */
  2761. // can we use __proto__?
  2762. var hasProto = '__proto__' in {};
  2763. // Browser environment sniffing
  2764. var inBrowser = typeof window !== 'undefined';
  2765. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  2766. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  2767. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  2768. var isIE = UA && /msie|trident/.test(UA);
  2769. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  2770. var isEdge = UA && UA.indexOf('edge/') > 0;
  2771. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  2772. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  2773. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  2774. var isPhantomJS = UA && /phantomjs/.test(UA);
  2775. var isFF = UA && UA.match(/firefox\/(\d+)/);
  2776. // Firefox has a "watch" function on Object.prototype...
  2777. var nativeWatch = ({}).watch;
  2778. if (inBrowser) {
  2779. try {
  2780. var opts = {};
  2781. Object.defineProperty(opts, 'passive', ({
  2782. get: function get () {
  2783. }
  2784. })); // https://github.com/facebook/flow/issues/285
  2785. window.addEventListener('test-passive', null, opts);
  2786. } catch (e) {}
  2787. }
  2788. // this needs to be lazy-evaled because vue may be required before
  2789. // vue-server-renderer can set VUE_ENV
  2790. var _isServer;
  2791. var isServerRendering = function () {
  2792. if (_isServer === undefined) {
  2793. /* istanbul ignore if */
  2794. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  2795. // detect presence of vue-server-renderer and avoid
  2796. // Webpack shimming the process
  2797. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  2798. } else {
  2799. _isServer = false;
  2800. }
  2801. }
  2802. return _isServer
  2803. };
  2804. // detect devtools
  2805. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  2806. /* istanbul ignore next */
  2807. function isNative (Ctor) {
  2808. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  2809. }
  2810. var hasSymbol =
  2811. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  2812. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  2813. var _Set;
  2814. /* istanbul ignore if */ // $flow-disable-line
  2815. if (typeof Set !== 'undefined' && isNative(Set)) {
  2816. // use native Set when available.
  2817. _Set = Set;
  2818. } else {
  2819. // a non-standard Set polyfill that only works with primitive keys.
  2820. _Set = /*@__PURE__*/(function () {
  2821. function Set () {
  2822. this.set = Object.create(null);
  2823. }
  2824. Set.prototype.has = function has (key) {
  2825. return this.set[key] === true
  2826. };
  2827. Set.prototype.add = function add (key) {
  2828. this.set[key] = true;
  2829. };
  2830. Set.prototype.clear = function clear () {
  2831. this.set = Object.create(null);
  2832. };
  2833. return Set;
  2834. }());
  2835. }
  2836. /* */
  2837. var warn = noop;
  2838. var tip = noop;
  2839. var generateComponentTrace = (noop); // work around flow check
  2840. var formatComponentName = (noop);
  2841. if (true) {
  2842. var hasConsole = typeof console !== 'undefined';
  2843. var classifyRE = /(?:^|[-_])(\w)/g;
  2844. var classify = function (str) { return str
  2845. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  2846. .replace(/[-_]/g, ''); };
  2847. warn = function (msg, vm) {
  2848. var trace = vm ? generateComponentTrace(vm) : '';
  2849. if (config.warnHandler) {
  2850. config.warnHandler.call(null, msg, vm, trace);
  2851. } else if (hasConsole && (!config.silent)) {
  2852. console.error(("[Vue warn]: " + msg + trace));
  2853. }
  2854. };
  2855. tip = function (msg, vm) {
  2856. if (hasConsole && (!config.silent)) {
  2857. console.warn("[Vue tip]: " + msg + (
  2858. vm ? generateComponentTrace(vm) : ''
  2859. ));
  2860. }
  2861. };
  2862. formatComponentName = function (vm, includeFile) {
  2863. if (vm.$root === vm) {
  2864. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  2865. return ('') + vm.$options.__file
  2866. }
  2867. return '<Root>'
  2868. }
  2869. var options = typeof vm === 'function' && vm.cid != null
  2870. ? vm.options
  2871. : vm._isVue
  2872. ? vm.$options || vm.constructor.options
  2873. : vm;
  2874. var name = options.name || options._componentTag;
  2875. var file = options.__file;
  2876. if (!name && file) {
  2877. var match = file.match(/([^/\\]+)\.vue$/);
  2878. name = match && match[1];
  2879. }
  2880. return (
  2881. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  2882. (file && includeFile !== false ? (" at " + file) : '')
  2883. )
  2884. };
  2885. var repeat = function (str, n) {
  2886. var res = '';
  2887. while (n) {
  2888. if (n % 2 === 1) { res += str; }
  2889. if (n > 1) { str += str; }
  2890. n >>= 1;
  2891. }
  2892. return res
  2893. };
  2894. generateComponentTrace = function (vm) {
  2895. if (vm._isVue && vm.$parent) {
  2896. var tree = [];
  2897. var currentRecursiveSequence = 0;
  2898. while (vm && vm.$options.name !== 'PageBody') {
  2899. if (tree.length > 0) {
  2900. var last = tree[tree.length - 1];
  2901. if (last.constructor === vm.constructor) {
  2902. currentRecursiveSequence++;
  2903. vm = vm.$parent;
  2904. continue
  2905. } else if (currentRecursiveSequence > 0) {
  2906. tree[tree.length - 1] = [last, currentRecursiveSequence];
  2907. currentRecursiveSequence = 0;
  2908. }
  2909. }
  2910. !vm.$options.isReserved && tree.push(vm);
  2911. vm = vm.$parent;
  2912. }
  2913. return '\n\nfound in\n\n' + tree
  2914. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  2915. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  2916. : formatComponentName(vm))); })
  2917. .join('\n')
  2918. } else {
  2919. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  2920. }
  2921. };
  2922. }
  2923. /* */
  2924. var uid = 0;
  2925. /**
  2926. * A dep is an observable that can have multiple
  2927. * directives subscribing to it.
  2928. */
  2929. var Dep = function Dep () {
  2930. this.id = uid++;
  2931. this.subs = [];
  2932. };
  2933. Dep.prototype.addSub = function addSub (sub) {
  2934. this.subs.push(sub);
  2935. };
  2936. Dep.prototype.removeSub = function removeSub (sub) {
  2937. remove(this.subs, sub);
  2938. };
  2939. Dep.prototype.depend = function depend () {
  2940. if (Dep.SharedObject.target) {
  2941. Dep.SharedObject.target.addDep(this);
  2942. }
  2943. };
  2944. Dep.prototype.notify = function notify () {
  2945. // stabilize the subscriber list first
  2946. var subs = this.subs.slice();
  2947. if ( true && !config.async) {
  2948. // subs aren't sorted in scheduler if not running async
  2949. // we need to sort them now to make sure they fire in correct
  2950. // order
  2951. subs.sort(function (a, b) { return a.id - b.id; });
  2952. }
  2953. for (var i = 0, l = subs.length; i < l; i++) {
  2954. subs[i].update();
  2955. }
  2956. };
  2957. // The current target watcher being evaluated.
  2958. // This is globally unique because only one watcher
  2959. // can be evaluated at a time.
  2960. // fixed by xxxxxx (nvue shared vuex)
  2961. /* eslint-disable no-undef */
  2962. Dep.SharedObject = {};
  2963. Dep.SharedObject.target = null;
  2964. Dep.SharedObject.targetStack = [];
  2965. function pushTarget (target) {
  2966. Dep.SharedObject.targetStack.push(target);
  2967. Dep.SharedObject.target = target;
  2968. Dep.target = target;
  2969. }
  2970. function popTarget () {
  2971. Dep.SharedObject.targetStack.pop();
  2972. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  2973. Dep.target = Dep.SharedObject.target;
  2974. }
  2975. /* */
  2976. var VNode = function VNode (
  2977. tag,
  2978. data,
  2979. children,
  2980. text,
  2981. elm,
  2982. context,
  2983. componentOptions,
  2984. asyncFactory
  2985. ) {
  2986. this.tag = tag;
  2987. this.data = data;
  2988. this.children = children;
  2989. this.text = text;
  2990. this.elm = elm;
  2991. this.ns = undefined;
  2992. this.context = context;
  2993. this.fnContext = undefined;
  2994. this.fnOptions = undefined;
  2995. this.fnScopeId = undefined;
  2996. this.key = data && data.key;
  2997. this.componentOptions = componentOptions;
  2998. this.componentInstance = undefined;
  2999. this.parent = undefined;
  3000. this.raw = false;
  3001. this.isStatic = false;
  3002. this.isRootInsert = true;
  3003. this.isComment = false;
  3004. this.isCloned = false;
  3005. this.isOnce = false;
  3006. this.asyncFactory = asyncFactory;
  3007. this.asyncMeta = undefined;
  3008. this.isAsyncPlaceholder = false;
  3009. };
  3010. var prototypeAccessors = { child: { configurable: true } };
  3011. // DEPRECATED: alias for componentInstance for backwards compat.
  3012. /* istanbul ignore next */
  3013. prototypeAccessors.child.get = function () {
  3014. return this.componentInstance
  3015. };
  3016. Object.defineProperties( VNode.prototype, prototypeAccessors );
  3017. var createEmptyVNode = function (text) {
  3018. if ( text === void 0 ) text = '';
  3019. var node = new VNode();
  3020. node.text = text;
  3021. node.isComment = true;
  3022. return node
  3023. };
  3024. function createTextVNode (val) {
  3025. return new VNode(undefined, undefined, undefined, String(val))
  3026. }
  3027. // optimized shallow clone
  3028. // used for static nodes and slot nodes because they may be reused across
  3029. // multiple renders, cloning them avoids errors when DOM manipulations rely
  3030. // on their elm reference.
  3031. function cloneVNode (vnode) {
  3032. var cloned = new VNode(
  3033. vnode.tag,
  3034. vnode.data,
  3035. // #7975
  3036. // clone children array to avoid mutating original in case of cloning
  3037. // a child.
  3038. vnode.children && vnode.children.slice(),
  3039. vnode.text,
  3040. vnode.elm,
  3041. vnode.context,
  3042. vnode.componentOptions,
  3043. vnode.asyncFactory
  3044. );
  3045. cloned.ns = vnode.ns;
  3046. cloned.isStatic = vnode.isStatic;
  3047. cloned.key = vnode.key;
  3048. cloned.isComment = vnode.isComment;
  3049. cloned.fnContext = vnode.fnContext;
  3050. cloned.fnOptions = vnode.fnOptions;
  3051. cloned.fnScopeId = vnode.fnScopeId;
  3052. cloned.asyncMeta = vnode.asyncMeta;
  3053. cloned.isCloned = true;
  3054. return cloned
  3055. }
  3056. /*
  3057. * not type checking this file because flow doesn't play well with
  3058. * dynamically accessing methods on Array prototype
  3059. */
  3060. var arrayProto = Array.prototype;
  3061. var arrayMethods = Object.create(arrayProto);
  3062. var methodsToPatch = [
  3063. 'push',
  3064. 'pop',
  3065. 'shift',
  3066. 'unshift',
  3067. 'splice',
  3068. 'sort',
  3069. 'reverse'
  3070. ];
  3071. /**
  3072. * Intercept mutating methods and emit events
  3073. */
  3074. methodsToPatch.forEach(function (method) {
  3075. // cache original method
  3076. var original = arrayProto[method];
  3077. def(arrayMethods, method, function mutator () {
  3078. var args = [], len = arguments.length;
  3079. while ( len-- ) args[ len ] = arguments[ len ];
  3080. var result = original.apply(this, args);
  3081. var ob = this.__ob__;
  3082. var inserted;
  3083. switch (method) {
  3084. case 'push':
  3085. case 'unshift':
  3086. inserted = args;
  3087. break
  3088. case 'splice':
  3089. inserted = args.slice(2);
  3090. break
  3091. }
  3092. if (inserted) { ob.observeArray(inserted); }
  3093. // notify change
  3094. ob.dep.notify();
  3095. return result
  3096. });
  3097. });
  3098. /* */
  3099. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  3100. /**
  3101. * In some cases we may want to disable observation inside a component's
  3102. * update computation.
  3103. */
  3104. var shouldObserve = true;
  3105. function toggleObserving (value) {
  3106. shouldObserve = value;
  3107. }
  3108. /**
  3109. * Observer class that is attached to each observed
  3110. * object. Once attached, the observer converts the target
  3111. * object's property keys into getter/setters that
  3112. * collect dependencies and dispatch updates.
  3113. */
  3114. var Observer = function Observer (value) {
  3115. this.value = value;
  3116. this.dep = new Dep();
  3117. this.vmCount = 0;
  3118. def(value, '__ob__', this);
  3119. if (Array.isArray(value)) {
  3120. if (hasProto) {
  3121. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  3122. if(value.push !== value.__proto__.push){
  3123. copyAugment(value, arrayMethods, arrayKeys);
  3124. } else {
  3125. protoAugment(value, arrayMethods);
  3126. }
  3127. }
  3128. } else {
  3129. copyAugment(value, arrayMethods, arrayKeys);
  3130. }
  3131. this.observeArray(value);
  3132. } else {
  3133. this.walk(value);
  3134. }
  3135. };
  3136. /**
  3137. * Walk through all properties and convert them into
  3138. * getter/setters. This method should only be called when
  3139. * value type is Object.
  3140. */
  3141. Observer.prototype.walk = function walk (obj) {
  3142. var keys = Object.keys(obj);
  3143. for (var i = 0; i < keys.length; i++) {
  3144. defineReactive$$1(obj, keys[i]);
  3145. }
  3146. };
  3147. /**
  3148. * Observe a list of Array items.
  3149. */
  3150. Observer.prototype.observeArray = function observeArray (items) {
  3151. for (var i = 0, l = items.length; i < l; i++) {
  3152. observe(items[i]);
  3153. }
  3154. };
  3155. // helpers
  3156. /**
  3157. * Augment a target Object or Array by intercepting
  3158. * the prototype chain using __proto__
  3159. */
  3160. function protoAugment (target, src) {
  3161. /* eslint-disable no-proto */
  3162. target.__proto__ = src;
  3163. /* eslint-enable no-proto */
  3164. }
  3165. /**
  3166. * Augment a target Object or Array by defining
  3167. * hidden properties.
  3168. */
  3169. /* istanbul ignore next */
  3170. function copyAugment (target, src, keys) {
  3171. for (var i = 0, l = keys.length; i < l; i++) {
  3172. var key = keys[i];
  3173. def(target, key, src[key]);
  3174. }
  3175. }
  3176. /**
  3177. * Attempt to create an observer instance for a value,
  3178. * returns the new observer if successfully observed,
  3179. * or the existing observer if the value already has one.
  3180. */
  3181. function observe (value, asRootData) {
  3182. if (!isObject(value) || value instanceof VNode) {
  3183. return
  3184. }
  3185. var ob;
  3186. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  3187. ob = value.__ob__;
  3188. } else if (
  3189. shouldObserve &&
  3190. !isServerRendering() &&
  3191. (Array.isArray(value) || isPlainObject(value)) &&
  3192. Object.isExtensible(value) &&
  3193. !value._isVue
  3194. ) {
  3195. ob = new Observer(value);
  3196. }
  3197. if (asRootData && ob) {
  3198. ob.vmCount++;
  3199. }
  3200. return ob
  3201. }
  3202. /**
  3203. * Define a reactive property on an Object.
  3204. */
  3205. function defineReactive$$1 (
  3206. obj,
  3207. key,
  3208. val,
  3209. customSetter,
  3210. shallow
  3211. ) {
  3212. var dep = new Dep();
  3213. var property = Object.getOwnPropertyDescriptor(obj, key);
  3214. if (property && property.configurable === false) {
  3215. return
  3216. }
  3217. // cater for pre-defined getter/setters
  3218. var getter = property && property.get;
  3219. var setter = property && property.set;
  3220. if ((!getter || setter) && arguments.length === 2) {
  3221. val = obj[key];
  3222. }
  3223. var childOb = !shallow && observe(val);
  3224. Object.defineProperty(obj, key, {
  3225. enumerable: true,
  3226. configurable: true,
  3227. get: function reactiveGetter () {
  3228. var value = getter ? getter.call(obj) : val;
  3229. if (Dep.SharedObject.target) { // fixed by xxxxxx
  3230. dep.depend();
  3231. if (childOb) {
  3232. childOb.dep.depend();
  3233. if (Array.isArray(value)) {
  3234. dependArray(value);
  3235. }
  3236. }
  3237. }
  3238. return value
  3239. },
  3240. set: function reactiveSetter (newVal) {
  3241. var value = getter ? getter.call(obj) : val;
  3242. /* eslint-disable no-self-compare */
  3243. if (newVal === value || (newVal !== newVal && value !== value)) {
  3244. return
  3245. }
  3246. /* eslint-enable no-self-compare */
  3247. if ( true && customSetter) {
  3248. customSetter();
  3249. }
  3250. // #7981: for accessor properties without setter
  3251. if (getter && !setter) { return }
  3252. if (setter) {
  3253. setter.call(obj, newVal);
  3254. } else {
  3255. val = newVal;
  3256. }
  3257. childOb = !shallow && observe(newVal);
  3258. dep.notify();
  3259. }
  3260. });
  3261. }
  3262. /**
  3263. * Set a property on an object. Adds the new property and
  3264. * triggers change notification if the property doesn't
  3265. * already exist.
  3266. */
  3267. function set (target, key, val) {
  3268. if ( true &&
  3269. (isUndef(target) || isPrimitive(target))
  3270. ) {
  3271. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  3272. }
  3273. if (Array.isArray(target) && isValidArrayIndex(key)) {
  3274. target.length = Math.max(target.length, key);
  3275. target.splice(key, 1, val);
  3276. return val
  3277. }
  3278. if (key in target && !(key in Object.prototype)) {
  3279. target[key] = val;
  3280. return val
  3281. }
  3282. var ob = (target).__ob__;
  3283. if (target._isVue || (ob && ob.vmCount)) {
  3284. true && warn(
  3285. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  3286. 'at runtime - declare it upfront in the data option.'
  3287. );
  3288. return val
  3289. }
  3290. if (!ob) {
  3291. target[key] = val;
  3292. return val
  3293. }
  3294. defineReactive$$1(ob.value, key, val);
  3295. ob.dep.notify();
  3296. return val
  3297. }
  3298. /**
  3299. * Delete a property and trigger change if necessary.
  3300. */
  3301. function del (target, key) {
  3302. if ( true &&
  3303. (isUndef(target) || isPrimitive(target))
  3304. ) {
  3305. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  3306. }
  3307. if (Array.isArray(target) && isValidArrayIndex(key)) {
  3308. target.splice(key, 1);
  3309. return
  3310. }
  3311. var ob = (target).__ob__;
  3312. if (target._isVue || (ob && ob.vmCount)) {
  3313. true && warn(
  3314. 'Avoid deleting properties on a Vue instance or its root $data ' +
  3315. '- just set it to null.'
  3316. );
  3317. return
  3318. }
  3319. if (!hasOwn(target, key)) {
  3320. return
  3321. }
  3322. delete target[key];
  3323. if (!ob) {
  3324. return
  3325. }
  3326. ob.dep.notify();
  3327. }
  3328. /**
  3329. * Collect dependencies on array elements when the array is touched, since
  3330. * we cannot intercept array element access like property getters.
  3331. */
  3332. function dependArray (value) {
  3333. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  3334. e = value[i];
  3335. e && e.__ob__ && e.__ob__.dep.depend();
  3336. if (Array.isArray(e)) {
  3337. dependArray(e);
  3338. }
  3339. }
  3340. }
  3341. /* */
  3342. /**
  3343. * Option overwriting strategies are functions that handle
  3344. * how to merge a parent option value and a child option
  3345. * value into the final value.
  3346. */
  3347. var strats = config.optionMergeStrategies;
  3348. /**
  3349. * Options with restrictions
  3350. */
  3351. if (true) {
  3352. strats.el = strats.propsData = function (parent, child, vm, key) {
  3353. if (!vm) {
  3354. warn(
  3355. "option \"" + key + "\" can only be used during instance " +
  3356. 'creation with the `new` keyword.'
  3357. );
  3358. }
  3359. return defaultStrat(parent, child)
  3360. };
  3361. }
  3362. /**
  3363. * Helper that recursively merges two data objects together.
  3364. */
  3365. function mergeData (to, from) {
  3366. if (!from) { return to }
  3367. var key, toVal, fromVal;
  3368. var keys = hasSymbol
  3369. ? Reflect.ownKeys(from)
  3370. : Object.keys(from);
  3371. for (var i = 0; i < keys.length; i++) {
  3372. key = keys[i];
  3373. // in case the object is already observed...
  3374. if (key === '__ob__') { continue }
  3375. toVal = to[key];
  3376. fromVal = from[key];
  3377. if (!hasOwn(to, key)) {
  3378. set(to, key, fromVal);
  3379. } else if (
  3380. toVal !== fromVal &&
  3381. isPlainObject(toVal) &&
  3382. isPlainObject(fromVal)
  3383. ) {
  3384. mergeData(toVal, fromVal);
  3385. }
  3386. }
  3387. return to
  3388. }
  3389. /**
  3390. * Data
  3391. */
  3392. function mergeDataOrFn (
  3393. parentVal,
  3394. childVal,
  3395. vm
  3396. ) {
  3397. if (!vm) {
  3398. // in a Vue.extend merge, both should be functions
  3399. if (!childVal) {
  3400. return parentVal
  3401. }
  3402. if (!parentVal) {
  3403. return childVal
  3404. }
  3405. // when parentVal & childVal are both present,
  3406. // we need to return a function that returns the
  3407. // merged result of both functions... no need to
  3408. // check if parentVal is a function here because
  3409. // it has to be a function to pass previous merges.
  3410. return function mergedDataFn () {
  3411. return mergeData(
  3412. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  3413. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  3414. )
  3415. }
  3416. } else {
  3417. return function mergedInstanceDataFn () {
  3418. // instance merge
  3419. var instanceData = typeof childVal === 'function'
  3420. ? childVal.call(vm, vm)
  3421. : childVal;
  3422. var defaultData = typeof parentVal === 'function'
  3423. ? parentVal.call(vm, vm)
  3424. : parentVal;
  3425. if (instanceData) {
  3426. return mergeData(instanceData, defaultData)
  3427. } else {
  3428. return defaultData
  3429. }
  3430. }
  3431. }
  3432. }
  3433. strats.data = function (
  3434. parentVal,
  3435. childVal,
  3436. vm
  3437. ) {
  3438. if (!vm) {
  3439. if (childVal && typeof childVal !== 'function') {
  3440. true && warn(
  3441. 'The "data" option should be a function ' +
  3442. 'that returns a per-instance value in component ' +
  3443. 'definitions.',
  3444. vm
  3445. );
  3446. return parentVal
  3447. }
  3448. return mergeDataOrFn(parentVal, childVal)
  3449. }
  3450. return mergeDataOrFn(parentVal, childVal, vm)
  3451. };
  3452. /**
  3453. * Hooks and props are merged as arrays.
  3454. */
  3455. function mergeHook (
  3456. parentVal,
  3457. childVal
  3458. ) {
  3459. var res = childVal
  3460. ? parentVal
  3461. ? parentVal.concat(childVal)
  3462. : Array.isArray(childVal)
  3463. ? childVal
  3464. : [childVal]
  3465. : parentVal;
  3466. return res
  3467. ? dedupeHooks(res)
  3468. : res
  3469. }
  3470. function dedupeHooks (hooks) {
  3471. var res = [];
  3472. for (var i = 0; i < hooks.length; i++) {
  3473. if (res.indexOf(hooks[i]) === -1) {
  3474. res.push(hooks[i]);
  3475. }
  3476. }
  3477. return res
  3478. }
  3479. LIFECYCLE_HOOKS.forEach(function (hook) {
  3480. strats[hook] = mergeHook;
  3481. });
  3482. /**
  3483. * Assets
  3484. *
  3485. * When a vm is present (instance creation), we need to do
  3486. * a three-way merge between constructor options, instance
  3487. * options and parent options.
  3488. */
  3489. function mergeAssets (
  3490. parentVal,
  3491. childVal,
  3492. vm,
  3493. key
  3494. ) {
  3495. var res = Object.create(parentVal || null);
  3496. if (childVal) {
  3497. true && assertObjectType(key, childVal, vm);
  3498. return extend(res, childVal)
  3499. } else {
  3500. return res
  3501. }
  3502. }
  3503. ASSET_TYPES.forEach(function (type) {
  3504. strats[type + 's'] = mergeAssets;
  3505. });
  3506. /**
  3507. * Watchers.
  3508. *
  3509. * Watchers hashes should not overwrite one
  3510. * another, so we merge them as arrays.
  3511. */
  3512. strats.watch = function (
  3513. parentVal,
  3514. childVal,
  3515. vm,
  3516. key
  3517. ) {
  3518. // work around Firefox's Object.prototype.watch...
  3519. if (parentVal === nativeWatch) { parentVal = undefined; }
  3520. if (childVal === nativeWatch) { childVal = undefined; }
  3521. /* istanbul ignore if */
  3522. if (!childVal) { return Object.create(parentVal || null) }
  3523. if (true) {
  3524. assertObjectType(key, childVal, vm);
  3525. }
  3526. if (!parentVal) { return childVal }
  3527. var ret = {};
  3528. extend(ret, parentVal);
  3529. for (var key$1 in childVal) {
  3530. var parent = ret[key$1];
  3531. var child = childVal[key$1];
  3532. if (parent && !Array.isArray(parent)) {
  3533. parent = [parent];
  3534. }
  3535. ret[key$1] = parent
  3536. ? parent.concat(child)
  3537. : Array.isArray(child) ? child : [child];
  3538. }
  3539. return ret
  3540. };
  3541. /**
  3542. * Other object hashes.
  3543. */
  3544. strats.props =
  3545. strats.methods =
  3546. strats.inject =
  3547. strats.computed = function (
  3548. parentVal,
  3549. childVal,
  3550. vm,
  3551. key
  3552. ) {
  3553. if (childVal && "development" !== 'production') {
  3554. assertObjectType(key, childVal, vm);
  3555. }
  3556. if (!parentVal) { return childVal }
  3557. var ret = Object.create(null);
  3558. extend(ret, parentVal);
  3559. if (childVal) { extend(ret, childVal); }
  3560. return ret
  3561. };
  3562. strats.provide = mergeDataOrFn;
  3563. /**
  3564. * Default strategy.
  3565. */
  3566. var defaultStrat = function (parentVal, childVal) {
  3567. return childVal === undefined
  3568. ? parentVal
  3569. : childVal
  3570. };
  3571. /**
  3572. * Validate component names
  3573. */
  3574. function checkComponents (options) {
  3575. for (var key in options.components) {
  3576. validateComponentName(key);
  3577. }
  3578. }
  3579. function validateComponentName (name) {
  3580. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  3581. warn(
  3582. 'Invalid component name: "' + name + '". Component names ' +
  3583. 'should conform to valid custom element name in html5 specification.'
  3584. );
  3585. }
  3586. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  3587. warn(
  3588. 'Do not use built-in or reserved HTML elements as component ' +
  3589. 'id: ' + name
  3590. );
  3591. }
  3592. }
  3593. /**
  3594. * Ensure all props option syntax are normalized into the
  3595. * Object-based format.
  3596. */
  3597. function normalizeProps (options, vm) {
  3598. var props = options.props;
  3599. if (!props) { return }
  3600. var res = {};
  3601. var i, val, name;
  3602. if (Array.isArray(props)) {
  3603. i = props.length;
  3604. while (i--) {
  3605. val = props[i];
  3606. if (typeof val === 'string') {
  3607. name = camelize(val);
  3608. res[name] = { type: null };
  3609. } else if (true) {
  3610. warn('props must be strings when using array syntax.');
  3611. }
  3612. }
  3613. } else if (isPlainObject(props)) {
  3614. for (var key in props) {
  3615. val = props[key];
  3616. name = camelize(key);
  3617. res[name] = isPlainObject(val)
  3618. ? val
  3619. : { type: val };
  3620. }
  3621. } else if (true) {
  3622. warn(
  3623. "Invalid value for option \"props\": expected an Array or an Object, " +
  3624. "but got " + (toRawType(props)) + ".",
  3625. vm
  3626. );
  3627. }
  3628. options.props = res;
  3629. }
  3630. /**
  3631. * Normalize all injections into Object-based format
  3632. */
  3633. function normalizeInject (options, vm) {
  3634. var inject = options.inject;
  3635. if (!inject) { return }
  3636. var normalized = options.inject = {};
  3637. if (Array.isArray(inject)) {
  3638. for (var i = 0; i < inject.length; i++) {
  3639. normalized[inject[i]] = { from: inject[i] };
  3640. }
  3641. } else if (isPlainObject(inject)) {
  3642. for (var key in inject) {
  3643. var val = inject[key];
  3644. normalized[key] = isPlainObject(val)
  3645. ? extend({ from: key }, val)
  3646. : { from: val };
  3647. }
  3648. } else if (true) {
  3649. warn(
  3650. "Invalid value for option \"inject\": expected an Array or an Object, " +
  3651. "but got " + (toRawType(inject)) + ".",
  3652. vm
  3653. );
  3654. }
  3655. }
  3656. /**
  3657. * Normalize raw function directives into object format.
  3658. */
  3659. function normalizeDirectives (options) {
  3660. var dirs = options.directives;
  3661. if (dirs) {
  3662. for (var key in dirs) {
  3663. var def$$1 = dirs[key];
  3664. if (typeof def$$1 === 'function') {
  3665. dirs[key] = { bind: def$$1, update: def$$1 };
  3666. }
  3667. }
  3668. }
  3669. }
  3670. function assertObjectType (name, value, vm) {
  3671. if (!isPlainObject(value)) {
  3672. warn(
  3673. "Invalid value for option \"" + name + "\": expected an Object, " +
  3674. "but got " + (toRawType(value)) + ".",
  3675. vm
  3676. );
  3677. }
  3678. }
  3679. /**
  3680. * Merge two option objects into a new one.
  3681. * Core utility used in both instantiation and inheritance.
  3682. */
  3683. function mergeOptions (
  3684. parent,
  3685. child,
  3686. vm
  3687. ) {
  3688. if (true) {
  3689. checkComponents(child);
  3690. }
  3691. if (typeof child === 'function') {
  3692. child = child.options;
  3693. }
  3694. normalizeProps(child, vm);
  3695. normalizeInject(child, vm);
  3696. normalizeDirectives(child);
  3697. // Apply extends and mixins on the child options,
  3698. // but only if it is a raw options object that isn't
  3699. // the result of another mergeOptions call.
  3700. // Only merged options has the _base property.
  3701. if (!child._base) {
  3702. if (child.extends) {
  3703. parent = mergeOptions(parent, child.extends, vm);
  3704. }
  3705. if (child.mixins) {
  3706. for (var i = 0, l = child.mixins.length; i < l; i++) {
  3707. parent = mergeOptions(parent, child.mixins[i], vm);
  3708. }
  3709. }
  3710. }
  3711. var options = {};
  3712. var key;
  3713. for (key in parent) {
  3714. mergeField(key);
  3715. }
  3716. for (key in child) {
  3717. if (!hasOwn(parent, key)) {
  3718. mergeField(key);
  3719. }
  3720. }
  3721. function mergeField (key) {
  3722. var strat = strats[key] || defaultStrat;
  3723. options[key] = strat(parent[key], child[key], vm, key);
  3724. }
  3725. return options
  3726. }
  3727. /**
  3728. * Resolve an asset.
  3729. * This function is used because child instances need access
  3730. * to assets defined in its ancestor chain.
  3731. */
  3732. function resolveAsset (
  3733. options,
  3734. type,
  3735. id,
  3736. warnMissing
  3737. ) {
  3738. /* istanbul ignore if */
  3739. if (typeof id !== 'string') {
  3740. return
  3741. }
  3742. var assets = options[type];
  3743. // check local registration variations first
  3744. if (hasOwn(assets, id)) { return assets[id] }
  3745. var camelizedId = camelize(id);
  3746. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  3747. var PascalCaseId = capitalize(camelizedId);
  3748. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  3749. // fallback to prototype chain
  3750. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  3751. if ( true && warnMissing && !res) {
  3752. warn(
  3753. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  3754. options
  3755. );
  3756. }
  3757. return res
  3758. }
  3759. /* */
  3760. function validateProp (
  3761. key,
  3762. propOptions,
  3763. propsData,
  3764. vm
  3765. ) {
  3766. var prop = propOptions[key];
  3767. var absent = !hasOwn(propsData, key);
  3768. var value = propsData[key];
  3769. // boolean casting
  3770. var booleanIndex = getTypeIndex(Boolean, prop.type);
  3771. if (booleanIndex > -1) {
  3772. if (absent && !hasOwn(prop, 'default')) {
  3773. value = false;
  3774. } else if (value === '' || value === hyphenate(key)) {
  3775. // only cast empty string / same name to boolean if
  3776. // boolean has higher priority
  3777. var stringIndex = getTypeIndex(String, prop.type);
  3778. if (stringIndex < 0 || booleanIndex < stringIndex) {
  3779. value = true;
  3780. }
  3781. }
  3782. }
  3783. // check default value
  3784. if (value === undefined) {
  3785. value = getPropDefaultValue(vm, prop, key);
  3786. // since the default value is a fresh copy,
  3787. // make sure to observe it.
  3788. var prevShouldObserve = shouldObserve;
  3789. toggleObserving(true);
  3790. observe(value);
  3791. toggleObserving(prevShouldObserve);
  3792. }
  3793. if (
  3794. true
  3795. ) {
  3796. assertProp(prop, key, value, vm, absent);
  3797. }
  3798. return value
  3799. }
  3800. /**
  3801. * Get the default value of a prop.
  3802. */
  3803. function getPropDefaultValue (vm, prop, key) {
  3804. // no default, return undefined
  3805. if (!hasOwn(prop, 'default')) {
  3806. return undefined
  3807. }
  3808. var def = prop.default;
  3809. // warn against non-factory defaults for Object & Array
  3810. if ( true && isObject(def)) {
  3811. warn(
  3812. 'Invalid default value for prop "' + key + '": ' +
  3813. 'Props with type Object/Array must use a factory function ' +
  3814. 'to return the default value.',
  3815. vm
  3816. );
  3817. }
  3818. // the raw prop value was also undefined from previous render,
  3819. // return previous default value to avoid unnecessary watcher trigger
  3820. if (vm && vm.$options.propsData &&
  3821. vm.$options.propsData[key] === undefined &&
  3822. vm._props[key] !== undefined
  3823. ) {
  3824. return vm._props[key]
  3825. }
  3826. // call factory function for non-Function types
  3827. // a value is Function if its prototype is function even across different execution context
  3828. return typeof def === 'function' && getType(prop.type) !== 'Function'
  3829. ? def.call(vm)
  3830. : def
  3831. }
  3832. /**
  3833. * Assert whether a prop is valid.
  3834. */
  3835. function assertProp (
  3836. prop,
  3837. name,
  3838. value,
  3839. vm,
  3840. absent
  3841. ) {
  3842. if (prop.required && absent) {
  3843. warn(
  3844. 'Missing required prop: "' + name + '"',
  3845. vm
  3846. );
  3847. return
  3848. }
  3849. if (value == null && !prop.required) {
  3850. return
  3851. }
  3852. var type = prop.type;
  3853. var valid = !type || type === true;
  3854. var expectedTypes = [];
  3855. if (type) {
  3856. if (!Array.isArray(type)) {
  3857. type = [type];
  3858. }
  3859. for (var i = 0; i < type.length && !valid; i++) {
  3860. var assertedType = assertType(value, type[i]);
  3861. expectedTypes.push(assertedType.expectedType || '');
  3862. valid = assertedType.valid;
  3863. }
  3864. }
  3865. if (!valid) {
  3866. warn(
  3867. getInvalidTypeMessage(name, value, expectedTypes),
  3868. vm
  3869. );
  3870. return
  3871. }
  3872. var validator = prop.validator;
  3873. if (validator) {
  3874. if (!validator(value)) {
  3875. warn(
  3876. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  3877. vm
  3878. );
  3879. }
  3880. }
  3881. }
  3882. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  3883. function assertType (value, type) {
  3884. var valid;
  3885. var expectedType = getType(type);
  3886. if (simpleCheckRE.test(expectedType)) {
  3887. var t = typeof value;
  3888. valid = t === expectedType.toLowerCase();
  3889. // for primitive wrapper objects
  3890. if (!valid && t === 'object') {
  3891. valid = value instanceof type;
  3892. }
  3893. } else if (expectedType === 'Object') {
  3894. valid = isPlainObject(value);
  3895. } else if (expectedType === 'Array') {
  3896. valid = Array.isArray(value);
  3897. } else {
  3898. valid = value instanceof type;
  3899. }
  3900. return {
  3901. valid: valid,
  3902. expectedType: expectedType
  3903. }
  3904. }
  3905. /**
  3906. * Use function string name to check built-in types,
  3907. * because a simple equality check will fail when running
  3908. * across different vms / iframes.
  3909. */
  3910. function getType (fn) {
  3911. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  3912. return match ? match[1] : ''
  3913. }
  3914. function isSameType (a, b) {
  3915. return getType(a) === getType(b)
  3916. }
  3917. function getTypeIndex (type, expectedTypes) {
  3918. if (!Array.isArray(expectedTypes)) {
  3919. return isSameType(expectedTypes, type) ? 0 : -1
  3920. }
  3921. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  3922. if (isSameType(expectedTypes[i], type)) {
  3923. return i
  3924. }
  3925. }
  3926. return -1
  3927. }
  3928. function getInvalidTypeMessage (name, value, expectedTypes) {
  3929. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  3930. " Expected " + (expectedTypes.map(capitalize).join(', '));
  3931. var expectedType = expectedTypes[0];
  3932. var receivedType = toRawType(value);
  3933. var expectedValue = styleValue(value, expectedType);
  3934. var receivedValue = styleValue(value, receivedType);
  3935. // check if we need to specify expected value
  3936. if (expectedTypes.length === 1 &&
  3937. isExplicable(expectedType) &&
  3938. !isBoolean(expectedType, receivedType)) {
  3939. message += " with value " + expectedValue;
  3940. }
  3941. message += ", got " + receivedType + " ";
  3942. // check if we need to specify received value
  3943. if (isExplicable(receivedType)) {
  3944. message += "with value " + receivedValue + ".";
  3945. }
  3946. return message
  3947. }
  3948. function styleValue (value, type) {
  3949. if (type === 'String') {
  3950. return ("\"" + value + "\"")
  3951. } else if (type === 'Number') {
  3952. return ("" + (Number(value)))
  3953. } else {
  3954. return ("" + value)
  3955. }
  3956. }
  3957. function isExplicable (value) {
  3958. var explicitTypes = ['string', 'number', 'boolean'];
  3959. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  3960. }
  3961. function isBoolean () {
  3962. var args = [], len = arguments.length;
  3963. while ( len-- ) args[ len ] = arguments[ len ];
  3964. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  3965. }
  3966. /* */
  3967. function handleError (err, vm, info) {
  3968. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  3969. // See: https://github.com/vuejs/vuex/issues/1505
  3970. pushTarget();
  3971. try {
  3972. if (vm) {
  3973. var cur = vm;
  3974. while ((cur = cur.$parent)) {
  3975. var hooks = cur.$options.errorCaptured;
  3976. if (hooks) {
  3977. for (var i = 0; i < hooks.length; i++) {
  3978. try {
  3979. var capture = hooks[i].call(cur, err, vm, info) === false;
  3980. if (capture) { return }
  3981. } catch (e) {
  3982. globalHandleError(e, cur, 'errorCaptured hook');
  3983. }
  3984. }
  3985. }
  3986. }
  3987. }
  3988. globalHandleError(err, vm, info);
  3989. } finally {
  3990. popTarget();
  3991. }
  3992. }
  3993. function invokeWithErrorHandling (
  3994. handler,
  3995. context,
  3996. args,
  3997. vm,
  3998. info
  3999. ) {
  4000. var res;
  4001. try {
  4002. res = args ? handler.apply(context, args) : handler.call(context);
  4003. if (res && !res._isVue && isPromise(res) && !res._handled) {
  4004. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  4005. // issue #9511
  4006. // avoid catch triggering multiple times when nested calls
  4007. res._handled = true;
  4008. }
  4009. } catch (e) {
  4010. handleError(e, vm, info);
  4011. }
  4012. return res
  4013. }
  4014. function globalHandleError (err, vm, info) {
  4015. if (config.errorHandler) {
  4016. try {
  4017. return config.errorHandler.call(null, err, vm, info)
  4018. } catch (e) {
  4019. // if the user intentionally throws the original error in the handler,
  4020. // do not log it twice
  4021. if (e !== err) {
  4022. logError(e, null, 'config.errorHandler');
  4023. }
  4024. }
  4025. }
  4026. logError(err, vm, info);
  4027. }
  4028. function logError (err, vm, info) {
  4029. if (true) {
  4030. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  4031. }
  4032. /* istanbul ignore else */
  4033. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  4034. console.error(err);
  4035. } else {
  4036. throw err
  4037. }
  4038. }
  4039. /* */
  4040. var callbacks = [];
  4041. var pending = false;
  4042. function flushCallbacks () {
  4043. pending = false;
  4044. var copies = callbacks.slice(0);
  4045. callbacks.length = 0;
  4046. for (var i = 0; i < copies.length; i++) {
  4047. copies[i]();
  4048. }
  4049. }
  4050. // Here we have async deferring wrappers using microtasks.
  4051. // In 2.5 we used (macro) tasks (in combination with microtasks).
  4052. // However, it has subtle problems when state is changed right before repaint
  4053. // (e.g. #6813, out-in transitions).
  4054. // Also, using (macro) tasks in event handler would cause some weird behaviors
  4055. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  4056. // So we now use microtasks everywhere, again.
  4057. // A major drawback of this tradeoff is that there are some scenarios
  4058. // where microtasks have too high a priority and fire in between supposedly
  4059. // sequential events (e.g. #4521, #6690, which have workarounds)
  4060. // or even between bubbling of the same event (#6566).
  4061. var timerFunc;
  4062. // The nextTick behavior leverages the microtask queue, which can be accessed
  4063. // via either native Promise.then or MutationObserver.
  4064. // MutationObserver has wider support, however it is seriously bugged in
  4065. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  4066. // completely stops working after triggering a few times... so, if native
  4067. // Promise is available, we will use it:
  4068. /* istanbul ignore next, $flow-disable-line */
  4069. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  4070. var p = Promise.resolve();
  4071. timerFunc = function () {
  4072. p.then(flushCallbacks);
  4073. // In problematic UIWebViews, Promise.then doesn't completely break, but
  4074. // it can get stuck in a weird state where callbacks are pushed into the
  4075. // microtask queue but the queue isn't being flushed, until the browser
  4076. // needs to do some other work, e.g. handle a timer. Therefore we can
  4077. // "force" the microtask queue to be flushed by adding an empty timer.
  4078. if (isIOS) { setTimeout(noop); }
  4079. };
  4080. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  4081. isNative(MutationObserver) ||
  4082. // PhantomJS and iOS 7.x
  4083. MutationObserver.toString() === '[object MutationObserverConstructor]'
  4084. )) {
  4085. // Use MutationObserver where native Promise is not available,
  4086. // e.g. PhantomJS, iOS7, Android 4.4
  4087. // (#6466 MutationObserver is unreliable in IE11)
  4088. var counter = 1;
  4089. var observer = new MutationObserver(flushCallbacks);
  4090. var textNode = document.createTextNode(String(counter));
  4091. observer.observe(textNode, {
  4092. characterData: true
  4093. });
  4094. timerFunc = function () {
  4095. counter = (counter + 1) % 2;
  4096. textNode.data = String(counter);
  4097. };
  4098. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  4099. // Fallback to setImmediate.
  4100. // Technically it leverages the (macro) task queue,
  4101. // but it is still a better choice than setTimeout.
  4102. timerFunc = function () {
  4103. setImmediate(flushCallbacks);
  4104. };
  4105. } else {
  4106. // Fallback to setTimeout.
  4107. timerFunc = function () {
  4108. setTimeout(flushCallbacks, 0);
  4109. };
  4110. }
  4111. function nextTick (cb, ctx) {
  4112. var _resolve;
  4113. callbacks.push(function () {
  4114. if (cb) {
  4115. try {
  4116. cb.call(ctx);
  4117. } catch (e) {
  4118. handleError(e, ctx, 'nextTick');
  4119. }
  4120. } else if (_resolve) {
  4121. _resolve(ctx);
  4122. }
  4123. });
  4124. if (!pending) {
  4125. pending = true;
  4126. timerFunc();
  4127. }
  4128. // $flow-disable-line
  4129. if (!cb && typeof Promise !== 'undefined') {
  4130. return new Promise(function (resolve) {
  4131. _resolve = resolve;
  4132. })
  4133. }
  4134. }
  4135. /* */
  4136. /* not type checking this file because flow doesn't play well with Proxy */
  4137. var initProxy;
  4138. if (true) {
  4139. var allowedGlobals = makeMap(
  4140. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  4141. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  4142. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  4143. 'require' // for Webpack/Browserify
  4144. );
  4145. var warnNonPresent = function (target, key) {
  4146. warn(
  4147. "Property or method \"" + key + "\" is not defined on the instance but " +
  4148. 'referenced during render. Make sure that this property is reactive, ' +
  4149. 'either in the data option, or for class-based components, by ' +
  4150. 'initializing the property. ' +
  4151. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  4152. target
  4153. );
  4154. };
  4155. var warnReservedPrefix = function (target, key) {
  4156. warn(
  4157. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  4158. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  4159. 'prevent conflicts with Vue internals. ' +
  4160. 'See: https://vuejs.org/v2/api/#data',
  4161. target
  4162. );
  4163. };
  4164. var hasProxy =
  4165. typeof Proxy !== 'undefined' && isNative(Proxy);
  4166. if (hasProxy) {
  4167. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  4168. config.keyCodes = new Proxy(config.keyCodes, {
  4169. set: function set (target, key, value) {
  4170. if (isBuiltInModifier(key)) {
  4171. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  4172. return false
  4173. } else {
  4174. target[key] = value;
  4175. return true
  4176. }
  4177. }
  4178. });
  4179. }
  4180. var hasHandler = {
  4181. has: function has (target, key) {
  4182. var has = key in target;
  4183. var isAllowed = allowedGlobals(key) ||
  4184. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  4185. if (!has && !isAllowed) {
  4186. if (key in target.$data) { warnReservedPrefix(target, key); }
  4187. else { warnNonPresent(target, key); }
  4188. }
  4189. return has || !isAllowed
  4190. }
  4191. };
  4192. var getHandler = {
  4193. get: function get (target, key) {
  4194. if (typeof key === 'string' && !(key in target)) {
  4195. if (key in target.$data) { warnReservedPrefix(target, key); }
  4196. else { warnNonPresent(target, key); }
  4197. }
  4198. return target[key]
  4199. }
  4200. };
  4201. initProxy = function initProxy (vm) {
  4202. if (hasProxy) {
  4203. // determine which proxy handler to use
  4204. var options = vm.$options;
  4205. var handlers = options.render && options.render._withStripped
  4206. ? getHandler
  4207. : hasHandler;
  4208. vm._renderProxy = new Proxy(vm, handlers);
  4209. } else {
  4210. vm._renderProxy = vm;
  4211. }
  4212. };
  4213. }
  4214. /* */
  4215. var seenObjects = new _Set();
  4216. /**
  4217. * Recursively traverse an object to evoke all converted
  4218. * getters, so that every nested property inside the object
  4219. * is collected as a "deep" dependency.
  4220. */
  4221. function traverse (val) {
  4222. _traverse(val, seenObjects);
  4223. seenObjects.clear();
  4224. }
  4225. function _traverse (val, seen) {
  4226. var i, keys;
  4227. var isA = Array.isArray(val);
  4228. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  4229. return
  4230. }
  4231. if (val.__ob__) {
  4232. var depId = val.__ob__.dep.id;
  4233. if (seen.has(depId)) {
  4234. return
  4235. }
  4236. seen.add(depId);
  4237. }
  4238. if (isA) {
  4239. i = val.length;
  4240. while (i--) { _traverse(val[i], seen); }
  4241. } else {
  4242. keys = Object.keys(val);
  4243. i = keys.length;
  4244. while (i--) { _traverse(val[keys[i]], seen); }
  4245. }
  4246. }
  4247. var mark;
  4248. var measure;
  4249. if (true) {
  4250. var perf = inBrowser && window.performance;
  4251. /* istanbul ignore if */
  4252. if (
  4253. perf &&
  4254. perf.mark &&
  4255. perf.measure &&
  4256. perf.clearMarks &&
  4257. perf.clearMeasures
  4258. ) {
  4259. mark = function (tag) { return perf.mark(tag); };
  4260. measure = function (name, startTag, endTag) {
  4261. perf.measure(name, startTag, endTag);
  4262. perf.clearMarks(startTag);
  4263. perf.clearMarks(endTag);
  4264. // perf.clearMeasures(name)
  4265. };
  4266. }
  4267. }
  4268. /* */
  4269. var normalizeEvent = cached(function (name) {
  4270. var passive = name.charAt(0) === '&';
  4271. name = passive ? name.slice(1) : name;
  4272. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  4273. name = once$$1 ? name.slice(1) : name;
  4274. var capture = name.charAt(0) === '!';
  4275. name = capture ? name.slice(1) : name;
  4276. return {
  4277. name: name,
  4278. once: once$$1,
  4279. capture: capture,
  4280. passive: passive
  4281. }
  4282. });
  4283. function createFnInvoker (fns, vm) {
  4284. function invoker () {
  4285. var arguments$1 = arguments;
  4286. var fns = invoker.fns;
  4287. if (Array.isArray(fns)) {
  4288. var cloned = fns.slice();
  4289. for (var i = 0; i < cloned.length; i++) {
  4290. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  4291. }
  4292. } else {
  4293. // return handler return value for single handlers
  4294. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  4295. }
  4296. }
  4297. invoker.fns = fns;
  4298. return invoker
  4299. }
  4300. function updateListeners (
  4301. on,
  4302. oldOn,
  4303. add,
  4304. remove$$1,
  4305. createOnceHandler,
  4306. vm
  4307. ) {
  4308. var name, def$$1, cur, old, event;
  4309. for (name in on) {
  4310. def$$1 = cur = on[name];
  4311. old = oldOn[name];
  4312. event = normalizeEvent(name);
  4313. if (isUndef(cur)) {
  4314. true && warn(
  4315. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  4316. vm
  4317. );
  4318. } else if (isUndef(old)) {
  4319. if (isUndef(cur.fns)) {
  4320. cur = on[name] = createFnInvoker(cur, vm);
  4321. }
  4322. if (isTrue(event.once)) {
  4323. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  4324. }
  4325. add(event.name, cur, event.capture, event.passive, event.params);
  4326. } else if (cur !== old) {
  4327. old.fns = cur;
  4328. on[name] = old;
  4329. }
  4330. }
  4331. for (name in oldOn) {
  4332. if (isUndef(on[name])) {
  4333. event = normalizeEvent(name);
  4334. remove$$1(event.name, oldOn[name], event.capture);
  4335. }
  4336. }
  4337. }
  4338. /* */
  4339. /* */
  4340. // fixed by xxxxxx (mp properties)
  4341. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  4342. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  4343. if (isUndef(propOptions)) {
  4344. return res
  4345. }
  4346. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  4347. var attrs = data.attrs;
  4348. var props = data.props;
  4349. if (isDef(attrs) || isDef(props)) {
  4350. for (var key in propOptions) {
  4351. var altKey = hyphenate(key);
  4352. var result = checkProp(res, props, key, altKey, true) ||
  4353. checkProp(res, attrs, key, altKey, false);
  4354. // externalClass
  4355. if (
  4356. result &&
  4357. res[key] &&
  4358. externalClasses.indexOf(altKey) !== -1 &&
  4359. context[camelize(res[key])]
  4360. ) {
  4361. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  4362. res[key] = context[camelize(res[key])];
  4363. }
  4364. }
  4365. }
  4366. return res
  4367. }
  4368. function extractPropsFromVNodeData (
  4369. data,
  4370. Ctor,
  4371. tag,
  4372. context// fixed by xxxxxx
  4373. ) {
  4374. // we are only extracting raw values here.
  4375. // validation and default values are handled in the child
  4376. // component itself.
  4377. var propOptions = Ctor.options.props;
  4378. if (isUndef(propOptions)) {
  4379. // fixed by xxxxxx
  4380. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  4381. }
  4382. var res = {};
  4383. var attrs = data.attrs;
  4384. var props = data.props;
  4385. if (isDef(attrs) || isDef(props)) {
  4386. for (var key in propOptions) {
  4387. var altKey = hyphenate(key);
  4388. if (true) {
  4389. var keyInLowerCase = key.toLowerCase();
  4390. if (
  4391. key !== keyInLowerCase &&
  4392. attrs && hasOwn(attrs, keyInLowerCase)
  4393. ) {
  4394. tip(
  4395. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  4396. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  4397. " \"" + key + "\". " +
  4398. "Note that HTML attributes are case-insensitive and camelCased " +
  4399. "props need to use their kebab-case equivalents when using in-DOM " +
  4400. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  4401. );
  4402. }
  4403. }
  4404. checkProp(res, props, key, altKey, true) ||
  4405. checkProp(res, attrs, key, altKey, false);
  4406. }
  4407. }
  4408. // fixed by xxxxxx
  4409. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  4410. }
  4411. function checkProp (
  4412. res,
  4413. hash,
  4414. key,
  4415. altKey,
  4416. preserve
  4417. ) {
  4418. if (isDef(hash)) {
  4419. if (hasOwn(hash, key)) {
  4420. res[key] = hash[key];
  4421. if (!preserve) {
  4422. delete hash[key];
  4423. }
  4424. return true
  4425. } else if (hasOwn(hash, altKey)) {
  4426. res[key] = hash[altKey];
  4427. if (!preserve) {
  4428. delete hash[altKey];
  4429. }
  4430. return true
  4431. }
  4432. }
  4433. return false
  4434. }
  4435. /* */
  4436. // The template compiler attempts to minimize the need for normalization by
  4437. // statically analyzing the template at compile time.
  4438. //
  4439. // For plain HTML markup, normalization can be completely skipped because the
  4440. // generated render function is guaranteed to return Array<VNode>. There are
  4441. // two cases where extra normalization is needed:
  4442. // 1. When the children contains components - because a functional component
  4443. // may return an Array instead of a single root. In this case, just a simple
  4444. // normalization is needed - if any child is an Array, we flatten the whole
  4445. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  4446. // because functional components already normalize their own children.
  4447. function simpleNormalizeChildren (children) {
  4448. for (var i = 0; i < children.length; i++) {
  4449. if (Array.isArray(children[i])) {
  4450. return Array.prototype.concat.apply([], children)
  4451. }
  4452. }
  4453. return children
  4454. }
  4455. // 2. When the children contains constructs that always generated nested Arrays,
  4456. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  4457. // with hand-written render functions / JSX. In such cases a full normalization
  4458. // is needed to cater to all possible types of children values.
  4459. function normalizeChildren (children) {
  4460. return isPrimitive(children)
  4461. ? [createTextVNode(children)]
  4462. : Array.isArray(children)
  4463. ? normalizeArrayChildren(children)
  4464. : undefined
  4465. }
  4466. function isTextNode (node) {
  4467. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  4468. }
  4469. function normalizeArrayChildren (children, nestedIndex) {
  4470. var res = [];
  4471. var i, c, lastIndex, last;
  4472. for (i = 0; i < children.length; i++) {
  4473. c = children[i];
  4474. if (isUndef(c) || typeof c === 'boolean') { continue }
  4475. lastIndex = res.length - 1;
  4476. last = res[lastIndex];
  4477. // nested
  4478. if (Array.isArray(c)) {
  4479. if (c.length > 0) {
  4480. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  4481. // merge adjacent text nodes
  4482. if (isTextNode(c[0]) && isTextNode(last)) {
  4483. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  4484. c.shift();
  4485. }
  4486. res.push.apply(res, c);
  4487. }
  4488. } else if (isPrimitive(c)) {
  4489. if (isTextNode(last)) {
  4490. // merge adjacent text nodes
  4491. // this is necessary for SSR hydration because text nodes are
  4492. // essentially merged when rendered to HTML strings
  4493. res[lastIndex] = createTextVNode(last.text + c);
  4494. } else if (c !== '') {
  4495. // convert primitive to vnode
  4496. res.push(createTextVNode(c));
  4497. }
  4498. } else {
  4499. if (isTextNode(c) && isTextNode(last)) {
  4500. // merge adjacent text nodes
  4501. res[lastIndex] = createTextVNode(last.text + c.text);
  4502. } else {
  4503. // default key for nested array children (likely generated by v-for)
  4504. if (isTrue(children._isVList) &&
  4505. isDef(c.tag) &&
  4506. isUndef(c.key) &&
  4507. isDef(nestedIndex)) {
  4508. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  4509. }
  4510. res.push(c);
  4511. }
  4512. }
  4513. }
  4514. return res
  4515. }
  4516. /* */
  4517. function initProvide (vm) {
  4518. var provide = vm.$options.provide;
  4519. if (provide) {
  4520. vm._provided = typeof provide === 'function'
  4521. ? provide.call(vm)
  4522. : provide;
  4523. }
  4524. }
  4525. function initInjections (vm) {
  4526. var result = resolveInject(vm.$options.inject, vm);
  4527. if (result) {
  4528. toggleObserving(false);
  4529. Object.keys(result).forEach(function (key) {
  4530. /* istanbul ignore else */
  4531. if (true) {
  4532. defineReactive$$1(vm, key, result[key], function () {
  4533. warn(
  4534. "Avoid mutating an injected value directly since the changes will be " +
  4535. "overwritten whenever the provided component re-renders. " +
  4536. "injection being mutated: \"" + key + "\"",
  4537. vm
  4538. );
  4539. });
  4540. } else {}
  4541. });
  4542. toggleObserving(true);
  4543. }
  4544. }
  4545. function resolveInject (inject, vm) {
  4546. if (inject) {
  4547. // inject is :any because flow is not smart enough to figure out cached
  4548. var result = Object.create(null);
  4549. var keys = hasSymbol
  4550. ? Reflect.ownKeys(inject)
  4551. : Object.keys(inject);
  4552. for (var i = 0; i < keys.length; i++) {
  4553. var key = keys[i];
  4554. // #6574 in case the inject object is observed...
  4555. if (key === '__ob__') { continue }
  4556. var provideKey = inject[key].from;
  4557. var source = vm;
  4558. while (source) {
  4559. if (source._provided && hasOwn(source._provided, provideKey)) {
  4560. result[key] = source._provided[provideKey];
  4561. break
  4562. }
  4563. source = source.$parent;
  4564. }
  4565. if (!source) {
  4566. if ('default' in inject[key]) {
  4567. var provideDefault = inject[key].default;
  4568. result[key] = typeof provideDefault === 'function'
  4569. ? provideDefault.call(vm)
  4570. : provideDefault;
  4571. } else if (true) {
  4572. warn(("Injection \"" + key + "\" not found"), vm);
  4573. }
  4574. }
  4575. }
  4576. return result
  4577. }
  4578. }
  4579. /* */
  4580. /**
  4581. * Runtime helper for resolving raw children VNodes into a slot object.
  4582. */
  4583. function resolveSlots (
  4584. children,
  4585. context
  4586. ) {
  4587. if (!children || !children.length) {
  4588. return {}
  4589. }
  4590. var slots = {};
  4591. for (var i = 0, l = children.length; i < l; i++) {
  4592. var child = children[i];
  4593. var data = child.data;
  4594. // remove slot attribute if the node is resolved as a Vue slot node
  4595. if (data && data.attrs && data.attrs.slot) {
  4596. delete data.attrs.slot;
  4597. }
  4598. // named slots should only be respected if the vnode was rendered in the
  4599. // same context.
  4600. if ((child.context === context || child.fnContext === context) &&
  4601. data && data.slot != null
  4602. ) {
  4603. var name = data.slot;
  4604. var slot = (slots[name] || (slots[name] = []));
  4605. if (child.tag === 'template') {
  4606. slot.push.apply(slot, child.children || []);
  4607. } else {
  4608. slot.push(child);
  4609. }
  4610. } else {
  4611. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  4612. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  4613. (slots['page'] || (slots['page'] = [])).push(child);
  4614. }else{
  4615. (slots.default || (slots.default = [])).push(child);
  4616. }
  4617. }
  4618. }
  4619. // ignore slots that contains only whitespace
  4620. for (var name$1 in slots) {
  4621. if (slots[name$1].every(isWhitespace)) {
  4622. delete slots[name$1];
  4623. }
  4624. }
  4625. return slots
  4626. }
  4627. function isWhitespace (node) {
  4628. return (node.isComment && !node.asyncFactory) || node.text === ' '
  4629. }
  4630. /* */
  4631. function normalizeScopedSlots (
  4632. slots,
  4633. normalSlots,
  4634. prevSlots
  4635. ) {
  4636. var res;
  4637. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  4638. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  4639. var key = slots && slots.$key;
  4640. if (!slots) {
  4641. res = {};
  4642. } else if (slots._normalized) {
  4643. // fast path 1: child component re-render only, parent did not change
  4644. return slots._normalized
  4645. } else if (
  4646. isStable &&
  4647. prevSlots &&
  4648. prevSlots !== emptyObject &&
  4649. key === prevSlots.$key &&
  4650. !hasNormalSlots &&
  4651. !prevSlots.$hasNormal
  4652. ) {
  4653. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  4654. // only need to normalize once
  4655. return prevSlots
  4656. } else {
  4657. res = {};
  4658. for (var key$1 in slots) {
  4659. if (slots[key$1] && key$1[0] !== '$') {
  4660. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  4661. }
  4662. }
  4663. }
  4664. // expose normal slots on scopedSlots
  4665. for (var key$2 in normalSlots) {
  4666. if (!(key$2 in res)) {
  4667. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  4668. }
  4669. }
  4670. // avoriaz seems to mock a non-extensible $scopedSlots object
  4671. // and when that is passed down this would cause an error
  4672. if (slots && Object.isExtensible(slots)) {
  4673. (slots)._normalized = res;
  4674. }
  4675. def(res, '$stable', isStable);
  4676. def(res, '$key', key);
  4677. def(res, '$hasNormal', hasNormalSlots);
  4678. return res
  4679. }
  4680. function normalizeScopedSlot(normalSlots, key, fn) {
  4681. var normalized = function () {
  4682. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  4683. res = res && typeof res === 'object' && !Array.isArray(res)
  4684. ? [res] // single vnode
  4685. : normalizeChildren(res);
  4686. return res && (
  4687. res.length === 0 ||
  4688. (res.length === 1 && res[0].isComment) // #9658
  4689. ) ? undefined
  4690. : res
  4691. };
  4692. // this is a slot using the new v-slot syntax without scope. although it is
  4693. // compiled as a scoped slot, render fn users would expect it to be present
  4694. // on this.$slots because the usage is semantically a normal slot.
  4695. if (fn.proxy) {
  4696. Object.defineProperty(normalSlots, key, {
  4697. get: normalized,
  4698. enumerable: true,
  4699. configurable: true
  4700. });
  4701. }
  4702. return normalized
  4703. }
  4704. function proxyNormalSlot(slots, key) {
  4705. return function () { return slots[key]; }
  4706. }
  4707. /* */
  4708. /**
  4709. * Runtime helper for rendering v-for lists.
  4710. */
  4711. function renderList (
  4712. val,
  4713. render
  4714. ) {
  4715. var ret, i, l, keys, key;
  4716. if (Array.isArray(val) || typeof val === 'string') {
  4717. ret = new Array(val.length);
  4718. for (i = 0, l = val.length; i < l; i++) {
  4719. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  4720. }
  4721. } else if (typeof val === 'number') {
  4722. ret = new Array(val);
  4723. for (i = 0; i < val; i++) {
  4724. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  4725. }
  4726. } else if (isObject(val)) {
  4727. if (hasSymbol && val[Symbol.iterator]) {
  4728. ret = [];
  4729. var iterator = val[Symbol.iterator]();
  4730. var result = iterator.next();
  4731. while (!result.done) {
  4732. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  4733. result = iterator.next();
  4734. }
  4735. } else {
  4736. keys = Object.keys(val);
  4737. ret = new Array(keys.length);
  4738. for (i = 0, l = keys.length; i < l; i++) {
  4739. key = keys[i];
  4740. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  4741. }
  4742. }
  4743. }
  4744. if (!isDef(ret)) {
  4745. ret = [];
  4746. }
  4747. (ret)._isVList = true;
  4748. return ret
  4749. }
  4750. /* */
  4751. /**
  4752. * Runtime helper for rendering <slot>
  4753. */
  4754. function renderSlot (
  4755. name,
  4756. fallback,
  4757. props,
  4758. bindObject
  4759. ) {
  4760. var scopedSlotFn = this.$scopedSlots[name];
  4761. var nodes;
  4762. if (scopedSlotFn) { // scoped slot
  4763. props = props || {};
  4764. if (bindObject) {
  4765. if ( true && !isObject(bindObject)) {
  4766. warn(
  4767. 'slot v-bind without argument expects an Object',
  4768. this
  4769. );
  4770. }
  4771. props = extend(extend({}, bindObject), props);
  4772. }
  4773. // fixed by xxxxxx app-plus scopedSlot
  4774. nodes = scopedSlotFn(props, this, props._i) || fallback;
  4775. } else {
  4776. nodes = this.$slots[name] || fallback;
  4777. }
  4778. var target = props && props.slot;
  4779. if (target) {
  4780. return this.$createElement('template', { slot: target }, nodes)
  4781. } else {
  4782. return nodes
  4783. }
  4784. }
  4785. /* */
  4786. /**
  4787. * Runtime helper for resolving filters
  4788. */
  4789. function resolveFilter (id) {
  4790. return resolveAsset(this.$options, 'filters', id, true) || identity
  4791. }
  4792. /* */
  4793. function isKeyNotMatch (expect, actual) {
  4794. if (Array.isArray(expect)) {
  4795. return expect.indexOf(actual) === -1
  4796. } else {
  4797. return expect !== actual
  4798. }
  4799. }
  4800. /**
  4801. * Runtime helper for checking keyCodes from config.
  4802. * exposed as Vue.prototype._k
  4803. * passing in eventKeyName as last argument separately for backwards compat
  4804. */
  4805. function checkKeyCodes (
  4806. eventKeyCode,
  4807. key,
  4808. builtInKeyCode,
  4809. eventKeyName,
  4810. builtInKeyName
  4811. ) {
  4812. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  4813. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  4814. return isKeyNotMatch(builtInKeyName, eventKeyName)
  4815. } else if (mappedKeyCode) {
  4816. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  4817. } else if (eventKeyName) {
  4818. return hyphenate(eventKeyName) !== key
  4819. }
  4820. }
  4821. /* */
  4822. /**
  4823. * Runtime helper for merging v-bind="object" into a VNode's data.
  4824. */
  4825. function bindObjectProps (
  4826. data,
  4827. tag,
  4828. value,
  4829. asProp,
  4830. isSync
  4831. ) {
  4832. if (value) {
  4833. if (!isObject(value)) {
  4834. true && warn(
  4835. 'v-bind without argument expects an Object or Array value',
  4836. this
  4837. );
  4838. } else {
  4839. if (Array.isArray(value)) {
  4840. value = toObject(value);
  4841. }
  4842. var hash;
  4843. var loop = function ( key ) {
  4844. if (
  4845. key === 'class' ||
  4846. key === 'style' ||
  4847. isReservedAttribute(key)
  4848. ) {
  4849. hash = data;
  4850. } else {
  4851. var type = data.attrs && data.attrs.type;
  4852. hash = asProp || config.mustUseProp(tag, type, key)
  4853. ? data.domProps || (data.domProps = {})
  4854. : data.attrs || (data.attrs = {});
  4855. }
  4856. var camelizedKey = camelize(key);
  4857. var hyphenatedKey = hyphenate(key);
  4858. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  4859. hash[key] = value[key];
  4860. if (isSync) {
  4861. var on = data.on || (data.on = {});
  4862. on[("update:" + key)] = function ($event) {
  4863. value[key] = $event;
  4864. };
  4865. }
  4866. }
  4867. };
  4868. for (var key in value) loop( key );
  4869. }
  4870. }
  4871. return data
  4872. }
  4873. /* */
  4874. /**
  4875. * Runtime helper for rendering static trees.
  4876. */
  4877. function renderStatic (
  4878. index,
  4879. isInFor
  4880. ) {
  4881. var cached = this._staticTrees || (this._staticTrees = []);
  4882. var tree = cached[index];
  4883. // if has already-rendered static tree and not inside v-for,
  4884. // we can reuse the same tree.
  4885. if (tree && !isInFor) {
  4886. return tree
  4887. }
  4888. // otherwise, render a fresh tree.
  4889. tree = cached[index] = this.$options.staticRenderFns[index].call(
  4890. this._renderProxy,
  4891. null,
  4892. this // for render fns generated for functional component templates
  4893. );
  4894. markStatic(tree, ("__static__" + index), false);
  4895. return tree
  4896. }
  4897. /**
  4898. * Runtime helper for v-once.
  4899. * Effectively it means marking the node as static with a unique key.
  4900. */
  4901. function markOnce (
  4902. tree,
  4903. index,
  4904. key
  4905. ) {
  4906. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  4907. return tree
  4908. }
  4909. function markStatic (
  4910. tree,
  4911. key,
  4912. isOnce
  4913. ) {
  4914. if (Array.isArray(tree)) {
  4915. for (var i = 0; i < tree.length; i++) {
  4916. if (tree[i] && typeof tree[i] !== 'string') {
  4917. markStaticNode(tree[i], (key + "_" + i), isOnce);
  4918. }
  4919. }
  4920. } else {
  4921. markStaticNode(tree, key, isOnce);
  4922. }
  4923. }
  4924. function markStaticNode (node, key, isOnce) {
  4925. node.isStatic = true;
  4926. node.key = key;
  4927. node.isOnce = isOnce;
  4928. }
  4929. /* */
  4930. function bindObjectListeners (data, value) {
  4931. if (value) {
  4932. if (!isPlainObject(value)) {
  4933. true && warn(
  4934. 'v-on without argument expects an Object value',
  4935. this
  4936. );
  4937. } else {
  4938. var on = data.on = data.on ? extend({}, data.on) : {};
  4939. for (var key in value) {
  4940. var existing = on[key];
  4941. var ours = value[key];
  4942. on[key] = existing ? [].concat(existing, ours) : ours;
  4943. }
  4944. }
  4945. }
  4946. return data
  4947. }
  4948. /* */
  4949. function resolveScopedSlots (
  4950. fns, // see flow/vnode
  4951. res,
  4952. // the following are added in 2.6
  4953. hasDynamicKeys,
  4954. contentHashKey
  4955. ) {
  4956. res = res || { $stable: !hasDynamicKeys };
  4957. for (var i = 0; i < fns.length; i++) {
  4958. var slot = fns[i];
  4959. if (Array.isArray(slot)) {
  4960. resolveScopedSlots(slot, res, hasDynamicKeys);
  4961. } else if (slot) {
  4962. // marker for reverse proxying v-slot without scope on this.$slots
  4963. if (slot.proxy) {
  4964. slot.fn.proxy = true;
  4965. }
  4966. res[slot.key] = slot.fn;
  4967. }
  4968. }
  4969. if (contentHashKey) {
  4970. (res).$key = contentHashKey;
  4971. }
  4972. return res
  4973. }
  4974. /* */
  4975. function bindDynamicKeys (baseObj, values) {
  4976. for (var i = 0; i < values.length; i += 2) {
  4977. var key = values[i];
  4978. if (typeof key === 'string' && key) {
  4979. baseObj[values[i]] = values[i + 1];
  4980. } else if ( true && key !== '' && key !== null) {
  4981. // null is a special value for explicitly removing a binding
  4982. warn(
  4983. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  4984. this
  4985. );
  4986. }
  4987. }
  4988. return baseObj
  4989. }
  4990. // helper to dynamically append modifier runtime markers to event names.
  4991. // ensure only append when value is already string, otherwise it will be cast
  4992. // to string and cause the type check to miss.
  4993. function prependModifier (value, symbol) {
  4994. return typeof value === 'string' ? symbol + value : value
  4995. }
  4996. /* */
  4997. function installRenderHelpers (target) {
  4998. target._o = markOnce;
  4999. target._n = toNumber;
  5000. target._s = toString;
  5001. target._l = renderList;
  5002. target._t = renderSlot;
  5003. target._q = looseEqual;
  5004. target._i = looseIndexOf;
  5005. target._m = renderStatic;
  5006. target._f = resolveFilter;
  5007. target._k = checkKeyCodes;
  5008. target._b = bindObjectProps;
  5009. target._v = createTextVNode;
  5010. target._e = createEmptyVNode;
  5011. target._u = resolveScopedSlots;
  5012. target._g = bindObjectListeners;
  5013. target._d = bindDynamicKeys;
  5014. target._p = prependModifier;
  5015. }
  5016. /* */
  5017. function FunctionalRenderContext (
  5018. data,
  5019. props,
  5020. children,
  5021. parent,
  5022. Ctor
  5023. ) {
  5024. var this$1 = this;
  5025. var options = Ctor.options;
  5026. // ensure the createElement function in functional components
  5027. // gets a unique context - this is necessary for correct named slot check
  5028. var contextVm;
  5029. if (hasOwn(parent, '_uid')) {
  5030. contextVm = Object.create(parent);
  5031. // $flow-disable-line
  5032. contextVm._original = parent;
  5033. } else {
  5034. // the context vm passed in is a functional context as well.
  5035. // in this case we want to make sure we are able to get a hold to the
  5036. // real context instance.
  5037. contextVm = parent;
  5038. // $flow-disable-line
  5039. parent = parent._original;
  5040. }
  5041. var isCompiled = isTrue(options._compiled);
  5042. var needNormalization = !isCompiled;
  5043. this.data = data;
  5044. this.props = props;
  5045. this.children = children;
  5046. this.parent = parent;
  5047. this.listeners = data.on || emptyObject;
  5048. this.injections = resolveInject(options.inject, parent);
  5049. this.slots = function () {
  5050. if (!this$1.$slots) {
  5051. normalizeScopedSlots(
  5052. data.scopedSlots,
  5053. this$1.$slots = resolveSlots(children, parent)
  5054. );
  5055. }
  5056. return this$1.$slots
  5057. };
  5058. Object.defineProperty(this, 'scopedSlots', ({
  5059. enumerable: true,
  5060. get: function get () {
  5061. return normalizeScopedSlots(data.scopedSlots, this.slots())
  5062. }
  5063. }));
  5064. // support for compiled functional template
  5065. if (isCompiled) {
  5066. // exposing $options for renderStatic()
  5067. this.$options = options;
  5068. // pre-resolve slots for renderSlot()
  5069. this.$slots = this.slots();
  5070. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  5071. }
  5072. if (options._scopeId) {
  5073. this._c = function (a, b, c, d) {
  5074. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  5075. if (vnode && !Array.isArray(vnode)) {
  5076. vnode.fnScopeId = options._scopeId;
  5077. vnode.fnContext = parent;
  5078. }
  5079. return vnode
  5080. };
  5081. } else {
  5082. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  5083. }
  5084. }
  5085. installRenderHelpers(FunctionalRenderContext.prototype);
  5086. function createFunctionalComponent (
  5087. Ctor,
  5088. propsData,
  5089. data,
  5090. contextVm,
  5091. children
  5092. ) {
  5093. var options = Ctor.options;
  5094. var props = {};
  5095. var propOptions = options.props;
  5096. if (isDef(propOptions)) {
  5097. for (var key in propOptions) {
  5098. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  5099. }
  5100. } else {
  5101. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  5102. if (isDef(data.props)) { mergeProps(props, data.props); }
  5103. }
  5104. var renderContext = new FunctionalRenderContext(
  5105. data,
  5106. props,
  5107. children,
  5108. contextVm,
  5109. Ctor
  5110. );
  5111. var vnode = options.render.call(null, renderContext._c, renderContext);
  5112. if (vnode instanceof VNode) {
  5113. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  5114. } else if (Array.isArray(vnode)) {
  5115. var vnodes = normalizeChildren(vnode) || [];
  5116. var res = new Array(vnodes.length);
  5117. for (var i = 0; i < vnodes.length; i++) {
  5118. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  5119. }
  5120. return res
  5121. }
  5122. }
  5123. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  5124. // #7817 clone node before setting fnContext, otherwise if the node is reused
  5125. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  5126. // that should not be matched to match.
  5127. var clone = cloneVNode(vnode);
  5128. clone.fnContext = contextVm;
  5129. clone.fnOptions = options;
  5130. if (true) {
  5131. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  5132. }
  5133. if (data.slot) {
  5134. (clone.data || (clone.data = {})).slot = data.slot;
  5135. }
  5136. return clone
  5137. }
  5138. function mergeProps (to, from) {
  5139. for (var key in from) {
  5140. to[camelize(key)] = from[key];
  5141. }
  5142. }
  5143. /* */
  5144. /* */
  5145. /* */
  5146. /* */
  5147. // inline hooks to be invoked on component VNodes during patch
  5148. var componentVNodeHooks = {
  5149. init: function init (vnode, hydrating) {
  5150. if (
  5151. vnode.componentInstance &&
  5152. !vnode.componentInstance._isDestroyed &&
  5153. vnode.data.keepAlive
  5154. ) {
  5155. // kept-alive components, treat as a patch
  5156. var mountedNode = vnode; // work around flow
  5157. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  5158. } else {
  5159. var child = vnode.componentInstance = createComponentInstanceForVnode(
  5160. vnode,
  5161. activeInstance
  5162. );
  5163. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  5164. }
  5165. },
  5166. prepatch: function prepatch (oldVnode, vnode) {
  5167. var options = vnode.componentOptions;
  5168. var child = vnode.componentInstance = oldVnode.componentInstance;
  5169. updateChildComponent(
  5170. child,
  5171. options.propsData, // updated props
  5172. options.listeners, // updated listeners
  5173. vnode, // new parent vnode
  5174. options.children // new children
  5175. );
  5176. },
  5177. insert: function insert (vnode) {
  5178. var context = vnode.context;
  5179. var componentInstance = vnode.componentInstance;
  5180. if (!componentInstance._isMounted) {
  5181. callHook(componentInstance, 'onServiceCreated');
  5182. callHook(componentInstance, 'onServiceAttached');
  5183. componentInstance._isMounted = true;
  5184. callHook(componentInstance, 'mounted');
  5185. }
  5186. if (vnode.data.keepAlive) {
  5187. if (context._isMounted) {
  5188. // vue-router#1212
  5189. // During updates, a kept-alive component's child components may
  5190. // change, so directly walking the tree here may call activated hooks
  5191. // on incorrect children. Instead we push them into a queue which will
  5192. // be processed after the whole patch process ended.
  5193. queueActivatedComponent(componentInstance);
  5194. } else {
  5195. activateChildComponent(componentInstance, true /* direct */);
  5196. }
  5197. }
  5198. },
  5199. destroy: function destroy (vnode) {
  5200. var componentInstance = vnode.componentInstance;
  5201. if (!componentInstance._isDestroyed) {
  5202. if (!vnode.data.keepAlive) {
  5203. componentInstance.$destroy();
  5204. } else {
  5205. deactivateChildComponent(componentInstance, true /* direct */);
  5206. }
  5207. }
  5208. }
  5209. };
  5210. var hooksToMerge = Object.keys(componentVNodeHooks);
  5211. function createComponent (
  5212. Ctor,
  5213. data,
  5214. context,
  5215. children,
  5216. tag
  5217. ) {
  5218. if (isUndef(Ctor)) {
  5219. return
  5220. }
  5221. var baseCtor = context.$options._base;
  5222. // plain options object: turn it into a constructor
  5223. if (isObject(Ctor)) {
  5224. Ctor = baseCtor.extend(Ctor);
  5225. }
  5226. // if at this stage it's not a constructor or an async component factory,
  5227. // reject.
  5228. if (typeof Ctor !== 'function') {
  5229. if (true) {
  5230. warn(("Invalid Component definition: " + (String(Ctor))), context);
  5231. }
  5232. return
  5233. }
  5234. // async component
  5235. var asyncFactory;
  5236. if (isUndef(Ctor.cid)) {
  5237. asyncFactory = Ctor;
  5238. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  5239. if (Ctor === undefined) {
  5240. // return a placeholder node for async component, which is rendered
  5241. // as a comment node but preserves all the raw information for the node.
  5242. // the information will be used for async server-rendering and hydration.
  5243. return createAsyncPlaceholder(
  5244. asyncFactory,
  5245. data,
  5246. context,
  5247. children,
  5248. tag
  5249. )
  5250. }
  5251. }
  5252. data = data || {};
  5253. // resolve constructor options in case global mixins are applied after
  5254. // component constructor creation
  5255. resolveConstructorOptions(Ctor);
  5256. // transform component v-model data into props & events
  5257. if (isDef(data.model)) {
  5258. transformModel(Ctor.options, data);
  5259. }
  5260. // extract props
  5261. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  5262. // functional component
  5263. if (isTrue(Ctor.options.functional)) {
  5264. return createFunctionalComponent(Ctor, propsData, data, context, children)
  5265. }
  5266. // extract listeners, since these needs to be treated as
  5267. // child component listeners instead of DOM listeners
  5268. var listeners = data.on;
  5269. // replace with listeners with .native modifier
  5270. // so it gets processed during parent component patch.
  5271. data.on = data.nativeOn;
  5272. if (isTrue(Ctor.options.abstract)) {
  5273. // abstract components do not keep anything
  5274. // other than props & listeners & slot
  5275. // work around flow
  5276. var slot = data.slot;
  5277. data = {};
  5278. if (slot) {
  5279. data.slot = slot;
  5280. }
  5281. }
  5282. // install component management hooks onto the placeholder node
  5283. installComponentHooks(data);
  5284. // return a placeholder vnode
  5285. var name = Ctor.options.name || tag;
  5286. var vnode = new VNode(
  5287. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  5288. data, undefined, undefined, undefined, context,
  5289. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  5290. asyncFactory
  5291. );
  5292. return vnode
  5293. }
  5294. function createComponentInstanceForVnode (
  5295. vnode, // we know it's MountedComponentVNode but flow doesn't
  5296. parent // activeInstance in lifecycle state
  5297. ) {
  5298. var options = {
  5299. _isComponent: true,
  5300. _parentVnode: vnode,
  5301. parent: parent
  5302. };
  5303. // check inline-template render functions
  5304. var inlineTemplate = vnode.data.inlineTemplate;
  5305. if (isDef(inlineTemplate)) {
  5306. options.render = inlineTemplate.render;
  5307. options.staticRenderFns = inlineTemplate.staticRenderFns;
  5308. }
  5309. return new vnode.componentOptions.Ctor(options)
  5310. }
  5311. function installComponentHooks (data) {
  5312. var hooks = data.hook || (data.hook = {});
  5313. for (var i = 0; i < hooksToMerge.length; i++) {
  5314. var key = hooksToMerge[i];
  5315. var existing = hooks[key];
  5316. var toMerge = componentVNodeHooks[key];
  5317. if (existing !== toMerge && !(existing && existing._merged)) {
  5318. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  5319. }
  5320. }
  5321. }
  5322. function mergeHook$1 (f1, f2) {
  5323. var merged = function (a, b) {
  5324. // flow complains about extra args which is why we use any
  5325. f1(a, b);
  5326. f2(a, b);
  5327. };
  5328. merged._merged = true;
  5329. return merged
  5330. }
  5331. // transform component v-model info (value and callback) into
  5332. // prop and event handler respectively.
  5333. function transformModel (options, data) {
  5334. var prop = (options.model && options.model.prop) || 'value';
  5335. var event = (options.model && options.model.event) || 'input'
  5336. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  5337. var on = data.on || (data.on = {});
  5338. var existing = on[event];
  5339. var callback = data.model.callback;
  5340. if (isDef(existing)) {
  5341. if (
  5342. Array.isArray(existing)
  5343. ? existing.indexOf(callback) === -1
  5344. : existing !== callback
  5345. ) {
  5346. on[event] = [callback].concat(existing);
  5347. }
  5348. } else {
  5349. on[event] = callback;
  5350. }
  5351. }
  5352. /* */
  5353. var SIMPLE_NORMALIZE = 1;
  5354. var ALWAYS_NORMALIZE = 2;
  5355. // wrapper function for providing a more flexible interface
  5356. // without getting yelled at by flow
  5357. function createElement (
  5358. context,
  5359. tag,
  5360. data,
  5361. children,
  5362. normalizationType,
  5363. alwaysNormalize
  5364. ) {
  5365. if (Array.isArray(data) || isPrimitive(data)) {
  5366. normalizationType = children;
  5367. children = data;
  5368. data = undefined;
  5369. }
  5370. if (isTrue(alwaysNormalize)) {
  5371. normalizationType = ALWAYS_NORMALIZE;
  5372. }
  5373. return _createElement(context, tag, data, children, normalizationType)
  5374. }
  5375. function _createElement (
  5376. context,
  5377. tag,
  5378. data,
  5379. children,
  5380. normalizationType
  5381. ) {
  5382. if (isDef(data) && isDef((data).__ob__)) {
  5383. true && warn(
  5384. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  5385. 'Always create fresh vnode data objects in each render!',
  5386. context
  5387. );
  5388. return createEmptyVNode()
  5389. }
  5390. // object syntax in v-bind
  5391. if (isDef(data) && isDef(data.is)) {
  5392. tag = data.is;
  5393. }
  5394. if (!tag) {
  5395. // in case of component :is set to falsy value
  5396. return createEmptyVNode()
  5397. }
  5398. // warn against non-primitive key
  5399. if ( true &&
  5400. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  5401. ) {
  5402. {
  5403. warn(
  5404. 'Avoid using non-primitive value as key, ' +
  5405. 'use string/number value instead.',
  5406. context
  5407. );
  5408. }
  5409. }
  5410. // support single function children as default scoped slot
  5411. if (Array.isArray(children) &&
  5412. typeof children[0] === 'function'
  5413. ) {
  5414. data = data || {};
  5415. data.scopedSlots = { default: children[0] };
  5416. children.length = 0;
  5417. }
  5418. if (normalizationType === ALWAYS_NORMALIZE) {
  5419. children = normalizeChildren(children);
  5420. } else if (normalizationType === SIMPLE_NORMALIZE) {
  5421. children = simpleNormalizeChildren(children);
  5422. }
  5423. var vnode, ns;
  5424. if (typeof tag === 'string') {
  5425. var Ctor;
  5426. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  5427. if (config.isReservedTag(tag)) {
  5428. // platform built-in elements
  5429. if ( true && isDef(data) && isDef(data.nativeOn)) {
  5430. warn(
  5431. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  5432. context
  5433. );
  5434. }
  5435. vnode = new VNode(
  5436. config.parsePlatformTagName(tag), data, children,
  5437. undefined, undefined, context
  5438. );
  5439. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  5440. // component
  5441. vnode = createComponent(Ctor, data, context, children, tag);
  5442. } else {
  5443. // unknown or unlisted namespaced elements
  5444. // check at runtime because it may get assigned a namespace when its
  5445. // parent normalizes children
  5446. vnode = new VNode(
  5447. tag, data, children,
  5448. undefined, undefined, context
  5449. );
  5450. }
  5451. } else {
  5452. // direct component options / constructor
  5453. vnode = createComponent(tag, data, context, children);
  5454. }
  5455. if (Array.isArray(vnode)) {
  5456. return vnode
  5457. } else if (isDef(vnode)) {
  5458. if (isDef(ns)) { applyNS(vnode, ns); }
  5459. if (isDef(data)) { registerDeepBindings(data); }
  5460. return vnode
  5461. } else {
  5462. return createEmptyVNode()
  5463. }
  5464. }
  5465. function applyNS (vnode, ns, force) {
  5466. vnode.ns = ns;
  5467. if (vnode.tag === 'foreignObject') {
  5468. // use default namespace inside foreignObject
  5469. ns = undefined;
  5470. force = true;
  5471. }
  5472. if (isDef(vnode.children)) {
  5473. for (var i = 0, l = vnode.children.length; i < l; i++) {
  5474. var child = vnode.children[i];
  5475. if (isDef(child.tag) && (
  5476. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  5477. applyNS(child, ns, force);
  5478. }
  5479. }
  5480. }
  5481. }
  5482. // ref #5318
  5483. // necessary to ensure parent re-render when deep bindings like :style and
  5484. // :class are used on slot nodes
  5485. function registerDeepBindings (data) {
  5486. if (isObject(data.style)) {
  5487. traverse(data.style);
  5488. }
  5489. if (isObject(data.class)) {
  5490. traverse(data.class);
  5491. }
  5492. }
  5493. /* */
  5494. function initRender (vm) {
  5495. vm._vnode = null; // the root of the child tree
  5496. vm._staticTrees = null; // v-once cached trees
  5497. var options = vm.$options;
  5498. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  5499. var renderContext = parentVnode && parentVnode.context;
  5500. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  5501. vm.$scopedSlots = emptyObject;
  5502. // bind the createElement fn to this instance
  5503. // so that we get proper render context inside it.
  5504. // args order: tag, data, children, normalizationType, alwaysNormalize
  5505. // internal version is used by render functions compiled from templates
  5506. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  5507. // normalization is always applied for the public version, used in
  5508. // user-written render functions.
  5509. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  5510. // $attrs & $listeners are exposed for easier HOC creation.
  5511. // they need to be reactive so that HOCs using them are always updated
  5512. var parentData = parentVnode && parentVnode.data;
  5513. /* istanbul ignore else */
  5514. if (true) {
  5515. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  5516. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  5517. }, true);
  5518. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  5519. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  5520. }, true);
  5521. } else {}
  5522. }
  5523. var currentRenderingInstance = null;
  5524. function renderMixin (Vue) {
  5525. // install runtime convenience helpers
  5526. installRenderHelpers(Vue.prototype);
  5527. Vue.prototype.$nextTick = function (fn) {
  5528. return nextTick(fn, this)
  5529. };
  5530. Vue.prototype._render = function () {
  5531. var vm = this;
  5532. var ref = vm.$options;
  5533. var render = ref.render;
  5534. var _parentVnode = ref._parentVnode;
  5535. if (_parentVnode) {
  5536. vm.$scopedSlots = normalizeScopedSlots(
  5537. _parentVnode.data.scopedSlots,
  5538. vm.$slots,
  5539. vm.$scopedSlots
  5540. );
  5541. }
  5542. // set parent vnode. this allows render functions to have access
  5543. // to the data on the placeholder node.
  5544. vm.$vnode = _parentVnode;
  5545. // render self
  5546. var vnode;
  5547. try {
  5548. // There's no need to maintain a stack because all render fns are called
  5549. // separately from one another. Nested component's render fns are called
  5550. // when parent component is patched.
  5551. currentRenderingInstance = vm;
  5552. vnode = render.call(vm._renderProxy, vm.$createElement);
  5553. } catch (e) {
  5554. handleError(e, vm, "render");
  5555. // return error render result,
  5556. // or previous vnode to prevent render error causing blank component
  5557. /* istanbul ignore else */
  5558. if ( true && vm.$options.renderError) {
  5559. try {
  5560. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  5561. } catch (e) {
  5562. handleError(e, vm, "renderError");
  5563. vnode = vm._vnode;
  5564. }
  5565. } else {
  5566. vnode = vm._vnode;
  5567. }
  5568. } finally {
  5569. currentRenderingInstance = null;
  5570. }
  5571. // if the returned array contains only a single node, allow it
  5572. if (Array.isArray(vnode) && vnode.length === 1) {
  5573. vnode = vnode[0];
  5574. }
  5575. // return empty vnode in case the render function errored out
  5576. if (!(vnode instanceof VNode)) {
  5577. if ( true && Array.isArray(vnode)) {
  5578. warn(
  5579. 'Multiple root nodes returned from render function. Render function ' +
  5580. 'should return a single root node.',
  5581. vm
  5582. );
  5583. }
  5584. vnode = createEmptyVNode();
  5585. }
  5586. // set parent
  5587. vnode.parent = _parentVnode;
  5588. return vnode
  5589. };
  5590. }
  5591. /* */
  5592. function ensureCtor (comp, base) {
  5593. if (
  5594. comp.__esModule ||
  5595. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  5596. ) {
  5597. comp = comp.default;
  5598. }
  5599. return isObject(comp)
  5600. ? base.extend(comp)
  5601. : comp
  5602. }
  5603. function createAsyncPlaceholder (
  5604. factory,
  5605. data,
  5606. context,
  5607. children,
  5608. tag
  5609. ) {
  5610. var node = createEmptyVNode();
  5611. node.asyncFactory = factory;
  5612. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  5613. return node
  5614. }
  5615. function resolveAsyncComponent (
  5616. factory,
  5617. baseCtor
  5618. ) {
  5619. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  5620. return factory.errorComp
  5621. }
  5622. if (isDef(factory.resolved)) {
  5623. return factory.resolved
  5624. }
  5625. var owner = currentRenderingInstance;
  5626. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  5627. // already pending
  5628. factory.owners.push(owner);
  5629. }
  5630. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  5631. return factory.loadingComp
  5632. }
  5633. if (owner && !isDef(factory.owners)) {
  5634. var owners = factory.owners = [owner];
  5635. var sync = true;
  5636. var timerLoading = null;
  5637. var timerTimeout = null
  5638. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  5639. var forceRender = function (renderCompleted) {
  5640. for (var i = 0, l = owners.length; i < l; i++) {
  5641. (owners[i]).$forceUpdate();
  5642. }
  5643. if (renderCompleted) {
  5644. owners.length = 0;
  5645. if (timerLoading !== null) {
  5646. clearTimeout(timerLoading);
  5647. timerLoading = null;
  5648. }
  5649. if (timerTimeout !== null) {
  5650. clearTimeout(timerTimeout);
  5651. timerTimeout = null;
  5652. }
  5653. }
  5654. };
  5655. var resolve = once(function (res) {
  5656. // cache resolved
  5657. factory.resolved = ensureCtor(res, baseCtor);
  5658. // invoke callbacks only if this is not a synchronous resolve
  5659. // (async resolves are shimmed as synchronous during SSR)
  5660. if (!sync) {
  5661. forceRender(true);
  5662. } else {
  5663. owners.length = 0;
  5664. }
  5665. });
  5666. var reject = once(function (reason) {
  5667. true && warn(
  5668. "Failed to resolve async component: " + (String(factory)) +
  5669. (reason ? ("\nReason: " + reason) : '')
  5670. );
  5671. if (isDef(factory.errorComp)) {
  5672. factory.error = true;
  5673. forceRender(true);
  5674. }
  5675. });
  5676. var res = factory(resolve, reject);
  5677. if (isObject(res)) {
  5678. if (isPromise(res)) {
  5679. // () => Promise
  5680. if (isUndef(factory.resolved)) {
  5681. res.then(resolve, reject);
  5682. }
  5683. } else if (isPromise(res.component)) {
  5684. res.component.then(resolve, reject);
  5685. if (isDef(res.error)) {
  5686. factory.errorComp = ensureCtor(res.error, baseCtor);
  5687. }
  5688. if (isDef(res.loading)) {
  5689. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  5690. if (res.delay === 0) {
  5691. factory.loading = true;
  5692. } else {
  5693. timerLoading = setTimeout(function () {
  5694. timerLoading = null;
  5695. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  5696. factory.loading = true;
  5697. forceRender(false);
  5698. }
  5699. }, res.delay || 200);
  5700. }
  5701. }
  5702. if (isDef(res.timeout)) {
  5703. timerTimeout = setTimeout(function () {
  5704. timerTimeout = null;
  5705. if (isUndef(factory.resolved)) {
  5706. reject(
  5707. true
  5708. ? ("timeout (" + (res.timeout) + "ms)")
  5709. : undefined
  5710. );
  5711. }
  5712. }, res.timeout);
  5713. }
  5714. }
  5715. }
  5716. sync = false;
  5717. // return in case resolved synchronously
  5718. return factory.loading
  5719. ? factory.loadingComp
  5720. : factory.resolved
  5721. }
  5722. }
  5723. /* */
  5724. function isAsyncPlaceholder (node) {
  5725. return node.isComment && node.asyncFactory
  5726. }
  5727. /* */
  5728. function getFirstComponentChild (children) {
  5729. if (Array.isArray(children)) {
  5730. for (var i = 0; i < children.length; i++) {
  5731. var c = children[i];
  5732. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  5733. return c
  5734. }
  5735. }
  5736. }
  5737. }
  5738. /* */
  5739. /* */
  5740. function initEvents (vm) {
  5741. vm._events = Object.create(null);
  5742. vm._hasHookEvent = false;
  5743. // init parent attached events
  5744. var listeners = vm.$options._parentListeners;
  5745. if (listeners) {
  5746. updateComponentListeners(vm, listeners);
  5747. }
  5748. }
  5749. var target;
  5750. function add (event, fn) {
  5751. target.$on(event, fn);
  5752. }
  5753. function remove$1 (event, fn) {
  5754. target.$off(event, fn);
  5755. }
  5756. function createOnceHandler (event, fn) {
  5757. var _target = target;
  5758. return function onceHandler () {
  5759. var res = fn.apply(null, arguments);
  5760. if (res !== null) {
  5761. _target.$off(event, onceHandler);
  5762. }
  5763. }
  5764. }
  5765. function updateComponentListeners (
  5766. vm,
  5767. listeners,
  5768. oldListeners
  5769. ) {
  5770. target = vm;
  5771. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  5772. target = undefined;
  5773. }
  5774. function eventsMixin (Vue) {
  5775. var hookRE = /^hook:/;
  5776. Vue.prototype.$on = function (event, fn) {
  5777. var vm = this;
  5778. if (Array.isArray(event)) {
  5779. for (var i = 0, l = event.length; i < l; i++) {
  5780. vm.$on(event[i], fn);
  5781. }
  5782. } else {
  5783. (vm._events[event] || (vm._events[event] = [])).push(fn);
  5784. // optimize hook:event cost by using a boolean flag marked at registration
  5785. // instead of a hash lookup
  5786. if (hookRE.test(event)) {
  5787. vm._hasHookEvent = true;
  5788. }
  5789. }
  5790. return vm
  5791. };
  5792. Vue.prototype.$once = function (event, fn) {
  5793. var vm = this;
  5794. function on () {
  5795. vm.$off(event, on);
  5796. fn.apply(vm, arguments);
  5797. }
  5798. on.fn = fn;
  5799. vm.$on(event, on);
  5800. return vm
  5801. };
  5802. Vue.prototype.$off = function (event, fn) {
  5803. var vm = this;
  5804. // all
  5805. if (!arguments.length) {
  5806. vm._events = Object.create(null);
  5807. return vm
  5808. }
  5809. // array of events
  5810. if (Array.isArray(event)) {
  5811. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  5812. vm.$off(event[i$1], fn);
  5813. }
  5814. return vm
  5815. }
  5816. // specific event
  5817. var cbs = vm._events[event];
  5818. if (!cbs) {
  5819. return vm
  5820. }
  5821. if (!fn) {
  5822. vm._events[event] = null;
  5823. return vm
  5824. }
  5825. // specific handler
  5826. var cb;
  5827. var i = cbs.length;
  5828. while (i--) {
  5829. cb = cbs[i];
  5830. if (cb === fn || cb.fn === fn) {
  5831. cbs.splice(i, 1);
  5832. break
  5833. }
  5834. }
  5835. return vm
  5836. };
  5837. Vue.prototype.$emit = function (event) {
  5838. var vm = this;
  5839. if (true) {
  5840. var lowerCaseEvent = event.toLowerCase();
  5841. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  5842. tip(
  5843. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  5844. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  5845. "Note that HTML attributes are case-insensitive and you cannot use " +
  5846. "v-on to listen to camelCase events when using in-DOM templates. " +
  5847. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  5848. );
  5849. }
  5850. }
  5851. var cbs = vm._events[event];
  5852. if (cbs) {
  5853. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  5854. var args = toArray(arguments, 1);
  5855. var info = "event handler for \"" + event + "\"";
  5856. for (var i = 0, l = cbs.length; i < l; i++) {
  5857. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  5858. }
  5859. }
  5860. return vm
  5861. };
  5862. }
  5863. /* */
  5864. var activeInstance = null;
  5865. var isUpdatingChildComponent = false;
  5866. function setActiveInstance(vm) {
  5867. var prevActiveInstance = activeInstance;
  5868. activeInstance = vm;
  5869. return function () {
  5870. activeInstance = prevActiveInstance;
  5871. }
  5872. }
  5873. function initLifecycle (vm) {
  5874. var options = vm.$options;
  5875. // locate first non-abstract parent
  5876. var parent = options.parent;
  5877. if (parent && !options.abstract) {
  5878. while (parent.$options.abstract && parent.$parent) {
  5879. parent = parent.$parent;
  5880. }
  5881. parent.$children.push(vm);
  5882. }
  5883. vm.$parent = parent;
  5884. vm.$root = parent ? parent.$root : vm;
  5885. vm.$children = [];
  5886. vm.$refs = {};
  5887. vm._watcher = null;
  5888. vm._inactive = null;
  5889. vm._directInactive = false;
  5890. vm._isMounted = false;
  5891. vm._isDestroyed = false;
  5892. vm._isBeingDestroyed = false;
  5893. }
  5894. function lifecycleMixin (Vue) {
  5895. Vue.prototype._update = function (vnode, hydrating) {
  5896. var vm = this;
  5897. var prevEl = vm.$el;
  5898. var prevVnode = vm._vnode;
  5899. var restoreActiveInstance = setActiveInstance(vm);
  5900. vm._vnode = vnode;
  5901. // Vue.prototype.__patch__ is injected in entry points
  5902. // based on the rendering backend used.
  5903. if (!prevVnode) {
  5904. // initial render
  5905. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  5906. } else {
  5907. // updates
  5908. vm.$el = vm.__patch__(prevVnode, vnode);
  5909. }
  5910. restoreActiveInstance();
  5911. // update __vue__ reference
  5912. if (prevEl) {
  5913. prevEl.__vue__ = null;
  5914. }
  5915. if (vm.$el) {
  5916. vm.$el.__vue__ = vm;
  5917. }
  5918. // if parent is an HOC, update its $el as well
  5919. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  5920. vm.$parent.$el = vm.$el;
  5921. }
  5922. // updated hook is called by the scheduler to ensure that children are
  5923. // updated in a parent's updated hook.
  5924. };
  5925. Vue.prototype.$forceUpdate = function () {
  5926. var vm = this;
  5927. if (vm._watcher) {
  5928. vm._watcher.update();
  5929. }
  5930. };
  5931. Vue.prototype.$destroy = function () {
  5932. var vm = this;
  5933. if (vm._isBeingDestroyed) {
  5934. return
  5935. }
  5936. callHook(vm, 'beforeDestroy');
  5937. vm._isBeingDestroyed = true;
  5938. // remove self from parent
  5939. var parent = vm.$parent;
  5940. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  5941. remove(parent.$children, vm);
  5942. }
  5943. // teardown watchers
  5944. if (vm._watcher) {
  5945. vm._watcher.teardown();
  5946. }
  5947. var i = vm._watchers.length;
  5948. while (i--) {
  5949. vm._watchers[i].teardown();
  5950. }
  5951. // remove reference from data ob
  5952. // frozen object may not have observer.
  5953. if (vm._data.__ob__) {
  5954. vm._data.__ob__.vmCount--;
  5955. }
  5956. // call the last hook...
  5957. vm._isDestroyed = true;
  5958. // invoke destroy hooks on current rendered tree
  5959. vm.__patch__(vm._vnode, null);
  5960. // fire destroyed hook
  5961. callHook(vm, 'destroyed');
  5962. // turn off all instance listeners.
  5963. vm.$off();
  5964. // remove __vue__ reference
  5965. if (vm.$el) {
  5966. vm.$el.__vue__ = null;
  5967. }
  5968. // release circular reference (#6759)
  5969. if (vm.$vnode) {
  5970. vm.$vnode.parent = null;
  5971. }
  5972. };
  5973. }
  5974. function updateChildComponent (
  5975. vm,
  5976. propsData,
  5977. listeners,
  5978. parentVnode,
  5979. renderChildren
  5980. ) {
  5981. if (true) {
  5982. isUpdatingChildComponent = true;
  5983. }
  5984. // determine whether component has slot children
  5985. // we need to do this before overwriting $options._renderChildren.
  5986. // check if there are dynamic scopedSlots (hand-written or compiled but with
  5987. // dynamic slot names). Static scoped slots compiled from template has the
  5988. // "$stable" marker.
  5989. var newScopedSlots = parentVnode.data.scopedSlots;
  5990. var oldScopedSlots = vm.$scopedSlots;
  5991. var hasDynamicScopedSlot = !!(
  5992. (newScopedSlots && !newScopedSlots.$stable) ||
  5993. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  5994. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  5995. );
  5996. // Any static slot children from the parent may have changed during parent's
  5997. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  5998. // update is necessary to ensure correctness.
  5999. var needsForceUpdate = !!(
  6000. renderChildren || // has new static slots
  6001. vm.$options._renderChildren || // has old static slots
  6002. hasDynamicScopedSlot
  6003. );
  6004. vm.$options._parentVnode = parentVnode;
  6005. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  6006. if (vm._vnode) { // update child tree's parent
  6007. vm._vnode.parent = parentVnode;
  6008. }
  6009. vm.$options._renderChildren = renderChildren;
  6010. // update $attrs and $listeners hash
  6011. // these are also reactive so they may trigger child update if the child
  6012. // used them during render
  6013. vm.$attrs = parentVnode.data.attrs || emptyObject;
  6014. vm.$listeners = listeners || emptyObject;
  6015. // update props
  6016. if (propsData && vm.$options.props) {
  6017. toggleObserving(false);
  6018. var props = vm._props;
  6019. var propKeys = vm.$options._propKeys || [];
  6020. for (var i = 0; i < propKeys.length; i++) {
  6021. var key = propKeys[i];
  6022. var propOptions = vm.$options.props; // wtf flow?
  6023. props[key] = validateProp(key, propOptions, propsData, vm);
  6024. }
  6025. toggleObserving(true);
  6026. // keep a copy of raw propsData
  6027. vm.$options.propsData = propsData;
  6028. }
  6029. // fixed by xxxxxx update properties(mp runtime)
  6030. vm._$updateProperties && vm._$updateProperties(vm);
  6031. // update listeners
  6032. listeners = listeners || emptyObject;
  6033. var oldListeners = vm.$options._parentListeners;
  6034. vm.$options._parentListeners = listeners;
  6035. updateComponentListeners(vm, listeners, oldListeners);
  6036. // resolve slots + force update if has children
  6037. if (needsForceUpdate) {
  6038. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  6039. vm.$forceUpdate();
  6040. }
  6041. if (true) {
  6042. isUpdatingChildComponent = false;
  6043. }
  6044. }
  6045. function isInInactiveTree (vm) {
  6046. while (vm && (vm = vm.$parent)) {
  6047. if (vm._inactive) { return true }
  6048. }
  6049. return false
  6050. }
  6051. function activateChildComponent (vm, direct) {
  6052. if (direct) {
  6053. vm._directInactive = false;
  6054. if (isInInactiveTree(vm)) {
  6055. return
  6056. }
  6057. } else if (vm._directInactive) {
  6058. return
  6059. }
  6060. if (vm._inactive || vm._inactive === null) {
  6061. vm._inactive = false;
  6062. for (var i = 0; i < vm.$children.length; i++) {
  6063. activateChildComponent(vm.$children[i]);
  6064. }
  6065. callHook(vm, 'activated');
  6066. }
  6067. }
  6068. function deactivateChildComponent (vm, direct) {
  6069. if (direct) {
  6070. vm._directInactive = true;
  6071. if (isInInactiveTree(vm)) {
  6072. return
  6073. }
  6074. }
  6075. if (!vm._inactive) {
  6076. vm._inactive = true;
  6077. for (var i = 0; i < vm.$children.length; i++) {
  6078. deactivateChildComponent(vm.$children[i]);
  6079. }
  6080. callHook(vm, 'deactivated');
  6081. }
  6082. }
  6083. function callHook (vm, hook) {
  6084. // #7573 disable dep collection when invoking lifecycle hooks
  6085. pushTarget();
  6086. var handlers = vm.$options[hook];
  6087. var info = hook + " hook";
  6088. if (handlers) {
  6089. for (var i = 0, j = handlers.length; i < j; i++) {
  6090. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  6091. }
  6092. }
  6093. if (vm._hasHookEvent) {
  6094. vm.$emit('hook:' + hook);
  6095. }
  6096. popTarget();
  6097. }
  6098. /* */
  6099. var MAX_UPDATE_COUNT = 100;
  6100. var queue = [];
  6101. var activatedChildren = [];
  6102. var has = {};
  6103. var circular = {};
  6104. var waiting = false;
  6105. var flushing = false;
  6106. var index = 0;
  6107. /**
  6108. * Reset the scheduler's state.
  6109. */
  6110. function resetSchedulerState () {
  6111. index = queue.length = activatedChildren.length = 0;
  6112. has = {};
  6113. if (true) {
  6114. circular = {};
  6115. }
  6116. waiting = flushing = false;
  6117. }
  6118. // Async edge case #6566 requires saving the timestamp when event listeners are
  6119. // attached. However, calling performance.now() has a perf overhead especially
  6120. // if the page has thousands of event listeners. Instead, we take a timestamp
  6121. // every time the scheduler flushes and use that for all event listeners
  6122. // attached during that flush.
  6123. var currentFlushTimestamp = 0;
  6124. // Async edge case fix requires storing an event listener's attach timestamp.
  6125. var getNow = Date.now;
  6126. // Determine what event timestamp the browser is using. Annoyingly, the
  6127. // timestamp can either be hi-res (relative to page load) or low-res
  6128. // (relative to UNIX epoch), so in order to compare time we have to use the
  6129. // same timestamp type when saving the flush timestamp.
  6130. // All IE versions use low-res event timestamps, and have problematic clock
  6131. // implementations (#9632)
  6132. if (inBrowser && !isIE) {
  6133. var performance = window.performance;
  6134. if (
  6135. performance &&
  6136. typeof performance.now === 'function' &&
  6137. getNow() > document.createEvent('Event').timeStamp
  6138. ) {
  6139. // if the event timestamp, although evaluated AFTER the Date.now(), is
  6140. // smaller than it, it means the event is using a hi-res timestamp,
  6141. // and we need to use the hi-res version for event listener timestamps as
  6142. // well.
  6143. getNow = function () { return performance.now(); };
  6144. }
  6145. }
  6146. /**
  6147. * Flush both queues and run the watchers.
  6148. */
  6149. function flushSchedulerQueue () {
  6150. currentFlushTimestamp = getNow();
  6151. flushing = true;
  6152. var watcher, id;
  6153. // Sort queue before flush.
  6154. // This ensures that:
  6155. // 1. Components are updated from parent to child. (because parent is always
  6156. // created before the child)
  6157. // 2. A component's user watchers are run before its render watcher (because
  6158. // user watchers are created before the render watcher)
  6159. // 3. If a component is destroyed during a parent component's watcher run,
  6160. // its watchers can be skipped.
  6161. queue.sort(function (a, b) { return a.id - b.id; });
  6162. // do not cache length because more watchers might be pushed
  6163. // as we run existing watchers
  6164. for (index = 0; index < queue.length; index++) {
  6165. watcher = queue[index];
  6166. if (watcher.before) {
  6167. watcher.before();
  6168. }
  6169. id = watcher.id;
  6170. has[id] = null;
  6171. watcher.run();
  6172. // in dev build, check and stop circular updates.
  6173. if ( true && has[id] != null) {
  6174. circular[id] = (circular[id] || 0) + 1;
  6175. if (circular[id] > MAX_UPDATE_COUNT) {
  6176. warn(
  6177. 'You may have an infinite update loop ' + (
  6178. watcher.user
  6179. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  6180. : "in a component render function."
  6181. ),
  6182. watcher.vm
  6183. );
  6184. break
  6185. }
  6186. }
  6187. }
  6188. // keep copies of post queues before resetting state
  6189. var activatedQueue = activatedChildren.slice();
  6190. var updatedQueue = queue.slice();
  6191. resetSchedulerState();
  6192. // call component updated and activated hooks
  6193. callActivatedHooks(activatedQueue);
  6194. callUpdatedHooks(updatedQueue);
  6195. // devtool hook
  6196. /* istanbul ignore if */
  6197. if (devtools && config.devtools) {
  6198. devtools.emit('flush');
  6199. }
  6200. }
  6201. function callUpdatedHooks (queue) {
  6202. var i = queue.length;
  6203. while (i--) {
  6204. var watcher = queue[i];
  6205. var vm = watcher.vm;
  6206. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  6207. callHook(vm, 'updated');
  6208. }
  6209. }
  6210. }
  6211. /**
  6212. * Queue a kept-alive component that was activated during patch.
  6213. * The queue will be processed after the entire tree has been patched.
  6214. */
  6215. function queueActivatedComponent (vm) {
  6216. // setting _inactive to false here so that a render function can
  6217. // rely on checking whether it's in an inactive tree (e.g. router-view)
  6218. vm._inactive = false;
  6219. activatedChildren.push(vm);
  6220. }
  6221. function callActivatedHooks (queue) {
  6222. for (var i = 0; i < queue.length; i++) {
  6223. queue[i]._inactive = true;
  6224. activateChildComponent(queue[i], true /* true */);
  6225. }
  6226. }
  6227. /**
  6228. * Push a watcher into the watcher queue.
  6229. * Jobs with duplicate IDs will be skipped unless it's
  6230. * pushed when the queue is being flushed.
  6231. */
  6232. function queueWatcher (watcher) {
  6233. var id = watcher.id;
  6234. if (has[id] == null) {
  6235. has[id] = true;
  6236. if (!flushing) {
  6237. queue.push(watcher);
  6238. } else {
  6239. // if already flushing, splice the watcher based on its id
  6240. // if already past its id, it will be run next immediately.
  6241. var i = queue.length - 1;
  6242. while (i > index && queue[i].id > watcher.id) {
  6243. i--;
  6244. }
  6245. queue.splice(i + 1, 0, watcher);
  6246. }
  6247. // queue the flush
  6248. if (!waiting) {
  6249. waiting = true;
  6250. if ( true && !config.async) {
  6251. flushSchedulerQueue();
  6252. return
  6253. }
  6254. nextTick(flushSchedulerQueue);
  6255. }
  6256. }
  6257. }
  6258. /* */
  6259. var uid$2 = 0;
  6260. /**
  6261. * A watcher parses an expression, collects dependencies,
  6262. * and fires callback when the expression value changes.
  6263. * This is used for both the $watch() api and directives.
  6264. */
  6265. var Watcher = function Watcher (
  6266. vm,
  6267. expOrFn,
  6268. cb,
  6269. options,
  6270. isRenderWatcher
  6271. ) {
  6272. this.vm = vm;
  6273. if (isRenderWatcher) {
  6274. vm._watcher = this;
  6275. }
  6276. vm._watchers.push(this);
  6277. // options
  6278. if (options) {
  6279. this.deep = !!options.deep;
  6280. this.user = !!options.user;
  6281. this.lazy = !!options.lazy;
  6282. this.sync = !!options.sync;
  6283. this.before = options.before;
  6284. } else {
  6285. this.deep = this.user = this.lazy = this.sync = false;
  6286. }
  6287. this.cb = cb;
  6288. this.id = ++uid$2; // uid for batching
  6289. this.active = true;
  6290. this.dirty = this.lazy; // for lazy watchers
  6291. this.deps = [];
  6292. this.newDeps = [];
  6293. this.depIds = new _Set();
  6294. this.newDepIds = new _Set();
  6295. this.expression = true
  6296. ? expOrFn.toString()
  6297. : undefined;
  6298. // parse expression for getter
  6299. if (typeof expOrFn === 'function') {
  6300. this.getter = expOrFn;
  6301. } else {
  6302. this.getter = parsePath(expOrFn);
  6303. if (!this.getter) {
  6304. this.getter = noop;
  6305. true && warn(
  6306. "Failed watching path: \"" + expOrFn + "\" " +
  6307. 'Watcher only accepts simple dot-delimited paths. ' +
  6308. 'For full control, use a function instead.',
  6309. vm
  6310. );
  6311. }
  6312. }
  6313. this.value = this.lazy
  6314. ? undefined
  6315. : this.get();
  6316. };
  6317. /**
  6318. * Evaluate the getter, and re-collect dependencies.
  6319. */
  6320. Watcher.prototype.get = function get () {
  6321. pushTarget(this);
  6322. var value;
  6323. var vm = this.vm;
  6324. try {
  6325. value = this.getter.call(vm, vm);
  6326. } catch (e) {
  6327. if (this.user) {
  6328. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  6329. } else {
  6330. throw e
  6331. }
  6332. } finally {
  6333. // "touch" every property so they are all tracked as
  6334. // dependencies for deep watching
  6335. if (this.deep) {
  6336. traverse(value);
  6337. }
  6338. popTarget();
  6339. this.cleanupDeps();
  6340. }
  6341. return value
  6342. };
  6343. /**
  6344. * Add a dependency to this directive.
  6345. */
  6346. Watcher.prototype.addDep = function addDep (dep) {
  6347. var id = dep.id;
  6348. if (!this.newDepIds.has(id)) {
  6349. this.newDepIds.add(id);
  6350. this.newDeps.push(dep);
  6351. if (!this.depIds.has(id)) {
  6352. dep.addSub(this);
  6353. }
  6354. }
  6355. };
  6356. /**
  6357. * Clean up for dependency collection.
  6358. */
  6359. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  6360. var i = this.deps.length;
  6361. while (i--) {
  6362. var dep = this.deps[i];
  6363. if (!this.newDepIds.has(dep.id)) {
  6364. dep.removeSub(this);
  6365. }
  6366. }
  6367. var tmp = this.depIds;
  6368. this.depIds = this.newDepIds;
  6369. this.newDepIds = tmp;
  6370. this.newDepIds.clear();
  6371. tmp = this.deps;
  6372. this.deps = this.newDeps;
  6373. this.newDeps = tmp;
  6374. this.newDeps.length = 0;
  6375. };
  6376. /**
  6377. * Subscriber interface.
  6378. * Will be called when a dependency changes.
  6379. */
  6380. Watcher.prototype.update = function update () {
  6381. /* istanbul ignore else */
  6382. if (this.lazy) {
  6383. this.dirty = true;
  6384. } else if (this.sync) {
  6385. this.run();
  6386. } else {
  6387. queueWatcher(this);
  6388. }
  6389. };
  6390. /**
  6391. * Scheduler job interface.
  6392. * Will be called by the scheduler.
  6393. */
  6394. Watcher.prototype.run = function run () {
  6395. if (this.active) {
  6396. var value = this.get();
  6397. if (
  6398. value !== this.value ||
  6399. // Deep watchers and watchers on Object/Arrays should fire even
  6400. // when the value is the same, because the value may
  6401. // have mutated.
  6402. isObject(value) ||
  6403. this.deep
  6404. ) {
  6405. // set new value
  6406. var oldValue = this.value;
  6407. this.value = value;
  6408. if (this.user) {
  6409. try {
  6410. this.cb.call(this.vm, value, oldValue);
  6411. } catch (e) {
  6412. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  6413. }
  6414. } else {
  6415. this.cb.call(this.vm, value, oldValue);
  6416. }
  6417. }
  6418. }
  6419. };
  6420. /**
  6421. * Evaluate the value of the watcher.
  6422. * This only gets called for lazy watchers.
  6423. */
  6424. Watcher.prototype.evaluate = function evaluate () {
  6425. this.value = this.get();
  6426. this.dirty = false;
  6427. };
  6428. /**
  6429. * Depend on all deps collected by this watcher.
  6430. */
  6431. Watcher.prototype.depend = function depend () {
  6432. var i = this.deps.length;
  6433. while (i--) {
  6434. this.deps[i].depend();
  6435. }
  6436. };
  6437. /**
  6438. * Remove self from all dependencies' subscriber list.
  6439. */
  6440. Watcher.prototype.teardown = function teardown () {
  6441. if (this.active) {
  6442. // remove self from vm's watcher list
  6443. // this is a somewhat expensive operation so we skip it
  6444. // if the vm is being destroyed.
  6445. if (!this.vm._isBeingDestroyed) {
  6446. remove(this.vm._watchers, this);
  6447. }
  6448. var i = this.deps.length;
  6449. while (i--) {
  6450. this.deps[i].removeSub(this);
  6451. }
  6452. this.active = false;
  6453. }
  6454. };
  6455. /* */
  6456. var sharedPropertyDefinition = {
  6457. enumerable: true,
  6458. configurable: true,
  6459. get: noop,
  6460. set: noop
  6461. };
  6462. function proxy (target, sourceKey, key) {
  6463. sharedPropertyDefinition.get = function proxyGetter () {
  6464. return this[sourceKey][key]
  6465. };
  6466. sharedPropertyDefinition.set = function proxySetter (val) {
  6467. this[sourceKey][key] = val;
  6468. };
  6469. Object.defineProperty(target, key, sharedPropertyDefinition);
  6470. }
  6471. function initState (vm) {
  6472. vm._watchers = [];
  6473. var opts = vm.$options;
  6474. if (opts.props) { initProps(vm, opts.props); }
  6475. if (opts.methods) { initMethods(vm, opts.methods); }
  6476. if (opts.data) {
  6477. initData(vm);
  6478. } else {
  6479. observe(vm._data = {}, true /* asRootData */);
  6480. }
  6481. if (opts.computed) { initComputed(vm, opts.computed); }
  6482. if (opts.watch && opts.watch !== nativeWatch) {
  6483. initWatch(vm, opts.watch);
  6484. }
  6485. }
  6486. function initProps (vm, propsOptions) {
  6487. var propsData = vm.$options.propsData || {};
  6488. var props = vm._props = {};
  6489. // cache prop keys so that future props updates can iterate using Array
  6490. // instead of dynamic object key enumeration.
  6491. var keys = vm.$options._propKeys = [];
  6492. var isRoot = !vm.$parent;
  6493. // root instance props should be converted
  6494. if (!isRoot) {
  6495. toggleObserving(false);
  6496. }
  6497. var loop = function ( key ) {
  6498. keys.push(key);
  6499. var value = validateProp(key, propsOptions, propsData, vm);
  6500. /* istanbul ignore else */
  6501. if (true) {
  6502. var hyphenatedKey = hyphenate(key);
  6503. if (isReservedAttribute(hyphenatedKey) ||
  6504. config.isReservedAttr(hyphenatedKey)) {
  6505. warn(
  6506. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  6507. vm
  6508. );
  6509. }
  6510. defineReactive$$1(props, key, value, function () {
  6511. if (!isRoot && !isUpdatingChildComponent) {
  6512. {
  6513. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou'){//百度、快手 observer 在 setData callback 之后触发,直接忽略该 warn
  6514. return
  6515. }
  6516. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  6517. if(
  6518. key === 'value' &&
  6519. Array.isArray(vm.$options.behaviors) &&
  6520. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  6521. ){
  6522. return
  6523. }
  6524. if(vm._getFormData){
  6525. return
  6526. }
  6527. var $parent = vm.$parent;
  6528. while($parent){
  6529. if($parent.__next_tick_pending){
  6530. return
  6531. }
  6532. $parent = $parent.$parent;
  6533. }
  6534. }
  6535. warn(
  6536. "Avoid mutating a prop directly since the value will be " +
  6537. "overwritten whenever the parent component re-renders. " +
  6538. "Instead, use a data or computed property based on the prop's " +
  6539. "value. Prop being mutated: \"" + key + "\"",
  6540. vm
  6541. );
  6542. }
  6543. });
  6544. } else {}
  6545. // static props are already proxied on the component's prototype
  6546. // during Vue.extend(). We only need to proxy props defined at
  6547. // instantiation here.
  6548. if (!(key in vm)) {
  6549. proxy(vm, "_props", key);
  6550. }
  6551. };
  6552. for (var key in propsOptions) loop( key );
  6553. toggleObserving(true);
  6554. }
  6555. function initData (vm) {
  6556. var data = vm.$options.data;
  6557. data = vm._data = typeof data === 'function'
  6558. ? getData(data, vm)
  6559. : data || {};
  6560. if (!isPlainObject(data)) {
  6561. data = {};
  6562. true && warn(
  6563. 'data functions should return an object:\n' +
  6564. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  6565. vm
  6566. );
  6567. }
  6568. // proxy data on instance
  6569. var keys = Object.keys(data);
  6570. var props = vm.$options.props;
  6571. var methods = vm.$options.methods;
  6572. var i = keys.length;
  6573. while (i--) {
  6574. var key = keys[i];
  6575. if (true) {
  6576. if (methods && hasOwn(methods, key)) {
  6577. warn(
  6578. ("Method \"" + key + "\" has already been defined as a data property."),
  6579. vm
  6580. );
  6581. }
  6582. }
  6583. if (props && hasOwn(props, key)) {
  6584. true && warn(
  6585. "The data property \"" + key + "\" is already declared as a prop. " +
  6586. "Use prop default value instead.",
  6587. vm
  6588. );
  6589. } else if (!isReserved(key)) {
  6590. proxy(vm, "_data", key);
  6591. }
  6592. }
  6593. // observe data
  6594. observe(data, true /* asRootData */);
  6595. }
  6596. function getData (data, vm) {
  6597. // #7573 disable dep collection when invoking data getters
  6598. pushTarget();
  6599. try {
  6600. return data.call(vm, vm)
  6601. } catch (e) {
  6602. handleError(e, vm, "data()");
  6603. return {}
  6604. } finally {
  6605. popTarget();
  6606. }
  6607. }
  6608. var computedWatcherOptions = { lazy: true };
  6609. function initComputed (vm, computed) {
  6610. // $flow-disable-line
  6611. var watchers = vm._computedWatchers = Object.create(null);
  6612. // computed properties are just getters during SSR
  6613. var isSSR = isServerRendering();
  6614. for (var key in computed) {
  6615. var userDef = computed[key];
  6616. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  6617. if ( true && getter == null) {
  6618. warn(
  6619. ("Getter is missing for computed property \"" + key + "\"."),
  6620. vm
  6621. );
  6622. }
  6623. if (!isSSR) {
  6624. // create internal watcher for the computed property.
  6625. watchers[key] = new Watcher(
  6626. vm,
  6627. getter || noop,
  6628. noop,
  6629. computedWatcherOptions
  6630. );
  6631. }
  6632. // component-defined computed properties are already defined on the
  6633. // component prototype. We only need to define computed properties defined
  6634. // at instantiation here.
  6635. if (!(key in vm)) {
  6636. defineComputed(vm, key, userDef);
  6637. } else if (true) {
  6638. if (key in vm.$data) {
  6639. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  6640. } else if (vm.$options.props && key in vm.$options.props) {
  6641. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  6642. }
  6643. }
  6644. }
  6645. }
  6646. function defineComputed (
  6647. target,
  6648. key,
  6649. userDef
  6650. ) {
  6651. var shouldCache = !isServerRendering();
  6652. if (typeof userDef === 'function') {
  6653. sharedPropertyDefinition.get = shouldCache
  6654. ? createComputedGetter(key)
  6655. : createGetterInvoker(userDef);
  6656. sharedPropertyDefinition.set = noop;
  6657. } else {
  6658. sharedPropertyDefinition.get = userDef.get
  6659. ? shouldCache && userDef.cache !== false
  6660. ? createComputedGetter(key)
  6661. : createGetterInvoker(userDef.get)
  6662. : noop;
  6663. sharedPropertyDefinition.set = userDef.set || noop;
  6664. }
  6665. if ( true &&
  6666. sharedPropertyDefinition.set === noop) {
  6667. sharedPropertyDefinition.set = function () {
  6668. warn(
  6669. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  6670. this
  6671. );
  6672. };
  6673. }
  6674. Object.defineProperty(target, key, sharedPropertyDefinition);
  6675. }
  6676. function createComputedGetter (key) {
  6677. return function computedGetter () {
  6678. var watcher = this._computedWatchers && this._computedWatchers[key];
  6679. if (watcher) {
  6680. if (watcher.dirty) {
  6681. watcher.evaluate();
  6682. }
  6683. if (Dep.SharedObject.target) {// fixed by xxxxxx
  6684. watcher.depend();
  6685. }
  6686. return watcher.value
  6687. }
  6688. }
  6689. }
  6690. function createGetterInvoker(fn) {
  6691. return function computedGetter () {
  6692. return fn.call(this, this)
  6693. }
  6694. }
  6695. function initMethods (vm, methods) {
  6696. var props = vm.$options.props;
  6697. for (var key in methods) {
  6698. if (true) {
  6699. if (typeof methods[key] !== 'function') {
  6700. warn(
  6701. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  6702. "Did you reference the function correctly?",
  6703. vm
  6704. );
  6705. }
  6706. if (props && hasOwn(props, key)) {
  6707. warn(
  6708. ("Method \"" + key + "\" has already been defined as a prop."),
  6709. vm
  6710. );
  6711. }
  6712. if ((key in vm) && isReserved(key)) {
  6713. warn(
  6714. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  6715. "Avoid defining component methods that start with _ or $."
  6716. );
  6717. }
  6718. }
  6719. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  6720. }
  6721. }
  6722. function initWatch (vm, watch) {
  6723. for (var key in watch) {
  6724. var handler = watch[key];
  6725. if (Array.isArray(handler)) {
  6726. for (var i = 0; i < handler.length; i++) {
  6727. createWatcher(vm, key, handler[i]);
  6728. }
  6729. } else {
  6730. createWatcher(vm, key, handler);
  6731. }
  6732. }
  6733. }
  6734. function createWatcher (
  6735. vm,
  6736. expOrFn,
  6737. handler,
  6738. options
  6739. ) {
  6740. if (isPlainObject(handler)) {
  6741. options = handler;
  6742. handler = handler.handler;
  6743. }
  6744. if (typeof handler === 'string') {
  6745. handler = vm[handler];
  6746. }
  6747. return vm.$watch(expOrFn, handler, options)
  6748. }
  6749. function stateMixin (Vue) {
  6750. // flow somehow has problems with directly declared definition object
  6751. // when using Object.defineProperty, so we have to procedurally build up
  6752. // the object here.
  6753. var dataDef = {};
  6754. dataDef.get = function () { return this._data };
  6755. var propsDef = {};
  6756. propsDef.get = function () { return this._props };
  6757. if (true) {
  6758. dataDef.set = function () {
  6759. warn(
  6760. 'Avoid replacing instance root $data. ' +
  6761. 'Use nested data properties instead.',
  6762. this
  6763. );
  6764. };
  6765. propsDef.set = function () {
  6766. warn("$props is readonly.", this);
  6767. };
  6768. }
  6769. Object.defineProperty(Vue.prototype, '$data', dataDef);
  6770. Object.defineProperty(Vue.prototype, '$props', propsDef);
  6771. Vue.prototype.$set = set;
  6772. Vue.prototype.$delete = del;
  6773. Vue.prototype.$watch = function (
  6774. expOrFn,
  6775. cb,
  6776. options
  6777. ) {
  6778. var vm = this;
  6779. if (isPlainObject(cb)) {
  6780. return createWatcher(vm, expOrFn, cb, options)
  6781. }
  6782. options = options || {};
  6783. options.user = true;
  6784. var watcher = new Watcher(vm, expOrFn, cb, options);
  6785. if (options.immediate) {
  6786. try {
  6787. cb.call(vm, watcher.value);
  6788. } catch (error) {
  6789. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  6790. }
  6791. }
  6792. return function unwatchFn () {
  6793. watcher.teardown();
  6794. }
  6795. };
  6796. }
  6797. /* */
  6798. var uid$3 = 0;
  6799. function initMixin (Vue) {
  6800. Vue.prototype._init = function (options) {
  6801. var vm = this;
  6802. // a uid
  6803. vm._uid = uid$3++;
  6804. var startTag, endTag;
  6805. /* istanbul ignore if */
  6806. if ( true && config.performance && mark) {
  6807. startTag = "vue-perf-start:" + (vm._uid);
  6808. endTag = "vue-perf-end:" + (vm._uid);
  6809. mark(startTag);
  6810. }
  6811. // a flag to avoid this being observed
  6812. vm._isVue = true;
  6813. // merge options
  6814. if (options && options._isComponent) {
  6815. // optimize internal component instantiation
  6816. // since dynamic options merging is pretty slow, and none of the
  6817. // internal component options needs special treatment.
  6818. initInternalComponent(vm, options);
  6819. } else {
  6820. vm.$options = mergeOptions(
  6821. resolveConstructorOptions(vm.constructor),
  6822. options || {},
  6823. vm
  6824. );
  6825. }
  6826. /* istanbul ignore else */
  6827. if (true) {
  6828. initProxy(vm);
  6829. } else {}
  6830. // expose real self
  6831. vm._self = vm;
  6832. initLifecycle(vm);
  6833. initEvents(vm);
  6834. initRender(vm);
  6835. callHook(vm, 'beforeCreate');
  6836. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  6837. initState(vm);
  6838. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  6839. !vm._$fallback && callHook(vm, 'created');
  6840. /* istanbul ignore if */
  6841. if ( true && config.performance && mark) {
  6842. vm._name = formatComponentName(vm, false);
  6843. mark(endTag);
  6844. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  6845. }
  6846. if (vm.$options.el) {
  6847. vm.$mount(vm.$options.el);
  6848. }
  6849. };
  6850. }
  6851. function initInternalComponent (vm, options) {
  6852. var opts = vm.$options = Object.create(vm.constructor.options);
  6853. // doing this because it's faster than dynamic enumeration.
  6854. var parentVnode = options._parentVnode;
  6855. opts.parent = options.parent;
  6856. opts._parentVnode = parentVnode;
  6857. var vnodeComponentOptions = parentVnode.componentOptions;
  6858. opts.propsData = vnodeComponentOptions.propsData;
  6859. opts._parentListeners = vnodeComponentOptions.listeners;
  6860. opts._renderChildren = vnodeComponentOptions.children;
  6861. opts._componentTag = vnodeComponentOptions.tag;
  6862. if (options.render) {
  6863. opts.render = options.render;
  6864. opts.staticRenderFns = options.staticRenderFns;
  6865. }
  6866. }
  6867. function resolveConstructorOptions (Ctor) {
  6868. var options = Ctor.options;
  6869. if (Ctor.super) {
  6870. var superOptions = resolveConstructorOptions(Ctor.super);
  6871. var cachedSuperOptions = Ctor.superOptions;
  6872. if (superOptions !== cachedSuperOptions) {
  6873. // super option changed,
  6874. // need to resolve new options.
  6875. Ctor.superOptions = superOptions;
  6876. // check if there are any late-modified/attached options (#4976)
  6877. var modifiedOptions = resolveModifiedOptions(Ctor);
  6878. // update base extend options
  6879. if (modifiedOptions) {
  6880. extend(Ctor.extendOptions, modifiedOptions);
  6881. }
  6882. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  6883. if (options.name) {
  6884. options.components[options.name] = Ctor;
  6885. }
  6886. }
  6887. }
  6888. return options
  6889. }
  6890. function resolveModifiedOptions (Ctor) {
  6891. var modified;
  6892. var latest = Ctor.options;
  6893. var sealed = Ctor.sealedOptions;
  6894. for (var key in latest) {
  6895. if (latest[key] !== sealed[key]) {
  6896. if (!modified) { modified = {}; }
  6897. modified[key] = latest[key];
  6898. }
  6899. }
  6900. return modified
  6901. }
  6902. function Vue (options) {
  6903. if ( true &&
  6904. !(this instanceof Vue)
  6905. ) {
  6906. warn('Vue is a constructor and should be called with the `new` keyword');
  6907. }
  6908. this._init(options);
  6909. }
  6910. initMixin(Vue);
  6911. stateMixin(Vue);
  6912. eventsMixin(Vue);
  6913. lifecycleMixin(Vue);
  6914. renderMixin(Vue);
  6915. /* */
  6916. function initUse (Vue) {
  6917. Vue.use = function (plugin) {
  6918. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  6919. if (installedPlugins.indexOf(plugin) > -1) {
  6920. return this
  6921. }
  6922. // additional parameters
  6923. var args = toArray(arguments, 1);
  6924. args.unshift(this);
  6925. if (typeof plugin.install === 'function') {
  6926. plugin.install.apply(plugin, args);
  6927. } else if (typeof plugin === 'function') {
  6928. plugin.apply(null, args);
  6929. }
  6930. installedPlugins.push(plugin);
  6931. return this
  6932. };
  6933. }
  6934. /* */
  6935. function initMixin$1 (Vue) {
  6936. Vue.mixin = function (mixin) {
  6937. this.options = mergeOptions(this.options, mixin);
  6938. return this
  6939. };
  6940. }
  6941. /* */
  6942. function initExtend (Vue) {
  6943. /**
  6944. * Each instance constructor, including Vue, has a unique
  6945. * cid. This enables us to create wrapped "child
  6946. * constructors" for prototypal inheritance and cache them.
  6947. */
  6948. Vue.cid = 0;
  6949. var cid = 1;
  6950. /**
  6951. * Class inheritance
  6952. */
  6953. Vue.extend = function (extendOptions) {
  6954. extendOptions = extendOptions || {};
  6955. var Super = this;
  6956. var SuperId = Super.cid;
  6957. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  6958. if (cachedCtors[SuperId]) {
  6959. return cachedCtors[SuperId]
  6960. }
  6961. var name = extendOptions.name || Super.options.name;
  6962. if ( true && name) {
  6963. validateComponentName(name);
  6964. }
  6965. var Sub = function VueComponent (options) {
  6966. this._init(options);
  6967. };
  6968. Sub.prototype = Object.create(Super.prototype);
  6969. Sub.prototype.constructor = Sub;
  6970. Sub.cid = cid++;
  6971. Sub.options = mergeOptions(
  6972. Super.options,
  6973. extendOptions
  6974. );
  6975. Sub['super'] = Super;
  6976. // For props and computed properties, we define the proxy getters on
  6977. // the Vue instances at extension time, on the extended prototype. This
  6978. // avoids Object.defineProperty calls for each instance created.
  6979. if (Sub.options.props) {
  6980. initProps$1(Sub);
  6981. }
  6982. if (Sub.options.computed) {
  6983. initComputed$1(Sub);
  6984. }
  6985. // allow further extension/mixin/plugin usage
  6986. Sub.extend = Super.extend;
  6987. Sub.mixin = Super.mixin;
  6988. Sub.use = Super.use;
  6989. // create asset registers, so extended classes
  6990. // can have their private assets too.
  6991. ASSET_TYPES.forEach(function (type) {
  6992. Sub[type] = Super[type];
  6993. });
  6994. // enable recursive self-lookup
  6995. if (name) {
  6996. Sub.options.components[name] = Sub;
  6997. }
  6998. // keep a reference to the super options at extension time.
  6999. // later at instantiation we can check if Super's options have
  7000. // been updated.
  7001. Sub.superOptions = Super.options;
  7002. Sub.extendOptions = extendOptions;
  7003. Sub.sealedOptions = extend({}, Sub.options);
  7004. // cache constructor
  7005. cachedCtors[SuperId] = Sub;
  7006. return Sub
  7007. };
  7008. }
  7009. function initProps$1 (Comp) {
  7010. var props = Comp.options.props;
  7011. for (var key in props) {
  7012. proxy(Comp.prototype, "_props", key);
  7013. }
  7014. }
  7015. function initComputed$1 (Comp) {
  7016. var computed = Comp.options.computed;
  7017. for (var key in computed) {
  7018. defineComputed(Comp.prototype, key, computed[key]);
  7019. }
  7020. }
  7021. /* */
  7022. function initAssetRegisters (Vue) {
  7023. /**
  7024. * Create asset registration methods.
  7025. */
  7026. ASSET_TYPES.forEach(function (type) {
  7027. Vue[type] = function (
  7028. id,
  7029. definition
  7030. ) {
  7031. if (!definition) {
  7032. return this.options[type + 's'][id]
  7033. } else {
  7034. /* istanbul ignore if */
  7035. if ( true && type === 'component') {
  7036. validateComponentName(id);
  7037. }
  7038. if (type === 'component' && isPlainObject(definition)) {
  7039. definition.name = definition.name || id;
  7040. definition = this.options._base.extend(definition);
  7041. }
  7042. if (type === 'directive' && typeof definition === 'function') {
  7043. definition = { bind: definition, update: definition };
  7044. }
  7045. this.options[type + 's'][id] = definition;
  7046. return definition
  7047. }
  7048. };
  7049. });
  7050. }
  7051. /* */
  7052. function getComponentName (opts) {
  7053. return opts && (opts.Ctor.options.name || opts.tag)
  7054. }
  7055. function matches (pattern, name) {
  7056. if (Array.isArray(pattern)) {
  7057. return pattern.indexOf(name) > -1
  7058. } else if (typeof pattern === 'string') {
  7059. return pattern.split(',').indexOf(name) > -1
  7060. } else if (isRegExp(pattern)) {
  7061. return pattern.test(name)
  7062. }
  7063. /* istanbul ignore next */
  7064. return false
  7065. }
  7066. function pruneCache (keepAliveInstance, filter) {
  7067. var cache = keepAliveInstance.cache;
  7068. var keys = keepAliveInstance.keys;
  7069. var _vnode = keepAliveInstance._vnode;
  7070. for (var key in cache) {
  7071. var cachedNode = cache[key];
  7072. if (cachedNode) {
  7073. var name = getComponentName(cachedNode.componentOptions);
  7074. if (name && !filter(name)) {
  7075. pruneCacheEntry(cache, key, keys, _vnode);
  7076. }
  7077. }
  7078. }
  7079. }
  7080. function pruneCacheEntry (
  7081. cache,
  7082. key,
  7083. keys,
  7084. current
  7085. ) {
  7086. var cached$$1 = cache[key];
  7087. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  7088. cached$$1.componentInstance.$destroy();
  7089. }
  7090. cache[key] = null;
  7091. remove(keys, key);
  7092. }
  7093. var patternTypes = [String, RegExp, Array];
  7094. var KeepAlive = {
  7095. name: 'keep-alive',
  7096. abstract: true,
  7097. props: {
  7098. include: patternTypes,
  7099. exclude: patternTypes,
  7100. max: [String, Number]
  7101. },
  7102. created: function created () {
  7103. this.cache = Object.create(null);
  7104. this.keys = [];
  7105. },
  7106. destroyed: function destroyed () {
  7107. for (var key in this.cache) {
  7108. pruneCacheEntry(this.cache, key, this.keys);
  7109. }
  7110. },
  7111. mounted: function mounted () {
  7112. var this$1 = this;
  7113. this.$watch('include', function (val) {
  7114. pruneCache(this$1, function (name) { return matches(val, name); });
  7115. });
  7116. this.$watch('exclude', function (val) {
  7117. pruneCache(this$1, function (name) { return !matches(val, name); });
  7118. });
  7119. },
  7120. render: function render () {
  7121. var slot = this.$slots.default;
  7122. var vnode = getFirstComponentChild(slot);
  7123. var componentOptions = vnode && vnode.componentOptions;
  7124. if (componentOptions) {
  7125. // check pattern
  7126. var name = getComponentName(componentOptions);
  7127. var ref = this;
  7128. var include = ref.include;
  7129. var exclude = ref.exclude;
  7130. if (
  7131. // not included
  7132. (include && (!name || !matches(include, name))) ||
  7133. // excluded
  7134. (exclude && name && matches(exclude, name))
  7135. ) {
  7136. return vnode
  7137. }
  7138. var ref$1 = this;
  7139. var cache = ref$1.cache;
  7140. var keys = ref$1.keys;
  7141. var key = vnode.key == null
  7142. // same constructor may get registered as different local components
  7143. // so cid alone is not enough (#3269)
  7144. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  7145. : vnode.key;
  7146. if (cache[key]) {
  7147. vnode.componentInstance = cache[key].componentInstance;
  7148. // make current key freshest
  7149. remove(keys, key);
  7150. keys.push(key);
  7151. } else {
  7152. cache[key] = vnode;
  7153. keys.push(key);
  7154. // prune oldest entry
  7155. if (this.max && keys.length > parseInt(this.max)) {
  7156. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  7157. }
  7158. }
  7159. vnode.data.keepAlive = true;
  7160. }
  7161. return vnode || (slot && slot[0])
  7162. }
  7163. };
  7164. var builtInComponents = {
  7165. KeepAlive: KeepAlive
  7166. };
  7167. /* */
  7168. function initGlobalAPI (Vue) {
  7169. // config
  7170. var configDef = {};
  7171. configDef.get = function () { return config; };
  7172. if (true) {
  7173. configDef.set = function () {
  7174. warn(
  7175. 'Do not replace the Vue.config object, set individual fields instead.'
  7176. );
  7177. };
  7178. }
  7179. Object.defineProperty(Vue, 'config', configDef);
  7180. // exposed util methods.
  7181. // NOTE: these are not considered part of the public API - avoid relying on
  7182. // them unless you are aware of the risk.
  7183. Vue.util = {
  7184. warn: warn,
  7185. extend: extend,
  7186. mergeOptions: mergeOptions,
  7187. defineReactive: defineReactive$$1
  7188. };
  7189. Vue.set = set;
  7190. Vue.delete = del;
  7191. Vue.nextTick = nextTick;
  7192. // 2.6 explicit observable API
  7193. Vue.observable = function (obj) {
  7194. observe(obj);
  7195. return obj
  7196. };
  7197. Vue.options = Object.create(null);
  7198. ASSET_TYPES.forEach(function (type) {
  7199. Vue.options[type + 's'] = Object.create(null);
  7200. });
  7201. // this is used to identify the "base" constructor to extend all plain-object
  7202. // components with in Weex's multi-instance scenarios.
  7203. Vue.options._base = Vue;
  7204. extend(Vue.options.components, builtInComponents);
  7205. initUse(Vue);
  7206. initMixin$1(Vue);
  7207. initExtend(Vue);
  7208. initAssetRegisters(Vue);
  7209. }
  7210. initGlobalAPI(Vue);
  7211. Object.defineProperty(Vue.prototype, '$isServer', {
  7212. get: isServerRendering
  7213. });
  7214. Object.defineProperty(Vue.prototype, '$ssrContext', {
  7215. get: function get () {
  7216. /* istanbul ignore next */
  7217. return this.$vnode && this.$vnode.ssrContext
  7218. }
  7219. });
  7220. // expose FunctionalRenderContext for ssr runtime helper installation
  7221. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  7222. value: FunctionalRenderContext
  7223. });
  7224. Vue.version = '2.6.11';
  7225. /**
  7226. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  7227. */
  7228. var ARRAYTYPE = '[object Array]';
  7229. var OBJECTTYPE = '[object Object]';
  7230. // const FUNCTIONTYPE = '[object Function]'
  7231. function diff(current, pre) {
  7232. var result = {};
  7233. syncKeys(current, pre);
  7234. _diff(current, pre, '', result);
  7235. return result
  7236. }
  7237. function syncKeys(current, pre) {
  7238. if (current === pre) { return }
  7239. var rootCurrentType = type(current);
  7240. var rootPreType = type(pre);
  7241. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  7242. if(Object.keys(current).length >= Object.keys(pre).length){
  7243. for (var key in pre) {
  7244. var currentValue = current[key];
  7245. if (currentValue === undefined) {
  7246. current[key] = null;
  7247. } else {
  7248. syncKeys(currentValue, pre[key]);
  7249. }
  7250. }
  7251. }
  7252. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  7253. if (current.length >= pre.length) {
  7254. pre.forEach(function (item, index) {
  7255. syncKeys(current[index], item);
  7256. });
  7257. }
  7258. }
  7259. }
  7260. function _diff(current, pre, path, result) {
  7261. if (current === pre) { return }
  7262. var rootCurrentType = type(current);
  7263. var rootPreType = type(pre);
  7264. if (rootCurrentType == OBJECTTYPE) {
  7265. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  7266. setResult(result, path, current);
  7267. } else {
  7268. var loop = function ( key ) {
  7269. var currentValue = current[key];
  7270. var preValue = pre[key];
  7271. var currentType = type(currentValue);
  7272. var preType = type(preValue);
  7273. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  7274. // NOTE 此处将 != 修改为 !==。涉及地方太多恐怕测试不到,如果出现数据对比问题,将其修改回来。
  7275. if (currentValue !== pre[key]) {
  7276. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7277. }
  7278. } else if (currentType == ARRAYTYPE) {
  7279. if (preType != ARRAYTYPE) {
  7280. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7281. } else {
  7282. if (currentValue.length < preValue.length) {
  7283. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7284. } else {
  7285. currentValue.forEach(function (item, index) {
  7286. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  7287. });
  7288. }
  7289. }
  7290. } else if (currentType == OBJECTTYPE) {
  7291. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  7292. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  7293. } else {
  7294. for (var subKey in currentValue) {
  7295. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  7296. }
  7297. }
  7298. }
  7299. };
  7300. for (var key in current) loop( key );
  7301. }
  7302. } else if (rootCurrentType == ARRAYTYPE) {
  7303. if (rootPreType != ARRAYTYPE) {
  7304. setResult(result, path, current);
  7305. } else {
  7306. if (current.length < pre.length) {
  7307. setResult(result, path, current);
  7308. } else {
  7309. current.forEach(function (item, index) {
  7310. _diff(item, pre[index], path + '[' + index + ']', result);
  7311. });
  7312. }
  7313. }
  7314. } else {
  7315. setResult(result, path, current);
  7316. }
  7317. }
  7318. function setResult(result, k, v) {
  7319. // if (type(v) != FUNCTIONTYPE) {
  7320. result[k] = v;
  7321. // }
  7322. }
  7323. function type(obj) {
  7324. return Object.prototype.toString.call(obj)
  7325. }
  7326. /* */
  7327. function flushCallbacks$1(vm) {
  7328. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  7329. if (Object({"VUE_APP_NAME":"66applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  7330. var mpInstance = vm.$scope;
  7331. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  7332. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  7333. }
  7334. var copies = vm.__next_tick_callbacks.slice(0);
  7335. vm.__next_tick_callbacks.length = 0;
  7336. for (var i = 0; i < copies.length; i++) {
  7337. copies[i]();
  7338. }
  7339. }
  7340. }
  7341. function hasRenderWatcher(vm) {
  7342. return queue.find(function (watcher) { return vm._watcher === watcher; })
  7343. }
  7344. function nextTick$1(vm, cb) {
  7345. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  7346. //2.nextTick 之前存在 render watcher
  7347. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  7348. if(Object({"VUE_APP_NAME":"66applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  7349. var mpInstance = vm.$scope;
  7350. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  7351. ']:nextVueTick');
  7352. }
  7353. return nextTick(cb, vm)
  7354. }else{
  7355. if(Object({"VUE_APP_NAME":"66applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  7356. var mpInstance$1 = vm.$scope;
  7357. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  7358. ']:nextMPTick');
  7359. }
  7360. }
  7361. var _resolve;
  7362. if (!vm.__next_tick_callbacks) {
  7363. vm.__next_tick_callbacks = [];
  7364. }
  7365. vm.__next_tick_callbacks.push(function () {
  7366. if (cb) {
  7367. try {
  7368. cb.call(vm);
  7369. } catch (e) {
  7370. handleError(e, vm, 'nextTick');
  7371. }
  7372. } else if (_resolve) {
  7373. _resolve(vm);
  7374. }
  7375. });
  7376. // $flow-disable-line
  7377. if (!cb && typeof Promise !== 'undefined') {
  7378. return new Promise(function (resolve) {
  7379. _resolve = resolve;
  7380. })
  7381. }
  7382. }
  7383. /* */
  7384. function cloneWithData(vm) {
  7385. // 确保当前 vm 所有数据被同步
  7386. var ret = Object.create(null);
  7387. var dataKeys = [].concat(
  7388. Object.keys(vm._data || {}),
  7389. Object.keys(vm._computedWatchers || {}));
  7390. dataKeys.reduce(function(ret, key) {
  7391. ret[key] = vm[key];
  7392. return ret
  7393. }, ret);
  7394. // vue-composition-api
  7395. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  7396. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  7397. if (rawBindings) {
  7398. Object.keys(rawBindings).forEach(function (key) {
  7399. ret[key] = vm[key];
  7400. });
  7401. }
  7402. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  7403. Object.assign(ret, vm.$mp.data || {});
  7404. if (
  7405. Array.isArray(vm.$options.behaviors) &&
  7406. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7407. ) { //form-field
  7408. ret['name'] = vm.name;
  7409. ret['value'] = vm.value;
  7410. }
  7411. return JSON.parse(JSON.stringify(ret))
  7412. }
  7413. var patch = function(oldVnode, vnode) {
  7414. var this$1 = this;
  7415. if (vnode === null) { //destroy
  7416. return
  7417. }
  7418. if (this.mpType === 'page' || this.mpType === 'component') {
  7419. var mpInstance = this.$scope;
  7420. var data = Object.create(null);
  7421. try {
  7422. data = cloneWithData(this);
  7423. } catch (err) {
  7424. console.error(err);
  7425. }
  7426. data.__webviewId__ = mpInstance.data.__webviewId__;
  7427. var mpData = Object.create(null);
  7428. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  7429. mpData[key] = mpInstance.data[key];
  7430. });
  7431. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  7432. if (Object.keys(diffData).length) {
  7433. if (Object({"VUE_APP_NAME":"66applet","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  7434. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  7435. ']差量更新',
  7436. JSON.stringify(diffData));
  7437. }
  7438. this.__next_tick_pending = true;
  7439. mpInstance.setData(diffData, function () {
  7440. this$1.__next_tick_pending = false;
  7441. flushCallbacks$1(this$1);
  7442. });
  7443. } else {
  7444. flushCallbacks$1(this);
  7445. }
  7446. }
  7447. };
  7448. /* */
  7449. function createEmptyRender() {
  7450. }
  7451. function mountComponent$1(
  7452. vm,
  7453. el,
  7454. hydrating
  7455. ) {
  7456. if (!vm.mpType) {//main.js 中的 new Vue
  7457. return vm
  7458. }
  7459. if (vm.mpType === 'app') {
  7460. vm.$options.render = createEmptyRender;
  7461. }
  7462. if (!vm.$options.render) {
  7463. vm.$options.render = createEmptyRender;
  7464. if (true) {
  7465. /* istanbul ignore if */
  7466. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  7467. vm.$options.el || el) {
  7468. warn(
  7469. 'You are using the runtime-only build of Vue where the template ' +
  7470. 'compiler is not available. Either pre-compile the templates into ' +
  7471. 'render functions, or use the compiler-included build.',
  7472. vm
  7473. );
  7474. } else {
  7475. warn(
  7476. 'Failed to mount component: template or render function not defined.',
  7477. vm
  7478. );
  7479. }
  7480. }
  7481. }
  7482. !vm._$fallback && callHook(vm, 'beforeMount');
  7483. var updateComponent = function () {
  7484. vm._update(vm._render(), hydrating);
  7485. };
  7486. // we set this to vm._watcher inside the watcher's constructor
  7487. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  7488. // component's mounted hook), which relies on vm._watcher being already defined
  7489. new Watcher(vm, updateComponent, noop, {
  7490. before: function before() {
  7491. if (vm._isMounted && !vm._isDestroyed) {
  7492. callHook(vm, 'beforeUpdate');
  7493. }
  7494. }
  7495. }, true /* isRenderWatcher */);
  7496. hydrating = false;
  7497. return vm
  7498. }
  7499. /* */
  7500. function renderClass (
  7501. staticClass,
  7502. dynamicClass
  7503. ) {
  7504. if (isDef(staticClass) || isDef(dynamicClass)) {
  7505. return concat(staticClass, stringifyClass(dynamicClass))
  7506. }
  7507. /* istanbul ignore next */
  7508. return ''
  7509. }
  7510. function concat (a, b) {
  7511. return a ? b ? (a + ' ' + b) : a : (b || '')
  7512. }
  7513. function stringifyClass (value) {
  7514. if (Array.isArray(value)) {
  7515. return stringifyArray(value)
  7516. }
  7517. if (isObject(value)) {
  7518. return stringifyObject(value)
  7519. }
  7520. if (typeof value === 'string') {
  7521. return value
  7522. }
  7523. /* istanbul ignore next */
  7524. return ''
  7525. }
  7526. function stringifyArray (value) {
  7527. var res = '';
  7528. var stringified;
  7529. for (var i = 0, l = value.length; i < l; i++) {
  7530. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  7531. if (res) { res += ' '; }
  7532. res += stringified;
  7533. }
  7534. }
  7535. return res
  7536. }
  7537. function stringifyObject (value) {
  7538. var res = '';
  7539. for (var key in value) {
  7540. if (value[key]) {
  7541. if (res) { res += ' '; }
  7542. res += key;
  7543. }
  7544. }
  7545. return res
  7546. }
  7547. /* */
  7548. var parseStyleText = cached(function (cssText) {
  7549. var res = {};
  7550. var listDelimiter = /;(?![^(]*\))/g;
  7551. var propertyDelimiter = /:(.+)/;
  7552. cssText.split(listDelimiter).forEach(function (item) {
  7553. if (item) {
  7554. var tmp = item.split(propertyDelimiter);
  7555. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  7556. }
  7557. });
  7558. return res
  7559. });
  7560. // normalize possible array / string values into Object
  7561. function normalizeStyleBinding (bindingStyle) {
  7562. if (Array.isArray(bindingStyle)) {
  7563. return toObject(bindingStyle)
  7564. }
  7565. if (typeof bindingStyle === 'string') {
  7566. return parseStyleText(bindingStyle)
  7567. }
  7568. return bindingStyle
  7569. }
  7570. /* */
  7571. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  7572. function getTarget(obj, path) {
  7573. var parts = path.split('.');
  7574. var key = parts[0];
  7575. if (key.indexOf('__$n') === 0) { //number index
  7576. key = parseInt(key.replace('__$n', ''));
  7577. }
  7578. if (parts.length === 1) {
  7579. return obj[key]
  7580. }
  7581. return getTarget(obj[key], parts.slice(1).join('.'))
  7582. }
  7583. function internalMixin(Vue) {
  7584. Vue.config.errorHandler = function(err, vm, info) {
  7585. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  7586. console.error(err);
  7587. /* eslint-disable no-undef */
  7588. var app = typeof getApp === 'function' && getApp();
  7589. if (app && app.onError) {
  7590. app.onError(err);
  7591. }
  7592. };
  7593. var oldEmit = Vue.prototype.$emit;
  7594. Vue.prototype.$emit = function(event) {
  7595. if (this.$scope && event) {
  7596. (this.$scope['_triggerEvent'] || this.$scope['triggerEvent'])
  7597. .call(this.$scope, event, {
  7598. __args__: toArray(arguments, 1)
  7599. })
  7600. }
  7601. return oldEmit.apply(this, arguments)
  7602. };
  7603. Vue.prototype.$nextTick = function(fn) {
  7604. return nextTick$1(this, fn)
  7605. };
  7606. MP_METHODS.forEach(function (method) {
  7607. Vue.prototype[method] = function(args) {
  7608. if (this.$scope && this.$scope[method]) {
  7609. return this.$scope[method](args)
  7610. }
  7611. // mp-alipay
  7612. if (typeof my === 'undefined') {
  7613. return
  7614. }
  7615. if (method === 'createSelectorQuery') {
  7616. /* eslint-disable no-undef */
  7617. return my.createSelectorQuery(args)
  7618. } else if (method === 'createIntersectionObserver') {
  7619. /* eslint-disable no-undef */
  7620. return my.createIntersectionObserver(args)
  7621. }
  7622. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  7623. };
  7624. });
  7625. Vue.prototype.__init_provide = initProvide;
  7626. Vue.prototype.__init_injections = initInjections;
  7627. Vue.prototype.__call_hook = function(hook, args) {
  7628. var vm = this;
  7629. // #7573 disable dep collection when invoking lifecycle hooks
  7630. pushTarget();
  7631. var handlers = vm.$options[hook];
  7632. var info = hook + " hook";
  7633. var ret;
  7634. if (handlers) {
  7635. for (var i = 0, j = handlers.length; i < j; i++) {
  7636. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  7637. }
  7638. }
  7639. if (vm._hasHookEvent) {
  7640. vm.$emit('hook:' + hook, args);
  7641. }
  7642. popTarget();
  7643. return ret
  7644. };
  7645. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  7646. if (Array.isArray(modifiers)) {
  7647. if (modifiers.indexOf('trim') !== -1) {
  7648. value = value.trim();
  7649. }
  7650. if (modifiers.indexOf('number') !== -1) {
  7651. value = this._n(value);
  7652. }
  7653. }
  7654. if (!target) {
  7655. target = this;
  7656. }
  7657. // 解决动态属性添加
  7658. Vue.set(target, key, value)
  7659. };
  7660. Vue.prototype.__set_sync = function(target, key, value) {
  7661. if (!target) {
  7662. target = this;
  7663. }
  7664. // 解决动态属性添加
  7665. Vue.set(target, key, value)
  7666. };
  7667. Vue.prototype.__get_orig = function(item) {
  7668. if (isPlainObject(item)) {
  7669. return item['$orig'] || item
  7670. }
  7671. return item
  7672. };
  7673. Vue.prototype.__get_value = function(dataPath, target) {
  7674. return getTarget(target || this, dataPath)
  7675. };
  7676. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  7677. return renderClass(staticClass, dynamicClass)
  7678. };
  7679. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  7680. if (!dynamicStyle && !staticStyle) {
  7681. return ''
  7682. }
  7683. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  7684. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  7685. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  7686. };
  7687. Vue.prototype.__map = function(val, iteratee) {
  7688. //TODO 暂不考虑 string
  7689. var ret, i, l, keys, key;
  7690. if (Array.isArray(val)) {
  7691. ret = new Array(val.length);
  7692. for (i = 0, l = val.length; i < l; i++) {
  7693. ret[i] = iteratee(val[i], i);
  7694. }
  7695. return ret
  7696. } else if (isObject(val)) {
  7697. keys = Object.keys(val);
  7698. ret = Object.create(null);
  7699. for (i = 0, l = keys.length; i < l; i++) {
  7700. key = keys[i];
  7701. ret[key] = iteratee(val[key], key, i);
  7702. }
  7703. return ret
  7704. } else if (typeof val === 'number') {
  7705. ret = new Array(val);
  7706. for (i = 0, l = val; i < l; i++) {
  7707. // 第一个参数暂时仍和小程序一致
  7708. ret[i] = iteratee(i, i);
  7709. }
  7710. return ret
  7711. }
  7712. return []
  7713. };
  7714. }
  7715. /* */
  7716. var LIFECYCLE_HOOKS$1 = [
  7717. //App
  7718. 'onLaunch',
  7719. 'onShow',
  7720. 'onHide',
  7721. 'onUniNViewMessage',
  7722. 'onPageNotFound',
  7723. 'onThemeChange',
  7724. 'onError',
  7725. 'onUnhandledRejection',
  7726. //Page
  7727. 'onInit',
  7728. 'onLoad',
  7729. // 'onShow',
  7730. 'onReady',
  7731. // 'onHide',
  7732. 'onUnload',
  7733. 'onPullDownRefresh',
  7734. 'onReachBottom',
  7735. 'onTabItemTap',
  7736. 'onAddToFavorites',
  7737. 'onShareTimeline',
  7738. 'onShareAppMessage',
  7739. 'onResize',
  7740. 'onPageScroll',
  7741. 'onNavigationBarButtonTap',
  7742. 'onBackPress',
  7743. 'onNavigationBarSearchInputChanged',
  7744. 'onNavigationBarSearchInputConfirmed',
  7745. 'onNavigationBarSearchInputClicked',
  7746. //Component
  7747. // 'onReady', // 兼容旧版本,应该移除该事件
  7748. 'onPageShow',
  7749. 'onPageHide',
  7750. 'onPageResize'
  7751. ];
  7752. function lifecycleMixin$1(Vue) {
  7753. //fixed vue-class-component
  7754. var oldExtend = Vue.extend;
  7755. Vue.extend = function(extendOptions) {
  7756. extendOptions = extendOptions || {};
  7757. var methods = extendOptions.methods;
  7758. if (methods) {
  7759. Object.keys(methods).forEach(function (methodName) {
  7760. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  7761. extendOptions[methodName] = methods[methodName];
  7762. delete methods[methodName];
  7763. }
  7764. });
  7765. }
  7766. return oldExtend.call(this, extendOptions)
  7767. };
  7768. var strategies = Vue.config.optionMergeStrategies;
  7769. var mergeHook = strategies.created;
  7770. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  7771. strategies[hook] = mergeHook;
  7772. });
  7773. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  7774. }
  7775. /* */
  7776. // install platform patch function
  7777. Vue.prototype.__patch__ = patch;
  7778. // public mount method
  7779. Vue.prototype.$mount = function(
  7780. el ,
  7781. hydrating
  7782. ) {
  7783. return mountComponent$1(this, el, hydrating)
  7784. };
  7785. lifecycleMixin$1(Vue);
  7786. internalMixin(Vue);
  7787. /* */
  7788. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  7789. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  7790. /***/ }),
  7791. /***/ 4:
  7792. /*!*************************************************************!*\
  7793. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  7794. \*************************************************************/
  7795. /*! no static exports found */
  7796. /***/ (function(module, exports, __webpack_require__) {
  7797. "use strict";
  7798. /* WEBPACK VAR INJECTION */(function(uni, global) {Object.defineProperty(exports, "__esModule", { value: true });exports.compileI18nJsonStr = compileI18nJsonStr;exports.hasI18nJson = hasI18nJson;exports.initVueI18n = initVueI18n;exports.isI18nStr = isI18nStr;exports.normalizeLocale = normalizeLocale;exports.parseI18nJson = parseI18nJson;exports.resolveLocale = resolveLocale;exports.isString = exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var isArray = Array.isArray;
  7799. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  7800. var defaultDelimiters = ['{', '}'];var
  7801. BaseFormatter = /*#__PURE__*/function () {
  7802. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  7803. this._caches = Object.create(null);
  7804. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  7805. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  7806. if (!values) {
  7807. return [message];
  7808. }
  7809. var tokens = this._caches[message];
  7810. if (!tokens) {
  7811. tokens = parse(message, delimiters);
  7812. this._caches[message] = tokens;
  7813. }
  7814. return compile(tokens, values);
  7815. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  7816. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  7817. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  7818. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  7819. var tokens = [];
  7820. var position = 0;
  7821. var text = '';
  7822. while (position < format.length) {
  7823. var char = format[position++];
  7824. if (char === startDelimiter) {
  7825. if (text) {
  7826. tokens.push({ type: 'text', value: text });
  7827. }
  7828. text = '';
  7829. var sub = '';
  7830. char = format[position++];
  7831. while (char !== undefined && char !== endDelimiter) {
  7832. sub += char;
  7833. char = format[position++];
  7834. }
  7835. var isClosed = char === endDelimiter;
  7836. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  7837. 'list' :
  7838. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  7839. 'named' :
  7840. 'unknown';
  7841. tokens.push({ value: sub, type: type });
  7842. }
  7843. // else if (char === '%') {
  7844. // // when found rails i18n syntax, skip text capture
  7845. // if (format[position] !== '{') {
  7846. // text += char
  7847. // }
  7848. // }
  7849. else {
  7850. text += char;
  7851. }
  7852. }
  7853. text && tokens.push({ type: 'text', value: text });
  7854. return tokens;
  7855. }
  7856. function compile(tokens, values) {
  7857. var compiled = [];
  7858. var index = 0;
  7859. var mode = isArray(values) ?
  7860. 'list' :
  7861. isObject(values) ?
  7862. 'named' :
  7863. 'unknown';
  7864. if (mode === 'unknown') {
  7865. return compiled;
  7866. }
  7867. while (index < tokens.length) {
  7868. var token = tokens[index];
  7869. switch (token.type) {
  7870. case 'text':
  7871. compiled.push(token.value);
  7872. break;
  7873. case 'list':
  7874. compiled.push(values[parseInt(token.value, 10)]);
  7875. break;
  7876. case 'named':
  7877. if (mode === 'named') {
  7878. compiled.push(values[token.value]);
  7879. } else
  7880. {
  7881. if (true) {
  7882. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  7883. }
  7884. }
  7885. break;
  7886. case 'unknown':
  7887. if (true) {
  7888. console.warn("Detect 'unknown' type of token!");
  7889. }
  7890. break;}
  7891. index++;
  7892. }
  7893. return compiled;
  7894. }
  7895. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  7896. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  7897. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  7898. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  7899. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  7900. var hasOwnProperty = Object.prototype.hasOwnProperty;
  7901. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  7902. var defaultFormatter = new BaseFormatter();
  7903. function include(str, parts) {
  7904. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  7905. }
  7906. function startsWith(str, parts) {
  7907. return parts.find(function (part) {return str.indexOf(part) === 0;});
  7908. }
  7909. function normalizeLocale(locale, messages) {
  7910. if (!locale) {
  7911. return;
  7912. }
  7913. locale = locale.trim().replace(/_/g, '-');
  7914. if (messages && messages[locale]) {
  7915. return locale;
  7916. }
  7917. locale = locale.toLowerCase();
  7918. if (locale.indexOf('zh') === 0) {
  7919. if (locale.indexOf('-hans') > -1) {
  7920. return LOCALE_ZH_HANS;
  7921. }
  7922. if (locale.indexOf('-hant') > -1) {
  7923. return LOCALE_ZH_HANT;
  7924. }
  7925. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  7926. return LOCALE_ZH_HANT;
  7927. }
  7928. return LOCALE_ZH_HANS;
  7929. }
  7930. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  7931. if (lang) {
  7932. return lang;
  7933. }
  7934. }var
  7935. I18n = /*#__PURE__*/function () {
  7936. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  7937. this.locale = LOCALE_EN;
  7938. this.fallbackLocale = LOCALE_EN;
  7939. this.message = {};
  7940. this.messages = {};
  7941. this.watchers = [];
  7942. if (fallbackLocale) {
  7943. this.fallbackLocale = fallbackLocale;
  7944. }
  7945. this.formater = formater || defaultFormatter;
  7946. this.messages = messages || {};
  7947. this.setLocale(locale || LOCALE_EN);
  7948. if (watcher) {
  7949. this.watchLocale(watcher);
  7950. }
  7951. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  7952. locale) {var _this = this;
  7953. var oldLocale = this.locale;
  7954. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  7955. if (!this.messages[this.locale]) {
  7956. // 可能初始化时不存在
  7957. this.messages[this.locale] = {};
  7958. }
  7959. this.message = this.messages[this.locale];
  7960. // 仅发生变化时,通知
  7961. if (oldLocale !== this.locale) {
  7962. this.watchers.forEach(function (watcher) {
  7963. watcher(_this.locale, oldLocale);
  7964. });
  7965. }
  7966. } }, { key: "getLocale", value: function getLocale()
  7967. {
  7968. return this.locale;
  7969. } }, { key: "watchLocale", value: function watchLocale(
  7970. fn) {var _this2 = this;
  7971. var index = this.watchers.push(fn) - 1;
  7972. return function () {
  7973. _this2.watchers.splice(index, 1);
  7974. };
  7975. } }, { key: "add", value: function add(
  7976. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  7977. var curMessages = this.messages[locale];
  7978. if (curMessages) {
  7979. if (override) {
  7980. Object.assign(curMessages, message);
  7981. } else
  7982. {
  7983. Object.keys(message).forEach(function (key) {
  7984. if (!hasOwn(curMessages, key)) {
  7985. curMessages[key] = message[key];
  7986. }
  7987. });
  7988. }
  7989. } else
  7990. {
  7991. this.messages[locale] = message;
  7992. }
  7993. } }, { key: "f", value: function f(
  7994. message, values, delimiters) {
  7995. return this.formater.interpolate(message, values, delimiters).join('');
  7996. } }, { key: "t", value: function t(
  7997. key, locale, values) {
  7998. var message = this.message;
  7999. if (typeof locale === 'string') {
  8000. locale = normalizeLocale(locale, this.messages);
  8001. locale && (message = this.messages[locale]);
  8002. } else
  8003. {
  8004. values = locale;
  8005. }
  8006. if (!hasOwn(message, key)) {
  8007. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  8008. return key;
  8009. }
  8010. return this.formater.interpolate(message[key], values).join('');
  8011. } }]);return I18n;}();exports.I18n = I18n;
  8012. function watchAppLocale(appVm, i18n) {
  8013. // 需要保证 watch 的触发在组件渲染之前
  8014. if (appVm.$watchLocale) {
  8015. // vue2
  8016. appVm.$watchLocale(function (newLocale) {
  8017. i18n.setLocale(newLocale);
  8018. });
  8019. } else
  8020. {
  8021. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  8022. i18n.setLocale(newLocale);
  8023. });
  8024. }
  8025. }
  8026. function getDefaultLocale() {
  8027. if (typeof uni !== 'undefined' && uni.getLocale) {
  8028. return uni.getLocale();
  8029. }
  8030. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  8031. if (typeof global !== 'undefined' && global.getLocale) {
  8032. return global.getLocale();
  8033. }
  8034. return LOCALE_EN;
  8035. }
  8036. function initVueI18n(locale) {var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;var watcher = arguments.length > 3 ? arguments[3] : undefined;
  8037. // 兼容旧版本入参
  8038. if (typeof locale !== 'string') {var _ref4 =
  8039. [
  8040. messages,
  8041. locale];locale = _ref4[0];messages = _ref4[1];
  8042. }
  8043. if (typeof locale !== 'string') {
  8044. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  8045. locale = getDefaultLocale();
  8046. }
  8047. if (typeof fallbackLocale !== 'string') {
  8048. fallbackLocale =
  8049. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  8050. LOCALE_EN;
  8051. }
  8052. var i18n = new I18n({
  8053. locale: locale,
  8054. fallbackLocale: fallbackLocale,
  8055. messages: messages,
  8056. watcher: watcher });
  8057. var _t = function t(key, values) {
  8058. if (typeof getApp !== 'function') {
  8059. // app view
  8060. /* eslint-disable no-func-assign */
  8061. _t = function t(key, values) {
  8062. return i18n.t(key, values);
  8063. };
  8064. } else
  8065. {
  8066. var isWatchedAppLocale = false;
  8067. _t = function t(key, values) {
  8068. var appVm = getApp().$vm;
  8069. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  8070. // options: {
  8071. // type: Array,
  8072. // default () {
  8073. // return [{
  8074. // icon: 'shop',
  8075. // text: t("uni-goods-nav.options.shop"),
  8076. // }, {
  8077. // icon: 'cart',
  8078. // text: t("uni-goods-nav.options.cart")
  8079. // }]
  8080. // }
  8081. // },
  8082. if (appVm) {
  8083. // 触发响应式
  8084. appVm.$locale;
  8085. if (!isWatchedAppLocale) {
  8086. isWatchedAppLocale = true;
  8087. watchAppLocale(appVm, i18n);
  8088. }
  8089. }
  8090. return i18n.t(key, values);
  8091. };
  8092. }
  8093. return _t(key, values);
  8094. };
  8095. return {
  8096. i18n: i18n,
  8097. f: function f(message, values, delimiters) {
  8098. return i18n.f(message, values, delimiters);
  8099. },
  8100. t: function t(key, values) {
  8101. return _t(key, values);
  8102. },
  8103. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  8104. return i18n.add(locale, message, override);
  8105. },
  8106. watch: function watch(fn) {
  8107. return i18n.watchLocale(fn);
  8108. },
  8109. getLocale: function getLocale() {
  8110. return i18n.getLocale();
  8111. },
  8112. setLocale: function setLocale(newLocale) {
  8113. return i18n.setLocale(newLocale);
  8114. } };
  8115. }
  8116. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  8117. var formater;
  8118. function hasI18nJson(jsonObj, delimiters) {
  8119. if (!formater) {
  8120. formater = new BaseFormatter();
  8121. }
  8122. return walkJsonObj(jsonObj, function (jsonObj, key) {
  8123. var value = jsonObj[key];
  8124. if (isString(value)) {
  8125. if (isI18nStr(value, delimiters)) {
  8126. return true;
  8127. }
  8128. } else
  8129. {
  8130. return hasI18nJson(value, delimiters);
  8131. }
  8132. });
  8133. }
  8134. function parseI18nJson(jsonObj, values, delimiters) {
  8135. if (!formater) {
  8136. formater = new BaseFormatter();
  8137. }
  8138. walkJsonObj(jsonObj, function (jsonObj, key) {
  8139. var value = jsonObj[key];
  8140. if (isString(value)) {
  8141. if (isI18nStr(value, delimiters)) {
  8142. jsonObj[key] = compileStr(value, values, delimiters);
  8143. }
  8144. } else
  8145. {
  8146. parseI18nJson(value, values, delimiters);
  8147. }
  8148. });
  8149. return jsonObj;
  8150. }
  8151. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  8152. if (!isI18nStr(jsonStr, delimiters)) {
  8153. return jsonStr;
  8154. }
  8155. if (!formater) {
  8156. formater = new BaseFormatter();
  8157. }
  8158. var localeValues = [];
  8159. Object.keys(locales).forEach(function (name) {
  8160. if (name !== locale) {
  8161. localeValues.push({
  8162. locale: name,
  8163. values: locales[name] });
  8164. }
  8165. });
  8166. localeValues.unshift({ locale: locale, values: locales[locale] });
  8167. try {
  8168. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  8169. }
  8170. catch (e) {}
  8171. return jsonStr;
  8172. }
  8173. function isI18nStr(value, delimiters) {
  8174. return value.indexOf(delimiters[0]) > -1;
  8175. }
  8176. function compileStr(value, values, delimiters) {
  8177. return formater.interpolate(value, values, delimiters).join('');
  8178. }
  8179. function compileValue(jsonObj, key, localeValues, delimiters) {
  8180. var value = jsonObj[key];
  8181. if (isString(value)) {
  8182. // 存在国际化
  8183. if (isI18nStr(value, delimiters)) {
  8184. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  8185. if (localeValues.length > 1) {
  8186. // 格式化国际化语言
  8187. var valueLocales = jsonObj[key + 'Locales'] = {};
  8188. localeValues.forEach(function (localValue) {
  8189. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  8190. });
  8191. }
  8192. }
  8193. } else
  8194. {
  8195. compileJsonObj(value, localeValues, delimiters);
  8196. }
  8197. }
  8198. function compileJsonObj(jsonObj, localeValues, delimiters) {
  8199. walkJsonObj(jsonObj, function (jsonObj, key) {
  8200. compileValue(jsonObj, key, localeValues, delimiters);
  8201. });
  8202. return jsonObj;
  8203. }
  8204. function walkJsonObj(jsonObj, walk) {
  8205. if (isArray(jsonObj)) {
  8206. for (var i = 0; i < jsonObj.length; i++) {
  8207. if (walk(jsonObj, i)) {
  8208. return true;
  8209. }
  8210. }
  8211. } else
  8212. if (isObject(jsonObj)) {
  8213. for (var key in jsonObj) {
  8214. if (walk(jsonObj, key)) {
  8215. return true;
  8216. }
  8217. }
  8218. }
  8219. return false;
  8220. }
  8221. function resolveLocale(locales) {
  8222. return function (locale) {
  8223. if (!locale) {
  8224. return locale;
  8225. }
  8226. locale = normalizeLocale(locale) || locale;
  8227. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  8228. };
  8229. }
  8230. function resolveLocaleChain(locale) {
  8231. var chain = [];
  8232. var tokens = locale.split('-');
  8233. while (tokens.length) {
  8234. chain.push(tokens.join('-'));
  8235. tokens.pop();
  8236. }
  8237. return chain;
  8238. }
  8239. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  8240. /***/ }),
  8241. /***/ 5:
  8242. /*!*********************************!*\
  8243. !*** D:/66/66applet/pages.json ***!
  8244. \*********************************/
  8245. /*! no static exports found */
  8246. /***/ (function(module, exports) {
  8247. /***/ }),
  8248. /***/ 85:
  8249. /*!**********************************!*\
  8250. !*** D:/66/66applet/api/home.js ***!
  8251. \**********************************/
  8252. /*! no static exports found */
  8253. /***/ (function(module, exports, __webpack_require__) {
  8254. "use strict";
  8255. Object.defineProperty(exports, "__esModule", { value: true });exports.getMessageDetailList = exports.getMessageTypeList = exports.getGroupItemSheet = exports.getGroupItemSheetInfo = exports.redEnvelopesDetails = exports.setRedPageNum = exports.getVoucherDetail = exports.receiveRedEnvelopes = exports.getOrderTimes = exports.getScore = exports.addScore = exports.addOrder = exports.returnLogin = exports.getMarketingShopInfo = exports.getHavePurchaseItemList = exports.ownerSendSms = exports.sendSms = exports.getCheckOutItemForSnapUpItem = exports.getCustomerVipCardList = exports.queryExperienceCardDetail = exports.getExperienceCardDetail = exports.getCheckOutItemForExperienceCard = exports.getCheckOutForGroupItem = exports.getOrderManagerList = exports.getCheckOutForItem = exports.addCar = exports.getOrderCarList = exports.getCustomerRedMoneyList = exports.getMyVoucherList = exports.pay = exports.getBeauticianDetail = exports.getItemDetail = exports.getSnapUpItemDetail = exports.getGroupItemSheetDetail = exports.getVipCardList = exports.getVipCardById = exports.getBeauticianData = exports.followOrderManager = exports.isHaveExperienceCard = exports.getScoreListForPage = exports.getExperienceCardInformation = exports.getSnapUpItemList = exports.receiveVoucher = exports.choiceShop = exports.searchList = exports.initgetGroupItemList = exports.initGet = exports.phoneLogin = exports.bindShopId = exports.getFeatureItemList = void 0;
  8256. var _request = _interopRequireDefault(__webpack_require__(/*! ../common/request.js */ 12));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} //import { fetchPost, fetchGet, } from '../common/request.js'
  8257. var fetchGet = _request.default.fetchGet;
  8258. var fetchPost = _request.default.fetchPost;
  8259. var getFeatureItemList = function getFeatureItemList(params) {
  8260. console.log("getFeatureItemList");
  8261. //console.log(request.fetchGet)
  8262. return fetchGet('/home/getFeatureItemList', params);
  8263. };exports.getFeatureItemList = getFeatureItemList;
  8264. var bindShopId = function bindShopId(params) {
  8265. return fetchPost('/bind/bindShopId', params);
  8266. };exports.bindShopId = bindShopId;
  8267. var phoneLogin = function phoneLogin(params) {
  8268. return fetchPost('/bind/phoneLogin', params);
  8269. };exports.phoneLogin = phoneLogin;
  8270. var initGet = function initGet(params) {
  8271. return fetchGet('/home/getHomeData', params);
  8272. };exports.initGet = initGet;
  8273. var initgetGroupItemList = function initgetGroupItemList(params) {
  8274. return fetchGet('/home/getGroupItemList', params);
  8275. };exports.initgetGroupItemList = initgetGroupItemList;
  8276. var searchList = function searchList(params) {
  8277. return fetchGet('/home/getShops', params);
  8278. };exports.searchList = searchList;
  8279. var choiceShop = function choiceShop(params) {
  8280. return fetchPost('/home/choiceShop', params);
  8281. };exports.choiceShop = choiceShop;
  8282. var receiveVoucher = function receiveVoucher(params) {
  8283. return fetchPost('/home/receiveVoucher', params);
  8284. };exports.receiveVoucher = receiveVoucher;
  8285. var getSnapUpItemList = function getSnapUpItemList(params) {
  8286. return fetchGet('/home/getSnapUpItemList', params);
  8287. };exports.getSnapUpItemList = getSnapUpItemList;
  8288. var getExperienceCardInformation = function getExperienceCardInformation(params) {
  8289. return fetchGet('/home/getExperienceCardInformation', params);
  8290. };exports.getExperienceCardInformation = getExperienceCardInformation;
  8291. var getScoreListForPage = function getScoreListForPage(params) {
  8292. return fetchGet('/home/getScoreListForPage', params);
  8293. };exports.getScoreListForPage = getScoreListForPage;
  8294. var isHaveExperienceCard = function isHaveExperienceCard(params) {
  8295. return fetchGet('/home/isHaveExperienceCard', params);
  8296. };exports.isHaveExperienceCard = isHaveExperienceCard;
  8297. var followOrderManager = function followOrderManager(params) {
  8298. return fetchPost('/home/followOrderManager', params);
  8299. };exports.followOrderManager = followOrderManager;
  8300. var getBeauticianData = function getBeauticianData(params) {
  8301. return fetchGet('/detail/getBeauticianData', params);
  8302. };exports.getBeauticianData = getBeauticianData;
  8303. var getVipCardById = function getVipCardById(params) {
  8304. return fetchGet('/detail/getVipCardById', params);
  8305. };exports.getVipCardById = getVipCardById;
  8306. var getVipCardList = function getVipCardList(params) {
  8307. return fetchGet('/home/getVipCardList', params);
  8308. };exports.getVipCardList = getVipCardList;
  8309. var getGroupItemSheetDetail = function getGroupItemSheetDetail(params) {
  8310. return fetchGet('/detail/getGroupItemSheetDetail', params);
  8311. };exports.getGroupItemSheetDetail = getGroupItemSheetDetail;
  8312. var getSnapUpItemDetail = function getSnapUpItemDetail(params) {
  8313. return fetchGet('/detail/getSnapUpItemDetail', params);
  8314. };exports.getSnapUpItemDetail = getSnapUpItemDetail;
  8315. var getItemDetail = function getItemDetail(params) {
  8316. return fetchGet('/detail/getItemDetail', params);
  8317. };exports.getItemDetail = getItemDetail;
  8318. var getBeauticianDetail = function getBeauticianDetail(params) {
  8319. return fetchGet('/detail/getBeauticianDetail', params);
  8320. };exports.getBeauticianDetail = getBeauticianDetail;
  8321. var pay = function pay(params) {
  8322. return fetchPost('/pay/pay', params);
  8323. };exports.pay = pay;
  8324. var getMyVoucherList = function getMyVoucherList(params) {
  8325. return fetchGet('/detail/getMyVoucherList', params);
  8326. };exports.getMyVoucherList = getMyVoucherList;
  8327. var getCustomerRedMoneyList = function getCustomerRedMoneyList(params) {
  8328. return fetchGet('/detail/getCustomerRedMoneyList', params);
  8329. };exports.getCustomerRedMoneyList = getCustomerRedMoneyList;
  8330. var getOrderCarList = function getOrderCarList(params) {
  8331. return fetchGet('/detail/getOrderCarList', params);
  8332. };
  8333. // 新增车辆-石延杰
  8334. exports.getOrderCarList = getOrderCarList;var addCar = function addCar(params) {
  8335. return fetchPost('/detail/addCar', params);
  8336. };exports.addCar = addCar;
  8337. var getCheckOutForItem = function getCheckOutForItem(params) {
  8338. return fetchGet('/detail/getCheckOutForItem', params);
  8339. };exports.getCheckOutForItem = getCheckOutForItem;
  8340. var getOrderManagerList = function getOrderManagerList(params) {
  8341. return fetchGet('/detail/getOrderManagerList', params);
  8342. };exports.getOrderManagerList = getOrderManagerList;
  8343. var getCheckOutForGroupItem = function getCheckOutForGroupItem(params) {
  8344. return fetchGet('/detail/getCheckOutForGroupItem', params);
  8345. };exports.getCheckOutForGroupItem = getCheckOutForGroupItem;
  8346. var getCheckOutItemForExperienceCard = function getCheckOutItemForExperienceCard(params) {
  8347. return fetchGet('/detail/getCheckOutItemForExperienceCard', params);
  8348. };exports.getCheckOutItemForExperienceCard = getCheckOutItemForExperienceCard;
  8349. var getExperienceCardDetail = function getExperienceCardDetail(params) {
  8350. return fetchGet('/detail/getExperienceCardDetail', params);
  8351. };exports.getExperienceCardDetail = getExperienceCardDetail;
  8352. var queryExperienceCardDetail = function queryExperienceCardDetail(params) {
  8353. return fetchGet('/detail/queryExperienceCardDetail', params);
  8354. };exports.queryExperienceCardDetail = queryExperienceCardDetail;
  8355. var getCustomerVipCardList = function getCustomerVipCardList(params) {
  8356. return fetchGet('/detail/getCustomerVipCardList', params);
  8357. };exports.getCustomerVipCardList = getCustomerVipCardList;
  8358. var getCheckOutItemForSnapUpItem = function getCheckOutItemForSnapUpItem(params) {
  8359. return fetchGet('/detail/getCheckOutItemForSnapUpItem', params);
  8360. };exports.getCheckOutItemForSnapUpItem = getCheckOutItemForSnapUpItem;
  8361. var sendSms = function sendSms(params) {
  8362. return fetchGet('/bind/sendSms', params);
  8363. };exports.sendSms = sendSms;
  8364. var ownerSendSms = function ownerSendSms(params) {
  8365. return fetchGet('/bindOwner/sendSms', params);
  8366. };
  8367. // 查询已购项目列表-石延杰
  8368. exports.ownerSendSms = ownerSendSms;var getHavePurchaseItemList = function getHavePurchaseItemList(params) {
  8369. return fetchGet('/detail/getHavePurchaseItemList', params);
  8370. };
  8371. // 查询已店铺信息-石延杰
  8372. exports.getHavePurchaseItemList = getHavePurchaseItemList;var getMarketingShopInfo = function getMarketingShopInfo(params) {
  8373. return fetchGet('/my/marketingShopInfo', params);
  8374. };
  8375. // 退出登录-石延杰
  8376. exports.getMarketingShopInfo = getMarketingShopInfo;var returnLogin = function returnLogin(params) {
  8377. return fetchGet('/carOwnerHome/returnLogin', params);
  8378. };
  8379. // 预约
  8380. exports.returnLogin = returnLogin;var addOrder = function addOrder(params) {
  8381. return fetchPost('/detail/addOrder', params);
  8382. };
  8383. // 评价
  8384. exports.addOrder = addOrder;var addScore = function addScore(params) {
  8385. return fetchPost('/detail/addScore', params);
  8386. };
  8387. // 评价详情
  8388. exports.addScore = addScore;var getScore = function getScore(params) {
  8389. return fetchGet('/detail/getScore', params);
  8390. };
  8391. // 查询预约时间列表-石延杰
  8392. exports.getScore = getScore;var getOrderTimes = function getOrderTimes(params) {
  8393. return fetchGet('/detail/getOrderTimes', params);
  8394. };
  8395. // 图片上传-石延杰
  8396. /* export const upload = (params) => {
  8397. return upLoadPost('/upload', params)
  8398. } */
  8399. //
  8400. // 领取红包-石延杰
  8401. exports.getOrderTimes = getOrderTimes;var receiveRedEnvelopes = function receiveRedEnvelopes(params) {
  8402. return fetchPost('/home/receiveRedEnvelopes', params);
  8403. };
  8404. //
  8405. exports.receiveRedEnvelopes = receiveRedEnvelopes;var getVoucherDetail = function getVoucherDetail(params) {
  8406. return fetchGet('/detail/getVoucherDetail', params);
  8407. };
  8408. //
  8409. exports.getVoucherDetail = getVoucherDetail;var setRedPageNum = function setRedPageNum(params) {
  8410. return fetchPost('/detail/setRedPageNum', params);
  8411. };
  8412. //
  8413. exports.setRedPageNum = setRedPageNum;var redEnvelopesDetails = function redEnvelopesDetails(params) {
  8414. return fetchGet('/home/redEnvelopesDetails', params);
  8415. };exports.redEnvelopesDetails = redEnvelopesDetails;
  8416. var getGroupItemSheetInfo = function getGroupItemSheetInfo(params) {
  8417. return fetchGet('/detail/getGroupItemSheetInfo', params);
  8418. };
  8419. // 管
  8420. exports.getGroupItemSheetInfo = getGroupItemSheetInfo;var getGroupItemSheet = function getGroupItemSheet(params) {
  8421. return fetchGet('/pay/getGroupItemSheet', params);
  8422. };exports.getGroupItemSheet = getGroupItemSheet;
  8423. var getMessageTypeList = function getMessageTypeList(params) {
  8424. return fetchGet('/my/getMessageTypeList', params);
  8425. };exports.getMessageTypeList = getMessageTypeList;
  8426. var getMessageDetailList = function getMessageDetailList(params) {
  8427. return fetchGet('/my/getMessageDetailList', params);
  8428. };exports.getMessageDetailList = getMessageDetailList;
  8429. /***/ }),
  8430. /***/ 86:
  8431. /*!*************************************************!*\
  8432. !*** D:/66/66applet/static/homeImg/pic_def.png ***!
  8433. \*************************************************/
  8434. /*! no static exports found */
  8435. /***/ (function(module, exports) {
  8436. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAABLCAYAAAA4TnrqAAAAAXNSR0IArs4c6QAAAzpJREFUeF7tnOtu2kAQhY8BGxLhBEOA3MjlR9W+/8s0valqAoEkkGAMSbABV7NqaJsWwVQ0rewzEgKLw8r76Xg8XkZrxXEcA8BkOkUUTTGbzeSQASCTycC2s8hls4aHJbDCaIIomhDQAgK2nYNj52BNp9N4MiGoZU7J5XKwoih6uhKX6VP9vWVZsMIwNDmLsZwAYS1nNFcQFmEpCCikdBZhKQgopHQWYSkIKKR0FmEpCCikdBZhKQgopHQWYSkIKKR0FmEpCCikdBZhKQgopHQWYSkIKKR0FmEpCCikdNb/Bks6BDpX1+j3fXzrFlCc4mKp/JdXKm1jt16DfP7b8SLO8v0BWpdtlL0SnLyztjmF4xC3d30c7O9he3trbeMuGuhFYN3cdHHT7eHN61em2WJdIU0sZ+8+oLpTQbW6s65hF45DWArE/xRWGIYYBAEsWHC3XDi2rTh1mPaoVDhrOBzhotmaJ/xMxsJRo4HNzY2VgaUG1sdPnxHHMxw1Ds2d7PyihWwmg9PTY8L6McFL+fD27D0q5TLq9aqBI9/3erfmJrBqpMpZAuXkuGGc9eX8wryfnvzsLAHy+Dg2+cm2bTiOPa+pUgNrNBqZSw+Q9jDLAJBL8ilnSTeiuM33fcxm31vIpANPCtFK2TO/SUWCF1eFYYQgCADLwpZbNM6R6Ps+Op1r4ybXLZpXNpuFFKGDYIiHhwdzLJW7FLuprLMETqdzhb4/QD6fx/7eLjY2Cr+ksNHoHu3OFaT0kEgdLJl4s3mJx/EYnldCvVaDlBOLQsA2W5eQEiSRsMQpkm+ex2AQoN3uYBbHxk2rPuclOsELJLdYRLnioZAvIIpCdLs9k4ccx8HhwT4KhfyqlUOyK3hZdbj7zTJN2fNQq+2oH7IT7SwpOGWCQTA0yVnKANd1Te30J5F4WFyiWWILrmcprhuulCpgcQ1eASsp0hdZKSWspBBQzIPOIiwFAYWUziIsBQGFlM4iLAUBhZTOIiwFAYWUziIsBQGFlM4iLAUBhZTOIiwFAYWUziIsBQGFlM4iLAUBhZTOIiwFAYWUe/6tCMvs+cfdJFejZXaT5D6ly2HN9ynlDriLYT3fAfcrz0/eLdlBG+AAAAAASUVORK5CYII="
  8437. /***/ }),
  8438. /***/ 87:
  8439. /*!**************************************************!*\
  8440. !*** D:/66/66applet/static/homeImg/pic_def2.png ***!
  8441. \**************************************************/
  8442. /*! no static exports found */
  8443. /***/ (function(module, exports) {
  8444. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABXwAAAJYCAYAAADR6y71AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAFfKADAAQAAAABAAACWAAAAAATGZ3JAABAAElEQVR4Aezd2XYbR5on8AD3fSe1umxXz83c94PUzLv0nHmEOaffZaYfZO7nqtq2LIkSRYk7wA3gZMAll+yUKCYFgIiIX56DphRMZH7x++JC/a90ZCt85ri5uZnudC7/1gu9v4XQ+tdWCE+rsaXPnGqIAAECBAgQIECAAAECBAgQIECAAAECBIYs0Gq1Tm9CeB3Czf+dCBP/MT8/8x/V2NWfb1tluX882u2L/3YTbv69Cnj/5Y+/8TcCBAgQIECAAAECBAgQIECAAAECBAgQGAeBKuz9eyu0/m1hYfb/fFrP74FvFfBOdDoX/6t3c/Nvn57gzwQIECBAgAABAgQIECBAgAABAgQIECAwngITrda/z8/P/s8qAO7FCqc+lins/SjhJwECBAgQIECAAAECBAgQIECAAAECBNIQiA/wVtluLPZ/xP/Tf8I3buPQu+n97zjgIECAAAECBAgQIECAAAECBAgQIECAAIG0BCZaE/89bu/Qii9oa3cu/p89e9NqoGoJECBAgAABAgQIECBAgAABAgQIECDwUSDu6bswP/tfq317L/8m7P3I4icBAgQIECBAgAABAgQIECBAgAABAgTSE4gZb8x6J3qh97f0ylcxAQIECBAgQIAAAQIECBAgQIAAAQIECHwqELPeiWob33/9dNCfCRAgQIAAAQIECBAgQIAAAQIECBAgQCBFgda/TlRvbXuaYulqJkCAAAECBAgQIECAAAECBAgQIECAAIF/CsSsd6La22Hpn0P+RIAAAQIECBAgQIAAAQIECBAgQIAAAQIpCsSst9rSwUGAAAECBAgQIECAAAECBAgQIECAAAECOQgIfHPoojkQIECAAAECBAgQIECAAAECBAgQIECgEhD4WgYECBAgQIAAAQIECBAgQIAAAQIECBDIREDgm0kjTYMAAQIECBAgQIAAAQIECBAgQIAAAQICX2uAAAECBAgQIECAAAECBAgQIECAAAECmQgIfDNppGkQIECAAAECBAgQIECAAAECBAgQIEBganpK5msZECBAgAABAgQIECBAgAABAgQIECBAIAeBqVarlcM8zIEAAQIECBAgQIAAAQIECBAgQIAAAQLFC3i8t/glAIAAAQIECBAgQIAAAQIECBAgQIAAgVwEBL65dNI8CBAgQIAAAQIECBAgQIAAAQIECBAoXkDgW/wSAECAAAECBAgQIECAAAECBAgQIECAQC4CAt9cOmkeBAgQIECAAAECBAgQIECAAAECBAgULyDwLX4JACBAgAABAgQIECBAgAABAgQIECBAIBcBgW8unTQPAgQIECBAgAABAgQIECBAgAABAgSKFxD4Fr8EABAgQIAAAQIECBAgQIAAAQIECBAgkIuAwDeXTpoHAQIECBAgQIAAAQIECBAgQIAAAQLFCwh8i18CAAgQIECAAAECBAgQIECAAAECBAgQyEVA4JtLJ82DAAECBAgQIECAAAECBAgQIECAAIHiBQS+xS8BAAQIECBAgAABAgQIECBAgAABAgQI5CIg8M2lk+ZBgAABAgQIECBAgAABAgQIECBAgEDxAgLf4pcAAAIECBAgQIAAAQIECBAgQIAAAQIEchEQ+ObSSfMgQIAAAQIECBAgQIAAAQIECBAgQKB4AYFv8UsAAAECBAgQIECAAAECBAgQIECAAAECuQgIfHPppHkQIECAAAECBAgQIECAAAECBAgQIFC8gMC3+CUAgAABAgQIECBAgAABAgQIECBAgACBXAQEvrl00jwIECBAgAABAgQIECBAgAABAgQIECheQOBb/BIAQIAAAQIECBAgQIAAAQIECBAgQIBALgIC31w6aR4ECBAgQIAAAQIECBAgQIAAAQIECBQvIPAtfgkAIECAAAECBAgQIECAAAECBAgQIEAgFwGBby6dNA8CBAgQIECAAAECBAgQIECAAAECBIoXEPgWvwQAECBAgAABAgQIECBAgAABAgQIECCQi4DAN5dOmgcBAgQIECBAgAABAgQIECBAgAABAsULCHyLXwIACBAgQIAAAQIECBAgQIAAAQIECBDIRUDgm0snzYMAAQIECBAgQIAAAQIECBAgQIAAgeIFBL7FLwEABAgQIECAAAECBAgQIECAAAECBAjkIiDwzaWT5kGAAAECBAgQIECAAAECBAgQIECAQPECAt/ilwAAAgQIECBAgAABAgQIECBAgAABAgRyERD45tJJ8yBAgAABAgQIECBAgAABAgQIECBAoHgBgW/xSwAAAQIECBAgQIAAAQIECBAgQIAAAQK5CAh8c+mkeRAgQIAAAQIECBAgQIAAAQIECBAgULyAwLf4JQCAAAECBAgQIECAAAECBAgQIECAAIFcBAS+uXTSPAgQIECAAAECBAgQIECAAAECBAgQKF5A4Fv8EgBAgAABAgQIECBAgAABAgQIECBAgEAuAgLfXDppHgQIECBAgAABAgQIECBAgAABAgQIFC8g8C1+CQAgQIAAAQIECBAgQIAAAQIECBAgQCAXAYFvLp00DwIECBAgQIAAAQIECBAgQIAAAQIEihcQ+Ba/BAAQIECAAAECBAgQIECAAAECBAgQIJCLgMA3l06aBwECBAgQIECAAAECBAgQIECAAAECxQsIfItfAgAIECBAgAABAgQIECBAgAABAgQIEMhFQOCbSyfNgwABAgQIECBAgAABAgQIECBAgACB4gUEvsUvAQAECBAgQIAAAQIECBAgQIAAAQIECOQiIPDNpZPmQYAAAQIECBAgQIAAAQIECBAgQIBA8QIC3+KXAAACBAgQIECAAAECBAgQIECAAAECBHIREPjm0knzIECAAAECBAgQIECAAAECBAgQIECgeAGBb/FLAAABAgQIECBAgAABAgQIECBAgAABArkICHxz6aR5ECBAgAABAgQIECBAgAABAgQIECBQvIDAt/glAIAAAQIECBAgQIAAAQIECBAgQIAAgVwEBL65dNI8CBAgQIAAAQIECBAgQIAAAQIECBAoXkDgW/wSAECAAAECBAgQIECAAAECBAgQIECAQC4CAt9cOmkeBAgQIECAAAECBAgQIECAAAECBAgULyDwLX4JACBAgAABAgQIECBAgAABAgQIECBAIBcBgW8unTQPAgQIECBAgAABAgQIECBAgAABAgSKFxD4Fr8EABAgQIAAAQIECBAgQIAAAQIECBAgkIuAwDeXTpoHAQIECBAgQIAAAQIECBAgQIAAAQLFCwh8i18CAAgQIECAAAECBAgQIECAAAECBAgQyEVA4JtLJ82DAAECBAgQIECAAAECBAgQIECAAIHiBQS+xS8BAAQIECBAgAABAgQIECBAgAABAgQI5CIg8M2lk+ZBgAABAgQIECBAgAABAgQIECBAgEDxAgLf4pcAAAIECBAgQIAAAQIECBAgQIAAAQIEchEQ+ObSSfMgQIAAAQIECBAgQIAAAQIECBAgQKB4AYFv8UsAAAECBAgQIECAAAECBAgQIECAAAECuQgIfHPppHkQIECAAAECBAgQIECAAAECBAgQIFC8gMC3+CUAgAABAgQIECBAgAABAgQIECBAgACBXAQEvrl00jwIECBAgAABAgQIECBAgAABAgQIECheQOBb/BIAQIAAAQIECBAgQIAAAQIECBAgQIBALgIC31w6aR4ECBAgQIAAAQIECBAgQIAAAQIECBQvIPAtfgkAIECAAAECBAgQIECAAAECBAgQIEAgFwGBby6dNA8CBAgQIECAAAECBAgQIECAAAECBIoXEPgWvwQAECBAgAABAgQIECBAgAABAgQIECCQi4DAN5dOmgcBAgQIECBAgAABAgQIECBAgAABAsULCHyLXwIACBAgQIAAAQIECBAgQIAAAQIECBDIRUDgm0snzYMAAQIECBAgQIAAAQIECBAgQIAAgeIFBL7FLwEABAgQIECAAAECBAgQIECAAAECBAjkIiDwzaWT5kGAAAECBAgQIECAAAECBAgQIECAQPECAt/ilwAAAgQIECBAgAABAgQIECBAgAABAgRyERD45tJJ8yBAgAABAgQIECBAgAABAgQIECBAoHgBgW/xSwAAAQIECBAgQIAAAQIECBAgQIAAAQK5CAh8c+mkeRAgQIAAAQIECBAgQIAAAQIECBAgULyAwLf4JQCAAAECBAgQIECAAAECBAgQIECAAIFcBAS+uXTSPAgQIECAAAECBAgQIECAAAECBAgQKF5A4Fv8EgBAgAABAgQIECBAgAABAgQIECBAgEAuAgLfXDppHgQIECBAgAABAgQIECBAgAABAgQIFC8g8C1+CQAgQIAAAQIECBAgQIAAAQIECBAgQCAXAYFvLp00DwIECBAgQIAAAQIECBAgQIAAAQIEihcQ+Ba/BAAQIECAAAECBAgQIECAAAECBAgQIJCLgMA3l06aBwECBAgQIECAAAECBAgQIECAAAECxQsIfItfAgAIECBAgAABAgQIECBAgAABAgQIEMhFQOCbSyfNgwABAgQIECBAgAABAgQIECBAgACB4gUEvsUvAQAECBAgQIAAAQIECBAgQIAAAQIECOQiIPDNpZPmQYAAAQIECBAgQIAAAQIECBAgQIBA8QIC3+KXAAACBAgQIECAAAECBAgQIECAAAECBHIREPjm0knzIECAAAECBAgQIECAAAECBAgQIECgeAGBb/FLAAABAgQIECBAgAABAgQIECBAgAABArkICHxz6aR5ECBAgAABAgQIECBAgAABAgQIECBQvIDAt/glAIAAAQIECBAgQIAAAQIECBAgQIAAgVwEBL65dNI8CBAgQIAAAQIECBAgQIAAAQIECBAoXkDgW/wSAECAAAECBAgQIECAAAECBAgQIECAQC4CAt9cOmkeBAgQIECAAAECBAgQIECAAAECBAgULyDwLX4JACBAgAABAgQIECBAgAABAgQIECBAIBcBgW8unTQPAgQIECBAgAABAgQIECBAgAABAgSKFxD4Fr8EABAgQIAAAQIECBAgQIAAAQIECBAgkIuAwDeXTpoHAQIECBAgQIAAAQIECBAgQIAAAQLFCwh8i18CAAgQIECAAAECBAgQIECAAAECBAgQyEVA4JtLJ82DAAECBAgQIECAAAECBAgQIECAAIHiBQS+xS8BAAQIECBAgAABAgQIECBAgAABAgQI5CIg8M2lk+ZBgAABAgQIECBAgAABAgQIECBAgEDxAgLf4pcAAAIECBAgQIAAAQIECBAgQIAAAQIEchEQ+ObSSfMgQIAAAQIECBAgQIAAAQIECBAgQKB4AYFv8UsAAAECBAgQIECAAAECBAgQIECAAAECuQgIfHPppHkQIECAAAECBAgQIECAAAECBAgQIFC8gMC3+CUAgAABAgQIECBAgAABAgQIECBAgACBXAQEvrl00jwIECBAgAABAgQIECBAgAABAgQIECheQOBb/BIAQIAAAQIECBAgQIAAAQIECBAgQIBALgIC31w6aR4ECBAgQIAAAQIECBAgQIAAAQIECBQvIPAtfgkAIECAAAECBAgQIECAAAECBAgQIEAgFwGBby6dNA8CBAgQIECAAAECBAgQIECAAAECBIoXEPgWvwQAECBAgAABAgQIECBAgAABAgQIECCQi4DAN5dOmgcBAgQIECBAgAABAgQIECBAgAABAsULCHyLXwIACBAgQIAAAQIECBAgQIAAAQIECBDIRUDgm0snzYMAAQIECBAgQIAAAQIECBAgQIAAgeIFBL7FLwEABAgQIECAAAECBAgQIECAAAECBAjkIiDwzaWT5kGAAAECBAgQIECAAAECBAgQIECAQPECAt/ilwAAAgQIECBAgAABAgQIECBAgAABAgRyERD45tJJ8yBAgAABAgQIECBAgAABAgQIECBAoHgBgW/xSwAAAQIECBAgQIAAAQIECBAgQIAAAQK5CAh8c+mkeRAgQIAAAQIECBAgQIAAAQIECBAgULyAwLf4JQCAAAECBAgQIECAAAECBAgQIECAAIFcBAS+uXTSPAgQIECAAAECBAgQIECAAAECBAgQKF5A4Fv8EgBAgAABAgQIECBAgAABAgQIECBAgEAuAgLfXDppHgQIECBAgAABAgQIECBAgAABAgQIFC8g8C1+CQAgQIAAAQIECBAgQIAAAQIECBAgQCAXAYFvLp00DwIECBAgQIAAAQIECBAgQIAAAQIEihcQ+Ba/BAAQIECAAAECBAgQIECAAAECBAgQIJCLgMA3l06aBwECBAgQIECAAAECBAgQIECAAAECxQsIfItfAgAIECBAgAABAgQIECBAgAABAgQIEMhFQOCbSyfNgwABAgQIECBAgAABAgQIECBAgACB4gUEvsUvAQAECBAgQIAAAQIECBAgQIAAAQIECOQiIPDNpZPmQYAAAQIECBAgQIAAAQIECBAgQIBA8QIC3+KXAAACBAgQIECAAAECBAgQIECAAAECBHIREPjm0knzIECAAAECBAgQIECAAAECBAgQIECgeAGBb/FLAAABAgQIECBAgAABAgQIECBAgAABArkICHxz6aR5ECBAgAABAgQIECBAgAABAgQIECBQvIDAt/glAIAAAQIECBAgQIAAAQIECBAgQIAAgVwEBL65dNI8CBAgQIAAAQIECBAgQIAAAQIECBAoXkDgW/wSAECAAAECBAgQIECAAAECBAgQIECAQC4CAt9cOmkeBAgQIECAAAECBAgQIECAAAECBAgULyDwLX4JACBAgAABAgQIECBAgAABAgQIECBAIBcBgW8unTQPAgQIECBAgAABAgQIECBAgAABAgSKFxD4Fr8EABAgQIAAAQIECBAgQIAAAQIECBAgkIuAwDeXTpoHAQIECBAgQIAAAQIECBAgQIAAAQLFCwh8i18CAAgQIECAAAECBAgQIECAAAECBAgQyEVA4JtLJ82DAAECBAgQIECAAAECBAgQIECAAIHiBQS+xS8BAAQIECBAgAABAgQIECBAgAABAgQI5CIg8M2lk+ZBgAABAgQIECBAgAABAgQIECBAgEDxAgLf4pcAAAIECBAgQIAAAQIECBAgQIAAAQIEchEQ+ObSSfMgQIAAAQIECBAgQIAAAQIECBAgQKB4AYFv8UsAAAECBAgQIECAAAECBAgQIECAAAECuQgIfHPppHkQIECAAAECBAgQIECAAAECBAgQIFC8gMC3+CUAgAABAgQIECBAgAABAgQIECBAgACBXAQEvrl00jwIECBAgAABAgQIECBAgAABAgQIECheQOBb/BIAQIAAAQIECBAgQIAAAQIECBAgQIBALgIC31w6aR4ECBAgQIAAAQIECBAgQIAAAQIECBQvIPAtfgkAIECAAAECBAgQIECAAAECBAgQIEAgFwGBby6dNA8CBAgQIECAAAECBAgQIECAAAECBIoXEPgWvwQAECBAgAABAgQIECBAgAABAgQIECCQi4DAN5dOmgcBAgQIECBAgAABAgQIECBAgAABAsULCHyLXwIACBAgQIAAAQIECBAgQIAAAQIECBDIRUDgm0snzYMAAQIECBAgQIAAAQIECBAgQIAAgeIFBL7FLwEABAgQIECAAAECBAgQIECAAAECBAjkIiDwzaWT5kGAAAECBAgQIECAAAECBAgQIECAQPECAt/ilwAAAgQIECBAgAABAgQIECBAgAABAgRyERD45tJJ8yBAgAABAgQIECBAgAABAgQIECBAoHgBgW/xSwAAAQIECBAgQIAAAQIECBAgQIAAAQK5CAh8c+mkeRAgQIAAAQIECBAgQIAAAQIECBAgULyAwLf4JQCAAAECBAgQIECAAAECBAgQIECAAIFcBAS+uXTSPAgQIECAAAECBAgQIECAAAECBAgQKF5A4Fv8EgBAgAABAgQIECBAgAABAgQIECBAgEAuAgLfXDppHgQIECBAgAABAgQIECBAgAABAgQIFC8g8C1+CQAgQIAAAQIECBAgQIAAAQIECBAgQCAXAYFvLp00DwIECBAgQIAAAQIECBAgQIAAAQIEihcQ+Ba/BAAQIECAAAECBAgQIECAAAECBAgQIJCLgMA3l06aBwECBAgQIECAAAECBAgQIECAAAECxQsIfItfAgAIECBAgAABAgQIECBAgAABAgQIEMhFQOCbSyfNgwABAgQIECBAgAABAgQIECBAgACB4gUEvsUvAQAECBAgQIAAAQIECBAgQIAAAQIECOQiIPDNpZPmQYAAAQIECBAgQIAAAQIECBAgQIBA8QIC3+KXAAACBAgQIECAAAECBAgQIECAAAECBHIREPjm0knzIECAAAECBAgQIECAAAECBAgQIECgeAGBb/FLAAABAgQIECBAgAABAgQIECBAgAABArkICHxz6aR5ECBAgAABAgQIECBAgAABAgQIECBQvIDAt/glAIAAAQIECBAgQIAAAQIECBAgQIAAgVwEBL65dNI8CBAgQIAAAQIECBAgQIAAAQIECBAoXkDgW/wSAECAAAECBAgQIECAAAECBAgQIECAQC4CAt9cOmkeBAgQIECAAAECBAgQIECAAAECBAgULyDwLX4JACBAgAABAgQIECBAgAABAgQIECBAIBeBqVwmYh4ECBAgQIAAgVwFut1uOD0963+urq/D9T8+vV4v1ymb1xgKTExMhKmpqf5nuvq5tLTY/0xOTo5htUoiQIAAAQIECJQr0Lq8vLwpd/pmToAAAQIECBAYX4Hjk5NwcHAY2u1OuLnxT7bx7VS5lbVarbCwMB/W19fCyvJyuRBmToAAAQIECBAYIwGB7xg1QykECBAgQIAAgSjQ7nTC3tt3/Z9ECKQisDA/H3YebYf400GAAAECBAgQIPBwAgLfh7N3ZwIECBAgQIBATeDt273w/sNBbdwAgVQENjfWw6NHO6mUq04CBAgQIECAQHYCAt/sWmpCBAgQIECAQIoCcZ/eV693+/v0pli/mgl8KhD393329Emwv++nKv5MgAABAgQIEBiNgMB3NM7uQoAAAQIECBD4okAMe3/6+UWo3q3wxXP8gkBqAjMzM+HHH/4i9E2tceolQIAAAQIEkheYSH4GJkCAAAECBAgQSFwgPtkr7E28icqvCcQ1Hde2gwABAgQIECBAYLQCAt/RersbAQIECBAgQOAPAnHP3tPTsz+M+QuBXATi2o5r3EGAAAECBAgQIDA6AYHv6KzdiQABAgQIECDwB4F2u+MFbX8Q8ZccBeJLCONadxAgQIAAAQIECIxGQOA7Gmd3IUCAAAECBAjUBPb23tXGDBDIUcBaz7Gr5kSAAAECBAiMq4DAd1w7oy4CBAgQIEAga4Hjk5PQ7njqMesmm9zvAnGtxzXvIECAAAECBAgQGL7A1PBv4Q4ECBAgQIAAAQJ/Fjg4OPzz0J3+PjExEVZWlsP83FyYnJwMoXWnrzmJwLcJ3ITQ7XZD5/w8HB+fhF6v1/h6cc2vLC83/p4vECBAgAABAgQINBMQ+DbzcjYBAgQIECBA4JsFYnB2nz1NFxcXwtMnj8P09PQ31+ACBO4jsF59aXtrM7zefRPOztqNLhHXfFz7/f+hotE3nUyAAAECBAgQINBEwJYOTbScS4AAAQIECBAYgMDp6Vm4uakemWxwLC0thu//8p2wt4GZU4cjEP8Hh7gW45pscsQ1H9e+gwABAgQIECBAYLgCAt/h+ro6AQIECBAgQKAm0DT0mpycCE8eP6pdxwCBhxSIazKuzSZH07Xf5NrOJUCAAAECBAgQ+E2g2b/QqBEgQIAAAQIECHyzwNX1daNrrK6uerK3kZiTRyEQn/SNa7PJ0XTtN7m2cwkQIECAAAECBH4TEPhaCQQIECBAgACBEQtcNwx8FxcWRlyh2xG4m0DTtdl07d+tCmcRIECAAAECBAh8KiDw/VTDnwkQIECAAAECIxBoGno1/c/mRzAFtyDQF2i6NpuufcwECBAgQIAAAQLNBQS+zc18gwABAgQIECDwTQK9Xu+bvu/LBFIVsPZT7Zy6CRAgQIAAgZQEBL4pdUutBAgQIECAAAECBAgQIECAAAECBAgQuEVA4HsLjl8RIECAAAECBAgQIECAAAECBAgQIEAgJQGBb0rdUisBAgQIECBAgAABAgQIECBAgAABAgRuERD43oLjVwQIECBAgAABAgQIECBAgAABAgQIEEhJQOCbUrfUSoAAAQIECBAgQIAAAQIECBAgQIAAgVsEBL634PgVAQIECBAgQIAAAQIECBAgQIAAAQIEUhIQ+KbULbUSIECAAAECBAgQIECAAAECBAgQIEDgFgGB7y04fkWAAAECBAgQIECAAAECBAgQIECAAIGUBAS+KXVLrQQIECBAgAABAgQIECBAgAABAgQIELhFQOB7C45fESBAgAABAgQIECBAgAABAgQIECBAICUBgW9K3VIrAQIECBAgQIAAAQIECBAgQIAAAQIEbhEQ+N6C41cECBAgQIAAAQIECBAgQIAAAQIECBBISUDgm1K31EqAAAECBAgQIECAAAECBAgQIECAAIFbBAS+t+D4FQECBAgQIECAAAECBAgQIECAAAECBFISEPim1C21EiBAgAABAgQIECBAgAABAgQIECBA4BYBge8tOH5FgAABAgQIECBAgAABAgQIECBAgACBlASmUipWrQQIECBAgAABAmkI3NzchG6vF3rdbpiYmKg+k9WnlUbxqiRAgAABAgQIECCQsIDAN+HmKZ0AAQIECBAgMC4Cnc55ODk9DfHn1eVluLy6qpUWg9+Z6ekwOzsTlpaWwuLSYpianKydZ4AAAQIECBAgQIAAgfsLCHzvb+ebBAgQIECAAIGiBdrtTjg6Pg5np2efDXj/jNOrnvg9v7jof46OT0Kr1QoL8/NV+LsY1tZWw6Tw989k/k6AAAECBAgQIECgsYDAtzGZLxAgQIAAAQIEyhaIT/HuvXsXzs7a3wQRt304a7f7n3f778PW5kbY2FjvbwHxTRf2ZQIECBAgQIAAAQIFCwh8C26+qRMgQIAAAQIEmghcXl71g97j6uncQR/x6d+9d/vhw8Fh2NraDBvra4O+hesRIECAAAECBAgQKEJA4FtEm02SAAECBAgQIPBtAjHkfb37JsRgdpjH9fV1ePPmbTip7vfs+VN7/A4T27UJECBAgAABAgSyFJjIclYmRYAAAQIECBAgMDCBuN3Cy1evhx72flpw3Orhp59+CRfVnr8OAgQIECBAgAABAgTuLiDwvbuVMwkQIECAAAECRQnEp3lj0Puu2mrhIY6rq6vw088vwmn1UjgHAQIECBAgQIAAAQJ3ExD43s3JWQQIECBAgACB4gTiFg7D2K+3CWQMnX99+Sq0qyd+HQQIECBAgAABAgQIfF1A4Pt1I2cQIECAAAECBIoTiC9Qe+iw9yP6zc1NFfq+DvGJXwcBAgQIECBAgAABArcLCHxv9/FbAgQIECBAgEBxAjHo3a/27R2no9vthhe/vqr2Eb4Zp7LUQoAAAQIECBAgQGDsBAS+Y9cSBREgQIAAAQIEHk7gvHpJWtzKYRyP+AK33d3dcSxNTQQIECBAgAABAgTGRkDgOzatUAgBAgQIECBA4OEF4gva4r6543ocVU8fdzrn41qeuggQIECAAAECBAg8uMDUg1egAAIECBAgQIAAgbEQaLc74eTk9JtrmZ+fC8tLS2F2diZMTU2FiYmJcH3d7e/Be3p2Ftpn7XBdbdFw3+Pt3rvww/ff3ffrvkeAAAECBAgQIEAgawGBb9btNTkCBAgQIECAwN0F9qog9VuO1dWVsLO9Faanp2uXmZ39bWhtbTXEl7AdHR339wm+vMeL2Nrtdj+YXl5eqt3HAAECBAgQIECAAIHSBQS+pa8A8ydAgAABAgQIVAKnp6eh3ency2J6eio8f/YsxCd773K0Wq0Qg9+VleUQn9Y9ODi8y9f+cM7eu3dB4PsHEn8hQIAAAQIECBAg0Bewh6+FQIAAAQIECBAgEA6rJ27vc8SQ98cffrhz2PvpPeJWD08ePwqPH+98OnynP19cXIb4EjcHAQIECBAgQIAAAQJ/FBD4/tHD3wgQIECAAAECxQnELRbOqn11mx7xyd7vnj+r9umdbPrVP5y/sb7e3wriD4N3+Msg9hu+w22cQoAAAQIECBAgQCApAYFvUu1SLAECBAgQIEBg8ALxZW3dhi9Ri9sy/Bb2DmaHsK2tzf4WD01mJ/BtouVcAgQIECBAgACBUgQEvqV02jwJECBAgAABAl8QOKn27216rK+thbm5u+3Ze9drP9rZDjFIvuvROT8PV1fXdz3deQQIECBAgAABAgSKEBD4FtFmkyRAgAABAgQIfFmg3W62nUPce3d7e/PLF7znb6anp8N69TK3Jke706z2Jtd2LgECBAgQIECAAIEUBQS+KXZNzQQIECBAgACBAQpcXl41utri4mKYnPy2fXu/dMPV1WaBb9Pav3Rf4wQIECBAgAABAgRyERD45tJJ8yBAgAABAgQI3EMgbonQ6/UafXNpabHR+U1Onp+fq14Cd/d9gS8vLptc3rkECBAgQIAAAQIEshcQ+GbfYhMkQIAAAQIECHxZoGnYG680Nzv75QsO4Ddzc3e/fu+mWVg9gPJcggABAgQIECBAgMBYCwh8x7o9iiNAgAABAgQIDFeg2+s2vsH09N2fwG188eoLUw22i+h1Bb73MfYdAgQIECBAgACBfAUEvvn21swIECBAgAABAl8VaH31jPoJw9q/9+OdJhoEvuE+E/h4Iz8JECBAgAABAgQIZCgg8M2wqaZEgAABAgQIELirQGui+T8Hr6+v73r5e53X5PqTE8N5edy9CvclAgQIECBAgAABAmMg0Pxf+GNQtBIIECBAgAABAgQGIzA12Xx7hqshB77d7t23mZi4R2A9GDlXIUCAAAECBAgQIDCeAgLf8eyLqggQIECAAAECIxGYmpoMTUPT88750Gq7ubkJnQbXn5mdHlotLkyAAAECBAgQIEAgRQGBb4pdUzMBAgQIECBAYIACszMzja52fHLS6PwmJ5+dtUOvd/cXsc00rL1JLc4lQIAAAQIECBAgkKKAwDfFrqmZAAECBAgQIDBAgcWlxUZXa7c74eLiotF37nry4dHRXU8NrVYrLCws3Pl8JxIgQIAAAQIECBAoQUDgW0KXzZEAAQIECBAgcIvA0mKzwDde6t2797dc8X6/6nQ64fj47k8PL8zPh6lJL227n7ZvESBAgAABAgQI5Cog8M21s+ZFgAABAgQIELijwMJCFZxONXt5W9zW4fT09I53+Pppce/e3Td7Xz/xkzOWGj6Z/MlX/ZEAAQIECBAgQIBAtgIC32xba2IECBAgQIAAgbsL3Cc8fflqt9ra4fLuN7nlzFevd8P5ebOXwa2sLN9yRb8iQIAAAQIECBAgUKZAs0c5yjQyawIECBAgQIBA9gJrq6vh8PDu++dGkPhytRe/vgzPnz0N8/Nz9zKKT/a+qZ7sbbKVQ7xR3Lt3enr6Xvcchy9dX1+Hq+pz07vpO97c9EJrYiJMtH57HmNycqI/v4lqzEGAAAECBAgQIECgiYDAt4mWcwkQIECAAAECmQrEbR2Wl5bCScNtGq6ursIvL34Njx5th/W1tUY6l5dX4fXubogvgWt67GxvNf3Kg5wfQ/H45HKn89vn4vIiXF1d90PeuxQUA9+4T/Hs3GyYm53t/5yfm0s67L7LvJ1DgAABAgQIECBwfwGB7/3tfJMAAQIECBAgkJXAzs5W48A3AsRQc3f3bTg4OAzbW1shbg/RarW+aHN5eRk+VOfG8+MTvk2P5eXl6gnf+aZfG9n5cX6np2fh+OS0Cno795rjx2Kj7WX8VMH6SXW9j8dkFQLHAHiuCoIXK+/F6onn28w/fs9PAgQIECBAgACB/AUEvvn32AwJECBAgAABAncSmK0CxLXVlXB4dHyn8/980vn5Rfj15asQn0qNoe/szEz/ZXCtiVbodnvVk61X4ezs7Jv3/R3Hp3vjFg1HxyfVthiH3zy/P7t+7u/dbjectdv9z/sPB7+bR/f4pHYMhB0ECBAgQIAAAQJlCgh8y+y7WRMgQIAAAQIEPiuwXW2VcHrWDjHAvO8Rn0ptuifvXe+1sbEeZmdn7nr60M87rQLs+KRyfKL3Pk8rD6rAj+bRPT7puzBfbdGxslQF+Kv9MHhQ93EdAgQIECBAgACB8RcQ+I5/j1RIgAABAgQIEBiZQHwRWnwJW9yX9yEDzM9NeHFxITza2f7cr0Y6Fl3iU9AfPnwYydO8TScX6/v49O/e3n5YXVkO6+vr/e0fml7L+QQIECBAgAABAukJCHzT65mKCRAgQIAAAQJDFYj74z5+tBN237wd6n2aXHzmH0H0Q+9Te3h4FPb33/f31G1S/0OdG5/8Pahqjp+Fap/f9bXVsFIFwA/t+FAe7kuAAAECBAgQKEFA4FtCl82RAAECBAgQINBQYH19rXp69aL/crWGXx346XFP4O++e/6g+9LGF6a93XsX4gvZUj3a1Z6/8bP3bj9sbW6EtSr8Ffym2k11EyBAgAABAgS+LCDw/bKN3xAgQIAAAQIEihZ4/PhRf//X/fcfHsxhenqq2mLi2YPt2/sxIG23Ow9mMOgbx5fnxae331VPKscX4MXg10GAAAECBAgQIJCPgMA3n16aCQECBAgQIEBg4AI71Z65s7Oz4fXum5Hv6RtfPPb8+dMwNTX6f7LGp5vjk7Dxyd5cj/hivtjXGOhvb22G1dWVXKdqXgQIECBAgACBogRG/6/nonhNlgABAgQIECCQvkAMAmdmZsKvL1+FGBKO4oj3fPrk8ci3HIgvPHtfBaDx6ddxe2ndsNzjNhWvXu9WL6E7CI8f74T5Kmh3ECBAgAABAgQIpCsg8E23dyonQIAAAQIECIxMYH5+LvyXf/mx/8KyDweHIb4MbBjH/NxciE8VLy4uDOPyt16z0+lUweebpPfpvXWCX/ll5/w8/PTzi7Cxvl71YKu/ncdXvuLXBAgQIECAAAECYygg8B3DpiiJAAECBAgQIDCOAvHlaTGMXa8CwXf7++Hw8GhgZca9ene2tx9kW4EYXscXsh1UQbYjVC/qOwjHJyfhUdVr2zxYEQQIECBAgACB9AQEvun1TMUECBAgQIAAgQcViOFs3G4h7vsa97iN4eB9Xmo2NTUZlpaWwvLyUlhaXBz59g0RMdb/5u1eiC8yG8URn2Cem5vt74sct8mIIfrk5GT1sxW63V7o3VSfKoDuVX+ONcXtFi4uf/s5qu00okO8V9zm4ej4uN/rh9hHeRT9cA8CBAgQIECAQI4CAt8cu2pOBAgQIECAAIERCExPT4eNjfX+JwaEp6dnodM5rwLKi35Y2evd9MPLVqvVDzQnJib7YWcMOmPAu7DwcHvFxlB1983bcHR0PFSpGJQuLy32g+043xjufumoOG89ut1u5dsJZ2ftcNbuhPNqC4ZhH7Gn//nTL/29fVeWl4d9O9cnQIAAAQIECBAYgIDAdwCILkGAAAECBAgQKF0gBptra6v9z7hbxFD65avXQ32qd7kKR9crj7gXcQy8B3HEsDg+ER0/8YgBcAxkj6unlE9PT4f2krkY5r98+brf28ePduztO4hmugYBAgQIECBAYIgCAt8h4ro0AQIECBAgQIDAeAns77+v9h9+P5RwNG7LsLq62n/iebZ6innYRwyA4x678RPD37g9RdyCIT4BPIwj7tkcr/382dMQX+LnIECAAAECBAgQGE8Bge949kVVBAgQIECAAAECAxSI++HGPWnvs9fw18qIexqvr69VT/Su3bplw9eu8y2/j+HvxyesLy4uwvsP1YvXqvA3bqsxyCM6/vLi1/4WD2tVuO0gQIAAAQIECBAYPwGB7/j1REUECBAgQIAAAQIDFDg8Ogpv3uz19xMe4GX7WxtsbW2EjfX1sdrmYHZ2tv+itUc72yE+lbv//kP/CeBBzT3uf/z69Zv+fs329R2UqusQIECAAAECBAYnIPAdnKUrESBAgAABAgQIjJFADCbfvn0XDg4PB15VfJp3e3srTE19+SVsA79pwwvGp343Nzeqp4/Xw4eDD+HD+4NwXW39MKjj4OCwv4fwoK7nOgQIECBAgAABAoMREPgOxtFVCBAgQIAAAQIExkjg8vKyejHbbjg/Px9oVUuLi2FnZyvMzaWzh23cW3hrc7P/JHJ82vdDtd1DDMMHccQtHhwECBAgQIAAAQLjJSDwHa9+qIYAAQIECBAgQOAbBY6PT8LumzfVNgaDCTVjOdPT0+Hxo52wvLz0jdU93NcnJibCTvVU8vraanjzdq//kreHq8adCRAgQIAAAQIEhiUg8B2WrOsSIECAAAECBAiMVODm5ia83XvXf4J1kDeOL0OL++HGLRJyOGJ4/d3zZ+HsrB12d9+ES0/p5tBWcyBAgAABAgQI/C4g8P2dwh8IECBAgAABAgRSFYhbC7yqtnBodzoDm8LU1FR4+vRxiNs45HgsLi6Ev/71h7D3bn/gIXmOXuZEgAABAgQIEEhFQOCbSqfUSYAAAQIECBAg8FmBdrtd7df7OlxfD+6FZOvra/2neuM2CDkfcX5xq4qV5eXwOj7tW+197CBAgAABAgQIEEhbQOCbdv9UT4AAAQIECBAoWiC+gCxu4xC3cxjEEbc7iE/1Li4sDOJyyVxjYWE+/PXHH6q9fd+Gw8OjZOpWKAECBAgQIECAQF1A4Fs3MUKAAAECBAgQIDDmAr3eTfVE6m6IL2gb1BGfcn385FGYymSv3qYuExOt8PTJb1tYDPqld01rcT4BAgQIECBAgMD9BQS+97fzTQIECBAgQIAAgQcQuKi2HXj58lW4uBjM9gNxW4Od7a2wsbH+ALMZv1uurCyH2bnZgRqP3yxVRIAAAQIECBDIVyDvTcny7ZuZESBAgAABAgSKFDg5PQ0///zLwMLe2dmZ8MP3fxH2/mk1zc7MhB9/+CHE8NdBgAABAgQIECCQloAnfNPql2oJECBAgAABAsUK7L3bD/v77wc2/7W11f4Ly3J/Mdt9weIWD8+fPQ37s+9DtHcQIECAAAECBAikISDwTaNPqiRAgAABAgQIFCtw3e2G1693w+np2UAMYpD5+PGjsLa6OpDr5X6Rra3NMFM98ft6903o9Xq5T9f8CBAgQIAAAQLJCwh8k2+hCRAgQIAAAQIE8hXodDrh15evw/X19UAmGbcqeP78aZidnR3I9Uq5SNzaYWpqst+LbhXAOwgQIECAAAECBMZXwB6+49sblREgQIAAAQIEihY4ODgMv7x4ObCwN4aWP/74vbD3nqtqYWGh2u/4uzA97ZmRexL6GgECBAgQIEBgJAIC35EwuwkBAgQIECBAgMBdBW5ubvrbB+y+eTuQLQRarVZ4tLPd34/Wfr137cLnz4tPRn//l++qp32Fvp8XMkqAAAECBAgQeHgBge/D90AFBAgQIECAAAEC/xC4uroKP/38Szg8PBqISXwaNT6Vurm5MZDruUjo7+cbTYW+VgMBAgQIECBAYDwFBL7j2RdVESBAgAABAgSKE4gvZfvp5xfh/PxiIHOPWxD8+MP3YX5+fiDXc5F/CsSXuP34w1+q7R2m/znoTwQIECBAgAABAmMhIPAdizYoggABAgQIECDwZYFqh4Psj/399+HFr4Pbr3djfb3aeuC5p1CHuHJi2Pvk8aMh3sGlCRAgQIAAAQIE7iMg8L2Pmu8QIECAAAECBEYo8Hr3Tbi8vBzhHUd3q263G15UL2bbe7c/kJvGPXqfPX0SHj/eCXHvXsdwBSYmGA9X2NUJECBAgAABAs0FBL7NzXyDAAECBAgQIDBSgbiv7c+//Bo65+cjve+wb3Z21g5//8+fw+nZ2UBuFffrjS8UW11dGcj1XIQAAQIECBAgQIBAigJer5ti19RMgAABAgQIFCdwfX0dfqlC3/j06vLyUvLz39t7F/bffxjYPJaWFsPTymZqcnJg13QhAgQIECBAgAABAikKCHxT7JqaCRAgQIAAgSIFer1e+PXlq/BoZztsbm4kaRCfVn71eje0252B1b+1tRl2trcGdj0XIkCAAAECBAgQIJCygMA35e6pnQABAgQIEChS4G31dGy7cx6ePnkUJhN6ovXg4DDE2mNwPYjj4369OTzxPAgP1yBAgAABAgQIECAQBQS+1gEBAgQIECBAIEGBk5OT8PdOJzx/9jQsLMyP9Qyurq7D7ps34fR0MHv1xsnOzMyE58+fhrnZ2bGeu+IIECBAgAABAgQIjFpA4DtqcfcjQIAAAQIECAxIoL+v74tfw+bGeojbGsQnXsftODw6Cm/fvgvdbndgpa2sLFdPNz8ey/kObJIuRIAAAQIECBAgQOCeAgLfe8L5GgECBAgQIEBgHARubm76Lz87rp74ffrkydg87XtxcdHfvmGQT/W2Wq3+Xr2p7l88DutFDQQIECBAgAABAvkLCHzz77EZEiBAgAABAgUIXF5ehZ9/eRFWV1f6oej09PSDzLrXqwLo/f3w/sNBiGH0oI6pqakktq8Y1HxdhwABAgQIECBAgMB9BQS+95XzPQIECBAgQIDAGAocHR2H4+OTsL6+FrY2N8PU1OTIqjw6Pg57e/vh6upqoPdcWFiowt4n1Vz803WgsC5GgAABAgQIECCQpYB/NWfZVpMiQIAAAQIEShaIT9Z+qJ6wPTw8rILf9bC+ttp/ydmwTGLQu7//PlxcXA78FlubG2FnZ3vg13VBAgQIECBAgAABArkKCHxz7ax5ESBAgAABAsULxO0V3r//0P8sLi5Uwe9aWF5eCnEv3G89Yqgcnyber65/eTn4oHdycjI8e/o4LC0tfWupvk+AAAECBAgQIECgKAGBb1HtNlkCBAgQIECgVIGzs3aInxikLi0uhoUqAF6stkqYmWm21+/Z2Vm1ZcRpODk9DdfX10PhjPU9rcJeWzgMhddFCRAgQIAAAQIEMhcQ+GbeYNMjQIAAAQIECHwq0O12Q9yCIX7iEUPVhYX5/pYPU1UYHP8ePzEY7t30Qq/bC+cX5+H8/KIfGA8r5I21xCePd7a3wma1jYODAAECBAgQIECAAIH7CQh87+fmWwQIECBAgACBLARigBtf8vbQx8z0dHj27GmYn5976FLcnwABAgQIECBAgEDSAgLfpNuneAIECBAgQIBA+gJr1UvlHj/aCRMTE+lPxgwIECBAgAABAgQIPLCAwPeBG+D2BAgQIECAAIGvCcT9bA8Pj0K73fnaqUn9Pj7V+/Tpk/6WEkkVrlgCBAgQIECAAAECYywg8B3j5iiNAAECBAgQIBAFYjD6w/d/CR8+HIS9d/uh1+slD7O5sR62q/16PdWbfCtNgAABAgQIECBAYMwEBL5j1hDlECBAgAABAgS+JLBRhaRLS0vh7d5eODk5/dJpYz0+MzNTPdX7OCzMz491nYojQIAAAQIECBAgkKqAwDfVzqmbAAECBAgQKFJgZmY6fPf8WT/wffN2L1xdXSXhMDU1FTY3N8LG+lpotVpJ1KxIAgQIECBAgAABAikKCHxT7JqaCRAgQIAAgeIFlpeXqqd9F/t7++6/f18Fv9djaRLD3fhk8lYV9k5OTo5ljYoiQIAAAQIECBAgkJOAwDenbpoLAQIECBAgUJRADFPXqydmV1dXwkH1Ure4x+84PfG7srIcHu1sh+lqD2IHAQIECBAgQIAAAQKjERD4jsbZXQgQIECAAAECQxOILz6LL0GL2yUcH5+E91Xwe35+PrT73XbhWMvqykr1VO9amJ2dve1UvyNAgAABAgQIECBAYAgCAt8hoLokAQIECBAgQOAhBOITv/Fp3/jpdM6r8Pc4HFUB8PX18Ld7mKme4l2rAue1tdUwZeuGh2i/exIgQIAAAQIECBDoCwh8LQQCBAgQIECAQIYC8/NzIX4ePdoJZ2dn4fjkNLTP2uHi8nJgs41P8y4tLoaV1eWwvLTkZWwDk3UhAgQIECBAgAABAvcXEPje3843CRAgQIAAAQJJCCxWoWz8xCO+3K3dbod2pxMuq/D34uLyzk8AxyeI56ptGhYW5sPC4kJYXFgIMfR1ECBAgAABAgQIECAwPgIC3/HphUoIECBAgAABAkMXmJ6e+n3bh48363a7Vfh7FXq9Xuj2uv2fvW6v/8RuDHQnqy0aZmZmqo+Xr30085MAAQIECBAgQIDAuAoIfMe1M+oiQIAAAQIECIxIIAa68/OTI7qb2xAgQIAAAQIECBAgMEwB/w3eMHVdmwABAgQIECBAgAABAgQIECBAgAABAiMUEPiOENutCBAgQIAAAQIECBAgQIAAAQIECBAgMEwBge8wdV2bAAECBAgQIECAAAECBAgQIECAAAECIxQQ+I4Q260IECBAgAABAgQIECBAgAABAgQIECAwTAGB7zB1XZsAAQIECBAgQIAAAQIECBAgQIAAAQIjFBD4jhDbrQgQIECAAAECBAgQIECAAAECBAgQIDBMAYHvMHVdmwABAgQIECBAgAABAgQIECBAgAABAiMUEPiOENutCBAgQIAAAQIECBAgQIAAAQIECBAgMEwBge8wdV2bAAECBAgQIECAAAECBAgQIECAAAECIxQQ+I4Q260IECBAgAABAgQIECBAgAABAgQIECAwTAGB7zB1XZsAAQIECBAgQIAAAQIECBAgQIAAAQIjFBD4jhDbrQgQIECAAAECBAgQIECAAAECBAgQIDBMAYHvMHVdmwABAgQIECBAgAABAgQIECBAgAABAiMUEPiOENutCBAgQIAAAQIECBAgQIAAAQIECBAgMEwBge8wdV2bAAECBAgQIECAAAECBAgQIECAAAECIxQQ+I4Q260IECBAgAABAgQIECBAgAABAgQIECAwTAGB7zB1XZsAAQIECBAg8BmBiYmm/wRrfeYqhgiMg0Cztdl87Y/DHNVAgAABAgQIEEhLoOn/t5HW7FRLgAABAgQIEBhDgampqUZVXXevG53vZAKjEmi6Npuu/VHNw30IECBAgAABAjkJCHxz6qa5ECBAgAABAkkINA29Ou1OEvNSZHkCTddm07VfnqgZEyBAgAABAgS+XUDg++2GrkCAAAECBAgQaCQw3fAJ38Ojo3B1ddXoHk4mMGyBuCYPDo8a3abp2m90cScTIECAAAECBAj0BQS+FgIBAgQIECBAYMQCS0uLje7Y7fbC7u7bRt9xMoFhC+y+eRt6vV6j2zRd+40u7mQCBAgQIECAAIG+gMDXQiBAgAABAgQIjFgghl6tVrOXXZ2enYVffvnVk74j7pXb1QXik71xLZ6entV/ectIXPMC31uA/IoAAQIECBAgMCCBZm8MGdBNXYYAAQIECBAgULLA5ORkWFiYD2dn7UYMZ+12+Pt//hxWVpbD/NxciNcJzXLjRvdzMoHfBW5C6Ha7oXN+Ho6PTxo/2RuvE9d8f83+flF/IECAAAECBAgQGIaAwHcYqq5JgAABAgQIEPiKwPr6WuPAN14y/if0h9W+qYeh2d6pXynHrwkMXSCueQcBAgQIECBAgMDwBWzpMHxjdyBAgAABAgQI1ARWlpfDwvx8bdwAgRwF4lqPa95BgAABAgQIECAwfAGB7/CN3YEAAQIECBAg8FmBnZ3tz44bJJCbgLWeW0fNhwABAgQIEBhnAYHvOHdHbQQIECBAgEDWAnFP082N9aznaHIE4hqPa91BgAABAgQIECAwGgGB72ic3YUAAQIECBAg8FmBR492wtLS4md/Z5BA6gJxbcc17iBAgAABAgQIEBidgMB3dNbuRIAAAQIECBD4rMCzp0/CzMzMZ39nkECqAnFNx7XtIECAAAECBAgQGK1A6/Ly8ma0t3Q3AgQIECBAgACBPwt0u93w6vVuOD09+/Ov/J1AcgLxyd4Y9k5OTiZXu4IJECBAgAABAqkLCHxT76D6dRDeTAAAGflJREFUCRAgQIAAgawE3r7dC+8/HGQ1J5MpSyDu2Wsbh7J6brYECBAgQIDAeAkIfMerH6ohQIAAAQIECIR2uxP29t6FdqdDg0AyAgvz82FnZ9sL2pLpmEIJECBAgACBXAUEvrl21rwIECBAgACB5AWOT07CwcFhPwC+ubELV/INzXACrVarH/Cur6+FleXlDGdoSgQIECBAgACB9AQEvun1TMUECBAgQIBAYQJxf9+4t2/8XF1fh+t/fHq9XmESpvuQAhMTE2Fqaqr/ma5+xn1648c+vQ/ZFfcmQIAAAQIECNQFBL51EyMECBAgQIAAAQIECBAgQIAAAQIECBBIUmAiyaoVTYAAAQIECBAgQIAAAQIECBAgQIAAAQI1AYFvjcQAAQIECBAgQIAAAQIECBAgQIAAAQIE0hQQ+KbZN1UTIECAAAECBAgQIECAAAECBAgQIECgJiDwrZEYIECAAAECBAgQIECAAAECBAgQIECAQJoCAt80+6ZqAgQIECBAgAABAgQIECBAgAABAgQI1AQEvjUSAwQIECBAgAABAgQIECBAgAABAgQIEEhTQOCbZt9UTYAAAQIECBAgQIAAAQIECBAgQIAAgZqAwLdGYoAAAQIECBAgQIAAAQIECBAgQIAAAQJpCgh80+ybqgkQIECAAAECBAgQIECAAAECBAgQIFATEPjWSAwQIECAAAECBAgQIECAAAECBAgQIEAgTQGBb5p9UzUBAgQIECBAgAABAgQIECBAgAABAgRqAgLfGokBAgQIECBAgAABAgQIECBAgAABAgQIpCkg8E2zb6omQIAAAQIECBAgQIAAAQIECBAgQIBATUDgWyMxQIAAAQIECBAgQIAAAQIECBAgQIAAgTQFBL5p9k3VBAgQIECAAAECBAgQIECAAAECBAgQqAkIfGskBggQIECAAAECBAgQIECAAAECBAgQIJCmgMA3zb6pmgABAgQIECBAgAABAgQIECBAgAABAjUBgW+NxAABAgQIECBAgAABAgQIECBAgAABAgTSFBD4ptk3VRMgQIAAAQIECBAgQIAAAQIECBAgQKAmIPCtkRggQIAAAQIECBAgQIAAAQIECBAgQIBAmgIC3zT7pmoCBAgQIECAAAECBAgQIECAAAECBAjUBAS+NRIDBAgQIECAAAECBAgQIECAAAECBAgQSFNA4Jtm31RNgAABAgQIECBAgAABAgQIECBAgACBmoDAt0ZigAABAgQIECBAgAABAgQIECBAgAABAmkKCHzT7JuqCRAgQIAAAQIECBAgQIAAAQIECBAgUBMQ+NZIDBAgQIAAAQIECBAgQIAAAQIECBAgQCBNAYFvmn1TNQECBAgQIECAAAECBAgQIECAAAECBGoCAt8aiQECBAgQIECAAAECBAgQIECAAAECBAikKSDwTbNvqiZAgAABAgQIECBAgAABAgQIECBAgEBNQOBbIzFAgAABAgQIECBAgAABAgQIECBAgACBNAUEvmn2TdUECBAgQIAAAQIECBAgQIAAAQIECBCoCQh8ayQGCBAgQIAAAQIECBAgQIAAAQIECBAgkKaAwDfNvqmaAAECBAgQIECAAAECBAgQIECAAAECNQGBb43EAAECBAgQIECAAAECBAgQIECAAAECBNIUEPim2TdVEyBAgAABAgQIECBAgAABAgQIECBAoCYg8K2RGCBAgAABAgQIECBAgAABAgQIECBAgECaAgLfNPumagIECBAgQIAAAQIECBAgQIAAAQIECNQEBL41EgMECBAgQIAAAQIECBAgQIAAAQIECBBIU0Dgm2bfVE2AAAECBAgQIECAAAECBAgQIECAAIGagMC3RmKAAAECBAgQIECAAAECBAgQIECAAAECaQoIfNPsm6oJECBAgAABAgQIECBAgAABAgQIECBQExD41kgMECBAgAABAgQIECBAgAABAgQIECBAIE0BgW+afVM1AQIECBAgQIAAAQIECBAgQIAAAQIEagIC3xqJAQIECBAgQIAAAQIECBAgQIAAAQIECKQpIPBNs2+qJkCAAAECBAgQIECAAAECBAgQIECAQE1A4FsjMUCAAAECBAgQIECAAAECBAgQIECAAIE0BQS+afZN1QQIECBAgAABAgQIECBAgAABAgQIEKgJCHxrJAYIECBAgAABAgQIECBAgAABAgQIECCQpoDAN82+qZoAAQIECBAgQIAAAQIECBAgQIAAAQI1AYFvjcQAAQIECBAgQIAAAQIECBAgQIAAAQIE0hQQ+KbZN1UTIECAAAECBAgQIECAAAECBAgQIECgJiDwrZEYIECAAAECBAgQIECAAAECBAgQIECAQJoCAt80+6ZqAgQIECBAgAABAgQIECBAgAABAgQI1AQEvjUSAwQIECBAgAABAgQIECBAgAABAgQIEEhTQOCbZt9UTYAAAQIECBAgQIAAAQIECBAgQIAAgZqAwLdGYoAAAQIECBAgQIAAAQIECBAgQIAAAQJpCgh80+ybqgkQIECAAAECBAgQIECAAAECBAgQIFATEPjWSAwQIECAAAECBAgQIECAAAECBAgQIEAgTQGBb5p9UzUBAgQIECBAgAABAgQIECBAgAABAgRqAgLfGokBAgQIECBAgAABAgQIECBAgAABAgQIpCkg8E2zb6omQIAAAQIECBAgQIAAAQIECBAgQIBATUDgWyMxQIAAAQIECBAgQIAAAQIECBAgQIAAgTQFBL5p9k3VBAgQIECAAAECBAgQIECAAAECBAgQqAkIfGskBggQIECAAAECBAgQIECAAAECBAgQIJCmgMA3zb6pmgABAgQIECBAgAABAgQIECBAgAABAjUBgW+NxAABAgQIECBAgAABAgQIECBAgAABAgTSFBD4ptk3VRMgQIAAAQIECBAgQIAAAQIECBAgQKAmIPCtkRggQIAAAQIECBAgQIAAAQIECBAgQIBAmgIC3zT7pmoCBAgQIECAAAECBAgQIECAAAECBAjUBAS+NRIDBAgQIECAAAECBAgQIECAAAECBAgQSFNA4Jtm31RNgAABAgQIECBAgAABAgQIECBAgACBmoDAt0ZigAABAgQIECBAgAABAgQIECBAgAABAmkKCHzT7JuqCRAgQIAAAQIECBAgQIAAAQIECBAgUBMQ+NZIDBAgQIAAAQIECBAgQIAAAQIECBAgQCBNAYFvmn1TNQECBAgQIECAAAECBAgQIECAAAECBGoCAt8aiQECBAgQIECAAAECBAgQIECAAAECBAikKSDwTbNvqiZAgAABAgQIECBAgAABAgQIECBAgEBNQOBbIzFAgAABAgQIECBAgAABAgQIECBAgACBNAUEvmn2TdUECBAgQIAAAQIECBAgQIAAAQIECBCoCQh8ayQGCBAgQIAAAQIECBAgQIAAAQIECBAgkKaAwDfNvqmaAAECBAgQIECAAAECBAgQIECAAAECNQGBb43EAAECBAgQIECAAAECBAgQIECAAAECBNIUEPim2TdVEyBAgAABAgQIECBAgAABAgQIECBAoCYg8K2RGCBAgAABAgQIECBAgAABAgQIECBAgECaAgLfNPumagIECBAgQIAAAQIECBAgQIAAAQIECNQEBL41EgMECBAgQIAAAQIECBAgQIAAAQIECBBIU0Dgm2bfVE2AAAECBAgQIECAAAECBAgQIECAAIGagMC3RmKAAAECBAgQIECAAAECBAgQIECAAAECaQoIfNPsm6oJECBAgAABAgQIECBAgAABAgQIECBQExD41kgMECBAgAABAgQIECBAgAABAgQIECBAIE0BgW+afVM1AQIECBAgQIAAAQIECBAgQIAAAQIEagIC3xqJAQIECBAgQIAAAQIECBAgQIAAAQIECKQpIPBNs2+qJkCAAAECBAgQIECAAAECBAgQIECAQE1A4FsjMUCAAAECBAgQIECAAAECBAgQIECAAIE0BQS+afZN1QQIECBAgAABAgQIECBAgAABAgQIEKgJCHxrJAYIECBAgAABAgQIECBAgAABAgQIECCQpoDAN82+qZoAAQIECBAgQIAAAQIECBAgQIAAAQI1AYFvjcQAAQIECBAgQIAAAQIECBAgQIAAAQIE0hQQ+KbZN1UTIECAAAECBAgQIECAAAECBAgQIECgJiDwrZEYIECAAAECBAgQIECAAAECBAgQIECAQJoCAt80+6ZqAgQIECBAgAABAgQIECBAgAABAgQI1AQEvjUSAwQIECBAgAABAgQIECBAgAABAgQIEEhTQOCbZt9UTYAAAQIECBAgQIAAAQIECBAgQIAAgZqAwLdGYoAAAQIECBAgQIAAAQIECBAgQIAAAQJpCgh80+ybqgkQIECAAAECBAgQIECAAAECBAgQIFATEPjWSAwQIECAAAECBAgQIECAAAECBAgQIEAgTQGBb5p9UzUBAgQIECBAgAABAgQIECBAgAABAgRqAgLfGokBAgQIECBAgAABAgQIECBAgAABAgQIpCkg8E2zb6omQIAAAQIECBAgQIAAAQIECBAgQIBATUDgWyMxQIAAAQIECBAgQIAAAQIECBAgQIAAgTQFBL5p9k3VBAgQIECAAAECBAgQIECAAAECBAgQqAkIfGskBggQIECAAAECBAgQIECAAAECBAgQIJCmgMA3zb6pmgABAgQIECBAgAABAgQIECBAgAABAjUBgW+NxAABAgQIECBAgAABAgQIECBAgAABAgTSFBD4ptk3VRMgQIAAAQIECBAgQIAAAQIECBAgQKAmIPCtkRggQIAAAQIECBAgQIAAAQIECBAgQIBAmgIC3zT7pmoCBAgQIECAAAECBAgQIECAAAECBAjUBAS+NRIDBAgQIECAAAECBAgQIECAAAECBAgQSFNA4Jtm31RNgAABAgQIECBAgAABAgQIECBAgACBmoDAt0ZigAABAgQIECBAgAABAgQIECBAgAABAmkKCHzT7JuqCRAgQIAAAQIECBAgQIAAAQIECBAgUBMQ+NZIDBAgQIAAAQIECBAgQIAAAQIECBAgQCBNAYFvmn1TNQECBAgQIECAAAECBAgQIECAAAECBGoCAt8aiQECBAgQIECAAAECBAgQIECAAAECBAikKSDwTbNvqiZAgAABAgQIECBAgAABAgQIECBAgEBNQOBbIzFAgAABAgQIECBAgAABAgQIECBAgACBNAUEvmn2TdUECBAgQIAAAQIECBAgQIAAAQIECBCoCQh8ayQGCBAgQIAAAQIECBAgQIAAAQIECBAgkKaAwDfNvqmaAAECBAgQIECAAAECBAgQIECAAAECNQGBb43EAAECBAgQIECAAAECBAgQIECAAAECBNIUEPim2TdVEyBAgAABAgQIECBAgAABAgQIECBAoCYg8K2RGCBAgAABAgQIECBAgAABAgQIECBAgECaAgLfNPumagIECBAgQIAAAQIECBAgQIAAAQIECNQEBL41EgMECBAgQIAAAQIECBAgQIAAAQIECBBIU0Dgm2bfVE2AAAECBAgQIECAAAECBAgQIECAAIGagMC3RmKAAAECBAgQIECAAAECBAgQIECAAAECaQoIfNPsm6oJECBAgAABAgQIECBAgAABAgQIECBQExD41kgMECBAgAABAgQIECBAgAABAgQIECBAIE0BgW+afVM1AQIECBAgQIAAAQIECBAgQIAAAQIEagIC3xqJAQIECBAgQIAAAQIECBAgQIAAAQIECKQpIPBNs2+qJkCAAAECBAgQIECAAAECBAgQIECAQE1A4FsjMUCAAAECBAgQIECAAAECBAgQIECAAIE0BQS+afZN1QQIECBAgAABAgQIECBAgAABAgQIEKgJCHxrJAYIECBAgAABAgQIECBAgAABAgQIECCQpoDAN82+qZoAAQIECBAgQIAAAQIECBAgQIAAAQI1AYFvjcQAAQIECBAgQIAAAQIECBAgQIAAAQIE0hQQ+KbZN1UTIECAAAECBAgQIECAAAECBAgQIECgJiDwrZEYIECAAAECBAgQIECAAAECBAgQIECAQJoCAt80+6ZqAgQIECBAgAABAgQIECBAgAABAgQI1AQEvjUSAwQIECBAgAABAgQIECBAgAABAgQIEEhTQOCbZt9UTYAAAQIECBAgQIAAAQIECBAgQIAAgZqAwLdGYoAAAQIECBAgQIAAAQIECBAgQIAAAQJpCgh80+ybqgkQIECAAAECBAgQIECAAAECBAgQIFATEPjWSAwQIECAAAECBAgQIECAAAECBAgQIEAgTQGBb5p9UzUBAgQIECBAgAABAgQIECBAgAABAgRqAgLfGokBAgQIECBAgAABAgQIECBAgAABAgQIpCkg8E2zb6omQIAAAQIECBAgQIAAAQIECBAgQIBATUDgWyMxQIAAAQIECBAgQIAAAQIECBAgQIAAgTQFBL5p9k3VBAgQIECAAAECBAgQIECAAAECBAgQqAkIfGskBggQIECAAAECBAgQIECAAAECBAgQIJCmgMA3zb6pmgABAgQIECBAgAABAgQIECBAgAABAjUBgW+NxAABAgQIECBAgAABAgQIECBAgAABAgTSFBD4ptk3VRMgQIAAAQIECBAgQIAAAQIECBAgQKAmIPCtkRggQIAAAQIECBAgQIAAAQIECBAgQIBAmgIC3zT7pmoCBAgQIECAAAECBAgQIECAAAECBAjUBAS+NRIDBAgQIECAAAECBAgQIECAAAECBAgQSFNA4Jtm31RNgAABAgQIECBAgAABAgQIECBAgACBmoDAt0ZigAABAgQIECBAgAABAgQIECBAgAABAmkKCHzT7JuqCRAgQIAAAQIECBAgQIAAAQIECBAgUBMQ+NZIDBAgQIAAAQIECBAgQIAAAQIECBAgQCBNAYFvmn1TNQECBAgQIECAAAECBAgQIECAAAECBGoCAt8aiQECBAgQIECAAAECBAgQIECAAAECBAikKSDwTbNvqiZAgAABAgQIECBAgAABAgQIECBAgEBNQOBbIzFAgAABAgQIECBAgAABAgQIECBAgACBNAUEvmn2TdUECBAgQIAAAQIECBAgQIAAAQIECBCoCQh8ayQGCBAgQIAAAQIECBAgQIAAAQIECBAgkKaAwDfNvqmaAAECBAgQIECAAAECBAgQIECAAAECNQGBb43EAAECBAgQIECAAAECBAgQIECAAAECBNIUEPim2TdVEyBAgAABAgQIECBAgAABAgQIECBAoCYg8K2RGCBAgAABAgQIECBAgAABAgQIECBAgECaAgLfNPumagIECBAgQIAAAQIECBAgQIAAAQIECNQEBL41EgMECBAgQIAAAQIECBAgQIAAAQIECBBIU0Dgm2bfVE2AAAECBAgQIECAAAECBAgQIECAAIGagMC3RmKAAAECBAgQIECAAAECBAgQIECAAAECaQoIfNPsm6oJECBAgAABAgQIEPj/7d1BSitBFAXQ6sZv6OAKnDpy7kL8ixHcg4sxC8nc0Z+6AklQ0fr1hJ5Y5VTy4GTS4XUHLufNLk2FAAECBAgQIECAQCeg8O1IDAgQIECAAAECBAgQIECAAAECBAgQIJBTQOGbc29SEyBAgAABAgQIECBAgAABAgQIECBAoBNQ+HYkBgQIECBAgAABAgQIECBAgAABAgQIEMgpoPDNuTepCRAgQIAAAQIECBAgQIAAAQIECBAg0AkofDsSAwIECBAgQIAAAQIECBAgQIAAAQIECOQUUPjm3JvUBAgQIECAAAECBAgQIECAAAECBAgQ6AQUvh2JAQECBAgQIECAAAECBAgQIECAAAECBHIKKHxz7k1qAgQIECBAgAABAgQIECBAgAABAgQIdAIK347EgAABAgQIECBAgAABAgQIECBAgAABAjkFFL459yY1AQIECBAgQIAAAQIECBAgQIAAAQIEOgGFb0diQIAAAQIECBAgQIAAAQIECBAgQIAAgZwCCt+ce5OaAAECBAgQIECAAAECBAgQIECAAAECnYDCtyMxIECAAAECBAgQIECAAAECBAgQIECAQE4BhW/OvUlNgAABAgQIECBAgAABAgQIECBAgACBTuDs7f2jGxoQIECAAAECBAgQIECAAAECBAgQIECAQD4Bb/jm25nEBAgQIECAAAECBAgQIECAAAECBAgQGAoofIcshgQIECBAgAABAgQIECBAgAABAgQIEMgnoPDNtzOJCRAgQIAAAQIECBAgQIAAAQIECBAgMBRQ+A5ZDAkQIECAAAECBAgQIECAAAECBAgQIJBPQOGbb2cSEyBAgAABAgQIECBAgAABAgQIECBAYCgwT9P0MrxjSIAAAQIECBAgQIAAAQIECBAgQIAAAQJpBKLrnWspz2kSC0qAAAECBAgQIECAAAECBAgQIECAAAECQ4HoetuRDnU/vGtIgAABAgQIECBAgAABAgQIECBAgAABAokE6n6ey7xLlFhUAgQIECBAgAABAgQIECBAgAABAgQIEBgIRNc71Vr/HI6vT+16NXjGiAABAgQIECBAgAABAgQIECBAgAABAgROXKCd3/tvu2yu40/b3qcy3Z14XvEIECBAgAABAgQIECBAgAABAgQIECBA4AeB6Hij621n+Jay3W4eW/P78MOzxgQIECBAgAABAgQIECBAgAABAgQIECBwogLR7UbHG/G+Ct/4siybe6VvSPgQIECAAAECBAgQIECAAAECBAgQIEAgh0B0utHtrmmn9ct6PRxe/9ZSH5zpu4q4EiBAgAABAgQIECBAgAABAgQIECBA4LQE4szeOMZhfbN3TdcVvnEj/sjteHy7/Syft6VMN+2hyza7WH/kSoAAAQIECBAgQIAAAQIECBAgQIAAAQK/J9AK3pdaynNrb/dzmXfLcr6LM3u/J/gP9JKLc31/C2cAAAAASUVORK5CYII="
  8445. /***/ })
  8446. }]);
  8447. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map