vendor.js 564 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!************************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  5. \************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. /* WEBPACK VAR INJECTION */(function(global) {Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createPlugin = createPlugin;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 3));
  10. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 4);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function ownKeys(object, enumerableOnly) {var keys = Object.keys(object);if (Object.getOwnPropertySymbols) {var symbols = Object.getOwnPropertySymbols(object);if (enumerableOnly) symbols = symbols.filter(function (sym) {return Object.getOwnPropertyDescriptor(object, sym).enumerable;});keys.push.apply(keys, symbols);}return keys;}function _objectSpread(target) {for (var i = 1; i < arguments.length; i++) {var source = arguments[i] != null ? arguments[i] : {};if (i % 2) {ownKeys(Object(source), true).forEach(function (key) {_defineProperty(target, key, source[key]);});} else if (Object.getOwnPropertyDescriptors) {Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));} else {ownKeys(Object(source)).forEach(function (key) {Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));});}}return target;}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _defineProperty(obj, key, value) {if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toConsumableArray(arr) {return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();}function _nonIterableSpread() {throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _iterableToArray(iter) {if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);}function _arrayWithoutHoles(arr) {if (Array.isArray(arr)) return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}
  11. var realAtob;
  12. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  13. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  14. if (typeof atob !== 'function') {
  15. realAtob = function realAtob(str) {
  16. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  17. if (!b64re.test(str)) {throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");}
  18. // Adding the padding if missing, for semplicity
  19. str += '=='.slice(2 - (str.length & 3));
  20. var bitmap;var result = '';var r1;var r2;var i = 0;
  21. for (; i < str.length;) {
  22. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 |
  23. (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  24. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) :
  25. r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) :
  26. String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  27. }
  28. return result;
  29. };
  30. } else {
  31. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  32. realAtob = atob;
  33. }
  34. function b64DecodeUnicode(str) {
  35. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  36. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  37. }).join(''));
  38. }
  39. function getCurrentUserInfo() {
  40. var token = wx.getStorageSync('uni_id_token') || '';
  41. var tokenArr = token.split('.');
  42. if (!token || tokenArr.length !== 3) {
  43. return {
  44. uid: null,
  45. role: [],
  46. permission: [],
  47. tokenExpired: 0 };
  48. }
  49. var userInfo;
  50. try {
  51. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  52. } catch (error) {
  53. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  54. }
  55. userInfo.tokenExpired = userInfo.exp * 1000;
  56. delete userInfo.exp;
  57. delete userInfo.iat;
  58. return userInfo;
  59. }
  60. function uniIdMixin(Vue) {
  61. Vue.prototype.uniIDHasRole = function (roleId) {var _getCurrentUserInfo =
  62. getCurrentUserInfo(),role = _getCurrentUserInfo.role;
  63. return role.indexOf(roleId) > -1;
  64. };
  65. Vue.prototype.uniIDHasPermission = function (permissionId) {var _getCurrentUserInfo2 =
  66. getCurrentUserInfo(),permission = _getCurrentUserInfo2.permission;
  67. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  68. };
  69. Vue.prototype.uniIDTokenValid = function () {var _getCurrentUserInfo3 =
  70. getCurrentUserInfo(),tokenExpired = _getCurrentUserInfo3.tokenExpired;
  71. return tokenExpired > Date.now();
  72. };
  73. }
  74. var _toString = Object.prototype.toString;
  75. var hasOwnProperty = Object.prototype.hasOwnProperty;
  76. function isFn(fn) {
  77. return typeof fn === 'function';
  78. }
  79. function isStr(str) {
  80. return typeof str === 'string';
  81. }
  82. function isPlainObject(obj) {
  83. return _toString.call(obj) === '[object Object]';
  84. }
  85. function hasOwn(obj, key) {
  86. return hasOwnProperty.call(obj, key);
  87. }
  88. function noop() {}
  89. /**
  90. * Create a cached version of a pure function.
  91. */
  92. function cached(fn) {
  93. var cache = Object.create(null);
  94. return function cachedFn(str) {
  95. var hit = cache[str];
  96. return hit || (cache[str] = fn(str));
  97. };
  98. }
  99. /**
  100. * Camelize a hyphen-delimited string.
  101. */
  102. var camelizeRE = /-(\w)/g;
  103. var camelize = cached(function (str) {
  104. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  105. });
  106. var HOOKS = [
  107. 'invoke',
  108. 'success',
  109. 'fail',
  110. 'complete',
  111. 'returnValue'];
  112. var globalInterceptors = {};
  113. var scopedInterceptors = {};
  114. function mergeHook(parentVal, childVal) {
  115. var res = childVal ?
  116. parentVal ?
  117. parentVal.concat(childVal) :
  118. Array.isArray(childVal) ?
  119. childVal : [childVal] :
  120. parentVal;
  121. return res ?
  122. dedupeHooks(res) :
  123. res;
  124. }
  125. function dedupeHooks(hooks) {
  126. var res = [];
  127. for (var i = 0; i < hooks.length; i++) {
  128. if (res.indexOf(hooks[i]) === -1) {
  129. res.push(hooks[i]);
  130. }
  131. }
  132. return res;
  133. }
  134. function removeHook(hooks, hook) {
  135. var index = hooks.indexOf(hook);
  136. if (index !== -1) {
  137. hooks.splice(index, 1);
  138. }
  139. }
  140. function mergeInterceptorHook(interceptor, option) {
  141. Object.keys(option).forEach(function (hook) {
  142. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  143. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  144. }
  145. });
  146. }
  147. function removeInterceptorHook(interceptor, option) {
  148. if (!interceptor || !option) {
  149. return;
  150. }
  151. Object.keys(option).forEach(function (hook) {
  152. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  153. removeHook(interceptor[hook], option[hook]);
  154. }
  155. });
  156. }
  157. function addInterceptor(method, option) {
  158. if (typeof method === 'string' && isPlainObject(option)) {
  159. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  160. } else if (isPlainObject(method)) {
  161. mergeInterceptorHook(globalInterceptors, method);
  162. }
  163. }
  164. function removeInterceptor(method, option) {
  165. if (typeof method === 'string') {
  166. if (isPlainObject(option)) {
  167. removeInterceptorHook(scopedInterceptors[method], option);
  168. } else {
  169. delete scopedInterceptors[method];
  170. }
  171. } else if (isPlainObject(method)) {
  172. removeInterceptorHook(globalInterceptors, method);
  173. }
  174. }
  175. function wrapperHook(hook) {
  176. return function (data) {
  177. return hook(data) || data;
  178. };
  179. }
  180. function isPromise(obj) {
  181. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  182. }
  183. function queue(hooks, data) {
  184. var promise = false;
  185. for (var i = 0; i < hooks.length; i++) {
  186. var hook = hooks[i];
  187. if (promise) {
  188. promise = Promise.resolve(wrapperHook(hook));
  189. } else {
  190. var res = hook(data);
  191. if (isPromise(res)) {
  192. promise = Promise.resolve(res);
  193. }
  194. if (res === false) {
  195. return {
  196. then: function then() {} };
  197. }
  198. }
  199. }
  200. return promise || {
  201. then: function then(callback) {
  202. return callback(data);
  203. } };
  204. }
  205. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  206. ['success', 'fail', 'complete'].forEach(function (name) {
  207. if (Array.isArray(interceptor[name])) {
  208. var oldCallback = options[name];
  209. options[name] = function callbackInterceptor(res) {
  210. queue(interceptor[name], res).then(function (res) {
  211. /* eslint-disable no-mixed-operators */
  212. return isFn(oldCallback) && oldCallback(res) || res;
  213. });
  214. };
  215. }
  216. });
  217. return options;
  218. }
  219. function wrapperReturnValue(method, returnValue) {
  220. var returnValueHooks = [];
  221. if (Array.isArray(globalInterceptors.returnValue)) {
  222. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  223. }
  224. var interceptor = scopedInterceptors[method];
  225. if (interceptor && Array.isArray(interceptor.returnValue)) {
  226. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  227. }
  228. returnValueHooks.forEach(function (hook) {
  229. returnValue = hook(returnValue) || returnValue;
  230. });
  231. return returnValue;
  232. }
  233. function getApiInterceptorHooks(method) {
  234. var interceptor = Object.create(null);
  235. Object.keys(globalInterceptors).forEach(function (hook) {
  236. if (hook !== 'returnValue') {
  237. interceptor[hook] = globalInterceptors[hook].slice();
  238. }
  239. });
  240. var scopedInterceptor = scopedInterceptors[method];
  241. if (scopedInterceptor) {
  242. Object.keys(scopedInterceptor).forEach(function (hook) {
  243. if (hook !== 'returnValue') {
  244. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  245. }
  246. });
  247. }
  248. return interceptor;
  249. }
  250. function invokeApi(method, api, options) {for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {params[_key - 3] = arguments[_key];}
  251. var interceptor = getApiInterceptorHooks(method);
  252. if (interceptor && Object.keys(interceptor).length) {
  253. if (Array.isArray(interceptor.invoke)) {
  254. var res = queue(interceptor.invoke, options);
  255. return res.then(function (options) {
  256. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  257. });
  258. } else {
  259. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  260. }
  261. }
  262. return api.apply(void 0, [options].concat(params));
  263. }
  264. var promiseInterceptor = {
  265. returnValue: function returnValue(res) {
  266. if (!isPromise(res)) {
  267. return res;
  268. }
  269. return new Promise(function (resolve, reject) {
  270. res.then(function (res) {
  271. if (res[0]) {
  272. reject(res[0]);
  273. } else {
  274. resolve(res[1]);
  275. }
  276. });
  277. });
  278. } };
  279. var SYNC_API_RE =
  280. /^\$|Window$|WindowStyle$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale/;
  281. var CONTEXT_API_RE = /^create|Manager$/;
  282. // Context例外情况
  283. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  284. // 同步例外情况
  285. var ASYNC_API = ['createBLEConnection'];
  286. var CALLBACK_API_RE = /^on|^off/;
  287. function isContextApi(name) {
  288. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  289. }
  290. function isSyncApi(name) {
  291. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  292. }
  293. function isCallbackApi(name) {
  294. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  295. }
  296. function handlePromise(promise) {
  297. return promise.then(function (data) {
  298. return [null, data];
  299. }).
  300. catch(function (err) {return [err];});
  301. }
  302. function shouldPromise(name) {
  303. if (
  304. isContextApi(name) ||
  305. isSyncApi(name) ||
  306. isCallbackApi(name))
  307. {
  308. return false;
  309. }
  310. return true;
  311. }
  312. /* eslint-disable no-extend-native */
  313. if (!Promise.prototype.finally) {
  314. Promise.prototype.finally = function (callback) {
  315. var promise = this.constructor;
  316. return this.then(
  317. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  318. function (reason) {return promise.resolve(callback()).then(function () {
  319. throw reason;
  320. });});
  321. };
  322. }
  323. function promisify(name, api) {
  324. if (!shouldPromise(name)) {
  325. return api;
  326. }
  327. return function promiseApi() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {params[_key2 - 1] = arguments[_key2];}
  328. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  329. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  330. }
  331. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  332. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  333. success: resolve,
  334. fail: reject })].concat(
  335. params));
  336. })));
  337. };
  338. }
  339. var EPS = 1e-4;
  340. var BASE_DEVICE_WIDTH = 750;
  341. var isIOS = false;
  342. var deviceWidth = 0;
  343. var deviceDPR = 0;
  344. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  345. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  346. deviceWidth = windowWidth;
  347. deviceDPR = pixelRatio;
  348. isIOS = platform === 'ios';
  349. }
  350. function upx2px(number, newDeviceWidth) {
  351. if (deviceWidth === 0) {
  352. checkDeviceWidth();
  353. }
  354. number = Number(number);
  355. if (number === 0) {
  356. return 0;
  357. }
  358. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  359. if (result < 0) {
  360. result = -result;
  361. }
  362. result = Math.floor(result + EPS);
  363. if (result === 0) {
  364. if (deviceDPR === 1 || !isIOS) {
  365. result = 1;
  366. } else {
  367. result = 0.5;
  368. }
  369. }
  370. return number < 0 ? -result : result;
  371. }
  372. function getLocale() {
  373. // 优先使用 $locale
  374. var app = getApp({
  375. allowDefault: true });
  376. if (app && app.$vm) {
  377. return app.$vm.$locale;
  378. }
  379. return wx.getSystemInfoSync().language || 'zh-Hans';
  380. }
  381. function setLocale(locale) {
  382. var app = getApp();
  383. if (!app) {
  384. return false;
  385. }
  386. var oldLocale = app.$vm.$locale;
  387. if (oldLocale !== locale) {
  388. app.$vm.$locale = locale;
  389. onLocaleChangeCallbacks.forEach(function (fn) {return fn({
  390. locale: locale });});
  391. return true;
  392. }
  393. return false;
  394. }
  395. var onLocaleChangeCallbacks = [];
  396. function onLocaleChange(fn) {
  397. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  398. onLocaleChangeCallbacks.push(fn);
  399. }
  400. }
  401. if (typeof global !== 'undefined') {
  402. global.getLocale = getLocale;
  403. }
  404. var interceptors = {
  405. promiseInterceptor: promiseInterceptor };
  406. var baseApi = /*#__PURE__*/Object.freeze({
  407. __proto__: null,
  408. upx2px: upx2px,
  409. getLocale: getLocale,
  410. setLocale: setLocale,
  411. onLocaleChange: onLocaleChange,
  412. addInterceptor: addInterceptor,
  413. removeInterceptor: removeInterceptor,
  414. interceptors: interceptors });
  415. function findExistsPageIndex(url) {
  416. var pages = getCurrentPages();
  417. var len = pages.length;
  418. while (len--) {
  419. var page = pages[len];
  420. if (page.$page && page.$page.fullPath === url) {
  421. return len;
  422. }
  423. }
  424. return -1;
  425. }
  426. var redirectTo = {
  427. name: function name(fromArgs) {
  428. if (fromArgs.exists === 'back' && fromArgs.delta) {
  429. return 'navigateBack';
  430. }
  431. return 'redirectTo';
  432. },
  433. args: function args(fromArgs) {
  434. if (fromArgs.exists === 'back' && fromArgs.url) {
  435. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  436. if (existsPageIndex !== -1) {
  437. var delta = getCurrentPages().length - 1 - existsPageIndex;
  438. if (delta > 0) {
  439. fromArgs.delta = delta;
  440. }
  441. }
  442. }
  443. } };
  444. var previewImage = {
  445. args: function args(fromArgs) {
  446. var currentIndex = parseInt(fromArgs.current);
  447. if (isNaN(currentIndex)) {
  448. return;
  449. }
  450. var urls = fromArgs.urls;
  451. if (!Array.isArray(urls)) {
  452. return;
  453. }
  454. var len = urls.length;
  455. if (!len) {
  456. return;
  457. }
  458. if (currentIndex < 0) {
  459. currentIndex = 0;
  460. } else if (currentIndex >= len) {
  461. currentIndex = len - 1;
  462. }
  463. if (currentIndex > 0) {
  464. fromArgs.current = urls[currentIndex];
  465. fromArgs.urls = urls.filter(
  466. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  467. } else {
  468. fromArgs.current = urls[0];
  469. }
  470. return {
  471. indicator: false,
  472. loop: false };
  473. } };
  474. var UUID_KEY = '__DC_STAT_UUID';
  475. var deviceId;
  476. function addUuid(result) {
  477. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  478. if (!deviceId) {
  479. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  480. wx.setStorage({
  481. key: UUID_KEY,
  482. data: deviceId });
  483. }
  484. result.deviceId = deviceId;
  485. }
  486. function addSafeAreaInsets(result) {
  487. if (result.safeArea) {
  488. var safeArea = result.safeArea;
  489. result.safeAreaInsets = {
  490. top: safeArea.top,
  491. left: safeArea.left,
  492. right: result.windowWidth - safeArea.right,
  493. bottom: result.windowHeight - safeArea.bottom };
  494. }
  495. }
  496. var getSystemInfo = {
  497. returnValue: function returnValue(result) {
  498. addUuid(result);
  499. addSafeAreaInsets(result);
  500. } };
  501. // import navigateTo from 'uni-helpers/navigate-to'
  502. var protocols = {
  503. redirectTo: redirectTo,
  504. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  505. previewImage: previewImage,
  506. getSystemInfo: getSystemInfo,
  507. getSystemInfoSync: getSystemInfo };
  508. var todos = [
  509. 'vibrate',
  510. 'preloadPage',
  511. 'unPreloadPage',
  512. 'loadSubPackage'];
  513. var canIUses = [];
  514. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  515. function processCallback(methodName, method, returnValue) {
  516. return function (res) {
  517. return method(processReturnValue(methodName, res, returnValue));
  518. };
  519. }
  520. function processArgs(methodName, fromArgs) {var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  521. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  522. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  523. if (isFn(argsOption)) {
  524. argsOption = argsOption(fromArgs, toArgs) || {};
  525. }
  526. for (var key in fromArgs) {
  527. if (hasOwn(argsOption, key)) {
  528. var keyOption = argsOption[key];
  529. if (isFn(keyOption)) {
  530. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  531. }
  532. if (!keyOption) {// 不支持的参数
  533. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  534. } else if (isStr(keyOption)) {// 重写参数 key
  535. toArgs[keyOption] = fromArgs[key];
  536. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  537. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  538. }
  539. } else if (CALLBACKS.indexOf(key) !== -1) {
  540. if (isFn(fromArgs[key])) {
  541. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  542. }
  543. } else {
  544. if (!keepFromArgs) {
  545. toArgs[key] = fromArgs[key];
  546. }
  547. }
  548. }
  549. return toArgs;
  550. } else if (isFn(fromArgs)) {
  551. fromArgs = processCallback(methodName, fromArgs, returnValue);
  552. }
  553. return fromArgs;
  554. }
  555. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  556. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  557. res = protocols.returnValue(methodName, res);
  558. }
  559. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  560. }
  561. function wrapper(methodName, method) {
  562. if (hasOwn(protocols, methodName)) {
  563. var protocol = protocols[methodName];
  564. if (!protocol) {// 暂不支持的 api
  565. return function () {
  566. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  567. };
  568. }
  569. return function (arg1, arg2) {// 目前 api 最多两个参数
  570. var options = protocol;
  571. if (isFn(protocol)) {
  572. options = protocol(arg1);
  573. }
  574. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  575. var args = [arg1];
  576. if (typeof arg2 !== 'undefined') {
  577. args.push(arg2);
  578. }
  579. if (isFn(options.name)) {
  580. methodName = options.name(arg1);
  581. } else if (isStr(options.name)) {
  582. methodName = options.name;
  583. }
  584. var returnValue = wx[methodName].apply(wx, args);
  585. if (isSyncApi(methodName)) {// 同步 api
  586. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  587. }
  588. return returnValue;
  589. };
  590. }
  591. return method;
  592. }
  593. var todoApis = Object.create(null);
  594. var TODOS = [
  595. 'onTabBarMidButtonTap',
  596. 'subscribePush',
  597. 'unsubscribePush',
  598. 'onPush',
  599. 'offPush',
  600. 'share'];
  601. function createTodoApi(name) {
  602. return function todoApi(_ref)
  603. {var fail = _ref.fail,complete = _ref.complete;
  604. var res = {
  605. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  606. isFn(fail) && fail(res);
  607. isFn(complete) && complete(res);
  608. };
  609. }
  610. TODOS.forEach(function (name) {
  611. todoApis[name] = createTodoApi(name);
  612. });
  613. var providers = {
  614. oauth: ['weixin'],
  615. share: ['weixin'],
  616. payment: ['wxpay'],
  617. push: ['weixin'] };
  618. function getProvider(_ref2)
  619. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  620. var res = false;
  621. if (providers[service]) {
  622. res = {
  623. errMsg: 'getProvider:ok',
  624. service: service,
  625. provider: providers[service] };
  626. isFn(success) && success(res);
  627. } else {
  628. res = {
  629. errMsg: 'getProvider:fail service not found' };
  630. isFn(fail) && fail(res);
  631. }
  632. isFn(complete) && complete(res);
  633. }
  634. var extraApi = /*#__PURE__*/Object.freeze({
  635. __proto__: null,
  636. getProvider: getProvider });
  637. var getEmitter = function () {
  638. var Emitter;
  639. return function getUniEmitter() {
  640. if (!Emitter) {
  641. Emitter = new _vue.default();
  642. }
  643. return Emitter;
  644. };
  645. }();
  646. function apply(ctx, method, args) {
  647. return ctx[method].apply(ctx, args);
  648. }
  649. function $on() {
  650. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  651. }
  652. function $off() {
  653. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  654. }
  655. function $once() {
  656. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  657. }
  658. function $emit() {
  659. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  660. }
  661. var eventApi = /*#__PURE__*/Object.freeze({
  662. __proto__: null,
  663. $on: $on,
  664. $off: $off,
  665. $once: $once,
  666. $emit: $emit });
  667. var api = /*#__PURE__*/Object.freeze({
  668. __proto__: null });
  669. var MPPage = Page;
  670. var MPComponent = Component;
  671. var customizeRE = /:/g;
  672. var customize = cached(function (str) {
  673. return camelize(str.replace(customizeRE, '-'));
  674. });
  675. function initTriggerEvent(mpInstance) {
  676. var oldTriggerEvent = mpInstance.triggerEvent;
  677. 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];}
  678. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  679. };
  680. }
  681. function initHook(name, options, isComponent) {
  682. var oldHook = options[name];
  683. if (!oldHook) {
  684. options[name] = function () {
  685. initTriggerEvent(this);
  686. };
  687. } else {
  688. options[name] = function () {
  689. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  690. return oldHook.apply(this, args);
  691. };
  692. }
  693. }
  694. if (!MPPage.__$wrappered) {
  695. MPPage.__$wrappered = true;
  696. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  697. initHook('onLoad', options);
  698. return MPPage(options);
  699. };
  700. Page.after = MPPage.after;
  701. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  702. initHook('created', options);
  703. return MPComponent(options);
  704. };
  705. }
  706. var PAGE_EVENT_HOOKS = [
  707. 'onPullDownRefresh',
  708. 'onReachBottom',
  709. 'onAddToFavorites',
  710. 'onShareTimeline',
  711. 'onShareAppMessage',
  712. 'onPageScroll',
  713. 'onResize',
  714. 'onTabItemTap'];
  715. function initMocks(vm, mocks) {
  716. var mpInstance = vm.$mp[vm.mpType];
  717. mocks.forEach(function (mock) {
  718. if (hasOwn(mpInstance, mock)) {
  719. vm[mock] = mpInstance[mock];
  720. }
  721. });
  722. }
  723. function hasHook(hook, vueOptions) {
  724. if (!vueOptions) {
  725. return true;
  726. }
  727. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  728. return true;
  729. }
  730. vueOptions = vueOptions.default || vueOptions;
  731. if (isFn(vueOptions)) {
  732. if (isFn(vueOptions.extendOptions[hook])) {
  733. return true;
  734. }
  735. if (vueOptions.super &&
  736. vueOptions.super.options &&
  737. Array.isArray(vueOptions.super.options[hook])) {
  738. return true;
  739. }
  740. return false;
  741. }
  742. if (isFn(vueOptions[hook])) {
  743. return true;
  744. }
  745. var mixins = vueOptions.mixins;
  746. if (Array.isArray(mixins)) {
  747. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  748. }
  749. }
  750. function initHooks(mpOptions, hooks, vueOptions) {
  751. hooks.forEach(function (hook) {
  752. if (hasHook(hook, vueOptions)) {
  753. mpOptions[hook] = function (args) {
  754. return this.$vm && this.$vm.__call_hook(hook, args);
  755. };
  756. }
  757. });
  758. }
  759. function initVueComponent(Vue, vueOptions) {
  760. vueOptions = vueOptions.default || vueOptions;
  761. var VueComponent;
  762. if (isFn(vueOptions)) {
  763. VueComponent = vueOptions;
  764. } else {
  765. VueComponent = Vue.extend(vueOptions);
  766. }
  767. vueOptions = VueComponent.options;
  768. return [VueComponent, vueOptions];
  769. }
  770. function initSlots(vm, vueSlots) {
  771. if (Array.isArray(vueSlots) && vueSlots.length) {
  772. var $slots = Object.create(null);
  773. vueSlots.forEach(function (slotName) {
  774. $slots[slotName] = true;
  775. });
  776. vm.$scopedSlots = vm.$slots = $slots;
  777. }
  778. }
  779. function initVueIds(vueIds, mpInstance) {
  780. vueIds = (vueIds || '').split(',');
  781. var len = vueIds.length;
  782. if (len === 1) {
  783. mpInstance._$vueId = vueIds[0];
  784. } else if (len === 2) {
  785. mpInstance._$vueId = vueIds[0];
  786. mpInstance._$vuePid = vueIds[1];
  787. }
  788. }
  789. function initData(vueOptions, context) {
  790. var data = vueOptions.data || {};
  791. var methods = vueOptions.methods || {};
  792. if (typeof data === 'function') {
  793. try {
  794. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  795. } catch (e) {
  796. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"pet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  797. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  798. }
  799. }
  800. } else {
  801. try {
  802. // 对 data 格式化
  803. data = JSON.parse(JSON.stringify(data));
  804. } catch (e) {}
  805. }
  806. if (!isPlainObject(data)) {
  807. data = {};
  808. }
  809. Object.keys(methods).forEach(function (methodName) {
  810. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  811. data[methodName] = methods[methodName];
  812. }
  813. });
  814. return data;
  815. }
  816. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  817. function createObserver(name) {
  818. return function observer(newVal, oldVal) {
  819. if (this.$vm) {
  820. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  821. }
  822. };
  823. }
  824. function initBehaviors(vueOptions, initBehavior) {
  825. var vueBehaviors = vueOptions.behaviors;
  826. var vueExtends = vueOptions.extends;
  827. var vueMixins = vueOptions.mixins;
  828. var vueProps = vueOptions.props;
  829. if (!vueProps) {
  830. vueOptions.props = vueProps = [];
  831. }
  832. var behaviors = [];
  833. if (Array.isArray(vueBehaviors)) {
  834. vueBehaviors.forEach(function (behavior) {
  835. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  836. if (behavior === 'uni://form-field') {
  837. if (Array.isArray(vueProps)) {
  838. vueProps.push('name');
  839. vueProps.push('value');
  840. } else {
  841. vueProps.name = {
  842. type: String,
  843. default: '' };
  844. vueProps.value = {
  845. type: [String, Number, Boolean, Array, Object, Date],
  846. default: '' };
  847. }
  848. }
  849. });
  850. }
  851. if (isPlainObject(vueExtends) && vueExtends.props) {
  852. behaviors.push(
  853. initBehavior({
  854. properties: initProperties(vueExtends.props, true) }));
  855. }
  856. if (Array.isArray(vueMixins)) {
  857. vueMixins.forEach(function (vueMixin) {
  858. if (isPlainObject(vueMixin) && vueMixin.props) {
  859. behaviors.push(
  860. initBehavior({
  861. properties: initProperties(vueMixin.props, true) }));
  862. }
  863. });
  864. }
  865. return behaviors;
  866. }
  867. function parsePropType(key, type, defaultValue, file) {
  868. // [String]=>String
  869. if (Array.isArray(type) && type.length === 1) {
  870. return type[0];
  871. }
  872. return type;
  873. }
  874. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  875. var properties = {};
  876. if (!isBehavior) {
  877. properties.vueId = {
  878. type: String,
  879. value: '' };
  880. // 用于字节跳动小程序模拟抽象节点
  881. properties.generic = {
  882. type: Object,
  883. value: null };
  884. // scopedSlotsCompiler auto
  885. properties.scopedSlotsCompiler = {
  886. type: String,
  887. value: '' };
  888. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  889. type: null,
  890. value: [],
  891. observer: function observer(newVal, oldVal) {
  892. var $slots = Object.create(null);
  893. newVal.forEach(function (slotName) {
  894. $slots[slotName] = true;
  895. });
  896. this.setData({
  897. $slots: $slots });
  898. } };
  899. }
  900. if (Array.isArray(props)) {// ['title']
  901. props.forEach(function (key) {
  902. properties[key] = {
  903. type: null,
  904. observer: createObserver(key) };
  905. });
  906. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  907. Object.keys(props).forEach(function (key) {
  908. var opts = props[key];
  909. if (isPlainObject(opts)) {// title:{type:String,default:''}
  910. var value = opts.default;
  911. if (isFn(value)) {
  912. value = value();
  913. }
  914. opts.type = parsePropType(key, opts.type);
  915. properties[key] = {
  916. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  917. value: value,
  918. observer: createObserver(key) };
  919. } else {// content:String
  920. var type = parsePropType(key, opts);
  921. properties[key] = {
  922. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  923. observer: createObserver(key) };
  924. }
  925. });
  926. }
  927. return properties;
  928. }
  929. function wrapper$1(event) {
  930. // TODO 又得兼容 mpvue 的 mp 对象
  931. try {
  932. event.mp = JSON.parse(JSON.stringify(event));
  933. } catch (e) {}
  934. event.stopPropagation = noop;
  935. event.preventDefault = noop;
  936. event.target = event.target || {};
  937. if (!hasOwn(event, 'detail')) {
  938. event.detail = {};
  939. }
  940. if (hasOwn(event, 'markerId')) {
  941. event.detail = typeof event.detail === 'object' ? event.detail : {};
  942. event.detail.markerId = event.markerId;
  943. }
  944. if (isPlainObject(event.detail)) {
  945. event.target = Object.assign({}, event.target, event.detail);
  946. }
  947. return event;
  948. }
  949. function getExtraValue(vm, dataPathsArray) {
  950. var context = vm;
  951. dataPathsArray.forEach(function (dataPathArray) {
  952. var dataPath = dataPathArray[0];
  953. var value = dataPathArray[2];
  954. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  955. var propPath = dataPathArray[1];
  956. var valuePath = dataPathArray[3];
  957. var vFor;
  958. if (Number.isInteger(dataPath)) {
  959. vFor = dataPath;
  960. } else if (!dataPath) {
  961. vFor = context;
  962. } else if (typeof dataPath === 'string' && dataPath) {
  963. if (dataPath.indexOf('#s#') === 0) {
  964. vFor = dataPath.substr(3);
  965. } else {
  966. vFor = vm.__get_value(dataPath, context);
  967. }
  968. }
  969. if (Number.isInteger(vFor)) {
  970. context = value;
  971. } else if (!propPath) {
  972. context = vFor[value];
  973. } else {
  974. if (Array.isArray(vFor)) {
  975. context = vFor.find(function (vForItem) {
  976. return vm.__get_value(propPath, vForItem) === value;
  977. });
  978. } else if (isPlainObject(vFor)) {
  979. context = Object.keys(vFor).find(function (vForKey) {
  980. return vm.__get_value(propPath, vFor[vForKey]) === value;
  981. });
  982. } else {
  983. console.error('v-for 暂不支持循环数据:', vFor);
  984. }
  985. }
  986. if (valuePath) {
  987. context = vm.__get_value(valuePath, context);
  988. }
  989. }
  990. });
  991. return context;
  992. }
  993. function processEventExtra(vm, extra, event) {
  994. var extraObj = {};
  995. if (Array.isArray(extra) && extra.length) {
  996. /**
  997. *[
  998. * ['data.items', 'data.id', item.data.id],
  999. * ['metas', 'id', meta.id]
  1000. *],
  1001. *[
  1002. * ['data.items', 'data.id', item.data.id],
  1003. * ['metas', 'id', meta.id]
  1004. *],
  1005. *'test'
  1006. */
  1007. extra.forEach(function (dataPath, index) {
  1008. if (typeof dataPath === 'string') {
  1009. if (!dataPath) {// model,prop.sync
  1010. extraObj['$' + index] = vm;
  1011. } else {
  1012. if (dataPath === '$event') {// $event
  1013. extraObj['$' + index] = event;
  1014. } else if (dataPath === 'arguments') {
  1015. if (event.detail && event.detail.__args__) {
  1016. extraObj['$' + index] = event.detail.__args__;
  1017. } else {
  1018. extraObj['$' + index] = [event];
  1019. }
  1020. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  1021. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1022. } else {
  1023. extraObj['$' + index] = vm.__get_value(dataPath);
  1024. }
  1025. }
  1026. } else {
  1027. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1028. }
  1029. });
  1030. }
  1031. return extraObj;
  1032. }
  1033. function getObjByArray(arr) {
  1034. var obj = {};
  1035. for (var i = 1; i < arr.length; i++) {
  1036. var element = arr[i];
  1037. obj[element[0]] = element[1];
  1038. }
  1039. return obj;
  1040. }
  1041. 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;
  1042. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1043. if (isCustom) {// 自定义事件
  1044. isCustomMPEvent = event.currentTarget &&
  1045. event.currentTarget.dataset &&
  1046. event.currentTarget.dataset.comType === 'wx';
  1047. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  1048. if (isCustomMPEvent) {
  1049. return [event];
  1050. }
  1051. return event.detail.__args__ || event.detail;
  1052. }
  1053. }
  1054. var extraObj = processEventExtra(vm, extra, event);
  1055. var ret = [];
  1056. args.forEach(function (arg) {
  1057. if (arg === '$event') {
  1058. if (methodName === '__set_model' && !isCustom) {// input v-model value
  1059. ret.push(event.target.value);
  1060. } else {
  1061. if (isCustom && !isCustomMPEvent) {
  1062. ret.push(event.detail.__args__[0]);
  1063. } else {// wxcomponent 组件或内置组件
  1064. ret.push(event);
  1065. }
  1066. }
  1067. } else {
  1068. if (Array.isArray(arg) && arg[0] === 'o') {
  1069. ret.push(getObjByArray(arg));
  1070. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1071. ret.push(extraObj[arg]);
  1072. } else {
  1073. ret.push(arg);
  1074. }
  1075. }
  1076. });
  1077. return ret;
  1078. }
  1079. var ONCE = '~';
  1080. var CUSTOM = '^';
  1081. function isMatchEventType(eventType, optType) {
  1082. return eventType === optType ||
  1083. optType === 'regionchange' && (
  1084. eventType === 'begin' ||
  1085. eventType === 'end');
  1086. }
  1087. function getContextVm(vm) {
  1088. var $parent = vm.$parent;
  1089. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1090. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1091. $parent = $parent.$parent;
  1092. }
  1093. return $parent && $parent.$parent;
  1094. }
  1095. function handleEvent(event) {var _this = this;
  1096. event = wrapper$1(event);
  1097. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1098. var dataset = (event.currentTarget || event.target).dataset;
  1099. if (!dataset) {
  1100. return console.warn('事件信息不存在');
  1101. }
  1102. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1103. if (!eventOpts) {
  1104. return console.warn('事件信息不存在');
  1105. }
  1106. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1107. var eventType = event.type;
  1108. var ret = [];
  1109. eventOpts.forEach(function (eventOpt) {
  1110. var type = eventOpt[0];
  1111. var eventsArray = eventOpt[1];
  1112. var isCustom = type.charAt(0) === CUSTOM;
  1113. type = isCustom ? type.slice(1) : type;
  1114. var isOnce = type.charAt(0) === ONCE;
  1115. type = isOnce ? type.slice(1) : type;
  1116. if (eventsArray && isMatchEventType(eventType, type)) {
  1117. eventsArray.forEach(function (eventArray) {
  1118. var methodName = eventArray[0];
  1119. if (methodName) {
  1120. var handlerCtx = _this.$vm;
  1121. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1122. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1123. }
  1124. if (methodName === '$emit') {
  1125. handlerCtx.$emit.apply(handlerCtx,
  1126. processEventArgs(
  1127. _this.$vm,
  1128. event,
  1129. eventArray[1],
  1130. eventArray[2],
  1131. isCustom,
  1132. methodName));
  1133. return;
  1134. }
  1135. var handler = handlerCtx[methodName];
  1136. if (!isFn(handler)) {
  1137. throw new Error(" _vm.".concat(methodName, " is not a function"));
  1138. }
  1139. if (isOnce) {
  1140. if (handler.once) {
  1141. return;
  1142. }
  1143. handler.once = true;
  1144. }
  1145. var params = processEventArgs(
  1146. _this.$vm,
  1147. event,
  1148. eventArray[1],
  1149. eventArray[2],
  1150. isCustom,
  1151. methodName);
  1152. params = Array.isArray(params) ? params : [];
  1153. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1154. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1155. // eslint-disable-next-line no-sparse-arrays
  1156. params = params.concat([,,,,,,,,,, event]);
  1157. }
  1158. ret.push(handler.apply(handlerCtx, params));
  1159. }
  1160. });
  1161. }
  1162. });
  1163. if (
  1164. eventType === 'input' &&
  1165. ret.length === 1 &&
  1166. typeof ret[0] !== 'undefined')
  1167. {
  1168. return ret[0];
  1169. }
  1170. }
  1171. var locale;
  1172. {
  1173. locale = wx.getSystemInfoSync().language;
  1174. }
  1175. var i18n = (0, _uniI18n.initVueI18n)(
  1176. locale,
  1177. {});
  1178. var t = i18n.t;
  1179. var i18nMixin = i18n.mixin = {
  1180. beforeCreate: function beforeCreate() {var _this2 = this;
  1181. var unwatch = i18n.i18n.watchLocale(function () {
  1182. _this2.$forceUpdate();
  1183. });
  1184. this.$once('hook:beforeDestroy', function () {
  1185. unwatch();
  1186. });
  1187. },
  1188. methods: {
  1189. $$t: function $$t(key, values) {
  1190. return t(key, values);
  1191. } } };
  1192. var setLocale$1 = i18n.setLocale;
  1193. var getLocale$1 = i18n.getLocale;
  1194. function initAppLocale(Vue, appVm, locale) {
  1195. var state = Vue.observable({
  1196. locale: locale || i18n.getLocale() });
  1197. var localeWatchers = [];
  1198. appVm.$watchLocale = function (fn) {
  1199. localeWatchers.push(fn);
  1200. };
  1201. Object.defineProperty(appVm, '$locale', {
  1202. get: function get() {
  1203. return state.locale;
  1204. },
  1205. set: function set(v) {
  1206. state.locale = v;
  1207. localeWatchers.forEach(function (watch) {return watch(v);});
  1208. } });
  1209. }
  1210. var eventChannels = {};
  1211. var eventChannelStack = [];
  1212. function getEventChannel(id) {
  1213. if (id) {
  1214. var eventChannel = eventChannels[id];
  1215. delete eventChannels[id];
  1216. return eventChannel;
  1217. }
  1218. return eventChannelStack.shift();
  1219. }
  1220. var hooks = [
  1221. 'onShow',
  1222. 'onHide',
  1223. 'onError',
  1224. 'onPageNotFound',
  1225. 'onThemeChange',
  1226. 'onUnhandledRejection'];
  1227. function initEventChannel() {
  1228. _vue.default.prototype.getOpenerEventChannel = function () {
  1229. // 微信小程序使用自身getOpenerEventChannel
  1230. {
  1231. return this.$scope.getOpenerEventChannel();
  1232. }
  1233. };
  1234. var callHook = _vue.default.prototype.__call_hook;
  1235. _vue.default.prototype.__call_hook = function (hook, args) {
  1236. if (hook === 'onLoad' && args && args.__id__) {
  1237. this.__eventChannel__ = getEventChannel(args.__id__);
  1238. delete args.__id__;
  1239. }
  1240. return callHook.call(this, hook, args);
  1241. };
  1242. }
  1243. function initScopedSlotsParams() {
  1244. var center = {};
  1245. var parents = {};
  1246. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  1247. var has = center[vueId];
  1248. if (!has) {
  1249. parents[vueId] = this;
  1250. this.$on('hook:destroyed', function () {
  1251. delete parents[vueId];
  1252. });
  1253. }
  1254. return has;
  1255. };
  1256. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  1257. var data = center[vueId];
  1258. if (data) {
  1259. var object = data[name] || {};
  1260. return key ? object[key] : object;
  1261. } else {
  1262. parents[vueId] = this;
  1263. this.$on('hook:destroyed', function () {
  1264. delete parents[vueId];
  1265. });
  1266. }
  1267. };
  1268. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  1269. var vueIds = this.$options.propsData.vueId;
  1270. if (vueIds) {
  1271. var vueId = vueIds.split(',')[0];
  1272. var object = center[vueId] = center[vueId] || {};
  1273. object[name] = value;
  1274. if (parents[vueId]) {
  1275. parents[vueId].$forceUpdate();
  1276. }
  1277. }
  1278. };
  1279. _vue.default.mixin({
  1280. destroyed: function destroyed() {
  1281. var propsData = this.$options.propsData;
  1282. var vueId = propsData && propsData.vueId;
  1283. if (vueId) {
  1284. delete center[vueId];
  1285. delete parents[vueId];
  1286. }
  1287. } });
  1288. }
  1289. function parseBaseApp(vm, _ref3)
  1290. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1291. initEventChannel();
  1292. {
  1293. initScopedSlotsParams();
  1294. }
  1295. if (vm.$options.store) {
  1296. _vue.default.prototype.$store = vm.$options.store;
  1297. }
  1298. uniIdMixin(_vue.default);
  1299. _vue.default.prototype.mpHost = "mp-weixin";
  1300. _vue.default.mixin({
  1301. beforeCreate: function beforeCreate() {
  1302. if (!this.$options.mpType) {
  1303. return;
  1304. }
  1305. this.mpType = this.$options.mpType;
  1306. this.$mp = _defineProperty({
  1307. data: {} },
  1308. this.mpType, this.$options.mpInstance);
  1309. this.$scope = this.$options.mpInstance;
  1310. delete this.$options.mpType;
  1311. delete this.$options.mpInstance;
  1312. if (this.mpType === 'page' && typeof getApp === 'function') {// hack vue-i18n
  1313. var app = getApp();
  1314. if (app.$vm && app.$vm.$i18n) {
  1315. this._i18n = app.$vm.$i18n;
  1316. }
  1317. }
  1318. if (this.mpType !== 'app') {
  1319. initRefs(this);
  1320. initMocks(this, mocks);
  1321. }
  1322. } });
  1323. var appOptions = {
  1324. onLaunch: function onLaunch(args) {
  1325. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1326. return;
  1327. }
  1328. {
  1329. if (wx.canIUse && !wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1330. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1331. }
  1332. }
  1333. this.$vm = vm;
  1334. this.$vm.$mp = {
  1335. app: this };
  1336. this.$vm.$scope = this;
  1337. // vm 上也挂载 globalData
  1338. this.$vm.globalData = this.globalData;
  1339. this.$vm._isMounted = true;
  1340. this.$vm.__call_hook('mounted', args);
  1341. this.$vm.__call_hook('onLaunch', args);
  1342. } };
  1343. // 兼容旧版本 globalData
  1344. appOptions.globalData = vm.$options.globalData || {};
  1345. // 将 methods 中的方法挂在 getApp() 中
  1346. var methods = vm.$options.methods;
  1347. if (methods) {
  1348. Object.keys(methods).forEach(function (name) {
  1349. appOptions[name] = methods[name];
  1350. });
  1351. }
  1352. initAppLocale(_vue.default, vm, wx.getSystemInfoSync().language || 'zh-Hans');
  1353. initHooks(appOptions, hooks);
  1354. return appOptions;
  1355. }
  1356. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1357. function findVmByVueId(vm, vuePid) {
  1358. var $children = vm.$children;
  1359. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1360. for (var i = $children.length - 1; i >= 0; i--) {
  1361. var childVm = $children[i];
  1362. if (childVm.$scope._$vueId === vuePid) {
  1363. return childVm;
  1364. }
  1365. }
  1366. // 反向递归查找
  1367. var parentVm;
  1368. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1369. parentVm = findVmByVueId($children[_i], vuePid);
  1370. if (parentVm) {
  1371. return parentVm;
  1372. }
  1373. }
  1374. }
  1375. function initBehavior(options) {
  1376. return Behavior(options);
  1377. }
  1378. function isPage() {
  1379. return !!this.route;
  1380. }
  1381. function initRelation(detail) {
  1382. this.triggerEvent('__l', detail);
  1383. }
  1384. function selectAllComponents(mpInstance, selector, $refs) {
  1385. var components = mpInstance.selectAllComponents(selector);
  1386. components.forEach(function (component) {
  1387. var ref = component.dataset.ref;
  1388. $refs[ref] = component.$vm || component;
  1389. {
  1390. if (component.dataset.vueGeneric === 'scoped') {
  1391. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1392. selectAllComponents(scopedComponent, selector, $refs);
  1393. });
  1394. }
  1395. }
  1396. });
  1397. }
  1398. function initRefs(vm) {
  1399. var mpInstance = vm.$scope;
  1400. Object.defineProperty(vm, '$refs', {
  1401. get: function get() {
  1402. var $refs = {};
  1403. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1404. // TODO 暂不考虑 for 中的 scoped
  1405. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1406. forComponents.forEach(function (component) {
  1407. var ref = component.dataset.ref;
  1408. if (!$refs[ref]) {
  1409. $refs[ref] = [];
  1410. }
  1411. $refs[ref].push(component.$vm || component);
  1412. });
  1413. return $refs;
  1414. } });
  1415. }
  1416. function handleLink(event) {var _ref4 =
  1417. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1418. var parentVm;
  1419. if (vuePid) {
  1420. parentVm = findVmByVueId(this.$vm, vuePid);
  1421. }
  1422. if (!parentVm) {
  1423. parentVm = this.$vm;
  1424. }
  1425. vueOptions.parent = parentVm;
  1426. }
  1427. function parseApp(vm) {
  1428. return parseBaseApp(vm, {
  1429. mocks: mocks,
  1430. initRefs: initRefs });
  1431. }
  1432. function createApp(vm) {
  1433. App(parseApp(vm));
  1434. return vm;
  1435. }
  1436. var encodeReserveRE = /[!'()*]/g;
  1437. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1438. var commaRE = /%2C/g;
  1439. // fixed encodeURIComponent which is more conformant to RFC3986:
  1440. // - escapes [!'()*]
  1441. // - preserve commas
  1442. var encode = function encode(str) {return encodeURIComponent(str).
  1443. replace(encodeReserveRE, encodeReserveReplacer).
  1444. replace(commaRE, ',');};
  1445. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1446. var res = obj ? Object.keys(obj).map(function (key) {
  1447. var val = obj[key];
  1448. if (val === undefined) {
  1449. return '';
  1450. }
  1451. if (val === null) {
  1452. return encodeStr(key);
  1453. }
  1454. if (Array.isArray(val)) {
  1455. var result = [];
  1456. val.forEach(function (val2) {
  1457. if (val2 === undefined) {
  1458. return;
  1459. }
  1460. if (val2 === null) {
  1461. result.push(encodeStr(key));
  1462. } else {
  1463. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1464. }
  1465. });
  1466. return result.join('&');
  1467. }
  1468. return encodeStr(key) + '=' + encodeStr(val);
  1469. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1470. return res ? "?".concat(res) : '';
  1471. }
  1472. function parseBaseComponent(vueComponentOptions)
  1473. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1474. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1475. var options = _objectSpread({
  1476. multipleSlots: true,
  1477. addGlobalClass: true },
  1478. vueOptions.options || {});
  1479. {
  1480. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1481. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1482. Object.assign(options, vueOptions['mp-weixin'].options);
  1483. }
  1484. }
  1485. var componentOptions = {
  1486. options: options,
  1487. data: initData(vueOptions, _vue.default.prototype),
  1488. behaviors: initBehaviors(vueOptions, initBehavior),
  1489. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  1490. lifetimes: {
  1491. attached: function attached() {
  1492. var properties = this.properties;
  1493. var options = {
  1494. mpType: isPage.call(this) ? 'page' : 'component',
  1495. mpInstance: this,
  1496. propsData: properties };
  1497. initVueIds(properties.vueId, this);
  1498. // 处理父子关系
  1499. initRelation.call(this, {
  1500. vuePid: this._$vuePid,
  1501. vueOptions: options });
  1502. // 初始化 vue 实例
  1503. this.$vm = new VueComponent(options);
  1504. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1505. initSlots(this.$vm, properties.vueSlots);
  1506. // 触发首次 setData
  1507. this.$vm.$mount();
  1508. },
  1509. ready: function ready() {
  1510. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1511. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1512. if (this.$vm) {
  1513. this.$vm._isMounted = true;
  1514. this.$vm.__call_hook('mounted');
  1515. this.$vm.__call_hook('onReady');
  1516. }
  1517. },
  1518. detached: function detached() {
  1519. this.$vm && this.$vm.$destroy();
  1520. } },
  1521. pageLifetimes: {
  1522. show: function show(args) {
  1523. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1524. },
  1525. hide: function hide() {
  1526. this.$vm && this.$vm.__call_hook('onPageHide');
  1527. },
  1528. resize: function resize(size) {
  1529. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1530. } },
  1531. methods: {
  1532. __l: handleLink,
  1533. __e: handleEvent } };
  1534. // externalClasses
  1535. if (vueOptions.externalClasses) {
  1536. componentOptions.externalClasses = vueOptions.externalClasses;
  1537. }
  1538. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1539. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1540. componentOptions.methods[callMethod] = function (args) {
  1541. return this.$vm[callMethod](args);
  1542. };
  1543. });
  1544. }
  1545. if (isPage) {
  1546. return componentOptions;
  1547. }
  1548. return [componentOptions, VueComponent];
  1549. }
  1550. function parseComponent(vueComponentOptions) {
  1551. return parseBaseComponent(vueComponentOptions, {
  1552. isPage: isPage,
  1553. initRelation: initRelation });
  1554. }
  1555. var hooks$1 = [
  1556. 'onShow',
  1557. 'onHide',
  1558. 'onUnload'];
  1559. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1560. function parseBasePage(vuePageOptions, _ref6)
  1561. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1562. var pageOptions = parseComponent(vuePageOptions);
  1563. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1564. pageOptions.methods.onLoad = function (query) {
  1565. this.options = query;
  1566. var copyQuery = Object.assign({}, query);
  1567. delete copyQuery.__id__;
  1568. this.$page = {
  1569. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1570. this.$vm.$mp.query = query; // 兼容 mpvue
  1571. this.$vm.__call_hook('onLoad', query);
  1572. };
  1573. return pageOptions;
  1574. }
  1575. function parsePage(vuePageOptions) {
  1576. return parseBasePage(vuePageOptions, {
  1577. isPage: isPage,
  1578. initRelation: initRelation });
  1579. }
  1580. function createPage(vuePageOptions) {
  1581. {
  1582. return Component(parsePage(vuePageOptions));
  1583. }
  1584. }
  1585. function createComponent(vueOptions) {
  1586. {
  1587. return Component(parseComponent(vueOptions));
  1588. }
  1589. }
  1590. function createSubpackageApp(vm) {
  1591. var appOptions = parseApp(vm);
  1592. var app = getApp({
  1593. allowDefault: true });
  1594. vm.$scope = app;
  1595. var globalData = app.globalData;
  1596. if (globalData) {
  1597. Object.keys(appOptions.globalData).forEach(function (name) {
  1598. if (!hasOwn(globalData, name)) {
  1599. globalData[name] = appOptions.globalData[name];
  1600. }
  1601. });
  1602. }
  1603. Object.keys(appOptions).forEach(function (name) {
  1604. if (!hasOwn(app, name)) {
  1605. app[name] = appOptions[name];
  1606. }
  1607. });
  1608. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1609. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1610. vm.__call_hook('onShow', args);
  1611. });
  1612. }
  1613. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1614. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1615. vm.__call_hook('onHide', args);
  1616. });
  1617. }
  1618. if (isFn(appOptions.onLaunch)) {
  1619. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1620. vm.__call_hook('onLaunch', args);
  1621. }
  1622. return vm;
  1623. }
  1624. function createPlugin(vm) {
  1625. var appOptions = parseApp(vm);
  1626. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1627. wx.onAppShow(function () {for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {args[_key7] = arguments[_key7];}
  1628. appOptions.onShow.apply(vm, args);
  1629. });
  1630. }
  1631. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1632. wx.onAppHide(function () {for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {args[_key8] = arguments[_key8];}
  1633. appOptions.onHide.apply(vm, args);
  1634. });
  1635. }
  1636. if (isFn(appOptions.onLaunch)) {
  1637. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1638. appOptions.onLaunch.call(vm, args);
  1639. }
  1640. return vm;
  1641. }
  1642. todos.forEach(function (todoApi) {
  1643. protocols[todoApi] = false;
  1644. });
  1645. canIUses.forEach(function (canIUseApi) {
  1646. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  1647. canIUseApi;
  1648. if (!wx.canIUse(apiName)) {
  1649. protocols[canIUseApi] = false;
  1650. }
  1651. });
  1652. var uni = {};
  1653. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  1654. uni = new Proxy({}, {
  1655. get: function get(target, name) {
  1656. if (hasOwn(target, name)) {
  1657. return target[name];
  1658. }
  1659. if (baseApi[name]) {
  1660. return baseApi[name];
  1661. }
  1662. if (api[name]) {
  1663. return promisify(name, api[name]);
  1664. }
  1665. {
  1666. if (extraApi[name]) {
  1667. return promisify(name, extraApi[name]);
  1668. }
  1669. if (todoApis[name]) {
  1670. return promisify(name, todoApis[name]);
  1671. }
  1672. }
  1673. if (eventApi[name]) {
  1674. return eventApi[name];
  1675. }
  1676. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  1677. return;
  1678. }
  1679. return promisify(name, wrapper(name, wx[name]));
  1680. },
  1681. set: function set(target, name, value) {
  1682. target[name] = value;
  1683. return true;
  1684. } });
  1685. } else {
  1686. Object.keys(baseApi).forEach(function (name) {
  1687. uni[name] = baseApi[name];
  1688. });
  1689. {
  1690. Object.keys(todoApis).forEach(function (name) {
  1691. uni[name] = promisify(name, todoApis[name]);
  1692. });
  1693. Object.keys(extraApi).forEach(function (name) {
  1694. uni[name] = promisify(name, todoApis[name]);
  1695. });
  1696. }
  1697. Object.keys(eventApi).forEach(function (name) {
  1698. uni[name] = eventApi[name];
  1699. });
  1700. Object.keys(api).forEach(function (name) {
  1701. uni[name] = promisify(name, api[name]);
  1702. });
  1703. Object.keys(wx).forEach(function (name) {
  1704. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  1705. uni[name] = promisify(name, wrapper(name, wx[name]));
  1706. }
  1707. });
  1708. }
  1709. wx.createApp = createApp;
  1710. wx.createPage = createPage;
  1711. wx.createComponent = createComponent;
  1712. wx.createSubpackageApp = createSubpackageApp;
  1713. wx.createPlugin = createPlugin;
  1714. var uni$1 = uni;var _default =
  1715. uni$1;exports.default = _default;
  1716. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  1717. /***/ }),
  1718. /***/ 11:
  1719. /*!**********************************************************************************************************!*\
  1720. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  1721. \**********************************************************************************************************/
  1722. /*! exports provided: default */
  1723. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1724. "use strict";
  1725. __webpack_require__.r(__webpack_exports__);
  1726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  1727. /* globals __VUE_SSR_CONTEXT__ */
  1728. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  1729. // This module is a runtime utility for cleaner component module output and will
  1730. // be included in the final webpack user bundle.
  1731. function normalizeComponent (
  1732. scriptExports,
  1733. render,
  1734. staticRenderFns,
  1735. functionalTemplate,
  1736. injectStyles,
  1737. scopeId,
  1738. moduleIdentifier, /* server only */
  1739. shadowMode, /* vue-cli only */
  1740. components, // fixed by xxxxxx auto components
  1741. renderjs // fixed by xxxxxx renderjs
  1742. ) {
  1743. // Vue.extend constructor export interop
  1744. var options = typeof scriptExports === 'function'
  1745. ? scriptExports.options
  1746. : scriptExports
  1747. // fixed by xxxxxx auto components
  1748. if (components) {
  1749. if (!options.components) {
  1750. options.components = {}
  1751. }
  1752. var hasOwn = Object.prototype.hasOwnProperty
  1753. for (var name in components) {
  1754. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  1755. options.components[name] = components[name]
  1756. }
  1757. }
  1758. }
  1759. // fixed by xxxxxx renderjs
  1760. if (renderjs) {
  1761. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  1762. this[renderjs.__module] = this
  1763. });
  1764. (options.mixins || (options.mixins = [])).push(renderjs)
  1765. }
  1766. // render functions
  1767. if (render) {
  1768. options.render = render
  1769. options.staticRenderFns = staticRenderFns
  1770. options._compiled = true
  1771. }
  1772. // functional template
  1773. if (functionalTemplate) {
  1774. options.functional = true
  1775. }
  1776. // scopedId
  1777. if (scopeId) {
  1778. options._scopeId = 'data-v-' + scopeId
  1779. }
  1780. var hook
  1781. if (moduleIdentifier) { // server build
  1782. hook = function (context) {
  1783. // 2.3 injection
  1784. context =
  1785. context || // cached call
  1786. (this.$vnode && this.$vnode.ssrContext) || // stateful
  1787. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  1788. // 2.2 with runInNewContext: true
  1789. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  1790. context = __VUE_SSR_CONTEXT__
  1791. }
  1792. // inject component styles
  1793. if (injectStyles) {
  1794. injectStyles.call(this, context)
  1795. }
  1796. // register component module identifier for async chunk inferrence
  1797. if (context && context._registeredComponents) {
  1798. context._registeredComponents.add(moduleIdentifier)
  1799. }
  1800. }
  1801. // used by ssr in case component is cached and beforeCreate
  1802. // never gets called
  1803. options._ssrRegister = hook
  1804. } else if (injectStyles) {
  1805. hook = shadowMode
  1806. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  1807. : injectStyles
  1808. }
  1809. if (hook) {
  1810. if (options.functional) {
  1811. // for template-only hot-reload because in that case the render fn doesn't
  1812. // go through the normalizer
  1813. options._injectStyles = hook
  1814. // register for functioal component in vue file
  1815. var originalRender = options.render
  1816. options.render = function renderWithStyleInjection (h, context) {
  1817. hook.call(context)
  1818. return originalRender(h, context)
  1819. }
  1820. } else {
  1821. // inject component registration as beforeCreate hook
  1822. var existing = options.beforeCreate
  1823. options.beforeCreate = existing
  1824. ? [].concat(existing, hook)
  1825. : [hook]
  1826. }
  1827. }
  1828. return {
  1829. exports: scriptExports,
  1830. options: options
  1831. }
  1832. }
  1833. /***/ }),
  1834. /***/ 12:
  1835. /*!******************************************************************!*\
  1836. !*** /Users/kiys/Desktop/parkService-wxapp/pet/utils/request.js ***!
  1837. \******************************************************************/
  1838. /*! no static exports found */
  1839. /***/ (function(module, exports, __webpack_require__) {
  1840. "use strict";
  1841. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 13));
  1842. var _auth = __webpack_require__(/*! ./auth */ 16);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}
  1843. var baseUrl = 'http://pet.hdlkeji.com/api';function
  1844. request(_x, _x2, _x3, _x4) {return _request.apply(this, arguments);}function _request() {_request = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(mehtod, params, type, callBack) {var header, http, promise;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
  1845. //创建一个名为request请求的方法函数
  1846. if (!type) {
  1847. type = 'GET';
  1848. }
  1849. header = {
  1850. //设置请求头信息
  1851. 'token': (0, _auth.getToken)(),
  1852. 'X-Requested-With': 'XMLHttpRequest',
  1853. "Accept": "application/json",
  1854. "Content-Type": "application/json; charset=UTF-8" };
  1855. http = {
  1856. url: baseUrl + mehtod,
  1857. data: params,
  1858. method: type,
  1859. header: header };
  1860. promise = new Promise(function (resolve, reject) {
  1861. uni.request(http).then(function (res) {
  1862. console.log(res);
  1863. var newdata = res[1].data; // if (newdata.code == 403) {
  1864. if (res[1].data.code == 0) {
  1865. //如果错误码为 -1 提示
  1866. uni.showToast({
  1867. title: res[1].data.msg,
  1868. icon: 'none' });
  1869. if (res[1].data.msg == "请先登录") {
  1870. setTimeout(function () {
  1871. uni.redirectTo({
  1872. url: '/pages/login/login' });
  1873. }, 0);
  1874. }
  1875. return;
  1876. }
  1877. resolve(res[1].data);
  1878. }).catch(function (err) {
  1879. reject(err);
  1880. console.log(err);
  1881. });
  1882. });return _context.abrupt("return",
  1883. promise);case 5:case "end":return _context.stop();}}}, _callee);}));return _request.apply(this, arguments);}var _default =
  1884. {
  1885. request: request };exports.default = _default;
  1886. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  1887. /***/ }),
  1888. /***/ 13:
  1889. /*!**********************************************************!*\
  1890. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  1891. \**********************************************************/
  1892. /*! no static exports found */
  1893. /***/ (function(module, exports, __webpack_require__) {
  1894. module.exports = __webpack_require__(/*! regenerator-runtime */ 14);
  1895. /***/ }),
  1896. /***/ 14:
  1897. /*!************************************************************!*\
  1898. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  1899. \************************************************************/
  1900. /*! no static exports found */
  1901. /***/ (function(module, exports, __webpack_require__) {
  1902. /**
  1903. * Copyright (c) 2014-present, Facebook, Inc.
  1904. *
  1905. * This source code is licensed under the MIT license found in the
  1906. * LICENSE file in the root directory of this source tree.
  1907. */
  1908. // This method of obtaining a reference to the global object needs to be
  1909. // kept identical to the way it is obtained in runtime.js
  1910. var g = (function() {
  1911. return this || (typeof self === "object" && self);
  1912. })() || Function("return this")();
  1913. // Use `getOwnPropertyNames` because not all browsers support calling
  1914. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  1915. var hadRuntime = g.regeneratorRuntime &&
  1916. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  1917. // Save the old regeneratorRuntime in case it needs to be restored later.
  1918. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  1919. // Force reevalutation of runtime.js.
  1920. g.regeneratorRuntime = undefined;
  1921. module.exports = __webpack_require__(/*! ./runtime */ 15);
  1922. if (hadRuntime) {
  1923. // Restore the original runtime.
  1924. g.regeneratorRuntime = oldRuntime;
  1925. } else {
  1926. // Remove the global property added by runtime.js.
  1927. try {
  1928. delete g.regeneratorRuntime;
  1929. } catch(e) {
  1930. g.regeneratorRuntime = undefined;
  1931. }
  1932. }
  1933. /***/ }),
  1934. /***/ 15:
  1935. /*!*****************************************************!*\
  1936. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  1937. \*****************************************************/
  1938. /*! no static exports found */
  1939. /***/ (function(module, exports) {
  1940. /**
  1941. * Copyright (c) 2014-present, Facebook, Inc.
  1942. *
  1943. * This source code is licensed under the MIT license found in the
  1944. * LICENSE file in the root directory of this source tree.
  1945. */
  1946. !(function(global) {
  1947. "use strict";
  1948. var Op = Object.prototype;
  1949. var hasOwn = Op.hasOwnProperty;
  1950. var undefined; // More compressible than void 0.
  1951. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  1952. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  1953. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  1954. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  1955. var inModule = typeof module === "object";
  1956. var runtime = global.regeneratorRuntime;
  1957. if (runtime) {
  1958. if (inModule) {
  1959. // If regeneratorRuntime is defined globally and we're in a module,
  1960. // make the exports object identical to regeneratorRuntime.
  1961. module.exports = runtime;
  1962. }
  1963. // Don't bother evaluating the rest of this file if the runtime was
  1964. // already defined globally.
  1965. return;
  1966. }
  1967. // Define the runtime globally (as expected by generated code) as either
  1968. // module.exports (if we're in a module) or a new, empty object.
  1969. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  1970. function wrap(innerFn, outerFn, self, tryLocsList) {
  1971. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  1972. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  1973. var generator = Object.create(protoGenerator.prototype);
  1974. var context = new Context(tryLocsList || []);
  1975. // The ._invoke method unifies the implementations of the .next,
  1976. // .throw, and .return methods.
  1977. generator._invoke = makeInvokeMethod(innerFn, self, context);
  1978. return generator;
  1979. }
  1980. runtime.wrap = wrap;
  1981. // Try/catch helper to minimize deoptimizations. Returns a completion
  1982. // record like context.tryEntries[i].completion. This interface could
  1983. // have been (and was previously) designed to take a closure to be
  1984. // invoked without arguments, but in all the cases we care about we
  1985. // already have an existing method we want to call, so there's no need
  1986. // to create a new function object. We can even get away with assuming
  1987. // the method takes exactly one argument, since that happens to be true
  1988. // in every case, so we don't have to touch the arguments object. The
  1989. // only additional allocation required is the completion record, which
  1990. // has a stable shape and so hopefully should be cheap to allocate.
  1991. function tryCatch(fn, obj, arg) {
  1992. try {
  1993. return { type: "normal", arg: fn.call(obj, arg) };
  1994. } catch (err) {
  1995. return { type: "throw", arg: err };
  1996. }
  1997. }
  1998. var GenStateSuspendedStart = "suspendedStart";
  1999. var GenStateSuspendedYield = "suspendedYield";
  2000. var GenStateExecuting = "executing";
  2001. var GenStateCompleted = "completed";
  2002. // Returning this object from the innerFn has the same effect as
  2003. // breaking out of the dispatch switch statement.
  2004. var ContinueSentinel = {};
  2005. // Dummy constructor functions that we use as the .constructor and
  2006. // .constructor.prototype properties for functions that return Generator
  2007. // objects. For full spec compliance, you may wish to configure your
  2008. // minifier not to mangle the names of these two functions.
  2009. function Generator() {}
  2010. function GeneratorFunction() {}
  2011. function GeneratorFunctionPrototype() {}
  2012. // This is a polyfill for %IteratorPrototype% for environments that
  2013. // don't natively support it.
  2014. var IteratorPrototype = {};
  2015. IteratorPrototype[iteratorSymbol] = function () {
  2016. return this;
  2017. };
  2018. var getProto = Object.getPrototypeOf;
  2019. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  2020. if (NativeIteratorPrototype &&
  2021. NativeIteratorPrototype !== Op &&
  2022. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  2023. // This environment has a native %IteratorPrototype%; use it instead
  2024. // of the polyfill.
  2025. IteratorPrototype = NativeIteratorPrototype;
  2026. }
  2027. var Gp = GeneratorFunctionPrototype.prototype =
  2028. Generator.prototype = Object.create(IteratorPrototype);
  2029. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  2030. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  2031. GeneratorFunctionPrototype[toStringTagSymbol] =
  2032. GeneratorFunction.displayName = "GeneratorFunction";
  2033. // Helper for defining the .next, .throw, and .return methods of the
  2034. // Iterator interface in terms of a single ._invoke method.
  2035. function defineIteratorMethods(prototype) {
  2036. ["next", "throw", "return"].forEach(function(method) {
  2037. prototype[method] = function(arg) {
  2038. return this._invoke(method, arg);
  2039. };
  2040. });
  2041. }
  2042. runtime.isGeneratorFunction = function(genFun) {
  2043. var ctor = typeof genFun === "function" && genFun.constructor;
  2044. return ctor
  2045. ? ctor === GeneratorFunction ||
  2046. // For the native GeneratorFunction constructor, the best we can
  2047. // do is to check its .name property.
  2048. (ctor.displayName || ctor.name) === "GeneratorFunction"
  2049. : false;
  2050. };
  2051. runtime.mark = function(genFun) {
  2052. if (Object.setPrototypeOf) {
  2053. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  2054. } else {
  2055. genFun.__proto__ = GeneratorFunctionPrototype;
  2056. if (!(toStringTagSymbol in genFun)) {
  2057. genFun[toStringTagSymbol] = "GeneratorFunction";
  2058. }
  2059. }
  2060. genFun.prototype = Object.create(Gp);
  2061. return genFun;
  2062. };
  2063. // Within the body of any async function, `await x` is transformed to
  2064. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  2065. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  2066. // meant to be awaited.
  2067. runtime.awrap = function(arg) {
  2068. return { __await: arg };
  2069. };
  2070. function AsyncIterator(generator) {
  2071. function invoke(method, arg, resolve, reject) {
  2072. var record = tryCatch(generator[method], generator, arg);
  2073. if (record.type === "throw") {
  2074. reject(record.arg);
  2075. } else {
  2076. var result = record.arg;
  2077. var value = result.value;
  2078. if (value &&
  2079. typeof value === "object" &&
  2080. hasOwn.call(value, "__await")) {
  2081. return Promise.resolve(value.__await).then(function(value) {
  2082. invoke("next", value, resolve, reject);
  2083. }, function(err) {
  2084. invoke("throw", err, resolve, reject);
  2085. });
  2086. }
  2087. return Promise.resolve(value).then(function(unwrapped) {
  2088. // When a yielded Promise is resolved, its final value becomes
  2089. // the .value of the Promise<{value,done}> result for the
  2090. // current iteration.
  2091. result.value = unwrapped;
  2092. resolve(result);
  2093. }, function(error) {
  2094. // If a rejected Promise was yielded, throw the rejection back
  2095. // into the async generator function so it can be handled there.
  2096. return invoke("throw", error, resolve, reject);
  2097. });
  2098. }
  2099. }
  2100. var previousPromise;
  2101. function enqueue(method, arg) {
  2102. function callInvokeWithMethodAndArg() {
  2103. return new Promise(function(resolve, reject) {
  2104. invoke(method, arg, resolve, reject);
  2105. });
  2106. }
  2107. return previousPromise =
  2108. // If enqueue has been called before, then we want to wait until
  2109. // all previous Promises have been resolved before calling invoke,
  2110. // so that results are always delivered in the correct order. If
  2111. // enqueue has not been called before, then it is important to
  2112. // call invoke immediately, without waiting on a callback to fire,
  2113. // so that the async generator function has the opportunity to do
  2114. // any necessary setup in a predictable way. This predictability
  2115. // is why the Promise constructor synchronously invokes its
  2116. // executor callback, and why async functions synchronously
  2117. // execute code before the first await. Since we implement simple
  2118. // async functions in terms of async generators, it is especially
  2119. // important to get this right, even though it requires care.
  2120. previousPromise ? previousPromise.then(
  2121. callInvokeWithMethodAndArg,
  2122. // Avoid propagating failures to Promises returned by later
  2123. // invocations of the iterator.
  2124. callInvokeWithMethodAndArg
  2125. ) : callInvokeWithMethodAndArg();
  2126. }
  2127. // Define the unified helper method that is used to implement .next,
  2128. // .throw, and .return (see defineIteratorMethods).
  2129. this._invoke = enqueue;
  2130. }
  2131. defineIteratorMethods(AsyncIterator.prototype);
  2132. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  2133. return this;
  2134. };
  2135. runtime.AsyncIterator = AsyncIterator;
  2136. // Note that simple async functions are implemented on top of
  2137. // AsyncIterator objects; they just return a Promise for the value of
  2138. // the final result produced by the iterator.
  2139. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  2140. var iter = new AsyncIterator(
  2141. wrap(innerFn, outerFn, self, tryLocsList)
  2142. );
  2143. return runtime.isGeneratorFunction(outerFn)
  2144. ? iter // If outerFn is a generator, return the full iterator.
  2145. : iter.next().then(function(result) {
  2146. return result.done ? result.value : iter.next();
  2147. });
  2148. };
  2149. function makeInvokeMethod(innerFn, self, context) {
  2150. var state = GenStateSuspendedStart;
  2151. return function invoke(method, arg) {
  2152. if (state === GenStateExecuting) {
  2153. throw new Error("Generator is already running");
  2154. }
  2155. if (state === GenStateCompleted) {
  2156. if (method === "throw") {
  2157. throw arg;
  2158. }
  2159. // Be forgiving, per 25.3.3.3.3 of the spec:
  2160. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  2161. return doneResult();
  2162. }
  2163. context.method = method;
  2164. context.arg = arg;
  2165. while (true) {
  2166. var delegate = context.delegate;
  2167. if (delegate) {
  2168. var delegateResult = maybeInvokeDelegate(delegate, context);
  2169. if (delegateResult) {
  2170. if (delegateResult === ContinueSentinel) continue;
  2171. return delegateResult;
  2172. }
  2173. }
  2174. if (context.method === "next") {
  2175. // Setting context._sent for legacy support of Babel's
  2176. // function.sent implementation.
  2177. context.sent = context._sent = context.arg;
  2178. } else if (context.method === "throw") {
  2179. if (state === GenStateSuspendedStart) {
  2180. state = GenStateCompleted;
  2181. throw context.arg;
  2182. }
  2183. context.dispatchException(context.arg);
  2184. } else if (context.method === "return") {
  2185. context.abrupt("return", context.arg);
  2186. }
  2187. state = GenStateExecuting;
  2188. var record = tryCatch(innerFn, self, context);
  2189. if (record.type === "normal") {
  2190. // If an exception is thrown from innerFn, we leave state ===
  2191. // GenStateExecuting and loop back for another invocation.
  2192. state = context.done
  2193. ? GenStateCompleted
  2194. : GenStateSuspendedYield;
  2195. if (record.arg === ContinueSentinel) {
  2196. continue;
  2197. }
  2198. return {
  2199. value: record.arg,
  2200. done: context.done
  2201. };
  2202. } else if (record.type === "throw") {
  2203. state = GenStateCompleted;
  2204. // Dispatch the exception by looping back around to the
  2205. // context.dispatchException(context.arg) call above.
  2206. context.method = "throw";
  2207. context.arg = record.arg;
  2208. }
  2209. }
  2210. };
  2211. }
  2212. // Call delegate.iterator[context.method](context.arg) and handle the
  2213. // result, either by returning a { value, done } result from the
  2214. // delegate iterator, or by modifying context.method and context.arg,
  2215. // setting context.delegate to null, and returning the ContinueSentinel.
  2216. function maybeInvokeDelegate(delegate, context) {
  2217. var method = delegate.iterator[context.method];
  2218. if (method === undefined) {
  2219. // A .throw or .return when the delegate iterator has no .throw
  2220. // method always terminates the yield* loop.
  2221. context.delegate = null;
  2222. if (context.method === "throw") {
  2223. if (delegate.iterator.return) {
  2224. // If the delegate iterator has a return method, give it a
  2225. // chance to clean up.
  2226. context.method = "return";
  2227. context.arg = undefined;
  2228. maybeInvokeDelegate(delegate, context);
  2229. if (context.method === "throw") {
  2230. // If maybeInvokeDelegate(context) changed context.method from
  2231. // "return" to "throw", let that override the TypeError below.
  2232. return ContinueSentinel;
  2233. }
  2234. }
  2235. context.method = "throw";
  2236. context.arg = new TypeError(
  2237. "The iterator does not provide a 'throw' method");
  2238. }
  2239. return ContinueSentinel;
  2240. }
  2241. var record = tryCatch(method, delegate.iterator, context.arg);
  2242. if (record.type === "throw") {
  2243. context.method = "throw";
  2244. context.arg = record.arg;
  2245. context.delegate = null;
  2246. return ContinueSentinel;
  2247. }
  2248. var info = record.arg;
  2249. if (! info) {
  2250. context.method = "throw";
  2251. context.arg = new TypeError("iterator result is not an object");
  2252. context.delegate = null;
  2253. return ContinueSentinel;
  2254. }
  2255. if (info.done) {
  2256. // Assign the result of the finished delegate to the temporary
  2257. // variable specified by delegate.resultName (see delegateYield).
  2258. context[delegate.resultName] = info.value;
  2259. // Resume execution at the desired location (see delegateYield).
  2260. context.next = delegate.nextLoc;
  2261. // If context.method was "throw" but the delegate handled the
  2262. // exception, let the outer generator proceed normally. If
  2263. // context.method was "next", forget context.arg since it has been
  2264. // "consumed" by the delegate iterator. If context.method was
  2265. // "return", allow the original .return call to continue in the
  2266. // outer generator.
  2267. if (context.method !== "return") {
  2268. context.method = "next";
  2269. context.arg = undefined;
  2270. }
  2271. } else {
  2272. // Re-yield the result returned by the delegate method.
  2273. return info;
  2274. }
  2275. // The delegate iterator is finished, so forget it and continue with
  2276. // the outer generator.
  2277. context.delegate = null;
  2278. return ContinueSentinel;
  2279. }
  2280. // Define Generator.prototype.{next,throw,return} in terms of the
  2281. // unified ._invoke helper method.
  2282. defineIteratorMethods(Gp);
  2283. Gp[toStringTagSymbol] = "Generator";
  2284. // A Generator should always return itself as the iterator object when the
  2285. // @@iterator function is called on it. Some browsers' implementations of the
  2286. // iterator prototype chain incorrectly implement this, causing the Generator
  2287. // object to not be returned from this call. This ensures that doesn't happen.
  2288. // See https://github.com/facebook/regenerator/issues/274 for more details.
  2289. Gp[iteratorSymbol] = function() {
  2290. return this;
  2291. };
  2292. Gp.toString = function() {
  2293. return "[object Generator]";
  2294. };
  2295. function pushTryEntry(locs) {
  2296. var entry = { tryLoc: locs[0] };
  2297. if (1 in locs) {
  2298. entry.catchLoc = locs[1];
  2299. }
  2300. if (2 in locs) {
  2301. entry.finallyLoc = locs[2];
  2302. entry.afterLoc = locs[3];
  2303. }
  2304. this.tryEntries.push(entry);
  2305. }
  2306. function resetTryEntry(entry) {
  2307. var record = entry.completion || {};
  2308. record.type = "normal";
  2309. delete record.arg;
  2310. entry.completion = record;
  2311. }
  2312. function Context(tryLocsList) {
  2313. // The root entry object (effectively a try statement without a catch
  2314. // or a finally block) gives us a place to store values thrown from
  2315. // locations where there is no enclosing try statement.
  2316. this.tryEntries = [{ tryLoc: "root" }];
  2317. tryLocsList.forEach(pushTryEntry, this);
  2318. this.reset(true);
  2319. }
  2320. runtime.keys = function(object) {
  2321. var keys = [];
  2322. for (var key in object) {
  2323. keys.push(key);
  2324. }
  2325. keys.reverse();
  2326. // Rather than returning an object with a next method, we keep
  2327. // things simple and return the next function itself.
  2328. return function next() {
  2329. while (keys.length) {
  2330. var key = keys.pop();
  2331. if (key in object) {
  2332. next.value = key;
  2333. next.done = false;
  2334. return next;
  2335. }
  2336. }
  2337. // To avoid creating an additional object, we just hang the .value
  2338. // and .done properties off the next function object itself. This
  2339. // also ensures that the minifier will not anonymize the function.
  2340. next.done = true;
  2341. return next;
  2342. };
  2343. };
  2344. function values(iterable) {
  2345. if (iterable) {
  2346. var iteratorMethod = iterable[iteratorSymbol];
  2347. if (iteratorMethod) {
  2348. return iteratorMethod.call(iterable);
  2349. }
  2350. if (typeof iterable.next === "function") {
  2351. return iterable;
  2352. }
  2353. if (!isNaN(iterable.length)) {
  2354. var i = -1, next = function next() {
  2355. while (++i < iterable.length) {
  2356. if (hasOwn.call(iterable, i)) {
  2357. next.value = iterable[i];
  2358. next.done = false;
  2359. return next;
  2360. }
  2361. }
  2362. next.value = undefined;
  2363. next.done = true;
  2364. return next;
  2365. };
  2366. return next.next = next;
  2367. }
  2368. }
  2369. // Return an iterator with no values.
  2370. return { next: doneResult };
  2371. }
  2372. runtime.values = values;
  2373. function doneResult() {
  2374. return { value: undefined, done: true };
  2375. }
  2376. Context.prototype = {
  2377. constructor: Context,
  2378. reset: function(skipTempReset) {
  2379. this.prev = 0;
  2380. this.next = 0;
  2381. // Resetting context._sent for legacy support of Babel's
  2382. // function.sent implementation.
  2383. this.sent = this._sent = undefined;
  2384. this.done = false;
  2385. this.delegate = null;
  2386. this.method = "next";
  2387. this.arg = undefined;
  2388. this.tryEntries.forEach(resetTryEntry);
  2389. if (!skipTempReset) {
  2390. for (var name in this) {
  2391. // Not sure about the optimal order of these conditions:
  2392. if (name.charAt(0) === "t" &&
  2393. hasOwn.call(this, name) &&
  2394. !isNaN(+name.slice(1))) {
  2395. this[name] = undefined;
  2396. }
  2397. }
  2398. }
  2399. },
  2400. stop: function() {
  2401. this.done = true;
  2402. var rootEntry = this.tryEntries[0];
  2403. var rootRecord = rootEntry.completion;
  2404. if (rootRecord.type === "throw") {
  2405. throw rootRecord.arg;
  2406. }
  2407. return this.rval;
  2408. },
  2409. dispatchException: function(exception) {
  2410. if (this.done) {
  2411. throw exception;
  2412. }
  2413. var context = this;
  2414. function handle(loc, caught) {
  2415. record.type = "throw";
  2416. record.arg = exception;
  2417. context.next = loc;
  2418. if (caught) {
  2419. // If the dispatched exception was caught by a catch block,
  2420. // then let that catch block handle the exception normally.
  2421. context.method = "next";
  2422. context.arg = undefined;
  2423. }
  2424. return !! caught;
  2425. }
  2426. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  2427. var entry = this.tryEntries[i];
  2428. var record = entry.completion;
  2429. if (entry.tryLoc === "root") {
  2430. // Exception thrown outside of any try block that could handle
  2431. // it, so set the completion value of the entire function to
  2432. // throw the exception.
  2433. return handle("end");
  2434. }
  2435. if (entry.tryLoc <= this.prev) {
  2436. var hasCatch = hasOwn.call(entry, "catchLoc");
  2437. var hasFinally = hasOwn.call(entry, "finallyLoc");
  2438. if (hasCatch && hasFinally) {
  2439. if (this.prev < entry.catchLoc) {
  2440. return handle(entry.catchLoc, true);
  2441. } else if (this.prev < entry.finallyLoc) {
  2442. return handle(entry.finallyLoc);
  2443. }
  2444. } else if (hasCatch) {
  2445. if (this.prev < entry.catchLoc) {
  2446. return handle(entry.catchLoc, true);
  2447. }
  2448. } else if (hasFinally) {
  2449. if (this.prev < entry.finallyLoc) {
  2450. return handle(entry.finallyLoc);
  2451. }
  2452. } else {
  2453. throw new Error("try statement without catch or finally");
  2454. }
  2455. }
  2456. }
  2457. },
  2458. abrupt: function(type, arg) {
  2459. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  2460. var entry = this.tryEntries[i];
  2461. if (entry.tryLoc <= this.prev &&
  2462. hasOwn.call(entry, "finallyLoc") &&
  2463. this.prev < entry.finallyLoc) {
  2464. var finallyEntry = entry;
  2465. break;
  2466. }
  2467. }
  2468. if (finallyEntry &&
  2469. (type === "break" ||
  2470. type === "continue") &&
  2471. finallyEntry.tryLoc <= arg &&
  2472. arg <= finallyEntry.finallyLoc) {
  2473. // Ignore the finally entry if control is not jumping to a
  2474. // location outside the try/catch block.
  2475. finallyEntry = null;
  2476. }
  2477. var record = finallyEntry ? finallyEntry.completion : {};
  2478. record.type = type;
  2479. record.arg = arg;
  2480. if (finallyEntry) {
  2481. this.method = "next";
  2482. this.next = finallyEntry.finallyLoc;
  2483. return ContinueSentinel;
  2484. }
  2485. return this.complete(record);
  2486. },
  2487. complete: function(record, afterLoc) {
  2488. if (record.type === "throw") {
  2489. throw record.arg;
  2490. }
  2491. if (record.type === "break" ||
  2492. record.type === "continue") {
  2493. this.next = record.arg;
  2494. } else if (record.type === "return") {
  2495. this.rval = this.arg = record.arg;
  2496. this.method = "return";
  2497. this.next = "end";
  2498. } else if (record.type === "normal" && afterLoc) {
  2499. this.next = afterLoc;
  2500. }
  2501. return ContinueSentinel;
  2502. },
  2503. finish: function(finallyLoc) {
  2504. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  2505. var entry = this.tryEntries[i];
  2506. if (entry.finallyLoc === finallyLoc) {
  2507. this.complete(entry.completion, entry.afterLoc);
  2508. resetTryEntry(entry);
  2509. return ContinueSentinel;
  2510. }
  2511. }
  2512. },
  2513. "catch": function(tryLoc) {
  2514. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  2515. var entry = this.tryEntries[i];
  2516. if (entry.tryLoc === tryLoc) {
  2517. var record = entry.completion;
  2518. if (record.type === "throw") {
  2519. var thrown = record.arg;
  2520. resetTryEntry(entry);
  2521. }
  2522. return thrown;
  2523. }
  2524. }
  2525. // The context.catch method must only be called with a location
  2526. // argument that corresponds to a known catch block.
  2527. throw new Error("illegal catch attempt");
  2528. },
  2529. delegateYield: function(iterable, resultName, nextLoc) {
  2530. this.delegate = {
  2531. iterator: values(iterable),
  2532. resultName: resultName,
  2533. nextLoc: nextLoc
  2534. };
  2535. if (this.method === "next") {
  2536. // Deliberately forget the last sent value so that we don't
  2537. // accidentally pass it on to the delegate.
  2538. this.arg = undefined;
  2539. }
  2540. return ContinueSentinel;
  2541. }
  2542. };
  2543. })(
  2544. // In sloppy mode, unbound `this` refers to the global object, fallback to
  2545. // Function constructor if we're in global strict mode. That is sadly a form
  2546. // of indirect eval which violates Content Security Policy.
  2547. (function() {
  2548. return this || (typeof self === "object" && self);
  2549. })() || Function("return this")()
  2550. );
  2551. /***/ }),
  2552. /***/ 16:
  2553. /*!***************************************************************!*\
  2554. !*** /Users/kiys/Desktop/parkService-wxapp/pet/utils/auth.js ***!
  2555. \***************************************************************/
  2556. /*! no static exports found */
  2557. /***/ (function(module, exports, __webpack_require__) {
  2558. "use strict";
  2559. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.setToken = setToken;exports.getToken = getToken;exports.removeToken = removeToken;exports.setUserInfo = setUserInfo;exports.getUserInfo = getUserInfo;exports.removeUserInfo = removeUserInfo;exports.setConfig = setConfig;exports.getConfig = getConfig; // 该文件用来存储localStorage 本地缓存的方法
  2560. /**
  2561. * 操作用户token
  2562. */
  2563. function setToken(value) {
  2564. uni.setStorageSync('token', value);
  2565. console.log('存储用户信息成功');
  2566. }
  2567. function getToken() {
  2568. var token = uni.getStorageSync('token');
  2569. return token;
  2570. }
  2571. function removeToken() {
  2572. uni.removeStorageSync('token');
  2573. }
  2574. /**
  2575. * 操作用户信息
  2576. */
  2577. function setUserInfo(value) {
  2578. try {
  2579. var newValue = JSON.stringify(value);
  2580. uni.setStorageSync('userinfo', newValue);
  2581. console.log('存储用户信息成功');
  2582. } catch (e) {
  2583. return;
  2584. }
  2585. }
  2586. function getUserInfo() {
  2587. var userinfo = uni.getStorageSync('userinfo');
  2588. console.log('userinfo', userinfo);
  2589. if (userinfo) {
  2590. return JSON.parse(userinfo);
  2591. }
  2592. }
  2593. function removeUserInfo() {
  2594. uni.removeStorageSync('userinfo');
  2595. }
  2596. /**
  2597. * 项目主题颜色
  2598. */
  2599. function setConfig(value) {
  2600. try {
  2601. var config = JSON.stringify(value);
  2602. uni.setStorageSync('config', config);
  2603. console.log('存储主题成功');
  2604. } catch (e) {
  2605. return;
  2606. }
  2607. }
  2608. function getConfig() {
  2609. var config = uni.getStorageSync('config');
  2610. if (config) {
  2611. return JSON.parse(config);
  2612. }
  2613. }
  2614. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  2615. /***/ }),
  2616. /***/ 162:
  2617. /*!***************************************************************!*\
  2618. !*** /Users/kiys/Desktop/parkService-wxapp/pet/utils/area.js ***!
  2619. \***************************************************************/
  2620. /*! no static exports found */
  2621. /***/ (function(module, exports) {
  2622. var area = [
  2623. {
  2624. index: "A",
  2625. child: [
  2626. {
  2627. title: " 安阳",
  2628. weight: 20 },
  2629. {
  2630. title: " 鞍山",
  2631. weight: 30 },
  2632. {
  2633. title: " 安庆",
  2634. weight: 40 },
  2635. {
  2636. title: " 安康",
  2637. weight: 50 },
  2638. {
  2639. title: " 阿坝",
  2640. weight: 60 },
  2641. {
  2642. title: " 阿拉善",
  2643. weight: 70 },
  2644. {
  2645. title: " 阿克苏",
  2646. weight: 80 },
  2647. {
  2648. title: " 阿勒泰",
  2649. weight: 90 },
  2650. {
  2651. title: " 安顺",
  2652. weight: 100 }] },
  2653. {
  2654. idnex: "B",
  2655. child: [
  2656. {
  2657. title: " 北京",
  2658. weight: 110 },
  2659. {
  2660. title: " 蚌埠",
  2661. weight: 120 },
  2662. {
  2663. title: " 保定",
  2664. weight: 130 },
  2665. {
  2666. title: " 本溪",
  2667. weight: 140 },
  2668. {
  2669. title: " 包头",
  2670. weight: 150 },
  2671. {
  2672. title: " 亳州",
  2673. weight: 160 },
  2674. {
  2675. title: " 滨州",
  2676. weight: 170 },
  2677. {
  2678. title: " 白城",
  2679. weight: 180 },
  2680. {
  2681. title: " 百色",
  2682. weight: 190 },
  2683. {
  2684. title: " 白山",
  2685. weight: 200 },
  2686. {
  2687. title: " 白银",
  2688. weight: 210 },
  2689. {
  2690. title: " 宝鸡",
  2691. weight: 220 },
  2692. {
  2693. title: " 保山",
  2694. weight: 230 },
  2695. {
  2696. title: " 巴彦淖尔",
  2697. weight: 240 },
  2698. {
  2699. title: " 巴中",
  2700. weight: 250 },
  2701. {
  2702. title: " 北海",
  2703. weight: 260 },
  2704. {
  2705. title: " 毕节",
  2706. weight: 270 },
  2707. {
  2708. title: " 博尔塔拉",
  2709. weight: 280 },
  2710. {
  2711. title: " 巴音郭楞",
  2712. weight: 290 }] },
  2713. {
  2714. index: "C",
  2715. child: [
  2716. {
  2717. title: " 重庆",
  2718. weight: 300 },
  2719. {
  2720. title: " 成都",
  2721. weight: 310 },
  2722. {
  2723. title: " 长春",
  2724. weight: 320 },
  2725. {
  2726. title: " 长沙",
  2727. weight: 330 },
  2728. {
  2729. title: " 承德",
  2730. weight: 340 },
  2731. {
  2732. title: " 常州",
  2733. weight: 350 },
  2734. {
  2735. title: " 滁州",
  2736. weight: 360 },
  2737. {
  2738. title: " 巢湖",
  2739. weight: 370 },
  2740. {
  2741. title: " 沧州",
  2742. weight: 380 },
  2743. {
  2744. title: " 常德",
  2745. weight: 390 },
  2746. {
  2747. title: " 昌吉",
  2748. weight: 400 },
  2749. {
  2750. title: " 长治",
  2751. weight: 410 },
  2752. {
  2753. title: " 朝阳",
  2754. weight: 420 },
  2755. {
  2756. title: " 潮州",
  2757. weight: 430 },
  2758. {
  2759. title: " 郴州",
  2760. weight: 440 },
  2761. {
  2762. title: " 楚雄",
  2763. weight: 450 },
  2764. {
  2765. title: " 赤峰",
  2766. weight: 460 },
  2767. {
  2768. title: " 池州",
  2769. weight: 470 },
  2770. {
  2771. title: " 崇左",
  2772. weight: 480 }] },
  2773. {
  2774. idnex: "D",
  2775. child: [
  2776. {
  2777. title: " 大连",
  2778. weight: 490 },
  2779. {
  2780. title: " 东莞",
  2781. weight: 500 },
  2782. {
  2783. title: " 德州",
  2784. weight: 510 },
  2785. {
  2786. title: " 丹东",
  2787. weight: 520 },
  2788. {
  2789. title: " 大理",
  2790. weight: 530 },
  2791. {
  2792. title: " 大庆",
  2793. weight: 540 },
  2794. {
  2795. title: " 大同",
  2796. weight: 550 },
  2797. {
  2798. title: " 达州",
  2799. weight: 560 },
  2800. {
  2801. title: " 德宏",
  2802. weight: 570 },
  2803. {
  2804. title: " 德阳",
  2805. weight: 580 },
  2806. {
  2807. title: " 定西",
  2808. weight: 590 },
  2809. {
  2810. title: " 迪庆",
  2811. weight: 600 },
  2812. {
  2813. title: " 东营",
  2814. weight: 610 }] },
  2815. {
  2816. index: "E",
  2817. child: [
  2818. {
  2819. title: " 鄂州",
  2820. weight: 620 },
  2821. {
  2822. title: " 鄂尔多斯",
  2823. weight: 630 },
  2824. {
  2825. title: " 恩施",
  2826. weight: 640 }] },
  2827. {
  2828. index: "F",
  2829. child: [
  2830. {
  2831. title: " 福州",
  2832. weight: 650 },
  2833. {
  2834. title: " 阜阳",
  2835. weight: 660 },
  2836. {
  2837. title: " 佛山",
  2838. weight: 670 },
  2839. {
  2840. title: " 抚州",
  2841. weight: 680 },
  2842. {
  2843. title: " 防城港",
  2844. weight: 690 },
  2845. {
  2846. title: " 抚顺",
  2847. weight: 700 },
  2848. {
  2849. title: " 阜新",
  2850. weight: 710 }] },
  2851. {
  2852. index: "G",
  2853. child: [
  2854. {
  2855. title: " 广州",
  2856. weight: 720 },
  2857. {
  2858. title: " 贵阳",
  2859. weight: 730 },
  2860. {
  2861. title: " 桂林",
  2862. weight: 740 },
  2863. {
  2864. title: " 赣州",
  2865. weight: 750 },
  2866. {
  2867. title: " 广元",
  2868. weight: 760 },
  2869. {
  2870. title: " 甘孜",
  2871. weight: 770 },
  2872. {
  2873. title: " 广安",
  2874. weight: 780 },
  2875. {
  2876. title: " 贵港",
  2877. weight: 790 },
  2878. {
  2879. title: " 固原",
  2880. weight: 800 }] },
  2881. {
  2882. index: "H",
  2883. child: [
  2884. {
  2885. title: " 杭州",
  2886. weight: 810 },
  2887. {
  2888. title: " 合肥",
  2889. weight: 820 },
  2890. {
  2891. title: " 哈尔滨",
  2892. weight: 830 },
  2893. {
  2894. title: " 海口",
  2895. weight: 840 },
  2896. {
  2897. title: " 衡阳",
  2898. weight: 850 },
  2899. {
  2900. title: " 邯郸",
  2901. weight: 860 },
  2902. {
  2903. title: " 呼和浩特",
  2904. weight: 870 },
  2905. {
  2906. title: " 黄冈",
  2907. weight: 880 },
  2908. {
  2909. title: " 黄石",
  2910. weight: 890 },
  2911. {
  2912. title: " 湖州",
  2913. weight: 900 },
  2914. {
  2915. title: " 衡水",
  2916. weight: 910 },
  2917. {
  2918. title: " 呼伦贝尔",
  2919. weight: 920 },
  2920. {
  2921. title: " 黄山",
  2922. weight: 930 },
  2923. {
  2924. title: " 海北",
  2925. weight: 940 },
  2926. {
  2927. title: " 海西",
  2928. weight: 950 },
  2929. {
  2930. title: " 哈密",
  2931. weight: 960 },
  2932. {
  2933. title: " 汉中",
  2934. weight: 970 },
  2935. {
  2936. title: " 鹤壁",
  2937. weight: 980 },
  2938. {
  2939. title: " 河池",
  2940. weight: 990 },
  2941. {
  2942. title: " 鹤岗",
  2943. weight: 1000 },
  2944. {
  2945. title: " 黑河",
  2946. weight: 1010 },
  2947. {
  2948. title: " 和田",
  2949. weight: 1020 },
  2950. {
  2951. title: " 河源",
  2952. weight: 1030 },
  2953. {
  2954. title: " 菏泽",
  2955. weight: 1040 },
  2956. {
  2957. title: " 贺州",
  2958. weight: 1050 },
  2959. {
  2960. title: " 红河",
  2961. weight: 1060 },
  2962. {
  2963. title: " 淮安",
  2964. weight: 1070 },
  2965. {
  2966. title: " 淮北",
  2967. weight: 1080 },
  2968. {
  2969. title: " 怀化",
  2970. weight: 1090 },
  2971. {
  2972. title: " 淮南",
  2973. weight: 1100 },
  2974. {
  2975. title: " 惠州",
  2976. weight: 1110 },
  2977. {
  2978. title: " 葫芦岛",
  2979. weight: 1120 }] },
  2980. {
  2981. index: "I",
  2982. child: [] },
  2983. {
  2984. index: "J",
  2985. child: [
  2986. {
  2987. title: " 吉林",
  2988. weight: 1130 },
  2989. {
  2990. title: " 济南",
  2991. weight: 1140 },
  2992. {
  2993. title: " 九江",
  2994. weight: 1150 },
  2995. {
  2996. title: " 揭阳",
  2997. weight: 1160 },
  2998. {
  2999. title: " 酒泉",
  3000. weight: 1170 },
  3001. {
  3002. title: " 嘉兴",
  3003. weight: 1180 },
  3004. {
  3005. title: " 荆州",
  3006. weight: 1190 },
  3007. {
  3008. title: " 锦州",
  3009. weight: 1200 },
  3010. {
  3011. title: " 佳木斯",
  3012. weight: 1210 },
  3013. {
  3014. title: " 吉安",
  3015. weight: 1220 },
  3016. {
  3017. title: " 江门",
  3018. weight: 1230 },
  3019. {
  3020. title: " 焦作",
  3021. weight: 1240 },
  3022. {
  3023. title: " 嘉峪关",
  3024. weight: 1250 },
  3025. {
  3026. title: " 金昌",
  3027. weight: 1260 },
  3028. {
  3029. title: " 晋城",
  3030. weight: 1270 },
  3031. {
  3032. title: " 景德镇",
  3033. weight: 1280 },
  3034. {
  3035. title: " 荆门",
  3036. weight: 1290 },
  3037. {
  3038. title: " 金华",
  3039. weight: 1300 },
  3040. {
  3041. title: " 济宁",
  3042. weight: 1310 },
  3043. {
  3044. title: " 晋中",
  3045. weight: 1320 },
  3046. {
  3047. title: " 鸡西",
  3048. weight: 1330 },
  3049. {
  3050. title: " 济源",
  3051. weight: 1340 }] },
  3052. {
  3053. index: "K",
  3054. child: [
  3055. {
  3056. title: " 昆明",
  3057. weight: 1350 },
  3058. {
  3059. title: " 开封",
  3060. weight: 1360 },
  3061. {
  3062. title: " 喀什",
  3063. weight: 1370 },
  3064. {
  3065. title: " 克拉玛依",
  3066. weight: 1380 },
  3067. {
  3068. title: " 克孜勒苏",
  3069. weight: 1390 }] },
  3070. {
  3071. index: "L",
  3072. child: [
  3073. {
  3074. title: " 兰州",
  3075. weight: 1400 },
  3076. {
  3077. title: " 廊坊",
  3078. weight: 1410 },
  3079. {
  3080. title: " 六安",
  3081. weight: 1420 },
  3082. {
  3083. title: " 乐山",
  3084. weight: 1430 },
  3085. {
  3086. title: " 来宾",
  3087. weight: 1440 },
  3088. {
  3089. title: " 柳州",
  3090. weight: 1450 },
  3091. {
  3092. title: " 聊城",
  3093. weight: 1460 },
  3094. {
  3095. title: " 莱芜",
  3096. weight: 1470 },
  3097. {
  3098. title: " 拉萨",
  3099. weight: 1480 },
  3100. {
  3101. title: " 洛阳",
  3102. weight: 1490 },
  3103. {
  3104. title: " 凉山",
  3105. weight: 1500 },
  3106. {
  3107. title: " 连云港",
  3108. weight: 1510 },
  3109. {
  3110. title: " 辽阳",
  3111. weight: 1520 },
  3112. {
  3113. title: " 辽源",
  3114. weight: 1530 },
  3115. {
  3116. title: " 丽江",
  3117. weight: 1540 },
  3118. {
  3119. title: " 临沧",
  3120. weight: 1550 },
  3121. {
  3122. title: " 临汾",
  3123. weight: 1560 },
  3124. {
  3125. title: " 临夏",
  3126. weight: 1570 },
  3127. {
  3128. title: " 临沂",
  3129. weight: 1580 },
  3130. {
  3131. title: " 林芝",
  3132. weight: 1590 },
  3133. {
  3134. title: " 丽水",
  3135. weight: 1600 },
  3136. {
  3137. title: " 六盘水",
  3138. weight: 1610 },
  3139. {
  3140. title: " 陇南",
  3141. weight: 1620 },
  3142. {
  3143. title: " 龙岩",
  3144. weight: 1630 },
  3145. {
  3146. title: " 娄底",
  3147. weight: 1640 },
  3148. {
  3149. title: " 漯河",
  3150. weight: 1650 },
  3151. {
  3152. title: " 泸州",
  3153. weight: 1660 },
  3154. {
  3155. title: " 吕梁",
  3156. weight: 1670 }] },
  3157. {
  3158. index: "M",
  3159. child: [
  3160. {
  3161. title: " 绵阳",
  3162. weight: 1680 },
  3163. {
  3164. title: " 马鞍山",
  3165. weight: 1690 },
  3166. {
  3167. title: " 茂名",
  3168. weight: 1700 },
  3169. {
  3170. title: " 眉山",
  3171. weight: 1710 },
  3172. {
  3173. title: " 梅州",
  3174. weight: 1720 },
  3175. {
  3176. title: " 牡丹江",
  3177. weight: 1730 }] },
  3178. {
  3179. index: "N",
  3180. child: [
  3181. {
  3182. title: " 南京",
  3183. weight: 1740 },
  3184. {
  3185. title: " 南昌",
  3186. weight: 1750 },
  3187. {
  3188. title: " 南宁",
  3189. weight: 1760 },
  3190. {
  3191. title: " 宁波",
  3192. weight: 1770 },
  3193. {
  3194. title: " 南通",
  3195. weight: 1780 },
  3196. {
  3197. title: " 南充",
  3198. weight: 1790 },
  3199. {
  3200. title: " 南平",
  3201. weight: 1800 },
  3202. {
  3203. title: " 南阳",
  3204. weight: 1810 },
  3205. {
  3206. title: " 内江",
  3207. weight: 1820 },
  3208. {
  3209. title: " 宁德",
  3210. weight: 1830 }] },
  3211. {
  3212. index: "O",
  3213. child: [] },
  3214. {
  3215. index: "P",
  3216. child: [
  3217. {
  3218. title: " 莆田",
  3219. weight: 1840 },
  3220. {
  3221. title: " 濮阳",
  3222. weight: 1850 },
  3223. {
  3224. title: " 盘锦",
  3225. weight: 1860 },
  3226. {
  3227. title: " 攀枝花",
  3228. weight: 1870 },
  3229. {
  3230. title: " 平顶山",
  3231. weight: 1880 },
  3232. {
  3233. title: " 平凉",
  3234. weight: 1890 },
  3235. {
  3236. title: " 萍乡",
  3237. weight: 1900 },
  3238. {
  3239. title: " 普洱",
  3240. weight: 1910 }] },
  3241. {
  3242. index: "Q",
  3243. child: [
  3244. {
  3245. title: " 青岛",
  3246. weight: 1920 },
  3247. {
  3248. title: " 秦皇岛",
  3249. weight: 1930 },
  3250. {
  3251. title: " 泉州",
  3252. weight: 1940 },
  3253. {
  3254. title: " 衢州",
  3255. weight: 1950 },
  3256. {
  3257. title: " 曲靖",
  3258. weight: 1960 },
  3259. {
  3260. title: " 黔东南",
  3261. weight: 1970 },
  3262. {
  3263. title: " 黔南",
  3264. weight: 1980 },
  3265. {
  3266. title: " 黔西南",
  3267. weight: 1990 },
  3268. {
  3269. title: " 庆阳",
  3270. weight: 2000 },
  3271. {
  3272. title: " 清远",
  3273. weight: 2010 },
  3274. {
  3275. title: " 钦州",
  3276. weight: 2020 },
  3277. {
  3278. title: " 齐齐哈尔",
  3279. weight: 2030 },
  3280. {
  3281. title: " 七台河",
  3282. weight: 2040 }] },
  3283. {
  3284. index: "R",
  3285. child: [
  3286. {
  3287. title: " 日照",
  3288. weight: 2050 },
  3289. {
  3290. title: " 日喀则",
  3291. weight: 2060 }] },
  3292. {
  3293. index: "S",
  3294. child: [
  3295. {
  3296. title: " 上海",
  3297. weight: 2070 },
  3298. {
  3299. title: " 深圳",
  3300. weight: 2080 },
  3301. {
  3302. title: " 沈阳",
  3303. weight: 2090 },
  3304. {
  3305. title: " 石家庄",
  3306. weight: 2100 },
  3307. {
  3308. title: " 三门峡",
  3309. weight: 2110 },
  3310. {
  3311. title: " 三明",
  3312. weight: 2120 },
  3313. {
  3314. title: " 三亚",
  3315. weight: 2130 },
  3316. {
  3317. title: " 商洛",
  3318. weight: 2140 },
  3319. {
  3320. title: " 商丘",
  3321. weight: 2150 },
  3322. {
  3323. title: " 苏州",
  3324. weight: 2160 },
  3325. {
  3326. title: " 汕头",
  3327. weight: 2170 },
  3328. {
  3329. title: " 汕尾",
  3330. weight: 2180 },
  3331. {
  3332. title: " 十堰",
  3333. weight: 2190 },
  3334. {
  3335. title: " 遂宁",
  3336. weight: 2200 },
  3337. {
  3338. title: " 上饶",
  3339. weight: 2210 },
  3340. {
  3341. title: " 绍兴",
  3342. weight: 2220 },
  3343. {
  3344. title: " 邵阳",
  3345. weight: 2230 },
  3346. {
  3347. title: " 双鸭山",
  3348. weight: 2240 },
  3349. {
  3350. title: " 朔州",
  3351. weight: 2250 },
  3352. {
  3353. title: " 四平",
  3354. weight: 2260 },
  3355. {
  3356. title: " 松原",
  3357. weight: 2270 },
  3358. {
  3359. title: " 绥化",
  3360. weight: 2280 },
  3361. {
  3362. title: " 随州",
  3363. weight: 2290 },
  3364. {
  3365. title: " 宿迁",
  3366. weight: 2300 },
  3367. {
  3368. title: " 宿州",
  3369. weight: 2310 },
  3370. {
  3371. title: " 石嘴山",
  3372. weight: 2320 },
  3373. {
  3374. title: " 韶关",
  3375. weight: 2330 }] },
  3376. {
  3377. index: "T",
  3378. child: [
  3379. {
  3380. title: " 天津",
  3381. weight: 2340 },
  3382. {
  3383. title: " 太原",
  3384. weight: 2350 },
  3385. {
  3386. title: " 唐山",
  3387. weight: 2360 },
  3388. {
  3389. title: " 台州",
  3390. weight: 2370 },
  3391. {
  3392. title: " 塔城",
  3393. weight: 2380 },
  3394. {
  3395. title: " 泰安",
  3396. weight: 2390 },
  3397. {
  3398. title: " 铁岭",
  3399. weight: 2400 },
  3400. {
  3401. title: " 泰州",
  3402. weight: 2410 },
  3403. {
  3404. title: " 天水",
  3405. weight: 2420 },
  3406. {
  3407. title: " 铜川",
  3408. weight: 2430 },
  3409. {
  3410. title: " 通化",
  3411. weight: 2440 },
  3412. {
  3413. title: " 通辽",
  3414. weight: 2450 },
  3415. {
  3416. title: " 铜陵",
  3417. weight: 2460 },
  3418. {
  3419. title: " 铜仁",
  3420. weight: 2470 },
  3421. {
  3422. title: " 吐鲁番",
  3423. weight: 2480 }] },
  3424. {
  3425. index: "U",
  3426. child: [] },
  3427. {
  3428. index: "V",
  3429. child: [] },
  3430. {
  3431. index: "W",
  3432. child: [
  3433. {
  3434. title: " 武汉",
  3435. weight: 2490 },
  3436. {
  3437. title: " 温州",
  3438. weight: 2500 },
  3439. {
  3440. title: " 无锡",
  3441. weight: 2510 },
  3442. {
  3443. title: " 乌鲁木齐",
  3444. weight: 2520 },
  3445. {
  3446. title: " 芜湖",
  3447. weight: 2530 },
  3448. {
  3449. title: " 潍坊",
  3450. weight: 2540 },
  3451. {
  3452. title: " 威海",
  3453. weight: 2550 },
  3454. {
  3455. title: " 渭南",
  3456. weight: 2560 },
  3457. {
  3458. title: " 文山",
  3459. weight: 2570 },
  3460. {
  3461. title: " 乌海",
  3462. weight: 2580 },
  3463. {
  3464. title: " 乌兰察布",
  3465. weight: 2590 },
  3466. {
  3467. title: " 武威",
  3468. weight: 2600 },
  3469. {
  3470. title: " 吴忠",
  3471. weight: 2610 },
  3472. {
  3473. title: " 梧州",
  3474. weight: 2620 }] },
  3475. {
  3476. index: "X",
  3477. child: [
  3478. {
  3479. title: " 西安",
  3480. weight: 2630 },
  3481. {
  3482. title: " 厦门",
  3483. weight: 2640 },
  3484. {
  3485. title: " 湘潭",
  3486. weight: 2650 },
  3487. {
  3488. title: " 徐州",
  3489. weight: 2660 },
  3490. {
  3491. title: " 许昌",
  3492. weight: 2670 },
  3493. {
  3494. title: " 信阳",
  3495. weight: 2680 },
  3496. {
  3497. title: " 西宁",
  3498. weight: 2690 },
  3499. {
  3500. title: " 咸阳",
  3501. weight: 2700 },
  3502. {
  3503. title: " 宣城",
  3504. weight: 2710 },
  3505. {
  3506. title: " 新乡",
  3507. weight: 2720 },
  3508. {
  3509. title: " 湘西",
  3510. weight: 2730 },
  3511. {
  3512. title: " 襄阳",
  3513. weight: 2740 },
  3514. {
  3515. title: " 咸宁",
  3516. weight: 2750 },
  3517. {
  3518. title: " 孝感",
  3519. weight: 2760 },
  3520. {
  3521. title: " 锡林郭勒",
  3522. weight: 2770 },
  3523. {
  3524. title: " 兴安",
  3525. weight: 2780 },
  3526. {
  3527. title: " 邢台",
  3528. weight: 2790 },
  3529. {
  3530. title: " 新余",
  3531. weight: 2800 },
  3532. {
  3533. title: " 忻州",
  3534. weight: 2810 },
  3535. {
  3536. title: " 西双版纳",
  3537. weight: 2820 },
  3538. {
  3539. title: " 香港",
  3540. weight: 2830 }] },
  3541. {
  3542. index: "Y",
  3543. child: [
  3544. {
  3545. title: " 扬州",
  3546. weight: 2840 },
  3547. {
  3548. title: " 银州",
  3549. weight: 2850 },
  3550. {
  3551. title: " 银川",
  3552. weight: 2860 },
  3553. {
  3554. title: " 宜昌",
  3555. weight: 2870 },
  3556. {
  3557. title: " 岳阳",
  3558. weight: 2880 },
  3559. {
  3560. title: " 榆林",
  3561. weight: 2890 },
  3562. {
  3563. title: " 烟台",
  3564. weight: 2900 },
  3565. {
  3566. title: " 雅安",
  3567. weight: 2910 },
  3568. {
  3569. title: " 延安",
  3570. weight: 2920 },
  3571. {
  3572. title: " 延安",
  3573. weight: 2930 },
  3574. {
  3575. title: " 延边",
  3576. weight: 2940 },
  3577. {
  3578. title: " 盐城",
  3579. weight: 2950 },
  3580. {
  3581. title: " 阳江",
  3582. weight: 2960 },
  3583. {
  3584. title: " 阳泉",
  3585. weight: 2970 },
  3586. {
  3587. title: " 宜宾",
  3588. weight: 2980 },
  3589. {
  3590. title: " 伊春",
  3591. weight: 2990 },
  3592. {
  3593. title: " 宜春",
  3594. weight: 3000 },
  3595. {
  3596. title: " 伊犁",
  3597. weight: 3010 },
  3598. {
  3599. title: " 营口",
  3600. weight: 3020 },
  3601. {
  3602. title: " 鹰潭",
  3603. weight: 3030 },
  3604. {
  3605. title: " 益阳",
  3606. weight: 3040 },
  3607. {
  3608. title: " 永州",
  3609. weight: 3050 },
  3610. {
  3611. title: " 玉林",
  3612. weight: 3060 },
  3613. {
  3614. title: " 运城",
  3615. weight: 3070 },
  3616. {
  3617. title: " 云浮",
  3618. weight: 3080 },
  3619. {
  3620. title: " 玉溪",
  3621. weight: 3090 }] },
  3622. {
  3623. index: "Z",
  3624. child: [
  3625. {
  3626. title: " 珠海",
  3627. weight: 3100 },
  3628. {
  3629. title: " 肇庆",
  3630. weight: 3110 },
  3631. {
  3632. title: " 张家口",
  3633. weight: 3120 },
  3634. {
  3635. title: " 中山",
  3636. weight: 3130 },
  3637. {
  3638. title: " 淄博",
  3639. weight: 3140 },
  3640. {
  3641. title: " 驻马店",
  3642. weight: 3150 },
  3643. {
  3644. title: " 枣庄",
  3645. weight: 3160 },
  3646. {
  3647. title: " 张家界",
  3648. weight: 3170 },
  3649. {
  3650. title: " 张掖",
  3651. weight: 3180 },
  3652. {
  3653. title: " 漳州",
  3654. weight: 3190 },
  3655. {
  3656. title: " 湛江",
  3657. weight: 3200 },
  3658. {
  3659. title: " 昭通",
  3660. weight: 3210 },
  3661. {
  3662. title: " 郑州",
  3663. weight: 3220 },
  3664. {
  3665. title: " 镇江",
  3666. weight: 3230 },
  3667. {
  3668. title: " 中卫",
  3669. weight: 3240 },
  3670. {
  3671. title: " 周口",
  3672. weight: 3250 },
  3673. {
  3674. title: " 舟山",
  3675. weight: 3260 },
  3676. {
  3677. title: " 株洲",
  3678. weight: 3270 },
  3679. {
  3680. title: " 自贡",
  3681. weight: 3280 },
  3682. {
  3683. title: " 资阳",
  3684. weight: 3290 },
  3685. {
  3686. title: " 遵义",
  3687. weight: 3300 }] },
  3688. {
  3689. index: "#",
  3690. child: [
  3691. {
  3692. title: " 未知城市",
  3693. weight: 10 }] }];
  3694. module.exports = {
  3695. area: area };
  3696. /***/ }),
  3697. /***/ 17:
  3698. /*!*******************************************************************!*\
  3699. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/index.js ***!
  3700. \*******************************************************************/
  3701. /*! no static exports found */
  3702. /***/ (function(module, exports, __webpack_require__) {
  3703. "use strict";
  3704. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
  3705. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 18));
  3706. var _request = _interopRequireDefault(__webpack_require__(/*! ./libs/request */ 19));
  3707. var _queryParams = _interopRequireDefault(__webpack_require__(/*! ./libs/function/queryParams.js */ 23));
  3708. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/function/route.js */ 24));
  3709. var _timeFormat = _interopRequireDefault(__webpack_require__(/*! ./libs/function/timeFormat.js */ 25));
  3710. var _timeFrom = _interopRequireDefault(__webpack_require__(/*! ./libs/function/timeFrom.js */ 26));
  3711. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 27));
  3712. var _guid = _interopRequireDefault(__webpack_require__(/*! ./libs/function/guid.js */ 28));
  3713. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/function/color.js */ 29));
  3714. var _type2icon = _interopRequireDefault(__webpack_require__(/*! ./libs/function/type2icon.js */ 30));
  3715. var _randomArray = _interopRequireDefault(__webpack_require__(/*! ./libs/function/randomArray.js */ 31));
  3716. var _deepClone = _interopRequireDefault(__webpack_require__(/*! ./libs/function/deepClone.js */ 21));
  3717. var _deepMerge = _interopRequireDefault(__webpack_require__(/*! ./libs/function/deepMerge.js */ 20));
  3718. var _addUnit = _interopRequireDefault(__webpack_require__(/*! ./libs/function/addUnit.js */ 32));
  3719. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 22));
  3720. var _random = _interopRequireDefault(__webpack_require__(/*! ./libs/function/random.js */ 33));
  3721. var _trim = _interopRequireDefault(__webpack_require__(/*! ./libs/function/trim.js */ 34));
  3722. var _toast = _interopRequireDefault(__webpack_require__(/*! ./libs/function/toast.js */ 35));
  3723. var _getParent = _interopRequireDefault(__webpack_require__(/*! ./libs/function/getParent.js */ 36));
  3724. var _$parent = _interopRequireDefault(__webpack_require__(/*! ./libs/function/$parent.js */ 37));
  3725. var _sys = __webpack_require__(/*! ./libs/function/sys.js */ 38);
  3726. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 39));
  3727. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 40));
  3728. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 41));
  3729. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 42));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // 引入全局mixin
  3730. // 引入关于是否mixin集成小程序分享的配置
  3731. // import wxshare from './libs/mixin/mpShare.js'
  3732. // 全局挂载引入http相关请求拦截插件
  3733. function wranning(str) {// 开发环境进行信息输出,主要是一些报错信息
  3734. // 这个环境的来由是在程序编写时候,点击hx编辑器运行调试代码的时候,详见:
  3735. // https://uniapp.dcloud.io/frame?id=%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%e5%92%8c%e7%94%9f%e4%ba%a7%e7%8e%af%e5%a2%83
  3736. if (true) {console.warn(str);}} // 尝试判断在根目录的/store中是否有$u.mixin.js,此文件uView默认为需要挂在到全局的vuex的state变量
  3737. // HX2.6.11版本,放到try中,控制台依然会警告,暂时不用此方式,
  3738. // let vuexStore = {};
  3739. // try {
  3740. // vuexStore = require("@/store/$u.mixin.js");
  3741. // } catch (e) {
  3742. // //TODO handle the exception
  3743. // }
  3744. // post类型对象参数转为get类型url参数
  3745. var $u = { queryParams: _queryParams.default, route: _route.default, timeFormat: _timeFormat.default, date: _timeFormat.default, // 另名date
  3746. timeFrom: _timeFrom.default, colorGradient: _colorGradient.default.colorGradient, colorToRgba: _colorGradient.default.colorToRgba, guid: _guid.default, color: _color.default, sys: _sys.sys, os: _sys.os, type2icon: _type2icon.default, randomArray: _randomArray.default, wranning: wranning, get: _request.default.get,
  3747. post: _request.default.post,
  3748. put: _request.default.put,
  3749. 'delete': _request.default.delete,
  3750. hexToRgb: _colorGradient.default.hexToRgb,
  3751. rgbToHex: _colorGradient.default.rgbToHex,
  3752. test: _test.default,
  3753. random: _random.default,
  3754. deepClone: _deepClone.default,
  3755. deepMerge: _deepMerge.default,
  3756. getParent: _getParent.default,
  3757. $parent: _$parent.default,
  3758. addUnit: _addUnit.default,
  3759. trim: _trim.default,
  3760. type: ['primary', 'success', 'error', 'warning', 'info'],
  3761. http: _request.default,
  3762. toast: _toast.default,
  3763. config: _config.default, // uView配置信息相关,比如版本号
  3764. zIndex: _zIndex.default,
  3765. debounce: _debounce.default,
  3766. throttle: _throttle.default };
  3767. // $u挂载到uni对象上
  3768. uni.$u = $u;
  3769. var install = function install(Vue) {
  3770. Vue.mixin(_mixin.default);
  3771. if (Vue.prototype.openShare) {
  3772. Vue.mixin(mpShare);
  3773. }
  3774. // Vue.mixin(vuexStore);
  3775. // 时间格式化,同时两个名称,date和timeFormat
  3776. Vue.filter('timeFormat', function (timestamp, format) {
  3777. return (0, _timeFormat.default)(timestamp, format);
  3778. });
  3779. Vue.filter('date', function (timestamp, format) {
  3780. return (0, _timeFormat.default)(timestamp, format);
  3781. });
  3782. // 将多久以前的方法,注入到全局过滤器
  3783. Vue.filter('timeFrom', function (timestamp, format) {
  3784. return (0, _timeFrom.default)(timestamp, format);
  3785. });
  3786. Vue.prototype.$u = $u;
  3787. };var _default =
  3788. {
  3789. install: install };exports.default = _default;
  3790. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3791. /***/ }),
  3792. /***/ 18:
  3793. /*!******************************************************************************!*\
  3794. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/mixin/mixin.js ***!
  3795. \******************************************************************************/
  3796. /*! no static exports found */
  3797. /***/ (function(module, exports, __webpack_require__) {
  3798. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  3799. data: function data() {
  3800. return {};
  3801. },
  3802. onLoad: function onLoad() {
  3803. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  3804. this.$u.getRect = this.$uGetRect;
  3805. },
  3806. methods: {
  3807. // 查询节点信息
  3808. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  3809. // 解决办法为在组件根部再套一个没有任何作用的view元素
  3810. $uGetRect: function $uGetRect(selector, all) {var _this = this;
  3811. return new Promise(function (resolve) {
  3812. uni.createSelectorQuery().
  3813. in(_this)[all ? 'selectAll' : 'select'](selector).
  3814. boundingClientRect(function (rect) {
  3815. if (all && Array.isArray(rect) && rect.length) {
  3816. resolve(rect);
  3817. }
  3818. if (!all && rect) {
  3819. resolve(rect);
  3820. }
  3821. }).
  3822. exec();
  3823. });
  3824. },
  3825. getParentData: function getParentData() {var _this2 = this;var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  3826. // 避免在created中去定义parent变量
  3827. if (!this.parent) this.parent = false;
  3828. // 这里的本质原理是,通过获取父组件实例(也即u-radio-group的this)
  3829. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  3830. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  3831. this.parent = this.$u.$parent.call(this, parentName);
  3832. if (this.parent) {
  3833. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  3834. Object.keys(this.parentData).map(function (key) {
  3835. _this2.parentData[key] = _this2.parent[key];
  3836. });
  3837. }
  3838. },
  3839. // 阻止事件冒泡
  3840. preventEvent: function preventEvent(e) {
  3841. e && e.stopPropagation && e.stopPropagation();
  3842. } },
  3843. onReachBottom: function onReachBottom() {
  3844. uni.$emit('uOnReachBottom');
  3845. },
  3846. beforeDestroy: function beforeDestroy() {var _this3 = this;
  3847. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  3848. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  3849. if (this.parent && uni.$u.test.array(this.parent.children)) {
  3850. // 组件销毁时,移除父组件中的children数组中对应的实例
  3851. var childrenList = this.parent.children;
  3852. childrenList.map(function (child, index) {
  3853. // 如果相等,则移除
  3854. if (child === _this3) {
  3855. childrenList.splice(index, 1);
  3856. }
  3857. });
  3858. }
  3859. } };
  3860. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  3861. /***/ }),
  3862. /***/ 19:
  3863. /*!********************************************************************************!*\
  3864. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/request/index.js ***!
  3865. \********************************************************************************/
  3866. /*! no static exports found */
  3867. /***/ (function(module, exports, __webpack_require__) {
  3868. "use strict";
  3869. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _deepMerge = _interopRequireDefault(__webpack_require__(/*! ../function/deepMerge */ 20));
  3870. var _test = _interopRequireDefault(__webpack_require__(/*! ../function/test */ 22));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}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
  3871. Request = /*#__PURE__*/function () {_createClass(Request, [{ key: "setConfig",
  3872. // 设置全局默认配置
  3873. value: function setConfig(customConfig) {
  3874. // 深度合并对象,否则会造成对象深层属性丢失
  3875. this.config = (0, _deepMerge.default)(this.config, customConfig);
  3876. }
  3877. // 主要请求部分
  3878. }, { key: "request", value: function request() {var _this = this;var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3879. // 检查请求拦截
  3880. if (this.interceptor.request && typeof this.interceptor.request === 'function') {
  3881. var tmpConfig = {};
  3882. var interceptorRequest = this.interceptor.request(options);
  3883. if (interceptorRequest === false) {
  3884. // 返回一个处于pending状态中的Promise,来取消原promise,避免进入then()回调
  3885. return new Promise(function () {});
  3886. }
  3887. this.options = interceptorRequest;
  3888. }
  3889. options.dataType = options.dataType || this.config.dataType;
  3890. options.responseType = options.responseType || this.config.responseType;
  3891. options.url = options.url || '';
  3892. options.params = options.params || {};
  3893. options.header = Object.assign({}, this.config.header, options.header);
  3894. options.method = options.method || this.config.method;
  3895. return new Promise(function (resolve, reject) {
  3896. options.complete = function (response) {
  3897. // 请求返回后,隐藏loading(如果请求返回快的话,可能会没有loading)
  3898. uni.hideLoading();
  3899. // 清除定时器,如果请求回来了,就无需loading
  3900. clearTimeout(_this.config.timer);
  3901. _this.config.timer = null;
  3902. // 判断用户对拦截返回数据的要求,如果originalData为true,返回所有的数据(response)到拦截器,否则只返回response.data
  3903. if (_this.config.originalData) {
  3904. // 判断是否存在拦截器
  3905. if (_this.interceptor.response && typeof _this.interceptor.response === 'function') {
  3906. var resInterceptors = _this.interceptor.response(response);
  3907. // 如果拦截器不返回false,就将拦截器返回的内容给this.$u.post的then回调
  3908. if (resInterceptors !== false) {
  3909. resolve(resInterceptors);
  3910. } else {
  3911. // 如果拦截器返回false,意味着拦截器定义者认为返回有问题,直接接入catch回调
  3912. reject(response);
  3913. }
  3914. } else {
  3915. // 如果要求返回原始数据,就算没有拦截器,也返回最原始的数据
  3916. resolve(response);
  3917. }
  3918. } else {
  3919. if (response.statusCode == 200) {
  3920. if (_this.interceptor.response && typeof _this.interceptor.response === 'function') {
  3921. var _resInterceptors = _this.interceptor.response(response.data);
  3922. if (_resInterceptors !== false) {
  3923. resolve(_resInterceptors);
  3924. } else {
  3925. reject(response.data);
  3926. }
  3927. } else {
  3928. // 如果不是返回原始数据(originalData=false),且没有拦截器的情况下,返回纯数据给then回调
  3929. resolve(response.data);
  3930. }
  3931. } else {
  3932. // 不返回原始数据的情况下,服务器状态码不为200,modal弹框提示
  3933. // if(response.errMsg) {
  3934. // uni.showModal({
  3935. // title: response.errMsg
  3936. // });
  3937. // }
  3938. reject(response);
  3939. }
  3940. }
  3941. };
  3942. // 判断用户传递的URL是否/开头,如果不是,加上/,这里使用了uView的test.js验证库的url()方法
  3943. options.url = _test.default.url(options.url) ? options.url : _this.config.baseUrl + (options.url.indexOf('/') == 0 ?
  3944. options.url : '/' + options.url);
  3945. // 是否显示loading
  3946. // 加一个是否已有timer定时器的判断,否则有两个同时请求的时候,后者会清除前者的定时器id
  3947. // 而没有清除前者的定时器,导致前者超时,一直显示loading
  3948. if (_this.config.showLoading && !_this.config.timer) {
  3949. _this.config.timer = setTimeout(function () {
  3950. uni.showLoading({
  3951. title: _this.config.loadingText,
  3952. mask: _this.config.loadingMask });
  3953. _this.config.timer = null;
  3954. }, _this.config.loadingTime);
  3955. }
  3956. uni.request(options);
  3957. });
  3958. // .catch(res => {
  3959. // // 如果返回reject(),不让其进入this.$u.post().then().catch()后面的catct()
  3960. // // 因为很多人都会忘了写后面的catch(),导致报错捕获不到catch
  3961. // return new Promise(()=>{});
  3962. // })
  3963. } }]);
  3964. function Request() {var _this2 = this;_classCallCheck(this, Request);
  3965. this.config = {
  3966. baseUrl: '', // 请求的根域名
  3967. // 默认的请求头
  3968. header: {},
  3969. method: 'POST',
  3970. // 设置为json,返回后uni.request会对数据进行一次JSON.parse
  3971. dataType: 'json',
  3972. // 此参数无需处理,因为5+和支付宝小程序不支持,默认为text即可
  3973. responseType: 'text',
  3974. showLoading: true, // 是否显示请求中的loading
  3975. loadingText: '请求中...',
  3976. loadingTime: 800, // 在此时间内,请求还没回来的话,就显示加载中动画,单位ms
  3977. timer: null, // 定时器
  3978. originalData: false, // 是否在拦截器中返回服务端的原始数据,见文档说明
  3979. loadingMask: true // 展示loading的时候,是否给一个透明的蒙层,防止触摸穿透
  3980. };
  3981. // 拦截器
  3982. this.interceptor = {
  3983. // 请求前的拦截
  3984. request: null,
  3985. // 请求后的拦截
  3986. response: null };
  3987. // get请求
  3988. this.get = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  3989. header['Authorization'] = uni.getStorageSync("token");
  3990. return _this2.request({
  3991. method: 'GET',
  3992. url: url,
  3993. header: header,
  3994. data: data });
  3995. };
  3996. // post请求
  3997. this.post = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  3998. header['Authorization'] = uni.getStorageSync("token");
  3999. return _this2.request({
  4000. url: url,
  4001. method: 'POST',
  4002. header: header,
  4003. data: data });
  4004. };
  4005. // put请求,不支持支付宝小程序(HX2.6.15)
  4006. this.put = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  4007. header['Authorization'] = uni.getStorageSync("token");
  4008. return _this2.request({
  4009. url: url,
  4010. method: 'PUT',
  4011. header: header,
  4012. data: data });
  4013. };
  4014. // delete请求,不支持支付宝和头条小程序(HX2.6.15)
  4015. this.delete = function (url) {var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  4016. header['Authorization'] = uni.getStorageSync("token");
  4017. header['content-type'] = 'application/x-www-form-urlencoded';
  4018. return _this2.request({
  4019. url: url,
  4020. method: 'DELETE',
  4021. header: header,
  4022. data: data });
  4023. };
  4024. }return Request;}();var _default =
  4025. new Request();exports.default = _default;
  4026. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  4027. /***/ }),
  4028. /***/ 2:
  4029. /*!***********************************!*\
  4030. !*** (webpack)/buildin/global.js ***!
  4031. \***********************************/
  4032. /*! no static exports found */
  4033. /***/ (function(module, exports) {
  4034. var g;
  4035. // This works in non-strict mode
  4036. g = (function() {
  4037. return this;
  4038. })();
  4039. try {
  4040. // This works if eval is allowed (see CSP)
  4041. g = g || new Function("return this")();
  4042. } catch (e) {
  4043. // This works if the window reference is available
  4044. if (typeof window === "object") g = window;
  4045. }
  4046. // g can still be undefined, but nothing to do about it...
  4047. // We return undefined, instead of nothing here, so it's
  4048. // easier to handle this case. if(!global) { ...}
  4049. module.exports = g;
  4050. /***/ }),
  4051. /***/ 20:
  4052. /*!*************************************************************************************!*\
  4053. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/deepMerge.js ***!
  4054. \*************************************************************************************/
  4055. /*! no static exports found */
  4056. /***/ (function(module, exports, __webpack_require__) {
  4057. "use strict";
  4058. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _deepClone = _interopRequireDefault(__webpack_require__(/*! ./deepClone */ 21));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  4059. // JS对象深度合并
  4060. function deepMerge() {var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  4061. target = (0, _deepClone.default)(target);
  4062. if (typeof target !== 'object' || typeof source !== 'object') return false;
  4063. for (var prop in source) {
  4064. if (!source.hasOwnProperty(prop)) continue;
  4065. if (prop in target) {
  4066. if (typeof target[prop] !== 'object') {
  4067. target[prop] = source[prop];
  4068. } else {
  4069. if (typeof source[prop] !== 'object') {
  4070. target[prop] = source[prop];
  4071. } else {
  4072. if (target[prop].concat && source[prop].concat) {
  4073. target[prop] = target[prop].concat(source[prop]);
  4074. } else {
  4075. target[prop] = deepMerge(target[prop], source[prop]);
  4076. }
  4077. }
  4078. }
  4079. } else {
  4080. target[prop] = source[prop];
  4081. }
  4082. }
  4083. return target;
  4084. }var _default =
  4085. deepMerge;exports.default = _default;
  4086. /***/ }),
  4087. /***/ 21:
  4088. /*!*************************************************************************************!*\
  4089. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/deepClone.js ***!
  4090. \*************************************************************************************/
  4091. /*! no static exports found */
  4092. /***/ (function(module, exports, __webpack_require__) {
  4093. "use strict";
  4094. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 判断arr是否为一个数组,返回一个bool值
  4095. function isArray(arr) {
  4096. return Object.prototype.toString.call(arr) === '[object Array]';
  4097. }
  4098. // 深度克隆
  4099. function deepClone(obj) {
  4100. // 对常见的“非”值,直接返回原来值
  4101. if ([null, undefined, NaN, false].includes(obj)) return obj;
  4102. if (typeof obj !== "object" && typeof obj !== 'function') {
  4103. //原始类型直接返回
  4104. return obj;
  4105. }
  4106. var o = isArray(obj) ? [] : {};
  4107. for (var i in obj) {
  4108. if (obj.hasOwnProperty(i)) {
  4109. o[i] = typeof obj[i] === "object" ? deepClone(obj[i]) : obj[i];
  4110. }
  4111. }
  4112. return o;
  4113. }var _default =
  4114. deepClone;exports.default = _default;
  4115. /***/ }),
  4116. /***/ 22:
  4117. /*!********************************************************************************!*\
  4118. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/test.js ***!
  4119. \********************************************************************************/
  4120. /*! no static exports found */
  4121. /***/ (function(module, exports, __webpack_require__) {
  4122. "use strict";
  4123. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  4124. * 验证电子邮箱格式
  4125. */
  4126. function email(value) {
  4127. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  4128. }
  4129. /**
  4130. * 验证手机格式
  4131. */
  4132. function mobile(value) {
  4133. return /^1[3-9]\d{9}$/.test(value);
  4134. }
  4135. /**
  4136. * 验证URL格式
  4137. */
  4138. function url(value) {
  4139. return /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(value);
  4140. }
  4141. /**
  4142. * 验证日期格式
  4143. */
  4144. function date(value) {
  4145. return !/Invalid|NaN/.test(new Date(value).toString());
  4146. }
  4147. /**
  4148. * 验证ISO类型的日期格式
  4149. */
  4150. function dateISO(value) {
  4151. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  4152. }
  4153. /**
  4154. * 验证十进制数字
  4155. */
  4156. function number(value) {
  4157. return /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value);
  4158. }
  4159. /**
  4160. * 验证整数
  4161. */
  4162. function digits(value) {
  4163. return /^\d+$/.test(value);
  4164. }
  4165. /**
  4166. * 验证身份证号码
  4167. */
  4168. function idCard(value) {
  4169. return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(
  4170. value);
  4171. }
  4172. /**
  4173. * 是否车牌号
  4174. */
  4175. function carNo(value) {
  4176. // 新能源车牌
  4177. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  4178. // 旧车牌
  4179. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  4180. if (value.length === 7) {
  4181. return creg.test(value);
  4182. } else if (value.length === 8) {
  4183. return xreg.test(value);
  4184. } else {
  4185. return false;
  4186. }
  4187. }
  4188. /**
  4189. * 金额,只允许2位小数
  4190. */
  4191. function amount(value) {
  4192. //金额,只允许保留两位小数
  4193. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  4194. }
  4195. /**
  4196. * 中文
  4197. */
  4198. function chinese(value) {
  4199. var reg = /^[\u4e00-\u9fa5]+$/gi;
  4200. return reg.test(value);
  4201. }
  4202. /**
  4203. * 只能输入字母
  4204. */
  4205. function letter(value) {
  4206. return /^[a-zA-Z]*$/.test(value);
  4207. }
  4208. /**
  4209. * 只能是字母或者数字
  4210. */
  4211. function enOrNum(value) {
  4212. //英文或者数字
  4213. var reg = /^[0-9a-zA-Z]*$/g;
  4214. return reg.test(value);
  4215. }
  4216. /**
  4217. * 验证是否包含某个值
  4218. */
  4219. function contains(value, param) {
  4220. return value.indexOf(param) >= 0;
  4221. }
  4222. /**
  4223. * 验证一个值范围[min, max]
  4224. */
  4225. function range(value, param) {
  4226. return value >= param[0] && value <= param[1];
  4227. }
  4228. /**
  4229. * 验证一个长度范围[min, max]
  4230. */
  4231. function rangeLength(value, param) {
  4232. return value.length >= param[0] && value.length <= param[1];
  4233. }
  4234. /**
  4235. * 是否固定电话
  4236. */
  4237. function landline(value) {
  4238. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  4239. return reg.test(value);
  4240. }
  4241. /**
  4242. * 判断是否为空
  4243. */
  4244. function empty(value) {
  4245. switch (typeof value) {
  4246. case 'undefined':
  4247. return true;
  4248. case 'string':
  4249. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  4250. break;
  4251. case 'boolean':
  4252. if (!value) return true;
  4253. break;
  4254. case 'number':
  4255. if (0 === value || isNaN(value)) return true;
  4256. break;
  4257. case 'object':
  4258. if (null === value || value.length === 0) return true;
  4259. for (var i in value) {
  4260. return false;
  4261. }
  4262. return true;}
  4263. return false;
  4264. }
  4265. /**
  4266. * 是否json字符串
  4267. */
  4268. function jsonString(value) {
  4269. if (typeof value == 'string') {
  4270. try {
  4271. var obj = JSON.parse(value);
  4272. if (typeof obj == 'object' && obj) {
  4273. return true;
  4274. } else {
  4275. return false;
  4276. }
  4277. } catch (e) {
  4278. return false;
  4279. }
  4280. }
  4281. return false;
  4282. }
  4283. /**
  4284. * 是否数组
  4285. */
  4286. function array(value) {
  4287. if (typeof Array.isArray === "function") {
  4288. return Array.isArray(value);
  4289. } else {
  4290. return Object.prototype.toString.call(value) === "[object Array]";
  4291. }
  4292. }
  4293. /**
  4294. * 是否对象
  4295. */
  4296. function object(value) {
  4297. return Object.prototype.toString.call(value) === '[object Object]';
  4298. }
  4299. /**
  4300. * 是否短信验证码
  4301. */
  4302. function code(value) {var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  4303. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  4304. }var _default =
  4305. {
  4306. email: email,
  4307. mobile: mobile,
  4308. url: url,
  4309. date: date,
  4310. dateISO: dateISO,
  4311. number: number,
  4312. digits: digits,
  4313. idCard: idCard,
  4314. carNo: carNo,
  4315. amount: amount,
  4316. chinese: chinese,
  4317. letter: letter,
  4318. enOrNum: enOrNum,
  4319. contains: contains,
  4320. range: range,
  4321. rangeLength: rangeLength,
  4322. empty: empty,
  4323. isEmpty: empty,
  4324. jsonString: jsonString,
  4325. landline: landline,
  4326. object: object,
  4327. array: array,
  4328. code: code };exports.default = _default;
  4329. /***/ }),
  4330. /***/ 23:
  4331. /*!***************************************************************************************!*\
  4332. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/queryParams.js ***!
  4333. \***************************************************************************************/
  4334. /*! no static exports found */
  4335. /***/ (function(module, exports, __webpack_require__) {
  4336. "use strict";
  4337. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  4338. * 对象转url参数
  4339. * @param {*} data,对象
  4340. * @param {*} isPrefix,是否自动加上"?"
  4341. */
  4342. function queryParams() {var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  4343. var prefix = isPrefix ? '?' : '';
  4344. var _result = [];
  4345. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';var _loop = function _loop(
  4346. key) {
  4347. var value = data[key];
  4348. // 去掉为空的参数
  4349. if (['', undefined, null].indexOf(value) >= 0) {
  4350. return "continue";
  4351. }
  4352. // 如果值为数组,另行处理
  4353. if (value.constructor === Array) {
  4354. // e.g. {ids: [1, 2, 3]}
  4355. switch (arrayFormat) {
  4356. case 'indices':
  4357. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  4358. for (var i = 0; i < value.length; i++) {
  4359. _result.push(key + '[' + i + ']=' + value[i]);
  4360. }
  4361. break;
  4362. case 'brackets':
  4363. // 结果: ids[]=1&ids[]=2&ids[]=3
  4364. value.forEach(function (_value) {
  4365. _result.push(key + '[]=' + _value);
  4366. });
  4367. break;
  4368. case 'repeat':
  4369. // 结果: ids=1&ids=2&ids=3
  4370. value.forEach(function (_value) {
  4371. _result.push(key + '=' + _value);
  4372. });
  4373. break;
  4374. case 'comma':
  4375. // 结果: ids=1,2,3
  4376. var commaStr = "";
  4377. value.forEach(function (_value) {
  4378. commaStr += (commaStr ? "," : "") + _value;
  4379. });
  4380. _result.push(key + '=' + commaStr);
  4381. break;
  4382. default:
  4383. value.forEach(function (_value) {
  4384. _result.push(key + '[]=' + _value);
  4385. });}
  4386. } else {
  4387. _result.push(key + '=' + value);
  4388. }};for (var key in data) {var _ret = _loop(key);if (_ret === "continue") continue;
  4389. }
  4390. return _result.length ? prefix + _result.join('&') : '';
  4391. }var _default =
  4392. queryParams;exports.default = _default;
  4393. /***/ }),
  4394. /***/ 24:
  4395. /*!*********************************************************************************!*\
  4396. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/route.js ***!
  4397. \*********************************************************************************/
  4398. /*! no static exports found */
  4399. /***/ (function(module, exports, __webpack_require__) {
  4400. "use strict";
  4401. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _regenerator = _interopRequireDefault(__webpack_require__(/*! ./node_modules/@babel/runtime/regenerator */ 13));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {try {var info = gen[key](arg);var value = info.value;} catch (error) {reject(error);return;}if (info.done) {resolve(value);} else {Promise.resolve(value).then(_next, _throw);}}function _asyncToGenerator(fn) {return function () {var self = this,args = arguments;return new Promise(function (resolve, reject) {var gen = fn.apply(self, args);function _next(value) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);}function _throw(err) {asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);}_next(undefined);});};}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;} /**
  4402. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  4403. * 并且带有路由拦截功能
  4404. */var
  4405. Router = /*#__PURE__*/function () {
  4406. function Router() {_classCallCheck(this, Router);
  4407. // 原始属性定义
  4408. this.config = {
  4409. type: 'navigateTo',
  4410. url: '',
  4411. delta: 1, // navigateBack页面后退时,回退的层数
  4412. params: {}, // 传递的参数
  4413. animationType: 'pop-in', // 窗口动画,只在APP有效
  4414. animationDuration: 300, // 窗口动画持续时间,单位毫秒,只在APP有效
  4415. intercept: false // 是否需要拦截
  4416. };
  4417. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  4418. // 这里在构造函数中进行this绑定
  4419. this.route = this.route.bind(this);
  4420. }
  4421. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  4422. _createClass(Router, [{ key: "addRootPath", value: function addRootPath(url) {
  4423. return url[0] === '/' ? url : "/".concat(url);
  4424. }
  4425. // 整合路由参数
  4426. }, { key: "mixinParam", value: function mixinParam(url, params) {
  4427. url = url && this.addRootPath(url);
  4428. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  4429. // 如果有url中有get参数,转换后无需带上"?"
  4430. var query = '';
  4431. if (/.*\/.*\?.*=.*/.test(url)) {
  4432. // object对象转为get类型的参数
  4433. query = uni.$u.queryParams(params, false);
  4434. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  4435. return url += "&" + query;
  4436. } else {
  4437. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  4438. query = uni.$u.queryParams(params);
  4439. return url += query;
  4440. }
  4441. }
  4442. // 对外的方法名称
  4443. }, { key: "route", value: function () {var _route = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee() {var options,params,mergeConfig,isNext,_args = arguments;return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  4444. // 合并用户的配置和内部的默认配置
  4445. mergeConfig = {};
  4446. if (typeof options === 'string') {
  4447. // 如果options为字符串,则为route(url, params)的形式
  4448. mergeConfig.url = this.mixinParam(options, params);
  4449. mergeConfig.type = 'navigateTo';
  4450. } else {
  4451. mergeConfig = uni.$u.deepClone(options, this.config);
  4452. // 否则正常使用mergeConfig中的url和params进行拼接
  4453. mergeConfig.url = this.mixinParam(options.url, options.params);
  4454. }
  4455. if (params.intercept) {
  4456. this.config.intercept = params.intercept;
  4457. }
  4458. // params参数也带给拦截器
  4459. mergeConfig.params = params;
  4460. // 合并内外部参数
  4461. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  4462. // 判断用户是否定义了拦截器
  4463. if (!(typeof uni.$u.routeIntercept === 'function')) {_context.next = 14;break;}_context.next = 10;return (
  4464. new Promise(function (resolve, reject) {
  4465. uni.$u.routeIntercept(mergeConfig, resolve);
  4466. }));case 10:isNext = _context.sent;
  4467. // 如果isNext为true,则执行路由跳转
  4468. isNext && this.openPage(mergeConfig);_context.next = 15;break;case 14:
  4469. this.openPage(mergeConfig);case 15:case "end":return _context.stop();}}}, _callee, this);}));function route() {return _route.apply(this, arguments);}return route;}()
  4470. // 执行路由跳转
  4471. }, { key: "openPage", value: function openPage(config) {
  4472. // 解构参数
  4473. var
  4474. url =
  4475. config.url,type = config.type,delta = config.delta,animationType = config.animationType,animationDuration = config.animationDuration;
  4476. if (config.type == 'navigateTo' || config.type == 'to') {
  4477. uni.navigateTo({
  4478. url: url,
  4479. animationType: animationType,
  4480. animationDuration: animationDuration });
  4481. }
  4482. if (config.type == 'redirectTo' || config.type == 'redirect') {
  4483. uni.redirectTo({
  4484. url: url });
  4485. }
  4486. if (config.type == 'switchTab' || config.type == 'tab') {
  4487. uni.switchTab({
  4488. url: url });
  4489. }
  4490. if (config.type == 'reLaunch' || config.type == 'launch') {
  4491. uni.reLaunch({
  4492. url: url });
  4493. }
  4494. if (config.type == 'navigateBack' || config.type == 'back') {
  4495. uni.navigateBack({
  4496. delta: delta });
  4497. }
  4498. } }]);return Router;}();var _default =
  4499. new Router().route;exports.default = _default;
  4500. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  4501. /***/ }),
  4502. /***/ 243:
  4503. /*!********************************************************************************!*\
  4504. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/util/province.js ***!
  4505. \********************************************************************************/
  4506. /*! no static exports found */
  4507. /***/ (function(module, exports, __webpack_require__) {
  4508. "use strict";
  4509. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var provinceData = [{ "label": "北京市", "value": "11" }, { "label": "天津市", "value": "12" }, { "label": "河北省", "value": "13" }, { "label": "山西省", "value": "14" }, { "label": "内蒙古自治区", "value": "15" }, { "label": "辽宁省", "value": "21" }, { "label": "吉林省", "value": "22" }, { "label": "黑龙江省", "value": "23" }, { "label": "上海市", "value": "31" }, { "label": "江苏省", "value": "32" }, { "label": "浙江省", "value": "33" }, { "label": "安徽省", "value": "34" }, { "label": "福建省", "value": "35" }, { "label": "江西省", "value": "36" }, { "label": "山东省", "value": "37" }, { "label": "河南省", "value": "41" }, { "label": "湖北省", "value": "42" }, { "label": "湖南省", "value": "43" }, { "label": "广东省", "value": "44" }, { "label": "广西壮族自治区", "value": "45" }, { "label": "海南省", "value": "46" }, { "label": "重庆市", "value": "50" }, { "label": "四川省", "value": "51" }, { "label": "贵州省", "value": "52" }, { "label": "云南省", "value": "53" }, { "label": "西藏自治区", "value": "54" }, { "label": "陕西省", "value": "61" }, { "label": "甘肃省", "value": "62" }, { "label": "青海省", "value": "63" }, { "label": "宁夏回族自治区", "value": "64" }, { "label": "新疆维吾尔自治区", "value": "65" }, { "label": "台湾", "value": "66" }, { "label": "香港", "value": "67" }, { "label": "澳门", "value": "68" }];var _default = provinceData;exports.default = _default;
  4510. /***/ }),
  4511. /***/ 244:
  4512. /*!****************************************************************************!*\
  4513. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/util/city.js ***!
  4514. \****************************************************************************/
  4515. /*! no static exports found */
  4516. /***/ (function(module, exports, __webpack_require__) {
  4517. "use strict";
  4518. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var cityData = [[{ "label": "市辖区", "value": "1101" }], [{ "label": "市辖区", "value": "1201" }], [{ "label": "石家庄市", "value": "1301" }, { "label": "唐山市", "value": "1302" }, { "label": "秦皇岛市", "value": "1303" }, { "label": "邯郸市", "value": "1304" }, { "label": "邢台市", "value": "1305" }, { "label": "保定市", "value": "1306" }, { "label": "张家口市", "value": "1307" }, { "label": "承德市", "value": "1308" }, { "label": "沧州市", "value": "1309" }, { "label": "廊坊市", "value": "1310" }, { "label": "衡水市", "value": "1311" }], [{ "label": "太原市", "value": "1401" }, { "label": "大同市", "value": "1402" }, { "label": "阳泉市", "value": "1403" }, { "label": "长治市", "value": "1404" }, { "label": "晋城市", "value": "1405" }, { "label": "朔州市", "value": "1406" }, { "label": "晋中市", "value": "1407" }, { "label": "运城市", "value": "1408" }, { "label": "忻州市", "value": "1409" }, { "label": "临汾市", "value": "1410" }, { "label": "吕梁市", "value": "1411" }], [{ "label": "呼和浩特市", "value": "1501" }, { "label": "包头市", "value": "1502" }, { "label": "乌海市", "value": "1503" }, { "label": "赤峰市", "value": "1504" }, { "label": "通辽市", "value": "1505" }, { "label": "鄂尔多斯市", "value": "1506" }, { "label": "呼伦贝尔市", "value": "1507" }, { "label": "巴彦淖尔市", "value": "1508" }, { "label": "乌兰察布市", "value": "1509" }, { "label": "兴安盟", "value": "1522" }, { "label": "锡林郭勒盟", "value": "1525" }, { "label": "阿拉善盟", "value": "1529" }], [{ "label": "沈阳市", "value": "2101" }, { "label": "大连市", "value": "2102" }, { "label": "鞍山市", "value": "2103" }, { "label": "抚顺市", "value": "2104" }, { "label": "本溪市", "value": "2105" }, { "label": "丹东市", "value": "2106" }, { "label": "锦州市", "value": "2107" }, { "label": "营口市", "value": "2108" }, { "label": "阜新市", "value": "2109" }, { "label": "辽阳市", "value": "2110" }, { "label": "盘锦市", "value": "2111" }, { "label": "铁岭市", "value": "2112" }, { "label": "朝阳市", "value": "2113" }, { "label": "葫芦岛市", "value": "2114" }], [{ "label": "长春市", "value": "2201" }, { "label": "吉林市", "value": "2202" }, { "label": "四平市", "value": "2203" }, { "label": "辽源市", "value": "2204" }, { "label": "通化市", "value": "2205" }, { "label": "白山市", "value": "2206" }, { "label": "松原市", "value": "2207" }, { "label": "白城市", "value": "2208" }, { "label": "延边朝鲜族自治州", "value": "2224" }], [{ "label": "哈尔滨市", "value": "2301" }, { "label": "齐齐哈尔市", "value": "2302" }, { "label": "鸡西市", "value": "2303" }, { "label": "鹤岗市", "value": "2304" }, { "label": "双鸭山市", "value": "2305" }, { "label": "大庆市", "value": "2306" }, { "label": "伊春市", "value": "2307" }, { "label": "佳木斯市", "value": "2308" }, { "label": "七台河市", "value": "2309" }, { "label": "牡丹江市", "value": "2310" }, { "label": "黑河市", "value": "2311" }, { "label": "绥化市", "value": "2312" }, { "label": "大兴安岭地区", "value": "2327" }], [{ "label": "市辖区", "value": "3101" }], [{ "label": "南京市", "value": "3201" }, { "label": "无锡市", "value": "3202" }, { "label": "徐州市", "value": "3203" }, { "label": "常州市", "value": "3204" }, { "label": "苏州市", "value": "3205" }, { "label": "南通市", "value": "3206" }, { "label": "连云港市", "value": "3207" }, { "label": "淮安市", "value": "3208" }, { "label": "盐城市", "value": "3209" }, { "label": "扬州市", "value": "3210" }, { "label": "镇江市", "value": "3211" }, { "label": "泰州市", "value": "3212" }, { "label": "宿迁市", "value": "3213" }], [{ "label": "杭州市", "value": "3301" }, { "label": "宁波市", "value": "3302" }, { "label": "温州市", "value": "3303" }, { "label": "嘉兴市", "value": "3304" }, { "label": "湖州市", "value": "3305" }, { "label": "绍兴市", "value": "3306" }, { "label": "金华市", "value": "3307" }, { "label": "衢州市", "value": "3308" }, { "label": "舟山市", "value": "3309" }, { "label": "台州市", "value": "3310" }, { "label": "丽水市", "value": "3311" }], [{ "label": "合肥市", "value": "3401" }, { "label": "芜湖市", "value": "3402" }, { "label": "蚌埠市", "value": "3403" }, { "label": "淮南市", "value": "3404" }, { "label": "马鞍山市", "value": "3405" }, { "label": "淮北市", "value": "3406" }, { "label": "铜陵市", "value": "3407" }, { "label": "安庆市", "value": "3408" }, { "label": "黄山市", "value": "3410" }, { "label": "滁州市", "value": "3411" }, { "label": "阜阳市", "value": "3412" }, { "label": "宿州市", "value": "3413" }, { "label": "六安市", "value": "3415" }, { "label": "亳州市", "value": "3416" }, { "label": "池州市", "value": "3417" }, { "label": "宣城市", "value": "3418" }], [{ "label": "福州市", "value": "3501" }, { "label": "厦门市", "value": "3502" }, { "label": "莆田市", "value": "3503" }, { "label": "三明市", "value": "3504" }, { "label": "泉州市", "value": "3505" }, { "label": "漳州市", "value": "3506" }, { "label": "南平市", "value": "3507" }, { "label": "龙岩市", "value": "3508" }, { "label": "宁德市", "value": "3509" }], [{ "label": "南昌市", "value": "3601" }, { "label": "景德镇市", "value": "3602" }, { "label": "萍乡市", "value": "3603" }, { "label": "九江市", "value": "3604" }, { "label": "新余市", "value": "3605" }, { "label": "鹰潭市", "value": "3606" }, { "label": "赣州市", "value": "3607" }, { "label": "吉安市", "value": "3608" }, { "label": "宜春市", "value": "3609" }, { "label": "抚州市", "value": "3610" }, { "label": "上饶市", "value": "3611" }], [{ "label": "济南市", "value": "3701" }, { "label": "青岛市", "value": "3702" }, { "label": "淄博市", "value": "3703" }, { "label": "枣庄市", "value": "3704" }, { "label": "东营市", "value": "3705" }, { "label": "烟台市", "value": "3706" }, { "label": "潍坊市", "value": "3707" }, { "label": "济宁市", "value": "3708" }, { "label": "泰安市", "value": "3709" }, { "label": "威海市", "value": "3710" }, { "label": "日照市", "value": "3711" }, { "label": "莱芜市", "value": "3712" }, { "label": "临沂市", "value": "3713" }, { "label": "德州市", "value": "3714" }, { "label": "聊城市", "value": "3715" }, { "label": "滨州市", "value": "3716" }, { "label": "菏泽市", "value": "3717" }], [{ "label": "郑州市", "value": "4101" }, { "label": "开封市", "value": "4102" }, { "label": "洛阳市", "value": "4103" }, { "label": "平顶山市", "value": "4104" }, { "label": "安阳市", "value": "4105" }, { "label": "鹤壁市", "value": "4106" }, { "label": "新乡市", "value": "4107" }, { "label": "焦作市", "value": "4108" }, { "label": "濮阳市", "value": "4109" }, { "label": "许昌市", "value": "4110" }, { "label": "漯河市", "value": "4111" }, { "label": "三门峡市", "value": "4112" }, { "label": "南阳市", "value": "4113" }, { "label": "商丘市", "value": "4114" }, { "label": "信阳市", "value": "4115" }, { "label": "周口市", "value": "4116" }, { "label": "驻马店市", "value": "4117" }, { "label": "省直辖县级行政区划", "value": "4190" }], [{ "label": "武汉市", "value": "4201" }, { "label": "黄石市", "value": "4202" }, { "label": "十堰市", "value": "4203" }, { "label": "宜昌市", "value": "4205" }, { "label": "襄阳市", "value": "4206" }, { "label": "鄂州市", "value": "4207" }, { "label": "荆门市", "value": "4208" }, { "label": "孝感市", "value": "4209" }, { "label": "荆州市", "value": "4210" }, { "label": "黄冈市", "value": "4211" }, { "label": "咸宁市", "value": "4212" }, { "label": "随州市", "value": "4213" }, { "label": "恩施土家族苗族自治州", "value": "4228" }, { "label": "省直辖县级行政区划", "value": "4290" }], [{ "label": "长沙市", "value": "4301" }, { "label": "株洲市", "value": "4302" }, { "label": "湘潭市", "value": "4303" }, { "label": "衡阳市", "value": "4304" }, { "label": "邵阳市", "value": "4305" }, { "label": "岳阳市", "value": "4306" }, { "label": "常德市", "value": "4307" }, { "label": "张家界市", "value": "4308" }, { "label": "益阳市", "value": "4309" }, { "label": "郴州市", "value": "4310" }, { "label": "永州市", "value": "4311" }, { "label": "怀化市", "value": "4312" }, { "label": "娄底市", "value": "4313" }, { "label": "湘西土家族苗族自治州", "value": "4331" }], [{ "label": "广州市", "value": "4401" }, { "label": "韶关市", "value": "4402" }, { "label": "深圳市", "value": "4403" }, { "label": "珠海市", "value": "4404" }, { "label": "汕头市", "value": "4405" }, { "label": "佛山市", "value": "4406" }, { "label": "江门市", "value": "4407" }, { "label": "湛江市", "value": "4408" }, { "label": "茂名市", "value": "4409" }, { "label": "肇庆市", "value": "4412" }, { "label": "惠州市", "value": "4413" }, { "label": "梅州市", "value": "4414" }, { "label": "汕尾市", "value": "4415" }, { "label": "河源市", "value": "4416" }, { "label": "阳江市", "value": "4417" }, { "label": "清远市", "value": "4418" }, { "label": "东莞市", "value": "4419" }, { "label": "中山市", "value": "4420" }, { "label": "潮州市", "value": "4451" }, { "label": "揭阳市", "value": "4452" }, { "label": "云浮市", "value": "4453" }], [{ "label": "南宁市", "value": "4501" }, { "label": "柳州市", "value": "4502" }, { "label": "桂林市", "value": "4503" }, { "label": "梧州市", "value": "4504" }, { "label": "北海市", "value": "4505" }, { "label": "防城港市", "value": "4506" }, { "label": "钦州市", "value": "4507" }, { "label": "贵港市", "value": "4508" }, { "label": "玉林市", "value": "4509" }, { "label": "百色市", "value": "4510" }, { "label": "贺州市", "value": "4511" }, { "label": "河池市", "value": "4512" }, { "label": "来宾市", "value": "4513" }, { "label": "崇左市", "value": "4514" }], [{ "label": "海口市", "value": "4601" }, { "label": "三亚市", "value": "4602" }, { "label": "三沙市", "value": "4603" }, { "label": "儋州市", "value": "4604" }, { "label": "省直辖县级行政区划", "value": "4690" }], [{ "label": "市辖区", "value": "5001" }, { "label": "县", "value": "5002" }], [{ "label": "成都市", "value": "5101" }, { "label": "自贡市", "value": "5103" }, { "label": "攀枝花市", "value": "5104" }, { "label": "泸州市", "value": "5105" }, { "label": "德阳市", "value": "5106" }, { "label": "绵阳市", "value": "5107" }, { "label": "广元市", "value": "5108" }, { "label": "遂宁市", "value": "5109" }, { "label": "内江市", "value": "5110" }, { "label": "乐山市", "value": "5111" }, { "label": "南充市", "value": "5113" }, { "label": "眉山市", "value": "5114" }, { "label": "宜宾市", "value": "5115" }, { "label": "广安市", "value": "5116" }, { "label": "达州市", "value": "5117" }, { "label": "雅安市", "value": "5118" }, { "label": "巴中市", "value": "5119" }, { "label": "资阳市", "value": "5120" }, { "label": "阿坝藏族羌族自治州", "value": "5132" }, { "label": "甘孜藏族自治州", "value": "5133" }, { "label": "凉山彝族自治州", "value": "5134" }], [{ "label": "贵阳市", "value": "5201" }, { "label": "六盘水市", "value": "5202" }, { "label": "遵义市", "value": "5203" }, { "label": "安顺市", "value": "5204" }, { "label": "毕节市", "value": "5205" }, { "label": "铜仁市", "value": "5206" }, { "label": "黔西南布依族苗族自治州", "value": "5223" }, { "label": "黔东南苗族侗族自治州", "value": "5226" }, { "label": "黔南布依族苗族自治州", "value": "5227" }], [{ "label": "昆明市", "value": "5301" }, { "label": "曲靖市", "value": "5303" }, { "label": "玉溪市", "value": "5304" }, { "label": "保山市", "value": "5305" }, { "label": "昭通市", "value": "5306" }, { "label": "丽江市", "value": "5307" }, { "label": "普洱市", "value": "5308" }, { "label": "临沧市", "value": "5309" }, { "label": "楚雄彝族自治州", "value": "5323" }, { "label": "红河哈尼族彝族自治州", "value": "5325" }, { "label": "文山壮族苗族自治州", "value": "5326" }, { "label": "西双版纳傣族自治州", "value": "5328" }, { "label": "大理白族自治州", "value": "5329" }, { "label": "德宏傣族景颇族自治州", "value": "5331" }, { "label": "怒江傈僳族自治州", "value": "5333" }, { "label": "迪庆藏族自治州", "value": "5334" }], [{ "label": "拉萨市", "value": "5401" }, { "label": "日喀则市", "value": "5402" }, { "label": "昌都市", "value": "5403" }, { "label": "林芝市", "value": "5404" }, { "label": "山南市", "value": "5405" }, { "label": "那曲地区", "value": "5424" }, { "label": "阿里地区", "value": "5425" }], [{ "label": "西安市", "value": "6101" }, { "label": "铜川市", "value": "6102" }, { "label": "宝鸡市", "value": "6103" }, { "label": "咸阳市", "value": "6104" }, { "label": "渭南市", "value": "6105" }, { "label": "延安市", "value": "6106" }, { "label": "汉中市", "value": "6107" }, { "label": "榆林市", "value": "6108" }, { "label": "安康市", "value": "6109" }, { "label": "商洛市", "value": "6110" }], [{ "label": "兰州市", "value": "6201" }, { "label": "嘉峪关市", "value": "6202" }, { "label": "金昌市", "value": "6203" }, { "label": "白银市", "value": "6204" }, { "label": "天水市", "value": "6205" }, { "label": "武威市", "value": "6206" }, { "label": "张掖市", "value": "6207" }, { "label": "平凉市", "value": "6208" }, { "label": "酒泉市", "value": "6209" }, { "label": "庆阳市", "value": "6210" }, { "label": "定西市", "value": "6211" }, { "label": "陇南市", "value": "6212" }, { "label": "临夏回族自治州", "value": "6229" }, { "label": "甘南藏族自治州", "value": "6230" }], [{ "label": "西宁市", "value": "6301" }, { "label": "海东市", "value": "6302" }, { "label": "海北藏族自治州", "value": "6322" }, { "label": "黄南藏族自治州", "value": "6323" }, { "label": "海南藏族自治州", "value": "6325" }, { "label": "果洛藏族自治州", "value": "6326" }, { "label": "玉树藏族自治州", "value": "6327" }, { "label": "海西蒙古族藏族自治州", "value": "6328" }], [{ "label": "银川市", "value": "6401" }, { "label": "石嘴山市", "value": "6402" }, { "label": "吴忠市", "value": "6403" }, { "label": "固原市", "value": "6404" }, { "label": "中卫市", "value": "6405" }], [{ "label": "乌鲁木齐市", "value": "6501" }, { "label": "克拉玛依市", "value": "6502" }, { "label": "吐鲁番市", "value": "6504" }, { "label": "哈密市", "value": "6505" }, { "label": "昌吉回族自治州", "value": "6523" }, { "label": "博尔塔拉蒙古自治州", "value": "6527" }, { "label": "巴音郭楞蒙古自治州", "value": "6528" }, { "label": "阿克苏地区", "value": "6529" }, { "label": "克孜勒苏柯尔克孜自治州", "value": "6530" }, { "label": "喀什地区", "value": "6531" }, { "label": "和田地区", "value": "6532" }, { "label": "伊犁哈萨克自治州", "value": "6540" }, { "label": "塔城地区", "value": "6542" }, { "label": "阿勒泰地区", "value": "6543" }, { "label": "自治区直辖县级行政区划", "value": "6590" }], [{ "label": "台北", "value": "6601" }, { "label": "高雄", "value": "6602" }, { "label": "基隆", "value": "6603" }, { "label": "台中", "value": "6604" }, { "label": "台南", "value": "6605" }, { "label": "新竹", "value": "6606" }, { "label": "嘉义", "value": "6607" }, { "label": "宜兰", "value": "6608" }, { "label": "桃园", "value": "6609" }, { "label": "苗栗", "value": "6610" }, { "label": "彰化", "value": "6611" }, { "label": "南投", "value": "6612" }, { "label": "云林", "value": "6613" }, { "label": "屏东", "value": "6614" }, { "label": "台东", "value": "6615" }, { "label": "花莲", "value": "6616" }, { "label": "澎湖", "value": "6617" }], [{ "label": "香港岛", "value": "6701" }, { "label": "九龙", "value": "6702" }, { "label": "新界", "value": "6703" }], [{ "label": "澳门半岛", "value": "6801" }, { "label": "氹仔岛", "value": "6802" }, { "label": "路环岛", "value": "6803" }, { "label": "路氹城", "value": "6804" }]];var _default = cityData;exports.default = _default;
  4519. /***/ }),
  4520. /***/ 245:
  4521. /*!****************************************************************************!*\
  4522. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/util/area.js ***!
  4523. \****************************************************************************/
  4524. /*! no static exports found */
  4525. /***/ (function(module, exports, __webpack_require__) {
  4526. "use strict";
  4527. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var areaData = [[[{ "label": "东城区", "value": "110101" }, { "label": "西城区", "value": "110102" }, { "label": "朝阳区", "value": "110105" }, { "label": "丰台区", "value": "110106" }, { "label": "石景山区", "value": "110107" }, { "label": "海淀区", "value": "110108" }, { "label": "门头沟区", "value": "110109" }, { "label": "房山区", "value": "110111" }, { "label": "通州区", "value": "110112" }, { "label": "顺义区", "value": "110113" }, { "label": "昌平区", "value": "110114" }, { "label": "大兴区", "value": "110115" }, { "label": "怀柔区", "value": "110116" }, { "label": "平谷区", "value": "110117" }, { "label": "密云区", "value": "110118" }, { "label": "延庆区", "value": "110119" }]], [[{ "label": "和平区", "value": "120101" }, { "label": "河东区", "value": "120102" }, { "label": "河西区", "value": "120103" }, { "label": "南开区", "value": "120104" }, { "label": "河北区", "value": "120105" }, { "label": "红桥区", "value": "120106" }, { "label": "东丽区", "value": "120110" }, { "label": "西青区", "value": "120111" }, { "label": "津南区", "value": "120112" }, { "label": "北辰区", "value": "120113" }, { "label": "武清区", "value": "120114" }, { "label": "宝坻区", "value": "120115" }, { "label": "滨海新区", "value": "120116" }, { "label": "宁河区", "value": "120117" }, { "label": "静海区", "value": "120118" }, { "label": "蓟州区", "value": "120119" }]], [[{ "label": "长安区", "value": "130102" }, { "label": "桥西区", "value": "130104" }, { "label": "新华区", "value": "130105" }, { "label": "井陉矿区", "value": "130107" }, { "label": "裕华区", "value": "130108" }, { "label": "藁城区", "value": "130109" }, { "label": "鹿泉区", "value": "130110" }, { "label": "栾城区", "value": "130111" }, { "label": "井陉县", "value": "130121" }, { "label": "正定县", "value": "130123" }, { "label": "行唐县", "value": "130125" }, { "label": "灵寿县", "value": "130126" }, { "label": "高邑县", "value": "130127" }, { "label": "深泽县", "value": "130128" }, { "label": "赞皇县", "value": "130129" }, { "label": "无极县", "value": "130130" }, { "label": "平山县", "value": "130131" }, { "label": "元氏县", "value": "130132" }, { "label": "赵县", "value": "130133" }, { "label": "石家庄高新技术产业开发区", "value": "130171" }, { "label": "石家庄循环化工园区", "value": "130172" }, { "label": "辛集市", "value": "130181" }, { "label": "晋州市", "value": "130183" }, { "label": "新乐市", "value": "130184" }], [{ "label": "路南区", "value": "130202" }, { "label": "路北区", "value": "130203" }, { "label": "古冶区", "value": "130204" }, { "label": "开平区", "value": "130205" }, { "label": "丰南区", "value": "130207" }, { "label": "丰润区", "value": "130208" }, { "label": "曹妃甸区", "value": "130209" }, { "label": "滦县", "value": "130223" }, { "label": "滦南县", "value": "130224" }, { "label": "乐亭县", "value": "130225" }, { "label": "迁西县", "value": "130227" }, { "label": "玉田县", "value": "130229" }, { "label": "唐山市芦台经济技术开发区", "value": "130271" }, { "label": "唐山市汉沽管理区", "value": "130272" }, { "label": "唐山高新技术产业开发区", "value": "130273" }, { "label": "河北唐山海港经济开发区", "value": "130274" }, { "label": "遵化市", "value": "130281" }, { "label": "迁安市", "value": "130283" }], [{ "label": "海港区", "value": "130302" }, { "label": "山海关区", "value": "130303" }, { "label": "北戴河区", "value": "130304" }, { "label": "抚宁区", "value": "130306" }, { "label": "青龙满族自治县", "value": "130321" }, { "label": "昌黎县", "value": "130322" }, { "label": "卢龙县", "value": "130324" }, { "label": "秦皇岛市经济技术开发区", "value": "130371" }, { "label": "北戴河新区", "value": "130372" }], [{ "label": "邯山区", "value": "130402" }, { "label": "丛台区", "value": "130403" }, { "label": "复兴区", "value": "130404" }, { "label": "峰峰矿区", "value": "130406" }, { "label": "肥乡区", "value": "130407" }, { "label": "永年区", "value": "130408" }, { "label": "临漳县", "value": "130423" }, { "label": "成安县", "value": "130424" }, { "label": "大名县", "value": "130425" }, { "label": "涉县", "value": "130426" }, { "label": "磁县", "value": "130427" }, { "label": "邱县", "value": "130430" }, { "label": "鸡泽县", "value": "130431" }, { "label": "广平县", "value": "130432" }, { "label": "馆陶县", "value": "130433" }, { "label": "魏县", "value": "130434" }, { "label": "曲周县", "value": "130435" }, { "label": "邯郸经济技术开发区", "value": "130471" }, { "label": "邯郸冀南新区", "value": "130473" }, { "label": "武安市", "value": "130481" }], [{ "label": "桥东区", "value": "130502" }, { "label": "桥西区", "value": "130503" }, { "label": "邢台县", "value": "130521" }, { "label": "临城县", "value": "130522" }, { "label": "内丘县", "value": "130523" }, { "label": "柏乡县", "value": "130524" }, { "label": "隆尧县", "value": "130525" }, { "label": "任县", "value": "130526" }, { "label": "南和县", "value": "130527" }, { "label": "宁晋县", "value": "130528" }, { "label": "巨鹿县", "value": "130529" }, { "label": "新河县", "value": "130530" }, { "label": "广宗县", "value": "130531" }, { "label": "平乡县", "value": "130532" }, { "label": "威县", "value": "130533" }, { "label": "清河县", "value": "130534" }, { "label": "临西县", "value": "130535" }, { "label": "河北邢台经济开发区", "value": "130571" }, { "label": "南宫市", "value": "130581" }, { "label": "沙河市", "value": "130582" }], [{ "label": "竞秀区", "value": "130602" }, { "label": "莲池区", "value": "130606" }, { "label": "满城区", "value": "130607" }, { "label": "清苑区", "value": "130608" }, { "label": "徐水区", "value": "130609" }, { "label": "涞水县", "value": "130623" }, { "label": "阜平县", "value": "130624" }, { "label": "定兴县", "value": "130626" }, { "label": "唐县", "value": "130627" }, { "label": "高阳县", "value": "130628" }, { "label": "容城县", "value": "130629" }, { "label": "涞源县", "value": "130630" }, { "label": "望都县", "value": "130631" }, { "label": "安新县", "value": "130632" }, { "label": "易县", "value": "130633" }, { "label": "曲阳县", "value": "130634" }, { "label": "蠡县", "value": "130635" }, { "label": "顺平县", "value": "130636" }, { "label": "博野县", "value": "130637" }, { "label": "雄县", "value": "130638" }, { "label": "保定高新技术产业开发区", "value": "130671" }, { "label": "保定白沟新城", "value": "130672" }, { "label": "涿州市", "value": "130681" }, { "label": "定州市", "value": "130682" }, { "label": "安国市", "value": "130683" }, { "label": "高碑店市", "value": "130684" }], [{ "label": "桥东区", "value": "130702" }, { "label": "桥西区", "value": "130703" }, { "label": "宣化区", "value": "130705" }, { "label": "下花园区", "value": "130706" }, { "label": "万全区", "value": "130708" }, { "label": "崇礼区", "value": "130709" }, { "label": "张北县", "value": "130722" }, { "label": "康保县", "value": "130723" }, { "label": "沽源县", "value": "130724" }, { "label": "尚义县", "value": "130725" }, { "label": "蔚县", "value": "130726" }, { "label": "阳原县", "value": "130727" }, { "label": "怀安县", "value": "130728" }, { "label": "怀来县", "value": "130730" }, { "label": "涿鹿县", "value": "130731" }, { "label": "赤城县", "value": "130732" }, { "label": "张家口市高新技术产业开发区", "value": "130771" }, { "label": "张家口市察北管理区", "value": "130772" }, { "label": "张家口市塞北管理区", "value": "130773" }], [{ "label": "双桥区", "value": "130802" }, { "label": "双滦区", "value": "130803" }, { "label": "鹰手营子矿区", "value": "130804" }, { "label": "承德县", "value": "130821" }, { "label": "兴隆县", "value": "130822" }, { "label": "滦平县", "value": "130824" }, { "label": "隆化县", "value": "130825" }, { "label": "丰宁满族自治县", "value": "130826" }, { "label": "宽城满族自治县", "value": "130827" }, { "label": "围场满族蒙古族自治县", "value": "130828" }, { "label": "承德高新技术产业开发区", "value": "130871" }, { "label": "平泉市", "value": "130881" }], [{ "label": "新华区", "value": "130902" }, { "label": "运河区", "value": "130903" }, { "label": "沧县", "value": "130921" }, { "label": "青县", "value": "130922" }, { "label": "东光县", "value": "130923" }, { "label": "海兴县", "value": "130924" }, { "label": "盐山县", "value": "130925" }, { "label": "肃宁县", "value": "130926" }, { "label": "南皮县", "value": "130927" }, { "label": "吴桥县", "value": "130928" }, { "label": "献县", "value": "130929" }, { "label": "孟村回族自治县", "value": "130930" }, { "label": "河北沧州经济开发区", "value": "130971" }, { "label": "沧州高新技术产业开发区", "value": "130972" }, { "label": "沧州渤海新区", "value": "130973" }, { "label": "泊头市", "value": "130981" }, { "label": "任丘市", "value": "130982" }, { "label": "黄骅市", "value": "130983" }, { "label": "河间市", "value": "130984" }], [{ "label": "安次区", "value": "131002" }, { "label": "广阳区", "value": "131003" }, { "label": "固安县", "value": "131022" }, { "label": "永清县", "value": "131023" }, { "label": "香河县", "value": "131024" }, { "label": "大城县", "value": "131025" }, { "label": "文安县", "value": "131026" }, { "label": "大厂回族自治县", "value": "131028" }, { "label": "廊坊经济技术开发区", "value": "131071" }, { "label": "霸州市", "value": "131081" }, { "label": "三河市", "value": "131082" }], [{ "label": "桃城区", "value": "131102" }, { "label": "冀州区", "value": "131103" }, { "label": "枣强县", "value": "131121" }, { "label": "武邑县", "value": "131122" }, { "label": "武强县", "value": "131123" }, { "label": "饶阳县", "value": "131124" }, { "label": "安平县", "value": "131125" }, { "label": "故城县", "value": "131126" }, { "label": "景县", "value": "131127" }, { "label": "阜城县", "value": "131128" }, { "label": "河北衡水经济开发区", "value": "131171" }, { "label": "衡水滨湖新区", "value": "131172" }, { "label": "深州市", "value": "131182" }]], [[{ "label": "小店区", "value": "140105" }, { "label": "迎泽区", "value": "140106" }, { "label": "杏花岭区", "value": "140107" }, { "label": "尖草坪区", "value": "140108" }, { "label": "万柏林区", "value": "140109" }, { "label": "晋源区", "value": "140110" }, { "label": "清徐县", "value": "140121" }, { "label": "阳曲县", "value": "140122" }, { "label": "娄烦县", "value": "140123" }, { "label": "山西转型综合改革示范区", "value": "140171" }, { "label": "古交市", "value": "140181" }], [{ "label": "城区", "value": "140202" }, { "label": "矿区", "value": "140203" }, { "label": "南郊区", "value": "140211" }, { "label": "新荣区", "value": "140212" }, { "label": "阳高县", "value": "140221" }, { "label": "天镇县", "value": "140222" }, { "label": "广灵县", "value": "140223" }, { "label": "灵丘县", "value": "140224" }, { "label": "浑源县", "value": "140225" }, { "label": "左云县", "value": "140226" }, { "label": "大同县", "value": "140227" }, { "label": "山西大同经济开发区", "value": "140271" }], [{ "label": "城区", "value": "140302" }, { "label": "矿区", "value": "140303" }, { "label": "郊区", "value": "140311" }, { "label": "平定县", "value": "140321" }, { "label": "盂县", "value": "140322" }, { "label": "山西阳泉经济开发区", "value": "140371" }], [{ "label": "城区", "value": "140402" }, { "label": "郊区", "value": "140411" }, { "label": "长治县", "value": "140421" }, { "label": "襄垣县", "value": "140423" }, { "label": "屯留县", "value": "140424" }, { "label": "平顺县", "value": "140425" }, { "label": "黎城县", "value": "140426" }, { "label": "壶关县", "value": "140427" }, { "label": "长子县", "value": "140428" }, { "label": "武乡县", "value": "140429" }, { "label": "沁县", "value": "140430" }, { "label": "沁源县", "value": "140431" }, { "label": "山西长治高新技术产业园区", "value": "140471" }, { "label": "潞城市", "value": "140481" }], [{ "label": "城区", "value": "140502" }, { "label": "沁水县", "value": "140521" }, { "label": "阳城县", "value": "140522" }, { "label": "陵川县", "value": "140524" }, { "label": "泽州县", "value": "140525" }, { "label": "高平市", "value": "140581" }], [{ "label": "朔城区", "value": "140602" }, { "label": "平鲁区", "value": "140603" }, { "label": "山阴县", "value": "140621" }, { "label": "应县", "value": "140622" }, { "label": "右玉县", "value": "140623" }, { "label": "怀仁县", "value": "140624" }, { "label": "山西朔州经济开发区", "value": "140671" }], [{ "label": "榆次区", "value": "140702" }, { "label": "榆社县", "value": "140721" }, { "label": "左权县", "value": "140722" }, { "label": "和顺县", "value": "140723" }, { "label": "昔阳县", "value": "140724" }, { "label": "寿阳县", "value": "140725" }, { "label": "太谷县", "value": "140726" }, { "label": "祁县", "value": "140727" }, { "label": "平遥县", "value": "140728" }, { "label": "灵石县", "value": "140729" }, { "label": "介休市", "value": "140781" }], [{ "label": "盐湖区", "value": "140802" }, { "label": "临猗县", "value": "140821" }, { "label": "万荣县", "value": "140822" }, { "label": "闻喜县", "value": "140823" }, { "label": "稷山县", "value": "140824" }, { "label": "新绛县", "value": "140825" }, { "label": "绛县", "value": "140826" }, { "label": "垣曲县", "value": "140827" }, { "label": "夏县", "value": "140828" }, { "label": "平陆县", "value": "140829" }, { "label": "芮城县", "value": "140830" }, { "label": "永济市", "value": "140881" }, { "label": "河津市", "value": "140882" }], [{ "label": "忻府区", "value": "140902" }, { "label": "定襄县", "value": "140921" }, { "label": "五台县", "value": "140922" }, { "label": "代县", "value": "140923" }, { "label": "繁峙县", "value": "140924" }, { "label": "宁武县", "value": "140925" }, { "label": "静乐县", "value": "140926" }, { "label": "神池县", "value": "140927" }, { "label": "五寨县", "value": "140928" }, { "label": "岢岚县", "value": "140929" }, { "label": "河曲县", "value": "140930" }, { "label": "保德县", "value": "140931" }, { "label": "偏关县", "value": "140932" }, { "label": "五台山风景名胜区", "value": "140971" }, { "label": "原平市", "value": "140981" }], [{ "label": "尧都区", "value": "141002" }, { "label": "曲沃县", "value": "141021" }, { "label": "翼城县", "value": "141022" }, { "label": "襄汾县", "value": "141023" }, { "label": "洪洞县", "value": "141024" }, { "label": "古县", "value": "141025" }, { "label": "安泽县", "value": "141026" }, { "label": "浮山县", "value": "141027" }, { "label": "吉县", "value": "141028" }, { "label": "乡宁县", "value": "141029" }, { "label": "大宁县", "value": "141030" }, { "label": "隰县", "value": "141031" }, { "label": "永和县", "value": "141032" }, { "label": "蒲县", "value": "141033" }, { "label": "汾西县", "value": "141034" }, { "label": "侯马市", "value": "141081" }, { "label": "霍州市", "value": "141082" }], [{ "label": "离石区", "value": "141102" }, { "label": "文水县", "value": "141121" }, { "label": "交城县", "value": "141122" }, { "label": "兴县", "value": "141123" }, { "label": "临县", "value": "141124" }, { "label": "柳林县", "value": "141125" }, { "label": "石楼县", "value": "141126" }, { "label": "岚县", "value": "141127" }, { "label": "方山县", "value": "141128" }, { "label": "中阳县", "value": "141129" }, { "label": "交口县", "value": "141130" }, { "label": "孝义市", "value": "141181" }, { "label": "汾阳市", "value": "141182" }]], [[{ "label": "新城区", "value": "150102" }, { "label": "回民区", "value": "150103" }, { "label": "玉泉区", "value": "150104" }, { "label": "赛罕区", "value": "150105" }, { "label": "土默特左旗", "value": "150121" }, { "label": "托克托县", "value": "150122" }, { "label": "和林格尔县", "value": "150123" }, { "label": "清水河县", "value": "150124" }, { "label": "武川县", "value": "150125" }, { "label": "呼和浩特金海工业园区", "value": "150171" }, { "label": "呼和浩特经济技术开发区", "value": "150172" }], [{ "label": "东河区", "value": "150202" }, { "label": "昆都仑区", "value": "150203" }, { "label": "青山区", "value": "150204" }, { "label": "石拐区", "value": "150205" }, { "label": "白云鄂博矿区", "value": "150206" }, { "label": "九原区", "value": "150207" }, { "label": "土默特右旗", "value": "150221" }, { "label": "固阳县", "value": "150222" }, { "label": "达尔罕茂明安联合旗", "value": "150223" }, { "label": "包头稀土高新技术产业开发区", "value": "150271" }], [{ "label": "海勃湾区", "value": "150302" }, { "label": "海南区", "value": "150303" }, { "label": "乌达区", "value": "150304" }], [{ "label": "红山区", "value": "150402" }, { "label": "元宝山区", "value": "150403" }, { "label": "松山区", "value": "150404" }, { "label": "阿鲁科尔沁旗", "value": "150421" }, { "label": "巴林左旗", "value": "150422" }, { "label": "巴林右旗", "value": "150423" }, { "label": "林西县", "value": "150424" }, { "label": "克什克腾旗", "value": "150425" }, { "label": "翁牛特旗", "value": "150426" }, { "label": "喀喇沁旗", "value": "150428" }, { "label": "宁城县", "value": "150429" }, { "label": "敖汉旗", "value": "150430" }], [{ "label": "科尔沁区", "value": "150502" }, { "label": "科尔沁左翼中旗", "value": "150521" }, { "label": "科尔沁左翼后旗", "value": "150522" }, { "label": "开鲁县", "value": "150523" }, { "label": "库伦旗", "value": "150524" }, { "label": "奈曼旗", "value": "150525" }, { "label": "扎鲁特旗", "value": "150526" }, { "label": "通辽经济技术开发区", "value": "150571" }, { "label": "霍林郭勒市", "value": "150581" }], [{ "label": "东胜区", "value": "150602" }, { "label": "康巴什区", "value": "150603" }, { "label": "达拉特旗", "value": "150621" }, { "label": "准格尔旗", "value": "150622" }, { "label": "鄂托克前旗", "value": "150623" }, { "label": "鄂托克旗", "value": "150624" }, { "label": "杭锦旗", "value": "150625" }, { "label": "乌审旗", "value": "150626" }, { "label": "伊金霍洛旗", "value": "150627" }], [{ "label": "海拉尔区", "value": "150702" }, { "label": "扎赉诺尔区", "value": "150703" }, { "label": "阿荣旗", "value": "150721" }, { "label": "莫力达瓦达斡尔族自治旗", "value": "150722" }, { "label": "鄂伦春自治旗", "value": "150723" }, { "label": "鄂温克族自治旗", "value": "150724" }, { "label": "陈巴尔虎旗", "value": "150725" }, { "label": "新巴尔虎左旗", "value": "150726" }, { "label": "新巴尔虎右旗", "value": "150727" }, { "label": "满洲里市", "value": "150781" }, { "label": "牙克石市", "value": "150782" }, { "label": "扎兰屯市", "value": "150783" }, { "label": "额尔古纳市", "value": "150784" }, { "label": "根河市", "value": "150785" }], [{ "label": "临河区", "value": "150802" }, { "label": "五原县", "value": "150821" }, { "label": "磴口县", "value": "150822" }, { "label": "乌拉特前旗", "value": "150823" }, { "label": "乌拉特中旗", "value": "150824" }, { "label": "乌拉特后旗", "value": "150825" }, { "label": "杭锦后旗", "value": "150826" }], [{ "label": "集宁区", "value": "150902" }, { "label": "卓资县", "value": "150921" }, { "label": "化德县", "value": "150922" }, { "label": "商都县", "value": "150923" }, { "label": "兴和县", "value": "150924" }, { "label": "凉城县", "value": "150925" }, { "label": "察哈尔右翼前旗", "value": "150926" }, { "label": "察哈尔右翼中旗", "value": "150927" }, { "label": "察哈尔右翼后旗", "value": "150928" }, { "label": "四子王旗", "value": "150929" }, { "label": "丰镇市", "value": "150981" }], [{ "label": "乌兰浩特市", "value": "152201" }, { "label": "阿尔山市", "value": "152202" }, { "label": "科尔沁右翼前旗", "value": "152221" }, { "label": "科尔沁右翼中旗", "value": "152222" }, { "label": "扎赉特旗", "value": "152223" }, { "label": "突泉县", "value": "152224" }], [{ "label": "二连浩特市", "value": "152501" }, { "label": "锡林浩特市", "value": "152502" }, { "label": "阿巴嘎旗", "value": "152522" }, { "label": "苏尼特左旗", "value": "152523" }, { "label": "苏尼特右旗", "value": "152524" }, { "label": "东乌珠穆沁旗", "value": "152525" }, { "label": "西乌珠穆沁旗", "value": "152526" }, { "label": "太仆寺旗", "value": "152527" }, { "label": "镶黄旗", "value": "152528" }, { "label": "正镶白旗", "value": "152529" }, { "label": "正蓝旗", "value": "152530" }, { "label": "多伦县", "value": "152531" }, { "label": "乌拉盖管委会", "value": "152571" }], [{ "label": "阿拉善左旗", "value": "152921" }, { "label": "阿拉善右旗", "value": "152922" }, { "label": "额济纳旗", "value": "152923" }, { "label": "内蒙古阿拉善经济开发区", "value": "152971" }]], [[{ "label": "和平区", "value": "210102" }, { "label": "沈河区", "value": "210103" }, { "label": "大东区", "value": "210104" }, { "label": "皇姑区", "value": "210105" }, { "label": "铁西区", "value": "210106" }, { "label": "苏家屯区", "value": "210111" }, { "label": "浑南区", "value": "210112" }, { "label": "沈北新区", "value": "210113" }, { "label": "于洪区", "value": "210114" }, { "label": "辽中区", "value": "210115" }, { "label": "康平县", "value": "210123" }, { "label": "法库县", "value": "210124" }, { "label": "新民市", "value": "210181" }], [{ "label": "中山区", "value": "210202" }, { "label": "西岗区", "value": "210203" }, { "label": "沙河口区", "value": "210204" }, { "label": "甘井子区", "value": "210211" }, { "label": "旅顺口区", "value": "210212" }, { "label": "金州区", "value": "210213" }, { "label": "普兰店区", "value": "210214" }, { "label": "长海县", "value": "210224" }, { "label": "瓦房店市", "value": "210281" }, { "label": "庄河市", "value": "210283" }], [{ "label": "铁东区", "value": "210302" }, { "label": "铁西区", "value": "210303" }, { "label": "立山区", "value": "210304" }, { "label": "千山区", "value": "210311" }, { "label": "台安县", "value": "210321" }, { "label": "岫岩满族自治县", "value": "210323" }, { "label": "海城市", "value": "210381" }], [{ "label": "新抚区", "value": "210402" }, { "label": "东洲区", "value": "210403" }, { "label": "望花区", "value": "210404" }, { "label": "顺城区", "value": "210411" }, { "label": "抚顺县", "value": "210421" }, { "label": "新宾满族自治县", "value": "210422" }, { "label": "清原满族自治县", "value": "210423" }], [{ "label": "平山区", "value": "210502" }, { "label": "溪湖区", "value": "210503" }, { "label": "明山区", "value": "210504" }, { "label": "南芬区", "value": "210505" }, { "label": "本溪满族自治县", "value": "210521" }, { "label": "桓仁满族自治县", "value": "210522" }], [{ "label": "元宝区", "value": "210602" }, { "label": "振兴区", "value": "210603" }, { "label": "振安区", "value": "210604" }, { "label": "宽甸满族自治县", "value": "210624" }, { "label": "东港市", "value": "210681" }, { "label": "凤城市", "value": "210682" }], [{ "label": "古塔区", "value": "210702" }, { "label": "凌河区", "value": "210703" }, { "label": "太和区", "value": "210711" }, { "label": "黑山县", "value": "210726" }, { "label": "义县", "value": "210727" }, { "label": "凌海市", "value": "210781" }, { "label": "北镇市", "value": "210782" }], [{ "label": "站前区", "value": "210802" }, { "label": "西市区", "value": "210803" }, { "label": "鲅鱼圈区", "value": "210804" }, { "label": "老边区", "value": "210811" }, { "label": "盖州市", "value": "210881" }, { "label": "大石桥市", "value": "210882" }], [{ "label": "海州区", "value": "210902" }, { "label": "新邱区", "value": "210903" }, { "label": "太平区", "value": "210904" }, { "label": "清河门区", "value": "210905" }, { "label": "细河区", "value": "210911" }, { "label": "阜新蒙古族自治县", "value": "210921" }, { "label": "彰武县", "value": "210922" }], [{ "label": "白塔区", "value": "211002" }, { "label": "文圣区", "value": "211003" }, { "label": "宏伟区", "value": "211004" }, { "label": "弓长岭区", "value": "211005" }, { "label": "太子河区", "value": "211011" }, { "label": "辽阳县", "value": "211021" }, { "label": "灯塔市", "value": "211081" }], [{ "label": "双台子区", "value": "211102" }, { "label": "兴隆台区", "value": "211103" }, { "label": "大洼区", "value": "211104" }, { "label": "盘山县", "value": "211122" }], [{ "label": "银州区", "value": "211202" }, { "label": "清河区", "value": "211204" }, { "label": "铁岭县", "value": "211221" }, { "label": "西丰县", "value": "211223" }, { "label": "昌图县", "value": "211224" }, { "label": "调兵山市", "value": "211281" }, { "label": "开原市", "value": "211282" }], [{ "label": "双塔区", "value": "211302" }, { "label": "龙城区", "value": "211303" }, { "label": "朝阳县", "value": "211321" }, { "label": "建平县", "value": "211322" }, { "label": "喀喇沁左翼蒙古族自治县", "value": "211324" }, { "label": "北票市", "value": "211381" }, { "label": "凌源市", "value": "211382" }], [{ "label": "连山区", "value": "211402" }, { "label": "龙港区", "value": "211403" }, { "label": "南票区", "value": "211404" }, { "label": "绥中县", "value": "211421" }, { "label": "建昌县", "value": "211422" }, { "label": "兴城市", "value": "211481" }]], [[{ "label": "南关区", "value": "220102" }, { "label": "宽城区", "value": "220103" }, { "label": "朝阳区", "value": "220104" }, { "label": "二道区", "value": "220105" }, { "label": "绿园区", "value": "220106" }, { "label": "双阳区", "value": "220112" }, { "label": "九台区", "value": "220113" }, { "label": "农安县", "value": "220122" }, { "label": "长春经济技术开发区", "value": "220171" }, { "label": "长春净月高新技术产业开发区", "value": "220172" }, { "label": "长春高新技术产业开发区", "value": "220173" }, { "label": "长春汽车经济技术开发区", "value": "220174" }, { "label": "榆树市", "value": "220182" }, { "label": "德惠市", "value": "220183" }], [{ "label": "昌邑区", "value": "220202" }, { "label": "龙潭区", "value": "220203" }, { "label": "船营区", "value": "220204" }, { "label": "丰满区", "value": "220211" }, { "label": "永吉县", "value": "220221" }, { "label": "吉林经济开发区", "value": "220271" }, { "label": "吉林高新技术产业开发区", "value": "220272" }, { "label": "吉林中国新加坡食品区", "value": "220273" }, { "label": "蛟河市", "value": "220281" }, { "label": "桦甸市", "value": "220282" }, { "label": "舒兰市", "value": "220283" }, { "label": "磐石市", "value": "220284" }], [{ "label": "铁西区", "value": "220302" }, { "label": "铁东区", "value": "220303" }, { "label": "梨树县", "value": "220322" }, { "label": "伊通满族自治县", "value": "220323" }, { "label": "公主岭市", "value": "220381" }, { "label": "双辽市", "value": "220382" }], [{ "label": "龙山区", "value": "220402" }, { "label": "西安区", "value": "220403" }, { "label": "东丰县", "value": "220421" }, { "label": "东辽县", "value": "220422" }], [{ "label": "东昌区", "value": "220502" }, { "label": "二道江区", "value": "220503" }, { "label": "通化县", "value": "220521" }, { "label": "辉南县", "value": "220523" }, { "label": "柳河县", "value": "220524" }, { "label": "梅河口市", "value": "220581" }, { "label": "集安市", "value": "220582" }], [{ "label": "浑江区", "value": "220602" }, { "label": "江源区", "value": "220605" }, { "label": "抚松县", "value": "220621" }, { "label": "靖宇县", "value": "220622" }, { "label": "长白朝鲜族自治县", "value": "220623" }, { "label": "临江市", "value": "220681" }], [{ "label": "宁江区", "value": "220702" }, { "label": "前郭尔罗斯蒙古族自治县", "value": "220721" }, { "label": "长岭县", "value": "220722" }, { "label": "乾安县", "value": "220723" }, { "label": "吉林松原经济开发区", "value": "220771" }, { "label": "扶余市", "value": "220781" }], [{ "label": "洮北区", "value": "220802" }, { "label": "镇赉县", "value": "220821" }, { "label": "通榆县", "value": "220822" }, { "label": "吉林白城经济开发区", "value": "220871" }, { "label": "洮南市", "value": "220881" }, { "label": "大安市", "value": "220882" }], [{ "label": "延吉市", "value": "222401" }, { "label": "图们市", "value": "222402" }, { "label": "敦化市", "value": "222403" }, { "label": "珲春市", "value": "222404" }, { "label": "龙井市", "value": "222405" }, { "label": "和龙市", "value": "222406" }, { "label": "汪清县", "value": "222424" }, { "label": "安图县", "value": "222426" }]], [[{ "label": "道里区", "value": "230102" }, { "label": "南岗区", "value": "230103" }, { "label": "道外区", "value": "230104" }, { "label": "平房区", "value": "230108" }, { "label": "松北区", "value": "230109" }, { "label": "香坊区", "value": "230110" }, { "label": "呼兰区", "value": "230111" }, { "label": "阿城区", "value": "230112" }, { "label": "双城区", "value": "230113" }, { "label": "依兰县", "value": "230123" }, { "label": "方正县", "value": "230124" }, { "label": "宾县", "value": "230125" }, { "label": "巴彦县", "value": "230126" }, { "label": "木兰县", "value": "230127" }, { "label": "通河县", "value": "230128" }, { "label": "延寿县", "value": "230129" }, { "label": "尚志市", "value": "230183" }, { "label": "五常市", "value": "230184" }], [{ "label": "龙沙区", "value": "230202" }, { "label": "建华区", "value": "230203" }, { "label": "铁锋区", "value": "230204" }, { "label": "昂昂溪区", "value": "230205" }, { "label": "富拉尔基区", "value": "230206" }, { "label": "碾子山区", "value": "230207" }, { "label": "梅里斯达斡尔族区", "value": "230208" }, { "label": "龙江县", "value": "230221" }, { "label": "依安县", "value": "230223" }, { "label": "泰来县", "value": "230224" }, { "label": "甘南县", "value": "230225" }, { "label": "富裕县", "value": "230227" }, { "label": "克山县", "value": "230229" }, { "label": "克东县", "value": "230230" }, { "label": "拜泉县", "value": "230231" }, { "label": "讷河市", "value": "230281" }], [{ "label": "鸡冠区", "value": "230302" }, { "label": "恒山区", "value": "230303" }, { "label": "滴道区", "value": "230304" }, { "label": "梨树区", "value": "230305" }, { "label": "城子河区", "value": "230306" }, { "label": "麻山区", "value": "230307" }, { "label": "鸡东县", "value": "230321" }, { "label": "虎林市", "value": "230381" }, { "label": "密山市", "value": "230382" }], [{ "label": "向阳区", "value": "230402" }, { "label": "工农区", "value": "230403" }, { "label": "南山区", "value": "230404" }, { "label": "兴安区", "value": "230405" }, { "label": "东山区", "value": "230406" }, { "label": "兴山区", "value": "230407" }, { "label": "萝北县", "value": "230421" }, { "label": "绥滨县", "value": "230422" }], [{ "label": "尖山区", "value": "230502" }, { "label": "岭东区", "value": "230503" }, { "label": "四方台区", "value": "230505" }, { "label": "宝山区", "value": "230506" }, { "label": "集贤县", "value": "230521" }, { "label": "友谊县", "value": "230522" }, { "label": "宝清县", "value": "230523" }, { "label": "饶河县", "value": "230524" }], [{ "label": "萨尔图区", "value": "230602" }, { "label": "龙凤区", "value": "230603" }, { "label": "让胡路区", "value": "230604" }, { "label": "红岗区", "value": "230605" }, { "label": "大同区", "value": "230606" }, { "label": "肇州县", "value": "230621" }, { "label": "肇源县", "value": "230622" }, { "label": "林甸县", "value": "230623" }, { "label": "杜尔伯特蒙古族自治县", "value": "230624" }, { "label": "大庆高新技术产业开发区", "value": "230671" }], [{ "label": "伊春区", "value": "230702" }, { "label": "南岔区", "value": "230703" }, { "label": "友好区", "value": "230704" }, { "label": "西林区", "value": "230705" }, { "label": "翠峦区", "value": "230706" }, { "label": "新青区", "value": "230707" }, { "label": "美溪区", "value": "230708" }, { "label": "金山屯区", "value": "230709" }, { "label": "五营区", "value": "230710" }, { "label": "乌马河区", "value": "230711" }, { "label": "汤旺河区", "value": "230712" }, { "label": "带岭区", "value": "230713" }, { "label": "乌伊岭区", "value": "230714" }, { "label": "红星区", "value": "230715" }, { "label": "上甘岭区", "value": "230716" }, { "label": "嘉荫县", "value": "230722" }, { "label": "铁力市", "value": "230781" }], [{ "label": "向阳区", "value": "230803" }, { "label": "前进区", "value": "230804" }, { "label": "东风区", "value": "230805" }, { "label": "郊区", "value": "230811" }, { "label": "桦南县", "value": "230822" }, { "label": "桦川县", "value": "230826" }, { "label": "汤原县", "value": "230828" }, { "label": "同江市", "value": "230881" }, { "label": "富锦市", "value": "230882" }, { "label": "抚远市", "value": "230883" }], [{ "label": "新兴区", "value": "230902" }, { "label": "桃山区", "value": "230903" }, { "label": "茄子河区", "value": "230904" }, { "label": "勃利县", "value": "230921" }], [{ "label": "东安区", "value": "231002" }, { "label": "阳明区", "value": "231003" }, { "label": "爱民区", "value": "231004" }, { "label": "西安区", "value": "231005" }, { "label": "林口县", "value": "231025" }, { "label": "牡丹江经济技术开发区", "value": "231071" }, { "label": "绥芬河市", "value": "231081" }, { "label": "海林市", "value": "231083" }, { "label": "宁安市", "value": "231084" }, { "label": "穆棱市", "value": "231085" }, { "label": "东宁市", "value": "231086" }], [{ "label": "爱辉区", "value": "231102" }, { "label": "嫩江县", "value": "231121" }, { "label": "逊克县", "value": "231123" }, { "label": "孙吴县", "value": "231124" }, { "label": "北安市", "value": "231181" }, { "label": "五大连池市", "value": "231182" }], [{ "label": "北林区", "value": "231202" }, { "label": "望奎县", "value": "231221" }, { "label": "兰西县", "value": "231222" }, { "label": "青冈县", "value": "231223" }, { "label": "庆安县", "value": "231224" }, { "label": "明水县", "value": "231225" }, { "label": "绥棱县", "value": "231226" }, { "label": "安达市", "value": "231281" }, { "label": "肇东市", "value": "231282" }, { "label": "海伦市", "value": "231283" }], [{ "label": "加格达奇区", "value": "232701" }, { "label": "松岭区", "value": "232702" }, { "label": "新林区", "value": "232703" }, { "label": "呼中区", "value": "232704" }, { "label": "呼玛县", "value": "232721" }, { "label": "塔河县", "value": "232722" }, { "label": "漠河县", "value": "232723" }]], [[{ "label": "黄浦区", "value": "310101" }, { "label": "徐汇区", "value": "310104" }, { "label": "长宁区", "value": "310105" }, { "label": "静安区", "value": "310106" }, { "label": "普陀区", "value": "310107" }, { "label": "虹口区", "value": "310109" }, { "label": "杨浦区", "value": "310110" }, { "label": "闵行区", "value": "310112" }, { "label": "宝山区", "value": "310113" }, { "label": "嘉定区", "value": "310114" }, { "label": "浦东新区", "value": "310115" }, { "label": "金山区", "value": "310116" }, { "label": "松江区", "value": "310117" }, { "label": "青浦区", "value": "310118" }, { "label": "奉贤区", "value": "310120" }, { "label": "崇明区", "value": "310151" }]], [[{ "label": "玄武区", "value": "320102" }, { "label": "秦淮区", "value": "320104" }, { "label": "建邺区", "value": "320105" }, { "label": "鼓楼区", "value": "320106" }, { "label": "浦口区", "value": "320111" }, { "label": "栖霞区", "value": "320113" }, { "label": "雨花台区", "value": "320114" }, { "label": "江宁区", "value": "320115" }, { "label": "六合区", "value": "320116" }, { "label": "溧水区", "value": "320117" }, { "label": "高淳区", "value": "320118" }], [{ "label": "锡山区", "value": "320205" }, { "label": "惠山区", "value": "320206" }, { "label": "滨湖区", "value": "320211" }, { "label": "梁溪区", "value": "320213" }, { "label": "新吴区", "value": "320214" }, { "label": "江阴市", "value": "320281" }, { "label": "宜兴市", "value": "320282" }], [{ "label": "鼓楼区", "value": "320302" }, { "label": "云龙区", "value": "320303" }, { "label": "贾汪区", "value": "320305" }, { "label": "泉山区", "value": "320311" }, { "label": "铜山区", "value": "320312" }, { "label": "丰县", "value": "320321" }, { "label": "沛县", "value": "320322" }, { "label": "睢宁县", "value": "320324" }, { "label": "徐州经济技术开发区", "value": "320371" }, { "label": "新沂市", "value": "320381" }, { "label": "邳州市", "value": "320382" }], [{ "label": "天宁区", "value": "320402" }, { "label": "钟楼区", "value": "320404" }, { "label": "新北区", "value": "320411" }, { "label": "武进区", "value": "320412" }, { "label": "金坛区", "value": "320413" }, { "label": "溧阳市", "value": "320481" }], [{ "label": "虎丘区", "value": "320505" }, { "label": "吴中区", "value": "320506" }, { "label": "相城区", "value": "320507" }, { "label": "姑苏区", "value": "320508" }, { "label": "吴江区", "value": "320509" }, { "label": "苏州工业园区", "value": "320571" }, { "label": "常熟市", "value": "320581" }, { "label": "张家港市", "value": "320582" }, { "label": "昆山市", "value": "320583" }, { "label": "太仓市", "value": "320585" }], [{ "label": "崇川区", "value": "320602" }, { "label": "港闸区", "value": "320611" }, { "label": "通州区", "value": "320612" }, { "label": "海安县", "value": "320621" }, { "label": "如东县", "value": "320623" }, { "label": "南通经济技术开发区", "value": "320671" }, { "label": "启东市", "value": "320681" }, { "label": "如皋市", "value": "320682" }, { "label": "海门市", "value": "320684" }], [{ "label": "连云区", "value": "320703" }, { "label": "海州区", "value": "320706" }, { "label": "赣榆区", "value": "320707" }, { "label": "东海县", "value": "320722" }, { "label": "灌云县", "value": "320723" }, { "label": "灌南县", "value": "320724" }, { "label": "连云港经济技术开发区", "value": "320771" }, { "label": "连云港高新技术产业开发区", "value": "320772" }], [{ "label": "淮安区", "value": "320803" }, { "label": "淮阴区", "value": "320804" }, { "label": "清江浦区", "value": "320812" }, { "label": "洪泽区", "value": "320813" }, { "label": "涟水县", "value": "320826" }, { "label": "盱眙县", "value": "320830" }, { "label": "金湖县", "value": "320831" }, { "label": "淮安经济技术开发区", "value": "320871" }], [{ "label": "亭湖区", "value": "320902" }, { "label": "盐都区", "value": "320903" }, { "label": "大丰区", "value": "320904" }, { "label": "响水县", "value": "320921" }, { "label": "滨海县", "value": "320922" }, { "label": "阜宁县", "value": "320923" }, { "label": "射阳县", "value": "320924" }, { "label": "建湖县", "value": "320925" }, { "label": "盐城经济技术开发区", "value": "320971" }, { "label": "东台市", "value": "320981" }], [{ "label": "广陵区", "value": "321002" }, { "label": "邗江区", "value": "321003" }, { "label": "江都区", "value": "321012" }, { "label": "宝应县", "value": "321023" }, { "label": "扬州经济技术开发区", "value": "321071" }, { "label": "仪征市", "value": "321081" }, { "label": "高邮市", "value": "321084" }], [{ "label": "京口区", "value": "321102" }, { "label": "润州区", "value": "321111" }, { "label": "丹徒区", "value": "321112" }, { "label": "镇江新区", "value": "321171" }, { "label": "丹阳市", "value": "321181" }, { "label": "扬中市", "value": "321182" }, { "label": "句容市", "value": "321183" }], [{ "label": "海陵区", "value": "321202" }, { "label": "高港区", "value": "321203" }, { "label": "姜堰区", "value": "321204" }, { "label": "泰州医药高新技术产业开发区", "value": "321271" }, { "label": "兴化市", "value": "321281" }, { "label": "靖江市", "value": "321282" }, { "label": "泰兴市", "value": "321283" }], [{ "label": "宿城区", "value": "321302" }, { "label": "宿豫区", "value": "321311" }, { "label": "沭阳县", "value": "321322" }, { "label": "泗阳县", "value": "321323" }, { "label": "泗洪县", "value": "321324" }, { "label": "宿迁经济技术开发区", "value": "321371" }]], [[{ "label": "上城区", "value": "330102" }, { "label": "下城区", "value": "330103" }, { "label": "江干区", "value": "330104" }, { "label": "拱墅区", "value": "330105" }, { "label": "西湖区", "value": "330106" }, { "label": "滨江区", "value": "330108" }, { "label": "萧山区", "value": "330109" }, { "label": "余杭区", "value": "330110" }, { "label": "富阳区", "value": "330111" }, { "label": "临安区", "value": "330112" }, { "label": "桐庐县", "value": "330122" }, { "label": "淳安县", "value": "330127" }, { "label": "建德市", "value": "330182" }], [{ "label": "海曙区", "value": "330203" }, { "label": "江北区", "value": "330205" }, { "label": "北仑区", "value": "330206" }, { "label": "镇海区", "value": "330211" }, { "label": "鄞州区", "value": "330212" }, { "label": "奉化区", "value": "330213" }, { "label": "象山县", "value": "330225" }, { "label": "宁海县", "value": "330226" }, { "label": "余姚市", "value": "330281" }, { "label": "慈溪市", "value": "330282" }], [{ "label": "鹿城区", "value": "330302" }, { "label": "龙湾区", "value": "330303" }, { "label": "瓯海区", "value": "330304" }, { "label": "洞头区", "value": "330305" }, { "label": "永嘉县", "value": "330324" }, { "label": "平阳县", "value": "330326" }, { "label": "苍南县", "value": "330327" }, { "label": "文成县", "value": "330328" }, { "label": "泰顺县", "value": "330329" }, { "label": "温州经济技术开发区", "value": "330371" }, { "label": "瑞安市", "value": "330381" }, { "label": "乐清市", "value": "330382" }], [{ "label": "南湖区", "value": "330402" }, { "label": "秀洲区", "value": "330411" }, { "label": "嘉善县", "value": "330421" }, { "label": "海盐县", "value": "330424" }, { "label": "海宁市", "value": "330481" }, { "label": "平湖市", "value": "330482" }, { "label": "桐乡市", "value": "330483" }], [{ "label": "吴兴区", "value": "330502" }, { "label": "南浔区", "value": "330503" }, { "label": "德清县", "value": "330521" }, { "label": "长兴县", "value": "330522" }, { "label": "安吉县", "value": "330523" }], [{ "label": "越城区", "value": "330602" }, { "label": "柯桥区", "value": "330603" }, { "label": "上虞区", "value": "330604" }, { "label": "新昌县", "value": "330624" }, { "label": "诸暨市", "value": "330681" }, { "label": "嵊州市", "value": "330683" }], [{ "label": "婺城区", "value": "330702" }, { "label": "金东区", "value": "330703" }, { "label": "武义县", "value": "330723" }, { "label": "浦江县", "value": "330726" }, { "label": "磐安县", "value": "330727" }, { "label": "兰溪市", "value": "330781" }, { "label": "义乌市", "value": "330782" }, { "label": "东阳市", "value": "330783" }, { "label": "永康市", "value": "330784" }], [{ "label": "柯城区", "value": "330802" }, { "label": "衢江区", "value": "330803" }, { "label": "常山县", "value": "330822" }, { "label": "开化县", "value": "330824" }, { "label": "龙游县", "value": "330825" }, { "label": "江山市", "value": "330881" }], [{ "label": "定海区", "value": "330902" }, { "label": "普陀区", "value": "330903" }, { "label": "岱山县", "value": "330921" }, { "label": "嵊泗县", "value": "330922" }], [{ "label": "椒江区", "value": "331002" }, { "label": "黄岩区", "value": "331003" }, { "label": "路桥区", "value": "331004" }, { "label": "三门县", "value": "331022" }, { "label": "天台县", "value": "331023" }, { "label": "仙居县", "value": "331024" }, { "label": "温岭市", "value": "331081" }, { "label": "临海市", "value": "331082" }, { "label": "玉环市", "value": "331083" }], [{ "label": "莲都区", "value": "331102" }, { "label": "青田县", "value": "331121" }, { "label": "缙云县", "value": "331122" }, { "label": "遂昌县", "value": "331123" }, { "label": "松阳县", "value": "331124" }, { "label": "云和县", "value": "331125" }, { "label": "庆元县", "value": "331126" }, { "label": "景宁畲族自治县", "value": "331127" }, { "label": "龙泉市", "value": "331181" }]], [[{ "label": "瑶海区", "value": "340102" }, { "label": "庐阳区", "value": "340103" }, { "label": "蜀山区", "value": "340104" }, { "label": "包河区", "value": "340111" }, { "label": "长丰县", "value": "340121" }, { "label": "肥东县", "value": "340122" }, { "label": "肥西县", "value": "340123" }, { "label": "庐江县", "value": "340124" }, { "label": "合肥高新技术产业开发区", "value": "340171" }, { "label": "合肥经济技术开发区", "value": "340172" }, { "label": "合肥新站高新技术产业开发区", "value": "340173" }, { "label": "巢湖市", "value": "340181" }], [{ "label": "镜湖区", "value": "340202" }, { "label": "弋江区", "value": "340203" }, { "label": "鸠江区", "value": "340207" }, { "label": "三山区", "value": "340208" }, { "label": "芜湖县", "value": "340221" }, { "label": "繁昌县", "value": "340222" }, { "label": "南陵县", "value": "340223" }, { "label": "无为县", "value": "340225" }, { "label": "芜湖经济技术开发区", "value": "340271" }, { "label": "安徽芜湖长江大桥经济开发区", "value": "340272" }], [{ "label": "龙子湖区", "value": "340302" }, { "label": "蚌山区", "value": "340303" }, { "label": "禹会区", "value": "340304" }, { "label": "淮上区", "value": "340311" }, { "label": "怀远县", "value": "340321" }, { "label": "五河县", "value": "340322" }, { "label": "固镇县", "value": "340323" }, { "label": "蚌埠市高新技术开发区", "value": "340371" }, { "label": "蚌埠市经济开发区", "value": "340372" }], [{ "label": "大通区", "value": "340402" }, { "label": "田家庵区", "value": "340403" }, { "label": "谢家集区", "value": "340404" }, { "label": "八公山区", "value": "340405" }, { "label": "潘集区", "value": "340406" }, { "label": "凤台县", "value": "340421" }, { "label": "寿县", "value": "340422" }], [{ "label": "花山区", "value": "340503" }, { "label": "雨山区", "value": "340504" }, { "label": "博望区", "value": "340506" }, { "label": "当涂县", "value": "340521" }, { "label": "含山县", "value": "340522" }, { "label": "和县", "value": "340523" }], [{ "label": "杜集区", "value": "340602" }, { "label": "相山区", "value": "340603" }, { "label": "烈山区", "value": "340604" }, { "label": "濉溪县", "value": "340621" }], [{ "label": "铜官区", "value": "340705" }, { "label": "义安区", "value": "340706" }, { "label": "郊区", "value": "340711" }, { "label": "枞阳县", "value": "340722" }], [{ "label": "迎江区", "value": "340802" }, { "label": "大观区", "value": "340803" }, { "label": "宜秀区", "value": "340811" }, { "label": "怀宁县", "value": "340822" }, { "label": "潜山县", "value": "340824" }, { "label": "太湖县", "value": "340825" }, { "label": "宿松县", "value": "340826" }, { "label": "望江县", "value": "340827" }, { "label": "岳西县", "value": "340828" }, { "label": "安徽安庆经济开发区", "value": "340871" }, { "label": "桐城市", "value": "340881" }], [{ "label": "屯溪区", "value": "341002" }, { "label": "黄山区", "value": "341003" }, { "label": "徽州区", "value": "341004" }, { "label": "歙县", "value": "341021" }, { "label": "休宁县", "value": "341022" }, { "label": "黟县", "value": "341023" }, { "label": "祁门县", "value": "341024" }], [{ "label": "琅琊区", "value": "341102" }, { "label": "南谯区", "value": "341103" }, { "label": "来安县", "value": "341122" }, { "label": "全椒县", "value": "341124" }, { "label": "定远县", "value": "341125" }, { "label": "凤阳县", "value": "341126" }, { "label": "苏滁现代产业园", "value": "341171" }, { "label": "滁州经济技术开发区", "value": "341172" }, { "label": "天长市", "value": "341181" }, { "label": "明光市", "value": "341182" }], [{ "label": "颍州区", "value": "341202" }, { "label": "颍东区", "value": "341203" }, { "label": "颍泉区", "value": "341204" }, { "label": "临泉县", "value": "341221" }, { "label": "太和县", "value": "341222" }, { "label": "阜南县", "value": "341225" }, { "label": "颍上县", "value": "341226" }, { "label": "阜阳合肥现代产业园区", "value": "341271" }, { "label": "阜阳经济技术开发区", "value": "341272" }, { "label": "界首市", "value": "341282" }], [{ "label": "埇桥区", "value": "341302" }, { "label": "砀山县", "value": "341321" }, { "label": "萧县", "value": "341322" }, { "label": "灵璧县", "value": "341323" }, { "label": "泗县", "value": "341324" }, { "label": "宿州马鞍山现代产业园区", "value": "341371" }, { "label": "宿州经济技术开发区", "value": "341372" }], [{ "label": "金安区", "value": "341502" }, { "label": "裕安区", "value": "341503" }, { "label": "叶集区", "value": "341504" }, { "label": "霍邱县", "value": "341522" }, { "label": "舒城县", "value": "341523" }, { "label": "金寨县", "value": "341524" }, { "label": "霍山县", "value": "341525" }], [{ "label": "谯城区", "value": "341602" }, { "label": "涡阳县", "value": "341621" }, { "label": "蒙城县", "value": "341622" }, { "label": "利辛县", "value": "341623" }], [{ "label": "贵池区", "value": "341702" }, { "label": "东至县", "value": "341721" }, { "label": "石台县", "value": "341722" }, { "label": "青阳县", "value": "341723" }], [{ "label": "宣州区", "value": "341802" }, { "label": "郎溪县", "value": "341821" }, { "label": "广德县", "value": "341822" }, { "label": "泾县", "value": "341823" }, { "label": "绩溪县", "value": "341824" }, { "label": "旌德县", "value": "341825" }, { "label": "宣城市经济开发区", "value": "341871" }, { "label": "宁国市", "value": "341881" }]], [[{ "label": "鼓楼区", "value": "350102" }, { "label": "台江区", "value": "350103" }, { "label": "仓山区", "value": "350104" }, { "label": "马尾区", "value": "350105" }, { "label": "晋安区", "value": "350111" }, { "label": "闽侯县", "value": "350121" }, { "label": "连江县", "value": "350122" }, { "label": "罗源县", "value": "350123" }, { "label": "闽清县", "value": "350124" }, { "label": "永泰县", "value": "350125" }, { "label": "平潭县", "value": "350128" }, { "label": "福清市", "value": "350181" }, { "label": "长乐市", "value": "350182" }], [{ "label": "思明区", "value": "350203" }, { "label": "海沧区", "value": "350205" }, { "label": "湖里区", "value": "350206" }, { "label": "集美区", "value": "350211" }, { "label": "同安区", "value": "350212" }, { "label": "翔安区", "value": "350213" }], [{ "label": "城厢区", "value": "350302" }, { "label": "涵江区", "value": "350303" }, { "label": "荔城区", "value": "350304" }, { "label": "秀屿区", "value": "350305" }, { "label": "仙游县", "value": "350322" }], [{ "label": "梅列区", "value": "350402" }, { "label": "三元区", "value": "350403" }, { "label": "明溪县", "value": "350421" }, { "label": "清流县", "value": "350423" }, { "label": "宁化县", "value": "350424" }, { "label": "大田县", "value": "350425" }, { "label": "尤溪县", "value": "350426" }, { "label": "沙县", "value": "350427" }, { "label": "将乐县", "value": "350428" }, { "label": "泰宁县", "value": "350429" }, { "label": "建宁县", "value": "350430" }, { "label": "永安市", "value": "350481" }], [{ "label": "鲤城区", "value": "350502" }, { "label": "丰泽区", "value": "350503" }, { "label": "洛江区", "value": "350504" }, { "label": "泉港区", "value": "350505" }, { "label": "惠安县", "value": "350521" }, { "label": "安溪县", "value": "350524" }, { "label": "永春县", "value": "350525" }, { "label": "德化县", "value": "350526" }, { "label": "金门县", "value": "350527" }, { "label": "石狮市", "value": "350581" }, { "label": "晋江市", "value": "350582" }, { "label": "南安市", "value": "350583" }], [{ "label": "芗城区", "value": "350602" }, { "label": "龙文区", "value": "350603" }, { "label": "云霄县", "value": "350622" }, { "label": "漳浦县", "value": "350623" }, { "label": "诏安县", "value": "350624" }, { "label": "长泰县", "value": "350625" }, { "label": "东山县", "value": "350626" }, { "label": "南靖县", "value": "350627" }, { "label": "平和县", "value": "350628" }, { "label": "华安县", "value": "350629" }, { "label": "龙海市", "value": "350681" }], [{ "label": "延平区", "value": "350702" }, { "label": "建阳区", "value": "350703" }, { "label": "顺昌县", "value": "350721" }, { "label": "浦城县", "value": "350722" }, { "label": "光泽县", "value": "350723" }, { "label": "松溪县", "value": "350724" }, { "label": "政和县", "value": "350725" }, { "label": "邵武市", "value": "350781" }, { "label": "武夷山市", "value": "350782" }, { "label": "建瓯市", "value": "350783" }], [{ "label": "新罗区", "value": "350802" }, { "label": "永定区", "value": "350803" }, { "label": "长汀县", "value": "350821" }, { "label": "上杭县", "value": "350823" }, { "label": "武平县", "value": "350824" }, { "label": "连城县", "value": "350825" }, { "label": "漳平市", "value": "350881" }], [{ "label": "蕉城区", "value": "350902" }, { "label": "霞浦县", "value": "350921" }, { "label": "古田县", "value": "350922" }, { "label": "屏南县", "value": "350923" }, { "label": "寿宁县", "value": "350924" }, { "label": "周宁县", "value": "350925" }, { "label": "柘荣县", "value": "350926" }, { "label": "福安市", "value": "350981" }, { "label": "福鼎市", "value": "350982" }]], [[{ "label": "东湖区", "value": "360102" }, { "label": "西湖区", "value": "360103" }, { "label": "青云谱区", "value": "360104" }, { "label": "湾里区", "value": "360105" }, { "label": "青山湖区", "value": "360111" }, { "label": "新建区", "value": "360112" }, { "label": "南昌县", "value": "360121" }, { "label": "安义县", "value": "360123" }, { "label": "进贤县", "value": "360124" }], [{ "label": "昌江区", "value": "360202" }, { "label": "珠山区", "value": "360203" }, { "label": "浮梁县", "value": "360222" }, { "label": "乐平市", "value": "360281" }], [{ "label": "安源区", "value": "360302" }, { "label": "湘东区", "value": "360313" }, { "label": "莲花县", "value": "360321" }, { "label": "上栗县", "value": "360322" }, { "label": "芦溪县", "value": "360323" }], [{ "label": "濂溪区", "value": "360402" }, { "label": "浔阳区", "value": "360403" }, { "label": "柴桑区", "value": "360404" }, { "label": "武宁县", "value": "360423" }, { "label": "修水县", "value": "360424" }, { "label": "永修县", "value": "360425" }, { "label": "德安县", "value": "360426" }, { "label": "都昌县", "value": "360428" }, { "label": "湖口县", "value": "360429" }, { "label": "彭泽县", "value": "360430" }, { "label": "瑞昌市", "value": "360481" }, { "label": "共青城市", "value": "360482" }, { "label": "庐山市", "value": "360483" }], [{ "label": "渝水区", "value": "360502" }, { "label": "分宜县", "value": "360521" }], [{ "label": "月湖区", "value": "360602" }, { "label": "余江县", "value": "360622" }, { "label": "贵溪市", "value": "360681" }], [{ "label": "章贡区", "value": "360702" }, { "label": "南康区", "value": "360703" }, { "label": "赣县区", "value": "360704" }, { "label": "信丰县", "value": "360722" }, { "label": "大余县", "value": "360723" }, { "label": "上犹县", "value": "360724" }, { "label": "崇义县", "value": "360725" }, { "label": "安远县", "value": "360726" }, { "label": "龙南县", "value": "360727" }, { "label": "定南县", "value": "360728" }, { "label": "全南县", "value": "360729" }, { "label": "宁都县", "value": "360730" }, { "label": "于都县", "value": "360731" }, { "label": "兴国县", "value": "360732" }, { "label": "会昌县", "value": "360733" }, { "label": "寻乌县", "value": "360734" }, { "label": "石城县", "value": "360735" }, { "label": "瑞金市", "value": "360781" }], [{ "label": "吉州区", "value": "360802" }, { "label": "青原区", "value": "360803" }, { "label": "吉安县", "value": "360821" }, { "label": "吉水县", "value": "360822" }, { "label": "峡江县", "value": "360823" }, { "label": "新干县", "value": "360824" }, { "label": "永丰县", "value": "360825" }, { "label": "泰和县", "value": "360826" }, { "label": "遂川县", "value": "360827" }, { "label": "万安县", "value": "360828" }, { "label": "安福县", "value": "360829" }, { "label": "永新县", "value": "360830" }, { "label": "井冈山市", "value": "360881" }], [{ "label": "袁州区", "value": "360902" }, { "label": "奉新县", "value": "360921" }, { "label": "万载县", "value": "360922" }, { "label": "上高县", "value": "360923" }, { "label": "宜丰县", "value": "360924" }, { "label": "靖安县", "value": "360925" }, { "label": "铜鼓县", "value": "360926" }, { "label": "丰城市", "value": "360981" }, { "label": "樟树市", "value": "360982" }, { "label": "高安市", "value": "360983" }], [{ "label": "临川区", "value": "361002" }, { "label": "东乡区", "value": "361003" }, { "label": "南城县", "value": "361021" }, { "label": "黎川县", "value": "361022" }, { "label": "南丰县", "value": "361023" }, { "label": "崇仁县", "value": "361024" }, { "label": "乐安县", "value": "361025" }, { "label": "宜黄县", "value": "361026" }, { "label": "金溪县", "value": "361027" }, { "label": "资溪县", "value": "361028" }, { "label": "广昌县", "value": "361030" }], [{ "label": "信州区", "value": "361102" }, { "label": "广丰区", "value": "361103" }, { "label": "上饶县", "value": "361121" }, { "label": "玉山县", "value": "361123" }, { "label": "铅山县", "value": "361124" }, { "label": "横峰县", "value": "361125" }, { "label": "弋阳县", "value": "361126" }, { "label": "余干县", "value": "361127" }, { "label": "鄱阳县", "value": "361128" }, { "label": "万年县", "value": "361129" }, { "label": "婺源县", "value": "361130" }, { "label": "德兴市", "value": "361181" }]], [[{ "label": "历下区", "value": "370102" }, { "label": "市中区", "value": "370103" }, { "label": "槐荫区", "value": "370104" }, { "label": "天桥区", "value": "370105" }, { "label": "历城区", "value": "370112" }, { "label": "长清区", "value": "370113" }, { "label": "章丘区", "value": "370114" }, { "label": "平阴县", "value": "370124" }, { "label": "济阳县", "value": "370125" }, { "label": "商河县", "value": "370126" }, { "label": "济南高新技术产业开发区", "value": "370171" }], [{ "label": "市南区", "value": "370202" }, { "label": "市北区", "value": "370203" }, { "label": "黄岛区", "value": "370211" }, { "label": "崂山区", "value": "370212" }, { "label": "李沧区", "value": "370213" }, { "label": "城阳区", "value": "370214" }, { "label": "即墨区", "value": "370215" }, { "label": "青岛高新技术产业开发区", "value": "370271" }, { "label": "胶州市", "value": "370281" }, { "label": "平度市", "value": "370283" }, { "label": "莱西市", "value": "370285" }], [{ "label": "淄川区", "value": "370302" }, { "label": "张店区", "value": "370303" }, { "label": "博山区", "value": "370304" }, { "label": "临淄区", "value": "370305" }, { "label": "周村区", "value": "370306" }, { "label": "桓台县", "value": "370321" }, { "label": "高青县", "value": "370322" }, { "label": "沂源县", "value": "370323" }], [{ "label": "市中区", "value": "370402" }, { "label": "薛城区", "value": "370403" }, { "label": "峄城区", "value": "370404" }, { "label": "台儿庄区", "value": "370405" }, { "label": "山亭区", "value": "370406" }, { "label": "滕州市", "value": "370481" }], [{ "label": "东营区", "value": "370502" }, { "label": "河口区", "value": "370503" }, { "label": "垦利区", "value": "370505" }, { "label": "利津县", "value": "370522" }, { "label": "广饶县", "value": "370523" }, { "label": "东营经济技术开发区", "value": "370571" }, { "label": "东营港经济开发区", "value": "370572" }], [{ "label": "芝罘区", "value": "370602" }, { "label": "福山区", "value": "370611" }, { "label": "牟平区", "value": "370612" }, { "label": "莱山区", "value": "370613" }, { "label": "长岛县", "value": "370634" }, { "label": "烟台高新技术产业开发区", "value": "370671" }, { "label": "烟台经济技术开发区", "value": "370672" }, { "label": "龙口市", "value": "370681" }, { "label": "莱阳市", "value": "370682" }, { "label": "莱州市", "value": "370683" }, { "label": "蓬莱市", "value": "370684" }, { "label": "招远市", "value": "370685" }, { "label": "栖霞市", "value": "370686" }, { "label": "海阳市", "value": "370687" }], [{ "label": "潍城区", "value": "370702" }, { "label": "寒亭区", "value": "370703" }, { "label": "坊子区", "value": "370704" }, { "label": "奎文区", "value": "370705" }, { "label": "临朐县", "value": "370724" }, { "label": "昌乐县", "value": "370725" }, { "label": "潍坊滨海经济技术开发区", "value": "370772" }, { "label": "青州市", "value": "370781" }, { "label": "诸城市", "value": "370782" }, { "label": "寿光市", "value": "370783" }, { "label": "安丘市", "value": "370784" }, { "label": "高密市", "value": "370785" }, { "label": "昌邑市", "value": "370786" }], [{ "label": "任城区", "value": "370811" }, { "label": "兖州区", "value": "370812" }, { "label": "微山县", "value": "370826" }, { "label": "鱼台县", "value": "370827" }, { "label": "金乡县", "value": "370828" }, { "label": "嘉祥县", "value": "370829" }, { "label": "汶上县", "value": "370830" }, { "label": "泗水县", "value": "370831" }, { "label": "梁山县", "value": "370832" }, { "label": "济宁高新技术产业开发区", "value": "370871" }, { "label": "曲阜市", "value": "370881" }, { "label": "邹城市", "value": "370883" }], [{ "label": "泰山区", "value": "370902" }, { "label": "岱岳区", "value": "370911" }, { "label": "宁阳县", "value": "370921" }, { "label": "东平县", "value": "370923" }, { "label": "新泰市", "value": "370982" }, { "label": "肥城市", "value": "370983" }], [{ "label": "环翠区", "value": "371002" }, { "label": "文登区", "value": "371003" }, { "label": "威海火炬高技术产业开发区", "value": "371071" }, { "label": "威海经济技术开发区", "value": "371072" }, { "label": "威海临港经济技术开发区", "value": "371073" }, { "label": "荣成市", "value": "371082" }, { "label": "乳山市", "value": "371083" }], [{ "label": "东港区", "value": "371102" }, { "label": "岚山区", "value": "371103" }, { "label": "五莲县", "value": "371121" }, { "label": "莒县", "value": "371122" }, { "label": "日照经济技术开发区", "value": "371171" }, { "label": "日照国际海洋城", "value": "371172" }], [{ "label": "莱城区", "value": "371202" }, { "label": "钢城区", "value": "371203" }], [{ "label": "兰山区", "value": "371302" }, { "label": "罗庄区", "value": "371311" }, { "label": "河东区", "value": "371312" }, { "label": "沂南县", "value": "371321" }, { "label": "郯城县", "value": "371322" }, { "label": "沂水县", "value": "371323" }, { "label": "兰陵县", "value": "371324" }, { "label": "费县", "value": "371325" }, { "label": "平邑县", "value": "371326" }, { "label": "莒南县", "value": "371327" }, { "label": "蒙阴县", "value": "371328" }, { "label": "临沭县", "value": "371329" }, { "label": "临沂高新技术产业开发区", "value": "371371" }, { "label": "临沂经济技术开发区", "value": "371372" }, { "label": "临沂临港经济开发区", "value": "371373" }], [{ "label": "德城区", "value": "371402" }, { "label": "陵城区", "value": "371403" }, { "label": "宁津县", "value": "371422" }, { "label": "庆云县", "value": "371423" }, { "label": "临邑县", "value": "371424" }, { "label": "齐河县", "value": "371425" }, { "label": "平原县", "value": "371426" }, { "label": "夏津县", "value": "371427" }, { "label": "武城县", "value": "371428" }, { "label": "德州经济技术开发区", "value": "371471" }, { "label": "德州运河经济开发区", "value": "371472" }, { "label": "乐陵市", "value": "371481" }, { "label": "禹城市", "value": "371482" }], [{ "label": "东昌府区", "value": "371502" }, { "label": "阳谷县", "value": "371521" }, { "label": "莘县", "value": "371522" }, { "label": "茌平县", "value": "371523" }, { "label": "东阿县", "value": "371524" }, { "label": "冠县", "value": "371525" }, { "label": "高唐县", "value": "371526" }, { "label": "临清市", "value": "371581" }], [{ "label": "滨城区", "value": "371602" }, { "label": "沾化区", "value": "371603" }, { "label": "惠民县", "value": "371621" }, { "label": "阳信县", "value": "371622" }, { "label": "无棣县", "value": "371623" }, { "label": "博兴县", "value": "371625" }, { "label": "邹平县", "value": "371626" }], [{ "label": "牡丹区", "value": "371702" }, { "label": "定陶区", "value": "371703" }, { "label": "曹县", "value": "371721" }, { "label": "单县", "value": "371722" }, { "label": "成武县", "value": "371723" }, { "label": "巨野县", "value": "371724" }, { "label": "郓城县", "value": "371725" }, { "label": "鄄城县", "value": "371726" }, { "label": "东明县", "value": "371728" }, { "label": "菏泽经济技术开发区", "value": "371771" }, { "label": "菏泽高新技术开发区", "value": "371772" }]], [[{ "label": "中原区", "value": "410102" }, { "label": "二七区", "value": "410103" }, { "label": "管城回族区", "value": "410104" }, { "label": "金水区", "value": "410105" }, { "label": "上街区", "value": "410106" }, { "label": "惠济区", "value": "410108" }, { "label": "中牟县", "value": "410122" }, { "label": "郑州经济技术开发区", "value": "410171" }, { "label": "郑州高新技术产业开发区", "value": "410172" }, { "label": "郑州航空港经济综合实验区", "value": "410173" }, { "label": "巩义市", "value": "410181" }, { "label": "荥阳市", "value": "410182" }, { "label": "新密市", "value": "410183" }, { "label": "新郑市", "value": "410184" }, { "label": "登封市", "value": "410185" }], [{ "label": "龙亭区", "value": "410202" }, { "label": "顺河回族区", "value": "410203" }, { "label": "鼓楼区", "value": "410204" }, { "label": "禹王台区", "value": "410205" }, { "label": "祥符区", "value": "410212" }, { "label": "杞县", "value": "410221" }, { "label": "通许县", "value": "410222" }, { "label": "尉氏县", "value": "410223" }, { "label": "兰考县", "value": "410225" }], [{ "label": "老城区", "value": "410302" }, { "label": "西工区", "value": "410303" }, { "label": "瀍河回族区", "value": "410304" }, { "label": "涧西区", "value": "410305" }, { "label": "吉利区", "value": "410306" }, { "label": "洛龙区", "value": "410311" }, { "label": "孟津县", "value": "410322" }, { "label": "新安县", "value": "410323" }, { "label": "栾川县", "value": "410324" }, { "label": "嵩县", "value": "410325" }, { "label": "汝阳县", "value": "410326" }, { "label": "宜阳县", "value": "410327" }, { "label": "洛宁县", "value": "410328" }, { "label": "伊川县", "value": "410329" }, { "label": "洛阳高新技术产业开发区", "value": "410371" }, { "label": "偃师市", "value": "410381" }], [{ "label": "新华区", "value": "410402" }, { "label": "卫东区", "value": "410403" }, { "label": "石龙区", "value": "410404" }, { "label": "湛河区", "value": "410411" }, { "label": "宝丰县", "value": "410421" }, { "label": "叶县", "value": "410422" }, { "label": "鲁山县", "value": "410423" }, { "label": "郏县", "value": "410425" }, { "label": "平顶山高新技术产业开发区", "value": "410471" }, { "label": "平顶山市新城区", "value": "410472" }, { "label": "舞钢市", "value": "410481" }, { "label": "汝州市", "value": "410482" }], [{ "label": "文峰区", "value": "410502" }, { "label": "北关区", "value": "410503" }, { "label": "殷都区", "value": "410505" }, { "label": "龙安区", "value": "410506" }, { "label": "安阳县", "value": "410522" }, { "label": "汤阴县", "value": "410523" }, { "label": "滑县", "value": "410526" }, { "label": "内黄县", "value": "410527" }, { "label": "安阳高新技术产业开发区", "value": "410571" }, { "label": "林州市", "value": "410581" }], [{ "label": "鹤山区", "value": "410602" }, { "label": "山城区", "value": "410603" }, { "label": "淇滨区", "value": "410611" }, { "label": "浚县", "value": "410621" }, { "label": "淇县", "value": "410622" }, { "label": "鹤壁经济技术开发区", "value": "410671" }], [{ "label": "红旗区", "value": "410702" }, { "label": "卫滨区", "value": "410703" }, { "label": "凤泉区", "value": "410704" }, { "label": "牧野区", "value": "410711" }, { "label": "新乡县", "value": "410721" }, { "label": "获嘉县", "value": "410724" }, { "label": "原阳县", "value": "410725" }, { "label": "延津县", "value": "410726" }, { "label": "封丘县", "value": "410727" }, { "label": "长垣县", "value": "410728" }, { "label": "新乡高新技术产业开发区", "value": "410771" }, { "label": "新乡经济技术开发区", "value": "410772" }, { "label": "新乡市平原城乡一体化示范区", "value": "410773" }, { "label": "卫辉市", "value": "410781" }, { "label": "辉县市", "value": "410782" }], [{ "label": "解放区", "value": "410802" }, { "label": "中站区", "value": "410803" }, { "label": "马村区", "value": "410804" }, { "label": "山阳区", "value": "410811" }, { "label": "修武县", "value": "410821" }, { "label": "博爱县", "value": "410822" }, { "label": "武陟县", "value": "410823" }, { "label": "温县", "value": "410825" }, { "label": "焦作城乡一体化示范区", "value": "410871" }, { "label": "沁阳市", "value": "410882" }, { "label": "孟州市", "value": "410883" }], [{ "label": "华龙区", "value": "410902" }, { "label": "清丰县", "value": "410922" }, { "label": "南乐县", "value": "410923" }, { "label": "范县", "value": "410926" }, { "label": "台前县", "value": "410927" }, { "label": "濮阳县", "value": "410928" }, { "label": "河南濮阳工业园区", "value": "410971" }, { "label": "濮阳经济技术开发区", "value": "410972" }], [{ "label": "魏都区", "value": "411002" }, { "label": "建安区", "value": "411003" }, { "label": "鄢陵县", "value": "411024" }, { "label": "襄城县", "value": "411025" }, { "label": "许昌经济技术开发区", "value": "411071" }, { "label": "禹州市", "value": "411081" }, { "label": "长葛市", "value": "411082" }], [{ "label": "源汇区", "value": "411102" }, { "label": "郾城区", "value": "411103" }, { "label": "召陵区", "value": "411104" }, { "label": "舞阳县", "value": "411121" }, { "label": "临颍县", "value": "411122" }, { "label": "漯河经济技术开发区", "value": "411171" }], [{ "label": "湖滨区", "value": "411202" }, { "label": "陕州区", "value": "411203" }, { "label": "渑池县", "value": "411221" }, { "label": "卢氏县", "value": "411224" }, { "label": "河南三门峡经济开发区", "value": "411271" }, { "label": "义马市", "value": "411281" }, { "label": "灵宝市", "value": "411282" }], [{ "label": "宛城区", "value": "411302" }, { "label": "卧龙区", "value": "411303" }, { "label": "南召县", "value": "411321" }, { "label": "方城县", "value": "411322" }, { "label": "西峡县", "value": "411323" }, { "label": "镇平县", "value": "411324" }, { "label": "内乡县", "value": "411325" }, { "label": "淅川县", "value": "411326" }, { "label": "社旗县", "value": "411327" }, { "label": "唐河县", "value": "411328" }, { "label": "新野县", "value": "411329" }, { "label": "桐柏县", "value": "411330" }, { "label": "南阳高新技术产业开发区", "value": "411371" }, { "label": "南阳市城乡一体化示范区", "value": "411372" }, { "label": "邓州市", "value": "411381" }], [{ "label": "梁园区", "value": "411402" }, { "label": "睢阳区", "value": "411403" }, { "label": "民权县", "value": "411421" }, { "label": "睢县", "value": "411422" }, { "label": "宁陵县", "value": "411423" }, { "label": "柘城县", "value": "411424" }, { "label": "虞城县", "value": "411425" }, { "label": "夏邑县", "value": "411426" }, { "label": "豫东综合物流产业聚集区", "value": "411471" }, { "label": "河南商丘经济开发区", "value": "411472" }, { "label": "永城市", "value": "411481" }], [{ "label": "浉河区", "value": "411502" }, { "label": "平桥区", "value": "411503" }, { "label": "罗山县", "value": "411521" }, { "label": "光山县", "value": "411522" }, { "label": "新县", "value": "411523" }, { "label": "商城县", "value": "411524" }, { "label": "固始县", "value": "411525" }, { "label": "潢川县", "value": "411526" }, { "label": "淮滨县", "value": "411527" }, { "label": "息县", "value": "411528" }, { "label": "信阳高新技术产业开发区", "value": "411571" }], [{ "label": "川汇区", "value": "411602" }, { "label": "扶沟县", "value": "411621" }, { "label": "西华县", "value": "411622" }, { "label": "商水县", "value": "411623" }, { "label": "沈丘县", "value": "411624" }, { "label": "郸城县", "value": "411625" }, { "label": "淮阳县", "value": "411626" }, { "label": "太康县", "value": "411627" }, { "label": "鹿邑县", "value": "411628" }, { "label": "河南周口经济开发区", "value": "411671" }, { "label": "项城市", "value": "411681" }], [{ "label": "驿城区", "value": "411702" }, { "label": "西平县", "value": "411721" }, { "label": "上蔡县", "value": "411722" }, { "label": "平舆县", "value": "411723" }, { "label": "正阳县", "value": "411724" }, { "label": "确山县", "value": "411725" }, { "label": "泌阳县", "value": "411726" }, { "label": "汝南县", "value": "411727" }, { "label": "遂平县", "value": "411728" }, { "label": "新蔡县", "value": "411729" }, { "label": "河南驻马店经济开发区", "value": "411771" }], [{ "label": "济源市", "value": "419001" }]], [[{ "label": "江岸区", "value": "420102" }, { "label": "江汉区", "value": "420103" }, { "label": "硚口区", "value": "420104" }, { "label": "汉阳区", "value": "420105" }, { "label": "武昌区", "value": "420106" }, { "label": "青山区", "value": "420107" }, { "label": "洪山区", "value": "420111" }, { "label": "东西湖区", "value": "420112" }, { "label": "汉南区", "value": "420113" }, { "label": "蔡甸区", "value": "420114" }, { "label": "江夏区", "value": "420115" }, { "label": "黄陂区", "value": "420116" }, { "label": "新洲区", "value": "420117" }], [{ "label": "黄石港区", "value": "420202" }, { "label": "西塞山区", "value": "420203" }, { "label": "下陆区", "value": "420204" }, { "label": "铁山区", "value": "420205" }, { "label": "阳新县", "value": "420222" }, { "label": "大冶市", "value": "420281" }], [{ "label": "茅箭区", "value": "420302" }, { "label": "张湾区", "value": "420303" }, { "label": "郧阳区", "value": "420304" }, { "label": "郧西县", "value": "420322" }, { "label": "竹山县", "value": "420323" }, { "label": "竹溪县", "value": "420324" }, { "label": "房县", "value": "420325" }, { "label": "丹江口市", "value": "420381" }], [{ "label": "西陵区", "value": "420502" }, { "label": "伍家岗区", "value": "420503" }, { "label": "点军区", "value": "420504" }, { "label": "猇亭区", "value": "420505" }, { "label": "夷陵区", "value": "420506" }, { "label": "远安县", "value": "420525" }, { "label": "兴山县", "value": "420526" }, { "label": "秭归县", "value": "420527" }, { "label": "长阳土家族自治县", "value": "420528" }, { "label": "五峰土家族自治县", "value": "420529" }, { "label": "宜都市", "value": "420581" }, { "label": "当阳市", "value": "420582" }, { "label": "枝江市", "value": "420583" }], [{ "label": "襄城区", "value": "420602" }, { "label": "樊城区", "value": "420606" }, { "label": "襄州区", "value": "420607" }, { "label": "南漳县", "value": "420624" }, { "label": "谷城县", "value": "420625" }, { "label": "保康县", "value": "420626" }, { "label": "老河口市", "value": "420682" }, { "label": "枣阳市", "value": "420683" }, { "label": "宜城市", "value": "420684" }], [{ "label": "梁子湖区", "value": "420702" }, { "label": "华容区", "value": "420703" }, { "label": "鄂城区", "value": "420704" }], [{ "label": "东宝区", "value": "420802" }, { "label": "掇刀区", "value": "420804" }, { "label": "京山县", "value": "420821" }, { "label": "沙洋县", "value": "420822" }, { "label": "钟祥市", "value": "420881" }], [{ "label": "孝南区", "value": "420902" }, { "label": "孝昌县", "value": "420921" }, { "label": "大悟县", "value": "420922" }, { "label": "云梦县", "value": "420923" }, { "label": "应城市", "value": "420981" }, { "label": "安陆市", "value": "420982" }, { "label": "汉川市", "value": "420984" }], [{ "label": "沙市区", "value": "421002" }, { "label": "荆州区", "value": "421003" }, { "label": "公安县", "value": "421022" }, { "label": "监利县", "value": "421023" }, { "label": "江陵县", "value": "421024" }, { "label": "荆州经济技术开发区", "value": "421071" }, { "label": "石首市", "value": "421081" }, { "label": "洪湖市", "value": "421083" }, { "label": "松滋市", "value": "421087" }], [{ "label": "黄州区", "value": "421102" }, { "label": "团风县", "value": "421121" }, { "label": "红安县", "value": "421122" }, { "label": "罗田县", "value": "421123" }, { "label": "英山县", "value": "421124" }, { "label": "浠水县", "value": "421125" }, { "label": "蕲春县", "value": "421126" }, { "label": "黄梅县", "value": "421127" }, { "label": "龙感湖管理区", "value": "421171" }, { "label": "麻城市", "value": "421181" }, { "label": "武穴市", "value": "421182" }], [{ "label": "咸安区", "value": "421202" }, { "label": "嘉鱼县", "value": "421221" }, { "label": "通城县", "value": "421222" }, { "label": "崇阳县", "value": "421223" }, { "label": "通山县", "value": "421224" }, { "label": "赤壁市", "value": "421281" }], [{ "label": "曾都区", "value": "421303" }, { "label": "随县", "value": "421321" }, { "label": "广水市", "value": "421381" }], [{ "label": "恩施市", "value": "422801" }, { "label": "利川市", "value": "422802" }, { "label": "建始县", "value": "422822" }, { "label": "巴东县", "value": "422823" }, { "label": "宣恩县", "value": "422825" }, { "label": "咸丰县", "value": "422826" }, { "label": "来凤县", "value": "422827" }, { "label": "鹤峰县", "value": "422828" }], [{ "label": "仙桃市", "value": "429004" }, { "label": "潜江市", "value": "429005" }, { "label": "天门市", "value": "429006" }, { "label": "神农架林区", "value": "429021" }]], [[{ "label": "芙蓉区", "value": "430102" }, { "label": "天心区", "value": "430103" }, { "label": "岳麓区", "value": "430104" }, { "label": "开福区", "value": "430105" }, { "label": "雨花区", "value": "430111" }, { "label": "望城区", "value": "430112" }, { "label": "长沙县", "value": "430121" }, { "label": "浏阳市", "value": "430181" }, { "label": "宁乡市", "value": "430182" }], [{ "label": "荷塘区", "value": "430202" }, { "label": "芦淞区", "value": "430203" }, { "label": "石峰区", "value": "430204" }, { "label": "天元区", "value": "430211" }, { "label": "株洲县", "value": "430221" }, { "label": "攸县", "value": "430223" }, { "label": "茶陵县", "value": "430224" }, { "label": "炎陵县", "value": "430225" }, { "label": "云龙示范区", "value": "430271" }, { "label": "醴陵市", "value": "430281" }], [{ "label": "雨湖区", "value": "430302" }, { "label": "岳塘区", "value": "430304" }, { "label": "湘潭县", "value": "430321" }, { "label": "湖南湘潭高新技术产业园区", "value": "430371" }, { "label": "湘潭昭山示范区", "value": "430372" }, { "label": "湘潭九华示范区", "value": "430373" }, { "label": "湘乡市", "value": "430381" }, { "label": "韶山市", "value": "430382" }], [{ "label": "珠晖区", "value": "430405" }, { "label": "雁峰区", "value": "430406" }, { "label": "石鼓区", "value": "430407" }, { "label": "蒸湘区", "value": "430408" }, { "label": "南岳区", "value": "430412" }, { "label": "衡阳县", "value": "430421" }, { "label": "衡南县", "value": "430422" }, { "label": "衡山县", "value": "430423" }, { "label": "衡东县", "value": "430424" }, { "label": "祁东县", "value": "430426" }, { "label": "衡阳综合保税区", "value": "430471" }, { "label": "湖南衡阳高新技术产业园区", "value": "430472" }, { "label": "湖南衡阳松木经济开发区", "value": "430473" }, { "label": "耒阳市", "value": "430481" }, { "label": "常宁市", "value": "430482" }], [{ "label": "双清区", "value": "430502" }, { "label": "大祥区", "value": "430503" }, { "label": "北塔区", "value": "430511" }, { "label": "邵东县", "value": "430521" }, { "label": "新邵县", "value": "430522" }, { "label": "邵阳县", "value": "430523" }, { "label": "隆回县", "value": "430524" }, { "label": "洞口县", "value": "430525" }, { "label": "绥宁县", "value": "430527" }, { "label": "新宁县", "value": "430528" }, { "label": "城步苗族自治县", "value": "430529" }, { "label": "武冈市", "value": "430581" }], [{ "label": "岳阳楼区", "value": "430602" }, { "label": "云溪区", "value": "430603" }, { "label": "君山区", "value": "430611" }, { "label": "岳阳县", "value": "430621" }, { "label": "华容县", "value": "430623" }, { "label": "湘阴县", "value": "430624" }, { "label": "平江县", "value": "430626" }, { "label": "岳阳市屈原管理区", "value": "430671" }, { "label": "汨罗市", "value": "430681" }, { "label": "临湘市", "value": "430682" }], [{ "label": "武陵区", "value": "430702" }, { "label": "鼎城区", "value": "430703" }, { "label": "安乡县", "value": "430721" }, { "label": "汉寿县", "value": "430722" }, { "label": "澧县", "value": "430723" }, { "label": "临澧县", "value": "430724" }, { "label": "桃源县", "value": "430725" }, { "label": "石门县", "value": "430726" }, { "label": "常德市西洞庭管理区", "value": "430771" }, { "label": "津市市", "value": "430781" }], [{ "label": "永定区", "value": "430802" }, { "label": "武陵源区", "value": "430811" }, { "label": "慈利县", "value": "430821" }, { "label": "桑植县", "value": "430822" }], [{ "label": "资阳区", "value": "430902" }, { "label": "赫山区", "value": "430903" }, { "label": "南县", "value": "430921" }, { "label": "桃江县", "value": "430922" }, { "label": "安化县", "value": "430923" }, { "label": "益阳市大通湖管理区", "value": "430971" }, { "label": "湖南益阳高新技术产业园区", "value": "430972" }, { "label": "沅江市", "value": "430981" }], [{ "label": "北湖区", "value": "431002" }, { "label": "苏仙区", "value": "431003" }, { "label": "桂阳县", "value": "431021" }, { "label": "宜章县", "value": "431022" }, { "label": "永兴县", "value": "431023" }, { "label": "嘉禾县", "value": "431024" }, { "label": "临武县", "value": "431025" }, { "label": "汝城县", "value": "431026" }, { "label": "桂东县", "value": "431027" }, { "label": "安仁县", "value": "431028" }, { "label": "资兴市", "value": "431081" }], [{ "label": "零陵区", "value": "431102" }, { "label": "冷水滩区", "value": "431103" }, { "label": "祁阳县", "value": "431121" }, { "label": "东安县", "value": "431122" }, { "label": "双牌县", "value": "431123" }, { "label": "道县", "value": "431124" }, { "label": "江永县", "value": "431125" }, { "label": "宁远县", "value": "431126" }, { "label": "蓝山县", "value": "431127" }, { "label": "新田县", "value": "431128" }, { "label": "江华瑶族自治县", "value": "431129" }, { "label": "永州经济技术开发区", "value": "431171" }, { "label": "永州市金洞管理区", "value": "431172" }, { "label": "永州市回龙圩管理区", "value": "431173" }], [{ "label": "鹤城区", "value": "431202" }, { "label": "中方县", "value": "431221" }, { "label": "沅陵县", "value": "431222" }, { "label": "辰溪县", "value": "431223" }, { "label": "溆浦县", "value": "431224" }, { "label": "会同县", "value": "431225" }, { "label": "麻阳苗族自治县", "value": "431226" }, { "label": "新晃侗族自治县", "value": "431227" }, { "label": "芷江侗族自治县", "value": "431228" }, { "label": "靖州苗族侗族自治县", "value": "431229" }, { "label": "通道侗族自治县", "value": "431230" }, { "label": "怀化市洪江管理区", "value": "431271" }, { "label": "洪江市", "value": "431281" }], [{ "label": "娄星区", "value": "431302" }, { "label": "双峰县", "value": "431321" }, { "label": "新化县", "value": "431322" }, { "label": "冷水江市", "value": "431381" }, { "label": "涟源市", "value": "431382" }], [{ "label": "吉首市", "value": "433101" }, { "label": "泸溪县", "value": "433122" }, { "label": "凤凰县", "value": "433123" }, { "label": "花垣县", "value": "433124" }, { "label": "保靖县", "value": "433125" }, { "label": "古丈县", "value": "433126" }, { "label": "永顺县", "value": "433127" }, { "label": "龙山县", "value": "433130" }, { "label": "湖南吉首经济开发区", "value": "433172" }, { "label": "湖南永顺经济开发区", "value": "433173" }]], [[{ "label": "荔湾区", "value": "440103" }, { "label": "越秀区", "value": "440104" }, { "label": "海珠区", "value": "440105" }, { "label": "天河区", "value": "440106" }, { "label": "白云区", "value": "440111" }, { "label": "黄埔区", "value": "440112" }, { "label": "番禺区", "value": "440113" }, { "label": "花都区", "value": "440114" }, { "label": "南沙区", "value": "440115" }, { "label": "从化区", "value": "440117" }, { "label": "增城区", "value": "440118" }], [{ "label": "武江区", "value": "440203" }, { "label": "浈江区", "value": "440204" }, { "label": "曲江区", "value": "440205" }, { "label": "始兴县", "value": "440222" }, { "label": "仁化县", "value": "440224" }, { "label": "翁源县", "value": "440229" }, { "label": "乳源瑶族自治县", "value": "440232" }, { "label": "新丰县", "value": "440233" }, { "label": "乐昌市", "value": "440281" }, { "label": "南雄市", "value": "440282" }], [{ "label": "罗湖区", "value": "440303" }, { "label": "福田区", "value": "440304" }, { "label": "南山区", "value": "440305" }, { "label": "宝安区", "value": "440306" }, { "label": "龙岗区", "value": "440307" }, { "label": "盐田区", "value": "440308" }, { "label": "龙华区", "value": "440309" }, { "label": "坪山区", "value": "440310" }], [{ "label": "香洲区", "value": "440402" }, { "label": "斗门区", "value": "440403" }, { "label": "金湾区", "value": "440404" }], [{ "label": "龙湖区", "value": "440507" }, { "label": "金平区", "value": "440511" }, { "label": "濠江区", "value": "440512" }, { "label": "潮阳区", "value": "440513" }, { "label": "潮南区", "value": "440514" }, { "label": "澄海区", "value": "440515" }, { "label": "南澳县", "value": "440523" }], [{ "label": "禅城区", "value": "440604" }, { "label": "南海区", "value": "440605" }, { "label": "顺德区", "value": "440606" }, { "label": "三水区", "value": "440607" }, { "label": "高明区", "value": "440608" }], [{ "label": "蓬江区", "value": "440703" }, { "label": "江海区", "value": "440704" }, { "label": "新会区", "value": "440705" }, { "label": "台山市", "value": "440781" }, { "label": "开平市", "value": "440783" }, { "label": "鹤山市", "value": "440784" }, { "label": "恩平市", "value": "440785" }], [{ "label": "赤坎区", "value": "440802" }, { "label": "霞山区", "value": "440803" }, { "label": "坡头区", "value": "440804" }, { "label": "麻章区", "value": "440811" }, { "label": "遂溪县", "value": "440823" }, { "label": "徐闻县", "value": "440825" }, { "label": "廉江市", "value": "440881" }, { "label": "雷州市", "value": "440882" }, { "label": "吴川市", "value": "440883" }], [{ "label": "茂南区", "value": "440902" }, { "label": "电白区", "value": "440904" }, { "label": "高州市", "value": "440981" }, { "label": "化州市", "value": "440982" }, { "label": "信宜市", "value": "440983" }], [{ "label": "端州区", "value": "441202" }, { "label": "鼎湖区", "value": "441203" }, { "label": "高要区", "value": "441204" }, { "label": "广宁县", "value": "441223" }, { "label": "怀集县", "value": "441224" }, { "label": "封开县", "value": "441225" }, { "label": "德庆县", "value": "441226" }, { "label": "四会市", "value": "441284" }], [{ "label": "惠城区", "value": "441302" }, { "label": "惠阳区", "value": "441303" }, { "label": "博罗县", "value": "441322" }, { "label": "惠东县", "value": "441323" }, { "label": "龙门县", "value": "441324" }], [{ "label": "梅江区", "value": "441402" }, { "label": "梅县区", "value": "441403" }, { "label": "大埔县", "value": "441422" }, { "label": "丰顺县", "value": "441423" }, { "label": "五华县", "value": "441424" }, { "label": "平远县", "value": "441426" }, { "label": "蕉岭县", "value": "441427" }, { "label": "兴宁市", "value": "441481" }], [{ "label": "城区", "value": "441502" }, { "label": "海丰县", "value": "441521" }, { "label": "陆河县", "value": "441523" }, { "label": "陆丰市", "value": "441581" }], [{ "label": "源城区", "value": "441602" }, { "label": "紫金县", "value": "441621" }, { "label": "龙川县", "value": "441622" }, { "label": "连平县", "value": "441623" }, { "label": "和平县", "value": "441624" }, { "label": "东源县", "value": "441625" }], [{ "label": "江城区", "value": "441702" }, { "label": "阳东区", "value": "441704" }, { "label": "阳西县", "value": "441721" }, { "label": "阳春市", "value": "441781" }], [{ "label": "清城区", "value": "441802" }, { "label": "清新区", "value": "441803" }, { "label": "佛冈县", "value": "441821" }, { "label": "阳山县", "value": "441823" }, { "label": "连山壮族瑶族自治县", "value": "441825" }, { "label": "连南瑶族自治县", "value": "441826" }, { "label": "英德市", "value": "441881" }, { "label": "连州市", "value": "441882" }], [{ "label": "东莞市", "value": "441900" }], [{ "label": "中山市", "value": "442000" }], [{ "label": "湘桥区", "value": "445102" }, { "label": "潮安区", "value": "445103" }, { "label": "饶平县", "value": "445122" }], [{ "label": "榕城区", "value": "445202" }, { "label": "揭东区", "value": "445203" }, { "label": "揭西县", "value": "445222" }, { "label": "惠来县", "value": "445224" }, { "label": "普宁市", "value": "445281" }], [{ "label": "云城区", "value": "445302" }, { "label": "云安区", "value": "445303" }, { "label": "新兴县", "value": "445321" }, { "label": "郁南县", "value": "445322" }, { "label": "罗定市", "value": "445381" }]], [[{ "label": "兴宁区", "value": "450102" }, { "label": "青秀区", "value": "450103" }, { "label": "江南区", "value": "450105" }, { "label": "西乡塘区", "value": "450107" }, { "label": "良庆区", "value": "450108" }, { "label": "邕宁区", "value": "450109" }, { "label": "武鸣区", "value": "450110" }, { "label": "隆安县", "value": "450123" }, { "label": "马山县", "value": "450124" }, { "label": "上林县", "value": "450125" }, { "label": "宾阳县", "value": "450126" }, { "label": "横县", "value": "450127" }], [{ "label": "城中区", "value": "450202" }, { "label": "鱼峰区", "value": "450203" }, { "label": "柳南区", "value": "450204" }, { "label": "柳北区", "value": "450205" }, { "label": "柳江区", "value": "450206" }, { "label": "柳城县", "value": "450222" }, { "label": "鹿寨县", "value": "450223" }, { "label": "融安县", "value": "450224" }, { "label": "融水苗族自治县", "value": "450225" }, { "label": "三江侗族自治县", "value": "450226" }], [{ "label": "秀峰区", "value": "450302" }, { "label": "叠彩区", "value": "450303" }, { "label": "象山区", "value": "450304" }, { "label": "七星区", "value": "450305" }, { "label": "雁山区", "value": "450311" }, { "label": "临桂区", "value": "450312" }, { "label": "阳朔县", "value": "450321" }, { "label": "灵川县", "value": "450323" }, { "label": "全州县", "value": "450324" }, { "label": "兴安县", "value": "450325" }, { "label": "永福县", "value": "450326" }, { "label": "灌阳县", "value": "450327" }, { "label": "龙胜各族自治县", "value": "450328" }, { "label": "资源县", "value": "450329" }, { "label": "平乐县", "value": "450330" }, { "label": "荔浦县", "value": "450331" }, { "label": "恭城瑶族自治县", "value": "450332" }], [{ "label": "万秀区", "value": "450403" }, { "label": "长洲区", "value": "450405" }, { "label": "龙圩区", "value": "450406" }, { "label": "苍梧县", "value": "450421" }, { "label": "藤县", "value": "450422" }, { "label": "蒙山县", "value": "450423" }, { "label": "岑溪市", "value": "450481" }], [{ "label": "海城区", "value": "450502" }, { "label": "银海区", "value": "450503" }, { "label": "铁山港区", "value": "450512" }, { "label": "合浦县", "value": "450521" }], [{ "label": "港口区", "value": "450602" }, { "label": "防城区", "value": "450603" }, { "label": "上思县", "value": "450621" }, { "label": "东兴市", "value": "450681" }], [{ "label": "钦南区", "value": "450702" }, { "label": "钦北区", "value": "450703" }, { "label": "灵山县", "value": "450721" }, { "label": "浦北县", "value": "450722" }], [{ "label": "港北区", "value": "450802" }, { "label": "港南区", "value": "450803" }, { "label": "覃塘区", "value": "450804" }, { "label": "平南县", "value": "450821" }, { "label": "桂平市", "value": "450881" }], [{ "label": "玉州区", "value": "450902" }, { "label": "福绵区", "value": "450903" }, { "label": "容县", "value": "450921" }, { "label": "陆川县", "value": "450922" }, { "label": "博白县", "value": "450923" }, { "label": "兴业县", "value": "450924" }, { "label": "北流市", "value": "450981" }], [{ "label": "右江区", "value": "451002" }, { "label": "田阳县", "value": "451021" }, { "label": "田东县", "value": "451022" }, { "label": "平果县", "value": "451023" }, { "label": "德保县", "value": "451024" }, { "label": "那坡县", "value": "451026" }, { "label": "凌云县", "value": "451027" }, { "label": "乐业县", "value": "451028" }, { "label": "田林县", "value": "451029" }, { "label": "西林县", "value": "451030" }, { "label": "隆林各族自治县", "value": "451031" }, { "label": "靖西市", "value": "451081" }], [{ "label": "八步区", "value": "451102" }, { "label": "平桂区", "value": "451103" }, { "label": "昭平县", "value": "451121" }, { "label": "钟山县", "value": "451122" }, { "label": "富川瑶族自治县", "value": "451123" }], [{ "label": "金城江区", "value": "451202" }, { "label": "宜州区", "value": "451203" }, { "label": "南丹县", "value": "451221" }, { "label": "天峨县", "value": "451222" }, { "label": "凤山县", "value": "451223" }, { "label": "东兰县", "value": "451224" }, { "label": "罗城仫佬族自治县", "value": "451225" }, { "label": "环江毛南族自治县", "value": "451226" }, { "label": "巴马瑶族自治县", "value": "451227" }, { "label": "都安瑶族自治县", "value": "451228" }, { "label": "大化瑶族自治县", "value": "451229" }], [{ "label": "兴宾区", "value": "451302" }, { "label": "忻城县", "value": "451321" }, { "label": "象州县", "value": "451322" }, { "label": "武宣县", "value": "451323" }, { "label": "金秀瑶族自治县", "value": "451324" }, { "label": "合山市", "value": "451381" }], [{ "label": "江州区", "value": "451402" }, { "label": "扶绥县", "value": "451421" }, { "label": "宁明县", "value": "451422" }, { "label": "龙州县", "value": "451423" }, { "label": "大新县", "value": "451424" }, { "label": "天等县", "value": "451425" }, { "label": "凭祥市", "value": "451481" }]], [[{ "label": "秀英区", "value": "460105" }, { "label": "龙华区", "value": "460106" }, { "label": "琼山区", "value": "460107" }, { "label": "美兰区", "value": "460108" }], [{ "label": "海棠区", "value": "460202" }, { "label": "吉阳区", "value": "460203" }, { "label": "天涯区", "value": "460204" }, { "label": "崖州区", "value": "460205" }], [{ "label": "西沙群岛", "value": "460321" }, { "label": "南沙群岛", "value": "460322" }, { "label": "中沙群岛的岛礁及其海域", "value": "460323" }], [{ "label": "儋州市", "value": "460400" }], [{ "label": "五指山市", "value": "469001" }, { "label": "琼海市", "value": "469002" }, { "label": "文昌市", "value": "469005" }, { "label": "万宁市", "value": "469006" }, { "label": "东方市", "value": "469007" }, { "label": "定安县", "value": "469021" }, { "label": "屯昌县", "value": "469022" }, { "label": "澄迈县", "value": "469023" }, { "label": "临高县", "value": "469024" }, { "label": "白沙黎族自治县", "value": "469025" }, { "label": "昌江黎族自治县", "value": "469026" }, { "label": "乐东黎族自治县", "value": "469027" }, { "label": "陵水黎族自治县", "value": "469028" }, { "label": "保亭黎族苗族自治县", "value": "469029" }, { "label": "琼中黎族苗族自治县", "value": "469030" }]], [[{ "label": "万州区", "value": "500101" }, { "label": "涪陵区", "value": "500102" }, { "label": "渝中区", "value": "500103" }, { "label": "大渡口区", "value": "500104" }, { "label": "江北区", "value": "500105" }, { "label": "沙坪坝区", "value": "500106" }, { "label": "九龙坡区", "value": "500107" }, { "label": "南岸区", "value": "500108" }, { "label": "北碚区", "value": "500109" }, { "label": "綦江区", "value": "500110" }, { "label": "大足区", "value": "500111" }, { "label": "渝北区", "value": "500112" }, { "label": "巴南区", "value": "500113" }, { "label": "黔江区", "value": "500114" }, { "label": "长寿区", "value": "500115" }, { "label": "江津区", "value": "500116" }, { "label": "合川区", "value": "500117" }, { "label": "永川区", "value": "500118" }, { "label": "南川区", "value": "500119" }, { "label": "璧山区", "value": "500120" }, { "label": "铜梁区", "value": "500151" }, { "label": "潼南区", "value": "500152" }, { "label": "荣昌区", "value": "500153" }, { "label": "开州区", "value": "500154" }, { "label": "梁平区", "value": "500155" }, { "label": "武隆区", "value": "500156" }], [{ "label": "城口县", "value": "500229" }, { "label": "丰都县", "value": "500230" }, { "label": "垫江县", "value": "500231" }, { "label": "忠县", "value": "500233" }, { "label": "云阳县", "value": "500235" }, { "label": "奉节县", "value": "500236" }, { "label": "巫山县", "value": "500237" }, { "label": "巫溪县", "value": "500238" }, { "label": "石柱土家族自治县", "value": "500240" }, { "label": "秀山土家族苗族自治县", "value": "500241" }, { "label": "酉阳土家族苗族自治县", "value": "500242" }, { "label": "彭水苗族土家族自治县", "value": "500243" }]], [[{ "label": "锦江区", "value": "510104" }, { "label": "青羊区", "value": "510105" }, { "label": "金牛区", "value": "510106" }, { "label": "武侯区", "value": "510107" }, { "label": "成华区", "value": "510108" }, { "label": "龙泉驿区", "value": "510112" }, { "label": "青白江区", "value": "510113" }, { "label": "新都区", "value": "510114" }, { "label": "温江区", "value": "510115" }, { "label": "双流区", "value": "510116" }, { "label": "郫都区", "value": "510117" }, { "label": "金堂县", "value": "510121" }, { "label": "大邑县", "value": "510129" }, { "label": "蒲江县", "value": "510131" }, { "label": "新津县", "value": "510132" }, { "label": "都江堰市", "value": "510181" }, { "label": "彭州市", "value": "510182" }, { "label": "邛崃市", "value": "510183" }, { "label": "崇州市", "value": "510184" }, { "label": "简阳市", "value": "510185" }], [{ "label": "自流井区", "value": "510302" }, { "label": "贡井区", "value": "510303" }, { "label": "大安区", "value": "510304" }, { "label": "沿滩区", "value": "510311" }, { "label": "荣县", "value": "510321" }, { "label": "富顺县", "value": "510322" }], [{ "label": "东区", "value": "510402" }, { "label": "西区", "value": "510403" }, { "label": "仁和区", "value": "510411" }, { "label": "米易县", "value": "510421" }, { "label": "盐边县", "value": "510422" }], [{ "label": "江阳区", "value": "510502" }, { "label": "纳溪区", "value": "510503" }, { "label": "龙马潭区", "value": "510504" }, { "label": "泸县", "value": "510521" }, { "label": "合江县", "value": "510522" }, { "label": "叙永县", "value": "510524" }, { "label": "古蔺县", "value": "510525" }], [{ "label": "旌阳区", "value": "510603" }, { "label": "罗江区", "value": "510604" }, { "label": "中江县", "value": "510623" }, { "label": "广汉市", "value": "510681" }, { "label": "什邡市", "value": "510682" }, { "label": "绵竹市", "value": "510683" }], [{ "label": "涪城区", "value": "510703" }, { "label": "游仙区", "value": "510704" }, { "label": "安州区", "value": "510705" }, { "label": "三台县", "value": "510722" }, { "label": "盐亭县", "value": "510723" }, { "label": "梓潼县", "value": "510725" }, { "label": "北川羌族自治县", "value": "510726" }, { "label": "平武县", "value": "510727" }, { "label": "江油市", "value": "510781" }], [{ "label": "利州区", "value": "510802" }, { "label": "昭化区", "value": "510811" }, { "label": "朝天区", "value": "510812" }, { "label": "旺苍县", "value": "510821" }, { "label": "青川县", "value": "510822" }, { "label": "剑阁县", "value": "510823" }, { "label": "苍溪县", "value": "510824" }], [{ "label": "船山区", "value": "510903" }, { "label": "安居区", "value": "510904" }, { "label": "蓬溪县", "value": "510921" }, { "label": "射洪县", "value": "510922" }, { "label": "大英县", "value": "510923" }], [{ "label": "市中区", "value": "511002" }, { "label": "东兴区", "value": "511011" }, { "label": "威远县", "value": "511024" }, { "label": "资中县", "value": "511025" }, { "label": "内江经济开发区", "value": "511071" }, { "label": "隆昌市", "value": "511083" }], [{ "label": "市中区", "value": "511102" }, { "label": "沙湾区", "value": "511111" }, { "label": "五通桥区", "value": "511112" }, { "label": "金口河区", "value": "511113" }, { "label": "犍为县", "value": "511123" }, { "label": "井研县", "value": "511124" }, { "label": "夹江县", "value": "511126" }, { "label": "沐川县", "value": "511129" }, { "label": "峨边彝族自治县", "value": "511132" }, { "label": "马边彝族自治县", "value": "511133" }, { "label": "峨眉山市", "value": "511181" }], [{ "label": "顺庆区", "value": "511302" }, { "label": "高坪区", "value": "511303" }, { "label": "嘉陵区", "value": "511304" }, { "label": "南部县", "value": "511321" }, { "label": "营山县", "value": "511322" }, { "label": "蓬安县", "value": "511323" }, { "label": "仪陇县", "value": "511324" }, { "label": "西充县", "value": "511325" }, { "label": "阆中市", "value": "511381" }], [{ "label": "东坡区", "value": "511402" }, { "label": "彭山区", "value": "511403" }, { "label": "仁寿县", "value": "511421" }, { "label": "洪雅县", "value": "511423" }, { "label": "丹棱县", "value": "511424" }, { "label": "青神县", "value": "511425" }], [{ "label": "翠屏区", "value": "511502" }, { "label": "南溪区", "value": "511503" }, { "label": "宜宾县", "value": "511521" }, { "label": "江安县", "value": "511523" }, { "label": "长宁县", "value": "511524" }, { "label": "高县", "value": "511525" }, { "label": "珙县", "value": "511526" }, { "label": "筠连县", "value": "511527" }, { "label": "兴文县", "value": "511528" }, { "label": "屏山县", "value": "511529" }], [{ "label": "广安区", "value": "511602" }, { "label": "前锋区", "value": "511603" }, { "label": "岳池县", "value": "511621" }, { "label": "武胜县", "value": "511622" }, { "label": "邻水县", "value": "511623" }, { "label": "华蓥市", "value": "511681" }], [{ "label": "通川区", "value": "511702" }, { "label": "达川区", "value": "511703" }, { "label": "宣汉县", "value": "511722" }, { "label": "开江县", "value": "511723" }, { "label": "大竹县", "value": "511724" }, { "label": "渠县", "value": "511725" }, { "label": "达州经济开发区", "value": "511771" }, { "label": "万源市", "value": "511781" }], [{ "label": "雨城区", "value": "511802" }, { "label": "名山区", "value": "511803" }, { "label": "荥经县", "value": "511822" }, { "label": "汉源县", "value": "511823" }, { "label": "石棉县", "value": "511824" }, { "label": "天全县", "value": "511825" }, { "label": "芦山县", "value": "511826" }, { "label": "宝兴县", "value": "511827" }], [{ "label": "巴州区", "value": "511902" }, { "label": "恩阳区", "value": "511903" }, { "label": "通江县", "value": "511921" }, { "label": "南江县", "value": "511922" }, { "label": "平昌县", "value": "511923" }, { "label": "巴中经济开发区", "value": "511971" }], [{ "label": "雁江区", "value": "512002" }, { "label": "安岳县", "value": "512021" }, { "label": "乐至县", "value": "512022" }], [{ "label": "马尔康市", "value": "513201" }, { "label": "汶川县", "value": "513221" }, { "label": "理县", "value": "513222" }, { "label": "茂县", "value": "513223" }, { "label": "松潘县", "value": "513224" }, { "label": "九寨沟县", "value": "513225" }, { "label": "金川县", "value": "513226" }, { "label": "小金县", "value": "513227" }, { "label": "黑水县", "value": "513228" }, { "label": "壤塘县", "value": "513230" }, { "label": "阿坝县", "value": "513231" }, { "label": "若尔盖县", "value": "513232" }, { "label": "红原县", "value": "513233" }], [{ "label": "康定市", "value": "513301" }, { "label": "泸定县", "value": "513322" }, { "label": "丹巴县", "value": "513323" }, { "label": "九龙县", "value": "513324" }, { "label": "雅江县", "value": "513325" }, { "label": "道孚县", "value": "513326" }, { "label": "炉霍县", "value": "513327" }, { "label": "甘孜县", "value": "513328" }, { "label": "新龙县", "value": "513329" }, { "label": "德格县", "value": "513330" }, { "label": "白玉县", "value": "513331" }, { "label": "石渠县", "value": "513332" }, { "label": "色达县", "value": "513333" }, { "label": "理塘县", "value": "513334" }, { "label": "巴塘县", "value": "513335" }, { "label": "乡城县", "value": "513336" }, { "label": "稻城县", "value": "513337" }, { "label": "得荣县", "value": "513338" }], [{ "label": "西昌市", "value": "513401" }, { "label": "木里藏族自治县", "value": "513422" }, { "label": "盐源县", "value": "513423" }, { "label": "德昌县", "value": "513424" }, { "label": "会理县", "value": "513425" }, { "label": "会东县", "value": "513426" }, { "label": "宁南县", "value": "513427" }, { "label": "普格县", "value": "513428" }, { "label": "布拖县", "value": "513429" }, { "label": "金阳县", "value": "513430" }, { "label": "昭觉县", "value": "513431" }, { "label": "喜德县", "value": "513432" }, { "label": "冕宁县", "value": "513433" }, { "label": "越西县", "value": "513434" }, { "label": "甘洛县", "value": "513435" }, { "label": "美姑县", "value": "513436" }, { "label": "雷波县", "value": "513437" }]], [[{ "label": "南明区", "value": "520102" }, { "label": "云岩区", "value": "520103" }, { "label": "花溪区", "value": "520111" }, { "label": "乌当区", "value": "520112" }, { "label": "白云区", "value": "520113" }, { "label": "观山湖区", "value": "520115" }, { "label": "开阳县", "value": "520121" }, { "label": "息烽县", "value": "520122" }, { "label": "修文县", "value": "520123" }, { "label": "清镇市", "value": "520181" }], [{ "label": "钟山区", "value": "520201" }, { "label": "六枝特区", "value": "520203" }, { "label": "水城县", "value": "520221" }, { "label": "盘州市", "value": "520281" }], [{ "label": "红花岗区", "value": "520302" }, { "label": "汇川区", "value": "520303" }, { "label": "播州区", "value": "520304" }, { "label": "桐梓县", "value": "520322" }, { "label": "绥阳县", "value": "520323" }, { "label": "正安县", "value": "520324" }, { "label": "道真仡佬族苗族自治县", "value": "520325" }, { "label": "务川仡佬族苗族自治县", "value": "520326" }, { "label": "凤冈县", "value": "520327" }, { "label": "湄潭县", "value": "520328" }, { "label": "余庆县", "value": "520329" }, { "label": "习水县", "value": "520330" }, { "label": "赤水市", "value": "520381" }, { "label": "仁怀市", "value": "520382" }], [{ "label": "西秀区", "value": "520402" }, { "label": "平坝区", "value": "520403" }, { "label": "普定县", "value": "520422" }, { "label": "镇宁布依族苗族自治县", "value": "520423" }, { "label": "关岭布依族苗族自治县", "value": "520424" }, { "label": "紫云苗族布依族自治县", "value": "520425" }], [{ "label": "七星关区", "value": "520502" }, { "label": "大方县", "value": "520521" }, { "label": "黔西县", "value": "520522" }, { "label": "金沙县", "value": "520523" }, { "label": "织金县", "value": "520524" }, { "label": "纳雍县", "value": "520525" }, { "label": "威宁彝族回族苗族自治县", "value": "520526" }, { "label": "赫章县", "value": "520527" }], [{ "label": "碧江区", "value": "520602" }, { "label": "万山区", "value": "520603" }, { "label": "江口县", "value": "520621" }, { "label": "玉屏侗族自治县", "value": "520622" }, { "label": "石阡县", "value": "520623" }, { "label": "思南县", "value": "520624" }, { "label": "印江土家族苗族自治县", "value": "520625" }, { "label": "德江县", "value": "520626" }, { "label": "沿河土家族自治县", "value": "520627" }, { "label": "松桃苗族自治县", "value": "520628" }], [{ "label": "兴义市", "value": "522301" }, { "label": "兴仁县", "value": "522322" }, { "label": "普安县", "value": "522323" }, { "label": "晴隆县", "value": "522324" }, { "label": "贞丰县", "value": "522325" }, { "label": "望谟县", "value": "522326" }, { "label": "册亨县", "value": "522327" }, { "label": "安龙县", "value": "522328" }], [{ "label": "凯里市", "value": "522601" }, { "label": "黄平县", "value": "522622" }, { "label": "施秉县", "value": "522623" }, { "label": "三穗县", "value": "522624" }, { "label": "镇远县", "value": "522625" }, { "label": "岑巩县", "value": "522626" }, { "label": "天柱县", "value": "522627" }, { "label": "锦屏县", "value": "522628" }, { "label": "剑河县", "value": "522629" }, { "label": "台江县", "value": "522630" }, { "label": "黎平县", "value": "522631" }, { "label": "榕江县", "value": "522632" }, { "label": "从江县", "value": "522633" }, { "label": "雷山县", "value": "522634" }, { "label": "麻江县", "value": "522635" }, { "label": "丹寨县", "value": "522636" }], [{ "label": "都匀市", "value": "522701" }, { "label": "福泉市", "value": "522702" }, { "label": "荔波县", "value": "522722" }, { "label": "贵定县", "value": "522723" }, { "label": "瓮安县", "value": "522725" }, { "label": "独山县", "value": "522726" }, { "label": "平塘县", "value": "522727" }, { "label": "罗甸县", "value": "522728" }, { "label": "长顺县", "value": "522729" }, { "label": "龙里县", "value": "522730" }, { "label": "惠水县", "value": "522731" }, { "label": "三都水族自治县", "value": "522732" }]], [[{ "label": "五华区", "value": "530102" }, { "label": "盘龙区", "value": "530103" }, { "label": "官渡区", "value": "530111" }, { "label": "西山区", "value": "530112" }, { "label": "东川区", "value": "530113" }, { "label": "呈贡区", "value": "530114" }, { "label": "晋宁区", "value": "530115" }, { "label": "富民县", "value": "530124" }, { "label": "宜良县", "value": "530125" }, { "label": "石林彝族自治县", "value": "530126" }, { "label": "嵩明县", "value": "530127" }, { "label": "禄劝彝族苗族自治县", "value": "530128" }, { "label": "寻甸回族彝族自治县", "value": "530129" }, { "label": "安宁市", "value": "530181" }], [{ "label": "麒麟区", "value": "530302" }, { "label": "沾益区", "value": "530303" }, { "label": "马龙县", "value": "530321" }, { "label": "陆良县", "value": "530322" }, { "label": "师宗县", "value": "530323" }, { "label": "罗平县", "value": "530324" }, { "label": "富源县", "value": "530325" }, { "label": "会泽县", "value": "530326" }, { "label": "宣威市", "value": "530381" }], [{ "label": "红塔区", "value": "530402" }, { "label": "江川区", "value": "530403" }, { "label": "澄江县", "value": "530422" }, { "label": "通海县", "value": "530423" }, { "label": "华宁县", "value": "530424" }, { "label": "易门县", "value": "530425" }, { "label": "峨山彝族自治县", "value": "530426" }, { "label": "新平彝族傣族自治县", "value": "530427" }, { "label": "元江哈尼族彝族傣族自治县", "value": "530428" }], [{ "label": "隆阳区", "value": "530502" }, { "label": "施甸县", "value": "530521" }, { "label": "龙陵县", "value": "530523" }, { "label": "昌宁县", "value": "530524" }, { "label": "腾冲市", "value": "530581" }], [{ "label": "昭阳区", "value": "530602" }, { "label": "鲁甸县", "value": "530621" }, { "label": "巧家县", "value": "530622" }, { "label": "盐津县", "value": "530623" }, { "label": "大关县", "value": "530624" }, { "label": "永善县", "value": "530625" }, { "label": "绥江县", "value": "530626" }, { "label": "镇雄县", "value": "530627" }, { "label": "彝良县", "value": "530628" }, { "label": "威信县", "value": "530629" }, { "label": "水富县", "value": "530630" }], [{ "label": "古城区", "value": "530702" }, { "label": "玉龙纳西族自治县", "value": "530721" }, { "label": "永胜县", "value": "530722" }, { "label": "华坪县", "value": "530723" }, { "label": "宁蒗彝族自治县", "value": "530724" }], [{ "label": "思茅区", "value": "530802" }, { "label": "宁洱哈尼族彝族自治县", "value": "530821" }, { "label": "墨江哈尼族自治县", "value": "530822" }, { "label": "景东彝族自治县", "value": "530823" }, { "label": "景谷傣族彝族自治县", "value": "530824" }, { "label": "镇沅彝族哈尼族拉祜族自治县", "value": "530825" }, { "label": "江城哈尼族彝族自治县", "value": "530826" }, { "label": "孟连傣族拉祜族佤族自治县", "value": "530827" }, { "label": "澜沧拉祜族自治县", "value": "530828" }, { "label": "西盟佤族自治县", "value": "530829" }], [{ "label": "临翔区", "value": "530902" }, { "label": "凤庆县", "value": "530921" }, { "label": "云县", "value": "530922" }, { "label": "永德县", "value": "530923" }, { "label": "镇康县", "value": "530924" }, { "label": "双江拉祜族佤族布朗族傣族自治县", "value": "530925" }, { "label": "耿马傣族佤族自治县", "value": "530926" }, { "label": "沧源佤族自治县", "value": "530927" }], [{ "label": "楚雄市", "value": "532301" }, { "label": "双柏县", "value": "532322" }, { "label": "牟定县", "value": "532323" }, { "label": "南华县", "value": "532324" }, { "label": "姚安县", "value": "532325" }, { "label": "大姚县", "value": "532326" }, { "label": "永仁县", "value": "532327" }, { "label": "元谋县", "value": "532328" }, { "label": "武定县", "value": "532329" }, { "label": "禄丰县", "value": "532331" }], [{ "label": "个旧市", "value": "532501" }, { "label": "开远市", "value": "532502" }, { "label": "蒙自市", "value": "532503" }, { "label": "弥勒市", "value": "532504" }, { "label": "屏边苗族自治县", "value": "532523" }, { "label": "建水县", "value": "532524" }, { "label": "石屏县", "value": "532525" }, { "label": "泸西县", "value": "532527" }, { "label": "元阳县", "value": "532528" }, { "label": "红河县", "value": "532529" }, { "label": "金平苗族瑶族傣族自治县", "value": "532530" }, { "label": "绿春县", "value": "532531" }, { "label": "河口瑶族自治县", "value": "532532" }], [{ "label": "文山市", "value": "532601" }, { "label": "砚山县", "value": "532622" }, { "label": "西畴县", "value": "532623" }, { "label": "麻栗坡县", "value": "532624" }, { "label": "马关县", "value": "532625" }, { "label": "丘北县", "value": "532626" }, { "label": "广南县", "value": "532627" }, { "label": "富宁县", "value": "532628" }], [{ "label": "景洪市", "value": "532801" }, { "label": "勐海县", "value": "532822" }, { "label": "勐腊县", "value": "532823" }], [{ "label": "大理市", "value": "532901" }, { "label": "漾濞彝族自治县", "value": "532922" }, { "label": "祥云县", "value": "532923" }, { "label": "宾川县", "value": "532924" }, { "label": "弥渡县", "value": "532925" }, { "label": "南涧彝族自治县", "value": "532926" }, { "label": "巍山彝族回族自治县", "value": "532927" }, { "label": "永平县", "value": "532928" }, { "label": "云龙县", "value": "532929" }, { "label": "洱源县", "value": "532930" }, { "label": "剑川县", "value": "532931" }, { "label": "鹤庆县", "value": "532932" }], [{ "label": "瑞丽市", "value": "533102" }, { "label": "芒市", "value": "533103" }, { "label": "梁河县", "value": "533122" }, { "label": "盈江县", "value": "533123" }, { "label": "陇川县", "value": "533124" }], [{ "label": "泸水市", "value": "533301" }, { "label": "福贡县", "value": "533323" }, { "label": "贡山独龙族怒族自治县", "value": "533324" }, { "label": "兰坪白族普米族自治县", "value": "533325" }], [{ "label": "香格里拉市", "value": "533401" }, { "label": "德钦县", "value": "533422" }, { "label": "维西傈僳族自治县", "value": "533423" }]], [[{ "label": "城关区", "value": "540102" }, { "label": "堆龙德庆区", "value": "540103" }, { "label": "林周县", "value": "540121" }, { "label": "当雄县", "value": "540122" }, { "label": "尼木县", "value": "540123" }, { "label": "曲水县", "value": "540124" }, { "label": "达孜县", "value": "540126" }, { "label": "墨竹工卡县", "value": "540127" }, { "label": "格尔木藏青工业园区", "value": "540171" }, { "label": "拉萨经济技术开发区", "value": "540172" }, { "label": "西藏文化旅游创意园区", "value": "540173" }, { "label": "达孜工业园区", "value": "540174" }], [{ "label": "桑珠孜区", "value": "540202" }, { "label": "南木林县", "value": "540221" }, { "label": "江孜县", "value": "540222" }, { "label": "定日县", "value": "540223" }, { "label": "萨迦县", "value": "540224" }, { "label": "拉孜县", "value": "540225" }, { "label": "昂仁县", "value": "540226" }, { "label": "谢通门县", "value": "540227" }, { "label": "白朗县", "value": "540228" }, { "label": "仁布县", "value": "540229" }, { "label": "康马县", "value": "540230" }, { "label": "定结县", "value": "540231" }, { "label": "仲巴县", "value": "540232" }, { "label": "亚东县", "value": "540233" }, { "label": "吉隆县", "value": "540234" }, { "label": "聂拉木县", "value": "540235" }, { "label": "萨嘎县", "value": "540236" }, { "label": "岗巴县", "value": "540237" }], [{ "label": "卡若区", "value": "540302" }, { "label": "江达县", "value": "540321" }, { "label": "贡觉县", "value": "540322" }, { "label": "类乌齐县", "value": "540323" }, { "label": "丁青县", "value": "540324" }, { "label": "察雅县", "value": "540325" }, { "label": "八宿县", "value": "540326" }, { "label": "左贡县", "value": "540327" }, { "label": "芒康县", "value": "540328" }, { "label": "洛隆县", "value": "540329" }, { "label": "边坝县", "value": "540330" }], [{ "label": "巴宜区", "value": "540402" }, { "label": "工布江达县", "value": "540421" }, { "label": "米林县", "value": "540422" }, { "label": "墨脱县", "value": "540423" }, { "label": "波密县", "value": "540424" }, { "label": "察隅县", "value": "540425" }, { "label": "朗县", "value": "540426" }], [{ "label": "乃东区", "value": "540502" }, { "label": "扎囊县", "value": "540521" }, { "label": "贡嘎县", "value": "540522" }, { "label": "桑日县", "value": "540523" }, { "label": "琼结县", "value": "540524" }, { "label": "曲松县", "value": "540525" }, { "label": "措美县", "value": "540526" }, { "label": "洛扎县", "value": "540527" }, { "label": "加查县", "value": "540528" }, { "label": "隆子县", "value": "540529" }, { "label": "错那县", "value": "540530" }, { "label": "浪卡子县", "value": "540531" }], [{ "label": "那曲县", "value": "542421" }, { "label": "嘉黎县", "value": "542422" }, { "label": "比如县", "value": "542423" }, { "label": "聂荣县", "value": "542424" }, { "label": "安多县", "value": "542425" }, { "label": "申扎县", "value": "542426" }, { "label": "索县", "value": "542427" }, { "label": "班戈县", "value": "542428" }, { "label": "巴青县", "value": "542429" }, { "label": "尼玛县", "value": "542430" }, { "label": "双湖县", "value": "542431" }], [{ "label": "普兰县", "value": "542521" }, { "label": "札达县", "value": "542522" }, { "label": "噶尔县", "value": "542523" }, { "label": "日土县", "value": "542524" }, { "label": "革吉县", "value": "542525" }, { "label": "改则县", "value": "542526" }, { "label": "措勤县", "value": "542527" }]], [[{ "label": "新城区", "value": "610102" }, { "label": "碑林区", "value": "610103" }, { "label": "莲湖区", "value": "610104" }, { "label": "灞桥区", "value": "610111" }, { "label": "未央区", "value": "610112" }, { "label": "雁塔区", "value": "610113" }, { "label": "阎良区", "value": "610114" }, { "label": "临潼区", "value": "610115" }, { "label": "长安区", "value": "610116" }, { "label": "高陵区", "value": "610117" }, { "label": "鄠邑区", "value": "610118" }, { "label": "蓝田县", "value": "610122" }, { "label": "周至县", "value": "610124" }], [{ "label": "王益区", "value": "610202" }, { "label": "印台区", "value": "610203" }, { "label": "耀州区", "value": "610204" }, { "label": "宜君县", "value": "610222" }], [{ "label": "渭滨区", "value": "610302" }, { "label": "金台区", "value": "610303" }, { "label": "陈仓区", "value": "610304" }, { "label": "凤翔县", "value": "610322" }, { "label": "岐山县", "value": "610323" }, { "label": "扶风县", "value": "610324" }, { "label": "眉县", "value": "610326" }, { "label": "陇县", "value": "610327" }, { "label": "千阳县", "value": "610328" }, { "label": "麟游县", "value": "610329" }, { "label": "凤县", "value": "610330" }, { "label": "太白县", "value": "610331" }], [{ "label": "秦都区", "value": "610402" }, { "label": "杨陵区", "value": "610403" }, { "label": "渭城区", "value": "610404" }, { "label": "三原县", "value": "610422" }, { "label": "泾阳县", "value": "610423" }, { "label": "乾县", "value": "610424" }, { "label": "礼泉县", "value": "610425" }, { "label": "永寿县", "value": "610426" }, { "label": "彬县", "value": "610427" }, { "label": "长武县", "value": "610428" }, { "label": "旬邑县", "value": "610429" }, { "label": "淳化县", "value": "610430" }, { "label": "武功县", "value": "610431" }, { "label": "兴平市", "value": "610481" }], [{ "label": "临渭区", "value": "610502" }, { "label": "华州区", "value": "610503" }, { "label": "潼关县", "value": "610522" }, { "label": "大荔县", "value": "610523" }, { "label": "合阳县", "value": "610524" }, { "label": "澄城县", "value": "610525" }, { "label": "蒲城县", "value": "610526" }, { "label": "白水县", "value": "610527" }, { "label": "富平县", "value": "610528" }, { "label": "韩城市", "value": "610581" }, { "label": "华阴市", "value": "610582" }], [{ "label": "宝塔区", "value": "610602" }, { "label": "安塞区", "value": "610603" }, { "label": "延长县", "value": "610621" }, { "label": "延川县", "value": "610622" }, { "label": "子长县", "value": "610623" }, { "label": "志丹县", "value": "610625" }, { "label": "吴起县", "value": "610626" }, { "label": "甘泉县", "value": "610627" }, { "label": "富县", "value": "610628" }, { "label": "洛川县", "value": "610629" }, { "label": "宜川县", "value": "610630" }, { "label": "黄龙县", "value": "610631" }, { "label": "黄陵县", "value": "610632" }], [{ "label": "汉台区", "value": "610702" }, { "label": "南郑区", "value": "610703" }, { "label": "城固县", "value": "610722" }, { "label": "洋县", "value": "610723" }, { "label": "西乡县", "value": "610724" }, { "label": "勉县", "value": "610725" }, { "label": "宁强县", "value": "610726" }, { "label": "略阳县", "value": "610727" }, { "label": "镇巴县", "value": "610728" }, { "label": "留坝县", "value": "610729" }, { "label": "佛坪县", "value": "610730" }], [{ "label": "榆阳区", "value": "610802" }, { "label": "横山区", "value": "610803" }, { "label": "府谷县", "value": "610822" }, { "label": "靖边县", "value": "610824" }, { "label": "定边县", "value": "610825" }, { "label": "绥德县", "value": "610826" }, { "label": "米脂县", "value": "610827" }, { "label": "佳县", "value": "610828" }, { "label": "吴堡县", "value": "610829" }, { "label": "清涧县", "value": "610830" }, { "label": "子洲县", "value": "610831" }, { "label": "神木市", "value": "610881" }], [{ "label": "汉滨区", "value": "610902" }, { "label": "汉阴县", "value": "610921" }, { "label": "石泉县", "value": "610922" }, { "label": "宁陕县", "value": "610923" }, { "label": "紫阳县", "value": "610924" }, { "label": "岚皋县", "value": "610925" }, { "label": "平利县", "value": "610926" }, { "label": "镇坪县", "value": "610927" }, { "label": "旬阳县", "value": "610928" }, { "label": "白河县", "value": "610929" }], [{ "label": "商州区", "value": "611002" }, { "label": "洛南县", "value": "611021" }, { "label": "丹凤县", "value": "611022" }, { "label": "商南县", "value": "611023" }, { "label": "山阳县", "value": "611024" }, { "label": "镇安县", "value": "611025" }, { "label": "柞水县", "value": "611026" }]], [[{ "label": "城关区", "value": "620102" }, { "label": "七里河区", "value": "620103" }, { "label": "西固区", "value": "620104" }, { "label": "安宁区", "value": "620105" }, { "label": "红古区", "value": "620111" }, { "label": "永登县", "value": "620121" }, { "label": "皋兰县", "value": "620122" }, { "label": "榆中县", "value": "620123" }, { "label": "兰州新区", "value": "620171" }], [{ "label": "嘉峪关市", "value": "620201" }], [{ "label": "金川区", "value": "620302" }, { "label": "永昌县", "value": "620321" }], [{ "label": "白银区", "value": "620402" }, { "label": "平川区", "value": "620403" }, { "label": "靖远县", "value": "620421" }, { "label": "会宁县", "value": "620422" }, { "label": "景泰县", "value": "620423" }], [{ "label": "秦州区", "value": "620502" }, { "label": "麦积区", "value": "620503" }, { "label": "清水县", "value": "620521" }, { "label": "秦安县", "value": "620522" }, { "label": "甘谷县", "value": "620523" }, { "label": "武山县", "value": "620524" }, { "label": "张家川回族自治县", "value": "620525" }], [{ "label": "凉州区", "value": "620602" }, { "label": "民勤县", "value": "620621" }, { "label": "古浪县", "value": "620622" }, { "label": "天祝藏族自治县", "value": "620623" }], [{ "label": "甘州区", "value": "620702" }, { "label": "肃南裕固族自治县", "value": "620721" }, { "label": "民乐县", "value": "620722" }, { "label": "临泽县", "value": "620723" }, { "label": "高台县", "value": "620724" }, { "label": "山丹县", "value": "620725" }], [{ "label": "崆峒区", "value": "620802" }, { "label": "泾川县", "value": "620821" }, { "label": "灵台县", "value": "620822" }, { "label": "崇信县", "value": "620823" }, { "label": "华亭县", "value": "620824" }, { "label": "庄浪县", "value": "620825" }, { "label": "静宁县", "value": "620826" }, { "label": "平凉工业园区", "value": "620871" }], [{ "label": "肃州区", "value": "620902" }, { "label": "金塔县", "value": "620921" }, { "label": "瓜州县", "value": "620922" }, { "label": "肃北蒙古族自治县", "value": "620923" }, { "label": "阿克塞哈萨克族自治县", "value": "620924" }, { "label": "玉门市", "value": "620981" }, { "label": "敦煌市", "value": "620982" }], [{ "label": "西峰区", "value": "621002" }, { "label": "庆城县", "value": "621021" }, { "label": "环县", "value": "621022" }, { "label": "华池县", "value": "621023" }, { "label": "合水县", "value": "621024" }, { "label": "正宁县", "value": "621025" }, { "label": "宁县", "value": "621026" }, { "label": "镇原县", "value": "621027" }], [{ "label": "安定区", "value": "621102" }, { "label": "通渭县", "value": "621121" }, { "label": "陇西县", "value": "621122" }, { "label": "渭源县", "value": "621123" }, { "label": "临洮县", "value": "621124" }, { "label": "漳县", "value": "621125" }, { "label": "岷县", "value": "621126" }], [{ "label": "武都区", "value": "621202" }, { "label": "成县", "value": "621221" }, { "label": "文县", "value": "621222" }, { "label": "宕昌县", "value": "621223" }, { "label": "康县", "value": "621224" }, { "label": "西和县", "value": "621225" }, { "label": "礼县", "value": "621226" }, { "label": "徽县", "value": "621227" }, { "label": "两当县", "value": "621228" }], [{ "label": "临夏市", "value": "622901" }, { "label": "临夏县", "value": "622921" }, { "label": "康乐县", "value": "622922" }, { "label": "永靖县", "value": "622923" }, { "label": "广河县", "value": "622924" }, { "label": "和政县", "value": "622925" }, { "label": "东乡族自治县", "value": "622926" }, { "label": "积石山保安族东乡族撒拉族自治县", "value": "622927" }], [{ "label": "合作市", "value": "623001" }, { "label": "临潭县", "value": "623021" }, { "label": "卓尼县", "value": "623022" }, { "label": "舟曲县", "value": "623023" }, { "label": "迭部县", "value": "623024" }, { "label": "玛曲县", "value": "623025" }, { "label": "碌曲县", "value": "623026" }, { "label": "夏河县", "value": "623027" }]], [[{ "label": "城东区", "value": "630102" }, { "label": "城中区", "value": "630103" }, { "label": "城西区", "value": "630104" }, { "label": "城北区", "value": "630105" }, { "label": "大通回族土族自治县", "value": "630121" }, { "label": "湟中县", "value": "630122" }, { "label": "湟源县", "value": "630123" }], [{ "label": "乐都区", "value": "630202" }, { "label": "平安区", "value": "630203" }, { "label": "民和回族土族自治县", "value": "630222" }, { "label": "互助土族自治县", "value": "630223" }, { "label": "化隆回族自治县", "value": "630224" }, { "label": "循化撒拉族自治县", "value": "630225" }], [{ "label": "门源回族自治县", "value": "632221" }, { "label": "祁连县", "value": "632222" }, { "label": "海晏县", "value": "632223" }, { "label": "刚察县", "value": "632224" }], [{ "label": "同仁县", "value": "632321" }, { "label": "尖扎县", "value": "632322" }, { "label": "泽库县", "value": "632323" }, { "label": "河南蒙古族自治县", "value": "632324" }], [{ "label": "共和县", "value": "632521" }, { "label": "同德县", "value": "632522" }, { "label": "贵德县", "value": "632523" }, { "label": "兴海县", "value": "632524" }, { "label": "贵南县", "value": "632525" }], [{ "label": "玛沁县", "value": "632621" }, { "label": "班玛县", "value": "632622" }, { "label": "甘德县", "value": "632623" }, { "label": "达日县", "value": "632624" }, { "label": "久治县", "value": "632625" }, { "label": "玛多县", "value": "632626" }], [{ "label": "玉树市", "value": "632701" }, { "label": "杂多县", "value": "632722" }, { "label": "称多县", "value": "632723" }, { "label": "治多县", "value": "632724" }, { "label": "囊谦县", "value": "632725" }, { "label": "曲麻莱县", "value": "632726" }], [{ "label": "格尔木市", "value": "632801" }, { "label": "德令哈市", "value": "632802" }, { "label": "乌兰县", "value": "632821" }, { "label": "都兰县", "value": "632822" }, { "label": "天峻县", "value": "632823" }, { "label": "大柴旦行政委员会", "value": "632857" }, { "label": "冷湖行政委员会", "value": "632858" }, { "label": "茫崖行政委员会", "value": "632859" }]], [[{ "label": "兴庆区", "value": "640104" }, { "label": "西夏区", "value": "640105" }, { "label": "金凤区", "value": "640106" }, { "label": "永宁县", "value": "640121" }, { "label": "贺兰县", "value": "640122" }, { "label": "灵武市", "value": "640181" }], [{ "label": "大武口区", "value": "640202" }, { "label": "惠农区", "value": "640205" }, { "label": "平罗县", "value": "640221" }], [{ "label": "利通区", "value": "640302" }, { "label": "红寺堡区", "value": "640303" }, { "label": "盐池县", "value": "640323" }, { "label": "同心县", "value": "640324" }, { "label": "青铜峡市", "value": "640381" }], [{ "label": "原州区", "value": "640402" }, { "label": "西吉县", "value": "640422" }, { "label": "隆德县", "value": "640423" }, { "label": "泾源县", "value": "640424" }, { "label": "彭阳县", "value": "640425" }], [{ "label": "沙坡头区", "value": "640502" }, { "label": "中宁县", "value": "640521" }, { "label": "海原县", "value": "640522" }]], [[{ "label": "天山区", "value": "650102" }, { "label": "沙依巴克区", "value": "650103" }, { "label": "新市区", "value": "650104" }, { "label": "水磨沟区", "value": "650105" }, { "label": "头屯河区", "value": "650106" }, { "label": "达坂城区", "value": "650107" }, { "label": "米东区", "value": "650109" }, { "label": "乌鲁木齐县", "value": "650121" }, { "label": "乌鲁木齐经济技术开发区", "value": "650171" }, { "label": "乌鲁木齐高新技术产业开发区", "value": "650172" }], [{ "label": "独山子区", "value": "650202" }, { "label": "克拉玛依区", "value": "650203" }, { "label": "白碱滩区", "value": "650204" }, { "label": "乌尔禾区", "value": "650205" }], [{ "label": "高昌区", "value": "650402" }, { "label": "鄯善县", "value": "650421" }, { "label": "托克逊县", "value": "650422" }], [{ "label": "伊州区", "value": "650502" }, { "label": "巴里坤哈萨克自治县", "value": "650521" }, { "label": "伊吾县", "value": "650522" }], [{ "label": "昌吉市", "value": "652301" }, { "label": "阜康市", "value": "652302" }, { "label": "呼图壁县", "value": "652323" }, { "label": "玛纳斯县", "value": "652324" }, { "label": "奇台县", "value": "652325" }, { "label": "吉木萨尔县", "value": "652327" }, { "label": "木垒哈萨克自治县", "value": "652328" }], [{ "label": "博乐市", "value": "652701" }, { "label": "阿拉山口市", "value": "652702" }, { "label": "精河县", "value": "652722" }, { "label": "温泉县", "value": "652723" }], [{ "label": "库尔勒市", "value": "652801" }, { "label": "轮台县", "value": "652822" }, { "label": "尉犁县", "value": "652823" }, { "label": "若羌县", "value": "652824" }, { "label": "且末县", "value": "652825" }, { "label": "焉耆回族自治县", "value": "652826" }, { "label": "和静县", "value": "652827" }, { "label": "和硕县", "value": "652828" }, { "label": "博湖县", "value": "652829" }, { "label": "库尔勒经济技术开发区", "value": "652871" }], [{ "label": "阿克苏市", "value": "652901" }, { "label": "温宿县", "value": "652922" }, { "label": "库车县", "value": "652923" }, { "label": "沙雅县", "value": "652924" }, { "label": "新和县", "value": "652925" }, { "label": "拜城县", "value": "652926" }, { "label": "乌什县", "value": "652927" }, { "label": "阿瓦提县", "value": "652928" }, { "label": "柯坪县", "value": "652929" }], [{ "label": "阿图什市", "value": "653001" }, { "label": "阿克陶县", "value": "653022" }, { "label": "阿合奇县", "value": "653023" }, { "label": "乌恰县", "value": "653024" }], [{ "label": "喀什市", "value": "653101" }, { "label": "疏附县", "value": "653121" }, { "label": "疏勒县", "value": "653122" }, { "label": "英吉沙县", "value": "653123" }, { "label": "泽普县", "value": "653124" }, { "label": "莎车县", "value": "653125" }, { "label": "叶城县", "value": "653126" }, { "label": "麦盖提县", "value": "653127" }, { "label": "岳普湖县", "value": "653128" }, { "label": "伽师县", "value": "653129" }, { "label": "巴楚县", "value": "653130" }, { "label": "塔什库尔干塔吉克自治县", "value": "653131" }], [{ "label": "和田市", "value": "653201" }, { "label": "和田县", "value": "653221" }, { "label": "墨玉县", "value": "653222" }, { "label": "皮山县", "value": "653223" }, { "label": "洛浦县", "value": "653224" }, { "label": "策勒县", "value": "653225" }, { "label": "于田县", "value": "653226" }, { "label": "民丰县", "value": "653227" }], [{ "label": "伊宁市", "value": "654002" }, { "label": "奎屯市", "value": "654003" }, { "label": "霍尔果斯市", "value": "654004" }, { "label": "伊宁县", "value": "654021" }, { "label": "察布查尔锡伯自治县", "value": "654022" }, { "label": "霍城县", "value": "654023" }, { "label": "巩留县", "value": "654024" }, { "label": "新源县", "value": "654025" }, { "label": "昭苏县", "value": "654026" }, { "label": "特克斯县", "value": "654027" }, { "label": "尼勒克县", "value": "654028" }], [{ "label": "塔城市", "value": "654201" }, { "label": "乌苏市", "value": "654202" }, { "label": "额敏县", "value": "654221" }, { "label": "沙湾县", "value": "654223" }, { "label": "托里县", "value": "654224" }, { "label": "裕民县", "value": "654225" }, { "label": "和布克赛尔蒙古自治县", "value": "654226" }], [{ "label": "阿勒泰市", "value": "654301" }, { "label": "布尔津县", "value": "654321" }, { "label": "富蕴县", "value": "654322" }, { "label": "福海县", "value": "654323" }, { "label": "哈巴河县", "value": "654324" }, { "label": "青河县", "value": "654325" }, { "label": "吉木乃县", "value": "654326" }], [{ "label": "石河子市", "value": "659001" }, { "label": "阿拉尔市", "value": "659002" }, { "label": "图木舒克市", "value": "659003" }, { "label": "五家渠市", "value": "659004" }, { "label": "铁门关市", "value": "659006" }]], [[{ "label": "台北", "value": "660101" }], [{ "label": "高雄", "value": "660201" }], [{ "label": "基隆", "value": "660301" }], [{ "label": "台中", "value": "660401" }], [{ "label": "台南", "value": "660501" }], [{ "label": "新竹", "value": "660601" }], [{ "label": "嘉义", "value": "660701" }], [{ "label": "宜兰", "value": "660801" }], [{ "label": "桃园", "value": "660901" }], [{ "label": "苗栗", "value": "661001" }], [{ "label": "彰化", "value": "661101" }], [{ "label": "南投", "value": "661201" }], [{ "label": "云林", "value": "661301" }], [{ "label": "屏东", "value": "661401" }], [{ "label": "台东", "value": "661501" }], [{ "label": "花莲", "value": "661601" }], [{ "label": "澎湖", "value": "661701" }]], [[{ "label": "香港岛", "value": "670101" }], [{ "label": "九龙", "value": "670201" }], [{ "label": "新界", "value": "670301" }]], [[{ "label": "澳门半岛", "value": "680101" }], [{ "label": "氹仔岛", "value": "680201" }], [{ "label": "路环岛", "value": "680301" }], [{ "label": "路氹城", "value": "680401" }]]];var _default = areaData;exports.default = _default;
  4528. /***/ }),
  4529. /***/ 25:
  4530. /*!**************************************************************************************!*\
  4531. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/timeFormat.js ***!
  4532. \**************************************************************************************/
  4533. /*! no static exports found */
  4534. /***/ (function(module, exports, __webpack_require__) {
  4535. "use strict";
  4536. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  4537. // 所以这里做一个兼容polyfill的兼容处理
  4538. if (!String.prototype.padStart) {
  4539. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  4540. String.prototype.padStart = function (maxLength) {var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  4541. if (Object.prototype.toString.call(fillString) !== "[object String]") throw new TypeError(
  4542. 'fillString must be String');
  4543. var str = this;
  4544. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  4545. if (str.length >= maxLength) return String(str);
  4546. var fillLength = maxLength - str.length,
  4547. times = Math.ceil(fillLength / fillString.length);
  4548. while (times >>= 1) {
  4549. fillString += fillString;
  4550. if (times === 1) {
  4551. fillString += fillString;
  4552. }
  4553. }
  4554. return fillString.slice(0, fillLength) + str;
  4555. };
  4556. }
  4557. // 其他更多是格式化有如下:
  4558. // yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合
  4559. function timeFormat() {var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;var fmt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  4560. // 如果为null,则格式化当前时间
  4561. if (!dateTime) dateTime = Number(new Date());
  4562. // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式
  4563. if (dateTime.toString().length == 10) dateTime *= 1000;
  4564. var date = new Date(dateTime);
  4565. var ret;
  4566. var opt = {
  4567. "y+": date.getFullYear().toString(), // 年
  4568. "m+": (date.getMonth() + 1).toString(), // 月
  4569. "d+": date.getDate().toString(), // 日
  4570. "h+": date.getHours().toString(), // 时
  4571. "M+": date.getMinutes().toString(), // 分
  4572. "s+": date.getSeconds().toString() // 秒
  4573. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  4574. };
  4575. for (var k in opt) {
  4576. ret = new RegExp("(" + k + ")").exec(fmt);
  4577. if (ret) {
  4578. fmt = fmt.replace(ret[1], ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, "0"));
  4579. };
  4580. };
  4581. return fmt;
  4582. }var _default =
  4583. timeFormat;exports.default = _default;
  4584. /***/ }),
  4585. /***/ 253:
  4586. /*!*******************************************************************************!*\
  4587. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/util/emitter.js ***!
  4588. \*******************************************************************************/
  4589. /*! no static exports found */
  4590. /***/ (function(module, exports, __webpack_require__) {
  4591. "use strict";
  4592. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  4593. * 递归使用 call 方式this指向
  4594. * @param componentName // 需要找的组件的名称
  4595. * @param eventName // 事件名称
  4596. * @param params // 需要传递的参数
  4597. */
  4598. function _broadcast(componentName, eventName, params) {
  4599. // 循环子节点找到名称一样的子节点 否则 递归 当前子节点
  4600. this.$children.map(function (child) {
  4601. if (componentName === child.$options.name) {
  4602. child.$emit.apply(child, [eventName].concat(params));
  4603. } else {
  4604. _broadcast.apply(child, [componentName, eventName].concat(params));
  4605. }
  4606. });
  4607. }var _default =
  4608. {
  4609. methods: {
  4610. /**
  4611. * 派发 (向上查找) (一个)
  4612. * @param componentName // 需要找的组件的名称
  4613. * @param eventName // 事件名称
  4614. * @param params // 需要传递的参数
  4615. */
  4616. dispatch: function dispatch(componentName, eventName, params) {
  4617. var parent = this.$parent || this.$root; //$parent 找到最近的父节点 $root 根节点
  4618. var name = parent.$options.name; // 获取当前组件实例的name
  4619. // 如果当前有节点 && 当前没名称 且 当前名称等于需要传进来的名称的时候就去查找当前的节点
  4620. // 循环出当前名称的一样的组件实例
  4621. while (parent && (!name || name !== componentName)) {
  4622. parent = parent.$parent;
  4623. if (parent) {
  4624. name = parent.$options.name;
  4625. }
  4626. }
  4627. // 有节点表示当前找到了name一样的实例
  4628. if (parent) {
  4629. parent.$emit.apply(parent, [eventName].concat(params));
  4630. }
  4631. },
  4632. /**
  4633. * 广播 (向下查找) (广播多个)
  4634. * @param componentName // 需要找的组件的名称
  4635. * @param eventName // 事件名称
  4636. * @param params // 需要传递的参数
  4637. */
  4638. broadcast: function broadcast(componentName, eventName, params) {
  4639. _broadcast.call(this, componentName, eventName, params);
  4640. } } };exports.default = _default;
  4641. /***/ }),
  4642. /***/ 26:
  4643. /*!************************************************************************************!*\
  4644. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/timeFrom.js ***!
  4645. \************************************************************************************/
  4646. /*! no static exports found */
  4647. /***/ (function(module, exports, __webpack_require__) {
  4648. "use strict";
  4649. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _timeFormat = _interopRequireDefault(__webpack_require__(/*! ../../libs/function/timeFormat.js */ 25));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  4650. /**
  4651. * 时间戳转为多久之前
  4652. * @param String timestamp 时间戳
  4653. * @param String | Boolean format 如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  4654. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  4655. */
  4656. function timeFrom() {var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  4657. // 如果为null,则格式化当前时间
  4658. if (!dateTime) dateTime = Number(new Date());
  4659. // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式
  4660. if (dateTime.toString().length == 10) dateTime *= 1000;
  4661. var timestamp = +new Date(Number(dateTime));
  4662. var timer = (Number(new Date()) - timestamp) / 1000;
  4663. // 如果小于5分钟,则返回"刚刚",其他以此类推
  4664. var tips = '';
  4665. switch (true) {
  4666. case timer < 300:
  4667. tips = '刚刚';
  4668. break;
  4669. case timer >= 300 && timer < 3600:
  4670. tips = parseInt(timer / 60) + '分钟前';
  4671. break;
  4672. case timer >= 3600 && timer < 86400:
  4673. tips = parseInt(timer / 3600) + '小时前';
  4674. break;
  4675. case timer >= 86400 && timer < 2592000:
  4676. tips = parseInt(timer / 86400) + '天前';
  4677. break;
  4678. default:
  4679. // 如果format为false,则无论什么时间戳,都显示xx之前
  4680. if (format === false) {
  4681. if (timer >= 2592000 && timer < 365 * 86400) {
  4682. tips = parseInt(timer / (86400 * 30)) + '个月前';
  4683. } else {
  4684. tips = parseInt(timer / (86400 * 365)) + '年前';
  4685. }
  4686. } else {
  4687. tips = (0, _timeFormat.default)(timestamp, format);
  4688. }}
  4689. return tips;
  4690. }var _default =
  4691. timeFrom;exports.default = _default;
  4692. /***/ }),
  4693. /***/ 27:
  4694. /*!*****************************************************************************************!*\
  4695. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/colorGradient.js ***!
  4696. \*****************************************************************************************/
  4697. /*! no static exports found */
  4698. /***/ (function(module, exports, __webpack_require__) {
  4699. "use strict";
  4700. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  4701. * 求两个颜色之间的渐变值
  4702. * @param {string} startColor 开始的颜色
  4703. * @param {string} endColor 结束的颜色
  4704. * @param {number} step 颜色等分的份额
  4705. * */
  4706. function colorGradient() {var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  4707. var startRGB = hexToRgb(startColor, false); //转换为rgb数组模式
  4708. var startR = startRGB[0];
  4709. var startG = startRGB[1];
  4710. var startB = startRGB[2];
  4711. var endRGB = hexToRgb(endColor, false);
  4712. var endR = endRGB[0];
  4713. var endG = endRGB[1];
  4714. var endB = endRGB[2];
  4715. var sR = (endR - startR) / step; //总差值
  4716. var sG = (endG - startG) / step;
  4717. var sB = (endB - startB) / step;
  4718. var colorArr = [];
  4719. for (var i = 0; i < step; i++) {
  4720. //计算每一步的hex值
  4721. var hex = rgbToHex('rgb(' + Math.round(sR * i + startR) + ',' + Math.round(sG * i + startG) + ',' + Math.round(sB *
  4722. i + startB) + ')');
  4723. colorArr.push(hex);
  4724. }
  4725. return colorArr;
  4726. }
  4727. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  4728. function hexToRgb(sColor) {var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  4729. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  4730. sColor = sColor.toLowerCase();
  4731. if (sColor && reg.test(sColor)) {
  4732. if (sColor.length === 4) {
  4733. var sColorNew = "#";
  4734. for (var i = 1; i < 4; i += 1) {
  4735. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  4736. }
  4737. sColor = sColorNew;
  4738. }
  4739. //处理六位的颜色值
  4740. var sColorChange = [];
  4741. for (var _i = 1; _i < 7; _i += 2) {
  4742. sColorChange.push(parseInt("0x" + sColor.slice(_i, _i + 2)));
  4743. }
  4744. if (!str) {
  4745. return sColorChange;
  4746. } else {
  4747. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  4748. }
  4749. } else if (/^(rgb|RGB)/.test(sColor)) {
  4750. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
  4751. return arr.map(function (val) {return Number(val);});
  4752. } else {
  4753. return sColor;
  4754. }
  4755. };
  4756. // 将rgb表示方式转换为hex表示方式
  4757. function rgbToHex(rgb) {
  4758. var _this = rgb;
  4759. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  4760. if (/^(rgb|RGB)/.test(_this)) {
  4761. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
  4762. var strHex = "#";
  4763. for (var i = 0; i < aColor.length; i++) {
  4764. var hex = Number(aColor[i]).toString(16);
  4765. hex = String(hex).length == 1 ? 0 + '' + hex : hex; // 保证每个rgb的值为2位
  4766. if (hex === "0") {
  4767. hex += hex;
  4768. }
  4769. strHex += hex;
  4770. }
  4771. if (strHex.length !== 7) {
  4772. strHex = _this;
  4773. }
  4774. return strHex;
  4775. } else if (reg.test(_this)) {
  4776. var aNum = _this.replace(/#/, "").split("");
  4777. if (aNum.length === 6) {
  4778. return _this;
  4779. } else if (aNum.length === 3) {
  4780. var numHex = "#";
  4781. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  4782. numHex += aNum[_i2] + aNum[_i2];
  4783. }
  4784. return numHex;
  4785. }
  4786. } else {
  4787. return _this;
  4788. }
  4789. }
  4790. /**
  4791. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  4792. * sHex为传入的十六进制的色值
  4793. * alpha为rgba的透明度
  4794. */
  4795. function colorToRgba(color) {var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.3;
  4796. color = rgbToHex(color);
  4797. // 十六进制颜色值的正则表达式
  4798. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  4799. /* 16进制颜色转为RGB格式 */
  4800. var sColor = color.toLowerCase();
  4801. if (sColor && reg.test(sColor)) {
  4802. if (sColor.length === 4) {
  4803. var sColorNew = '#';
  4804. for (var i = 1; i < 4; i += 1) {
  4805. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  4806. }
  4807. sColor = sColorNew;
  4808. }
  4809. // 处理六位的颜色值
  4810. var sColorChange = [];
  4811. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  4812. sColorChange.push(parseInt('0x' + sColor.slice(_i3, _i3 + 2)));
  4813. }
  4814. // return sColorChange.join(',')
  4815. return 'rgba(' + sColorChange.join(',') + ',' + alpha + ')';
  4816. } else
  4817. {
  4818. return sColor;
  4819. }
  4820. }var _default =
  4821. {
  4822. colorGradient: colorGradient,
  4823. hexToRgb: hexToRgb,
  4824. rgbToHex: rgbToHex,
  4825. colorToRgba: colorToRgba };exports.default = _default;
  4826. /***/ }),
  4827. /***/ 28:
  4828. /*!********************************************************************************!*\
  4829. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/guid.js ***!
  4830. \********************************************************************************/
  4831. /*! no static exports found */
  4832. /***/ (function(module, exports, __webpack_require__) {
  4833. "use strict";
  4834. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  4835. * 本算法来源于简书开源代码,详见:https://www.jianshu.com/p/fdbf293d0a85
  4836. * 全局唯一标识符(uuid,Globally Unique Identifier),也称作 uuid(Universally Unique IDentifier)
  4837. * 一般用于多个组件之间,给它一个唯一的标识符,或者v-for循环的时候,如果使用数组的index可能会导致更新列表出现问题
  4838. * 最可能的情况是左滑删除item或者对某条信息流"不喜欢"并去掉它的时候,会导致组件内的数据可能出现错乱
  4839. * v-for的时候,推荐使用后端返回的id而不是循环的index
  4840. * @param {Number} len uuid的长度
  4841. * @param {Boolean} firstU 将返回的首字母置为"u"
  4842. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  4843. */
  4844. function guid() {var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  4845. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  4846. var uuid = [];
  4847. radix = radix || chars.length;
  4848. if (len) {
  4849. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  4850. for (var i = 0; i < len; i++) {uuid[i] = chars[0 | Math.random() * radix];}
  4851. } else {
  4852. var r;
  4853. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  4854. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  4855. uuid[14] = '4';
  4856. for (var _i = 0; _i < 36; _i++) {
  4857. if (!uuid[_i]) {
  4858. r = 0 | Math.random() * 16;
  4859. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  4860. }
  4861. }
  4862. }
  4863. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  4864. if (firstU) {
  4865. uuid.shift();
  4866. return 'u' + uuid.join('');
  4867. } else {
  4868. return uuid.join('');
  4869. }
  4870. }var _default =
  4871. guid;exports.default = _default;
  4872. /***/ }),
  4873. /***/ 29:
  4874. /*!*********************************************************************************!*\
  4875. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/color.js ***!
  4876. \*********************************************************************************/
  4877. /*! no static exports found */
  4878. /***/ (function(module, exports, __webpack_require__) {
  4879. "use strict";
  4880. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  4881. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  4882. var color = {
  4883. primary: "#2979ff",
  4884. primaryDark: "#2b85e4",
  4885. primaryDisabled: "#a0cfff",
  4886. primaryLight: "#ecf5ff",
  4887. bgColor: "#f3f4f6",
  4888. info: "#909399",
  4889. infoDark: "#82848a",
  4890. infoDisabled: "#c8c9cc",
  4891. infoLight: "#f4f4f5",
  4892. warning: "#ff9900",
  4893. warningDark: "#f29100",
  4894. warningDisabled: "#fcbd71",
  4895. warningLight: "#fdf6ec",
  4896. error: "#fa3534",
  4897. errorDark: "#dd6161",
  4898. errorDisabled: "#fab6b6",
  4899. errorLight: "#fef0f0",
  4900. success: "#19be6b",
  4901. successDark: "#18b566",
  4902. successDisabled: "#71d5a1",
  4903. successLight: "#dbf1e1",
  4904. mainColor: "#303133",
  4905. contentColor: "#606266",
  4906. tipsColor: "#909399",
  4907. lightColor: "#c0c4cc",
  4908. borderColor: "#e4e7ed" };var _default =
  4909. color;exports.default = _default;
  4910. /***/ }),
  4911. /***/ 296:
  4912. /*!***************************************************************************************!*\
  4913. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/util/async-validator.js ***!
  4914. \***************************************************************************************/
  4915. /*! no static exports found */
  4916. /***/ (function(module, exports, __webpack_require__) {
  4917. "use strict";
  4918. /* WEBPACK VAR INJECTION */(function(process) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function _extends() {
  4919. _extends = Object.assign || function (target) {
  4920. for (var i = 1; i < arguments.length; i++) {
  4921. var source = arguments[i];
  4922. for (var key in source) {
  4923. if (Object.prototype.hasOwnProperty.call(source, key)) {
  4924. target[key] = source[key];
  4925. }
  4926. }
  4927. }
  4928. return target;
  4929. };
  4930. return _extends.apply(this, arguments);
  4931. }
  4932. /* eslint no-console:0 */
  4933. var formatRegExp = /%[sdj%]/g;
  4934. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  4935. if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_NAME":"pet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !==
  4936. 'undefined' && typeof document !== 'undefined') {
  4937. warning = function warning(type, errors) {
  4938. if (typeof console !== 'undefined' && console.warn) {
  4939. if (errors.every(function (e) {
  4940. return typeof e === 'string';
  4941. })) {
  4942. console.warn(type, errors);
  4943. }
  4944. }
  4945. };
  4946. }
  4947. function convertFieldsError(errors) {
  4948. if (!errors || !errors.length) return null;
  4949. var fields = {};
  4950. errors.forEach(function (error) {
  4951. var field = error.field;
  4952. fields[field] = fields[field] || [];
  4953. fields[field].push(error);
  4954. });
  4955. return fields;
  4956. }
  4957. function format() {
  4958. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  4959. args[_key] = arguments[_key];
  4960. }
  4961. var i = 1;
  4962. var f = args[0];
  4963. var len = args.length;
  4964. if (typeof f === 'function') {
  4965. return f.apply(null, args.slice(1));
  4966. }
  4967. if (typeof f === 'string') {
  4968. var str = String(f).replace(formatRegExp, function (x) {
  4969. if (x === '%%') {
  4970. return '%';
  4971. }
  4972. if (i >= len) {
  4973. return x;
  4974. }
  4975. switch (x) {
  4976. case '%s':
  4977. return String(args[i++]);
  4978. case '%d':
  4979. return Number(args[i++]);
  4980. case '%j':
  4981. try {
  4982. return JSON.stringify(args[i++]);
  4983. } catch (_) {
  4984. return '[Circular]';
  4985. }
  4986. break;
  4987. default:
  4988. return x;}
  4989. });
  4990. for (var arg = args[i]; i < len; arg = args[++i]) {
  4991. str += " " + arg;
  4992. }
  4993. return str;
  4994. }
  4995. return f;
  4996. }
  4997. function isNativeStringType(type) {
  4998. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  4999. }
  5000. function isEmptyValue(value, type) {
  5001. if (value === undefined || value === null) {
  5002. return true;
  5003. }
  5004. if (type === 'array' && Array.isArray(value) && !value.length) {
  5005. return true;
  5006. }
  5007. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  5008. return true;
  5009. }
  5010. return false;
  5011. }
  5012. function asyncParallelArray(arr, func, callback) {
  5013. var results = [];
  5014. var total = 0;
  5015. var arrLength = arr.length;
  5016. function count(errors) {
  5017. results.push.apply(results, errors);
  5018. total++;
  5019. if (total === arrLength) {
  5020. callback(results);
  5021. }
  5022. }
  5023. arr.forEach(function (a) {
  5024. func(a, count);
  5025. });
  5026. }
  5027. function asyncSerialArray(arr, func, callback) {
  5028. var index = 0;
  5029. var arrLength = arr.length;
  5030. function next(errors) {
  5031. if (errors && errors.length) {
  5032. callback(errors);
  5033. return;
  5034. }
  5035. var original = index;
  5036. index = index + 1;
  5037. if (original < arrLength) {
  5038. func(arr[original], next);
  5039. } else {
  5040. callback([]);
  5041. }
  5042. }
  5043. next([]);
  5044. }
  5045. function flattenObjArr(objArr) {
  5046. var ret = [];
  5047. Object.keys(objArr).forEach(function (k) {
  5048. ret.push.apply(ret, objArr[k]);
  5049. });
  5050. return ret;
  5051. }
  5052. function asyncMap(objArr, option, func, callback) {
  5053. if (option.first) {
  5054. var _pending = new Promise(function (resolve, reject) {
  5055. var next = function next(errors) {
  5056. callback(errors);
  5057. return errors.length ? reject({
  5058. errors: errors,
  5059. fields: convertFieldsError(errors) }) :
  5060. resolve();
  5061. };
  5062. var flattenArr = flattenObjArr(objArr);
  5063. asyncSerialArray(flattenArr, func, next);
  5064. });
  5065. _pending["catch"](function (e) {
  5066. return e;
  5067. });
  5068. return _pending;
  5069. }
  5070. var firstFields = option.firstFields || [];
  5071. if (firstFields === true) {
  5072. firstFields = Object.keys(objArr);
  5073. }
  5074. var objArrKeys = Object.keys(objArr);
  5075. var objArrLength = objArrKeys.length;
  5076. var total = 0;
  5077. var results = [];
  5078. var pending = new Promise(function (resolve, reject) {
  5079. var next = function next(errors) {
  5080. results.push.apply(results, errors);
  5081. total++;
  5082. if (total === objArrLength) {
  5083. callback(results);
  5084. return results.length ? reject({
  5085. errors: results,
  5086. fields: convertFieldsError(results) }) :
  5087. resolve();
  5088. }
  5089. };
  5090. if (!objArrKeys.length) {
  5091. callback(results);
  5092. resolve();
  5093. }
  5094. objArrKeys.forEach(function (key) {
  5095. var arr = objArr[key];
  5096. if (firstFields.indexOf(key) !== -1) {
  5097. asyncSerialArray(arr, func, next);
  5098. } else {
  5099. asyncParallelArray(arr, func, next);
  5100. }
  5101. });
  5102. });
  5103. pending["catch"](function (e) {
  5104. return e;
  5105. });
  5106. return pending;
  5107. }
  5108. function complementError(rule) {
  5109. return function (oe) {
  5110. if (oe && oe.message) {
  5111. oe.field = oe.field || rule.fullField;
  5112. return oe;
  5113. }
  5114. return {
  5115. message: typeof oe === 'function' ? oe() : oe,
  5116. field: oe.field || rule.fullField };
  5117. };
  5118. }
  5119. function deepMerge(target, source) {
  5120. if (source) {
  5121. for (var s in source) {
  5122. if (source.hasOwnProperty(s)) {
  5123. var value = source[s];
  5124. if (typeof value === 'object' && typeof target[s] === 'object') {
  5125. target[s] = _extends({}, target[s], {}, value);
  5126. } else {
  5127. target[s] = value;
  5128. }
  5129. }
  5130. }
  5131. }
  5132. return target;
  5133. }
  5134. /**
  5135. * Rule for validating required fields.
  5136. *
  5137. * @param rule The validation rule.
  5138. * @param value The value of the field on the source object.
  5139. * @param source The source object being validated.
  5140. * @param errors An array of errors that this rule may add
  5141. * validation errors to.
  5142. * @param options The validation options.
  5143. * @param options.messages The validation messages.
  5144. */
  5145. function required(rule, value, source, errors, options, type) {
  5146. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  5147. errors.push(format(options.messages.required, rule.fullField));
  5148. }
  5149. }
  5150. /**
  5151. * Rule for validating whitespace.
  5152. *
  5153. * @param rule The validation rule.
  5154. * @param value The value of the field on the source object.
  5155. * @param source The source object being validated.
  5156. * @param errors An array of errors that this rule may add
  5157. * validation errors to.
  5158. * @param options The validation options.
  5159. * @param options.messages The validation messages.
  5160. */
  5161. function whitespace(rule, value, source, errors, options) {
  5162. if (/^\s+$/.test(value) || value === '') {
  5163. errors.push(format(options.messages.whitespace, rule.fullField));
  5164. }
  5165. }
  5166. /* eslint max-len:0 */
  5167. var pattern = {
  5168. // http://emailregex.com/
  5169. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  5170. url: new RegExp(
  5171. "^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
  5172. 'i'),
  5173. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i };
  5174. var types = {
  5175. integer: function integer(value) {
  5176. return types.number(value) && parseInt(value, 10) === value;
  5177. },
  5178. "float": function float(value) {
  5179. return types.number(value) && !types.integer(value);
  5180. },
  5181. array: function array(value) {
  5182. return Array.isArray(value);
  5183. },
  5184. regexp: function regexp(value) {
  5185. if (value instanceof RegExp) {
  5186. return true;
  5187. }
  5188. try {
  5189. return !!new RegExp(value);
  5190. } catch (e) {
  5191. return false;
  5192. }
  5193. },
  5194. date: function date(value) {
  5195. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear ===
  5196. 'function';
  5197. },
  5198. number: function number(value) {
  5199. if (isNaN(value)) {
  5200. return false;
  5201. }
  5202. // 修改源码,将字符串数值先转为数值
  5203. return typeof +value === 'number';
  5204. },
  5205. object: function object(value) {
  5206. return typeof value === 'object' && !types.array(value);
  5207. },
  5208. method: function method(value) {
  5209. return typeof value === 'function';
  5210. },
  5211. email: function email(value) {
  5212. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  5213. },
  5214. url: function url(value) {
  5215. return typeof value === 'string' && !!value.match(pattern.url);
  5216. },
  5217. hex: function hex(value) {
  5218. return typeof value === 'string' && !!value.match(pattern.hex);
  5219. } };
  5220. /**
  5221. * Rule for validating the type of a value.
  5222. *
  5223. * @param rule The validation rule.
  5224. * @param value The value of the field on the source object.
  5225. * @param source The source object being validated.
  5226. * @param errors An array of errors that this rule may add
  5227. * validation errors to.
  5228. * @param options The validation options.
  5229. * @param options.messages The validation messages.
  5230. */
  5231. function type(rule, value, source, errors, options) {
  5232. if (rule.required && value === undefined) {
  5233. required(rule, value, source, errors, options);
  5234. return;
  5235. }
  5236. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  5237. var ruleType = rule.type;
  5238. if (custom.indexOf(ruleType) > -1) {
  5239. if (!types[ruleType](value)) {
  5240. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  5241. } // straight typeof check
  5242. } else if (ruleType && typeof value !== rule.type) {
  5243. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  5244. }
  5245. }
  5246. /**
  5247. * Rule for validating minimum and maximum allowed values.
  5248. *
  5249. * @param rule The validation rule.
  5250. * @param value The value of the field on the source object.
  5251. * @param source The source object being validated.
  5252. * @param errors An array of errors that this rule may add
  5253. * validation errors to.
  5254. * @param options The validation options.
  5255. * @param options.messages The validation messages.
  5256. */
  5257. function range(rule, value, source, errors, options) {
  5258. var len = typeof rule.len === 'number';
  5259. var min = typeof rule.min === 'number';
  5260. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  5261. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  5262. var val = value;
  5263. var key = null;
  5264. var num = typeof value === 'number';
  5265. var str = typeof value === 'string';
  5266. var arr = Array.isArray(value);
  5267. if (num) {
  5268. key = 'number';
  5269. } else if (str) {
  5270. key = 'string';
  5271. } else if (arr) {
  5272. key = 'array';
  5273. } // if the value is not of a supported type for range validation
  5274. // the validation rule rule should use the
  5275. // type property to also test for a particular type
  5276. if (!key) {
  5277. return false;
  5278. }
  5279. if (arr) {
  5280. val = value.length;
  5281. }
  5282. if (str) {
  5283. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  5284. val = value.replace(spRegexp, '_').length;
  5285. }
  5286. if (len) {
  5287. if (val !== rule.len) {
  5288. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  5289. }
  5290. } else if (min && !max && val < rule.min) {
  5291. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  5292. } else if (max && !min && val > rule.max) {
  5293. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  5294. } else if (min && max && (val < rule.min || val > rule.max)) {
  5295. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  5296. }
  5297. }
  5298. var ENUM = 'enum';
  5299. /**
  5300. * Rule for validating a value exists in an enumerable list.
  5301. *
  5302. * @param rule The validation rule.
  5303. * @param value The value of the field on the source object.
  5304. * @param source The source object being validated.
  5305. * @param errors An array of errors that this rule may add
  5306. * validation errors to.
  5307. * @param options The validation options.
  5308. * @param options.messages The validation messages.
  5309. */
  5310. function enumerable(rule, value, source, errors, options) {
  5311. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  5312. if (rule[ENUM].indexOf(value) === -1) {
  5313. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  5314. }
  5315. }
  5316. /**
  5317. * Rule for validating a regular expression pattern.
  5318. *
  5319. * @param rule The validation rule.
  5320. * @param value The value of the field on the source object.
  5321. * @param source The source object being validated.
  5322. * @param errors An array of errors that this rule may add
  5323. * validation errors to.
  5324. * @param options The validation options.
  5325. * @param options.messages The validation messages.
  5326. */
  5327. function pattern$1(rule, value, source, errors, options) {
  5328. if (rule.pattern) {
  5329. if (rule.pattern instanceof RegExp) {
  5330. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  5331. // flag is accidentally set to `true`, which in a validation scenario
  5332. // is not necessary and the result might be misleading
  5333. rule.pattern.lastIndex = 0;
  5334. if (!rule.pattern.test(value)) {
  5335. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  5336. }
  5337. } else if (typeof rule.pattern === 'string') {
  5338. var _pattern = new RegExp(rule.pattern);
  5339. if (!_pattern.test(value)) {
  5340. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  5341. }
  5342. }
  5343. }
  5344. }
  5345. var rules = {
  5346. required: required,
  5347. whitespace: whitespace,
  5348. type: type,
  5349. range: range,
  5350. "enum": enumerable,
  5351. pattern: pattern$1 };
  5352. /**
  5353. * Performs validation for string types.
  5354. *
  5355. * @param rule The validation rule.
  5356. * @param value The value of the field on the source object.
  5357. * @param callback The callback function.
  5358. * @param source The source object being validated.
  5359. * @param options The validation options.
  5360. * @param options.messages The validation messages.
  5361. */
  5362. function string(rule, value, callback, source, options) {
  5363. var errors = [];
  5364. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5365. if (validate) {
  5366. if (isEmptyValue(value, 'string') && !rule.required) {
  5367. return callback();
  5368. }
  5369. rules.required(rule, value, source, errors, options, 'string');
  5370. if (!isEmptyValue(value, 'string')) {
  5371. rules.type(rule, value, source, errors, options);
  5372. rules.range(rule, value, source, errors, options);
  5373. rules.pattern(rule, value, source, errors, options);
  5374. if (rule.whitespace === true) {
  5375. rules.whitespace(rule, value, source, errors, options);
  5376. }
  5377. }
  5378. }
  5379. callback(errors);
  5380. }
  5381. /**
  5382. * Validates a function.
  5383. *
  5384. * @param rule The validation rule.
  5385. * @param value The value of the field on the source object.
  5386. * @param callback The callback function.
  5387. * @param source The source object being validated.
  5388. * @param options The validation options.
  5389. * @param options.messages The validation messages.
  5390. */
  5391. function method(rule, value, callback, source, options) {
  5392. var errors = [];
  5393. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5394. if (validate) {
  5395. if (isEmptyValue(value) && !rule.required) {
  5396. return callback();
  5397. }
  5398. rules.required(rule, value, source, errors, options);
  5399. if (value !== undefined) {
  5400. rules.type(rule, value, source, errors, options);
  5401. }
  5402. }
  5403. callback(errors);
  5404. }
  5405. /**
  5406. * Validates a number.
  5407. *
  5408. * @param rule The validation rule.
  5409. * @param value The value of the field on the source object.
  5410. * @param callback The callback function.
  5411. * @param source The source object being validated.
  5412. * @param options The validation options.
  5413. * @param options.messages The validation messages.
  5414. */
  5415. function number(rule, value, callback, source, options) {
  5416. var errors = [];
  5417. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5418. if (validate) {
  5419. if (value === '') {
  5420. value = undefined;
  5421. }
  5422. if (isEmptyValue(value) && !rule.required) {
  5423. return callback();
  5424. }
  5425. rules.required(rule, value, source, errors, options);
  5426. if (value !== undefined) {
  5427. rules.type(rule, value, source, errors, options);
  5428. rules.range(rule, value, source, errors, options);
  5429. }
  5430. }
  5431. callback(errors);
  5432. }
  5433. /**
  5434. * Validates a boolean.
  5435. *
  5436. * @param rule The validation rule.
  5437. * @param value The value of the field on the source object.
  5438. * @param callback The callback function.
  5439. * @param source The source object being validated.
  5440. * @param options The validation options.
  5441. * @param options.messages The validation messages.
  5442. */
  5443. function _boolean(rule, value, callback, source, options) {
  5444. var errors = [];
  5445. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5446. if (validate) {
  5447. if (isEmptyValue(value) && !rule.required) {
  5448. return callback();
  5449. }
  5450. rules.required(rule, value, source, errors, options);
  5451. if (value !== undefined) {
  5452. rules.type(rule, value, source, errors, options);
  5453. }
  5454. }
  5455. callback(errors);
  5456. }
  5457. /**
  5458. * Validates the regular expression type.
  5459. *
  5460. * @param rule The validation rule.
  5461. * @param value The value of the field on the source object.
  5462. * @param callback The callback function.
  5463. * @param source The source object being validated.
  5464. * @param options The validation options.
  5465. * @param options.messages The validation messages.
  5466. */
  5467. function regexp(rule, value, callback, source, options) {
  5468. var errors = [];
  5469. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5470. if (validate) {
  5471. if (isEmptyValue(value) && !rule.required) {
  5472. return callback();
  5473. }
  5474. rules.required(rule, value, source, errors, options);
  5475. if (!isEmptyValue(value)) {
  5476. rules.type(rule, value, source, errors, options);
  5477. }
  5478. }
  5479. callback(errors);
  5480. }
  5481. /**
  5482. * Validates a number is an integer.
  5483. *
  5484. * @param rule The validation rule.
  5485. * @param value The value of the field on the source object.
  5486. * @param callback The callback function.
  5487. * @param source The source object being validated.
  5488. * @param options The validation options.
  5489. * @param options.messages The validation messages.
  5490. */
  5491. function integer(rule, value, callback, source, options) {
  5492. var errors = [];
  5493. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5494. if (validate) {
  5495. if (isEmptyValue(value) && !rule.required) {
  5496. return callback();
  5497. }
  5498. rules.required(rule, value, source, errors, options);
  5499. if (value !== undefined) {
  5500. rules.type(rule, value, source, errors, options);
  5501. rules.range(rule, value, source, errors, options);
  5502. }
  5503. }
  5504. callback(errors);
  5505. }
  5506. /**
  5507. * Validates a number is a floating point number.
  5508. *
  5509. * @param rule The validation rule.
  5510. * @param value The value of the field on the source object.
  5511. * @param callback The callback function.
  5512. * @param source The source object being validated.
  5513. * @param options The validation options.
  5514. * @param options.messages The validation messages.
  5515. */
  5516. function floatFn(rule, value, callback, source, options) {
  5517. var errors = [];
  5518. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5519. if (validate) {
  5520. if (isEmptyValue(value) && !rule.required) {
  5521. return callback();
  5522. }
  5523. rules.required(rule, value, source, errors, options);
  5524. if (value !== undefined) {
  5525. rules.type(rule, value, source, errors, options);
  5526. rules.range(rule, value, source, errors, options);
  5527. }
  5528. }
  5529. callback(errors);
  5530. }
  5531. /**
  5532. * Validates an array.
  5533. *
  5534. * @param rule The validation rule.
  5535. * @param value The value of the field on the source object.
  5536. * @param callback The callback function.
  5537. * @param source The source object being validated.
  5538. * @param options The validation options.
  5539. * @param options.messages The validation messages.
  5540. */
  5541. function array(rule, value, callback, source, options) {
  5542. var errors = [];
  5543. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5544. if (validate) {
  5545. if (isEmptyValue(value, 'array') && !rule.required) {
  5546. return callback();
  5547. }
  5548. rules.required(rule, value, source, errors, options, 'array');
  5549. if (!isEmptyValue(value, 'array')) {
  5550. rules.type(rule, value, source, errors, options);
  5551. rules.range(rule, value, source, errors, options);
  5552. }
  5553. }
  5554. callback(errors);
  5555. }
  5556. /**
  5557. * Validates an object.
  5558. *
  5559. * @param rule The validation rule.
  5560. * @param value The value of the field on the source object.
  5561. * @param callback The callback function.
  5562. * @param source The source object being validated.
  5563. * @param options The validation options.
  5564. * @param options.messages The validation messages.
  5565. */
  5566. function object(rule, value, callback, source, options) {
  5567. var errors = [];
  5568. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5569. if (validate) {
  5570. if (isEmptyValue(value) && !rule.required) {
  5571. return callback();
  5572. }
  5573. rules.required(rule, value, source, errors, options);
  5574. if (value !== undefined) {
  5575. rules.type(rule, value, source, errors, options);
  5576. }
  5577. }
  5578. callback(errors);
  5579. }
  5580. var ENUM$1 = 'enum';
  5581. /**
  5582. * Validates an enumerable list.
  5583. *
  5584. * @param rule The validation rule.
  5585. * @param value The value of the field on the source object.
  5586. * @param callback The callback function.
  5587. * @param source The source object being validated.
  5588. * @param options The validation options.
  5589. * @param options.messages The validation messages.
  5590. */
  5591. function enumerable$1(rule, value, callback, source, options) {
  5592. var errors = [];
  5593. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5594. if (validate) {
  5595. if (isEmptyValue(value) && !rule.required) {
  5596. return callback();
  5597. }
  5598. rules.required(rule, value, source, errors, options);
  5599. if (value !== undefined) {
  5600. rules[ENUM$1](rule, value, source, errors, options);
  5601. }
  5602. }
  5603. callback(errors);
  5604. }
  5605. /**
  5606. * Validates a regular expression pattern.
  5607. *
  5608. * Performs validation when a rule only contains
  5609. * a pattern property but is not declared as a string type.
  5610. *
  5611. * @param rule The validation rule.
  5612. * @param value The value of the field on the source object.
  5613. * @param callback The callback function.
  5614. * @param source The source object being validated.
  5615. * @param options The validation options.
  5616. * @param options.messages The validation messages.
  5617. */
  5618. function pattern$2(rule, value, callback, source, options) {
  5619. var errors = [];
  5620. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5621. if (validate) {
  5622. if (isEmptyValue(value, 'string') && !rule.required) {
  5623. return callback();
  5624. }
  5625. rules.required(rule, value, source, errors, options);
  5626. if (!isEmptyValue(value, 'string')) {
  5627. rules.pattern(rule, value, source, errors, options);
  5628. }
  5629. }
  5630. callback(errors);
  5631. }
  5632. function date(rule, value, callback, source, options) {
  5633. var errors = [];
  5634. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5635. if (validate) {
  5636. if (isEmptyValue(value) && !rule.required) {
  5637. return callback();
  5638. }
  5639. rules.required(rule, value, source, errors, options);
  5640. if (!isEmptyValue(value)) {
  5641. var dateObject;
  5642. if (typeof value === 'number') {
  5643. dateObject = new Date(value);
  5644. } else {
  5645. dateObject = value;
  5646. }
  5647. rules.type(rule, dateObject, source, errors, options);
  5648. if (dateObject) {
  5649. rules.range(rule, dateObject.getTime(), source, errors, options);
  5650. }
  5651. }
  5652. }
  5653. callback(errors);
  5654. }
  5655. function required$1(rule, value, callback, source, options) {
  5656. var errors = [];
  5657. var type = Array.isArray(value) ? 'array' : typeof value;
  5658. rules.required(rule, value, source, errors, options, type);
  5659. callback(errors);
  5660. }
  5661. function type$1(rule, value, callback, source, options) {
  5662. var ruleType = rule.type;
  5663. var errors = [];
  5664. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5665. if (validate) {
  5666. if (isEmptyValue(value, ruleType) && !rule.required) {
  5667. return callback();
  5668. }
  5669. rules.required(rule, value, source, errors, options, ruleType);
  5670. if (!isEmptyValue(value, ruleType)) {
  5671. rules.type(rule, value, source, errors, options);
  5672. }
  5673. }
  5674. callback(errors);
  5675. }
  5676. /**
  5677. * Performs validation for any type.
  5678. *
  5679. * @param rule The validation rule.
  5680. * @param value The value of the field on the source object.
  5681. * @param callback The callback function.
  5682. * @param source The source object being validated.
  5683. * @param options The validation options.
  5684. * @param options.messages The validation messages.
  5685. */
  5686. function any(rule, value, callback, source, options) {
  5687. var errors = [];
  5688. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  5689. if (validate) {
  5690. if (isEmptyValue(value) && !rule.required) {
  5691. return callback();
  5692. }
  5693. rules.required(rule, value, source, errors, options);
  5694. }
  5695. callback(errors);
  5696. }
  5697. var validators = {
  5698. string: string,
  5699. method: method,
  5700. number: number,
  5701. "boolean": _boolean,
  5702. regexp: regexp,
  5703. integer: integer,
  5704. "float": floatFn,
  5705. array: array,
  5706. object: object,
  5707. "enum": enumerable$1,
  5708. pattern: pattern$2,
  5709. date: date,
  5710. url: type$1,
  5711. hex: type$1,
  5712. email: type$1,
  5713. required: required$1,
  5714. any: any };
  5715. function newMessages() {
  5716. return {
  5717. "default": 'Validation error on field %s',
  5718. required: '%s is required',
  5719. "enum": '%s must be one of %s',
  5720. whitespace: '%s cannot be empty',
  5721. date: {
  5722. format: '%s date %s is invalid for format %s',
  5723. parse: '%s date could not be parsed, %s is invalid ',
  5724. invalid: '%s date %s is invalid' },
  5725. types: {
  5726. string: '%s is not a %s',
  5727. method: '%s is not a %s (function)',
  5728. array: '%s is not an %s',
  5729. object: '%s is not an %s',
  5730. number: '%s is not a %s',
  5731. date: '%s is not a %s',
  5732. "boolean": '%s is not a %s',
  5733. integer: '%s is not an %s',
  5734. "float": '%s is not a %s',
  5735. regexp: '%s is not a valid %s',
  5736. email: '%s is not a valid %s',
  5737. url: '%s is not a valid %s',
  5738. hex: '%s is not a valid %s' },
  5739. string: {
  5740. len: '%s must be exactly %s characters',
  5741. min: '%s must be at least %s characters',
  5742. max: '%s cannot be longer than %s characters',
  5743. range: '%s must be between %s and %s characters' },
  5744. number: {
  5745. len: '%s must equal %s',
  5746. min: '%s cannot be less than %s',
  5747. max: '%s cannot be greater than %s',
  5748. range: '%s must be between %s and %s' },
  5749. array: {
  5750. len: '%s must be exactly %s in length',
  5751. min: '%s cannot be less than %s in length',
  5752. max: '%s cannot be greater than %s in length',
  5753. range: '%s must be between %s and %s in length' },
  5754. pattern: {
  5755. mismatch: '%s value %s does not match pattern %s' },
  5756. clone: function clone() {
  5757. var cloned = JSON.parse(JSON.stringify(this));
  5758. cloned.clone = this.clone;
  5759. return cloned;
  5760. } };
  5761. }
  5762. var messages = newMessages();
  5763. /**
  5764. * Encapsulates a validation schema.
  5765. *
  5766. * @param descriptor An object declaring validation rules
  5767. * for this schema.
  5768. */
  5769. function Schema(descriptor) {
  5770. this.rules = null;
  5771. this._messages = messages;
  5772. this.define(descriptor);
  5773. }
  5774. Schema.prototype = {
  5775. messages: function messages(_messages) {
  5776. if (_messages) {
  5777. this._messages = deepMerge(newMessages(), _messages);
  5778. }
  5779. return this._messages;
  5780. },
  5781. define: function define(rules) {
  5782. if (!rules) {
  5783. throw new Error('Cannot configure a schema with no rules');
  5784. }
  5785. if (typeof rules !== 'object' || Array.isArray(rules)) {
  5786. throw new Error('Rules must be an object');
  5787. }
  5788. this.rules = {};
  5789. var z;
  5790. var item;
  5791. for (z in rules) {
  5792. if (rules.hasOwnProperty(z)) {
  5793. item = rules[z];
  5794. this.rules[z] = Array.isArray(item) ? item : [item];
  5795. }
  5796. }
  5797. },
  5798. validate: function validate(source_, o, oc) {
  5799. var _this = this;
  5800. if (o === void 0) {
  5801. o = {};
  5802. }
  5803. if (oc === void 0) {
  5804. oc = function oc() {};
  5805. }
  5806. var source = source_;
  5807. var options = o;
  5808. var callback = oc;
  5809. if (typeof options === 'function') {
  5810. callback = options;
  5811. options = {};
  5812. }
  5813. if (!this.rules || Object.keys(this.rules).length === 0) {
  5814. if (callback) {
  5815. callback();
  5816. }
  5817. return Promise.resolve();
  5818. }
  5819. function complete(results) {
  5820. var i;
  5821. var errors = [];
  5822. var fields = {};
  5823. function add(e) {
  5824. if (Array.isArray(e)) {
  5825. var _errors;
  5826. errors = (_errors = errors).concat.apply(_errors, e);
  5827. } else {
  5828. errors.push(e);
  5829. }
  5830. }
  5831. for (i = 0; i < results.length; i++) {
  5832. add(results[i]);
  5833. }
  5834. if (!errors.length) {
  5835. errors = null;
  5836. fields = null;
  5837. } else {
  5838. fields = convertFieldsError(errors);
  5839. }
  5840. callback(errors, fields);
  5841. }
  5842. if (options.messages) {
  5843. var messages$1 = this.messages();
  5844. if (messages$1 === messages) {
  5845. messages$1 = newMessages();
  5846. }
  5847. deepMerge(messages$1, options.messages);
  5848. options.messages = messages$1;
  5849. } else {
  5850. options.messages = this.messages();
  5851. }
  5852. var arr;
  5853. var value;
  5854. var series = {};
  5855. var keys = options.keys || Object.keys(this.rules);
  5856. keys.forEach(function (z) {
  5857. arr = _this.rules[z];
  5858. value = source[z];
  5859. arr.forEach(function (r) {
  5860. var rule = r;
  5861. if (typeof rule.transform === 'function') {
  5862. if (source === source_) {
  5863. source = _extends({}, source);
  5864. }
  5865. value = source[z] = rule.transform(value);
  5866. }
  5867. if (typeof rule === 'function') {
  5868. rule = {
  5869. validator: rule };
  5870. } else {
  5871. rule = _extends({}, rule);
  5872. }
  5873. rule.validator = _this.getValidationMethod(rule);
  5874. rule.field = z;
  5875. rule.fullField = rule.fullField || z;
  5876. rule.type = _this.getType(rule);
  5877. if (!rule.validator) {
  5878. return;
  5879. }
  5880. series[z] = series[z] || [];
  5881. series[z].push({
  5882. rule: rule,
  5883. value: value,
  5884. source: source,
  5885. field: z });
  5886. });
  5887. });
  5888. var errorFields = {};
  5889. return asyncMap(series, options, function (data, doIt) {
  5890. var rule = data.rule;
  5891. var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField ===
  5892. 'object');
  5893. deep = deep && (rule.required || !rule.required && data.value);
  5894. rule.field = data.field;
  5895. function addFullfield(key, schema) {
  5896. return _extends({}, schema, {
  5897. fullField: rule.fullField + "." + key });
  5898. }
  5899. function cb(e) {
  5900. if (e === void 0) {
  5901. e = [];
  5902. }
  5903. var errors = e;
  5904. if (!Array.isArray(errors)) {
  5905. errors = [errors];
  5906. }
  5907. if (!options.suppressWarning && errors.length) {
  5908. Schema.warning('async-validator:', errors);
  5909. }
  5910. if (errors.length && rule.message) {
  5911. errors = [].concat(rule.message);
  5912. }
  5913. errors = errors.map(complementError(rule));
  5914. if (options.first && errors.length) {
  5915. errorFields[rule.field] = 1;
  5916. return doIt(errors);
  5917. }
  5918. if (!deep) {
  5919. doIt(errors);
  5920. } else {
  5921. // if rule is required but the target object
  5922. // does not exist fail at the rule level and don't
  5923. // go deeper
  5924. if (rule.required && !data.value) {
  5925. if (rule.message) {
  5926. errors = [].concat(rule.message).map(complementError(rule));
  5927. } else if (options.error) {
  5928. errors = [options.error(rule, format(options.messages.required, rule.field))];
  5929. } else {
  5930. errors = [];
  5931. }
  5932. return doIt(errors);
  5933. }
  5934. var fieldsSchema = {};
  5935. if (rule.defaultField) {
  5936. for (var k in data.value) {
  5937. if (data.value.hasOwnProperty(k)) {
  5938. fieldsSchema[k] = rule.defaultField;
  5939. }
  5940. }
  5941. }
  5942. fieldsSchema = _extends({}, fieldsSchema, {}, data.rule.fields);
  5943. for (var f in fieldsSchema) {
  5944. if (fieldsSchema.hasOwnProperty(f)) {
  5945. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  5946. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  5947. }
  5948. }
  5949. var schema = new Schema(fieldsSchema);
  5950. schema.messages(options.messages);
  5951. if (data.rule.options) {
  5952. data.rule.options.messages = options.messages;
  5953. data.rule.options.error = options.error;
  5954. }
  5955. schema.validate(data.value, data.rule.options || options, function (errs) {
  5956. var finalErrors = [];
  5957. if (errors && errors.length) {
  5958. finalErrors.push.apply(finalErrors, errors);
  5959. }
  5960. if (errs && errs.length) {
  5961. finalErrors.push.apply(finalErrors, errs);
  5962. }
  5963. doIt(finalErrors.length ? finalErrors : null);
  5964. });
  5965. }
  5966. }
  5967. var res;
  5968. if (rule.asyncValidator) {
  5969. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  5970. } else if (rule.validator) {
  5971. res = rule.validator(rule, data.value, cb, data.source, options);
  5972. if (res === true) {
  5973. cb();
  5974. } else if (res === false) {
  5975. cb(rule.message || rule.field + " fails");
  5976. } else if (res instanceof Array) {
  5977. cb(res);
  5978. } else if (res instanceof Error) {
  5979. cb(res.message);
  5980. }
  5981. }
  5982. if (res && res.then) {
  5983. res.then(function () {
  5984. return cb();
  5985. }, function (e) {
  5986. return cb(e);
  5987. });
  5988. }
  5989. }, function (results) {
  5990. complete(results);
  5991. });
  5992. },
  5993. getType: function getType(rule) {
  5994. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  5995. rule.type = 'pattern';
  5996. }
  5997. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  5998. throw new Error(format('Unknown rule type %s', rule.type));
  5999. }
  6000. return rule.type || 'string';
  6001. },
  6002. getValidationMethod: function getValidationMethod(rule) {
  6003. if (typeof rule.validator === 'function') {
  6004. return rule.validator;
  6005. }
  6006. var keys = Object.keys(rule);
  6007. var messageIndex = keys.indexOf('message');
  6008. if (messageIndex !== -1) {
  6009. keys.splice(messageIndex, 1);
  6010. }
  6011. if (keys.length === 1 && keys[0] === 'required') {
  6012. return validators.required;
  6013. }
  6014. return validators[this.getType(rule)] || false;
  6015. } };
  6016. Schema.register = function register(type, validator) {
  6017. if (typeof validator !== 'function') {
  6018. throw new Error('Cannot register a validator by type, validator is not a function');
  6019. }
  6020. validators[type] = validator;
  6021. };
  6022. Schema.warning = warning;
  6023. Schema.messages = messages;var _default =
  6024. Schema;exports.default = _default;
  6025. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/node-libs-browser/mock/process.js */ 297)))
  6026. /***/ }),
  6027. /***/ 297:
  6028. /*!********************************************************!*\
  6029. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  6030. \********************************************************/
  6031. /*! no static exports found */
  6032. /***/ (function(module, exports, __webpack_require__) {
  6033. exports.nextTick = function nextTick(fn) {
  6034. var args = Array.prototype.slice.call(arguments);
  6035. args.shift();
  6036. setTimeout(function () {
  6037. fn.apply(null, args);
  6038. }, 0);
  6039. };
  6040. exports.platform = exports.arch =
  6041. exports.execPath = exports.title = 'browser';
  6042. exports.pid = 1;
  6043. exports.browser = true;
  6044. exports.env = {};
  6045. exports.argv = [];
  6046. exports.binding = function (name) {
  6047. throw new Error('No such module. (Possibly not yet loaded)')
  6048. };
  6049. (function () {
  6050. var cwd = '/';
  6051. var path;
  6052. exports.cwd = function () { return cwd };
  6053. exports.chdir = function (dir) {
  6054. if (!path) path = __webpack_require__(/*! path */ 298);
  6055. cwd = path.resolve(dir, cwd);
  6056. };
  6057. })();
  6058. exports.exit = exports.kill =
  6059. exports.umask = exports.dlopen =
  6060. exports.uptime = exports.memoryUsage =
  6061. exports.uvCounters = function() {};
  6062. exports.features = {};
  6063. /***/ }),
  6064. /***/ 298:
  6065. /*!***********************************************!*\
  6066. !*** ./node_modules/path-browserify/index.js ***!
  6067. \***********************************************/
  6068. /*! no static exports found */
  6069. /***/ (function(module, exports, __webpack_require__) {
  6070. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  6071. // backported and transplited with Babel, with backwards-compat fixes
  6072. // Copyright Joyent, Inc. and other Node contributors.
  6073. //
  6074. // Permission is hereby granted, free of charge, to any person obtaining a
  6075. // copy of this software and associated documentation files (the
  6076. // "Software"), to deal in the Software without restriction, including
  6077. // without limitation the rights to use, copy, modify, merge, publish,
  6078. // distribute, sublicense, and/or sell copies of the Software, and to permit
  6079. // persons to whom the Software is furnished to do so, subject to the
  6080. // following conditions:
  6081. //
  6082. // The above copyright notice and this permission notice shall be included
  6083. // in all copies or substantial portions of the Software.
  6084. //
  6085. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  6086. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  6087. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  6088. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  6089. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  6090. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  6091. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  6092. // resolves . and .. elements in a path array with directory names there
  6093. // must be no slashes, empty elements, or device names (c:\) in the array
  6094. // (so also no leading and trailing slashes - it does not distinguish
  6095. // relative and absolute paths)
  6096. function normalizeArray(parts, allowAboveRoot) {
  6097. // if the path tries to go above the root, `up` ends up > 0
  6098. var up = 0;
  6099. for (var i = parts.length - 1; i >= 0; i--) {
  6100. var last = parts[i];
  6101. if (last === '.') {
  6102. parts.splice(i, 1);
  6103. } else if (last === '..') {
  6104. parts.splice(i, 1);
  6105. up++;
  6106. } else if (up) {
  6107. parts.splice(i, 1);
  6108. up--;
  6109. }
  6110. }
  6111. // if the path is allowed to go above the root, restore leading ..s
  6112. if (allowAboveRoot) {
  6113. for (; up--; up) {
  6114. parts.unshift('..');
  6115. }
  6116. }
  6117. return parts;
  6118. }
  6119. // path.resolve([from ...], to)
  6120. // posix version
  6121. exports.resolve = function() {
  6122. var resolvedPath = '',
  6123. resolvedAbsolute = false;
  6124. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  6125. var path = (i >= 0) ? arguments[i] : process.cwd();
  6126. // Skip empty and invalid entries
  6127. if (typeof path !== 'string') {
  6128. throw new TypeError('Arguments to path.resolve must be strings');
  6129. } else if (!path) {
  6130. continue;
  6131. }
  6132. resolvedPath = path + '/' + resolvedPath;
  6133. resolvedAbsolute = path.charAt(0) === '/';
  6134. }
  6135. // At this point the path should be resolved to a full absolute path, but
  6136. // handle relative paths to be safe (might happen when process.cwd() fails)
  6137. // Normalize the path
  6138. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  6139. return !!p;
  6140. }), !resolvedAbsolute).join('/');
  6141. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  6142. };
  6143. // path.normalize(path)
  6144. // posix version
  6145. exports.normalize = function(path) {
  6146. var isAbsolute = exports.isAbsolute(path),
  6147. trailingSlash = substr(path, -1) === '/';
  6148. // Normalize the path
  6149. path = normalizeArray(filter(path.split('/'), function(p) {
  6150. return !!p;
  6151. }), !isAbsolute).join('/');
  6152. if (!path && !isAbsolute) {
  6153. path = '.';
  6154. }
  6155. if (path && trailingSlash) {
  6156. path += '/';
  6157. }
  6158. return (isAbsolute ? '/' : '') + path;
  6159. };
  6160. // posix version
  6161. exports.isAbsolute = function(path) {
  6162. return path.charAt(0) === '/';
  6163. };
  6164. // posix version
  6165. exports.join = function() {
  6166. var paths = Array.prototype.slice.call(arguments, 0);
  6167. return exports.normalize(filter(paths, function(p, index) {
  6168. if (typeof p !== 'string') {
  6169. throw new TypeError('Arguments to path.join must be strings');
  6170. }
  6171. return p;
  6172. }).join('/'));
  6173. };
  6174. // path.relative(from, to)
  6175. // posix version
  6176. exports.relative = function(from, to) {
  6177. from = exports.resolve(from).substr(1);
  6178. to = exports.resolve(to).substr(1);
  6179. function trim(arr) {
  6180. var start = 0;
  6181. for (; start < arr.length; start++) {
  6182. if (arr[start] !== '') break;
  6183. }
  6184. var end = arr.length - 1;
  6185. for (; end >= 0; end--) {
  6186. if (arr[end] !== '') break;
  6187. }
  6188. if (start > end) return [];
  6189. return arr.slice(start, end - start + 1);
  6190. }
  6191. var fromParts = trim(from.split('/'));
  6192. var toParts = trim(to.split('/'));
  6193. var length = Math.min(fromParts.length, toParts.length);
  6194. var samePartsLength = length;
  6195. for (var i = 0; i < length; i++) {
  6196. if (fromParts[i] !== toParts[i]) {
  6197. samePartsLength = i;
  6198. break;
  6199. }
  6200. }
  6201. var outputParts = [];
  6202. for (var i = samePartsLength; i < fromParts.length; i++) {
  6203. outputParts.push('..');
  6204. }
  6205. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  6206. return outputParts.join('/');
  6207. };
  6208. exports.sep = '/';
  6209. exports.delimiter = ':';
  6210. exports.dirname = function (path) {
  6211. if (typeof path !== 'string') path = path + '';
  6212. if (path.length === 0) return '.';
  6213. var code = path.charCodeAt(0);
  6214. var hasRoot = code === 47 /*/*/;
  6215. var end = -1;
  6216. var matchedSlash = true;
  6217. for (var i = path.length - 1; i >= 1; --i) {
  6218. code = path.charCodeAt(i);
  6219. if (code === 47 /*/*/) {
  6220. if (!matchedSlash) {
  6221. end = i;
  6222. break;
  6223. }
  6224. } else {
  6225. // We saw the first non-path separator
  6226. matchedSlash = false;
  6227. }
  6228. }
  6229. if (end === -1) return hasRoot ? '/' : '.';
  6230. if (hasRoot && end === 1) {
  6231. // return '//';
  6232. // Backwards-compat fix:
  6233. return '/';
  6234. }
  6235. return path.slice(0, end);
  6236. };
  6237. function basename(path) {
  6238. if (typeof path !== 'string') path = path + '';
  6239. var start = 0;
  6240. var end = -1;
  6241. var matchedSlash = true;
  6242. var i;
  6243. for (i = path.length - 1; i >= 0; --i) {
  6244. if (path.charCodeAt(i) === 47 /*/*/) {
  6245. // If we reached a path separator that was not part of a set of path
  6246. // separators at the end of the string, stop now
  6247. if (!matchedSlash) {
  6248. start = i + 1;
  6249. break;
  6250. }
  6251. } else if (end === -1) {
  6252. // We saw the first non-path separator, mark this as the end of our
  6253. // path component
  6254. matchedSlash = false;
  6255. end = i + 1;
  6256. }
  6257. }
  6258. if (end === -1) return '';
  6259. return path.slice(start, end);
  6260. }
  6261. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  6262. // in new Node.js versions, so only basename() above is backported here
  6263. exports.basename = function (path, ext) {
  6264. var f = basename(path);
  6265. if (ext && f.substr(-1 * ext.length) === ext) {
  6266. f = f.substr(0, f.length - ext.length);
  6267. }
  6268. return f;
  6269. };
  6270. exports.extname = function (path) {
  6271. if (typeof path !== 'string') path = path + '';
  6272. var startDot = -1;
  6273. var startPart = 0;
  6274. var end = -1;
  6275. var matchedSlash = true;
  6276. // Track the state of characters (if any) we see before our first dot and
  6277. // after any path separator we find
  6278. var preDotState = 0;
  6279. for (var i = path.length - 1; i >= 0; --i) {
  6280. var code = path.charCodeAt(i);
  6281. if (code === 47 /*/*/) {
  6282. // If we reached a path separator that was not part of a set of path
  6283. // separators at the end of the string, stop now
  6284. if (!matchedSlash) {
  6285. startPart = i + 1;
  6286. break;
  6287. }
  6288. continue;
  6289. }
  6290. if (end === -1) {
  6291. // We saw the first non-path separator, mark this as the end of our
  6292. // extension
  6293. matchedSlash = false;
  6294. end = i + 1;
  6295. }
  6296. if (code === 46 /*.*/) {
  6297. // If this is our first dot, mark it as the start of our extension
  6298. if (startDot === -1)
  6299. startDot = i;
  6300. else if (preDotState !== 1)
  6301. preDotState = 1;
  6302. } else if (startDot !== -1) {
  6303. // We saw a non-dot and non-path separator before our dot, so we should
  6304. // have a good chance at having a non-empty extension
  6305. preDotState = -1;
  6306. }
  6307. }
  6308. if (startDot === -1 || end === -1 ||
  6309. // We saw a non-dot character immediately before the dot
  6310. preDotState === 0 ||
  6311. // The (right-most) trimmed path component is exactly '..'
  6312. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  6313. return '';
  6314. }
  6315. return path.slice(startDot, end);
  6316. };
  6317. function filter (xs, f) {
  6318. if (xs.filter) return xs.filter(f);
  6319. var res = [];
  6320. for (var i = 0; i < xs.length; i++) {
  6321. if (f(xs[i], i, xs)) res.push(xs[i]);
  6322. }
  6323. return res;
  6324. }
  6325. // String.prototype.substr - negative index don't work in IE8
  6326. var substr = 'ab'.substr(-1) === 'b'
  6327. ? function (str, start, len) { return str.substr(start, len) }
  6328. : function (str, start, len) {
  6329. if (start < 0) start = str.length + start;
  6330. return str.substr(start, len);
  6331. }
  6332. ;
  6333. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 297)))
  6334. /***/ }),
  6335. /***/ 3:
  6336. /*!******************************************************************************************!*\
  6337. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  6338. \******************************************************************************************/
  6339. /*! exports provided: default */
  6340. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6341. "use strict";
  6342. __webpack_require__.r(__webpack_exports__);
  6343. /* WEBPACK VAR INJECTION */(function(global) {/*!
  6344. * Vue.js v2.6.11
  6345. * (c) 2014-2021 Evan You
  6346. * Released under the MIT License.
  6347. */
  6348. /* */
  6349. var emptyObject = Object.freeze({});
  6350. // These helpers produce better VM code in JS engines due to their
  6351. // explicitness and function inlining.
  6352. function isUndef (v) {
  6353. return v === undefined || v === null
  6354. }
  6355. function isDef (v) {
  6356. return v !== undefined && v !== null
  6357. }
  6358. function isTrue (v) {
  6359. return v === true
  6360. }
  6361. function isFalse (v) {
  6362. return v === false
  6363. }
  6364. /**
  6365. * Check if value is primitive.
  6366. */
  6367. function isPrimitive (value) {
  6368. return (
  6369. typeof value === 'string' ||
  6370. typeof value === 'number' ||
  6371. // $flow-disable-line
  6372. typeof value === 'symbol' ||
  6373. typeof value === 'boolean'
  6374. )
  6375. }
  6376. /**
  6377. * Quick object check - this is primarily used to tell
  6378. * Objects from primitive values when we know the value
  6379. * is a JSON-compliant type.
  6380. */
  6381. function isObject (obj) {
  6382. return obj !== null && typeof obj === 'object'
  6383. }
  6384. /**
  6385. * Get the raw type string of a value, e.g., [object Object].
  6386. */
  6387. var _toString = Object.prototype.toString;
  6388. function toRawType (value) {
  6389. return _toString.call(value).slice(8, -1)
  6390. }
  6391. /**
  6392. * Strict object type check. Only returns true
  6393. * for plain JavaScript objects.
  6394. */
  6395. function isPlainObject (obj) {
  6396. return _toString.call(obj) === '[object Object]'
  6397. }
  6398. function isRegExp (v) {
  6399. return _toString.call(v) === '[object RegExp]'
  6400. }
  6401. /**
  6402. * Check if val is a valid array index.
  6403. */
  6404. function isValidArrayIndex (val) {
  6405. var n = parseFloat(String(val));
  6406. return n >= 0 && Math.floor(n) === n && isFinite(val)
  6407. }
  6408. function isPromise (val) {
  6409. return (
  6410. isDef(val) &&
  6411. typeof val.then === 'function' &&
  6412. typeof val.catch === 'function'
  6413. )
  6414. }
  6415. /**
  6416. * Convert a value to a string that is actually rendered.
  6417. */
  6418. function toString (val) {
  6419. return val == null
  6420. ? ''
  6421. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  6422. ? JSON.stringify(val, null, 2)
  6423. : String(val)
  6424. }
  6425. /**
  6426. * Convert an input value to a number for persistence.
  6427. * If the conversion fails, return original string.
  6428. */
  6429. function toNumber (val) {
  6430. var n = parseFloat(val);
  6431. return isNaN(n) ? val : n
  6432. }
  6433. /**
  6434. * Make a map and return a function for checking if a key
  6435. * is in that map.
  6436. */
  6437. function makeMap (
  6438. str,
  6439. expectsLowerCase
  6440. ) {
  6441. var map = Object.create(null);
  6442. var list = str.split(',');
  6443. for (var i = 0; i < list.length; i++) {
  6444. map[list[i]] = true;
  6445. }
  6446. return expectsLowerCase
  6447. ? function (val) { return map[val.toLowerCase()]; }
  6448. : function (val) { return map[val]; }
  6449. }
  6450. /**
  6451. * Check if a tag is a built-in tag.
  6452. */
  6453. var isBuiltInTag = makeMap('slot,component', true);
  6454. /**
  6455. * Check if an attribute is a reserved attribute.
  6456. */
  6457. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  6458. /**
  6459. * Remove an item from an array.
  6460. */
  6461. function remove (arr, item) {
  6462. if (arr.length) {
  6463. var index = arr.indexOf(item);
  6464. if (index > -1) {
  6465. return arr.splice(index, 1)
  6466. }
  6467. }
  6468. }
  6469. /**
  6470. * Check whether an object has the property.
  6471. */
  6472. var hasOwnProperty = Object.prototype.hasOwnProperty;
  6473. function hasOwn (obj, key) {
  6474. return hasOwnProperty.call(obj, key)
  6475. }
  6476. /**
  6477. * Create a cached version of a pure function.
  6478. */
  6479. function cached (fn) {
  6480. var cache = Object.create(null);
  6481. return (function cachedFn (str) {
  6482. var hit = cache[str];
  6483. return hit || (cache[str] = fn(str))
  6484. })
  6485. }
  6486. /**
  6487. * Camelize a hyphen-delimited string.
  6488. */
  6489. var camelizeRE = /-(\w)/g;
  6490. var camelize = cached(function (str) {
  6491. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  6492. });
  6493. /**
  6494. * Capitalize a string.
  6495. */
  6496. var capitalize = cached(function (str) {
  6497. return str.charAt(0).toUpperCase() + str.slice(1)
  6498. });
  6499. /**
  6500. * Hyphenate a camelCase string.
  6501. */
  6502. var hyphenateRE = /\B([A-Z])/g;
  6503. var hyphenate = cached(function (str) {
  6504. return str.replace(hyphenateRE, '-$1').toLowerCase()
  6505. });
  6506. /**
  6507. * Simple bind polyfill for environments that do not support it,
  6508. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  6509. * since native bind is now performant enough in most browsers.
  6510. * But removing it would mean breaking code that was able to run in
  6511. * PhantomJS 1.x, so this must be kept for backward compatibility.
  6512. */
  6513. /* istanbul ignore next */
  6514. function polyfillBind (fn, ctx) {
  6515. function boundFn (a) {
  6516. var l = arguments.length;
  6517. return l
  6518. ? l > 1
  6519. ? fn.apply(ctx, arguments)
  6520. : fn.call(ctx, a)
  6521. : fn.call(ctx)
  6522. }
  6523. boundFn._length = fn.length;
  6524. return boundFn
  6525. }
  6526. function nativeBind (fn, ctx) {
  6527. return fn.bind(ctx)
  6528. }
  6529. var bind = Function.prototype.bind
  6530. ? nativeBind
  6531. : polyfillBind;
  6532. /**
  6533. * Convert an Array-like object to a real Array.
  6534. */
  6535. function toArray (list, start) {
  6536. start = start || 0;
  6537. var i = list.length - start;
  6538. var ret = new Array(i);
  6539. while (i--) {
  6540. ret[i] = list[i + start];
  6541. }
  6542. return ret
  6543. }
  6544. /**
  6545. * Mix properties into target object.
  6546. */
  6547. function extend (to, _from) {
  6548. for (var key in _from) {
  6549. to[key] = _from[key];
  6550. }
  6551. return to
  6552. }
  6553. /**
  6554. * Merge an Array of Objects into a single Object.
  6555. */
  6556. function toObject (arr) {
  6557. var res = {};
  6558. for (var i = 0; i < arr.length; i++) {
  6559. if (arr[i]) {
  6560. extend(res, arr[i]);
  6561. }
  6562. }
  6563. return res
  6564. }
  6565. /* eslint-disable no-unused-vars */
  6566. /**
  6567. * Perform no operation.
  6568. * Stubbing args to make Flow happy without leaving useless transpiled code
  6569. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  6570. */
  6571. function noop (a, b, c) {}
  6572. /**
  6573. * Always return false.
  6574. */
  6575. var no = function (a, b, c) { return false; };
  6576. /* eslint-enable no-unused-vars */
  6577. /**
  6578. * Return the same value.
  6579. */
  6580. var identity = function (_) { return _; };
  6581. /**
  6582. * Check if two values are loosely equal - that is,
  6583. * if they are plain objects, do they have the same shape?
  6584. */
  6585. function looseEqual (a, b) {
  6586. if (a === b) { return true }
  6587. var isObjectA = isObject(a);
  6588. var isObjectB = isObject(b);
  6589. if (isObjectA && isObjectB) {
  6590. try {
  6591. var isArrayA = Array.isArray(a);
  6592. var isArrayB = Array.isArray(b);
  6593. if (isArrayA && isArrayB) {
  6594. return a.length === b.length && a.every(function (e, i) {
  6595. return looseEqual(e, b[i])
  6596. })
  6597. } else if (a instanceof Date && b instanceof Date) {
  6598. return a.getTime() === b.getTime()
  6599. } else if (!isArrayA && !isArrayB) {
  6600. var keysA = Object.keys(a);
  6601. var keysB = Object.keys(b);
  6602. return keysA.length === keysB.length && keysA.every(function (key) {
  6603. return looseEqual(a[key], b[key])
  6604. })
  6605. } else {
  6606. /* istanbul ignore next */
  6607. return false
  6608. }
  6609. } catch (e) {
  6610. /* istanbul ignore next */
  6611. return false
  6612. }
  6613. } else if (!isObjectA && !isObjectB) {
  6614. return String(a) === String(b)
  6615. } else {
  6616. return false
  6617. }
  6618. }
  6619. /**
  6620. * Return the first index at which a loosely equal value can be
  6621. * found in the array (if value is a plain object, the array must
  6622. * contain an object of the same shape), or -1 if it is not present.
  6623. */
  6624. function looseIndexOf (arr, val) {
  6625. for (var i = 0; i < arr.length; i++) {
  6626. if (looseEqual(arr[i], val)) { return i }
  6627. }
  6628. return -1
  6629. }
  6630. /**
  6631. * Ensure a function is called only once.
  6632. */
  6633. function once (fn) {
  6634. var called = false;
  6635. return function () {
  6636. if (!called) {
  6637. called = true;
  6638. fn.apply(this, arguments);
  6639. }
  6640. }
  6641. }
  6642. var ASSET_TYPES = [
  6643. 'component',
  6644. 'directive',
  6645. 'filter'
  6646. ];
  6647. var LIFECYCLE_HOOKS = [
  6648. 'beforeCreate',
  6649. 'created',
  6650. 'beforeMount',
  6651. 'mounted',
  6652. 'beforeUpdate',
  6653. 'updated',
  6654. 'beforeDestroy',
  6655. 'destroyed',
  6656. 'activated',
  6657. 'deactivated',
  6658. 'errorCaptured',
  6659. 'serverPrefetch'
  6660. ];
  6661. /* */
  6662. var config = ({
  6663. /**
  6664. * Option merge strategies (used in core/util/options)
  6665. */
  6666. // $flow-disable-line
  6667. optionMergeStrategies: Object.create(null),
  6668. /**
  6669. * Whether to suppress warnings.
  6670. */
  6671. silent: false,
  6672. /**
  6673. * Show production mode tip message on boot?
  6674. */
  6675. productionTip: "development" !== 'production',
  6676. /**
  6677. * Whether to enable devtools
  6678. */
  6679. devtools: "development" !== 'production',
  6680. /**
  6681. * Whether to record perf
  6682. */
  6683. performance: false,
  6684. /**
  6685. * Error handler for watcher errors
  6686. */
  6687. errorHandler: null,
  6688. /**
  6689. * Warn handler for watcher warns
  6690. */
  6691. warnHandler: null,
  6692. /**
  6693. * Ignore certain custom elements
  6694. */
  6695. ignoredElements: [],
  6696. /**
  6697. * Custom user key aliases for v-on
  6698. */
  6699. // $flow-disable-line
  6700. keyCodes: Object.create(null),
  6701. /**
  6702. * Check if a tag is reserved so that it cannot be registered as a
  6703. * component. This is platform-dependent and may be overwritten.
  6704. */
  6705. isReservedTag: no,
  6706. /**
  6707. * Check if an attribute is reserved so that it cannot be used as a component
  6708. * prop. This is platform-dependent and may be overwritten.
  6709. */
  6710. isReservedAttr: no,
  6711. /**
  6712. * Check if a tag is an unknown element.
  6713. * Platform-dependent.
  6714. */
  6715. isUnknownElement: no,
  6716. /**
  6717. * Get the namespace of an element
  6718. */
  6719. getTagNamespace: noop,
  6720. /**
  6721. * Parse the real tag name for the specific platform.
  6722. */
  6723. parsePlatformTagName: identity,
  6724. /**
  6725. * Check if an attribute must be bound using property, e.g. value
  6726. * Platform-dependent.
  6727. */
  6728. mustUseProp: no,
  6729. /**
  6730. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  6731. * This will significantly reduce performance if set to false.
  6732. */
  6733. async: true,
  6734. /**
  6735. * Exposed for legacy reasons
  6736. */
  6737. _lifecycleHooks: LIFECYCLE_HOOKS
  6738. });
  6739. /* */
  6740. /**
  6741. * unicode letters used for parsing html tags, component names and property paths.
  6742. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  6743. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  6744. */
  6745. 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/;
  6746. /**
  6747. * Check if a string starts with $ or _
  6748. */
  6749. function isReserved (str) {
  6750. var c = (str + '').charCodeAt(0);
  6751. return c === 0x24 || c === 0x5F
  6752. }
  6753. /**
  6754. * Define a property.
  6755. */
  6756. function def (obj, key, val, enumerable) {
  6757. Object.defineProperty(obj, key, {
  6758. value: val,
  6759. enumerable: !!enumerable,
  6760. writable: true,
  6761. configurable: true
  6762. });
  6763. }
  6764. /**
  6765. * Parse simple path.
  6766. */
  6767. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  6768. function parsePath (path) {
  6769. if (bailRE.test(path)) {
  6770. return
  6771. }
  6772. var segments = path.split('.');
  6773. return function (obj) {
  6774. for (var i = 0; i < segments.length; i++) {
  6775. if (!obj) { return }
  6776. obj = obj[segments[i]];
  6777. }
  6778. return obj
  6779. }
  6780. }
  6781. /* */
  6782. // can we use __proto__?
  6783. var hasProto = '__proto__' in {};
  6784. // Browser environment sniffing
  6785. var inBrowser = typeof window !== 'undefined';
  6786. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  6787. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  6788. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  6789. var isIE = UA && /msie|trident/.test(UA);
  6790. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  6791. var isEdge = UA && UA.indexOf('edge/') > 0;
  6792. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  6793. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  6794. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  6795. var isPhantomJS = UA && /phantomjs/.test(UA);
  6796. var isFF = UA && UA.match(/firefox\/(\d+)/);
  6797. // Firefox has a "watch" function on Object.prototype...
  6798. var nativeWatch = ({}).watch;
  6799. if (inBrowser) {
  6800. try {
  6801. var opts = {};
  6802. Object.defineProperty(opts, 'passive', ({
  6803. get: function get () {
  6804. }
  6805. })); // https://github.com/facebook/flow/issues/285
  6806. window.addEventListener('test-passive', null, opts);
  6807. } catch (e) {}
  6808. }
  6809. // this needs to be lazy-evaled because vue may be required before
  6810. // vue-server-renderer can set VUE_ENV
  6811. var _isServer;
  6812. var isServerRendering = function () {
  6813. if (_isServer === undefined) {
  6814. /* istanbul ignore if */
  6815. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  6816. // detect presence of vue-server-renderer and avoid
  6817. // Webpack shimming the process
  6818. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  6819. } else {
  6820. _isServer = false;
  6821. }
  6822. }
  6823. return _isServer
  6824. };
  6825. // detect devtools
  6826. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  6827. /* istanbul ignore next */
  6828. function isNative (Ctor) {
  6829. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  6830. }
  6831. var hasSymbol =
  6832. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  6833. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  6834. var _Set;
  6835. /* istanbul ignore if */ // $flow-disable-line
  6836. if (typeof Set !== 'undefined' && isNative(Set)) {
  6837. // use native Set when available.
  6838. _Set = Set;
  6839. } else {
  6840. // a non-standard Set polyfill that only works with primitive keys.
  6841. _Set = /*@__PURE__*/(function () {
  6842. function Set () {
  6843. this.set = Object.create(null);
  6844. }
  6845. Set.prototype.has = function has (key) {
  6846. return this.set[key] === true
  6847. };
  6848. Set.prototype.add = function add (key) {
  6849. this.set[key] = true;
  6850. };
  6851. Set.prototype.clear = function clear () {
  6852. this.set = Object.create(null);
  6853. };
  6854. return Set;
  6855. }());
  6856. }
  6857. /* */
  6858. var warn = noop;
  6859. var tip = noop;
  6860. var generateComponentTrace = (noop); // work around flow check
  6861. var formatComponentName = (noop);
  6862. if (true) {
  6863. var hasConsole = typeof console !== 'undefined';
  6864. var classifyRE = /(?:^|[-_])(\w)/g;
  6865. var classify = function (str) { return str
  6866. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  6867. .replace(/[-_]/g, ''); };
  6868. warn = function (msg, vm) {
  6869. var trace = vm ? generateComponentTrace(vm) : '';
  6870. if (config.warnHandler) {
  6871. config.warnHandler.call(null, msg, vm, trace);
  6872. } else if (hasConsole && (!config.silent)) {
  6873. console.error(("[Vue warn]: " + msg + trace));
  6874. }
  6875. };
  6876. tip = function (msg, vm) {
  6877. if (hasConsole && (!config.silent)) {
  6878. console.warn("[Vue tip]: " + msg + (
  6879. vm ? generateComponentTrace(vm) : ''
  6880. ));
  6881. }
  6882. };
  6883. formatComponentName = function (vm, includeFile) {
  6884. if (vm.$root === vm) {
  6885. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  6886. return ('') + vm.$options.__file
  6887. }
  6888. return '<Root>'
  6889. }
  6890. var options = typeof vm === 'function' && vm.cid != null
  6891. ? vm.options
  6892. : vm._isVue
  6893. ? vm.$options || vm.constructor.options
  6894. : vm;
  6895. var name = options.name || options._componentTag;
  6896. var file = options.__file;
  6897. if (!name && file) {
  6898. var match = file.match(/([^/\\]+)\.vue$/);
  6899. name = match && match[1];
  6900. }
  6901. return (
  6902. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  6903. (file && includeFile !== false ? (" at " + file) : '')
  6904. )
  6905. };
  6906. var repeat = function (str, n) {
  6907. var res = '';
  6908. while (n) {
  6909. if (n % 2 === 1) { res += str; }
  6910. if (n > 1) { str += str; }
  6911. n >>= 1;
  6912. }
  6913. return res
  6914. };
  6915. generateComponentTrace = function (vm) {
  6916. if (vm._isVue && vm.$parent) {
  6917. var tree = [];
  6918. var currentRecursiveSequence = 0;
  6919. while (vm && vm.$options.name !== 'PageBody') {
  6920. if (tree.length > 0) {
  6921. var last = tree[tree.length - 1];
  6922. if (last.constructor === vm.constructor) {
  6923. currentRecursiveSequence++;
  6924. vm = vm.$parent;
  6925. continue
  6926. } else if (currentRecursiveSequence > 0) {
  6927. tree[tree.length - 1] = [last, currentRecursiveSequence];
  6928. currentRecursiveSequence = 0;
  6929. }
  6930. }
  6931. !vm.$options.isReserved && tree.push(vm);
  6932. vm = vm.$parent;
  6933. }
  6934. return '\n\nfound in\n\n' + tree
  6935. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  6936. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  6937. : formatComponentName(vm))); })
  6938. .join('\n')
  6939. } else {
  6940. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  6941. }
  6942. };
  6943. }
  6944. /* */
  6945. var uid = 0;
  6946. /**
  6947. * A dep is an observable that can have multiple
  6948. * directives subscribing to it.
  6949. */
  6950. var Dep = function Dep () {
  6951. this.id = uid++;
  6952. this.subs = [];
  6953. };
  6954. Dep.prototype.addSub = function addSub (sub) {
  6955. this.subs.push(sub);
  6956. };
  6957. Dep.prototype.removeSub = function removeSub (sub) {
  6958. remove(this.subs, sub);
  6959. };
  6960. Dep.prototype.depend = function depend () {
  6961. if (Dep.SharedObject.target) {
  6962. Dep.SharedObject.target.addDep(this);
  6963. }
  6964. };
  6965. Dep.prototype.notify = function notify () {
  6966. // stabilize the subscriber list first
  6967. var subs = this.subs.slice();
  6968. if ( true && !config.async) {
  6969. // subs aren't sorted in scheduler if not running async
  6970. // we need to sort them now to make sure they fire in correct
  6971. // order
  6972. subs.sort(function (a, b) { return a.id - b.id; });
  6973. }
  6974. for (var i = 0, l = subs.length; i < l; i++) {
  6975. subs[i].update();
  6976. }
  6977. };
  6978. // The current target watcher being evaluated.
  6979. // This is globally unique because only one watcher
  6980. // can be evaluated at a time.
  6981. // fixed by xxxxxx (nvue shared vuex)
  6982. /* eslint-disable no-undef */
  6983. Dep.SharedObject = {};
  6984. Dep.SharedObject.target = null;
  6985. Dep.SharedObject.targetStack = [];
  6986. function pushTarget (target) {
  6987. Dep.SharedObject.targetStack.push(target);
  6988. Dep.SharedObject.target = target;
  6989. Dep.target = target;
  6990. }
  6991. function popTarget () {
  6992. Dep.SharedObject.targetStack.pop();
  6993. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  6994. Dep.target = Dep.SharedObject.target;
  6995. }
  6996. /* */
  6997. var VNode = function VNode (
  6998. tag,
  6999. data,
  7000. children,
  7001. text,
  7002. elm,
  7003. context,
  7004. componentOptions,
  7005. asyncFactory
  7006. ) {
  7007. this.tag = tag;
  7008. this.data = data;
  7009. this.children = children;
  7010. this.text = text;
  7011. this.elm = elm;
  7012. this.ns = undefined;
  7013. this.context = context;
  7014. this.fnContext = undefined;
  7015. this.fnOptions = undefined;
  7016. this.fnScopeId = undefined;
  7017. this.key = data && data.key;
  7018. this.componentOptions = componentOptions;
  7019. this.componentInstance = undefined;
  7020. this.parent = undefined;
  7021. this.raw = false;
  7022. this.isStatic = false;
  7023. this.isRootInsert = true;
  7024. this.isComment = false;
  7025. this.isCloned = false;
  7026. this.isOnce = false;
  7027. this.asyncFactory = asyncFactory;
  7028. this.asyncMeta = undefined;
  7029. this.isAsyncPlaceholder = false;
  7030. };
  7031. var prototypeAccessors = { child: { configurable: true } };
  7032. // DEPRECATED: alias for componentInstance for backwards compat.
  7033. /* istanbul ignore next */
  7034. prototypeAccessors.child.get = function () {
  7035. return this.componentInstance
  7036. };
  7037. Object.defineProperties( VNode.prototype, prototypeAccessors );
  7038. var createEmptyVNode = function (text) {
  7039. if ( text === void 0 ) text = '';
  7040. var node = new VNode();
  7041. node.text = text;
  7042. node.isComment = true;
  7043. return node
  7044. };
  7045. function createTextVNode (val) {
  7046. return new VNode(undefined, undefined, undefined, String(val))
  7047. }
  7048. // optimized shallow clone
  7049. // used for static nodes and slot nodes because they may be reused across
  7050. // multiple renders, cloning them avoids errors when DOM manipulations rely
  7051. // on their elm reference.
  7052. function cloneVNode (vnode) {
  7053. var cloned = new VNode(
  7054. vnode.tag,
  7055. vnode.data,
  7056. // #7975
  7057. // clone children array to avoid mutating original in case of cloning
  7058. // a child.
  7059. vnode.children && vnode.children.slice(),
  7060. vnode.text,
  7061. vnode.elm,
  7062. vnode.context,
  7063. vnode.componentOptions,
  7064. vnode.asyncFactory
  7065. );
  7066. cloned.ns = vnode.ns;
  7067. cloned.isStatic = vnode.isStatic;
  7068. cloned.key = vnode.key;
  7069. cloned.isComment = vnode.isComment;
  7070. cloned.fnContext = vnode.fnContext;
  7071. cloned.fnOptions = vnode.fnOptions;
  7072. cloned.fnScopeId = vnode.fnScopeId;
  7073. cloned.asyncMeta = vnode.asyncMeta;
  7074. cloned.isCloned = true;
  7075. return cloned
  7076. }
  7077. /*
  7078. * not type checking this file because flow doesn't play well with
  7079. * dynamically accessing methods on Array prototype
  7080. */
  7081. var arrayProto = Array.prototype;
  7082. var arrayMethods = Object.create(arrayProto);
  7083. var methodsToPatch = [
  7084. 'push',
  7085. 'pop',
  7086. 'shift',
  7087. 'unshift',
  7088. 'splice',
  7089. 'sort',
  7090. 'reverse'
  7091. ];
  7092. /**
  7093. * Intercept mutating methods and emit events
  7094. */
  7095. methodsToPatch.forEach(function (method) {
  7096. // cache original method
  7097. var original = arrayProto[method];
  7098. def(arrayMethods, method, function mutator () {
  7099. var args = [], len = arguments.length;
  7100. while ( len-- ) args[ len ] = arguments[ len ];
  7101. var result = original.apply(this, args);
  7102. var ob = this.__ob__;
  7103. var inserted;
  7104. switch (method) {
  7105. case 'push':
  7106. case 'unshift':
  7107. inserted = args;
  7108. break
  7109. case 'splice':
  7110. inserted = args.slice(2);
  7111. break
  7112. }
  7113. if (inserted) { ob.observeArray(inserted); }
  7114. // notify change
  7115. ob.dep.notify();
  7116. return result
  7117. });
  7118. });
  7119. /* */
  7120. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  7121. /**
  7122. * In some cases we may want to disable observation inside a component's
  7123. * update computation.
  7124. */
  7125. var shouldObserve = true;
  7126. function toggleObserving (value) {
  7127. shouldObserve = value;
  7128. }
  7129. /**
  7130. * Observer class that is attached to each observed
  7131. * object. Once attached, the observer converts the target
  7132. * object's property keys into getter/setters that
  7133. * collect dependencies and dispatch updates.
  7134. */
  7135. var Observer = function Observer (value) {
  7136. this.value = value;
  7137. this.dep = new Dep();
  7138. this.vmCount = 0;
  7139. def(value, '__ob__', this);
  7140. if (Array.isArray(value)) {
  7141. if (hasProto) {
  7142. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  7143. if(value.push !== value.__proto__.push){
  7144. copyAugment(value, arrayMethods, arrayKeys);
  7145. } else {
  7146. protoAugment(value, arrayMethods);
  7147. }
  7148. }
  7149. } else {
  7150. copyAugment(value, arrayMethods, arrayKeys);
  7151. }
  7152. this.observeArray(value);
  7153. } else {
  7154. this.walk(value);
  7155. }
  7156. };
  7157. /**
  7158. * Walk through all properties and convert them into
  7159. * getter/setters. This method should only be called when
  7160. * value type is Object.
  7161. */
  7162. Observer.prototype.walk = function walk (obj) {
  7163. var keys = Object.keys(obj);
  7164. for (var i = 0; i < keys.length; i++) {
  7165. defineReactive$$1(obj, keys[i]);
  7166. }
  7167. };
  7168. /**
  7169. * Observe a list of Array items.
  7170. */
  7171. Observer.prototype.observeArray = function observeArray (items) {
  7172. for (var i = 0, l = items.length; i < l; i++) {
  7173. observe(items[i]);
  7174. }
  7175. };
  7176. // helpers
  7177. /**
  7178. * Augment a target Object or Array by intercepting
  7179. * the prototype chain using __proto__
  7180. */
  7181. function protoAugment (target, src) {
  7182. /* eslint-disable no-proto */
  7183. target.__proto__ = src;
  7184. /* eslint-enable no-proto */
  7185. }
  7186. /**
  7187. * Augment a target Object or Array by defining
  7188. * hidden properties.
  7189. */
  7190. /* istanbul ignore next */
  7191. function copyAugment (target, src, keys) {
  7192. for (var i = 0, l = keys.length; i < l; i++) {
  7193. var key = keys[i];
  7194. def(target, key, src[key]);
  7195. }
  7196. }
  7197. /**
  7198. * Attempt to create an observer instance for a value,
  7199. * returns the new observer if successfully observed,
  7200. * or the existing observer if the value already has one.
  7201. */
  7202. function observe (value, asRootData) {
  7203. if (!isObject(value) || value instanceof VNode) {
  7204. return
  7205. }
  7206. var ob;
  7207. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  7208. ob = value.__ob__;
  7209. } else if (
  7210. shouldObserve &&
  7211. !isServerRendering() &&
  7212. (Array.isArray(value) || isPlainObject(value)) &&
  7213. Object.isExtensible(value) &&
  7214. !value._isVue
  7215. ) {
  7216. ob = new Observer(value);
  7217. }
  7218. if (asRootData && ob) {
  7219. ob.vmCount++;
  7220. }
  7221. return ob
  7222. }
  7223. /**
  7224. * Define a reactive property on an Object.
  7225. */
  7226. function defineReactive$$1 (
  7227. obj,
  7228. key,
  7229. val,
  7230. customSetter,
  7231. shallow
  7232. ) {
  7233. var dep = new Dep();
  7234. var property = Object.getOwnPropertyDescriptor(obj, key);
  7235. if (property && property.configurable === false) {
  7236. return
  7237. }
  7238. // cater for pre-defined getter/setters
  7239. var getter = property && property.get;
  7240. var setter = property && property.set;
  7241. if ((!getter || setter) && arguments.length === 2) {
  7242. val = obj[key];
  7243. }
  7244. var childOb = !shallow && observe(val);
  7245. Object.defineProperty(obj, key, {
  7246. enumerable: true,
  7247. configurable: true,
  7248. get: function reactiveGetter () {
  7249. var value = getter ? getter.call(obj) : val;
  7250. if (Dep.SharedObject.target) { // fixed by xxxxxx
  7251. dep.depend();
  7252. if (childOb) {
  7253. childOb.dep.depend();
  7254. if (Array.isArray(value)) {
  7255. dependArray(value);
  7256. }
  7257. }
  7258. }
  7259. return value
  7260. },
  7261. set: function reactiveSetter (newVal) {
  7262. var value = getter ? getter.call(obj) : val;
  7263. /* eslint-disable no-self-compare */
  7264. if (newVal === value || (newVal !== newVal && value !== value)) {
  7265. return
  7266. }
  7267. /* eslint-enable no-self-compare */
  7268. if ( true && customSetter) {
  7269. customSetter();
  7270. }
  7271. // #7981: for accessor properties without setter
  7272. if (getter && !setter) { return }
  7273. if (setter) {
  7274. setter.call(obj, newVal);
  7275. } else {
  7276. val = newVal;
  7277. }
  7278. childOb = !shallow && observe(newVal);
  7279. dep.notify();
  7280. }
  7281. });
  7282. }
  7283. /**
  7284. * Set a property on an object. Adds the new property and
  7285. * triggers change notification if the property doesn't
  7286. * already exist.
  7287. */
  7288. function set (target, key, val) {
  7289. if ( true &&
  7290. (isUndef(target) || isPrimitive(target))
  7291. ) {
  7292. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  7293. }
  7294. if (Array.isArray(target) && isValidArrayIndex(key)) {
  7295. target.length = Math.max(target.length, key);
  7296. target.splice(key, 1, val);
  7297. return val
  7298. }
  7299. if (key in target && !(key in Object.prototype)) {
  7300. target[key] = val;
  7301. return val
  7302. }
  7303. var ob = (target).__ob__;
  7304. if (target._isVue || (ob && ob.vmCount)) {
  7305. true && warn(
  7306. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  7307. 'at runtime - declare it upfront in the data option.'
  7308. );
  7309. return val
  7310. }
  7311. if (!ob) {
  7312. target[key] = val;
  7313. return val
  7314. }
  7315. defineReactive$$1(ob.value, key, val);
  7316. ob.dep.notify();
  7317. return val
  7318. }
  7319. /**
  7320. * Delete a property and trigger change if necessary.
  7321. */
  7322. function del (target, key) {
  7323. if ( true &&
  7324. (isUndef(target) || isPrimitive(target))
  7325. ) {
  7326. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  7327. }
  7328. if (Array.isArray(target) && isValidArrayIndex(key)) {
  7329. target.splice(key, 1);
  7330. return
  7331. }
  7332. var ob = (target).__ob__;
  7333. if (target._isVue || (ob && ob.vmCount)) {
  7334. true && warn(
  7335. 'Avoid deleting properties on a Vue instance or its root $data ' +
  7336. '- just set it to null.'
  7337. );
  7338. return
  7339. }
  7340. if (!hasOwn(target, key)) {
  7341. return
  7342. }
  7343. delete target[key];
  7344. if (!ob) {
  7345. return
  7346. }
  7347. ob.dep.notify();
  7348. }
  7349. /**
  7350. * Collect dependencies on array elements when the array is touched, since
  7351. * we cannot intercept array element access like property getters.
  7352. */
  7353. function dependArray (value) {
  7354. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  7355. e = value[i];
  7356. e && e.__ob__ && e.__ob__.dep.depend();
  7357. if (Array.isArray(e)) {
  7358. dependArray(e);
  7359. }
  7360. }
  7361. }
  7362. /* */
  7363. /**
  7364. * Option overwriting strategies are functions that handle
  7365. * how to merge a parent option value and a child option
  7366. * value into the final value.
  7367. */
  7368. var strats = config.optionMergeStrategies;
  7369. /**
  7370. * Options with restrictions
  7371. */
  7372. if (true) {
  7373. strats.el = strats.propsData = function (parent, child, vm, key) {
  7374. if (!vm) {
  7375. warn(
  7376. "option \"" + key + "\" can only be used during instance " +
  7377. 'creation with the `new` keyword.'
  7378. );
  7379. }
  7380. return defaultStrat(parent, child)
  7381. };
  7382. }
  7383. /**
  7384. * Helper that recursively merges two data objects together.
  7385. */
  7386. function mergeData (to, from) {
  7387. if (!from) { return to }
  7388. var key, toVal, fromVal;
  7389. var keys = hasSymbol
  7390. ? Reflect.ownKeys(from)
  7391. : Object.keys(from);
  7392. for (var i = 0; i < keys.length; i++) {
  7393. key = keys[i];
  7394. // in case the object is already observed...
  7395. if (key === '__ob__') { continue }
  7396. toVal = to[key];
  7397. fromVal = from[key];
  7398. if (!hasOwn(to, key)) {
  7399. set(to, key, fromVal);
  7400. } else if (
  7401. toVal !== fromVal &&
  7402. isPlainObject(toVal) &&
  7403. isPlainObject(fromVal)
  7404. ) {
  7405. mergeData(toVal, fromVal);
  7406. }
  7407. }
  7408. return to
  7409. }
  7410. /**
  7411. * Data
  7412. */
  7413. function mergeDataOrFn (
  7414. parentVal,
  7415. childVal,
  7416. vm
  7417. ) {
  7418. if (!vm) {
  7419. // in a Vue.extend merge, both should be functions
  7420. if (!childVal) {
  7421. return parentVal
  7422. }
  7423. if (!parentVal) {
  7424. return childVal
  7425. }
  7426. // when parentVal & childVal are both present,
  7427. // we need to return a function that returns the
  7428. // merged result of both functions... no need to
  7429. // check if parentVal is a function here because
  7430. // it has to be a function to pass previous merges.
  7431. return function mergedDataFn () {
  7432. return mergeData(
  7433. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  7434. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  7435. )
  7436. }
  7437. } else {
  7438. return function mergedInstanceDataFn () {
  7439. // instance merge
  7440. var instanceData = typeof childVal === 'function'
  7441. ? childVal.call(vm, vm)
  7442. : childVal;
  7443. var defaultData = typeof parentVal === 'function'
  7444. ? parentVal.call(vm, vm)
  7445. : parentVal;
  7446. if (instanceData) {
  7447. return mergeData(instanceData, defaultData)
  7448. } else {
  7449. return defaultData
  7450. }
  7451. }
  7452. }
  7453. }
  7454. strats.data = function (
  7455. parentVal,
  7456. childVal,
  7457. vm
  7458. ) {
  7459. if (!vm) {
  7460. if (childVal && typeof childVal !== 'function') {
  7461. true && warn(
  7462. 'The "data" option should be a function ' +
  7463. 'that returns a per-instance value in component ' +
  7464. 'definitions.',
  7465. vm
  7466. );
  7467. return parentVal
  7468. }
  7469. return mergeDataOrFn(parentVal, childVal)
  7470. }
  7471. return mergeDataOrFn(parentVal, childVal, vm)
  7472. };
  7473. /**
  7474. * Hooks and props are merged as arrays.
  7475. */
  7476. function mergeHook (
  7477. parentVal,
  7478. childVal
  7479. ) {
  7480. var res = childVal
  7481. ? parentVal
  7482. ? parentVal.concat(childVal)
  7483. : Array.isArray(childVal)
  7484. ? childVal
  7485. : [childVal]
  7486. : parentVal;
  7487. return res
  7488. ? dedupeHooks(res)
  7489. : res
  7490. }
  7491. function dedupeHooks (hooks) {
  7492. var res = [];
  7493. for (var i = 0; i < hooks.length; i++) {
  7494. if (res.indexOf(hooks[i]) === -1) {
  7495. res.push(hooks[i]);
  7496. }
  7497. }
  7498. return res
  7499. }
  7500. LIFECYCLE_HOOKS.forEach(function (hook) {
  7501. strats[hook] = mergeHook;
  7502. });
  7503. /**
  7504. * Assets
  7505. *
  7506. * When a vm is present (instance creation), we need to do
  7507. * a three-way merge between constructor options, instance
  7508. * options and parent options.
  7509. */
  7510. function mergeAssets (
  7511. parentVal,
  7512. childVal,
  7513. vm,
  7514. key
  7515. ) {
  7516. var res = Object.create(parentVal || null);
  7517. if (childVal) {
  7518. true && assertObjectType(key, childVal, vm);
  7519. return extend(res, childVal)
  7520. } else {
  7521. return res
  7522. }
  7523. }
  7524. ASSET_TYPES.forEach(function (type) {
  7525. strats[type + 's'] = mergeAssets;
  7526. });
  7527. /**
  7528. * Watchers.
  7529. *
  7530. * Watchers hashes should not overwrite one
  7531. * another, so we merge them as arrays.
  7532. */
  7533. strats.watch = function (
  7534. parentVal,
  7535. childVal,
  7536. vm,
  7537. key
  7538. ) {
  7539. // work around Firefox's Object.prototype.watch...
  7540. if (parentVal === nativeWatch) { parentVal = undefined; }
  7541. if (childVal === nativeWatch) { childVal = undefined; }
  7542. /* istanbul ignore if */
  7543. if (!childVal) { return Object.create(parentVal || null) }
  7544. if (true) {
  7545. assertObjectType(key, childVal, vm);
  7546. }
  7547. if (!parentVal) { return childVal }
  7548. var ret = {};
  7549. extend(ret, parentVal);
  7550. for (var key$1 in childVal) {
  7551. var parent = ret[key$1];
  7552. var child = childVal[key$1];
  7553. if (parent && !Array.isArray(parent)) {
  7554. parent = [parent];
  7555. }
  7556. ret[key$1] = parent
  7557. ? parent.concat(child)
  7558. : Array.isArray(child) ? child : [child];
  7559. }
  7560. return ret
  7561. };
  7562. /**
  7563. * Other object hashes.
  7564. */
  7565. strats.props =
  7566. strats.methods =
  7567. strats.inject =
  7568. strats.computed = function (
  7569. parentVal,
  7570. childVal,
  7571. vm,
  7572. key
  7573. ) {
  7574. if (childVal && "development" !== 'production') {
  7575. assertObjectType(key, childVal, vm);
  7576. }
  7577. if (!parentVal) { return childVal }
  7578. var ret = Object.create(null);
  7579. extend(ret, parentVal);
  7580. if (childVal) { extend(ret, childVal); }
  7581. return ret
  7582. };
  7583. strats.provide = mergeDataOrFn;
  7584. /**
  7585. * Default strategy.
  7586. */
  7587. var defaultStrat = function (parentVal, childVal) {
  7588. return childVal === undefined
  7589. ? parentVal
  7590. : childVal
  7591. };
  7592. /**
  7593. * Validate component names
  7594. */
  7595. function checkComponents (options) {
  7596. for (var key in options.components) {
  7597. validateComponentName(key);
  7598. }
  7599. }
  7600. function validateComponentName (name) {
  7601. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  7602. warn(
  7603. 'Invalid component name: "' + name + '". Component names ' +
  7604. 'should conform to valid custom element name in html5 specification.'
  7605. );
  7606. }
  7607. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  7608. warn(
  7609. 'Do not use built-in or reserved HTML elements as component ' +
  7610. 'id: ' + name
  7611. );
  7612. }
  7613. }
  7614. /**
  7615. * Ensure all props option syntax are normalized into the
  7616. * Object-based format.
  7617. */
  7618. function normalizeProps (options, vm) {
  7619. var props = options.props;
  7620. if (!props) { return }
  7621. var res = {};
  7622. var i, val, name;
  7623. if (Array.isArray(props)) {
  7624. i = props.length;
  7625. while (i--) {
  7626. val = props[i];
  7627. if (typeof val === 'string') {
  7628. name = camelize(val);
  7629. res[name] = { type: null };
  7630. } else if (true) {
  7631. warn('props must be strings when using array syntax.');
  7632. }
  7633. }
  7634. } else if (isPlainObject(props)) {
  7635. for (var key in props) {
  7636. val = props[key];
  7637. name = camelize(key);
  7638. res[name] = isPlainObject(val)
  7639. ? val
  7640. : { type: val };
  7641. }
  7642. } else if (true) {
  7643. warn(
  7644. "Invalid value for option \"props\": expected an Array or an Object, " +
  7645. "but got " + (toRawType(props)) + ".",
  7646. vm
  7647. );
  7648. }
  7649. options.props = res;
  7650. }
  7651. /**
  7652. * Normalize all injections into Object-based format
  7653. */
  7654. function normalizeInject (options, vm) {
  7655. var inject = options.inject;
  7656. if (!inject) { return }
  7657. var normalized = options.inject = {};
  7658. if (Array.isArray(inject)) {
  7659. for (var i = 0; i < inject.length; i++) {
  7660. normalized[inject[i]] = { from: inject[i] };
  7661. }
  7662. } else if (isPlainObject(inject)) {
  7663. for (var key in inject) {
  7664. var val = inject[key];
  7665. normalized[key] = isPlainObject(val)
  7666. ? extend({ from: key }, val)
  7667. : { from: val };
  7668. }
  7669. } else if (true) {
  7670. warn(
  7671. "Invalid value for option \"inject\": expected an Array or an Object, " +
  7672. "but got " + (toRawType(inject)) + ".",
  7673. vm
  7674. );
  7675. }
  7676. }
  7677. /**
  7678. * Normalize raw function directives into object format.
  7679. */
  7680. function normalizeDirectives (options) {
  7681. var dirs = options.directives;
  7682. if (dirs) {
  7683. for (var key in dirs) {
  7684. var def$$1 = dirs[key];
  7685. if (typeof def$$1 === 'function') {
  7686. dirs[key] = { bind: def$$1, update: def$$1 };
  7687. }
  7688. }
  7689. }
  7690. }
  7691. function assertObjectType (name, value, vm) {
  7692. if (!isPlainObject(value)) {
  7693. warn(
  7694. "Invalid value for option \"" + name + "\": expected an Object, " +
  7695. "but got " + (toRawType(value)) + ".",
  7696. vm
  7697. );
  7698. }
  7699. }
  7700. /**
  7701. * Merge two option objects into a new one.
  7702. * Core utility used in both instantiation and inheritance.
  7703. */
  7704. function mergeOptions (
  7705. parent,
  7706. child,
  7707. vm
  7708. ) {
  7709. if (true) {
  7710. checkComponents(child);
  7711. }
  7712. if (typeof child === 'function') {
  7713. child = child.options;
  7714. }
  7715. normalizeProps(child, vm);
  7716. normalizeInject(child, vm);
  7717. normalizeDirectives(child);
  7718. // Apply extends and mixins on the child options,
  7719. // but only if it is a raw options object that isn't
  7720. // the result of another mergeOptions call.
  7721. // Only merged options has the _base property.
  7722. if (!child._base) {
  7723. if (child.extends) {
  7724. parent = mergeOptions(parent, child.extends, vm);
  7725. }
  7726. if (child.mixins) {
  7727. for (var i = 0, l = child.mixins.length; i < l; i++) {
  7728. parent = mergeOptions(parent, child.mixins[i], vm);
  7729. }
  7730. }
  7731. }
  7732. var options = {};
  7733. var key;
  7734. for (key in parent) {
  7735. mergeField(key);
  7736. }
  7737. for (key in child) {
  7738. if (!hasOwn(parent, key)) {
  7739. mergeField(key);
  7740. }
  7741. }
  7742. function mergeField (key) {
  7743. var strat = strats[key] || defaultStrat;
  7744. options[key] = strat(parent[key], child[key], vm, key);
  7745. }
  7746. return options
  7747. }
  7748. /**
  7749. * Resolve an asset.
  7750. * This function is used because child instances need access
  7751. * to assets defined in its ancestor chain.
  7752. */
  7753. function resolveAsset (
  7754. options,
  7755. type,
  7756. id,
  7757. warnMissing
  7758. ) {
  7759. /* istanbul ignore if */
  7760. if (typeof id !== 'string') {
  7761. return
  7762. }
  7763. var assets = options[type];
  7764. // check local registration variations first
  7765. if (hasOwn(assets, id)) { return assets[id] }
  7766. var camelizedId = camelize(id);
  7767. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  7768. var PascalCaseId = capitalize(camelizedId);
  7769. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  7770. // fallback to prototype chain
  7771. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  7772. if ( true && warnMissing && !res) {
  7773. warn(
  7774. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  7775. options
  7776. );
  7777. }
  7778. return res
  7779. }
  7780. /* */
  7781. function validateProp (
  7782. key,
  7783. propOptions,
  7784. propsData,
  7785. vm
  7786. ) {
  7787. var prop = propOptions[key];
  7788. var absent = !hasOwn(propsData, key);
  7789. var value = propsData[key];
  7790. // boolean casting
  7791. var booleanIndex = getTypeIndex(Boolean, prop.type);
  7792. if (booleanIndex > -1) {
  7793. if (absent && !hasOwn(prop, 'default')) {
  7794. value = false;
  7795. } else if (value === '' || value === hyphenate(key)) {
  7796. // only cast empty string / same name to boolean if
  7797. // boolean has higher priority
  7798. var stringIndex = getTypeIndex(String, prop.type);
  7799. if (stringIndex < 0 || booleanIndex < stringIndex) {
  7800. value = true;
  7801. }
  7802. }
  7803. }
  7804. // check default value
  7805. if (value === undefined) {
  7806. value = getPropDefaultValue(vm, prop, key);
  7807. // since the default value is a fresh copy,
  7808. // make sure to observe it.
  7809. var prevShouldObserve = shouldObserve;
  7810. toggleObserving(true);
  7811. observe(value);
  7812. toggleObserving(prevShouldObserve);
  7813. }
  7814. if (
  7815. true
  7816. ) {
  7817. assertProp(prop, key, value, vm, absent);
  7818. }
  7819. return value
  7820. }
  7821. /**
  7822. * Get the default value of a prop.
  7823. */
  7824. function getPropDefaultValue (vm, prop, key) {
  7825. // no default, return undefined
  7826. if (!hasOwn(prop, 'default')) {
  7827. return undefined
  7828. }
  7829. var def = prop.default;
  7830. // warn against non-factory defaults for Object & Array
  7831. if ( true && isObject(def)) {
  7832. warn(
  7833. 'Invalid default value for prop "' + key + '": ' +
  7834. 'Props with type Object/Array must use a factory function ' +
  7835. 'to return the default value.',
  7836. vm
  7837. );
  7838. }
  7839. // the raw prop value was also undefined from previous render,
  7840. // return previous default value to avoid unnecessary watcher trigger
  7841. if (vm && vm.$options.propsData &&
  7842. vm.$options.propsData[key] === undefined &&
  7843. vm._props[key] !== undefined
  7844. ) {
  7845. return vm._props[key]
  7846. }
  7847. // call factory function for non-Function types
  7848. // a value is Function if its prototype is function even across different execution context
  7849. return typeof def === 'function' && getType(prop.type) !== 'Function'
  7850. ? def.call(vm)
  7851. : def
  7852. }
  7853. /**
  7854. * Assert whether a prop is valid.
  7855. */
  7856. function assertProp (
  7857. prop,
  7858. name,
  7859. value,
  7860. vm,
  7861. absent
  7862. ) {
  7863. if (prop.required && absent) {
  7864. warn(
  7865. 'Missing required prop: "' + name + '"',
  7866. vm
  7867. );
  7868. return
  7869. }
  7870. if (value == null && !prop.required) {
  7871. return
  7872. }
  7873. var type = prop.type;
  7874. var valid = !type || type === true;
  7875. var expectedTypes = [];
  7876. if (type) {
  7877. if (!Array.isArray(type)) {
  7878. type = [type];
  7879. }
  7880. for (var i = 0; i < type.length && !valid; i++) {
  7881. var assertedType = assertType(value, type[i]);
  7882. expectedTypes.push(assertedType.expectedType || '');
  7883. valid = assertedType.valid;
  7884. }
  7885. }
  7886. if (!valid) {
  7887. warn(
  7888. getInvalidTypeMessage(name, value, expectedTypes),
  7889. vm
  7890. );
  7891. return
  7892. }
  7893. var validator = prop.validator;
  7894. if (validator) {
  7895. if (!validator(value)) {
  7896. warn(
  7897. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  7898. vm
  7899. );
  7900. }
  7901. }
  7902. }
  7903. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  7904. function assertType (value, type) {
  7905. var valid;
  7906. var expectedType = getType(type);
  7907. if (simpleCheckRE.test(expectedType)) {
  7908. var t = typeof value;
  7909. valid = t === expectedType.toLowerCase();
  7910. // for primitive wrapper objects
  7911. if (!valid && t === 'object') {
  7912. valid = value instanceof type;
  7913. }
  7914. } else if (expectedType === 'Object') {
  7915. valid = isPlainObject(value);
  7916. } else if (expectedType === 'Array') {
  7917. valid = Array.isArray(value);
  7918. } else {
  7919. valid = value instanceof type;
  7920. }
  7921. return {
  7922. valid: valid,
  7923. expectedType: expectedType
  7924. }
  7925. }
  7926. /**
  7927. * Use function string name to check built-in types,
  7928. * because a simple equality check will fail when running
  7929. * across different vms / iframes.
  7930. */
  7931. function getType (fn) {
  7932. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  7933. return match ? match[1] : ''
  7934. }
  7935. function isSameType (a, b) {
  7936. return getType(a) === getType(b)
  7937. }
  7938. function getTypeIndex (type, expectedTypes) {
  7939. if (!Array.isArray(expectedTypes)) {
  7940. return isSameType(expectedTypes, type) ? 0 : -1
  7941. }
  7942. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  7943. if (isSameType(expectedTypes[i], type)) {
  7944. return i
  7945. }
  7946. }
  7947. return -1
  7948. }
  7949. function getInvalidTypeMessage (name, value, expectedTypes) {
  7950. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  7951. " Expected " + (expectedTypes.map(capitalize).join(', '));
  7952. var expectedType = expectedTypes[0];
  7953. var receivedType = toRawType(value);
  7954. var expectedValue = styleValue(value, expectedType);
  7955. var receivedValue = styleValue(value, receivedType);
  7956. // check if we need to specify expected value
  7957. if (expectedTypes.length === 1 &&
  7958. isExplicable(expectedType) &&
  7959. !isBoolean(expectedType, receivedType)) {
  7960. message += " with value " + expectedValue;
  7961. }
  7962. message += ", got " + receivedType + " ";
  7963. // check if we need to specify received value
  7964. if (isExplicable(receivedType)) {
  7965. message += "with value " + receivedValue + ".";
  7966. }
  7967. return message
  7968. }
  7969. function styleValue (value, type) {
  7970. if (type === 'String') {
  7971. return ("\"" + value + "\"")
  7972. } else if (type === 'Number') {
  7973. return ("" + (Number(value)))
  7974. } else {
  7975. return ("" + value)
  7976. }
  7977. }
  7978. function isExplicable (value) {
  7979. var explicitTypes = ['string', 'number', 'boolean'];
  7980. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  7981. }
  7982. function isBoolean () {
  7983. var args = [], len = arguments.length;
  7984. while ( len-- ) args[ len ] = arguments[ len ];
  7985. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  7986. }
  7987. /* */
  7988. function handleError (err, vm, info) {
  7989. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  7990. // See: https://github.com/vuejs/vuex/issues/1505
  7991. pushTarget();
  7992. try {
  7993. if (vm) {
  7994. var cur = vm;
  7995. while ((cur = cur.$parent)) {
  7996. var hooks = cur.$options.errorCaptured;
  7997. if (hooks) {
  7998. for (var i = 0; i < hooks.length; i++) {
  7999. try {
  8000. var capture = hooks[i].call(cur, err, vm, info) === false;
  8001. if (capture) { return }
  8002. } catch (e) {
  8003. globalHandleError(e, cur, 'errorCaptured hook');
  8004. }
  8005. }
  8006. }
  8007. }
  8008. }
  8009. globalHandleError(err, vm, info);
  8010. } finally {
  8011. popTarget();
  8012. }
  8013. }
  8014. function invokeWithErrorHandling (
  8015. handler,
  8016. context,
  8017. args,
  8018. vm,
  8019. info
  8020. ) {
  8021. var res;
  8022. try {
  8023. res = args ? handler.apply(context, args) : handler.call(context);
  8024. if (res && !res._isVue && isPromise(res) && !res._handled) {
  8025. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  8026. // issue #9511
  8027. // avoid catch triggering multiple times when nested calls
  8028. res._handled = true;
  8029. }
  8030. } catch (e) {
  8031. handleError(e, vm, info);
  8032. }
  8033. return res
  8034. }
  8035. function globalHandleError (err, vm, info) {
  8036. if (config.errorHandler) {
  8037. try {
  8038. return config.errorHandler.call(null, err, vm, info)
  8039. } catch (e) {
  8040. // if the user intentionally throws the original error in the handler,
  8041. // do not log it twice
  8042. if (e !== err) {
  8043. logError(e, null, 'config.errorHandler');
  8044. }
  8045. }
  8046. }
  8047. logError(err, vm, info);
  8048. }
  8049. function logError (err, vm, info) {
  8050. if (true) {
  8051. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8052. }
  8053. /* istanbul ignore else */
  8054. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  8055. console.error(err);
  8056. } else {
  8057. throw err
  8058. }
  8059. }
  8060. /* */
  8061. var callbacks = [];
  8062. var pending = false;
  8063. function flushCallbacks () {
  8064. pending = false;
  8065. var copies = callbacks.slice(0);
  8066. callbacks.length = 0;
  8067. for (var i = 0; i < copies.length; i++) {
  8068. copies[i]();
  8069. }
  8070. }
  8071. // Here we have async deferring wrappers using microtasks.
  8072. // In 2.5 we used (macro) tasks (in combination with microtasks).
  8073. // However, it has subtle problems when state is changed right before repaint
  8074. // (e.g. #6813, out-in transitions).
  8075. // Also, using (macro) tasks in event handler would cause some weird behaviors
  8076. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  8077. // So we now use microtasks everywhere, again.
  8078. // A major drawback of this tradeoff is that there are some scenarios
  8079. // where microtasks have too high a priority and fire in between supposedly
  8080. // sequential events (e.g. #4521, #6690, which have workarounds)
  8081. // or even between bubbling of the same event (#6566).
  8082. var timerFunc;
  8083. // The nextTick behavior leverages the microtask queue, which can be accessed
  8084. // via either native Promise.then or MutationObserver.
  8085. // MutationObserver has wider support, however it is seriously bugged in
  8086. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  8087. // completely stops working after triggering a few times... so, if native
  8088. // Promise is available, we will use it:
  8089. /* istanbul ignore next, $flow-disable-line */
  8090. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  8091. var p = Promise.resolve();
  8092. timerFunc = function () {
  8093. p.then(flushCallbacks);
  8094. // In problematic UIWebViews, Promise.then doesn't completely break, but
  8095. // it can get stuck in a weird state where callbacks are pushed into the
  8096. // microtask queue but the queue isn't being flushed, until the browser
  8097. // needs to do some other work, e.g. handle a timer. Therefore we can
  8098. // "force" the microtask queue to be flushed by adding an empty timer.
  8099. if (isIOS) { setTimeout(noop); }
  8100. };
  8101. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  8102. isNative(MutationObserver) ||
  8103. // PhantomJS and iOS 7.x
  8104. MutationObserver.toString() === '[object MutationObserverConstructor]'
  8105. )) {
  8106. // Use MutationObserver where native Promise is not available,
  8107. // e.g. PhantomJS, iOS7, Android 4.4
  8108. // (#6466 MutationObserver is unreliable in IE11)
  8109. var counter = 1;
  8110. var observer = new MutationObserver(flushCallbacks);
  8111. var textNode = document.createTextNode(String(counter));
  8112. observer.observe(textNode, {
  8113. characterData: true
  8114. });
  8115. timerFunc = function () {
  8116. counter = (counter + 1) % 2;
  8117. textNode.data = String(counter);
  8118. };
  8119. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  8120. // Fallback to setImmediate.
  8121. // Technically it leverages the (macro) task queue,
  8122. // but it is still a better choice than setTimeout.
  8123. timerFunc = function () {
  8124. setImmediate(flushCallbacks);
  8125. };
  8126. } else {
  8127. // Fallback to setTimeout.
  8128. timerFunc = function () {
  8129. setTimeout(flushCallbacks, 0);
  8130. };
  8131. }
  8132. function nextTick (cb, ctx) {
  8133. var _resolve;
  8134. callbacks.push(function () {
  8135. if (cb) {
  8136. try {
  8137. cb.call(ctx);
  8138. } catch (e) {
  8139. handleError(e, ctx, 'nextTick');
  8140. }
  8141. } else if (_resolve) {
  8142. _resolve(ctx);
  8143. }
  8144. });
  8145. if (!pending) {
  8146. pending = true;
  8147. timerFunc();
  8148. }
  8149. // $flow-disable-line
  8150. if (!cb && typeof Promise !== 'undefined') {
  8151. return new Promise(function (resolve) {
  8152. _resolve = resolve;
  8153. })
  8154. }
  8155. }
  8156. /* */
  8157. /* not type checking this file because flow doesn't play well with Proxy */
  8158. var initProxy;
  8159. if (true) {
  8160. var allowedGlobals = makeMap(
  8161. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  8162. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  8163. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  8164. 'require' // for Webpack/Browserify
  8165. );
  8166. var warnNonPresent = function (target, key) {
  8167. warn(
  8168. "Property or method \"" + key + "\" is not defined on the instance but " +
  8169. 'referenced during render. Make sure that this property is reactive, ' +
  8170. 'either in the data option, or for class-based components, by ' +
  8171. 'initializing the property. ' +
  8172. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  8173. target
  8174. );
  8175. };
  8176. var warnReservedPrefix = function (target, key) {
  8177. warn(
  8178. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  8179. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  8180. 'prevent conflicts with Vue internals. ' +
  8181. 'See: https://vuejs.org/v2/api/#data',
  8182. target
  8183. );
  8184. };
  8185. var hasProxy =
  8186. typeof Proxy !== 'undefined' && isNative(Proxy);
  8187. if (hasProxy) {
  8188. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  8189. config.keyCodes = new Proxy(config.keyCodes, {
  8190. set: function set (target, key, value) {
  8191. if (isBuiltInModifier(key)) {
  8192. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  8193. return false
  8194. } else {
  8195. target[key] = value;
  8196. return true
  8197. }
  8198. }
  8199. });
  8200. }
  8201. var hasHandler = {
  8202. has: function has (target, key) {
  8203. var has = key in target;
  8204. var isAllowed = allowedGlobals(key) ||
  8205. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  8206. if (!has && !isAllowed) {
  8207. if (key in target.$data) { warnReservedPrefix(target, key); }
  8208. else { warnNonPresent(target, key); }
  8209. }
  8210. return has || !isAllowed
  8211. }
  8212. };
  8213. var getHandler = {
  8214. get: function get (target, key) {
  8215. if (typeof key === 'string' && !(key in target)) {
  8216. if (key in target.$data) { warnReservedPrefix(target, key); }
  8217. else { warnNonPresent(target, key); }
  8218. }
  8219. return target[key]
  8220. }
  8221. };
  8222. initProxy = function initProxy (vm) {
  8223. if (hasProxy) {
  8224. // determine which proxy handler to use
  8225. var options = vm.$options;
  8226. var handlers = options.render && options.render._withStripped
  8227. ? getHandler
  8228. : hasHandler;
  8229. vm._renderProxy = new Proxy(vm, handlers);
  8230. } else {
  8231. vm._renderProxy = vm;
  8232. }
  8233. };
  8234. }
  8235. /* */
  8236. var seenObjects = new _Set();
  8237. /**
  8238. * Recursively traverse an object to evoke all converted
  8239. * getters, so that every nested property inside the object
  8240. * is collected as a "deep" dependency.
  8241. */
  8242. function traverse (val) {
  8243. _traverse(val, seenObjects);
  8244. seenObjects.clear();
  8245. }
  8246. function _traverse (val, seen) {
  8247. var i, keys;
  8248. var isA = Array.isArray(val);
  8249. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  8250. return
  8251. }
  8252. if (val.__ob__) {
  8253. var depId = val.__ob__.dep.id;
  8254. if (seen.has(depId)) {
  8255. return
  8256. }
  8257. seen.add(depId);
  8258. }
  8259. if (isA) {
  8260. i = val.length;
  8261. while (i--) { _traverse(val[i], seen); }
  8262. } else {
  8263. keys = Object.keys(val);
  8264. i = keys.length;
  8265. while (i--) { _traverse(val[keys[i]], seen); }
  8266. }
  8267. }
  8268. var mark;
  8269. var measure;
  8270. if (true) {
  8271. var perf = inBrowser && window.performance;
  8272. /* istanbul ignore if */
  8273. if (
  8274. perf &&
  8275. perf.mark &&
  8276. perf.measure &&
  8277. perf.clearMarks &&
  8278. perf.clearMeasures
  8279. ) {
  8280. mark = function (tag) { return perf.mark(tag); };
  8281. measure = function (name, startTag, endTag) {
  8282. perf.measure(name, startTag, endTag);
  8283. perf.clearMarks(startTag);
  8284. perf.clearMarks(endTag);
  8285. // perf.clearMeasures(name)
  8286. };
  8287. }
  8288. }
  8289. /* */
  8290. var normalizeEvent = cached(function (name) {
  8291. var passive = name.charAt(0) === '&';
  8292. name = passive ? name.slice(1) : name;
  8293. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  8294. name = once$$1 ? name.slice(1) : name;
  8295. var capture = name.charAt(0) === '!';
  8296. name = capture ? name.slice(1) : name;
  8297. return {
  8298. name: name,
  8299. once: once$$1,
  8300. capture: capture,
  8301. passive: passive
  8302. }
  8303. });
  8304. function createFnInvoker (fns, vm) {
  8305. function invoker () {
  8306. var arguments$1 = arguments;
  8307. var fns = invoker.fns;
  8308. if (Array.isArray(fns)) {
  8309. var cloned = fns.slice();
  8310. for (var i = 0; i < cloned.length; i++) {
  8311. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  8312. }
  8313. } else {
  8314. // return handler return value for single handlers
  8315. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  8316. }
  8317. }
  8318. invoker.fns = fns;
  8319. return invoker
  8320. }
  8321. function updateListeners (
  8322. on,
  8323. oldOn,
  8324. add,
  8325. remove$$1,
  8326. createOnceHandler,
  8327. vm
  8328. ) {
  8329. var name, def$$1, cur, old, event;
  8330. for (name in on) {
  8331. def$$1 = cur = on[name];
  8332. old = oldOn[name];
  8333. event = normalizeEvent(name);
  8334. if (isUndef(cur)) {
  8335. true && warn(
  8336. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  8337. vm
  8338. );
  8339. } else if (isUndef(old)) {
  8340. if (isUndef(cur.fns)) {
  8341. cur = on[name] = createFnInvoker(cur, vm);
  8342. }
  8343. if (isTrue(event.once)) {
  8344. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  8345. }
  8346. add(event.name, cur, event.capture, event.passive, event.params);
  8347. } else if (cur !== old) {
  8348. old.fns = cur;
  8349. on[name] = old;
  8350. }
  8351. }
  8352. for (name in oldOn) {
  8353. if (isUndef(on[name])) {
  8354. event = normalizeEvent(name);
  8355. remove$$1(event.name, oldOn[name], event.capture);
  8356. }
  8357. }
  8358. }
  8359. /* */
  8360. /* */
  8361. // fixed by xxxxxx (mp properties)
  8362. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  8363. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  8364. if (isUndef(propOptions)) {
  8365. return res
  8366. }
  8367. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  8368. var attrs = data.attrs;
  8369. var props = data.props;
  8370. if (isDef(attrs) || isDef(props)) {
  8371. for (var key in propOptions) {
  8372. var altKey = hyphenate(key);
  8373. var result = checkProp(res, props, key, altKey, true) ||
  8374. checkProp(res, attrs, key, altKey, false);
  8375. // externalClass
  8376. if (
  8377. result &&
  8378. res[key] &&
  8379. externalClasses.indexOf(altKey) !== -1 &&
  8380. context[camelize(res[key])]
  8381. ) {
  8382. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  8383. res[key] = context[camelize(res[key])];
  8384. }
  8385. }
  8386. }
  8387. return res
  8388. }
  8389. function extractPropsFromVNodeData (
  8390. data,
  8391. Ctor,
  8392. tag,
  8393. context// fixed by xxxxxx
  8394. ) {
  8395. // we are only extracting raw values here.
  8396. // validation and default values are handled in the child
  8397. // component itself.
  8398. var propOptions = Ctor.options.props;
  8399. if (isUndef(propOptions)) {
  8400. // fixed by xxxxxx
  8401. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  8402. }
  8403. var res = {};
  8404. var attrs = data.attrs;
  8405. var props = data.props;
  8406. if (isDef(attrs) || isDef(props)) {
  8407. for (var key in propOptions) {
  8408. var altKey = hyphenate(key);
  8409. if (true) {
  8410. var keyInLowerCase = key.toLowerCase();
  8411. if (
  8412. key !== keyInLowerCase &&
  8413. attrs && hasOwn(attrs, keyInLowerCase)
  8414. ) {
  8415. tip(
  8416. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  8417. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  8418. " \"" + key + "\". " +
  8419. "Note that HTML attributes are case-insensitive and camelCased " +
  8420. "props need to use their kebab-case equivalents when using in-DOM " +
  8421. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  8422. );
  8423. }
  8424. }
  8425. checkProp(res, props, key, altKey, true) ||
  8426. checkProp(res, attrs, key, altKey, false);
  8427. }
  8428. }
  8429. // fixed by xxxxxx
  8430. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  8431. }
  8432. function checkProp (
  8433. res,
  8434. hash,
  8435. key,
  8436. altKey,
  8437. preserve
  8438. ) {
  8439. if (isDef(hash)) {
  8440. if (hasOwn(hash, key)) {
  8441. res[key] = hash[key];
  8442. if (!preserve) {
  8443. delete hash[key];
  8444. }
  8445. return true
  8446. } else if (hasOwn(hash, altKey)) {
  8447. res[key] = hash[altKey];
  8448. if (!preserve) {
  8449. delete hash[altKey];
  8450. }
  8451. return true
  8452. }
  8453. }
  8454. return false
  8455. }
  8456. /* */
  8457. // The template compiler attempts to minimize the need for normalization by
  8458. // statically analyzing the template at compile time.
  8459. //
  8460. // For plain HTML markup, normalization can be completely skipped because the
  8461. // generated render function is guaranteed to return Array<VNode>. There are
  8462. // two cases where extra normalization is needed:
  8463. // 1. When the children contains components - because a functional component
  8464. // may return an Array instead of a single root. In this case, just a simple
  8465. // normalization is needed - if any child is an Array, we flatten the whole
  8466. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  8467. // because functional components already normalize their own children.
  8468. function simpleNormalizeChildren (children) {
  8469. for (var i = 0; i < children.length; i++) {
  8470. if (Array.isArray(children[i])) {
  8471. return Array.prototype.concat.apply([], children)
  8472. }
  8473. }
  8474. return children
  8475. }
  8476. // 2. When the children contains constructs that always generated nested Arrays,
  8477. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  8478. // with hand-written render functions / JSX. In such cases a full normalization
  8479. // is needed to cater to all possible types of children values.
  8480. function normalizeChildren (children) {
  8481. return isPrimitive(children)
  8482. ? [createTextVNode(children)]
  8483. : Array.isArray(children)
  8484. ? normalizeArrayChildren(children)
  8485. : undefined
  8486. }
  8487. function isTextNode (node) {
  8488. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  8489. }
  8490. function normalizeArrayChildren (children, nestedIndex) {
  8491. var res = [];
  8492. var i, c, lastIndex, last;
  8493. for (i = 0; i < children.length; i++) {
  8494. c = children[i];
  8495. if (isUndef(c) || typeof c === 'boolean') { continue }
  8496. lastIndex = res.length - 1;
  8497. last = res[lastIndex];
  8498. // nested
  8499. if (Array.isArray(c)) {
  8500. if (c.length > 0) {
  8501. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  8502. // merge adjacent text nodes
  8503. if (isTextNode(c[0]) && isTextNode(last)) {
  8504. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  8505. c.shift();
  8506. }
  8507. res.push.apply(res, c);
  8508. }
  8509. } else if (isPrimitive(c)) {
  8510. if (isTextNode(last)) {
  8511. // merge adjacent text nodes
  8512. // this is necessary for SSR hydration because text nodes are
  8513. // essentially merged when rendered to HTML strings
  8514. res[lastIndex] = createTextVNode(last.text + c);
  8515. } else if (c !== '') {
  8516. // convert primitive to vnode
  8517. res.push(createTextVNode(c));
  8518. }
  8519. } else {
  8520. if (isTextNode(c) && isTextNode(last)) {
  8521. // merge adjacent text nodes
  8522. res[lastIndex] = createTextVNode(last.text + c.text);
  8523. } else {
  8524. // default key for nested array children (likely generated by v-for)
  8525. if (isTrue(children._isVList) &&
  8526. isDef(c.tag) &&
  8527. isUndef(c.key) &&
  8528. isDef(nestedIndex)) {
  8529. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  8530. }
  8531. res.push(c);
  8532. }
  8533. }
  8534. }
  8535. return res
  8536. }
  8537. /* */
  8538. function initProvide (vm) {
  8539. var provide = vm.$options.provide;
  8540. if (provide) {
  8541. vm._provided = typeof provide === 'function'
  8542. ? provide.call(vm)
  8543. : provide;
  8544. }
  8545. }
  8546. function initInjections (vm) {
  8547. var result = resolveInject(vm.$options.inject, vm);
  8548. if (result) {
  8549. toggleObserving(false);
  8550. Object.keys(result).forEach(function (key) {
  8551. /* istanbul ignore else */
  8552. if (true) {
  8553. defineReactive$$1(vm, key, result[key], function () {
  8554. warn(
  8555. "Avoid mutating an injected value directly since the changes will be " +
  8556. "overwritten whenever the provided component re-renders. " +
  8557. "injection being mutated: \"" + key + "\"",
  8558. vm
  8559. );
  8560. });
  8561. } else {}
  8562. });
  8563. toggleObserving(true);
  8564. }
  8565. }
  8566. function resolveInject (inject, vm) {
  8567. if (inject) {
  8568. // inject is :any because flow is not smart enough to figure out cached
  8569. var result = Object.create(null);
  8570. var keys = hasSymbol
  8571. ? Reflect.ownKeys(inject)
  8572. : Object.keys(inject);
  8573. for (var i = 0; i < keys.length; i++) {
  8574. var key = keys[i];
  8575. // #6574 in case the inject object is observed...
  8576. if (key === '__ob__') { continue }
  8577. var provideKey = inject[key].from;
  8578. var source = vm;
  8579. while (source) {
  8580. if (source._provided && hasOwn(source._provided, provideKey)) {
  8581. result[key] = source._provided[provideKey];
  8582. break
  8583. }
  8584. source = source.$parent;
  8585. }
  8586. if (!source) {
  8587. if ('default' in inject[key]) {
  8588. var provideDefault = inject[key].default;
  8589. result[key] = typeof provideDefault === 'function'
  8590. ? provideDefault.call(vm)
  8591. : provideDefault;
  8592. } else if (true) {
  8593. warn(("Injection \"" + key + "\" not found"), vm);
  8594. }
  8595. }
  8596. }
  8597. return result
  8598. }
  8599. }
  8600. /* */
  8601. /**
  8602. * Runtime helper for resolving raw children VNodes into a slot object.
  8603. */
  8604. function resolveSlots (
  8605. children,
  8606. context
  8607. ) {
  8608. if (!children || !children.length) {
  8609. return {}
  8610. }
  8611. var slots = {};
  8612. for (var i = 0, l = children.length; i < l; i++) {
  8613. var child = children[i];
  8614. var data = child.data;
  8615. // remove slot attribute if the node is resolved as a Vue slot node
  8616. if (data && data.attrs && data.attrs.slot) {
  8617. delete data.attrs.slot;
  8618. }
  8619. // named slots should only be respected if the vnode was rendered in the
  8620. // same context.
  8621. if ((child.context === context || child.fnContext === context) &&
  8622. data && data.slot != null
  8623. ) {
  8624. var name = data.slot;
  8625. var slot = (slots[name] || (slots[name] = []));
  8626. if (child.tag === 'template') {
  8627. slot.push.apply(slot, child.children || []);
  8628. } else {
  8629. slot.push(child);
  8630. }
  8631. } else {
  8632. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  8633. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  8634. (slots['page'] || (slots['page'] = [])).push(child);
  8635. }else{
  8636. (slots.default || (slots.default = [])).push(child);
  8637. }
  8638. }
  8639. }
  8640. // ignore slots that contains only whitespace
  8641. for (var name$1 in slots) {
  8642. if (slots[name$1].every(isWhitespace)) {
  8643. delete slots[name$1];
  8644. }
  8645. }
  8646. return slots
  8647. }
  8648. function isWhitespace (node) {
  8649. return (node.isComment && !node.asyncFactory) || node.text === ' '
  8650. }
  8651. /* */
  8652. function normalizeScopedSlots (
  8653. slots,
  8654. normalSlots,
  8655. prevSlots
  8656. ) {
  8657. var res;
  8658. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  8659. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  8660. var key = slots && slots.$key;
  8661. if (!slots) {
  8662. res = {};
  8663. } else if (slots._normalized) {
  8664. // fast path 1: child component re-render only, parent did not change
  8665. return slots._normalized
  8666. } else if (
  8667. isStable &&
  8668. prevSlots &&
  8669. prevSlots !== emptyObject &&
  8670. key === prevSlots.$key &&
  8671. !hasNormalSlots &&
  8672. !prevSlots.$hasNormal
  8673. ) {
  8674. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  8675. // only need to normalize once
  8676. return prevSlots
  8677. } else {
  8678. res = {};
  8679. for (var key$1 in slots) {
  8680. if (slots[key$1] && key$1[0] !== '$') {
  8681. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  8682. }
  8683. }
  8684. }
  8685. // expose normal slots on scopedSlots
  8686. for (var key$2 in normalSlots) {
  8687. if (!(key$2 in res)) {
  8688. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  8689. }
  8690. }
  8691. // avoriaz seems to mock a non-extensible $scopedSlots object
  8692. // and when that is passed down this would cause an error
  8693. if (slots && Object.isExtensible(slots)) {
  8694. (slots)._normalized = res;
  8695. }
  8696. def(res, '$stable', isStable);
  8697. def(res, '$key', key);
  8698. def(res, '$hasNormal', hasNormalSlots);
  8699. return res
  8700. }
  8701. function normalizeScopedSlot(normalSlots, key, fn) {
  8702. var normalized = function () {
  8703. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  8704. res = res && typeof res === 'object' && !Array.isArray(res)
  8705. ? [res] // single vnode
  8706. : normalizeChildren(res);
  8707. return res && (
  8708. res.length === 0 ||
  8709. (res.length === 1 && res[0].isComment) // #9658
  8710. ) ? undefined
  8711. : res
  8712. };
  8713. // this is a slot using the new v-slot syntax without scope. although it is
  8714. // compiled as a scoped slot, render fn users would expect it to be present
  8715. // on this.$slots because the usage is semantically a normal slot.
  8716. if (fn.proxy) {
  8717. Object.defineProperty(normalSlots, key, {
  8718. get: normalized,
  8719. enumerable: true,
  8720. configurable: true
  8721. });
  8722. }
  8723. return normalized
  8724. }
  8725. function proxyNormalSlot(slots, key) {
  8726. return function () { return slots[key]; }
  8727. }
  8728. /* */
  8729. /**
  8730. * Runtime helper for rendering v-for lists.
  8731. */
  8732. function renderList (
  8733. val,
  8734. render
  8735. ) {
  8736. var ret, i, l, keys, key;
  8737. if (Array.isArray(val) || typeof val === 'string') {
  8738. ret = new Array(val.length);
  8739. for (i = 0, l = val.length; i < l; i++) {
  8740. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  8741. }
  8742. } else if (typeof val === 'number') {
  8743. ret = new Array(val);
  8744. for (i = 0; i < val; i++) {
  8745. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  8746. }
  8747. } else if (isObject(val)) {
  8748. if (hasSymbol && val[Symbol.iterator]) {
  8749. ret = [];
  8750. var iterator = val[Symbol.iterator]();
  8751. var result = iterator.next();
  8752. while (!result.done) {
  8753. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  8754. result = iterator.next();
  8755. }
  8756. } else {
  8757. keys = Object.keys(val);
  8758. ret = new Array(keys.length);
  8759. for (i = 0, l = keys.length; i < l; i++) {
  8760. key = keys[i];
  8761. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  8762. }
  8763. }
  8764. }
  8765. if (!isDef(ret)) {
  8766. ret = [];
  8767. }
  8768. (ret)._isVList = true;
  8769. return ret
  8770. }
  8771. /* */
  8772. /**
  8773. * Runtime helper for rendering <slot>
  8774. */
  8775. function renderSlot (
  8776. name,
  8777. fallback,
  8778. props,
  8779. bindObject
  8780. ) {
  8781. var scopedSlotFn = this.$scopedSlots[name];
  8782. var nodes;
  8783. if (scopedSlotFn) { // scoped slot
  8784. props = props || {};
  8785. if (bindObject) {
  8786. if ( true && !isObject(bindObject)) {
  8787. warn(
  8788. 'slot v-bind without argument expects an Object',
  8789. this
  8790. );
  8791. }
  8792. props = extend(extend({}, bindObject), props);
  8793. }
  8794. // fixed by xxxxxx app-plus scopedSlot
  8795. nodes = scopedSlotFn(props, this, props._i) || fallback;
  8796. } else {
  8797. nodes = this.$slots[name] || fallback;
  8798. }
  8799. var target = props && props.slot;
  8800. if (target) {
  8801. return this.$createElement('template', { slot: target }, nodes)
  8802. } else {
  8803. return nodes
  8804. }
  8805. }
  8806. /* */
  8807. /**
  8808. * Runtime helper for resolving filters
  8809. */
  8810. function resolveFilter (id) {
  8811. return resolveAsset(this.$options, 'filters', id, true) || identity
  8812. }
  8813. /* */
  8814. function isKeyNotMatch (expect, actual) {
  8815. if (Array.isArray(expect)) {
  8816. return expect.indexOf(actual) === -1
  8817. } else {
  8818. return expect !== actual
  8819. }
  8820. }
  8821. /**
  8822. * Runtime helper for checking keyCodes from config.
  8823. * exposed as Vue.prototype._k
  8824. * passing in eventKeyName as last argument separately for backwards compat
  8825. */
  8826. function checkKeyCodes (
  8827. eventKeyCode,
  8828. key,
  8829. builtInKeyCode,
  8830. eventKeyName,
  8831. builtInKeyName
  8832. ) {
  8833. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  8834. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  8835. return isKeyNotMatch(builtInKeyName, eventKeyName)
  8836. } else if (mappedKeyCode) {
  8837. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  8838. } else if (eventKeyName) {
  8839. return hyphenate(eventKeyName) !== key
  8840. }
  8841. }
  8842. /* */
  8843. /**
  8844. * Runtime helper for merging v-bind="object" into a VNode's data.
  8845. */
  8846. function bindObjectProps (
  8847. data,
  8848. tag,
  8849. value,
  8850. asProp,
  8851. isSync
  8852. ) {
  8853. if (value) {
  8854. if (!isObject(value)) {
  8855. true && warn(
  8856. 'v-bind without argument expects an Object or Array value',
  8857. this
  8858. );
  8859. } else {
  8860. if (Array.isArray(value)) {
  8861. value = toObject(value);
  8862. }
  8863. var hash;
  8864. var loop = function ( key ) {
  8865. if (
  8866. key === 'class' ||
  8867. key === 'style' ||
  8868. isReservedAttribute(key)
  8869. ) {
  8870. hash = data;
  8871. } else {
  8872. var type = data.attrs && data.attrs.type;
  8873. hash = asProp || config.mustUseProp(tag, type, key)
  8874. ? data.domProps || (data.domProps = {})
  8875. : data.attrs || (data.attrs = {});
  8876. }
  8877. var camelizedKey = camelize(key);
  8878. var hyphenatedKey = hyphenate(key);
  8879. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  8880. hash[key] = value[key];
  8881. if (isSync) {
  8882. var on = data.on || (data.on = {});
  8883. on[("update:" + key)] = function ($event) {
  8884. value[key] = $event;
  8885. };
  8886. }
  8887. }
  8888. };
  8889. for (var key in value) loop( key );
  8890. }
  8891. }
  8892. return data
  8893. }
  8894. /* */
  8895. /**
  8896. * Runtime helper for rendering static trees.
  8897. */
  8898. function renderStatic (
  8899. index,
  8900. isInFor
  8901. ) {
  8902. var cached = this._staticTrees || (this._staticTrees = []);
  8903. var tree = cached[index];
  8904. // if has already-rendered static tree and not inside v-for,
  8905. // we can reuse the same tree.
  8906. if (tree && !isInFor) {
  8907. return tree
  8908. }
  8909. // otherwise, render a fresh tree.
  8910. tree = cached[index] = this.$options.staticRenderFns[index].call(
  8911. this._renderProxy,
  8912. null,
  8913. this // for render fns generated for functional component templates
  8914. );
  8915. markStatic(tree, ("__static__" + index), false);
  8916. return tree
  8917. }
  8918. /**
  8919. * Runtime helper for v-once.
  8920. * Effectively it means marking the node as static with a unique key.
  8921. */
  8922. function markOnce (
  8923. tree,
  8924. index,
  8925. key
  8926. ) {
  8927. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  8928. return tree
  8929. }
  8930. function markStatic (
  8931. tree,
  8932. key,
  8933. isOnce
  8934. ) {
  8935. if (Array.isArray(tree)) {
  8936. for (var i = 0; i < tree.length; i++) {
  8937. if (tree[i] && typeof tree[i] !== 'string') {
  8938. markStaticNode(tree[i], (key + "_" + i), isOnce);
  8939. }
  8940. }
  8941. } else {
  8942. markStaticNode(tree, key, isOnce);
  8943. }
  8944. }
  8945. function markStaticNode (node, key, isOnce) {
  8946. node.isStatic = true;
  8947. node.key = key;
  8948. node.isOnce = isOnce;
  8949. }
  8950. /* */
  8951. function bindObjectListeners (data, value) {
  8952. if (value) {
  8953. if (!isPlainObject(value)) {
  8954. true && warn(
  8955. 'v-on without argument expects an Object value',
  8956. this
  8957. );
  8958. } else {
  8959. var on = data.on = data.on ? extend({}, data.on) : {};
  8960. for (var key in value) {
  8961. var existing = on[key];
  8962. var ours = value[key];
  8963. on[key] = existing ? [].concat(existing, ours) : ours;
  8964. }
  8965. }
  8966. }
  8967. return data
  8968. }
  8969. /* */
  8970. function resolveScopedSlots (
  8971. fns, // see flow/vnode
  8972. res,
  8973. // the following are added in 2.6
  8974. hasDynamicKeys,
  8975. contentHashKey
  8976. ) {
  8977. res = res || { $stable: !hasDynamicKeys };
  8978. for (var i = 0; i < fns.length; i++) {
  8979. var slot = fns[i];
  8980. if (Array.isArray(slot)) {
  8981. resolveScopedSlots(slot, res, hasDynamicKeys);
  8982. } else if (slot) {
  8983. // marker for reverse proxying v-slot without scope on this.$slots
  8984. if (slot.proxy) {
  8985. slot.fn.proxy = true;
  8986. }
  8987. res[slot.key] = slot.fn;
  8988. }
  8989. }
  8990. if (contentHashKey) {
  8991. (res).$key = contentHashKey;
  8992. }
  8993. return res
  8994. }
  8995. /* */
  8996. function bindDynamicKeys (baseObj, values) {
  8997. for (var i = 0; i < values.length; i += 2) {
  8998. var key = values[i];
  8999. if (typeof key === 'string' && key) {
  9000. baseObj[values[i]] = values[i + 1];
  9001. } else if ( true && key !== '' && key !== null) {
  9002. // null is a special value for explicitly removing a binding
  9003. warn(
  9004. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  9005. this
  9006. );
  9007. }
  9008. }
  9009. return baseObj
  9010. }
  9011. // helper to dynamically append modifier runtime markers to event names.
  9012. // ensure only append when value is already string, otherwise it will be cast
  9013. // to string and cause the type check to miss.
  9014. function prependModifier (value, symbol) {
  9015. return typeof value === 'string' ? symbol + value : value
  9016. }
  9017. /* */
  9018. function installRenderHelpers (target) {
  9019. target._o = markOnce;
  9020. target._n = toNumber;
  9021. target._s = toString;
  9022. target._l = renderList;
  9023. target._t = renderSlot;
  9024. target._q = looseEqual;
  9025. target._i = looseIndexOf;
  9026. target._m = renderStatic;
  9027. target._f = resolveFilter;
  9028. target._k = checkKeyCodes;
  9029. target._b = bindObjectProps;
  9030. target._v = createTextVNode;
  9031. target._e = createEmptyVNode;
  9032. target._u = resolveScopedSlots;
  9033. target._g = bindObjectListeners;
  9034. target._d = bindDynamicKeys;
  9035. target._p = prependModifier;
  9036. }
  9037. /* */
  9038. function FunctionalRenderContext (
  9039. data,
  9040. props,
  9041. children,
  9042. parent,
  9043. Ctor
  9044. ) {
  9045. var this$1 = this;
  9046. var options = Ctor.options;
  9047. // ensure the createElement function in functional components
  9048. // gets a unique context - this is necessary for correct named slot check
  9049. var contextVm;
  9050. if (hasOwn(parent, '_uid')) {
  9051. contextVm = Object.create(parent);
  9052. // $flow-disable-line
  9053. contextVm._original = parent;
  9054. } else {
  9055. // the context vm passed in is a functional context as well.
  9056. // in this case we want to make sure we are able to get a hold to the
  9057. // real context instance.
  9058. contextVm = parent;
  9059. // $flow-disable-line
  9060. parent = parent._original;
  9061. }
  9062. var isCompiled = isTrue(options._compiled);
  9063. var needNormalization = !isCompiled;
  9064. this.data = data;
  9065. this.props = props;
  9066. this.children = children;
  9067. this.parent = parent;
  9068. this.listeners = data.on || emptyObject;
  9069. this.injections = resolveInject(options.inject, parent);
  9070. this.slots = function () {
  9071. if (!this$1.$slots) {
  9072. normalizeScopedSlots(
  9073. data.scopedSlots,
  9074. this$1.$slots = resolveSlots(children, parent)
  9075. );
  9076. }
  9077. return this$1.$slots
  9078. };
  9079. Object.defineProperty(this, 'scopedSlots', ({
  9080. enumerable: true,
  9081. get: function get () {
  9082. return normalizeScopedSlots(data.scopedSlots, this.slots())
  9083. }
  9084. }));
  9085. // support for compiled functional template
  9086. if (isCompiled) {
  9087. // exposing $options for renderStatic()
  9088. this.$options = options;
  9089. // pre-resolve slots for renderSlot()
  9090. this.$slots = this.slots();
  9091. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  9092. }
  9093. if (options._scopeId) {
  9094. this._c = function (a, b, c, d) {
  9095. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  9096. if (vnode && !Array.isArray(vnode)) {
  9097. vnode.fnScopeId = options._scopeId;
  9098. vnode.fnContext = parent;
  9099. }
  9100. return vnode
  9101. };
  9102. } else {
  9103. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  9104. }
  9105. }
  9106. installRenderHelpers(FunctionalRenderContext.prototype);
  9107. function createFunctionalComponent (
  9108. Ctor,
  9109. propsData,
  9110. data,
  9111. contextVm,
  9112. children
  9113. ) {
  9114. var options = Ctor.options;
  9115. var props = {};
  9116. var propOptions = options.props;
  9117. if (isDef(propOptions)) {
  9118. for (var key in propOptions) {
  9119. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  9120. }
  9121. } else {
  9122. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  9123. if (isDef(data.props)) { mergeProps(props, data.props); }
  9124. }
  9125. var renderContext = new FunctionalRenderContext(
  9126. data,
  9127. props,
  9128. children,
  9129. contextVm,
  9130. Ctor
  9131. );
  9132. var vnode = options.render.call(null, renderContext._c, renderContext);
  9133. if (vnode instanceof VNode) {
  9134. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  9135. } else if (Array.isArray(vnode)) {
  9136. var vnodes = normalizeChildren(vnode) || [];
  9137. var res = new Array(vnodes.length);
  9138. for (var i = 0; i < vnodes.length; i++) {
  9139. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  9140. }
  9141. return res
  9142. }
  9143. }
  9144. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  9145. // #7817 clone node before setting fnContext, otherwise if the node is reused
  9146. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  9147. // that should not be matched to match.
  9148. var clone = cloneVNode(vnode);
  9149. clone.fnContext = contextVm;
  9150. clone.fnOptions = options;
  9151. if (true) {
  9152. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  9153. }
  9154. if (data.slot) {
  9155. (clone.data || (clone.data = {})).slot = data.slot;
  9156. }
  9157. return clone
  9158. }
  9159. function mergeProps (to, from) {
  9160. for (var key in from) {
  9161. to[camelize(key)] = from[key];
  9162. }
  9163. }
  9164. /* */
  9165. /* */
  9166. /* */
  9167. /* */
  9168. // inline hooks to be invoked on component VNodes during patch
  9169. var componentVNodeHooks = {
  9170. init: function init (vnode, hydrating) {
  9171. if (
  9172. vnode.componentInstance &&
  9173. !vnode.componentInstance._isDestroyed &&
  9174. vnode.data.keepAlive
  9175. ) {
  9176. // kept-alive components, treat as a patch
  9177. var mountedNode = vnode; // work around flow
  9178. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  9179. } else {
  9180. var child = vnode.componentInstance = createComponentInstanceForVnode(
  9181. vnode,
  9182. activeInstance
  9183. );
  9184. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  9185. }
  9186. },
  9187. prepatch: function prepatch (oldVnode, vnode) {
  9188. var options = vnode.componentOptions;
  9189. var child = vnode.componentInstance = oldVnode.componentInstance;
  9190. updateChildComponent(
  9191. child,
  9192. options.propsData, // updated props
  9193. options.listeners, // updated listeners
  9194. vnode, // new parent vnode
  9195. options.children // new children
  9196. );
  9197. },
  9198. insert: function insert (vnode) {
  9199. var context = vnode.context;
  9200. var componentInstance = vnode.componentInstance;
  9201. if (!componentInstance._isMounted) {
  9202. callHook(componentInstance, 'onServiceCreated');
  9203. callHook(componentInstance, 'onServiceAttached');
  9204. componentInstance._isMounted = true;
  9205. callHook(componentInstance, 'mounted');
  9206. }
  9207. if (vnode.data.keepAlive) {
  9208. if (context._isMounted) {
  9209. // vue-router#1212
  9210. // During updates, a kept-alive component's child components may
  9211. // change, so directly walking the tree here may call activated hooks
  9212. // on incorrect children. Instead we push them into a queue which will
  9213. // be processed after the whole patch process ended.
  9214. queueActivatedComponent(componentInstance);
  9215. } else {
  9216. activateChildComponent(componentInstance, true /* direct */);
  9217. }
  9218. }
  9219. },
  9220. destroy: function destroy (vnode) {
  9221. var componentInstance = vnode.componentInstance;
  9222. if (!componentInstance._isDestroyed) {
  9223. if (!vnode.data.keepAlive) {
  9224. componentInstance.$destroy();
  9225. } else {
  9226. deactivateChildComponent(componentInstance, true /* direct */);
  9227. }
  9228. }
  9229. }
  9230. };
  9231. var hooksToMerge = Object.keys(componentVNodeHooks);
  9232. function createComponent (
  9233. Ctor,
  9234. data,
  9235. context,
  9236. children,
  9237. tag
  9238. ) {
  9239. if (isUndef(Ctor)) {
  9240. return
  9241. }
  9242. var baseCtor = context.$options._base;
  9243. // plain options object: turn it into a constructor
  9244. if (isObject(Ctor)) {
  9245. Ctor = baseCtor.extend(Ctor);
  9246. }
  9247. // if at this stage it's not a constructor or an async component factory,
  9248. // reject.
  9249. if (typeof Ctor !== 'function') {
  9250. if (true) {
  9251. warn(("Invalid Component definition: " + (String(Ctor))), context);
  9252. }
  9253. return
  9254. }
  9255. // async component
  9256. var asyncFactory;
  9257. if (isUndef(Ctor.cid)) {
  9258. asyncFactory = Ctor;
  9259. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  9260. if (Ctor === undefined) {
  9261. // return a placeholder node for async component, which is rendered
  9262. // as a comment node but preserves all the raw information for the node.
  9263. // the information will be used for async server-rendering and hydration.
  9264. return createAsyncPlaceholder(
  9265. asyncFactory,
  9266. data,
  9267. context,
  9268. children,
  9269. tag
  9270. )
  9271. }
  9272. }
  9273. data = data || {};
  9274. // resolve constructor options in case global mixins are applied after
  9275. // component constructor creation
  9276. resolveConstructorOptions(Ctor);
  9277. // transform component v-model data into props & events
  9278. if (isDef(data.model)) {
  9279. transformModel(Ctor.options, data);
  9280. }
  9281. // extract props
  9282. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  9283. // functional component
  9284. if (isTrue(Ctor.options.functional)) {
  9285. return createFunctionalComponent(Ctor, propsData, data, context, children)
  9286. }
  9287. // extract listeners, since these needs to be treated as
  9288. // child component listeners instead of DOM listeners
  9289. var listeners = data.on;
  9290. // replace with listeners with .native modifier
  9291. // so it gets processed during parent component patch.
  9292. data.on = data.nativeOn;
  9293. if (isTrue(Ctor.options.abstract)) {
  9294. // abstract components do not keep anything
  9295. // other than props & listeners & slot
  9296. // work around flow
  9297. var slot = data.slot;
  9298. data = {};
  9299. if (slot) {
  9300. data.slot = slot;
  9301. }
  9302. }
  9303. // install component management hooks onto the placeholder node
  9304. installComponentHooks(data);
  9305. // return a placeholder vnode
  9306. var name = Ctor.options.name || tag;
  9307. var vnode = new VNode(
  9308. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  9309. data, undefined, undefined, undefined, context,
  9310. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  9311. asyncFactory
  9312. );
  9313. return vnode
  9314. }
  9315. function createComponentInstanceForVnode (
  9316. vnode, // we know it's MountedComponentVNode but flow doesn't
  9317. parent // activeInstance in lifecycle state
  9318. ) {
  9319. var options = {
  9320. _isComponent: true,
  9321. _parentVnode: vnode,
  9322. parent: parent
  9323. };
  9324. // check inline-template render functions
  9325. var inlineTemplate = vnode.data.inlineTemplate;
  9326. if (isDef(inlineTemplate)) {
  9327. options.render = inlineTemplate.render;
  9328. options.staticRenderFns = inlineTemplate.staticRenderFns;
  9329. }
  9330. return new vnode.componentOptions.Ctor(options)
  9331. }
  9332. function installComponentHooks (data) {
  9333. var hooks = data.hook || (data.hook = {});
  9334. for (var i = 0; i < hooksToMerge.length; i++) {
  9335. var key = hooksToMerge[i];
  9336. var existing = hooks[key];
  9337. var toMerge = componentVNodeHooks[key];
  9338. if (existing !== toMerge && !(existing && existing._merged)) {
  9339. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  9340. }
  9341. }
  9342. }
  9343. function mergeHook$1 (f1, f2) {
  9344. var merged = function (a, b) {
  9345. // flow complains about extra args which is why we use any
  9346. f1(a, b);
  9347. f2(a, b);
  9348. };
  9349. merged._merged = true;
  9350. return merged
  9351. }
  9352. // transform component v-model info (value and callback) into
  9353. // prop and event handler respectively.
  9354. function transformModel (options, data) {
  9355. var prop = (options.model && options.model.prop) || 'value';
  9356. var event = (options.model && options.model.event) || 'input'
  9357. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  9358. var on = data.on || (data.on = {});
  9359. var existing = on[event];
  9360. var callback = data.model.callback;
  9361. if (isDef(existing)) {
  9362. if (
  9363. Array.isArray(existing)
  9364. ? existing.indexOf(callback) === -1
  9365. : existing !== callback
  9366. ) {
  9367. on[event] = [callback].concat(existing);
  9368. }
  9369. } else {
  9370. on[event] = callback;
  9371. }
  9372. }
  9373. /* */
  9374. var SIMPLE_NORMALIZE = 1;
  9375. var ALWAYS_NORMALIZE = 2;
  9376. // wrapper function for providing a more flexible interface
  9377. // without getting yelled at by flow
  9378. function createElement (
  9379. context,
  9380. tag,
  9381. data,
  9382. children,
  9383. normalizationType,
  9384. alwaysNormalize
  9385. ) {
  9386. if (Array.isArray(data) || isPrimitive(data)) {
  9387. normalizationType = children;
  9388. children = data;
  9389. data = undefined;
  9390. }
  9391. if (isTrue(alwaysNormalize)) {
  9392. normalizationType = ALWAYS_NORMALIZE;
  9393. }
  9394. return _createElement(context, tag, data, children, normalizationType)
  9395. }
  9396. function _createElement (
  9397. context,
  9398. tag,
  9399. data,
  9400. children,
  9401. normalizationType
  9402. ) {
  9403. if (isDef(data) && isDef((data).__ob__)) {
  9404. true && warn(
  9405. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  9406. 'Always create fresh vnode data objects in each render!',
  9407. context
  9408. );
  9409. return createEmptyVNode()
  9410. }
  9411. // object syntax in v-bind
  9412. if (isDef(data) && isDef(data.is)) {
  9413. tag = data.is;
  9414. }
  9415. if (!tag) {
  9416. // in case of component :is set to falsy value
  9417. return createEmptyVNode()
  9418. }
  9419. // warn against non-primitive key
  9420. if ( true &&
  9421. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  9422. ) {
  9423. {
  9424. warn(
  9425. 'Avoid using non-primitive value as key, ' +
  9426. 'use string/number value instead.',
  9427. context
  9428. );
  9429. }
  9430. }
  9431. // support single function children as default scoped slot
  9432. if (Array.isArray(children) &&
  9433. typeof children[0] === 'function'
  9434. ) {
  9435. data = data || {};
  9436. data.scopedSlots = { default: children[0] };
  9437. children.length = 0;
  9438. }
  9439. if (normalizationType === ALWAYS_NORMALIZE) {
  9440. children = normalizeChildren(children);
  9441. } else if (normalizationType === SIMPLE_NORMALIZE) {
  9442. children = simpleNormalizeChildren(children);
  9443. }
  9444. var vnode, ns;
  9445. if (typeof tag === 'string') {
  9446. var Ctor;
  9447. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  9448. if (config.isReservedTag(tag)) {
  9449. // platform built-in elements
  9450. if ( true && isDef(data) && isDef(data.nativeOn)) {
  9451. warn(
  9452. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  9453. context
  9454. );
  9455. }
  9456. vnode = new VNode(
  9457. config.parsePlatformTagName(tag), data, children,
  9458. undefined, undefined, context
  9459. );
  9460. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  9461. // component
  9462. vnode = createComponent(Ctor, data, context, children, tag);
  9463. } else {
  9464. // unknown or unlisted namespaced elements
  9465. // check at runtime because it may get assigned a namespace when its
  9466. // parent normalizes children
  9467. vnode = new VNode(
  9468. tag, data, children,
  9469. undefined, undefined, context
  9470. );
  9471. }
  9472. } else {
  9473. // direct component options / constructor
  9474. vnode = createComponent(tag, data, context, children);
  9475. }
  9476. if (Array.isArray(vnode)) {
  9477. return vnode
  9478. } else if (isDef(vnode)) {
  9479. if (isDef(ns)) { applyNS(vnode, ns); }
  9480. if (isDef(data)) { registerDeepBindings(data); }
  9481. return vnode
  9482. } else {
  9483. return createEmptyVNode()
  9484. }
  9485. }
  9486. function applyNS (vnode, ns, force) {
  9487. vnode.ns = ns;
  9488. if (vnode.tag === 'foreignObject') {
  9489. // use default namespace inside foreignObject
  9490. ns = undefined;
  9491. force = true;
  9492. }
  9493. if (isDef(vnode.children)) {
  9494. for (var i = 0, l = vnode.children.length; i < l; i++) {
  9495. var child = vnode.children[i];
  9496. if (isDef(child.tag) && (
  9497. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  9498. applyNS(child, ns, force);
  9499. }
  9500. }
  9501. }
  9502. }
  9503. // ref #5318
  9504. // necessary to ensure parent re-render when deep bindings like :style and
  9505. // :class are used on slot nodes
  9506. function registerDeepBindings (data) {
  9507. if (isObject(data.style)) {
  9508. traverse(data.style);
  9509. }
  9510. if (isObject(data.class)) {
  9511. traverse(data.class);
  9512. }
  9513. }
  9514. /* */
  9515. function initRender (vm) {
  9516. vm._vnode = null; // the root of the child tree
  9517. vm._staticTrees = null; // v-once cached trees
  9518. var options = vm.$options;
  9519. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  9520. var renderContext = parentVnode && parentVnode.context;
  9521. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  9522. vm.$scopedSlots = emptyObject;
  9523. // bind the createElement fn to this instance
  9524. // so that we get proper render context inside it.
  9525. // args order: tag, data, children, normalizationType, alwaysNormalize
  9526. // internal version is used by render functions compiled from templates
  9527. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  9528. // normalization is always applied for the public version, used in
  9529. // user-written render functions.
  9530. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  9531. // $attrs & $listeners are exposed for easier HOC creation.
  9532. // they need to be reactive so that HOCs using them are always updated
  9533. var parentData = parentVnode && parentVnode.data;
  9534. /* istanbul ignore else */
  9535. if (true) {
  9536. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  9537. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  9538. }, true);
  9539. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  9540. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  9541. }, true);
  9542. } else {}
  9543. }
  9544. var currentRenderingInstance = null;
  9545. function renderMixin (Vue) {
  9546. // install runtime convenience helpers
  9547. installRenderHelpers(Vue.prototype);
  9548. Vue.prototype.$nextTick = function (fn) {
  9549. return nextTick(fn, this)
  9550. };
  9551. Vue.prototype._render = function () {
  9552. var vm = this;
  9553. var ref = vm.$options;
  9554. var render = ref.render;
  9555. var _parentVnode = ref._parentVnode;
  9556. if (_parentVnode) {
  9557. vm.$scopedSlots = normalizeScopedSlots(
  9558. _parentVnode.data.scopedSlots,
  9559. vm.$slots,
  9560. vm.$scopedSlots
  9561. );
  9562. }
  9563. // set parent vnode. this allows render functions to have access
  9564. // to the data on the placeholder node.
  9565. vm.$vnode = _parentVnode;
  9566. // render self
  9567. var vnode;
  9568. try {
  9569. // There's no need to maintain a stack because all render fns are called
  9570. // separately from one another. Nested component's render fns are called
  9571. // when parent component is patched.
  9572. currentRenderingInstance = vm;
  9573. vnode = render.call(vm._renderProxy, vm.$createElement);
  9574. } catch (e) {
  9575. handleError(e, vm, "render");
  9576. // return error render result,
  9577. // or previous vnode to prevent render error causing blank component
  9578. /* istanbul ignore else */
  9579. if ( true && vm.$options.renderError) {
  9580. try {
  9581. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  9582. } catch (e) {
  9583. handleError(e, vm, "renderError");
  9584. vnode = vm._vnode;
  9585. }
  9586. } else {
  9587. vnode = vm._vnode;
  9588. }
  9589. } finally {
  9590. currentRenderingInstance = null;
  9591. }
  9592. // if the returned array contains only a single node, allow it
  9593. if (Array.isArray(vnode) && vnode.length === 1) {
  9594. vnode = vnode[0];
  9595. }
  9596. // return empty vnode in case the render function errored out
  9597. if (!(vnode instanceof VNode)) {
  9598. if ( true && Array.isArray(vnode)) {
  9599. warn(
  9600. 'Multiple root nodes returned from render function. Render function ' +
  9601. 'should return a single root node.',
  9602. vm
  9603. );
  9604. }
  9605. vnode = createEmptyVNode();
  9606. }
  9607. // set parent
  9608. vnode.parent = _parentVnode;
  9609. return vnode
  9610. };
  9611. }
  9612. /* */
  9613. function ensureCtor (comp, base) {
  9614. if (
  9615. comp.__esModule ||
  9616. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  9617. ) {
  9618. comp = comp.default;
  9619. }
  9620. return isObject(comp)
  9621. ? base.extend(comp)
  9622. : comp
  9623. }
  9624. function createAsyncPlaceholder (
  9625. factory,
  9626. data,
  9627. context,
  9628. children,
  9629. tag
  9630. ) {
  9631. var node = createEmptyVNode();
  9632. node.asyncFactory = factory;
  9633. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  9634. return node
  9635. }
  9636. function resolveAsyncComponent (
  9637. factory,
  9638. baseCtor
  9639. ) {
  9640. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  9641. return factory.errorComp
  9642. }
  9643. if (isDef(factory.resolved)) {
  9644. return factory.resolved
  9645. }
  9646. var owner = currentRenderingInstance;
  9647. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  9648. // already pending
  9649. factory.owners.push(owner);
  9650. }
  9651. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  9652. return factory.loadingComp
  9653. }
  9654. if (owner && !isDef(factory.owners)) {
  9655. var owners = factory.owners = [owner];
  9656. var sync = true;
  9657. var timerLoading = null;
  9658. var timerTimeout = null
  9659. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  9660. var forceRender = function (renderCompleted) {
  9661. for (var i = 0, l = owners.length; i < l; i++) {
  9662. (owners[i]).$forceUpdate();
  9663. }
  9664. if (renderCompleted) {
  9665. owners.length = 0;
  9666. if (timerLoading !== null) {
  9667. clearTimeout(timerLoading);
  9668. timerLoading = null;
  9669. }
  9670. if (timerTimeout !== null) {
  9671. clearTimeout(timerTimeout);
  9672. timerTimeout = null;
  9673. }
  9674. }
  9675. };
  9676. var resolve = once(function (res) {
  9677. // cache resolved
  9678. factory.resolved = ensureCtor(res, baseCtor);
  9679. // invoke callbacks only if this is not a synchronous resolve
  9680. // (async resolves are shimmed as synchronous during SSR)
  9681. if (!sync) {
  9682. forceRender(true);
  9683. } else {
  9684. owners.length = 0;
  9685. }
  9686. });
  9687. var reject = once(function (reason) {
  9688. true && warn(
  9689. "Failed to resolve async component: " + (String(factory)) +
  9690. (reason ? ("\nReason: " + reason) : '')
  9691. );
  9692. if (isDef(factory.errorComp)) {
  9693. factory.error = true;
  9694. forceRender(true);
  9695. }
  9696. });
  9697. var res = factory(resolve, reject);
  9698. if (isObject(res)) {
  9699. if (isPromise(res)) {
  9700. // () => Promise
  9701. if (isUndef(factory.resolved)) {
  9702. res.then(resolve, reject);
  9703. }
  9704. } else if (isPromise(res.component)) {
  9705. res.component.then(resolve, reject);
  9706. if (isDef(res.error)) {
  9707. factory.errorComp = ensureCtor(res.error, baseCtor);
  9708. }
  9709. if (isDef(res.loading)) {
  9710. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  9711. if (res.delay === 0) {
  9712. factory.loading = true;
  9713. } else {
  9714. timerLoading = setTimeout(function () {
  9715. timerLoading = null;
  9716. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  9717. factory.loading = true;
  9718. forceRender(false);
  9719. }
  9720. }, res.delay || 200);
  9721. }
  9722. }
  9723. if (isDef(res.timeout)) {
  9724. timerTimeout = setTimeout(function () {
  9725. timerTimeout = null;
  9726. if (isUndef(factory.resolved)) {
  9727. reject(
  9728. true
  9729. ? ("timeout (" + (res.timeout) + "ms)")
  9730. : undefined
  9731. );
  9732. }
  9733. }, res.timeout);
  9734. }
  9735. }
  9736. }
  9737. sync = false;
  9738. // return in case resolved synchronously
  9739. return factory.loading
  9740. ? factory.loadingComp
  9741. : factory.resolved
  9742. }
  9743. }
  9744. /* */
  9745. function isAsyncPlaceholder (node) {
  9746. return node.isComment && node.asyncFactory
  9747. }
  9748. /* */
  9749. function getFirstComponentChild (children) {
  9750. if (Array.isArray(children)) {
  9751. for (var i = 0; i < children.length; i++) {
  9752. var c = children[i];
  9753. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  9754. return c
  9755. }
  9756. }
  9757. }
  9758. }
  9759. /* */
  9760. /* */
  9761. function initEvents (vm) {
  9762. vm._events = Object.create(null);
  9763. vm._hasHookEvent = false;
  9764. // init parent attached events
  9765. var listeners = vm.$options._parentListeners;
  9766. if (listeners) {
  9767. updateComponentListeners(vm, listeners);
  9768. }
  9769. }
  9770. var target;
  9771. function add (event, fn) {
  9772. target.$on(event, fn);
  9773. }
  9774. function remove$1 (event, fn) {
  9775. target.$off(event, fn);
  9776. }
  9777. function createOnceHandler (event, fn) {
  9778. var _target = target;
  9779. return function onceHandler () {
  9780. var res = fn.apply(null, arguments);
  9781. if (res !== null) {
  9782. _target.$off(event, onceHandler);
  9783. }
  9784. }
  9785. }
  9786. function updateComponentListeners (
  9787. vm,
  9788. listeners,
  9789. oldListeners
  9790. ) {
  9791. target = vm;
  9792. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  9793. target = undefined;
  9794. }
  9795. function eventsMixin (Vue) {
  9796. var hookRE = /^hook:/;
  9797. Vue.prototype.$on = function (event, fn) {
  9798. var vm = this;
  9799. if (Array.isArray(event)) {
  9800. for (var i = 0, l = event.length; i < l; i++) {
  9801. vm.$on(event[i], fn);
  9802. }
  9803. } else {
  9804. (vm._events[event] || (vm._events[event] = [])).push(fn);
  9805. // optimize hook:event cost by using a boolean flag marked at registration
  9806. // instead of a hash lookup
  9807. if (hookRE.test(event)) {
  9808. vm._hasHookEvent = true;
  9809. }
  9810. }
  9811. return vm
  9812. };
  9813. Vue.prototype.$once = function (event, fn) {
  9814. var vm = this;
  9815. function on () {
  9816. vm.$off(event, on);
  9817. fn.apply(vm, arguments);
  9818. }
  9819. on.fn = fn;
  9820. vm.$on(event, on);
  9821. return vm
  9822. };
  9823. Vue.prototype.$off = function (event, fn) {
  9824. var vm = this;
  9825. // all
  9826. if (!arguments.length) {
  9827. vm._events = Object.create(null);
  9828. return vm
  9829. }
  9830. // array of events
  9831. if (Array.isArray(event)) {
  9832. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  9833. vm.$off(event[i$1], fn);
  9834. }
  9835. return vm
  9836. }
  9837. // specific event
  9838. var cbs = vm._events[event];
  9839. if (!cbs) {
  9840. return vm
  9841. }
  9842. if (!fn) {
  9843. vm._events[event] = null;
  9844. return vm
  9845. }
  9846. // specific handler
  9847. var cb;
  9848. var i = cbs.length;
  9849. while (i--) {
  9850. cb = cbs[i];
  9851. if (cb === fn || cb.fn === fn) {
  9852. cbs.splice(i, 1);
  9853. break
  9854. }
  9855. }
  9856. return vm
  9857. };
  9858. Vue.prototype.$emit = function (event) {
  9859. var vm = this;
  9860. if (true) {
  9861. var lowerCaseEvent = event.toLowerCase();
  9862. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  9863. tip(
  9864. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  9865. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  9866. "Note that HTML attributes are case-insensitive and you cannot use " +
  9867. "v-on to listen to camelCase events when using in-DOM templates. " +
  9868. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  9869. );
  9870. }
  9871. }
  9872. var cbs = vm._events[event];
  9873. if (cbs) {
  9874. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  9875. var args = toArray(arguments, 1);
  9876. var info = "event handler for \"" + event + "\"";
  9877. for (var i = 0, l = cbs.length; i < l; i++) {
  9878. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  9879. }
  9880. }
  9881. return vm
  9882. };
  9883. }
  9884. /* */
  9885. var activeInstance = null;
  9886. var isUpdatingChildComponent = false;
  9887. function setActiveInstance(vm) {
  9888. var prevActiveInstance = activeInstance;
  9889. activeInstance = vm;
  9890. return function () {
  9891. activeInstance = prevActiveInstance;
  9892. }
  9893. }
  9894. function initLifecycle (vm) {
  9895. var options = vm.$options;
  9896. // locate first non-abstract parent
  9897. var parent = options.parent;
  9898. if (parent && !options.abstract) {
  9899. while (parent.$options.abstract && parent.$parent) {
  9900. parent = parent.$parent;
  9901. }
  9902. parent.$children.push(vm);
  9903. }
  9904. vm.$parent = parent;
  9905. vm.$root = parent ? parent.$root : vm;
  9906. vm.$children = [];
  9907. vm.$refs = {};
  9908. vm._watcher = null;
  9909. vm._inactive = null;
  9910. vm._directInactive = false;
  9911. vm._isMounted = false;
  9912. vm._isDestroyed = false;
  9913. vm._isBeingDestroyed = false;
  9914. }
  9915. function lifecycleMixin (Vue) {
  9916. Vue.prototype._update = function (vnode, hydrating) {
  9917. var vm = this;
  9918. var prevEl = vm.$el;
  9919. var prevVnode = vm._vnode;
  9920. var restoreActiveInstance = setActiveInstance(vm);
  9921. vm._vnode = vnode;
  9922. // Vue.prototype.__patch__ is injected in entry points
  9923. // based on the rendering backend used.
  9924. if (!prevVnode) {
  9925. // initial render
  9926. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  9927. } else {
  9928. // updates
  9929. vm.$el = vm.__patch__(prevVnode, vnode);
  9930. }
  9931. restoreActiveInstance();
  9932. // update __vue__ reference
  9933. if (prevEl) {
  9934. prevEl.__vue__ = null;
  9935. }
  9936. if (vm.$el) {
  9937. vm.$el.__vue__ = vm;
  9938. }
  9939. // if parent is an HOC, update its $el as well
  9940. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  9941. vm.$parent.$el = vm.$el;
  9942. }
  9943. // updated hook is called by the scheduler to ensure that children are
  9944. // updated in a parent's updated hook.
  9945. };
  9946. Vue.prototype.$forceUpdate = function () {
  9947. var vm = this;
  9948. if (vm._watcher) {
  9949. vm._watcher.update();
  9950. }
  9951. };
  9952. Vue.prototype.$destroy = function () {
  9953. var vm = this;
  9954. if (vm._isBeingDestroyed) {
  9955. return
  9956. }
  9957. callHook(vm, 'beforeDestroy');
  9958. vm._isBeingDestroyed = true;
  9959. // remove self from parent
  9960. var parent = vm.$parent;
  9961. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  9962. remove(parent.$children, vm);
  9963. }
  9964. // teardown watchers
  9965. if (vm._watcher) {
  9966. vm._watcher.teardown();
  9967. }
  9968. var i = vm._watchers.length;
  9969. while (i--) {
  9970. vm._watchers[i].teardown();
  9971. }
  9972. // remove reference from data ob
  9973. // frozen object may not have observer.
  9974. if (vm._data.__ob__) {
  9975. vm._data.__ob__.vmCount--;
  9976. }
  9977. // call the last hook...
  9978. vm._isDestroyed = true;
  9979. // invoke destroy hooks on current rendered tree
  9980. vm.__patch__(vm._vnode, null);
  9981. // fire destroyed hook
  9982. callHook(vm, 'destroyed');
  9983. // turn off all instance listeners.
  9984. vm.$off();
  9985. // remove __vue__ reference
  9986. if (vm.$el) {
  9987. vm.$el.__vue__ = null;
  9988. }
  9989. // release circular reference (#6759)
  9990. if (vm.$vnode) {
  9991. vm.$vnode.parent = null;
  9992. }
  9993. };
  9994. }
  9995. function updateChildComponent (
  9996. vm,
  9997. propsData,
  9998. listeners,
  9999. parentVnode,
  10000. renderChildren
  10001. ) {
  10002. if (true) {
  10003. isUpdatingChildComponent = true;
  10004. }
  10005. // determine whether component has slot children
  10006. // we need to do this before overwriting $options._renderChildren.
  10007. // check if there are dynamic scopedSlots (hand-written or compiled but with
  10008. // dynamic slot names). Static scoped slots compiled from template has the
  10009. // "$stable" marker.
  10010. var newScopedSlots = parentVnode.data.scopedSlots;
  10011. var oldScopedSlots = vm.$scopedSlots;
  10012. var hasDynamicScopedSlot = !!(
  10013. (newScopedSlots && !newScopedSlots.$stable) ||
  10014. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  10015. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  10016. );
  10017. // Any static slot children from the parent may have changed during parent's
  10018. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  10019. // update is necessary to ensure correctness.
  10020. var needsForceUpdate = !!(
  10021. renderChildren || // has new static slots
  10022. vm.$options._renderChildren || // has old static slots
  10023. hasDynamicScopedSlot
  10024. );
  10025. vm.$options._parentVnode = parentVnode;
  10026. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  10027. if (vm._vnode) { // update child tree's parent
  10028. vm._vnode.parent = parentVnode;
  10029. }
  10030. vm.$options._renderChildren = renderChildren;
  10031. // update $attrs and $listeners hash
  10032. // these are also reactive so they may trigger child update if the child
  10033. // used them during render
  10034. vm.$attrs = parentVnode.data.attrs || emptyObject;
  10035. vm.$listeners = listeners || emptyObject;
  10036. // update props
  10037. if (propsData && vm.$options.props) {
  10038. toggleObserving(false);
  10039. var props = vm._props;
  10040. var propKeys = vm.$options._propKeys || [];
  10041. for (var i = 0; i < propKeys.length; i++) {
  10042. var key = propKeys[i];
  10043. var propOptions = vm.$options.props; // wtf flow?
  10044. props[key] = validateProp(key, propOptions, propsData, vm);
  10045. }
  10046. toggleObserving(true);
  10047. // keep a copy of raw propsData
  10048. vm.$options.propsData = propsData;
  10049. }
  10050. // fixed by xxxxxx update properties(mp runtime)
  10051. vm._$updateProperties && vm._$updateProperties(vm);
  10052. // update listeners
  10053. listeners = listeners || emptyObject;
  10054. var oldListeners = vm.$options._parentListeners;
  10055. vm.$options._parentListeners = listeners;
  10056. updateComponentListeners(vm, listeners, oldListeners);
  10057. // resolve slots + force update if has children
  10058. if (needsForceUpdate) {
  10059. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  10060. vm.$forceUpdate();
  10061. }
  10062. if (true) {
  10063. isUpdatingChildComponent = false;
  10064. }
  10065. }
  10066. function isInInactiveTree (vm) {
  10067. while (vm && (vm = vm.$parent)) {
  10068. if (vm._inactive) { return true }
  10069. }
  10070. return false
  10071. }
  10072. function activateChildComponent (vm, direct) {
  10073. if (direct) {
  10074. vm._directInactive = false;
  10075. if (isInInactiveTree(vm)) {
  10076. return
  10077. }
  10078. } else if (vm._directInactive) {
  10079. return
  10080. }
  10081. if (vm._inactive || vm._inactive === null) {
  10082. vm._inactive = false;
  10083. for (var i = 0; i < vm.$children.length; i++) {
  10084. activateChildComponent(vm.$children[i]);
  10085. }
  10086. callHook(vm, 'activated');
  10087. }
  10088. }
  10089. function deactivateChildComponent (vm, direct) {
  10090. if (direct) {
  10091. vm._directInactive = true;
  10092. if (isInInactiveTree(vm)) {
  10093. return
  10094. }
  10095. }
  10096. if (!vm._inactive) {
  10097. vm._inactive = true;
  10098. for (var i = 0; i < vm.$children.length; i++) {
  10099. deactivateChildComponent(vm.$children[i]);
  10100. }
  10101. callHook(vm, 'deactivated');
  10102. }
  10103. }
  10104. function callHook (vm, hook) {
  10105. // #7573 disable dep collection when invoking lifecycle hooks
  10106. pushTarget();
  10107. var handlers = vm.$options[hook];
  10108. var info = hook + " hook";
  10109. if (handlers) {
  10110. for (var i = 0, j = handlers.length; i < j; i++) {
  10111. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  10112. }
  10113. }
  10114. if (vm._hasHookEvent) {
  10115. vm.$emit('hook:' + hook);
  10116. }
  10117. popTarget();
  10118. }
  10119. /* */
  10120. var MAX_UPDATE_COUNT = 100;
  10121. var queue = [];
  10122. var activatedChildren = [];
  10123. var has = {};
  10124. var circular = {};
  10125. var waiting = false;
  10126. var flushing = false;
  10127. var index = 0;
  10128. /**
  10129. * Reset the scheduler's state.
  10130. */
  10131. function resetSchedulerState () {
  10132. index = queue.length = activatedChildren.length = 0;
  10133. has = {};
  10134. if (true) {
  10135. circular = {};
  10136. }
  10137. waiting = flushing = false;
  10138. }
  10139. // Async edge case #6566 requires saving the timestamp when event listeners are
  10140. // attached. However, calling performance.now() has a perf overhead especially
  10141. // if the page has thousands of event listeners. Instead, we take a timestamp
  10142. // every time the scheduler flushes and use that for all event listeners
  10143. // attached during that flush.
  10144. var currentFlushTimestamp = 0;
  10145. // Async edge case fix requires storing an event listener's attach timestamp.
  10146. var getNow = Date.now;
  10147. // Determine what event timestamp the browser is using. Annoyingly, the
  10148. // timestamp can either be hi-res (relative to page load) or low-res
  10149. // (relative to UNIX epoch), so in order to compare time we have to use the
  10150. // same timestamp type when saving the flush timestamp.
  10151. // All IE versions use low-res event timestamps, and have problematic clock
  10152. // implementations (#9632)
  10153. if (inBrowser && !isIE) {
  10154. var performance = window.performance;
  10155. if (
  10156. performance &&
  10157. typeof performance.now === 'function' &&
  10158. getNow() > document.createEvent('Event').timeStamp
  10159. ) {
  10160. // if the event timestamp, although evaluated AFTER the Date.now(), is
  10161. // smaller than it, it means the event is using a hi-res timestamp,
  10162. // and we need to use the hi-res version for event listener timestamps as
  10163. // well.
  10164. getNow = function () { return performance.now(); };
  10165. }
  10166. }
  10167. /**
  10168. * Flush both queues and run the watchers.
  10169. */
  10170. function flushSchedulerQueue () {
  10171. currentFlushTimestamp = getNow();
  10172. flushing = true;
  10173. var watcher, id;
  10174. // Sort queue before flush.
  10175. // This ensures that:
  10176. // 1. Components are updated from parent to child. (because parent is always
  10177. // created before the child)
  10178. // 2. A component's user watchers are run before its render watcher (because
  10179. // user watchers are created before the render watcher)
  10180. // 3. If a component is destroyed during a parent component's watcher run,
  10181. // its watchers can be skipped.
  10182. queue.sort(function (a, b) { return a.id - b.id; });
  10183. // do not cache length because more watchers might be pushed
  10184. // as we run existing watchers
  10185. for (index = 0; index < queue.length; index++) {
  10186. watcher = queue[index];
  10187. if (watcher.before) {
  10188. watcher.before();
  10189. }
  10190. id = watcher.id;
  10191. has[id] = null;
  10192. watcher.run();
  10193. // in dev build, check and stop circular updates.
  10194. if ( true && has[id] != null) {
  10195. circular[id] = (circular[id] || 0) + 1;
  10196. if (circular[id] > MAX_UPDATE_COUNT) {
  10197. warn(
  10198. 'You may have an infinite update loop ' + (
  10199. watcher.user
  10200. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  10201. : "in a component render function."
  10202. ),
  10203. watcher.vm
  10204. );
  10205. break
  10206. }
  10207. }
  10208. }
  10209. // keep copies of post queues before resetting state
  10210. var activatedQueue = activatedChildren.slice();
  10211. var updatedQueue = queue.slice();
  10212. resetSchedulerState();
  10213. // call component updated and activated hooks
  10214. callActivatedHooks(activatedQueue);
  10215. callUpdatedHooks(updatedQueue);
  10216. // devtool hook
  10217. /* istanbul ignore if */
  10218. if (devtools && config.devtools) {
  10219. devtools.emit('flush');
  10220. }
  10221. }
  10222. function callUpdatedHooks (queue) {
  10223. var i = queue.length;
  10224. while (i--) {
  10225. var watcher = queue[i];
  10226. var vm = watcher.vm;
  10227. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  10228. callHook(vm, 'updated');
  10229. }
  10230. }
  10231. }
  10232. /**
  10233. * Queue a kept-alive component that was activated during patch.
  10234. * The queue will be processed after the entire tree has been patched.
  10235. */
  10236. function queueActivatedComponent (vm) {
  10237. // setting _inactive to false here so that a render function can
  10238. // rely on checking whether it's in an inactive tree (e.g. router-view)
  10239. vm._inactive = false;
  10240. activatedChildren.push(vm);
  10241. }
  10242. function callActivatedHooks (queue) {
  10243. for (var i = 0; i < queue.length; i++) {
  10244. queue[i]._inactive = true;
  10245. activateChildComponent(queue[i], true /* true */);
  10246. }
  10247. }
  10248. /**
  10249. * Push a watcher into the watcher queue.
  10250. * Jobs with duplicate IDs will be skipped unless it's
  10251. * pushed when the queue is being flushed.
  10252. */
  10253. function queueWatcher (watcher) {
  10254. var id = watcher.id;
  10255. if (has[id] == null) {
  10256. has[id] = true;
  10257. if (!flushing) {
  10258. queue.push(watcher);
  10259. } else {
  10260. // if already flushing, splice the watcher based on its id
  10261. // if already past its id, it will be run next immediately.
  10262. var i = queue.length - 1;
  10263. while (i > index && queue[i].id > watcher.id) {
  10264. i--;
  10265. }
  10266. queue.splice(i + 1, 0, watcher);
  10267. }
  10268. // queue the flush
  10269. if (!waiting) {
  10270. waiting = true;
  10271. if ( true && !config.async) {
  10272. flushSchedulerQueue();
  10273. return
  10274. }
  10275. nextTick(flushSchedulerQueue);
  10276. }
  10277. }
  10278. }
  10279. /* */
  10280. var uid$2 = 0;
  10281. /**
  10282. * A watcher parses an expression, collects dependencies,
  10283. * and fires callback when the expression value changes.
  10284. * This is used for both the $watch() api and directives.
  10285. */
  10286. var Watcher = function Watcher (
  10287. vm,
  10288. expOrFn,
  10289. cb,
  10290. options,
  10291. isRenderWatcher
  10292. ) {
  10293. this.vm = vm;
  10294. if (isRenderWatcher) {
  10295. vm._watcher = this;
  10296. }
  10297. vm._watchers.push(this);
  10298. // options
  10299. if (options) {
  10300. this.deep = !!options.deep;
  10301. this.user = !!options.user;
  10302. this.lazy = !!options.lazy;
  10303. this.sync = !!options.sync;
  10304. this.before = options.before;
  10305. } else {
  10306. this.deep = this.user = this.lazy = this.sync = false;
  10307. }
  10308. this.cb = cb;
  10309. this.id = ++uid$2; // uid for batching
  10310. this.active = true;
  10311. this.dirty = this.lazy; // for lazy watchers
  10312. this.deps = [];
  10313. this.newDeps = [];
  10314. this.depIds = new _Set();
  10315. this.newDepIds = new _Set();
  10316. this.expression = true
  10317. ? expOrFn.toString()
  10318. : undefined;
  10319. // parse expression for getter
  10320. if (typeof expOrFn === 'function') {
  10321. this.getter = expOrFn;
  10322. } else {
  10323. this.getter = parsePath(expOrFn);
  10324. if (!this.getter) {
  10325. this.getter = noop;
  10326. true && warn(
  10327. "Failed watching path: \"" + expOrFn + "\" " +
  10328. 'Watcher only accepts simple dot-delimited paths. ' +
  10329. 'For full control, use a function instead.',
  10330. vm
  10331. );
  10332. }
  10333. }
  10334. this.value = this.lazy
  10335. ? undefined
  10336. : this.get();
  10337. };
  10338. /**
  10339. * Evaluate the getter, and re-collect dependencies.
  10340. */
  10341. Watcher.prototype.get = function get () {
  10342. pushTarget(this);
  10343. var value;
  10344. var vm = this.vm;
  10345. try {
  10346. value = this.getter.call(vm, vm);
  10347. } catch (e) {
  10348. if (this.user) {
  10349. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  10350. } else {
  10351. throw e
  10352. }
  10353. } finally {
  10354. // "touch" every property so they are all tracked as
  10355. // dependencies for deep watching
  10356. if (this.deep) {
  10357. traverse(value);
  10358. }
  10359. popTarget();
  10360. this.cleanupDeps();
  10361. }
  10362. return value
  10363. };
  10364. /**
  10365. * Add a dependency to this directive.
  10366. */
  10367. Watcher.prototype.addDep = function addDep (dep) {
  10368. var id = dep.id;
  10369. if (!this.newDepIds.has(id)) {
  10370. this.newDepIds.add(id);
  10371. this.newDeps.push(dep);
  10372. if (!this.depIds.has(id)) {
  10373. dep.addSub(this);
  10374. }
  10375. }
  10376. };
  10377. /**
  10378. * Clean up for dependency collection.
  10379. */
  10380. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  10381. var i = this.deps.length;
  10382. while (i--) {
  10383. var dep = this.deps[i];
  10384. if (!this.newDepIds.has(dep.id)) {
  10385. dep.removeSub(this);
  10386. }
  10387. }
  10388. var tmp = this.depIds;
  10389. this.depIds = this.newDepIds;
  10390. this.newDepIds = tmp;
  10391. this.newDepIds.clear();
  10392. tmp = this.deps;
  10393. this.deps = this.newDeps;
  10394. this.newDeps = tmp;
  10395. this.newDeps.length = 0;
  10396. };
  10397. /**
  10398. * Subscriber interface.
  10399. * Will be called when a dependency changes.
  10400. */
  10401. Watcher.prototype.update = function update () {
  10402. /* istanbul ignore else */
  10403. if (this.lazy) {
  10404. this.dirty = true;
  10405. } else if (this.sync) {
  10406. this.run();
  10407. } else {
  10408. queueWatcher(this);
  10409. }
  10410. };
  10411. /**
  10412. * Scheduler job interface.
  10413. * Will be called by the scheduler.
  10414. */
  10415. Watcher.prototype.run = function run () {
  10416. if (this.active) {
  10417. var value = this.get();
  10418. if (
  10419. value !== this.value ||
  10420. // Deep watchers and watchers on Object/Arrays should fire even
  10421. // when the value is the same, because the value may
  10422. // have mutated.
  10423. isObject(value) ||
  10424. this.deep
  10425. ) {
  10426. // set new value
  10427. var oldValue = this.value;
  10428. this.value = value;
  10429. if (this.user) {
  10430. try {
  10431. this.cb.call(this.vm, value, oldValue);
  10432. } catch (e) {
  10433. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  10434. }
  10435. } else {
  10436. this.cb.call(this.vm, value, oldValue);
  10437. }
  10438. }
  10439. }
  10440. };
  10441. /**
  10442. * Evaluate the value of the watcher.
  10443. * This only gets called for lazy watchers.
  10444. */
  10445. Watcher.prototype.evaluate = function evaluate () {
  10446. this.value = this.get();
  10447. this.dirty = false;
  10448. };
  10449. /**
  10450. * Depend on all deps collected by this watcher.
  10451. */
  10452. Watcher.prototype.depend = function depend () {
  10453. var i = this.deps.length;
  10454. while (i--) {
  10455. this.deps[i].depend();
  10456. }
  10457. };
  10458. /**
  10459. * Remove self from all dependencies' subscriber list.
  10460. */
  10461. Watcher.prototype.teardown = function teardown () {
  10462. if (this.active) {
  10463. // remove self from vm's watcher list
  10464. // this is a somewhat expensive operation so we skip it
  10465. // if the vm is being destroyed.
  10466. if (!this.vm._isBeingDestroyed) {
  10467. remove(this.vm._watchers, this);
  10468. }
  10469. var i = this.deps.length;
  10470. while (i--) {
  10471. this.deps[i].removeSub(this);
  10472. }
  10473. this.active = false;
  10474. }
  10475. };
  10476. /* */
  10477. var sharedPropertyDefinition = {
  10478. enumerable: true,
  10479. configurable: true,
  10480. get: noop,
  10481. set: noop
  10482. };
  10483. function proxy (target, sourceKey, key) {
  10484. sharedPropertyDefinition.get = function proxyGetter () {
  10485. return this[sourceKey][key]
  10486. };
  10487. sharedPropertyDefinition.set = function proxySetter (val) {
  10488. this[sourceKey][key] = val;
  10489. };
  10490. Object.defineProperty(target, key, sharedPropertyDefinition);
  10491. }
  10492. function initState (vm) {
  10493. vm._watchers = [];
  10494. var opts = vm.$options;
  10495. if (opts.props) { initProps(vm, opts.props); }
  10496. if (opts.methods) { initMethods(vm, opts.methods); }
  10497. if (opts.data) {
  10498. initData(vm);
  10499. } else {
  10500. observe(vm._data = {}, true /* asRootData */);
  10501. }
  10502. if (opts.computed) { initComputed(vm, opts.computed); }
  10503. if (opts.watch && opts.watch !== nativeWatch) {
  10504. initWatch(vm, opts.watch);
  10505. }
  10506. }
  10507. function initProps (vm, propsOptions) {
  10508. var propsData = vm.$options.propsData || {};
  10509. var props = vm._props = {};
  10510. // cache prop keys so that future props updates can iterate using Array
  10511. // instead of dynamic object key enumeration.
  10512. var keys = vm.$options._propKeys = [];
  10513. var isRoot = !vm.$parent;
  10514. // root instance props should be converted
  10515. if (!isRoot) {
  10516. toggleObserving(false);
  10517. }
  10518. var loop = function ( key ) {
  10519. keys.push(key);
  10520. var value = validateProp(key, propsOptions, propsData, vm);
  10521. /* istanbul ignore else */
  10522. if (true) {
  10523. var hyphenatedKey = hyphenate(key);
  10524. if (isReservedAttribute(hyphenatedKey) ||
  10525. config.isReservedAttr(hyphenatedKey)) {
  10526. warn(
  10527. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  10528. vm
  10529. );
  10530. }
  10531. defineReactive$$1(props, key, value, function () {
  10532. if (!isRoot && !isUpdatingChildComponent) {
  10533. {
  10534. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou'){//百度、快手 observer 在 setData callback 之后触发,直接忽略该 warn
  10535. return
  10536. }
  10537. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  10538. if(
  10539. key === 'value' &&
  10540. Array.isArray(vm.$options.behaviors) &&
  10541. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  10542. ){
  10543. return
  10544. }
  10545. if(vm._getFormData){
  10546. return
  10547. }
  10548. var $parent = vm.$parent;
  10549. while($parent){
  10550. if($parent.__next_tick_pending){
  10551. return
  10552. }
  10553. $parent = $parent.$parent;
  10554. }
  10555. }
  10556. warn(
  10557. "Avoid mutating a prop directly since the value will be " +
  10558. "overwritten whenever the parent component re-renders. " +
  10559. "Instead, use a data or computed property based on the prop's " +
  10560. "value. Prop being mutated: \"" + key + "\"",
  10561. vm
  10562. );
  10563. }
  10564. });
  10565. } else {}
  10566. // static props are already proxied on the component's prototype
  10567. // during Vue.extend(). We only need to proxy props defined at
  10568. // instantiation here.
  10569. if (!(key in vm)) {
  10570. proxy(vm, "_props", key);
  10571. }
  10572. };
  10573. for (var key in propsOptions) loop( key );
  10574. toggleObserving(true);
  10575. }
  10576. function initData (vm) {
  10577. var data = vm.$options.data;
  10578. data = vm._data = typeof data === 'function'
  10579. ? getData(data, vm)
  10580. : data || {};
  10581. if (!isPlainObject(data)) {
  10582. data = {};
  10583. true && warn(
  10584. 'data functions should return an object:\n' +
  10585. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  10586. vm
  10587. );
  10588. }
  10589. // proxy data on instance
  10590. var keys = Object.keys(data);
  10591. var props = vm.$options.props;
  10592. var methods = vm.$options.methods;
  10593. var i = keys.length;
  10594. while (i--) {
  10595. var key = keys[i];
  10596. if (true) {
  10597. if (methods && hasOwn(methods, key)) {
  10598. warn(
  10599. ("Method \"" + key + "\" has already been defined as a data property."),
  10600. vm
  10601. );
  10602. }
  10603. }
  10604. if (props && hasOwn(props, key)) {
  10605. true && warn(
  10606. "The data property \"" + key + "\" is already declared as a prop. " +
  10607. "Use prop default value instead.",
  10608. vm
  10609. );
  10610. } else if (!isReserved(key)) {
  10611. proxy(vm, "_data", key);
  10612. }
  10613. }
  10614. // observe data
  10615. observe(data, true /* asRootData */);
  10616. }
  10617. function getData (data, vm) {
  10618. // #7573 disable dep collection when invoking data getters
  10619. pushTarget();
  10620. try {
  10621. return data.call(vm, vm)
  10622. } catch (e) {
  10623. handleError(e, vm, "data()");
  10624. return {}
  10625. } finally {
  10626. popTarget();
  10627. }
  10628. }
  10629. var computedWatcherOptions = { lazy: true };
  10630. function initComputed (vm, computed) {
  10631. // $flow-disable-line
  10632. var watchers = vm._computedWatchers = Object.create(null);
  10633. // computed properties are just getters during SSR
  10634. var isSSR = isServerRendering();
  10635. for (var key in computed) {
  10636. var userDef = computed[key];
  10637. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  10638. if ( true && getter == null) {
  10639. warn(
  10640. ("Getter is missing for computed property \"" + key + "\"."),
  10641. vm
  10642. );
  10643. }
  10644. if (!isSSR) {
  10645. // create internal watcher for the computed property.
  10646. watchers[key] = new Watcher(
  10647. vm,
  10648. getter || noop,
  10649. noop,
  10650. computedWatcherOptions
  10651. );
  10652. }
  10653. // component-defined computed properties are already defined on the
  10654. // component prototype. We only need to define computed properties defined
  10655. // at instantiation here.
  10656. if (!(key in vm)) {
  10657. defineComputed(vm, key, userDef);
  10658. } else if (true) {
  10659. if (key in vm.$data) {
  10660. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  10661. } else if (vm.$options.props && key in vm.$options.props) {
  10662. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  10663. }
  10664. }
  10665. }
  10666. }
  10667. function defineComputed (
  10668. target,
  10669. key,
  10670. userDef
  10671. ) {
  10672. var shouldCache = !isServerRendering();
  10673. if (typeof userDef === 'function') {
  10674. sharedPropertyDefinition.get = shouldCache
  10675. ? createComputedGetter(key)
  10676. : createGetterInvoker(userDef);
  10677. sharedPropertyDefinition.set = noop;
  10678. } else {
  10679. sharedPropertyDefinition.get = userDef.get
  10680. ? shouldCache && userDef.cache !== false
  10681. ? createComputedGetter(key)
  10682. : createGetterInvoker(userDef.get)
  10683. : noop;
  10684. sharedPropertyDefinition.set = userDef.set || noop;
  10685. }
  10686. if ( true &&
  10687. sharedPropertyDefinition.set === noop) {
  10688. sharedPropertyDefinition.set = function () {
  10689. warn(
  10690. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  10691. this
  10692. );
  10693. };
  10694. }
  10695. Object.defineProperty(target, key, sharedPropertyDefinition);
  10696. }
  10697. function createComputedGetter (key) {
  10698. return function computedGetter () {
  10699. var watcher = this._computedWatchers && this._computedWatchers[key];
  10700. if (watcher) {
  10701. if (watcher.dirty) {
  10702. watcher.evaluate();
  10703. }
  10704. if (Dep.SharedObject.target) {// fixed by xxxxxx
  10705. watcher.depend();
  10706. }
  10707. return watcher.value
  10708. }
  10709. }
  10710. }
  10711. function createGetterInvoker(fn) {
  10712. return function computedGetter () {
  10713. return fn.call(this, this)
  10714. }
  10715. }
  10716. function initMethods (vm, methods) {
  10717. var props = vm.$options.props;
  10718. for (var key in methods) {
  10719. if (true) {
  10720. if (typeof methods[key] !== 'function') {
  10721. warn(
  10722. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  10723. "Did you reference the function correctly?",
  10724. vm
  10725. );
  10726. }
  10727. if (props && hasOwn(props, key)) {
  10728. warn(
  10729. ("Method \"" + key + "\" has already been defined as a prop."),
  10730. vm
  10731. );
  10732. }
  10733. if ((key in vm) && isReserved(key)) {
  10734. warn(
  10735. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  10736. "Avoid defining component methods that start with _ or $."
  10737. );
  10738. }
  10739. }
  10740. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  10741. }
  10742. }
  10743. function initWatch (vm, watch) {
  10744. for (var key in watch) {
  10745. var handler = watch[key];
  10746. if (Array.isArray(handler)) {
  10747. for (var i = 0; i < handler.length; i++) {
  10748. createWatcher(vm, key, handler[i]);
  10749. }
  10750. } else {
  10751. createWatcher(vm, key, handler);
  10752. }
  10753. }
  10754. }
  10755. function createWatcher (
  10756. vm,
  10757. expOrFn,
  10758. handler,
  10759. options
  10760. ) {
  10761. if (isPlainObject(handler)) {
  10762. options = handler;
  10763. handler = handler.handler;
  10764. }
  10765. if (typeof handler === 'string') {
  10766. handler = vm[handler];
  10767. }
  10768. return vm.$watch(expOrFn, handler, options)
  10769. }
  10770. function stateMixin (Vue) {
  10771. // flow somehow has problems with directly declared definition object
  10772. // when using Object.defineProperty, so we have to procedurally build up
  10773. // the object here.
  10774. var dataDef = {};
  10775. dataDef.get = function () { return this._data };
  10776. var propsDef = {};
  10777. propsDef.get = function () { return this._props };
  10778. if (true) {
  10779. dataDef.set = function () {
  10780. warn(
  10781. 'Avoid replacing instance root $data. ' +
  10782. 'Use nested data properties instead.',
  10783. this
  10784. );
  10785. };
  10786. propsDef.set = function () {
  10787. warn("$props is readonly.", this);
  10788. };
  10789. }
  10790. Object.defineProperty(Vue.prototype, '$data', dataDef);
  10791. Object.defineProperty(Vue.prototype, '$props', propsDef);
  10792. Vue.prototype.$set = set;
  10793. Vue.prototype.$delete = del;
  10794. Vue.prototype.$watch = function (
  10795. expOrFn,
  10796. cb,
  10797. options
  10798. ) {
  10799. var vm = this;
  10800. if (isPlainObject(cb)) {
  10801. return createWatcher(vm, expOrFn, cb, options)
  10802. }
  10803. options = options || {};
  10804. options.user = true;
  10805. var watcher = new Watcher(vm, expOrFn, cb, options);
  10806. if (options.immediate) {
  10807. try {
  10808. cb.call(vm, watcher.value);
  10809. } catch (error) {
  10810. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  10811. }
  10812. }
  10813. return function unwatchFn () {
  10814. watcher.teardown();
  10815. }
  10816. };
  10817. }
  10818. /* */
  10819. var uid$3 = 0;
  10820. function initMixin (Vue) {
  10821. Vue.prototype._init = function (options) {
  10822. var vm = this;
  10823. // a uid
  10824. vm._uid = uid$3++;
  10825. var startTag, endTag;
  10826. /* istanbul ignore if */
  10827. if ( true && config.performance && mark) {
  10828. startTag = "vue-perf-start:" + (vm._uid);
  10829. endTag = "vue-perf-end:" + (vm._uid);
  10830. mark(startTag);
  10831. }
  10832. // a flag to avoid this being observed
  10833. vm._isVue = true;
  10834. // merge options
  10835. if (options && options._isComponent) {
  10836. // optimize internal component instantiation
  10837. // since dynamic options merging is pretty slow, and none of the
  10838. // internal component options needs special treatment.
  10839. initInternalComponent(vm, options);
  10840. } else {
  10841. vm.$options = mergeOptions(
  10842. resolveConstructorOptions(vm.constructor),
  10843. options || {},
  10844. vm
  10845. );
  10846. }
  10847. /* istanbul ignore else */
  10848. if (true) {
  10849. initProxy(vm);
  10850. } else {}
  10851. // expose real self
  10852. vm._self = vm;
  10853. initLifecycle(vm);
  10854. initEvents(vm);
  10855. initRender(vm);
  10856. callHook(vm, 'beforeCreate');
  10857. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  10858. initState(vm);
  10859. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  10860. !vm._$fallback && callHook(vm, 'created');
  10861. /* istanbul ignore if */
  10862. if ( true && config.performance && mark) {
  10863. vm._name = formatComponentName(vm, false);
  10864. mark(endTag);
  10865. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  10866. }
  10867. if (vm.$options.el) {
  10868. vm.$mount(vm.$options.el);
  10869. }
  10870. };
  10871. }
  10872. function initInternalComponent (vm, options) {
  10873. var opts = vm.$options = Object.create(vm.constructor.options);
  10874. // doing this because it's faster than dynamic enumeration.
  10875. var parentVnode = options._parentVnode;
  10876. opts.parent = options.parent;
  10877. opts._parentVnode = parentVnode;
  10878. var vnodeComponentOptions = parentVnode.componentOptions;
  10879. opts.propsData = vnodeComponentOptions.propsData;
  10880. opts._parentListeners = vnodeComponentOptions.listeners;
  10881. opts._renderChildren = vnodeComponentOptions.children;
  10882. opts._componentTag = vnodeComponentOptions.tag;
  10883. if (options.render) {
  10884. opts.render = options.render;
  10885. opts.staticRenderFns = options.staticRenderFns;
  10886. }
  10887. }
  10888. function resolveConstructorOptions (Ctor) {
  10889. var options = Ctor.options;
  10890. if (Ctor.super) {
  10891. var superOptions = resolveConstructorOptions(Ctor.super);
  10892. var cachedSuperOptions = Ctor.superOptions;
  10893. if (superOptions !== cachedSuperOptions) {
  10894. // super option changed,
  10895. // need to resolve new options.
  10896. Ctor.superOptions = superOptions;
  10897. // check if there are any late-modified/attached options (#4976)
  10898. var modifiedOptions = resolveModifiedOptions(Ctor);
  10899. // update base extend options
  10900. if (modifiedOptions) {
  10901. extend(Ctor.extendOptions, modifiedOptions);
  10902. }
  10903. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  10904. if (options.name) {
  10905. options.components[options.name] = Ctor;
  10906. }
  10907. }
  10908. }
  10909. return options
  10910. }
  10911. function resolveModifiedOptions (Ctor) {
  10912. var modified;
  10913. var latest = Ctor.options;
  10914. var sealed = Ctor.sealedOptions;
  10915. for (var key in latest) {
  10916. if (latest[key] !== sealed[key]) {
  10917. if (!modified) { modified = {}; }
  10918. modified[key] = latest[key];
  10919. }
  10920. }
  10921. return modified
  10922. }
  10923. function Vue (options) {
  10924. if ( true &&
  10925. !(this instanceof Vue)
  10926. ) {
  10927. warn('Vue is a constructor and should be called with the `new` keyword');
  10928. }
  10929. this._init(options);
  10930. }
  10931. initMixin(Vue);
  10932. stateMixin(Vue);
  10933. eventsMixin(Vue);
  10934. lifecycleMixin(Vue);
  10935. renderMixin(Vue);
  10936. /* */
  10937. function initUse (Vue) {
  10938. Vue.use = function (plugin) {
  10939. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  10940. if (installedPlugins.indexOf(plugin) > -1) {
  10941. return this
  10942. }
  10943. // additional parameters
  10944. var args = toArray(arguments, 1);
  10945. args.unshift(this);
  10946. if (typeof plugin.install === 'function') {
  10947. plugin.install.apply(plugin, args);
  10948. } else if (typeof plugin === 'function') {
  10949. plugin.apply(null, args);
  10950. }
  10951. installedPlugins.push(plugin);
  10952. return this
  10953. };
  10954. }
  10955. /* */
  10956. function initMixin$1 (Vue) {
  10957. Vue.mixin = function (mixin) {
  10958. this.options = mergeOptions(this.options, mixin);
  10959. return this
  10960. };
  10961. }
  10962. /* */
  10963. function initExtend (Vue) {
  10964. /**
  10965. * Each instance constructor, including Vue, has a unique
  10966. * cid. This enables us to create wrapped "child
  10967. * constructors" for prototypal inheritance and cache them.
  10968. */
  10969. Vue.cid = 0;
  10970. var cid = 1;
  10971. /**
  10972. * Class inheritance
  10973. */
  10974. Vue.extend = function (extendOptions) {
  10975. extendOptions = extendOptions || {};
  10976. var Super = this;
  10977. var SuperId = Super.cid;
  10978. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  10979. if (cachedCtors[SuperId]) {
  10980. return cachedCtors[SuperId]
  10981. }
  10982. var name = extendOptions.name || Super.options.name;
  10983. if ( true && name) {
  10984. validateComponentName(name);
  10985. }
  10986. var Sub = function VueComponent (options) {
  10987. this._init(options);
  10988. };
  10989. Sub.prototype = Object.create(Super.prototype);
  10990. Sub.prototype.constructor = Sub;
  10991. Sub.cid = cid++;
  10992. Sub.options = mergeOptions(
  10993. Super.options,
  10994. extendOptions
  10995. );
  10996. Sub['super'] = Super;
  10997. // For props and computed properties, we define the proxy getters on
  10998. // the Vue instances at extension time, on the extended prototype. This
  10999. // avoids Object.defineProperty calls for each instance created.
  11000. if (Sub.options.props) {
  11001. initProps$1(Sub);
  11002. }
  11003. if (Sub.options.computed) {
  11004. initComputed$1(Sub);
  11005. }
  11006. // allow further extension/mixin/plugin usage
  11007. Sub.extend = Super.extend;
  11008. Sub.mixin = Super.mixin;
  11009. Sub.use = Super.use;
  11010. // create asset registers, so extended classes
  11011. // can have their private assets too.
  11012. ASSET_TYPES.forEach(function (type) {
  11013. Sub[type] = Super[type];
  11014. });
  11015. // enable recursive self-lookup
  11016. if (name) {
  11017. Sub.options.components[name] = Sub;
  11018. }
  11019. // keep a reference to the super options at extension time.
  11020. // later at instantiation we can check if Super's options have
  11021. // been updated.
  11022. Sub.superOptions = Super.options;
  11023. Sub.extendOptions = extendOptions;
  11024. Sub.sealedOptions = extend({}, Sub.options);
  11025. // cache constructor
  11026. cachedCtors[SuperId] = Sub;
  11027. return Sub
  11028. };
  11029. }
  11030. function initProps$1 (Comp) {
  11031. var props = Comp.options.props;
  11032. for (var key in props) {
  11033. proxy(Comp.prototype, "_props", key);
  11034. }
  11035. }
  11036. function initComputed$1 (Comp) {
  11037. var computed = Comp.options.computed;
  11038. for (var key in computed) {
  11039. defineComputed(Comp.prototype, key, computed[key]);
  11040. }
  11041. }
  11042. /* */
  11043. function initAssetRegisters (Vue) {
  11044. /**
  11045. * Create asset registration methods.
  11046. */
  11047. ASSET_TYPES.forEach(function (type) {
  11048. Vue[type] = function (
  11049. id,
  11050. definition
  11051. ) {
  11052. if (!definition) {
  11053. return this.options[type + 's'][id]
  11054. } else {
  11055. /* istanbul ignore if */
  11056. if ( true && type === 'component') {
  11057. validateComponentName(id);
  11058. }
  11059. if (type === 'component' && isPlainObject(definition)) {
  11060. definition.name = definition.name || id;
  11061. definition = this.options._base.extend(definition);
  11062. }
  11063. if (type === 'directive' && typeof definition === 'function') {
  11064. definition = { bind: definition, update: definition };
  11065. }
  11066. this.options[type + 's'][id] = definition;
  11067. return definition
  11068. }
  11069. };
  11070. });
  11071. }
  11072. /* */
  11073. function getComponentName (opts) {
  11074. return opts && (opts.Ctor.options.name || opts.tag)
  11075. }
  11076. function matches (pattern, name) {
  11077. if (Array.isArray(pattern)) {
  11078. return pattern.indexOf(name) > -1
  11079. } else if (typeof pattern === 'string') {
  11080. return pattern.split(',').indexOf(name) > -1
  11081. } else if (isRegExp(pattern)) {
  11082. return pattern.test(name)
  11083. }
  11084. /* istanbul ignore next */
  11085. return false
  11086. }
  11087. function pruneCache (keepAliveInstance, filter) {
  11088. var cache = keepAliveInstance.cache;
  11089. var keys = keepAliveInstance.keys;
  11090. var _vnode = keepAliveInstance._vnode;
  11091. for (var key in cache) {
  11092. var cachedNode = cache[key];
  11093. if (cachedNode) {
  11094. var name = getComponentName(cachedNode.componentOptions);
  11095. if (name && !filter(name)) {
  11096. pruneCacheEntry(cache, key, keys, _vnode);
  11097. }
  11098. }
  11099. }
  11100. }
  11101. function pruneCacheEntry (
  11102. cache,
  11103. key,
  11104. keys,
  11105. current
  11106. ) {
  11107. var cached$$1 = cache[key];
  11108. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  11109. cached$$1.componentInstance.$destroy();
  11110. }
  11111. cache[key] = null;
  11112. remove(keys, key);
  11113. }
  11114. var patternTypes = [String, RegExp, Array];
  11115. var KeepAlive = {
  11116. name: 'keep-alive',
  11117. abstract: true,
  11118. props: {
  11119. include: patternTypes,
  11120. exclude: patternTypes,
  11121. max: [String, Number]
  11122. },
  11123. created: function created () {
  11124. this.cache = Object.create(null);
  11125. this.keys = [];
  11126. },
  11127. destroyed: function destroyed () {
  11128. for (var key in this.cache) {
  11129. pruneCacheEntry(this.cache, key, this.keys);
  11130. }
  11131. },
  11132. mounted: function mounted () {
  11133. var this$1 = this;
  11134. this.$watch('include', function (val) {
  11135. pruneCache(this$1, function (name) { return matches(val, name); });
  11136. });
  11137. this.$watch('exclude', function (val) {
  11138. pruneCache(this$1, function (name) { return !matches(val, name); });
  11139. });
  11140. },
  11141. render: function render () {
  11142. var slot = this.$slots.default;
  11143. var vnode = getFirstComponentChild(slot);
  11144. var componentOptions = vnode && vnode.componentOptions;
  11145. if (componentOptions) {
  11146. // check pattern
  11147. var name = getComponentName(componentOptions);
  11148. var ref = this;
  11149. var include = ref.include;
  11150. var exclude = ref.exclude;
  11151. if (
  11152. // not included
  11153. (include && (!name || !matches(include, name))) ||
  11154. // excluded
  11155. (exclude && name && matches(exclude, name))
  11156. ) {
  11157. return vnode
  11158. }
  11159. var ref$1 = this;
  11160. var cache = ref$1.cache;
  11161. var keys = ref$1.keys;
  11162. var key = vnode.key == null
  11163. // same constructor may get registered as different local components
  11164. // so cid alone is not enough (#3269)
  11165. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  11166. : vnode.key;
  11167. if (cache[key]) {
  11168. vnode.componentInstance = cache[key].componentInstance;
  11169. // make current key freshest
  11170. remove(keys, key);
  11171. keys.push(key);
  11172. } else {
  11173. cache[key] = vnode;
  11174. keys.push(key);
  11175. // prune oldest entry
  11176. if (this.max && keys.length > parseInt(this.max)) {
  11177. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  11178. }
  11179. }
  11180. vnode.data.keepAlive = true;
  11181. }
  11182. return vnode || (slot && slot[0])
  11183. }
  11184. };
  11185. var builtInComponents = {
  11186. KeepAlive: KeepAlive
  11187. };
  11188. /* */
  11189. function initGlobalAPI (Vue) {
  11190. // config
  11191. var configDef = {};
  11192. configDef.get = function () { return config; };
  11193. if (true) {
  11194. configDef.set = function () {
  11195. warn(
  11196. 'Do not replace the Vue.config object, set individual fields instead.'
  11197. );
  11198. };
  11199. }
  11200. Object.defineProperty(Vue, 'config', configDef);
  11201. // exposed util methods.
  11202. // NOTE: these are not considered part of the public API - avoid relying on
  11203. // them unless you are aware of the risk.
  11204. Vue.util = {
  11205. warn: warn,
  11206. extend: extend,
  11207. mergeOptions: mergeOptions,
  11208. defineReactive: defineReactive$$1
  11209. };
  11210. Vue.set = set;
  11211. Vue.delete = del;
  11212. Vue.nextTick = nextTick;
  11213. // 2.6 explicit observable API
  11214. Vue.observable = function (obj) {
  11215. observe(obj);
  11216. return obj
  11217. };
  11218. Vue.options = Object.create(null);
  11219. ASSET_TYPES.forEach(function (type) {
  11220. Vue.options[type + 's'] = Object.create(null);
  11221. });
  11222. // this is used to identify the "base" constructor to extend all plain-object
  11223. // components with in Weex's multi-instance scenarios.
  11224. Vue.options._base = Vue;
  11225. extend(Vue.options.components, builtInComponents);
  11226. initUse(Vue);
  11227. initMixin$1(Vue);
  11228. initExtend(Vue);
  11229. initAssetRegisters(Vue);
  11230. }
  11231. initGlobalAPI(Vue);
  11232. Object.defineProperty(Vue.prototype, '$isServer', {
  11233. get: isServerRendering
  11234. });
  11235. Object.defineProperty(Vue.prototype, '$ssrContext', {
  11236. get: function get () {
  11237. /* istanbul ignore next */
  11238. return this.$vnode && this.$vnode.ssrContext
  11239. }
  11240. });
  11241. // expose FunctionalRenderContext for ssr runtime helper installation
  11242. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  11243. value: FunctionalRenderContext
  11244. });
  11245. Vue.version = '2.6.11';
  11246. /**
  11247. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  11248. */
  11249. var ARRAYTYPE = '[object Array]';
  11250. var OBJECTTYPE = '[object Object]';
  11251. // const FUNCTIONTYPE = '[object Function]'
  11252. function diff(current, pre) {
  11253. var result = {};
  11254. syncKeys(current, pre);
  11255. _diff(current, pre, '', result);
  11256. return result
  11257. }
  11258. function syncKeys(current, pre) {
  11259. if (current === pre) { return }
  11260. var rootCurrentType = type(current);
  11261. var rootPreType = type(pre);
  11262. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  11263. if(Object.keys(current).length >= Object.keys(pre).length){
  11264. for (var key in pre) {
  11265. var currentValue = current[key];
  11266. if (currentValue === undefined) {
  11267. current[key] = null;
  11268. } else {
  11269. syncKeys(currentValue, pre[key]);
  11270. }
  11271. }
  11272. }
  11273. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  11274. if (current.length >= pre.length) {
  11275. pre.forEach(function (item, index) {
  11276. syncKeys(current[index], item);
  11277. });
  11278. }
  11279. }
  11280. }
  11281. function _diff(current, pre, path, result) {
  11282. if (current === pre) { return }
  11283. var rootCurrentType = type(current);
  11284. var rootPreType = type(pre);
  11285. if (rootCurrentType == OBJECTTYPE) {
  11286. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  11287. setResult(result, path, current);
  11288. } else {
  11289. var loop = function ( key ) {
  11290. var currentValue = current[key];
  11291. var preValue = pre[key];
  11292. var currentType = type(currentValue);
  11293. var preType = type(preValue);
  11294. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  11295. // NOTE 此处将 != 修改为 !==。涉及地方太多恐怕测试不到,如果出现数据对比问题,将其修改回来。
  11296. if (currentValue !== pre[key]) {
  11297. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  11298. }
  11299. } else if (currentType == ARRAYTYPE) {
  11300. if (preType != ARRAYTYPE) {
  11301. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  11302. } else {
  11303. if (currentValue.length < preValue.length) {
  11304. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  11305. } else {
  11306. currentValue.forEach(function (item, index) {
  11307. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  11308. });
  11309. }
  11310. }
  11311. } else if (currentType == OBJECTTYPE) {
  11312. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  11313. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  11314. } else {
  11315. for (var subKey in currentValue) {
  11316. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  11317. }
  11318. }
  11319. }
  11320. };
  11321. for (var key in current) loop( key );
  11322. }
  11323. } else if (rootCurrentType == ARRAYTYPE) {
  11324. if (rootPreType != ARRAYTYPE) {
  11325. setResult(result, path, current);
  11326. } else {
  11327. if (current.length < pre.length) {
  11328. setResult(result, path, current);
  11329. } else {
  11330. current.forEach(function (item, index) {
  11331. _diff(item, pre[index], path + '[' + index + ']', result);
  11332. });
  11333. }
  11334. }
  11335. } else {
  11336. setResult(result, path, current);
  11337. }
  11338. }
  11339. function setResult(result, k, v) {
  11340. // if (type(v) != FUNCTIONTYPE) {
  11341. result[k] = v;
  11342. // }
  11343. }
  11344. function type(obj) {
  11345. return Object.prototype.toString.call(obj)
  11346. }
  11347. /* */
  11348. function flushCallbacks$1(vm) {
  11349. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  11350. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"pet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  11351. var mpInstance = vm.$scope;
  11352. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  11353. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  11354. }
  11355. var copies = vm.__next_tick_callbacks.slice(0);
  11356. vm.__next_tick_callbacks.length = 0;
  11357. for (var i = 0; i < copies.length; i++) {
  11358. copies[i]();
  11359. }
  11360. }
  11361. }
  11362. function hasRenderWatcher(vm) {
  11363. return queue.find(function (watcher) { return vm._watcher === watcher; })
  11364. }
  11365. function nextTick$1(vm, cb) {
  11366. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  11367. //2.nextTick 之前存在 render watcher
  11368. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  11369. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"pet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  11370. var mpInstance = vm.$scope;
  11371. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  11372. ']:nextVueTick');
  11373. }
  11374. return nextTick(cb, vm)
  11375. }else{
  11376. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"pet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  11377. var mpInstance$1 = vm.$scope;
  11378. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  11379. ']:nextMPTick');
  11380. }
  11381. }
  11382. var _resolve;
  11383. if (!vm.__next_tick_callbacks) {
  11384. vm.__next_tick_callbacks = [];
  11385. }
  11386. vm.__next_tick_callbacks.push(function () {
  11387. if (cb) {
  11388. try {
  11389. cb.call(vm);
  11390. } catch (e) {
  11391. handleError(e, vm, 'nextTick');
  11392. }
  11393. } else if (_resolve) {
  11394. _resolve(vm);
  11395. }
  11396. });
  11397. // $flow-disable-line
  11398. if (!cb && typeof Promise !== 'undefined') {
  11399. return new Promise(function (resolve) {
  11400. _resolve = resolve;
  11401. })
  11402. }
  11403. }
  11404. /* */
  11405. function cloneWithData(vm) {
  11406. // 确保当前 vm 所有数据被同步
  11407. var ret = Object.create(null);
  11408. var dataKeys = [].concat(
  11409. Object.keys(vm._data || {}),
  11410. Object.keys(vm._computedWatchers || {}));
  11411. dataKeys.reduce(function(ret, key) {
  11412. ret[key] = vm[key];
  11413. return ret
  11414. }, ret);
  11415. // vue-composition-api
  11416. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  11417. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  11418. if (rawBindings) {
  11419. Object.keys(rawBindings).forEach(function (key) {
  11420. ret[key] = vm[key];
  11421. });
  11422. }
  11423. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  11424. Object.assign(ret, vm.$mp.data || {});
  11425. if (
  11426. Array.isArray(vm.$options.behaviors) &&
  11427. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  11428. ) { //form-field
  11429. ret['name'] = vm.name;
  11430. ret['value'] = vm.value;
  11431. }
  11432. return JSON.parse(JSON.stringify(ret))
  11433. }
  11434. var patch = function(oldVnode, vnode) {
  11435. var this$1 = this;
  11436. if (vnode === null) { //destroy
  11437. return
  11438. }
  11439. if (this.mpType === 'page' || this.mpType === 'component') {
  11440. var mpInstance = this.$scope;
  11441. var data = Object.create(null);
  11442. try {
  11443. data = cloneWithData(this);
  11444. } catch (err) {
  11445. console.error(err);
  11446. }
  11447. data.__webviewId__ = mpInstance.data.__webviewId__;
  11448. var mpData = Object.create(null);
  11449. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  11450. mpData[key] = mpInstance.data[key];
  11451. });
  11452. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  11453. if (Object.keys(diffData).length) {
  11454. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"pet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  11455. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  11456. ']差量更新',
  11457. JSON.stringify(diffData));
  11458. }
  11459. this.__next_tick_pending = true;
  11460. mpInstance.setData(diffData, function () {
  11461. this$1.__next_tick_pending = false;
  11462. flushCallbacks$1(this$1);
  11463. });
  11464. } else {
  11465. flushCallbacks$1(this);
  11466. }
  11467. }
  11468. };
  11469. /* */
  11470. function createEmptyRender() {
  11471. }
  11472. function mountComponent$1(
  11473. vm,
  11474. el,
  11475. hydrating
  11476. ) {
  11477. if (!vm.mpType) {//main.js 中的 new Vue
  11478. return vm
  11479. }
  11480. if (vm.mpType === 'app') {
  11481. vm.$options.render = createEmptyRender;
  11482. }
  11483. if (!vm.$options.render) {
  11484. vm.$options.render = createEmptyRender;
  11485. if (true) {
  11486. /* istanbul ignore if */
  11487. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  11488. vm.$options.el || el) {
  11489. warn(
  11490. 'You are using the runtime-only build of Vue where the template ' +
  11491. 'compiler is not available. Either pre-compile the templates into ' +
  11492. 'render functions, or use the compiler-included build.',
  11493. vm
  11494. );
  11495. } else {
  11496. warn(
  11497. 'Failed to mount component: template or render function not defined.',
  11498. vm
  11499. );
  11500. }
  11501. }
  11502. }
  11503. !vm._$fallback && callHook(vm, 'beforeMount');
  11504. var updateComponent = function () {
  11505. vm._update(vm._render(), hydrating);
  11506. };
  11507. // we set this to vm._watcher inside the watcher's constructor
  11508. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  11509. // component's mounted hook), which relies on vm._watcher being already defined
  11510. new Watcher(vm, updateComponent, noop, {
  11511. before: function before() {
  11512. if (vm._isMounted && !vm._isDestroyed) {
  11513. callHook(vm, 'beforeUpdate');
  11514. }
  11515. }
  11516. }, true /* isRenderWatcher */);
  11517. hydrating = false;
  11518. return vm
  11519. }
  11520. /* */
  11521. function renderClass (
  11522. staticClass,
  11523. dynamicClass
  11524. ) {
  11525. if (isDef(staticClass) || isDef(dynamicClass)) {
  11526. return concat(staticClass, stringifyClass(dynamicClass))
  11527. }
  11528. /* istanbul ignore next */
  11529. return ''
  11530. }
  11531. function concat (a, b) {
  11532. return a ? b ? (a + ' ' + b) : a : (b || '')
  11533. }
  11534. function stringifyClass (value) {
  11535. if (Array.isArray(value)) {
  11536. return stringifyArray(value)
  11537. }
  11538. if (isObject(value)) {
  11539. return stringifyObject(value)
  11540. }
  11541. if (typeof value === 'string') {
  11542. return value
  11543. }
  11544. /* istanbul ignore next */
  11545. return ''
  11546. }
  11547. function stringifyArray (value) {
  11548. var res = '';
  11549. var stringified;
  11550. for (var i = 0, l = value.length; i < l; i++) {
  11551. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  11552. if (res) { res += ' '; }
  11553. res += stringified;
  11554. }
  11555. }
  11556. return res
  11557. }
  11558. function stringifyObject (value) {
  11559. var res = '';
  11560. for (var key in value) {
  11561. if (value[key]) {
  11562. if (res) { res += ' '; }
  11563. res += key;
  11564. }
  11565. }
  11566. return res
  11567. }
  11568. /* */
  11569. var parseStyleText = cached(function (cssText) {
  11570. var res = {};
  11571. var listDelimiter = /;(?![^(]*\))/g;
  11572. var propertyDelimiter = /:(.+)/;
  11573. cssText.split(listDelimiter).forEach(function (item) {
  11574. if (item) {
  11575. var tmp = item.split(propertyDelimiter);
  11576. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  11577. }
  11578. });
  11579. return res
  11580. });
  11581. // normalize possible array / string values into Object
  11582. function normalizeStyleBinding (bindingStyle) {
  11583. if (Array.isArray(bindingStyle)) {
  11584. return toObject(bindingStyle)
  11585. }
  11586. if (typeof bindingStyle === 'string') {
  11587. return parseStyleText(bindingStyle)
  11588. }
  11589. return bindingStyle
  11590. }
  11591. /* */
  11592. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  11593. function getTarget(obj, path) {
  11594. var parts = path.split('.');
  11595. var key = parts[0];
  11596. if (key.indexOf('__$n') === 0) { //number index
  11597. key = parseInt(key.replace('__$n', ''));
  11598. }
  11599. if (parts.length === 1) {
  11600. return obj[key]
  11601. }
  11602. return getTarget(obj[key], parts.slice(1).join('.'))
  11603. }
  11604. function internalMixin(Vue) {
  11605. Vue.config.errorHandler = function(err, vm, info) {
  11606. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  11607. console.error(err);
  11608. /* eslint-disable no-undef */
  11609. var app = typeof getApp === 'function' && getApp();
  11610. if (app && app.onError) {
  11611. app.onError(err);
  11612. }
  11613. };
  11614. var oldEmit = Vue.prototype.$emit;
  11615. Vue.prototype.$emit = function(event) {
  11616. if (this.$scope && event) {
  11617. this.$scope['triggerEvent'](event, {
  11618. __args__: toArray(arguments, 1)
  11619. });
  11620. }
  11621. return oldEmit.apply(this, arguments)
  11622. };
  11623. Vue.prototype.$nextTick = function(fn) {
  11624. return nextTick$1(this, fn)
  11625. };
  11626. MP_METHODS.forEach(function (method) {
  11627. Vue.prototype[method] = function(args) {
  11628. if (this.$scope && this.$scope[method]) {
  11629. return this.$scope[method](args)
  11630. }
  11631. // mp-alipay
  11632. if (typeof my === 'undefined') {
  11633. return
  11634. }
  11635. if (method === 'createSelectorQuery') {
  11636. /* eslint-disable no-undef */
  11637. return my.createSelectorQuery(args)
  11638. } else if (method === 'createIntersectionObserver') {
  11639. /* eslint-disable no-undef */
  11640. return my.createIntersectionObserver(args)
  11641. }
  11642. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  11643. };
  11644. });
  11645. Vue.prototype.__init_provide = initProvide;
  11646. Vue.prototype.__init_injections = initInjections;
  11647. Vue.prototype.__call_hook = function(hook, args) {
  11648. var vm = this;
  11649. // #7573 disable dep collection when invoking lifecycle hooks
  11650. pushTarget();
  11651. var handlers = vm.$options[hook];
  11652. var info = hook + " hook";
  11653. var ret;
  11654. if (handlers) {
  11655. for (var i = 0, j = handlers.length; i < j; i++) {
  11656. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  11657. }
  11658. }
  11659. if (vm._hasHookEvent) {
  11660. vm.$emit('hook:' + hook, args);
  11661. }
  11662. popTarget();
  11663. return ret
  11664. };
  11665. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  11666. if (Array.isArray(modifiers)) {
  11667. if (modifiers.indexOf('trim') !== -1) {
  11668. value = value.trim();
  11669. }
  11670. if (modifiers.indexOf('number') !== -1) {
  11671. value = this._n(value);
  11672. }
  11673. }
  11674. if (!target) {
  11675. target = this;
  11676. }
  11677. target[key] = value;
  11678. };
  11679. Vue.prototype.__set_sync = function(target, key, value) {
  11680. if (!target) {
  11681. target = this;
  11682. }
  11683. target[key] = value;
  11684. };
  11685. Vue.prototype.__get_orig = function(item) {
  11686. if (isPlainObject(item)) {
  11687. return item['$orig'] || item
  11688. }
  11689. return item
  11690. };
  11691. Vue.prototype.__get_value = function(dataPath, target) {
  11692. return getTarget(target || this, dataPath)
  11693. };
  11694. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  11695. return renderClass(staticClass, dynamicClass)
  11696. };
  11697. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  11698. if (!dynamicStyle && !staticStyle) {
  11699. return ''
  11700. }
  11701. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  11702. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  11703. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  11704. };
  11705. Vue.prototype.__map = function(val, iteratee) {
  11706. //TODO 暂不考虑 string
  11707. var ret, i, l, keys, key;
  11708. if (Array.isArray(val)) {
  11709. ret = new Array(val.length);
  11710. for (i = 0, l = val.length; i < l; i++) {
  11711. ret[i] = iteratee(val[i], i);
  11712. }
  11713. return ret
  11714. } else if (isObject(val)) {
  11715. keys = Object.keys(val);
  11716. ret = Object.create(null);
  11717. for (i = 0, l = keys.length; i < l; i++) {
  11718. key = keys[i];
  11719. ret[key] = iteratee(val[key], key, i);
  11720. }
  11721. return ret
  11722. } else if (typeof val === 'number') {
  11723. ret = new Array(val);
  11724. for (i = 0, l = val; i < l; i++) {
  11725. // 第一个参数暂时仍和小程序一致
  11726. ret[i] = iteratee(i, i);
  11727. }
  11728. return ret
  11729. }
  11730. return []
  11731. };
  11732. }
  11733. /* */
  11734. var LIFECYCLE_HOOKS$1 = [
  11735. //App
  11736. 'onLaunch',
  11737. 'onShow',
  11738. 'onHide',
  11739. 'onUniNViewMessage',
  11740. 'onPageNotFound',
  11741. 'onThemeChange',
  11742. 'onError',
  11743. 'onUnhandledRejection',
  11744. //Page
  11745. 'onInit',
  11746. 'onLoad',
  11747. // 'onShow',
  11748. 'onReady',
  11749. // 'onHide',
  11750. 'onUnload',
  11751. 'onPullDownRefresh',
  11752. 'onReachBottom',
  11753. 'onTabItemTap',
  11754. 'onAddToFavorites',
  11755. 'onShareTimeline',
  11756. 'onShareAppMessage',
  11757. 'onResize',
  11758. 'onPageScroll',
  11759. 'onNavigationBarButtonTap',
  11760. 'onBackPress',
  11761. 'onNavigationBarSearchInputChanged',
  11762. 'onNavigationBarSearchInputConfirmed',
  11763. 'onNavigationBarSearchInputClicked',
  11764. //Component
  11765. // 'onReady', // 兼容旧版本,应该移除该事件
  11766. 'onPageShow',
  11767. 'onPageHide',
  11768. 'onPageResize'
  11769. ];
  11770. function lifecycleMixin$1(Vue) {
  11771. //fixed vue-class-component
  11772. var oldExtend = Vue.extend;
  11773. Vue.extend = function(extendOptions) {
  11774. extendOptions = extendOptions || {};
  11775. var methods = extendOptions.methods;
  11776. if (methods) {
  11777. Object.keys(methods).forEach(function (methodName) {
  11778. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  11779. extendOptions[methodName] = methods[methodName];
  11780. delete methods[methodName];
  11781. }
  11782. });
  11783. }
  11784. return oldExtend.call(this, extendOptions)
  11785. };
  11786. var strategies = Vue.config.optionMergeStrategies;
  11787. var mergeHook = strategies.created;
  11788. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  11789. strategies[hook] = mergeHook;
  11790. });
  11791. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  11792. }
  11793. /* */
  11794. // install platform patch function
  11795. Vue.prototype.__patch__ = patch;
  11796. // public mount method
  11797. Vue.prototype.$mount = function(
  11798. el ,
  11799. hydrating
  11800. ) {
  11801. return mountComponent$1(this, el, hydrating)
  11802. };
  11803. lifecycleMixin$1(Vue);
  11804. internalMixin(Vue);
  11805. /* */
  11806. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  11807. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  11808. /***/ }),
  11809. /***/ 30:
  11810. /*!*************************************************************************************!*\
  11811. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/type2icon.js ***!
  11812. \*************************************************************************************/
  11813. /*! no static exports found */
  11814. /***/ (function(module, exports, __webpack_require__) {
  11815. "use strict";
  11816. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; /**
  11817. * 根据主题type值,获取对应的图标
  11818. * @param String type 主题名称,primary|info|error|warning|success
  11819. * @param String fill 是否使用fill填充实体的图标
  11820. */
  11821. function type2icon() {var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  11822. // 如果非预置值,默认为success
  11823. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  11824. var iconName = '';
  11825. // 目前(2019-12-12),info和primary使用同一个图标
  11826. switch (type) {
  11827. case 'primary':
  11828. iconName = 'info-circle';
  11829. break;
  11830. case 'info':
  11831. iconName = 'info-circle';
  11832. break;
  11833. case 'error':
  11834. iconName = 'close-circle';
  11835. break;
  11836. case 'warning':
  11837. iconName = 'error-circle';
  11838. break;
  11839. case 'success':
  11840. iconName = 'checkmark-circle';
  11841. break;
  11842. default:
  11843. iconName = 'checkmark-circle';}
  11844. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  11845. if (fill) iconName += '-fill';
  11846. return iconName;
  11847. }var _default =
  11848. type2icon;exports.default = _default;
  11849. /***/ }),
  11850. /***/ 31:
  11851. /*!***************************************************************************************!*\
  11852. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/randomArray.js ***!
  11853. \***************************************************************************************/
  11854. /*! no static exports found */
  11855. /***/ (function(module, exports, __webpack_require__) {
  11856. "use strict";
  11857. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 打乱数组
  11858. function randomArray() {var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  11859. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  11860. return array.sort(function () {return Math.random() - 0.5;});
  11861. }var _default =
  11862. randomArray;exports.default = _default;
  11863. /***/ }),
  11864. /***/ 32:
  11865. /*!***********************************************************************************!*\
  11866. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/addUnit.js ***!
  11867. \***********************************************************************************/
  11868. /*! no static exports found */
  11869. /***/ (function(module, exports, __webpack_require__) {
  11870. "use strict";
  11871. Object.defineProperty(exports, "__esModule", { value: true });exports.default = addUnit;var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 22));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  11872. // 添加单位,如果有rpx,%,px等单位结尾或者值为auto,直接返回,否则加上rpx单位结尾
  11873. function addUnit() {var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rpx';
  11874. value = String(value);
  11875. // 用uView内置验证规则中的number判断是否为数值
  11876. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  11877. }
  11878. /***/ }),
  11879. /***/ 33:
  11880. /*!**********************************************************************************!*\
  11881. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/random.js ***!
  11882. \**********************************************************************************/
  11883. /*! no static exports found */
  11884. /***/ (function(module, exports, __webpack_require__) {
  11885. "use strict";
  11886. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function random(min, max) {
  11887. if (min >= 0 && max > 0 && max >= min) {
  11888. var gab = max - min + 1;
  11889. return Math.floor(Math.random() * gab + min);
  11890. } else {
  11891. return 0;
  11892. }
  11893. }var _default =
  11894. random;exports.default = _default;
  11895. /***/ }),
  11896. /***/ 34:
  11897. /*!********************************************************************************!*\
  11898. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/trim.js ***!
  11899. \********************************************************************************/
  11900. /*! no static exports found */
  11901. /***/ (function(module, exports, __webpack_require__) {
  11902. "use strict";
  11903. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function trim(str) {var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  11904. if (pos == 'both') {
  11905. return str.replace(/^\s+|\s+$/g, "");
  11906. } else if (pos == "left") {
  11907. return str.replace(/^\s*/, '');
  11908. } else if (pos == 'right') {
  11909. return str.replace(/(\s*$)/g, "");
  11910. } else if (pos == 'all') {
  11911. return str.replace(/\s+/g, "");
  11912. } else {
  11913. return str;
  11914. }
  11915. }var _default =
  11916. trim;exports.default = _default;
  11917. /***/ }),
  11918. /***/ 35:
  11919. /*!*********************************************************************************!*\
  11920. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/toast.js ***!
  11921. \*********************************************************************************/
  11922. /*! no static exports found */
  11923. /***/ (function(module, exports, __webpack_require__) {
  11924. "use strict";
  11925. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;function toast(title) {var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1500;
  11926. uni.showToast({
  11927. title: title,
  11928. icon: 'none',
  11929. duration: duration });
  11930. }var _default =
  11931. toast;exports.default = _default;
  11932. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  11933. /***/ }),
  11934. /***/ 36:
  11935. /*!*************************************************************************************!*\
  11936. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/getParent.js ***!
  11937. \*************************************************************************************/
  11938. /*! no static exports found */
  11939. /***/ (function(module, exports, __webpack_require__) {
  11940. "use strict";
  11941. Object.defineProperty(exports, "__esModule", { value: true });exports.default = getParent; // 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  11942. // this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  11943. function getParent(name, keys) {
  11944. var parent = this.$parent;
  11945. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  11946. while (parent) {
  11947. // 父组件
  11948. if (parent.$options.name !== name) {
  11949. // 如果组件的name不相等,继续上一级寻找
  11950. parent = parent.$parent;
  11951. } else {var _ret = function () {
  11952. var data = {};
  11953. // 判断keys是否数组,如果传过来的是一个数组,那么直接使用数组元素值当做键值去父组件寻找
  11954. if (Array.isArray(keys)) {
  11955. keys.map(function (val) {
  11956. data[val] = parent[val] ? parent[val] : '';
  11957. });
  11958. } else {
  11959. // 历遍传过来的对象参数
  11960. for (var i in keys) {
  11961. // 如果子组件有此值则用,无此值则用父组件的值
  11962. // 判断是否空数组,如果是,则用父组件的值,否则用子组件的值
  11963. if (Array.isArray(keys[i])) {
  11964. if (keys[i].length) {
  11965. data[i] = keys[i];
  11966. } else {
  11967. data[i] = parent[i];
  11968. }
  11969. } else if (keys[i].constructor === Object) {
  11970. // 判断是否对象,如果是对象,且有属性,那么使用子组件的值,否则使用父组件的值
  11971. if (Object.keys(keys[i]).length) {
  11972. data[i] = keys[i];
  11973. } else {
  11974. data[i] = parent[i];
  11975. }
  11976. } else {
  11977. // 只要子组件有传值,即使是false值,也是“传值”了,也需要覆盖父组件的同名参数
  11978. data[i] = keys[i] || keys[i] === false ? keys[i] : parent[i];
  11979. }
  11980. }
  11981. }
  11982. return { v: data };}();if (typeof _ret === "object") return _ret.v;
  11983. }
  11984. }
  11985. return {};
  11986. }
  11987. /***/ }),
  11988. /***/ 37:
  11989. /*!***********************************************************************************!*\
  11990. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/$parent.js ***!
  11991. \***********************************************************************************/
  11992. /*! no static exports found */
  11993. /***/ (function(module, exports, __webpack_require__) {
  11994. "use strict";
  11995. Object.defineProperty(exports, "__esModule", { value: true });exports.default = $parent; // 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  11996. // this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  11997. // 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  11998. // 值(默认为undefined),就是查找最顶层的$parent
  11999. function $parent() {var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  12000. var parent = this.$parent;
  12001. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  12002. while (parent) {
  12003. // 父组件
  12004. if (parent.$options && parent.$options.name !== name) {
  12005. // 如果组件的name不相等,继续上一级寻找
  12006. parent = parent.$parent;
  12007. } else {
  12008. return parent;
  12009. }
  12010. }
  12011. return false;
  12012. }
  12013. /***/ }),
  12014. /***/ 38:
  12015. /*!*******************************************************************************!*\
  12016. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/sys.js ***!
  12017. \*******************************************************************************/
  12018. /*! no static exports found */
  12019. /***/ (function(module, exports, __webpack_require__) {
  12020. "use strict";
  12021. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.os = os;exports.sys = sys;function os() {
  12022. return uni.getSystemInfoSync().platform;
  12023. };
  12024. function sys() {
  12025. return uni.getSystemInfoSync();
  12026. }
  12027. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  12028. /***/ }),
  12029. /***/ 39:
  12030. /*!************************************************************************************!*\
  12031. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/debounce.js ***!
  12032. \************************************************************************************/
  12033. /*! no static exports found */
  12034. /***/ (function(module, exports, __webpack_require__) {
  12035. "use strict";
  12036. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var timeout = null;
  12037. /**
  12038. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  12039. *
  12040. * @param {Function} func 要执行的回调函数
  12041. * @param {Number} wait 延时的时间
  12042. * @param {Boolean} immediate 是否立即执行
  12043. * @return null
  12044. */
  12045. function debounce(func) {var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  12046. // 清除定时器
  12047. if (timeout !== null) clearTimeout(timeout);
  12048. // 立即执行,此类情况一般用不到
  12049. if (immediate) {
  12050. var callNow = !timeout;
  12051. timeout = setTimeout(function () {
  12052. timeout = null;
  12053. }, wait);
  12054. if (callNow) typeof func === 'function' && func();
  12055. } else {
  12056. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  12057. timeout = setTimeout(function () {
  12058. typeof func === 'function' && func();
  12059. }, wait);
  12060. }
  12061. }var _default =
  12062. debounce;exports.default = _default;
  12063. /***/ }),
  12064. /***/ 4:
  12065. /*!*************************************************************!*\
  12066. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  12067. \*************************************************************/
  12068. /*! no static exports found */
  12069. /***/ (function(module, exports, __webpack_require__) {
  12070. "use strict";
  12071. /* WEBPACK VAR INJECTION */(function(uni, global) {Object.defineProperty(exports, "__esModule", { value: true });exports.compileI18nJsonStr = compileI18nJsonStr;exports.hasI18nJson = hasI18nJson;exports.initVueI18n = initVueI18n;exports.isI18nStr = isI18nStr;exports.normalizeLocale = normalizeLocale;exports.parseI18nJson = parseI18nJson;exports.resolveLocale = resolveLocale;exports.isString = exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) {arr2[i] = arr[i];}return arr2;}function _iterableToArrayLimit(arr, i) {if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;} finally {try {if (!_n && _i["return"] != null) _i["return"]();} finally {if (_d) throw _e;}}return _arr;}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}function _classCallCheck(instance, Constructor) {if (!(instance instanceof Constructor)) {throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target, props) {for (var i = 0; i < props.length; i++) {var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);}}function _createClass(Constructor, protoProps, staticProps) {if (protoProps) _defineProperties(Constructor.prototype, protoProps);if (staticProps) _defineProperties(Constructor, staticProps);return Constructor;}var isArray = Array.isArray;
  12072. var isObject = function isObject(val) {return val !== null && typeof val === 'object';};
  12073. var defaultDelimiters = ['{', '}'];var
  12074. BaseFormatter = /*#__PURE__*/function () {
  12075. function BaseFormatter() {_classCallCheck(this, BaseFormatter);
  12076. this._caches = Object.create(null);
  12077. }_createClass(BaseFormatter, [{ key: "interpolate", value: function interpolate(
  12078. message, values) {var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  12079. if (!values) {
  12080. return [message];
  12081. }
  12082. var tokens = this._caches[message];
  12083. if (!tokens) {
  12084. tokens = parse(message, delimiters);
  12085. this._caches[message] = tokens;
  12086. }
  12087. return compile(tokens, values);
  12088. } }]);return BaseFormatter;}();exports.Formatter = BaseFormatter;
  12089. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  12090. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  12091. function parse(format, _ref) {var _ref2 = _slicedToArray(_ref, 2),startDelimiter = _ref2[0],endDelimiter = _ref2[1];
  12092. var tokens = [];
  12093. var position = 0;
  12094. var text = '';
  12095. while (position < format.length) {
  12096. var char = format[position++];
  12097. if (char === startDelimiter) {
  12098. if (text) {
  12099. tokens.push({ type: 'text', value: text });
  12100. }
  12101. text = '';
  12102. var sub = '';
  12103. char = format[position++];
  12104. while (char !== undefined && char !== endDelimiter) {
  12105. sub += char;
  12106. char = format[position++];
  12107. }
  12108. var isClosed = char === endDelimiter;
  12109. var type = RE_TOKEN_LIST_VALUE.test(sub) ?
  12110. 'list' :
  12111. isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ?
  12112. 'named' :
  12113. 'unknown';
  12114. tokens.push({ value: sub, type: type });
  12115. }
  12116. // else if (char === '%') {
  12117. // // when found rails i18n syntax, skip text capture
  12118. // if (format[position] !== '{') {
  12119. // text += char
  12120. // }
  12121. // }
  12122. else {
  12123. text += char;
  12124. }
  12125. }
  12126. text && tokens.push({ type: 'text', value: text });
  12127. return tokens;
  12128. }
  12129. function compile(tokens, values) {
  12130. var compiled = [];
  12131. var index = 0;
  12132. var mode = isArray(values) ?
  12133. 'list' :
  12134. isObject(values) ?
  12135. 'named' :
  12136. 'unknown';
  12137. if (mode === 'unknown') {
  12138. return compiled;
  12139. }
  12140. while (index < tokens.length) {
  12141. var token = tokens[index];
  12142. switch (token.type) {
  12143. case 'text':
  12144. compiled.push(token.value);
  12145. break;
  12146. case 'list':
  12147. compiled.push(values[parseInt(token.value, 10)]);
  12148. break;
  12149. case 'named':
  12150. if (mode === 'named') {
  12151. compiled.push(values[token.value]);
  12152. } else
  12153. {
  12154. if (true) {
  12155. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  12156. }
  12157. }
  12158. break;
  12159. case 'unknown':
  12160. if (true) {
  12161. console.warn("Detect 'unknown' type of token!");
  12162. }
  12163. break;}
  12164. index++;
  12165. }
  12166. return compiled;
  12167. }
  12168. var LOCALE_ZH_HANS = 'zh-Hans';exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  12169. var LOCALE_ZH_HANT = 'zh-Hant';exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  12170. var LOCALE_EN = 'en';exports.LOCALE_EN = LOCALE_EN;
  12171. var LOCALE_FR = 'fr';exports.LOCALE_FR = LOCALE_FR;
  12172. var LOCALE_ES = 'es';exports.LOCALE_ES = LOCALE_ES;
  12173. var hasOwnProperty = Object.prototype.hasOwnProperty;
  12174. var hasOwn = function hasOwn(val, key) {return hasOwnProperty.call(val, key);};
  12175. var defaultFormatter = new BaseFormatter();
  12176. function include(str, parts) {
  12177. return !!parts.find(function (part) {return str.indexOf(part) !== -1;});
  12178. }
  12179. function startsWith(str, parts) {
  12180. return parts.find(function (part) {return str.indexOf(part) === 0;});
  12181. }
  12182. function normalizeLocale(locale, messages) {
  12183. if (!locale) {
  12184. return;
  12185. }
  12186. locale = locale.trim().replace(/_/g, '-');
  12187. if (messages && messages[locale]) {
  12188. return locale;
  12189. }
  12190. locale = locale.toLowerCase();
  12191. if (locale.indexOf('zh') === 0) {
  12192. if (locale.indexOf('-hans') > -1) {
  12193. return LOCALE_ZH_HANS;
  12194. }
  12195. if (locale.indexOf('-hant') > -1) {
  12196. return LOCALE_ZH_HANT;
  12197. }
  12198. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  12199. return LOCALE_ZH_HANT;
  12200. }
  12201. return LOCALE_ZH_HANS;
  12202. }
  12203. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  12204. if (lang) {
  12205. return lang;
  12206. }
  12207. }var
  12208. I18n = /*#__PURE__*/function () {
  12209. function I18n(_ref3) {var locale = _ref3.locale,fallbackLocale = _ref3.fallbackLocale,messages = _ref3.messages,watcher = _ref3.watcher,formater = _ref3.formater;_classCallCheck(this, I18n);
  12210. this.locale = LOCALE_EN;
  12211. this.fallbackLocale = LOCALE_EN;
  12212. this.message = {};
  12213. this.messages = {};
  12214. this.watchers = [];
  12215. if (fallbackLocale) {
  12216. this.fallbackLocale = fallbackLocale;
  12217. }
  12218. this.formater = formater || defaultFormatter;
  12219. this.messages = messages || {};
  12220. this.setLocale(locale || LOCALE_EN);
  12221. if (watcher) {
  12222. this.watchLocale(watcher);
  12223. }
  12224. }_createClass(I18n, [{ key: "setLocale", value: function setLocale(
  12225. locale) {var _this = this;
  12226. var oldLocale = this.locale;
  12227. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  12228. if (!this.messages[this.locale]) {
  12229. // 可能初始化时不存在
  12230. this.messages[this.locale] = {};
  12231. }
  12232. this.message = this.messages[this.locale];
  12233. // 仅发生变化时,通知
  12234. if (oldLocale !== this.locale) {
  12235. this.watchers.forEach(function (watcher) {
  12236. watcher(_this.locale, oldLocale);
  12237. });
  12238. }
  12239. } }, { key: "getLocale", value: function getLocale()
  12240. {
  12241. return this.locale;
  12242. } }, { key: "watchLocale", value: function watchLocale(
  12243. fn) {var _this2 = this;
  12244. var index = this.watchers.push(fn) - 1;
  12245. return function () {
  12246. _this2.watchers.splice(index, 1);
  12247. };
  12248. } }, { key: "add", value: function add(
  12249. locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  12250. var curMessages = this.messages[locale];
  12251. if (curMessages) {
  12252. if (override) {
  12253. Object.assign(curMessages, message);
  12254. } else
  12255. {
  12256. Object.keys(message).forEach(function (key) {
  12257. if (!hasOwn(curMessages, key)) {
  12258. curMessages[key] = message[key];
  12259. }
  12260. });
  12261. }
  12262. } else
  12263. {
  12264. this.messages[locale] = message;
  12265. }
  12266. } }, { key: "f", value: function f(
  12267. message, values, delimiters) {
  12268. return this.formater.interpolate(message, values, delimiters).join('');
  12269. } }, { key: "t", value: function t(
  12270. key, locale, values) {
  12271. var message = this.message;
  12272. if (typeof locale === 'string') {
  12273. locale = normalizeLocale(locale, this.messages);
  12274. locale && (message = this.messages[locale]);
  12275. } else
  12276. {
  12277. values = locale;
  12278. }
  12279. if (!hasOwn(message, key)) {
  12280. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  12281. return key;
  12282. }
  12283. return this.formater.interpolate(message[key], values).join('');
  12284. } }]);return I18n;}();exports.I18n = I18n;
  12285. function watchAppLocale(appVm, i18n) {
  12286. // 需要保证 watch 的触发在组件渲染之前
  12287. if (appVm.$watchLocale) {
  12288. // vue2
  12289. appVm.$watchLocale(function (newLocale) {
  12290. i18n.setLocale(newLocale);
  12291. });
  12292. } else
  12293. {
  12294. appVm.$watch(function () {return appVm.$locale;}, function (newLocale) {
  12295. i18n.setLocale(newLocale);
  12296. });
  12297. }
  12298. }
  12299. function getDefaultLocale() {
  12300. if (typeof uni !== 'undefined' && uni.getLocale) {
  12301. return uni.getLocale();
  12302. }
  12303. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  12304. if (typeof global !== 'undefined' && global.getLocale) {
  12305. return global.getLocale();
  12306. }
  12307. return LOCALE_EN;
  12308. }
  12309. 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;
  12310. // 兼容旧版本入参
  12311. if (typeof locale !== 'string') {var _ref4 =
  12312. [
  12313. messages,
  12314. locale];locale = _ref4[0];messages = _ref4[1];
  12315. }
  12316. if (typeof locale !== 'string') {
  12317. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  12318. locale = getDefaultLocale();
  12319. }
  12320. if (typeof fallbackLocale !== 'string') {
  12321. fallbackLocale =
  12322. typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale ||
  12323. LOCALE_EN;
  12324. }
  12325. var i18n = new I18n({
  12326. locale: locale,
  12327. fallbackLocale: fallbackLocale,
  12328. messages: messages,
  12329. watcher: watcher });
  12330. var _t = function t(key, values) {
  12331. if (typeof getApp !== 'function') {
  12332. // app view
  12333. /* eslint-disable no-func-assign */
  12334. _t = function t(key, values) {
  12335. return i18n.t(key, values);
  12336. };
  12337. } else
  12338. {
  12339. var isWatchedAppLocale = false;
  12340. _t = function t(key, values) {
  12341. var appVm = getApp().$vm;
  12342. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  12343. // options: {
  12344. // type: Array,
  12345. // default () {
  12346. // return [{
  12347. // icon: 'shop',
  12348. // text: t("uni-goods-nav.options.shop"),
  12349. // }, {
  12350. // icon: 'cart',
  12351. // text: t("uni-goods-nav.options.cart")
  12352. // }]
  12353. // }
  12354. // },
  12355. if (appVm) {
  12356. // 触发响应式
  12357. appVm.$locale;
  12358. if (!isWatchedAppLocale) {
  12359. isWatchedAppLocale = true;
  12360. watchAppLocale(appVm, i18n);
  12361. }
  12362. }
  12363. return i18n.t(key, values);
  12364. };
  12365. }
  12366. return _t(key, values);
  12367. };
  12368. return {
  12369. i18n: i18n,
  12370. f: function f(message, values, delimiters) {
  12371. return i18n.f(message, values, delimiters);
  12372. },
  12373. t: function t(key, values) {
  12374. return _t(key, values);
  12375. },
  12376. add: function add(locale, message) {var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  12377. return i18n.add(locale, message, override);
  12378. },
  12379. watch: function watch(fn) {
  12380. return i18n.watchLocale(fn);
  12381. },
  12382. getLocale: function getLocale() {
  12383. return i18n.getLocale();
  12384. },
  12385. setLocale: function setLocale(newLocale) {
  12386. return i18n.setLocale(newLocale);
  12387. } };
  12388. }
  12389. var isString = function isString(val) {return typeof val === 'string';};exports.isString = isString;
  12390. var formater;
  12391. function hasI18nJson(jsonObj, delimiters) {
  12392. if (!formater) {
  12393. formater = new BaseFormatter();
  12394. }
  12395. return walkJsonObj(jsonObj, function (jsonObj, key) {
  12396. var value = jsonObj[key];
  12397. if (isString(value)) {
  12398. if (isI18nStr(value, delimiters)) {
  12399. return true;
  12400. }
  12401. } else
  12402. {
  12403. return hasI18nJson(value, delimiters);
  12404. }
  12405. });
  12406. }
  12407. function parseI18nJson(jsonObj, values, delimiters) {
  12408. if (!formater) {
  12409. formater = new BaseFormatter();
  12410. }
  12411. walkJsonObj(jsonObj, function (jsonObj, key) {
  12412. var value = jsonObj[key];
  12413. if (isString(value)) {
  12414. if (isI18nStr(value, delimiters)) {
  12415. jsonObj[key] = compileStr(value, values, delimiters);
  12416. }
  12417. } else
  12418. {
  12419. parseI18nJson(value, values, delimiters);
  12420. }
  12421. });
  12422. return jsonObj;
  12423. }
  12424. function compileI18nJsonStr(jsonStr, _ref5) {var locale = _ref5.locale,locales = _ref5.locales,delimiters = _ref5.delimiters;
  12425. if (!isI18nStr(jsonStr, delimiters)) {
  12426. return jsonStr;
  12427. }
  12428. if (!formater) {
  12429. formater = new BaseFormatter();
  12430. }
  12431. var localeValues = [];
  12432. Object.keys(locales).forEach(function (name) {
  12433. if (name !== locale) {
  12434. localeValues.push({
  12435. locale: name,
  12436. values: locales[name] });
  12437. }
  12438. });
  12439. localeValues.unshift({ locale: locale, values: locales[locale] });
  12440. try {
  12441. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  12442. }
  12443. catch (e) {}
  12444. return jsonStr;
  12445. }
  12446. function isI18nStr(value, delimiters) {
  12447. return value.indexOf(delimiters[0]) > -1;
  12448. }
  12449. function compileStr(value, values, delimiters) {
  12450. return formater.interpolate(value, values, delimiters).join('');
  12451. }
  12452. function compileValue(jsonObj, key, localeValues, delimiters) {
  12453. var value = jsonObj[key];
  12454. if (isString(value)) {
  12455. // 存在国际化
  12456. if (isI18nStr(value, delimiters)) {
  12457. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  12458. if (localeValues.length > 1) {
  12459. // 格式化国际化语言
  12460. var valueLocales = jsonObj[key + 'Locales'] = {};
  12461. localeValues.forEach(function (localValue) {
  12462. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  12463. });
  12464. }
  12465. }
  12466. } else
  12467. {
  12468. compileJsonObj(value, localeValues, delimiters);
  12469. }
  12470. }
  12471. function compileJsonObj(jsonObj, localeValues, delimiters) {
  12472. walkJsonObj(jsonObj, function (jsonObj, key) {
  12473. compileValue(jsonObj, key, localeValues, delimiters);
  12474. });
  12475. return jsonObj;
  12476. }
  12477. function walkJsonObj(jsonObj, walk) {
  12478. if (isArray(jsonObj)) {
  12479. for (var i = 0; i < jsonObj.length; i++) {
  12480. if (walk(jsonObj, i)) {
  12481. return true;
  12482. }
  12483. }
  12484. } else
  12485. if (isObject(jsonObj)) {
  12486. for (var key in jsonObj) {
  12487. if (walk(jsonObj, key)) {
  12488. return true;
  12489. }
  12490. }
  12491. }
  12492. return false;
  12493. }
  12494. function resolveLocale(locales) {
  12495. return function (locale) {
  12496. if (!locale) {
  12497. return locale;
  12498. }
  12499. locale = normalizeLocale(locale) || locale;
  12500. return resolveLocaleChain(locale).find(function (locale) {return locales.indexOf(locale) > -1;});
  12501. };
  12502. }
  12503. function resolveLocaleChain(locale) {
  12504. var chain = [];
  12505. var tokens = locale.split('-');
  12506. while (tokens.length) {
  12507. chain.push(tokens.join('-'));
  12508. tokens.pop();
  12509. }
  12510. return chain;
  12511. }
  12512. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  12513. /***/ }),
  12514. /***/ 40:
  12515. /*!************************************************************************************!*\
  12516. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/function/throttle.js ***!
  12517. \************************************************************************************/
  12518. /*! no static exports found */
  12519. /***/ (function(module, exports, __webpack_require__) {
  12520. "use strict";
  12521. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var timer, flag;
  12522. /**
  12523. * 节流原理:在一定时间内,只能触发一次
  12524. *
  12525. * @param {Function} func 要执行的回调函数
  12526. * @param {Number} wait 延时的时间
  12527. * @param {Boolean} immediate 是否立即执行
  12528. * @return null
  12529. */
  12530. function throttle(func) {var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  12531. if (immediate) {
  12532. if (!flag) {
  12533. flag = true;
  12534. // 如果是立即执行,则在wait毫秒内开始时执行
  12535. typeof func === 'function' && func();
  12536. timer = setTimeout(function () {
  12537. flag = false;
  12538. }, wait);
  12539. }
  12540. } else {
  12541. if (!flag) {
  12542. flag = true;
  12543. // 如果是非立即执行,则在wait毫秒内的结束处执行
  12544. timer = setTimeout(function () {
  12545. flag = false;
  12546. typeof func === 'function' && func();
  12547. }, wait);
  12548. }
  12549. }
  12550. };var _default =
  12551. throttle;exports.default = _default;
  12552. /***/ }),
  12553. /***/ 41:
  12554. /*!********************************************************************************!*\
  12555. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/config/config.js ***!
  12556. \********************************************************************************/
  12557. /*! no static exports found */
  12558. /***/ (function(module, exports, __webpack_require__) {
  12559. "use strict";
  12560. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // 此版本发布于2020-03-17
  12561. var version = '1.8.4';var _default =
  12562. {
  12563. v: version,
  12564. version: version,
  12565. // 主题名称
  12566. type: [
  12567. 'primary',
  12568. 'success',
  12569. 'info',
  12570. 'error',
  12571. 'warning'] };exports.default = _default;
  12572. /***/ }),
  12573. /***/ 42:
  12574. /*!********************************************************************************!*\
  12575. !*** /Users/kiys/Desktop/parkService-wxapp/pet/uview-ui/libs/config/zIndex.js ***!
  12576. \********************************************************************************/
  12577. /*! no static exports found */
  12578. /***/ (function(module, exports, __webpack_require__) {
  12579. "use strict";
  12580. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; // uniapp在H5中各API的z-index值如下:
  12581. /**
  12582. * actionsheet: 999
  12583. * modal: 999
  12584. * navigate: 998
  12585. * tabbar: 998
  12586. * toast: 999
  12587. */var _default =
  12588. {
  12589. toast: 10090,
  12590. noNetwork: 10080,
  12591. // popup包含popup,actionsheet,keyboard,picker的值
  12592. popup: 10075,
  12593. mask: 10070,
  12594. navbar: 980,
  12595. topTips: 975,
  12596. sticky: 970,
  12597. indexListSticky: 965 };exports.default = _default;
  12598. /***/ }),
  12599. /***/ 5:
  12600. /*!************************************************************!*\
  12601. !*** /Users/kiys/Desktop/parkService-wxapp/pet/pages.json ***!
  12602. \************************************************************/
  12603. /*! no static exports found */
  12604. /***/ (function(module, exports) {
  12605. /***/ }),
  12606. /***/ 73:
  12607. /*!***************************************************************!*\
  12608. !*** /Users/kiys/Desktop/parkService-wxapp/pet/utils/time.js ***!
  12609. \***************************************************************/
  12610. /*! no static exports found */
  12611. /***/ (function(module, exports, __webpack_require__) {
  12612. "use strict";
  12613. Object.defineProperty(exports, "__esModule", { value: true });exports.getDate = getDate;function getDate() {
  12614. var date,month,year = "";
  12615. date = new Date().getDate();
  12616. month = new Date().getMonth();
  12617. year = new Date().getFullYear();
  12618. console.log(date, month, year);
  12619. return {
  12620. date: date,
  12621. month: month,
  12622. year: year };
  12623. }
  12624. /***/ })
  12625. }]);
  12626. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map