vendor.js 281 KB

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