vendor.js 430 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!************************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  5. \************************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(exports, "__esModule", { value: true });exports.createApp = createApp;exports.createComponent = createComponent;exports.createPage = createPage;exports.createSubpackageApp = createSubpackageApp;exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 2));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;}
  10. var _toString = Object.prototype.toString;
  11. var hasOwnProperty = Object.prototype.hasOwnProperty;
  12. function isFn(fn) {
  13. return typeof fn === 'function';
  14. }
  15. function isStr(str) {
  16. return typeof str === 'string';
  17. }
  18. function isPlainObject(obj) {
  19. return _toString.call(obj) === '[object Object]';
  20. }
  21. function hasOwn(obj, key) {
  22. return hasOwnProperty.call(obj, key);
  23. }
  24. function noop() {}
  25. /**
  26. * Create a cached version of a pure function.
  27. */
  28. function cached(fn) {
  29. var cache = Object.create(null);
  30. return function cachedFn(str) {
  31. var hit = cache[str];
  32. return hit || (cache[str] = fn(str));
  33. };
  34. }
  35. /**
  36. * Camelize a hyphen-delimited string.
  37. */
  38. var camelizeRE = /-(\w)/g;
  39. var camelize = cached(function (str) {
  40. return str.replace(camelizeRE, function (_, c) {return c ? c.toUpperCase() : '';});
  41. });
  42. var HOOKS = [
  43. 'invoke',
  44. 'success',
  45. 'fail',
  46. 'complete',
  47. 'returnValue'];
  48. var globalInterceptors = {};
  49. var scopedInterceptors = {};
  50. function mergeHook(parentVal, childVal) {
  51. var res = childVal ?
  52. parentVal ?
  53. parentVal.concat(childVal) :
  54. Array.isArray(childVal) ?
  55. childVal : [childVal] :
  56. parentVal;
  57. return res ?
  58. dedupeHooks(res) :
  59. res;
  60. }
  61. function dedupeHooks(hooks) {
  62. var res = [];
  63. for (var i = 0; i < hooks.length; i++) {
  64. if (res.indexOf(hooks[i]) === -1) {
  65. res.push(hooks[i]);
  66. }
  67. }
  68. return res;
  69. }
  70. function removeHook(hooks, hook) {
  71. var index = hooks.indexOf(hook);
  72. if (index !== -1) {
  73. hooks.splice(index, 1);
  74. }
  75. }
  76. function mergeInterceptorHook(interceptor, option) {
  77. Object.keys(option).forEach(function (hook) {
  78. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  79. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  80. }
  81. });
  82. }
  83. function removeInterceptorHook(interceptor, option) {
  84. if (!interceptor || !option) {
  85. return;
  86. }
  87. Object.keys(option).forEach(function (hook) {
  88. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  89. removeHook(interceptor[hook], option[hook]);
  90. }
  91. });
  92. }
  93. function addInterceptor(method, option) {
  94. if (typeof method === 'string' && isPlainObject(option)) {
  95. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  96. } else if (isPlainObject(method)) {
  97. mergeInterceptorHook(globalInterceptors, method);
  98. }
  99. }
  100. function removeInterceptor(method, option) {
  101. if (typeof method === 'string') {
  102. if (isPlainObject(option)) {
  103. removeInterceptorHook(scopedInterceptors[method], option);
  104. } else {
  105. delete scopedInterceptors[method];
  106. }
  107. } else if (isPlainObject(method)) {
  108. removeInterceptorHook(globalInterceptors, method);
  109. }
  110. }
  111. function wrapperHook(hook) {
  112. return function (data) {
  113. return hook(data) || data;
  114. };
  115. }
  116. function isPromise(obj) {
  117. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  118. }
  119. function queue(hooks, data) {
  120. var promise = false;
  121. for (var i = 0; i < hooks.length; i++) {
  122. var hook = hooks[i];
  123. if (promise) {
  124. promise = Promise.resolve(wrapperHook(hook));
  125. } else {
  126. var res = hook(data);
  127. if (isPromise(res)) {
  128. promise = Promise.resolve(res);
  129. }
  130. if (res === false) {
  131. return {
  132. then: function then() {} };
  133. }
  134. }
  135. }
  136. return promise || {
  137. then: function then(callback) {
  138. return callback(data);
  139. } };
  140. }
  141. function wrapperOptions(interceptor) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  142. ['success', 'fail', 'complete'].forEach(function (name) {
  143. if (Array.isArray(interceptor[name])) {
  144. var oldCallback = options[name];
  145. options[name] = function callbackInterceptor(res) {
  146. queue(interceptor[name], res).then(function (res) {
  147. /* eslint-disable no-mixed-operators */
  148. return isFn(oldCallback) && oldCallback(res) || res;
  149. });
  150. };
  151. }
  152. });
  153. return options;
  154. }
  155. function wrapperReturnValue(method, returnValue) {
  156. var returnValueHooks = [];
  157. if (Array.isArray(globalInterceptors.returnValue)) {
  158. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(globalInterceptors.returnValue));
  159. }
  160. var interceptor = scopedInterceptors[method];
  161. if (interceptor && Array.isArray(interceptor.returnValue)) {
  162. returnValueHooks.push.apply(returnValueHooks, _toConsumableArray(interceptor.returnValue));
  163. }
  164. returnValueHooks.forEach(function (hook) {
  165. returnValue = hook(returnValue) || returnValue;
  166. });
  167. return returnValue;
  168. }
  169. function getApiInterceptorHooks(method) {
  170. var interceptor = Object.create(null);
  171. Object.keys(globalInterceptors).forEach(function (hook) {
  172. if (hook !== 'returnValue') {
  173. interceptor[hook] = globalInterceptors[hook].slice();
  174. }
  175. });
  176. var scopedInterceptor = scopedInterceptors[method];
  177. if (scopedInterceptor) {
  178. Object.keys(scopedInterceptor).forEach(function (hook) {
  179. if (hook !== 'returnValue') {
  180. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  181. }
  182. });
  183. }
  184. return interceptor;
  185. }
  186. 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];}
  187. var interceptor = getApiInterceptorHooks(method);
  188. if (interceptor && Object.keys(interceptor).length) {
  189. if (Array.isArray(interceptor.invoke)) {
  190. var res = queue(interceptor.invoke, options);
  191. return res.then(function (options) {
  192. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  193. });
  194. } else {
  195. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  196. }
  197. }
  198. return api.apply(void 0, [options].concat(params));
  199. }
  200. var promiseInterceptor = {
  201. returnValue: function returnValue(res) {
  202. if (!isPromise(res)) {
  203. return res;
  204. }
  205. return res.then(function (res) {
  206. return res[1];
  207. }).catch(function (res) {
  208. return res[0];
  209. });
  210. } };
  211. var SYNC_API_RE =
  212. /^\$|Window$|WindowStyle$|sendNativeEvent|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/;
  213. var CONTEXT_API_RE = /^create|Manager$/;
  214. // Context例外情况
  215. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  216. // 同步例外情况
  217. var ASYNC_API = ['createBLEConnection'];
  218. var CALLBACK_API_RE = /^on|^off/;
  219. function isContextApi(name) {
  220. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  221. }
  222. function isSyncApi(name) {
  223. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  224. }
  225. function isCallbackApi(name) {
  226. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  227. }
  228. function handlePromise(promise) {
  229. return promise.then(function (data) {
  230. return [null, data];
  231. }).
  232. catch(function (err) {return [err];});
  233. }
  234. function shouldPromise(name) {
  235. if (
  236. isContextApi(name) ||
  237. isSyncApi(name) ||
  238. isCallbackApi(name))
  239. {
  240. return false;
  241. }
  242. return true;
  243. }
  244. /* eslint-disable no-extend-native */
  245. if (!Promise.prototype.finally) {
  246. Promise.prototype.finally = function (callback) {
  247. var promise = this.constructor;
  248. return this.then(
  249. function (value) {return promise.resolve(callback()).then(function () {return value;});},
  250. function (reason) {return promise.resolve(callback()).then(function () {
  251. throw reason;
  252. });});
  253. };
  254. }
  255. function promisify(name, api) {
  256. if (!shouldPromise(name)) {
  257. return api;
  258. }
  259. 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];}
  260. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  261. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  262. }
  263. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  264. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  265. success: resolve,
  266. fail: reject })].concat(
  267. params));
  268. })));
  269. };
  270. }
  271. var EPS = 1e-4;
  272. var BASE_DEVICE_WIDTH = 750;
  273. var isIOS = false;
  274. var deviceWidth = 0;
  275. var deviceDPR = 0;
  276. function checkDeviceWidth() {var _wx$getSystemInfoSync =
  277. wx.getSystemInfoSync(),platform = _wx$getSystemInfoSync.platform,pixelRatio = _wx$getSystemInfoSync.pixelRatio,windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  278. deviceWidth = windowWidth;
  279. deviceDPR = pixelRatio;
  280. isIOS = platform === 'ios';
  281. }
  282. function upx2px(number, newDeviceWidth) {
  283. if (deviceWidth === 0) {
  284. checkDeviceWidth();
  285. }
  286. number = Number(number);
  287. if (number === 0) {
  288. return 0;
  289. }
  290. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  291. if (result < 0) {
  292. result = -result;
  293. }
  294. result = Math.floor(result + EPS);
  295. if (result === 0) {
  296. if (deviceDPR === 1 || !isIOS) {
  297. result = 1;
  298. } else {
  299. result = 0.5;
  300. }
  301. }
  302. return number < 0 ? -result : result;
  303. }
  304. var interceptors = {
  305. promiseInterceptor: promiseInterceptor };
  306. var baseApi = /*#__PURE__*/Object.freeze({
  307. __proto__: null,
  308. upx2px: upx2px,
  309. addInterceptor: addInterceptor,
  310. removeInterceptor: removeInterceptor,
  311. interceptors: interceptors });
  312. function findExistsPageIndex(url) {
  313. var pages = getCurrentPages();
  314. var len = pages.length;
  315. while (len--) {
  316. var page = pages[len];
  317. if (page.$page && page.$page.fullPath === url) {
  318. return len;
  319. }
  320. }
  321. return -1;
  322. }
  323. var redirectTo = {
  324. name: function name(fromArgs) {
  325. if (fromArgs.exists === 'back' && fromArgs.delta) {
  326. return 'navigateBack';
  327. }
  328. return 'redirectTo';
  329. },
  330. args: function args(fromArgs) {
  331. if (fromArgs.exists === 'back' && fromArgs.url) {
  332. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  333. if (existsPageIndex !== -1) {
  334. var delta = getCurrentPages().length - 1 - existsPageIndex;
  335. if (delta > 0) {
  336. fromArgs.delta = delta;
  337. }
  338. }
  339. }
  340. } };
  341. var previewImage = {
  342. args: function args(fromArgs) {
  343. var currentIndex = parseInt(fromArgs.current);
  344. if (isNaN(currentIndex)) {
  345. return;
  346. }
  347. var urls = fromArgs.urls;
  348. if (!Array.isArray(urls)) {
  349. return;
  350. }
  351. var len = urls.length;
  352. if (!len) {
  353. return;
  354. }
  355. if (currentIndex < 0) {
  356. currentIndex = 0;
  357. } else if (currentIndex >= len) {
  358. currentIndex = len - 1;
  359. }
  360. if (currentIndex > 0) {
  361. fromArgs.current = urls[currentIndex];
  362. fromArgs.urls = urls.filter(
  363. function (item, index) {return index < currentIndex ? item !== urls[currentIndex] : true;});
  364. } else {
  365. fromArgs.current = urls[0];
  366. }
  367. return {
  368. indicator: false,
  369. loop: false };
  370. } };
  371. var UUID_KEY = '__DC_STAT_UUID';
  372. var deviceId;
  373. function addUuid(result) {
  374. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  375. if (!deviceId) {
  376. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  377. wx.setStorage({
  378. key: UUID_KEY,
  379. data: deviceId });
  380. }
  381. result.deviceId = deviceId;
  382. }
  383. function addSafeAreaInsets(result) {
  384. if (result.safeArea) {
  385. var safeArea = result.safeArea;
  386. result.safeAreaInsets = {
  387. top: safeArea.top,
  388. left: safeArea.left,
  389. right: result.windowWidth - safeArea.right,
  390. bottom: result.windowHeight - safeArea.bottom };
  391. }
  392. }
  393. var getSystemInfo = {
  394. returnValue: function returnValue(result) {
  395. addUuid(result);
  396. addSafeAreaInsets(result);
  397. } };
  398. // import navigateTo from 'uni-helpers/navigate-to'
  399. var protocols = {
  400. redirectTo: redirectTo,
  401. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  402. previewImage: previewImage,
  403. getSystemInfo: getSystemInfo,
  404. getSystemInfoSync: getSystemInfo };
  405. var todos = [
  406. 'vibrate',
  407. 'preloadPage',
  408. 'unPreloadPage',
  409. 'loadSubPackage'];
  410. var canIUses = [];
  411. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  412. function processCallback(methodName, method, returnValue) {
  413. return function (res) {
  414. return method(processReturnValue(methodName, res, returnValue));
  415. };
  416. }
  417. 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;
  418. if (isPlainObject(fromArgs)) {// 一般 api 的参数解析
  419. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  420. if (isFn(argsOption)) {
  421. argsOption = argsOption(fromArgs, toArgs) || {};
  422. }
  423. for (var key in fromArgs) {
  424. if (hasOwn(argsOption, key)) {
  425. var keyOption = argsOption[key];
  426. if (isFn(keyOption)) {
  427. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  428. }
  429. if (!keyOption) {// 不支持的参数
  430. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  431. } else if (isStr(keyOption)) {// 重写参数 key
  432. toArgs[keyOption] = fromArgs[key];
  433. } else if (isPlainObject(keyOption)) {// {name:newName,value:value}可重新指定参数 key:value
  434. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  435. }
  436. } else if (CALLBACKS.indexOf(key) !== -1) {
  437. if (isFn(fromArgs[key])) {
  438. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  439. }
  440. } else {
  441. if (!keepFromArgs) {
  442. toArgs[key] = fromArgs[key];
  443. }
  444. }
  445. }
  446. return toArgs;
  447. } else if (isFn(fromArgs)) {
  448. fromArgs = processCallback(methodName, fromArgs, returnValue);
  449. }
  450. return fromArgs;
  451. }
  452. function processReturnValue(methodName, res, returnValue) {var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  453. if (isFn(protocols.returnValue)) {// 处理通用 returnValue
  454. res = protocols.returnValue(methodName, res);
  455. }
  456. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  457. }
  458. function wrapper(methodName, method) {
  459. if (hasOwn(protocols, methodName)) {
  460. var protocol = protocols[methodName];
  461. if (!protocol) {// 暂不支持的 api
  462. return function () {
  463. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  464. };
  465. }
  466. return function (arg1, arg2) {// 目前 api 最多两个参数
  467. var options = protocol;
  468. if (isFn(protocol)) {
  469. options = protocol(arg1);
  470. }
  471. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  472. var args = [arg1];
  473. if (typeof arg2 !== 'undefined') {
  474. args.push(arg2);
  475. }
  476. if (isFn(options.name)) {
  477. methodName = options.name(arg1);
  478. } else if (isStr(options.name)) {
  479. methodName = options.name;
  480. }
  481. var returnValue = wx[methodName].apply(wx, args);
  482. if (isSyncApi(methodName)) {// 同步 api
  483. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  484. }
  485. return returnValue;
  486. };
  487. }
  488. return method;
  489. }
  490. var todoApis = Object.create(null);
  491. var TODOS = [
  492. 'onTabBarMidButtonTap',
  493. 'subscribePush',
  494. 'unsubscribePush',
  495. 'onPush',
  496. 'offPush',
  497. 'share'];
  498. function createTodoApi(name) {
  499. return function todoApi(_ref)
  500. {var fail = _ref.fail,complete = _ref.complete;
  501. var res = {
  502. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported") };
  503. isFn(fail) && fail(res);
  504. isFn(complete) && complete(res);
  505. };
  506. }
  507. TODOS.forEach(function (name) {
  508. todoApis[name] = createTodoApi(name);
  509. });
  510. var providers = {
  511. oauth: ['weixin'],
  512. share: ['weixin'],
  513. payment: ['wxpay'],
  514. push: ['weixin'] };
  515. function getProvider(_ref2)
  516. {var service = _ref2.service,success = _ref2.success,fail = _ref2.fail,complete = _ref2.complete;
  517. var res = false;
  518. if (providers[service]) {
  519. res = {
  520. errMsg: 'getProvider:ok',
  521. service: service,
  522. provider: providers[service] };
  523. isFn(success) && success(res);
  524. } else {
  525. res = {
  526. errMsg: 'getProvider:fail service not found' };
  527. isFn(fail) && fail(res);
  528. }
  529. isFn(complete) && complete(res);
  530. }
  531. var extraApi = /*#__PURE__*/Object.freeze({
  532. __proto__: null,
  533. getProvider: getProvider });
  534. var getEmitter = function () {
  535. var Emitter;
  536. return function getUniEmitter() {
  537. if (!Emitter) {
  538. Emitter = new _vue.default();
  539. }
  540. return Emitter;
  541. };
  542. }();
  543. function apply(ctx, method, args) {
  544. return ctx[method].apply(ctx, args);
  545. }
  546. function $on() {
  547. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  548. }
  549. function $off() {
  550. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  551. }
  552. function $once() {
  553. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  554. }
  555. function $emit() {
  556. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  557. }
  558. var eventApi = /*#__PURE__*/Object.freeze({
  559. __proto__: null,
  560. $on: $on,
  561. $off: $off,
  562. $once: $once,
  563. $emit: $emit });
  564. var api = /*#__PURE__*/Object.freeze({
  565. __proto__: null });
  566. var MPPage = Page;
  567. var MPComponent = Component;
  568. var customizeRE = /:/g;
  569. var customize = cached(function (str) {
  570. return camelize(str.replace(customizeRE, '-'));
  571. });
  572. function initTriggerEvent(mpInstance) {
  573. {
  574. if (!wx.canIUse('nextTick')) {
  575. return;
  576. }
  577. }
  578. var oldTriggerEvent = mpInstance.triggerEvent;
  579. 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];}
  580. return oldTriggerEvent.apply(mpInstance, [customize(event)].concat(args));
  581. };
  582. }
  583. function initHook(name, options) {
  584. var oldHook = options[name];
  585. if (!oldHook) {
  586. options[name] = function () {
  587. initTriggerEvent(this);
  588. };
  589. } else {
  590. options[name] = function () {
  591. initTriggerEvent(this);for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {args[_key4] = arguments[_key4];}
  592. return oldHook.apply(this, args);
  593. };
  594. }
  595. }
  596. if (!MPPage.__$wrappered) {
  597. MPPage.__$wrappered = true;
  598. Page = function Page() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  599. initHook('onLoad', options);
  600. return MPPage(options);
  601. };
  602. Page.after = MPPage.after;
  603. Component = function Component() {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  604. initHook('created', options);
  605. return MPComponent(options);
  606. };
  607. }
  608. var PAGE_EVENT_HOOKS = [
  609. 'onPullDownRefresh',
  610. 'onReachBottom',
  611. 'onAddToFavorites',
  612. 'onShareTimeline',
  613. 'onShareAppMessage',
  614. 'onPageScroll',
  615. 'onResize',
  616. 'onTabItemTap'];
  617. function initMocks(vm, mocks) {
  618. var mpInstance = vm.$mp[vm.mpType];
  619. mocks.forEach(function (mock) {
  620. if (hasOwn(mpInstance, mock)) {
  621. vm[mock] = mpInstance[mock];
  622. }
  623. });
  624. }
  625. function hasHook(hook, vueOptions) {
  626. if (!vueOptions) {
  627. return true;
  628. }
  629. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  630. return true;
  631. }
  632. vueOptions = vueOptions.default || vueOptions;
  633. if (isFn(vueOptions)) {
  634. if (isFn(vueOptions.extendOptions[hook])) {
  635. return true;
  636. }
  637. if (vueOptions.super &&
  638. vueOptions.super.options &&
  639. Array.isArray(vueOptions.super.options[hook])) {
  640. return true;
  641. }
  642. return false;
  643. }
  644. if (isFn(vueOptions[hook])) {
  645. return true;
  646. }
  647. var mixins = vueOptions.mixins;
  648. if (Array.isArray(mixins)) {
  649. return !!mixins.find(function (mixin) {return hasHook(hook, mixin);});
  650. }
  651. }
  652. function initHooks(mpOptions, hooks, vueOptions) {
  653. hooks.forEach(function (hook) {
  654. if (hasHook(hook, vueOptions)) {
  655. mpOptions[hook] = function (args) {
  656. return this.$vm && this.$vm.__call_hook(hook, args);
  657. };
  658. }
  659. });
  660. }
  661. function initVueComponent(Vue, vueOptions) {
  662. vueOptions = vueOptions.default || vueOptions;
  663. var VueComponent;
  664. if (isFn(vueOptions)) {
  665. VueComponent = vueOptions;
  666. } else {
  667. VueComponent = Vue.extend(vueOptions);
  668. }
  669. vueOptions = VueComponent.options;
  670. return [VueComponent, vueOptions];
  671. }
  672. function initSlots(vm, vueSlots) {
  673. if (Array.isArray(vueSlots) && vueSlots.length) {
  674. var $slots = Object.create(null);
  675. vueSlots.forEach(function (slotName) {
  676. $slots[slotName] = true;
  677. });
  678. vm.$scopedSlots = vm.$slots = $slots;
  679. }
  680. }
  681. function initVueIds(vueIds, mpInstance) {
  682. vueIds = (vueIds || '').split(',');
  683. var len = vueIds.length;
  684. if (len === 1) {
  685. mpInstance._$vueId = vueIds[0];
  686. } else if (len === 2) {
  687. mpInstance._$vueId = vueIds[0];
  688. mpInstance._$vuePid = vueIds[1];
  689. }
  690. }
  691. function initData(vueOptions, context) {
  692. var data = vueOptions.data || {};
  693. var methods = vueOptions.methods || {};
  694. if (typeof data === 'function') {
  695. try {
  696. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  697. } catch (e) {
  698. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"江夏红十字会","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  699. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  700. }
  701. }
  702. } else {
  703. try {
  704. // 对 data 格式化
  705. data = JSON.parse(JSON.stringify(data));
  706. } catch (e) {}
  707. }
  708. if (!isPlainObject(data)) {
  709. data = {};
  710. }
  711. Object.keys(methods).forEach(function (methodName) {
  712. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  713. data[methodName] = methods[methodName];
  714. }
  715. });
  716. return data;
  717. }
  718. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  719. function createObserver(name) {
  720. return function observer(newVal, oldVal) {
  721. if (this.$vm) {
  722. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  723. }
  724. };
  725. }
  726. function initBehaviors(vueOptions, initBehavior) {
  727. var vueBehaviors = vueOptions.behaviors;
  728. var vueExtends = vueOptions.extends;
  729. var vueMixins = vueOptions.mixins;
  730. var vueProps = vueOptions.props;
  731. if (!vueProps) {
  732. vueOptions.props = vueProps = [];
  733. }
  734. var behaviors = [];
  735. if (Array.isArray(vueBehaviors)) {
  736. vueBehaviors.forEach(function (behavior) {
  737. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  738. if (behavior === 'uni://form-field') {
  739. if (Array.isArray(vueProps)) {
  740. vueProps.push('name');
  741. vueProps.push('value');
  742. } else {
  743. vueProps.name = {
  744. type: String,
  745. default: '' };
  746. vueProps.value = {
  747. type: [String, Number, Boolean, Array, Object, Date],
  748. default: '' };
  749. }
  750. }
  751. });
  752. }
  753. if (isPlainObject(vueExtends) && vueExtends.props) {
  754. behaviors.push(
  755. initBehavior({
  756. properties: initProperties(vueExtends.props, true) }));
  757. }
  758. if (Array.isArray(vueMixins)) {
  759. vueMixins.forEach(function (vueMixin) {
  760. if (isPlainObject(vueMixin) && vueMixin.props) {
  761. behaviors.push(
  762. initBehavior({
  763. properties: initProperties(vueMixin.props, true) }));
  764. }
  765. });
  766. }
  767. return behaviors;
  768. }
  769. function parsePropType(key, type, defaultValue, file) {
  770. // [String]=>String
  771. if (Array.isArray(type) && type.length === 1) {
  772. return type[0];
  773. }
  774. return type;
  775. }
  776. function initProperties(props) {var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  777. var properties = {};
  778. if (!isBehavior) {
  779. properties.vueId = {
  780. type: String,
  781. value: '' };
  782. // 用于字节跳动小程序模拟抽象节点
  783. properties.generic = {
  784. type: Object,
  785. value: null };
  786. properties.vueSlots = { // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  787. type: null,
  788. value: [],
  789. observer: function observer(newVal, oldVal) {
  790. var $slots = Object.create(null);
  791. newVal.forEach(function (slotName) {
  792. $slots[slotName] = true;
  793. });
  794. this.setData({
  795. $slots: $slots });
  796. } };
  797. }
  798. if (Array.isArray(props)) {// ['title']
  799. props.forEach(function (key) {
  800. properties[key] = {
  801. type: null,
  802. observer: createObserver(key) };
  803. });
  804. } else if (isPlainObject(props)) {// {title:{type:String,default:''},content:String}
  805. Object.keys(props).forEach(function (key) {
  806. var opts = props[key];
  807. if (isPlainObject(opts)) {// title:{type:String,default:''}
  808. var value = opts.default;
  809. if (isFn(value)) {
  810. value = value();
  811. }
  812. opts.type = parsePropType(key, opts.type);
  813. properties[key] = {
  814. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  815. value: value,
  816. observer: createObserver(key) };
  817. } else {// content:String
  818. var type = parsePropType(key, opts);
  819. properties[key] = {
  820. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  821. observer: createObserver(key) };
  822. }
  823. });
  824. }
  825. return properties;
  826. }
  827. function wrapper$1(event) {
  828. // TODO 又得兼容 mpvue 的 mp 对象
  829. try {
  830. event.mp = JSON.parse(JSON.stringify(event));
  831. } catch (e) {}
  832. event.stopPropagation = noop;
  833. event.preventDefault = noop;
  834. event.target = event.target || {};
  835. if (!hasOwn(event, 'detail')) {
  836. event.detail = {};
  837. }
  838. if (hasOwn(event, 'markerId')) {
  839. event.detail = typeof event.detail === 'object' ? event.detail : {};
  840. event.detail.markerId = event.markerId;
  841. }
  842. if (isPlainObject(event.detail)) {
  843. event.target = Object.assign({}, event.target, event.detail);
  844. }
  845. return event;
  846. }
  847. function getExtraValue(vm, dataPathsArray) {
  848. var context = vm;
  849. dataPathsArray.forEach(function (dataPathArray) {
  850. var dataPath = dataPathArray[0];
  851. var value = dataPathArray[2];
  852. if (dataPath || typeof value !== 'undefined') {// ['','',index,'disable']
  853. var propPath = dataPathArray[1];
  854. var valuePath = dataPathArray[3];
  855. var vFor;
  856. if (Number.isInteger(dataPath)) {
  857. vFor = dataPath;
  858. } else if (!dataPath) {
  859. vFor = context;
  860. } else if (typeof dataPath === 'string' && dataPath) {
  861. if (dataPath.indexOf('#s#') === 0) {
  862. vFor = dataPath.substr(3);
  863. } else {
  864. vFor = vm.__get_value(dataPath, context);
  865. }
  866. }
  867. if (Number.isInteger(vFor)) {
  868. context = value;
  869. } else if (!propPath) {
  870. context = vFor[value];
  871. } else {
  872. if (Array.isArray(vFor)) {
  873. context = vFor.find(function (vForItem) {
  874. return vm.__get_value(propPath, vForItem) === value;
  875. });
  876. } else if (isPlainObject(vFor)) {
  877. context = Object.keys(vFor).find(function (vForKey) {
  878. return vm.__get_value(propPath, vFor[vForKey]) === value;
  879. });
  880. } else {
  881. console.error('v-for 暂不支持循环数据:', vFor);
  882. }
  883. }
  884. if (valuePath) {
  885. context = vm.__get_value(valuePath, context);
  886. }
  887. }
  888. });
  889. return context;
  890. }
  891. function processEventExtra(vm, extra, event) {
  892. var extraObj = {};
  893. if (Array.isArray(extra) && extra.length) {
  894. /**
  895. *[
  896. * ['data.items', 'data.id', item.data.id],
  897. * ['metas', 'id', meta.id]
  898. *],
  899. *[
  900. * ['data.items', 'data.id', item.data.id],
  901. * ['metas', 'id', meta.id]
  902. *],
  903. *'test'
  904. */
  905. extra.forEach(function (dataPath, index) {
  906. if (typeof dataPath === 'string') {
  907. if (!dataPath) {// model,prop.sync
  908. extraObj['$' + index] = vm;
  909. } else {
  910. if (dataPath === '$event') {// $event
  911. extraObj['$' + index] = event;
  912. } else if (dataPath === 'arguments') {
  913. if (event.detail && event.detail.__args__) {
  914. extraObj['$' + index] = event.detail.__args__;
  915. } else {
  916. extraObj['$' + index] = [event];
  917. }
  918. } else if (dataPath.indexOf('$event.') === 0) {// $event.target.value
  919. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  920. } else {
  921. extraObj['$' + index] = vm.__get_value(dataPath);
  922. }
  923. }
  924. } else {
  925. extraObj['$' + index] = getExtraValue(vm, dataPath);
  926. }
  927. });
  928. }
  929. return extraObj;
  930. }
  931. function getObjByArray(arr) {
  932. var obj = {};
  933. for (var i = 1; i < arr.length; i++) {
  934. var element = arr[i];
  935. obj[element[0]] = element[1];
  936. }
  937. return obj;
  938. }
  939. 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;
  940. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  941. if (isCustom) {// 自定义事件
  942. isCustomMPEvent = event.currentTarget &&
  943. event.currentTarget.dataset &&
  944. event.currentTarget.dataset.comType === 'wx';
  945. if (!args.length) {// 无参数,直接传入 event 或 detail 数组
  946. if (isCustomMPEvent) {
  947. return [event];
  948. }
  949. return event.detail.__args__ || event.detail;
  950. }
  951. }
  952. var extraObj = processEventExtra(vm, extra, event);
  953. var ret = [];
  954. args.forEach(function (arg) {
  955. if (arg === '$event') {
  956. if (methodName === '__set_model' && !isCustom) {// input v-model value
  957. ret.push(event.target.value);
  958. } else {
  959. if (isCustom && !isCustomMPEvent) {
  960. ret.push(event.detail.__args__[0]);
  961. } else {// wxcomponent 组件或内置组件
  962. ret.push(event);
  963. }
  964. }
  965. } else {
  966. if (Array.isArray(arg) && arg[0] === 'o') {
  967. ret.push(getObjByArray(arg));
  968. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  969. ret.push(extraObj[arg]);
  970. } else {
  971. ret.push(arg);
  972. }
  973. }
  974. });
  975. return ret;
  976. }
  977. var ONCE = '~';
  978. var CUSTOM = '^';
  979. function isMatchEventType(eventType, optType) {
  980. return eventType === optType ||
  981. optType === 'regionchange' && (
  982. eventType === 'begin' ||
  983. eventType === 'end');
  984. }
  985. function getContextVm(vm) {
  986. var $parent = vm.$parent;
  987. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  988. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  989. $parent = $parent.$parent;
  990. }
  991. return $parent && $parent.$parent;
  992. }
  993. function handleEvent(event) {var _this = this;
  994. event = wrapper$1(event);
  995. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  996. var dataset = (event.currentTarget || event.target).dataset;
  997. if (!dataset) {
  998. return console.warn('事件信息不存在');
  999. }
  1000. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1001. if (!eventOpts) {
  1002. return console.warn('事件信息不存在');
  1003. }
  1004. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1005. var eventType = event.type;
  1006. var ret = [];
  1007. eventOpts.forEach(function (eventOpt) {
  1008. var type = eventOpt[0];
  1009. var eventsArray = eventOpt[1];
  1010. var isCustom = type.charAt(0) === CUSTOM;
  1011. type = isCustom ? type.slice(1) : type;
  1012. var isOnce = type.charAt(0) === ONCE;
  1013. type = isOnce ? type.slice(1) : type;
  1014. if (eventsArray && isMatchEventType(eventType, type)) {
  1015. eventsArray.forEach(function (eventArray) {
  1016. var methodName = eventArray[0];
  1017. if (methodName) {
  1018. var handlerCtx = _this.$vm;
  1019. if (handlerCtx.$options.generic) {// mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1020. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1021. }
  1022. if (methodName === '$emit') {
  1023. handlerCtx.$emit.apply(handlerCtx,
  1024. processEventArgs(
  1025. _this.$vm,
  1026. event,
  1027. eventArray[1],
  1028. eventArray[2],
  1029. isCustom,
  1030. methodName));
  1031. return;
  1032. }
  1033. var handler = handlerCtx[methodName];
  1034. if (!isFn(handler)) {
  1035. throw new Error(" _vm.".concat(methodName, " is not a function"));
  1036. }
  1037. if (isOnce) {
  1038. if (handler.once) {
  1039. return;
  1040. }
  1041. handler.once = true;
  1042. }
  1043. var params = processEventArgs(
  1044. _this.$vm,
  1045. event,
  1046. eventArray[1],
  1047. eventArray[2],
  1048. isCustom,
  1049. methodName);
  1050. params = Array.isArray(params) ? params : [];
  1051. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1052. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1053. // eslint-disable-next-line no-sparse-arrays
  1054. params = params.concat([,,,,,,,,,, event]);
  1055. }
  1056. ret.push(handler.apply(handlerCtx, params));
  1057. }
  1058. });
  1059. }
  1060. });
  1061. if (
  1062. eventType === 'input' &&
  1063. ret.length === 1 &&
  1064. typeof ret[0] !== 'undefined')
  1065. {
  1066. return ret[0];
  1067. }
  1068. }
  1069. var eventChannels = {};
  1070. var eventChannelStack = [];
  1071. function getEventChannel(id) {
  1072. if (id) {
  1073. var eventChannel = eventChannels[id];
  1074. delete eventChannels[id];
  1075. return eventChannel;
  1076. }
  1077. return eventChannelStack.shift();
  1078. }
  1079. var hooks = [
  1080. 'onShow',
  1081. 'onHide',
  1082. 'onError',
  1083. 'onPageNotFound',
  1084. 'onThemeChange',
  1085. 'onUnhandledRejection'];
  1086. function initEventChannel() {
  1087. _vue.default.prototype.getOpenerEventChannel = function () {
  1088. // 微信小程序使用自身getOpenerEventChannel
  1089. {
  1090. return this.$scope.getOpenerEventChannel();
  1091. }
  1092. };
  1093. var callHook = _vue.default.prototype.__call_hook;
  1094. _vue.default.prototype.__call_hook = function (hook, args) {
  1095. if (hook === 'onLoad' && args && args.__id__) {
  1096. this.__eventChannel__ = getEventChannel(args.__id__);
  1097. delete args.__id__;
  1098. }
  1099. return callHook.call(this, hook, args);
  1100. };
  1101. }
  1102. function parseBaseApp(vm, _ref3)
  1103. {var mocks = _ref3.mocks,initRefs = _ref3.initRefs;
  1104. initEventChannel();
  1105. if (vm.$options.store) {
  1106. _vue.default.prototype.$store = vm.$options.store;
  1107. }
  1108. _vue.default.prototype.mpHost = "mp-weixin";
  1109. _vue.default.mixin({
  1110. beforeCreate: function beforeCreate() {
  1111. if (!this.$options.mpType) {
  1112. return;
  1113. }
  1114. this.mpType = this.$options.mpType;
  1115. this.$mp = _defineProperty({
  1116. data: {} },
  1117. this.mpType, this.$options.mpInstance);
  1118. this.$scope = this.$options.mpInstance;
  1119. delete this.$options.mpType;
  1120. delete this.$options.mpInstance;
  1121. if (this.mpType === 'page') {// hack vue-i18n
  1122. var app = getApp();
  1123. if (app.$vm && app.$vm.$i18n) {
  1124. this._i18n = app.$vm.$i18n;
  1125. }
  1126. }
  1127. if (this.mpType !== 'app') {
  1128. initRefs(this);
  1129. initMocks(this, mocks);
  1130. }
  1131. } });
  1132. var appOptions = {
  1133. onLaunch: function onLaunch(args) {
  1134. if (this.$vm) {// 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  1135. return;
  1136. }
  1137. {
  1138. if (!wx.canIUse('nextTick')) {// 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  1139. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  1140. }
  1141. }
  1142. this.$vm = vm;
  1143. this.$vm.$mp = {
  1144. app: this };
  1145. this.$vm.$scope = this;
  1146. // vm 上也挂载 globalData
  1147. this.$vm.globalData = this.globalData;
  1148. this.$vm._isMounted = true;
  1149. this.$vm.__call_hook('mounted', args);
  1150. this.$vm.__call_hook('onLaunch', args);
  1151. } };
  1152. // 兼容旧版本 globalData
  1153. appOptions.globalData = vm.$options.globalData || {};
  1154. // 将 methods 中的方法挂在 getApp() 中
  1155. var methods = vm.$options.methods;
  1156. if (methods) {
  1157. Object.keys(methods).forEach(function (name) {
  1158. appOptions[name] = methods[name];
  1159. });
  1160. }
  1161. initHooks(appOptions, hooks);
  1162. return appOptions;
  1163. }
  1164. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1165. function findVmByVueId(vm, vuePid) {
  1166. var $children = vm.$children;
  1167. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1168. for (var i = $children.length - 1; i >= 0; i--) {
  1169. var childVm = $children[i];
  1170. if (childVm.$scope._$vueId === vuePid) {
  1171. return childVm;
  1172. }
  1173. }
  1174. // 反向递归查找
  1175. var parentVm;
  1176. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1177. parentVm = findVmByVueId($children[_i], vuePid);
  1178. if (parentVm) {
  1179. return parentVm;
  1180. }
  1181. }
  1182. }
  1183. function initBehavior(options) {
  1184. return Behavior(options);
  1185. }
  1186. function isPage() {
  1187. return !!this.route;
  1188. }
  1189. function initRelation(detail) {
  1190. this.triggerEvent('__l', detail);
  1191. }
  1192. function selectAllComponents(mpInstance, selector, $refs) {
  1193. var components = mpInstance.selectAllComponents(selector);
  1194. components.forEach(function (component) {
  1195. var ref = component.dataset.ref;
  1196. $refs[ref] = component.$vm || component;
  1197. {
  1198. if (component.dataset.vueGeneric === 'scoped') {
  1199. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1200. selectAllComponents(scopedComponent, selector, $refs);
  1201. });
  1202. }
  1203. }
  1204. });
  1205. }
  1206. function initRefs(vm) {
  1207. var mpInstance = vm.$scope;
  1208. Object.defineProperty(vm, '$refs', {
  1209. get: function get() {
  1210. var $refs = {};
  1211. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1212. // TODO 暂不考虑 for 中的 scoped
  1213. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for');
  1214. forComponents.forEach(function (component) {
  1215. var ref = component.dataset.ref;
  1216. if (!$refs[ref]) {
  1217. $refs[ref] = [];
  1218. }
  1219. $refs[ref].push(component.$vm || component);
  1220. });
  1221. return $refs;
  1222. } });
  1223. }
  1224. function handleLink(event) {var _ref4 =
  1225. event.detail || event.value,vuePid = _ref4.vuePid,vueOptions = _ref4.vueOptions; // detail 是微信,value 是百度(dipatch)
  1226. var parentVm;
  1227. if (vuePid) {
  1228. parentVm = findVmByVueId(this.$vm, vuePid);
  1229. }
  1230. if (!parentVm) {
  1231. parentVm = this.$vm;
  1232. }
  1233. vueOptions.parent = parentVm;
  1234. }
  1235. function parseApp(vm) {
  1236. return parseBaseApp(vm, {
  1237. mocks: mocks,
  1238. initRefs: initRefs });
  1239. }
  1240. function createApp(vm) {
  1241. App(parseApp(vm));
  1242. return vm;
  1243. }
  1244. var encodeReserveRE = /[!'()*]/g;
  1245. var encodeReserveReplacer = function encodeReserveReplacer(c) {return '%' + c.charCodeAt(0).toString(16);};
  1246. var commaRE = /%2C/g;
  1247. // fixed encodeURIComponent which is more conformant to RFC3986:
  1248. // - escapes [!'()*]
  1249. // - preserve commas
  1250. var encode = function encode(str) {return encodeURIComponent(str).
  1251. replace(encodeReserveRE, encodeReserveReplacer).
  1252. replace(commaRE, ',');};
  1253. function stringifyQuery(obj) {var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  1254. var res = obj ? Object.keys(obj).map(function (key) {
  1255. var val = obj[key];
  1256. if (val === undefined) {
  1257. return '';
  1258. }
  1259. if (val === null) {
  1260. return encodeStr(key);
  1261. }
  1262. if (Array.isArray(val)) {
  1263. var result = [];
  1264. val.forEach(function (val2) {
  1265. if (val2 === undefined) {
  1266. return;
  1267. }
  1268. if (val2 === null) {
  1269. result.push(encodeStr(key));
  1270. } else {
  1271. result.push(encodeStr(key) + '=' + encodeStr(val2));
  1272. }
  1273. });
  1274. return result.join('&');
  1275. }
  1276. return encodeStr(key) + '=' + encodeStr(val);
  1277. }).filter(function (x) {return x.length > 0;}).join('&') : null;
  1278. return res ? "?".concat(res) : '';
  1279. }
  1280. function parseBaseComponent(vueComponentOptions)
  1281. {var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},isPage = _ref5.isPage,initRelation = _ref5.initRelation;var _initVueComponent =
  1282. initVueComponent(_vue.default, vueComponentOptions),_initVueComponent2 = _slicedToArray(_initVueComponent, 2),VueComponent = _initVueComponent2[0],vueOptions = _initVueComponent2[1];
  1283. var options = _objectSpread({
  1284. multipleSlots: true,
  1285. addGlobalClass: true },
  1286. vueOptions.options || {});
  1287. {
  1288. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  1289. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  1290. Object.assign(options, vueOptions['mp-weixin'].options);
  1291. }
  1292. }
  1293. var componentOptions = {
  1294. options: options,
  1295. data: initData(vueOptions, _vue.default.prototype),
  1296. behaviors: initBehaviors(vueOptions, initBehavior),
  1297. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  1298. lifetimes: {
  1299. attached: function attached() {
  1300. var properties = this.properties;
  1301. var options = {
  1302. mpType: isPage.call(this) ? 'page' : 'component',
  1303. mpInstance: this,
  1304. propsData: properties };
  1305. initVueIds(properties.vueId, this);
  1306. // 处理父子关系
  1307. initRelation.call(this, {
  1308. vuePid: this._$vuePid,
  1309. vueOptions: options });
  1310. // 初始化 vue 实例
  1311. this.$vm = new VueComponent(options);
  1312. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  1313. initSlots(this.$vm, properties.vueSlots);
  1314. // 触发首次 setData
  1315. this.$vm.$mount();
  1316. },
  1317. ready: function ready() {
  1318. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  1319. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  1320. if (this.$vm) {
  1321. this.$vm._isMounted = true;
  1322. this.$vm.__call_hook('mounted');
  1323. this.$vm.__call_hook('onReady');
  1324. }
  1325. },
  1326. detached: function detached() {
  1327. this.$vm && this.$vm.$destroy();
  1328. } },
  1329. pageLifetimes: {
  1330. show: function show(args) {
  1331. this.$vm && this.$vm.__call_hook('onPageShow', args);
  1332. },
  1333. hide: function hide() {
  1334. this.$vm && this.$vm.__call_hook('onPageHide');
  1335. },
  1336. resize: function resize(size) {
  1337. this.$vm && this.$vm.__call_hook('onPageResize', size);
  1338. } },
  1339. methods: {
  1340. __l: handleLink,
  1341. __e: handleEvent } };
  1342. // externalClasses
  1343. if (vueOptions.externalClasses) {
  1344. componentOptions.externalClasses = vueOptions.externalClasses;
  1345. }
  1346. if (Array.isArray(vueOptions.wxsCallMethods)) {
  1347. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  1348. componentOptions.methods[callMethod] = function (args) {
  1349. return this.$vm[callMethod](args);
  1350. };
  1351. });
  1352. }
  1353. if (isPage) {
  1354. return componentOptions;
  1355. }
  1356. return [componentOptions, VueComponent];
  1357. }
  1358. function parseComponent(vueComponentOptions) {
  1359. return parseBaseComponent(vueComponentOptions, {
  1360. isPage: isPage,
  1361. initRelation: initRelation });
  1362. }
  1363. var hooks$1 = [
  1364. 'onShow',
  1365. 'onHide',
  1366. 'onUnload'];
  1367. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  1368. function parseBasePage(vuePageOptions, _ref6)
  1369. {var isPage = _ref6.isPage,initRelation = _ref6.initRelation;
  1370. var pageOptions = parseComponent(vuePageOptions);
  1371. initHooks(pageOptions.methods, hooks$1, vuePageOptions);
  1372. pageOptions.methods.onLoad = function (query) {
  1373. this.options = query;
  1374. var copyQuery = Object.assign({}, query);
  1375. delete copyQuery.__id__;
  1376. this.$page = {
  1377. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery) };
  1378. this.$vm.$mp.query = query; // 兼容 mpvue
  1379. this.$vm.__call_hook('onLoad', query);
  1380. };
  1381. return pageOptions;
  1382. }
  1383. function parsePage(vuePageOptions) {
  1384. return parseBasePage(vuePageOptions, {
  1385. isPage: isPage,
  1386. initRelation: initRelation });
  1387. }
  1388. function createPage(vuePageOptions) {
  1389. {
  1390. return Component(parsePage(vuePageOptions));
  1391. }
  1392. }
  1393. function createComponent(vueOptions) {
  1394. {
  1395. return Component(parseComponent(vueOptions));
  1396. }
  1397. }
  1398. function createSubpackageApp(vm) {
  1399. var appOptions = parseApp(vm);
  1400. var app = getApp({
  1401. allowDefault: true });
  1402. var globalData = app.globalData;
  1403. if (globalData) {
  1404. Object.keys(appOptions.globalData).forEach(function (name) {
  1405. if (!hasOwn(globalData, name)) {
  1406. globalData[name] = appOptions.globalData[name];
  1407. }
  1408. });
  1409. }
  1410. Object.keys(appOptions).forEach(function (name) {
  1411. if (!hasOwn(app, name)) {
  1412. app[name] = appOptions[name];
  1413. }
  1414. });
  1415. if (isFn(appOptions.onShow) && wx.onAppShow) {
  1416. wx.onAppShow(function () {for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {args[_key5] = arguments[_key5];}
  1417. appOptions.onShow.apply(app, args);
  1418. });
  1419. }
  1420. if (isFn(appOptions.onHide) && wx.onAppHide) {
  1421. wx.onAppHide(function () {for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {args[_key6] = arguments[_key6];}
  1422. appOptions.onHide.apply(app, args);
  1423. });
  1424. }
  1425. if (isFn(appOptions.onLaunch)) {
  1426. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  1427. appOptions.onLaunch.call(app, args);
  1428. }
  1429. return vm;
  1430. }
  1431. todos.forEach(function (todoApi) {
  1432. protocols[todoApi] = false;
  1433. });
  1434. canIUses.forEach(function (canIUseApi) {
  1435. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name :
  1436. canIUseApi;
  1437. if (!wx.canIUse(apiName)) {
  1438. protocols[canIUseApi] = false;
  1439. }
  1440. });
  1441. var uni = {};
  1442. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  1443. uni = new Proxy({}, {
  1444. get: function get(target, name) {
  1445. if (hasOwn(target, name)) {
  1446. return target[name];
  1447. }
  1448. if (baseApi[name]) {
  1449. return baseApi[name];
  1450. }
  1451. if (api[name]) {
  1452. return promisify(name, api[name]);
  1453. }
  1454. {
  1455. if (extraApi[name]) {
  1456. return promisify(name, extraApi[name]);
  1457. }
  1458. if (todoApis[name]) {
  1459. return promisify(name, todoApis[name]);
  1460. }
  1461. }
  1462. if (eventApi[name]) {
  1463. return eventApi[name];
  1464. }
  1465. if (!hasOwn(wx, name) && !hasOwn(protocols, name)) {
  1466. return;
  1467. }
  1468. return promisify(name, wrapper(name, wx[name]));
  1469. },
  1470. set: function set(target, name, value) {
  1471. target[name] = value;
  1472. return true;
  1473. } });
  1474. } else {
  1475. Object.keys(baseApi).forEach(function (name) {
  1476. uni[name] = baseApi[name];
  1477. });
  1478. {
  1479. Object.keys(todoApis).forEach(function (name) {
  1480. uni[name] = promisify(name, todoApis[name]);
  1481. });
  1482. Object.keys(extraApi).forEach(function (name) {
  1483. uni[name] = promisify(name, todoApis[name]);
  1484. });
  1485. }
  1486. Object.keys(eventApi).forEach(function (name) {
  1487. uni[name] = eventApi[name];
  1488. });
  1489. Object.keys(api).forEach(function (name) {
  1490. uni[name] = promisify(name, api[name]);
  1491. });
  1492. Object.keys(wx).forEach(function (name) {
  1493. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  1494. uni[name] = promisify(name, wrapper(name, wx[name]));
  1495. }
  1496. });
  1497. }
  1498. wx.createApp = createApp;
  1499. wx.createPage = createPage;
  1500. wx.createComponent = createComponent;
  1501. wx.createSubpackageApp = createSubpackageApp;
  1502. var uni$1 = uni;var _default =
  1503. uni$1;exports.default = _default;
  1504. /***/ }),
  1505. /***/ 13:
  1506. /*!**********************************************************************************************************!*\
  1507. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  1508. \**********************************************************************************************************/
  1509. /*! exports provided: default */
  1510. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1511. "use strict";
  1512. __webpack_require__.r(__webpack_exports__);
  1513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  1514. /* globals __VUE_SSR_CONTEXT__ */
  1515. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  1516. // This module is a runtime utility for cleaner component module output and will
  1517. // be included in the final webpack user bundle.
  1518. function normalizeComponent (
  1519. scriptExports,
  1520. render,
  1521. staticRenderFns,
  1522. functionalTemplate,
  1523. injectStyles,
  1524. scopeId,
  1525. moduleIdentifier, /* server only */
  1526. shadowMode, /* vue-cli only */
  1527. components, // fixed by xxxxxx auto components
  1528. renderjs // fixed by xxxxxx renderjs
  1529. ) {
  1530. // Vue.extend constructor export interop
  1531. var options = typeof scriptExports === 'function'
  1532. ? scriptExports.options
  1533. : scriptExports
  1534. // fixed by xxxxxx auto components
  1535. if (components) {
  1536. if (!options.components) {
  1537. options.components = {}
  1538. }
  1539. var hasOwn = Object.prototype.hasOwnProperty
  1540. for (var name in components) {
  1541. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  1542. options.components[name] = components[name]
  1543. }
  1544. }
  1545. }
  1546. // fixed by xxxxxx renderjs
  1547. if (renderjs) {
  1548. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  1549. this[renderjs.__module] = this
  1550. });
  1551. (options.mixins || (options.mixins = [])).push(renderjs)
  1552. }
  1553. // render functions
  1554. if (render) {
  1555. options.render = render
  1556. options.staticRenderFns = staticRenderFns
  1557. options._compiled = true
  1558. }
  1559. // functional template
  1560. if (functionalTemplate) {
  1561. options.functional = true
  1562. }
  1563. // scopedId
  1564. if (scopeId) {
  1565. options._scopeId = 'data-v-' + scopeId
  1566. }
  1567. var hook
  1568. if (moduleIdentifier) { // server build
  1569. hook = function (context) {
  1570. // 2.3 injection
  1571. context =
  1572. context || // cached call
  1573. (this.$vnode && this.$vnode.ssrContext) || // stateful
  1574. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  1575. // 2.2 with runInNewContext: true
  1576. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  1577. context = __VUE_SSR_CONTEXT__
  1578. }
  1579. // inject component styles
  1580. if (injectStyles) {
  1581. injectStyles.call(this, context)
  1582. }
  1583. // register component module identifier for async chunk inferrence
  1584. if (context && context._registeredComponents) {
  1585. context._registeredComponents.add(moduleIdentifier)
  1586. }
  1587. }
  1588. // used by ssr in case component is cached and beforeCreate
  1589. // never gets called
  1590. options._ssrRegister = hook
  1591. } else if (injectStyles) {
  1592. hook = shadowMode
  1593. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  1594. : injectStyles
  1595. }
  1596. if (hook) {
  1597. if (options.functional) {
  1598. // for template-only hot-reload because in that case the render fn doesn't
  1599. // go through the normalizer
  1600. options._injectStyles = hook
  1601. // register for functioal component in vue file
  1602. var originalRender = options.render
  1603. options.render = function renderWithStyleInjection (h, context) {
  1604. hook.call(context)
  1605. return originalRender(h, context)
  1606. }
  1607. } else {
  1608. // inject component registration as beforeCreate hook
  1609. var existing = options.beforeCreate
  1610. options.beforeCreate = existing
  1611. ? [].concat(existing, hook)
  1612. : [hook]
  1613. }
  1614. }
  1615. return {
  1616. exports: scriptExports,
  1617. options: options
  1618. }
  1619. }
  1620. /***/ }),
  1621. /***/ 2:
  1622. /*!******************************************************************************************!*\
  1623. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  1624. \******************************************************************************************/
  1625. /*! exports provided: default */
  1626. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1627. "use strict";
  1628. __webpack_require__.r(__webpack_exports__);
  1629. /* WEBPACK VAR INJECTION */(function(global) {/*!
  1630. * Vue.js v2.6.11
  1631. * (c) 2014-2021 Evan You
  1632. * Released under the MIT License.
  1633. */
  1634. /* */
  1635. var emptyObject = Object.freeze({});
  1636. // These helpers produce better VM code in JS engines due to their
  1637. // explicitness and function inlining.
  1638. function isUndef (v) {
  1639. return v === undefined || v === null
  1640. }
  1641. function isDef (v) {
  1642. return v !== undefined && v !== null
  1643. }
  1644. function isTrue (v) {
  1645. return v === true
  1646. }
  1647. function isFalse (v) {
  1648. return v === false
  1649. }
  1650. /**
  1651. * Check if value is primitive.
  1652. */
  1653. function isPrimitive (value) {
  1654. return (
  1655. typeof value === 'string' ||
  1656. typeof value === 'number' ||
  1657. // $flow-disable-line
  1658. typeof value === 'symbol' ||
  1659. typeof value === 'boolean'
  1660. )
  1661. }
  1662. /**
  1663. * Quick object check - this is primarily used to tell
  1664. * Objects from primitive values when we know the value
  1665. * is a JSON-compliant type.
  1666. */
  1667. function isObject (obj) {
  1668. return obj !== null && typeof obj === 'object'
  1669. }
  1670. /**
  1671. * Get the raw type string of a value, e.g., [object Object].
  1672. */
  1673. var _toString = Object.prototype.toString;
  1674. function toRawType (value) {
  1675. return _toString.call(value).slice(8, -1)
  1676. }
  1677. /**
  1678. * Strict object type check. Only returns true
  1679. * for plain JavaScript objects.
  1680. */
  1681. function isPlainObject (obj) {
  1682. return _toString.call(obj) === '[object Object]'
  1683. }
  1684. function isRegExp (v) {
  1685. return _toString.call(v) === '[object RegExp]'
  1686. }
  1687. /**
  1688. * Check if val is a valid array index.
  1689. */
  1690. function isValidArrayIndex (val) {
  1691. var n = parseFloat(String(val));
  1692. return n >= 0 && Math.floor(n) === n && isFinite(val)
  1693. }
  1694. function isPromise (val) {
  1695. return (
  1696. isDef(val) &&
  1697. typeof val.then === 'function' &&
  1698. typeof val.catch === 'function'
  1699. )
  1700. }
  1701. /**
  1702. * Convert a value to a string that is actually rendered.
  1703. */
  1704. function toString (val) {
  1705. return val == null
  1706. ? ''
  1707. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  1708. ? JSON.stringify(val, null, 2)
  1709. : String(val)
  1710. }
  1711. /**
  1712. * Convert an input value to a number for persistence.
  1713. * If the conversion fails, return original string.
  1714. */
  1715. function toNumber (val) {
  1716. var n = parseFloat(val);
  1717. return isNaN(n) ? val : n
  1718. }
  1719. /**
  1720. * Make a map and return a function for checking if a key
  1721. * is in that map.
  1722. */
  1723. function makeMap (
  1724. str,
  1725. expectsLowerCase
  1726. ) {
  1727. var map = Object.create(null);
  1728. var list = str.split(',');
  1729. for (var i = 0; i < list.length; i++) {
  1730. map[list[i]] = true;
  1731. }
  1732. return expectsLowerCase
  1733. ? function (val) { return map[val.toLowerCase()]; }
  1734. : function (val) { return map[val]; }
  1735. }
  1736. /**
  1737. * Check if a tag is a built-in tag.
  1738. */
  1739. var isBuiltInTag = makeMap('slot,component', true);
  1740. /**
  1741. * Check if an attribute is a reserved attribute.
  1742. */
  1743. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  1744. /**
  1745. * Remove an item from an array.
  1746. */
  1747. function remove (arr, item) {
  1748. if (arr.length) {
  1749. var index = arr.indexOf(item);
  1750. if (index > -1) {
  1751. return arr.splice(index, 1)
  1752. }
  1753. }
  1754. }
  1755. /**
  1756. * Check whether an object has the property.
  1757. */
  1758. var hasOwnProperty = Object.prototype.hasOwnProperty;
  1759. function hasOwn (obj, key) {
  1760. return hasOwnProperty.call(obj, key)
  1761. }
  1762. /**
  1763. * Create a cached version of a pure function.
  1764. */
  1765. function cached (fn) {
  1766. var cache = Object.create(null);
  1767. return (function cachedFn (str) {
  1768. var hit = cache[str];
  1769. return hit || (cache[str] = fn(str))
  1770. })
  1771. }
  1772. /**
  1773. * Camelize a hyphen-delimited string.
  1774. */
  1775. var camelizeRE = /-(\w)/g;
  1776. var camelize = cached(function (str) {
  1777. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  1778. });
  1779. /**
  1780. * Capitalize a string.
  1781. */
  1782. var capitalize = cached(function (str) {
  1783. return str.charAt(0).toUpperCase() + str.slice(1)
  1784. });
  1785. /**
  1786. * Hyphenate a camelCase string.
  1787. */
  1788. var hyphenateRE = /\B([A-Z])/g;
  1789. var hyphenate = cached(function (str) {
  1790. return str.replace(hyphenateRE, '-$1').toLowerCase()
  1791. });
  1792. /**
  1793. * Simple bind polyfill for environments that do not support it,
  1794. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  1795. * since native bind is now performant enough in most browsers.
  1796. * But removing it would mean breaking code that was able to run in
  1797. * PhantomJS 1.x, so this must be kept for backward compatibility.
  1798. */
  1799. /* istanbul ignore next */
  1800. function polyfillBind (fn, ctx) {
  1801. function boundFn (a) {
  1802. var l = arguments.length;
  1803. return l
  1804. ? l > 1
  1805. ? fn.apply(ctx, arguments)
  1806. : fn.call(ctx, a)
  1807. : fn.call(ctx)
  1808. }
  1809. boundFn._length = fn.length;
  1810. return boundFn
  1811. }
  1812. function nativeBind (fn, ctx) {
  1813. return fn.bind(ctx)
  1814. }
  1815. var bind = Function.prototype.bind
  1816. ? nativeBind
  1817. : polyfillBind;
  1818. /**
  1819. * Convert an Array-like object to a real Array.
  1820. */
  1821. function toArray (list, start) {
  1822. start = start || 0;
  1823. var i = list.length - start;
  1824. var ret = new Array(i);
  1825. while (i--) {
  1826. ret[i] = list[i + start];
  1827. }
  1828. return ret
  1829. }
  1830. /**
  1831. * Mix properties into target object.
  1832. */
  1833. function extend (to, _from) {
  1834. for (var key in _from) {
  1835. to[key] = _from[key];
  1836. }
  1837. return to
  1838. }
  1839. /**
  1840. * Merge an Array of Objects into a single Object.
  1841. */
  1842. function toObject (arr) {
  1843. var res = {};
  1844. for (var i = 0; i < arr.length; i++) {
  1845. if (arr[i]) {
  1846. extend(res, arr[i]);
  1847. }
  1848. }
  1849. return res
  1850. }
  1851. /* eslint-disable no-unused-vars */
  1852. /**
  1853. * Perform no operation.
  1854. * Stubbing args to make Flow happy without leaving useless transpiled code
  1855. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  1856. */
  1857. function noop (a, b, c) {}
  1858. /**
  1859. * Always return false.
  1860. */
  1861. var no = function (a, b, c) { return false; };
  1862. /* eslint-enable no-unused-vars */
  1863. /**
  1864. * Return the same value.
  1865. */
  1866. var identity = function (_) { return _; };
  1867. /**
  1868. * Check if two values are loosely equal - that is,
  1869. * if they are plain objects, do they have the same shape?
  1870. */
  1871. function looseEqual (a, b) {
  1872. if (a === b) { return true }
  1873. var isObjectA = isObject(a);
  1874. var isObjectB = isObject(b);
  1875. if (isObjectA && isObjectB) {
  1876. try {
  1877. var isArrayA = Array.isArray(a);
  1878. var isArrayB = Array.isArray(b);
  1879. if (isArrayA && isArrayB) {
  1880. return a.length === b.length && a.every(function (e, i) {
  1881. return looseEqual(e, b[i])
  1882. })
  1883. } else if (a instanceof Date && b instanceof Date) {
  1884. return a.getTime() === b.getTime()
  1885. } else if (!isArrayA && !isArrayB) {
  1886. var keysA = Object.keys(a);
  1887. var keysB = Object.keys(b);
  1888. return keysA.length === keysB.length && keysA.every(function (key) {
  1889. return looseEqual(a[key], b[key])
  1890. })
  1891. } else {
  1892. /* istanbul ignore next */
  1893. return false
  1894. }
  1895. } catch (e) {
  1896. /* istanbul ignore next */
  1897. return false
  1898. }
  1899. } else if (!isObjectA && !isObjectB) {
  1900. return String(a) === String(b)
  1901. } else {
  1902. return false
  1903. }
  1904. }
  1905. /**
  1906. * Return the first index at which a loosely equal value can be
  1907. * found in the array (if value is a plain object, the array must
  1908. * contain an object of the same shape), or -1 if it is not present.
  1909. */
  1910. function looseIndexOf (arr, val) {
  1911. for (var i = 0; i < arr.length; i++) {
  1912. if (looseEqual(arr[i], val)) { return i }
  1913. }
  1914. return -1
  1915. }
  1916. /**
  1917. * Ensure a function is called only once.
  1918. */
  1919. function once (fn) {
  1920. var called = false;
  1921. return function () {
  1922. if (!called) {
  1923. called = true;
  1924. fn.apply(this, arguments);
  1925. }
  1926. }
  1927. }
  1928. var ASSET_TYPES = [
  1929. 'component',
  1930. 'directive',
  1931. 'filter'
  1932. ];
  1933. var LIFECYCLE_HOOKS = [
  1934. 'beforeCreate',
  1935. 'created',
  1936. 'beforeMount',
  1937. 'mounted',
  1938. 'beforeUpdate',
  1939. 'updated',
  1940. 'beforeDestroy',
  1941. 'destroyed',
  1942. 'activated',
  1943. 'deactivated',
  1944. 'errorCaptured',
  1945. 'serverPrefetch'
  1946. ];
  1947. /* */
  1948. var config = ({
  1949. /**
  1950. * Option merge strategies (used in core/util/options)
  1951. */
  1952. // $flow-disable-line
  1953. optionMergeStrategies: Object.create(null),
  1954. /**
  1955. * Whether to suppress warnings.
  1956. */
  1957. silent: false,
  1958. /**
  1959. * Show production mode tip message on boot?
  1960. */
  1961. productionTip: "development" !== 'production',
  1962. /**
  1963. * Whether to enable devtools
  1964. */
  1965. devtools: "development" !== 'production',
  1966. /**
  1967. * Whether to record perf
  1968. */
  1969. performance: false,
  1970. /**
  1971. * Error handler for watcher errors
  1972. */
  1973. errorHandler: null,
  1974. /**
  1975. * Warn handler for watcher warns
  1976. */
  1977. warnHandler: null,
  1978. /**
  1979. * Ignore certain custom elements
  1980. */
  1981. ignoredElements: [],
  1982. /**
  1983. * Custom user key aliases for v-on
  1984. */
  1985. // $flow-disable-line
  1986. keyCodes: Object.create(null),
  1987. /**
  1988. * Check if a tag is reserved so that it cannot be registered as a
  1989. * component. This is platform-dependent and may be overwritten.
  1990. */
  1991. isReservedTag: no,
  1992. /**
  1993. * Check if an attribute is reserved so that it cannot be used as a component
  1994. * prop. This is platform-dependent and may be overwritten.
  1995. */
  1996. isReservedAttr: no,
  1997. /**
  1998. * Check if a tag is an unknown element.
  1999. * Platform-dependent.
  2000. */
  2001. isUnknownElement: no,
  2002. /**
  2003. * Get the namespace of an element
  2004. */
  2005. getTagNamespace: noop,
  2006. /**
  2007. * Parse the real tag name for the specific platform.
  2008. */
  2009. parsePlatformTagName: identity,
  2010. /**
  2011. * Check if an attribute must be bound using property, e.g. value
  2012. * Platform-dependent.
  2013. */
  2014. mustUseProp: no,
  2015. /**
  2016. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  2017. * This will significantly reduce performance if set to false.
  2018. */
  2019. async: true,
  2020. /**
  2021. * Exposed for legacy reasons
  2022. */
  2023. _lifecycleHooks: LIFECYCLE_HOOKS
  2024. });
  2025. /* */
  2026. /**
  2027. * unicode letters used for parsing html tags, component names and property paths.
  2028. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  2029. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  2030. */
  2031. 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/;
  2032. /**
  2033. * Check if a string starts with $ or _
  2034. */
  2035. function isReserved (str) {
  2036. var c = (str + '').charCodeAt(0);
  2037. return c === 0x24 || c === 0x5F
  2038. }
  2039. /**
  2040. * Define a property.
  2041. */
  2042. function def (obj, key, val, enumerable) {
  2043. Object.defineProperty(obj, key, {
  2044. value: val,
  2045. enumerable: !!enumerable,
  2046. writable: true,
  2047. configurable: true
  2048. });
  2049. }
  2050. /**
  2051. * Parse simple path.
  2052. */
  2053. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  2054. function parsePath (path) {
  2055. if (bailRE.test(path)) {
  2056. return
  2057. }
  2058. var segments = path.split('.');
  2059. return function (obj) {
  2060. for (var i = 0; i < segments.length; i++) {
  2061. if (!obj) { return }
  2062. obj = obj[segments[i]];
  2063. }
  2064. return obj
  2065. }
  2066. }
  2067. /* */
  2068. // can we use __proto__?
  2069. var hasProto = '__proto__' in {};
  2070. // Browser environment sniffing
  2071. var inBrowser = typeof window !== 'undefined';
  2072. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  2073. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  2074. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  2075. var isIE = UA && /msie|trident/.test(UA);
  2076. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  2077. var isEdge = UA && UA.indexOf('edge/') > 0;
  2078. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  2079. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  2080. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  2081. var isPhantomJS = UA && /phantomjs/.test(UA);
  2082. var isFF = UA && UA.match(/firefox\/(\d+)/);
  2083. // Firefox has a "watch" function on Object.prototype...
  2084. var nativeWatch = ({}).watch;
  2085. if (inBrowser) {
  2086. try {
  2087. var opts = {};
  2088. Object.defineProperty(opts, 'passive', ({
  2089. get: function get () {
  2090. }
  2091. })); // https://github.com/facebook/flow/issues/285
  2092. window.addEventListener('test-passive', null, opts);
  2093. } catch (e) {}
  2094. }
  2095. // this needs to be lazy-evaled because vue may be required before
  2096. // vue-server-renderer can set VUE_ENV
  2097. var _isServer;
  2098. var isServerRendering = function () {
  2099. if (_isServer === undefined) {
  2100. /* istanbul ignore if */
  2101. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  2102. // detect presence of vue-server-renderer and avoid
  2103. // Webpack shimming the process
  2104. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  2105. } else {
  2106. _isServer = false;
  2107. }
  2108. }
  2109. return _isServer
  2110. };
  2111. // detect devtools
  2112. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  2113. /* istanbul ignore next */
  2114. function isNative (Ctor) {
  2115. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  2116. }
  2117. var hasSymbol =
  2118. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  2119. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  2120. var _Set;
  2121. /* istanbul ignore if */ // $flow-disable-line
  2122. if (typeof Set !== 'undefined' && isNative(Set)) {
  2123. // use native Set when available.
  2124. _Set = Set;
  2125. } else {
  2126. // a non-standard Set polyfill that only works with primitive keys.
  2127. _Set = /*@__PURE__*/(function () {
  2128. function Set () {
  2129. this.set = Object.create(null);
  2130. }
  2131. Set.prototype.has = function has (key) {
  2132. return this.set[key] === true
  2133. };
  2134. Set.prototype.add = function add (key) {
  2135. this.set[key] = true;
  2136. };
  2137. Set.prototype.clear = function clear () {
  2138. this.set = Object.create(null);
  2139. };
  2140. return Set;
  2141. }());
  2142. }
  2143. /* */
  2144. var warn = noop;
  2145. var tip = noop;
  2146. var generateComponentTrace = (noop); // work around flow check
  2147. var formatComponentName = (noop);
  2148. if (true) {
  2149. var hasConsole = typeof console !== 'undefined';
  2150. var classifyRE = /(?:^|[-_])(\w)/g;
  2151. var classify = function (str) { return str
  2152. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  2153. .replace(/[-_]/g, ''); };
  2154. warn = function (msg, vm) {
  2155. var trace = vm ? generateComponentTrace(vm) : '';
  2156. if (config.warnHandler) {
  2157. config.warnHandler.call(null, msg, vm, trace);
  2158. } else if (hasConsole && (!config.silent)) {
  2159. console.error(("[Vue warn]: " + msg + trace));
  2160. }
  2161. };
  2162. tip = function (msg, vm) {
  2163. if (hasConsole && (!config.silent)) {
  2164. console.warn("[Vue tip]: " + msg + (
  2165. vm ? generateComponentTrace(vm) : ''
  2166. ));
  2167. }
  2168. };
  2169. formatComponentName = function (vm, includeFile) {
  2170. if (vm.$root === vm) {
  2171. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  2172. return ('') + vm.$options.__file
  2173. }
  2174. return '<Root>'
  2175. }
  2176. var options = typeof vm === 'function' && vm.cid != null
  2177. ? vm.options
  2178. : vm._isVue
  2179. ? vm.$options || vm.constructor.options
  2180. : vm;
  2181. var name = options.name || options._componentTag;
  2182. var file = options.__file;
  2183. if (!name && file) {
  2184. var match = file.match(/([^/\\]+)\.vue$/);
  2185. name = match && match[1];
  2186. }
  2187. return (
  2188. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  2189. (file && includeFile !== false ? (" at " + file) : '')
  2190. )
  2191. };
  2192. var repeat = function (str, n) {
  2193. var res = '';
  2194. while (n) {
  2195. if (n % 2 === 1) { res += str; }
  2196. if (n > 1) { str += str; }
  2197. n >>= 1;
  2198. }
  2199. return res
  2200. };
  2201. generateComponentTrace = function (vm) {
  2202. if (vm._isVue && vm.$parent) {
  2203. var tree = [];
  2204. var currentRecursiveSequence = 0;
  2205. while (vm && vm.$options.name !== 'PageBody') {
  2206. if (tree.length > 0) {
  2207. var last = tree[tree.length - 1];
  2208. if (last.constructor === vm.constructor) {
  2209. currentRecursiveSequence++;
  2210. vm = vm.$parent;
  2211. continue
  2212. } else if (currentRecursiveSequence > 0) {
  2213. tree[tree.length - 1] = [last, currentRecursiveSequence];
  2214. currentRecursiveSequence = 0;
  2215. }
  2216. }
  2217. !vm.$options.isReserved && tree.push(vm);
  2218. vm = vm.$parent;
  2219. }
  2220. return '\n\nfound in\n\n' + tree
  2221. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  2222. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  2223. : formatComponentName(vm))); })
  2224. .join('\n')
  2225. } else {
  2226. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  2227. }
  2228. };
  2229. }
  2230. /* */
  2231. var uid = 0;
  2232. /**
  2233. * A dep is an observable that can have multiple
  2234. * directives subscribing to it.
  2235. */
  2236. var Dep = function Dep () {
  2237. this.id = uid++;
  2238. this.subs = [];
  2239. };
  2240. Dep.prototype.addSub = function addSub (sub) {
  2241. this.subs.push(sub);
  2242. };
  2243. Dep.prototype.removeSub = function removeSub (sub) {
  2244. remove(this.subs, sub);
  2245. };
  2246. Dep.prototype.depend = function depend () {
  2247. if (Dep.SharedObject.target) {
  2248. Dep.SharedObject.target.addDep(this);
  2249. }
  2250. };
  2251. Dep.prototype.notify = function notify () {
  2252. // stabilize the subscriber list first
  2253. var subs = this.subs.slice();
  2254. if ( true && !config.async) {
  2255. // subs aren't sorted in scheduler if not running async
  2256. // we need to sort them now to make sure they fire in correct
  2257. // order
  2258. subs.sort(function (a, b) { return a.id - b.id; });
  2259. }
  2260. for (var i = 0, l = subs.length; i < l; i++) {
  2261. subs[i].update();
  2262. }
  2263. };
  2264. // The current target watcher being evaluated.
  2265. // This is globally unique because only one watcher
  2266. // can be evaluated at a time.
  2267. // fixed by xxxxxx (nvue shared vuex)
  2268. /* eslint-disable no-undef */
  2269. Dep.SharedObject = {};
  2270. Dep.SharedObject.target = null;
  2271. Dep.SharedObject.targetStack = [];
  2272. function pushTarget (target) {
  2273. Dep.SharedObject.targetStack.push(target);
  2274. Dep.SharedObject.target = target;
  2275. Dep.target = target;
  2276. }
  2277. function popTarget () {
  2278. Dep.SharedObject.targetStack.pop();
  2279. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  2280. Dep.target = Dep.SharedObject.target;
  2281. }
  2282. /* */
  2283. var VNode = function VNode (
  2284. tag,
  2285. data,
  2286. children,
  2287. text,
  2288. elm,
  2289. context,
  2290. componentOptions,
  2291. asyncFactory
  2292. ) {
  2293. this.tag = tag;
  2294. this.data = data;
  2295. this.children = children;
  2296. this.text = text;
  2297. this.elm = elm;
  2298. this.ns = undefined;
  2299. this.context = context;
  2300. this.fnContext = undefined;
  2301. this.fnOptions = undefined;
  2302. this.fnScopeId = undefined;
  2303. this.key = data && data.key;
  2304. this.componentOptions = componentOptions;
  2305. this.componentInstance = undefined;
  2306. this.parent = undefined;
  2307. this.raw = false;
  2308. this.isStatic = false;
  2309. this.isRootInsert = true;
  2310. this.isComment = false;
  2311. this.isCloned = false;
  2312. this.isOnce = false;
  2313. this.asyncFactory = asyncFactory;
  2314. this.asyncMeta = undefined;
  2315. this.isAsyncPlaceholder = false;
  2316. };
  2317. var prototypeAccessors = { child: { configurable: true } };
  2318. // DEPRECATED: alias for componentInstance for backwards compat.
  2319. /* istanbul ignore next */
  2320. prototypeAccessors.child.get = function () {
  2321. return this.componentInstance
  2322. };
  2323. Object.defineProperties( VNode.prototype, prototypeAccessors );
  2324. var createEmptyVNode = function (text) {
  2325. if ( text === void 0 ) text = '';
  2326. var node = new VNode();
  2327. node.text = text;
  2328. node.isComment = true;
  2329. return node
  2330. };
  2331. function createTextVNode (val) {
  2332. return new VNode(undefined, undefined, undefined, String(val))
  2333. }
  2334. // optimized shallow clone
  2335. // used for static nodes and slot nodes because they may be reused across
  2336. // multiple renders, cloning them avoids errors when DOM manipulations rely
  2337. // on their elm reference.
  2338. function cloneVNode (vnode) {
  2339. var cloned = new VNode(
  2340. vnode.tag,
  2341. vnode.data,
  2342. // #7975
  2343. // clone children array to avoid mutating original in case of cloning
  2344. // a child.
  2345. vnode.children && vnode.children.slice(),
  2346. vnode.text,
  2347. vnode.elm,
  2348. vnode.context,
  2349. vnode.componentOptions,
  2350. vnode.asyncFactory
  2351. );
  2352. cloned.ns = vnode.ns;
  2353. cloned.isStatic = vnode.isStatic;
  2354. cloned.key = vnode.key;
  2355. cloned.isComment = vnode.isComment;
  2356. cloned.fnContext = vnode.fnContext;
  2357. cloned.fnOptions = vnode.fnOptions;
  2358. cloned.fnScopeId = vnode.fnScopeId;
  2359. cloned.asyncMeta = vnode.asyncMeta;
  2360. cloned.isCloned = true;
  2361. return cloned
  2362. }
  2363. /*
  2364. * not type checking this file because flow doesn't play well with
  2365. * dynamically accessing methods on Array prototype
  2366. */
  2367. var arrayProto = Array.prototype;
  2368. var arrayMethods = Object.create(arrayProto);
  2369. var methodsToPatch = [
  2370. 'push',
  2371. 'pop',
  2372. 'shift',
  2373. 'unshift',
  2374. 'splice',
  2375. 'sort',
  2376. 'reverse'
  2377. ];
  2378. /**
  2379. * Intercept mutating methods and emit events
  2380. */
  2381. methodsToPatch.forEach(function (method) {
  2382. // cache original method
  2383. var original = arrayProto[method];
  2384. def(arrayMethods, method, function mutator () {
  2385. var args = [], len = arguments.length;
  2386. while ( len-- ) args[ len ] = arguments[ len ];
  2387. var result = original.apply(this, args);
  2388. var ob = this.__ob__;
  2389. var inserted;
  2390. switch (method) {
  2391. case 'push':
  2392. case 'unshift':
  2393. inserted = args;
  2394. break
  2395. case 'splice':
  2396. inserted = args.slice(2);
  2397. break
  2398. }
  2399. if (inserted) { ob.observeArray(inserted); }
  2400. // notify change
  2401. ob.dep.notify();
  2402. return result
  2403. });
  2404. });
  2405. /* */
  2406. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  2407. /**
  2408. * In some cases we may want to disable observation inside a component's
  2409. * update computation.
  2410. */
  2411. var shouldObserve = true;
  2412. function toggleObserving (value) {
  2413. shouldObserve = value;
  2414. }
  2415. /**
  2416. * Observer class that is attached to each observed
  2417. * object. Once attached, the observer converts the target
  2418. * object's property keys into getter/setters that
  2419. * collect dependencies and dispatch updates.
  2420. */
  2421. var Observer = function Observer (value) {
  2422. this.value = value;
  2423. this.dep = new Dep();
  2424. this.vmCount = 0;
  2425. def(value, '__ob__', this);
  2426. if (Array.isArray(value)) {
  2427. if (hasProto) {
  2428. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  2429. if(value.push !== value.__proto__.push){
  2430. copyAugment(value, arrayMethods, arrayKeys);
  2431. } else {
  2432. protoAugment(value, arrayMethods);
  2433. }
  2434. }
  2435. } else {
  2436. copyAugment(value, arrayMethods, arrayKeys);
  2437. }
  2438. this.observeArray(value);
  2439. } else {
  2440. this.walk(value);
  2441. }
  2442. };
  2443. /**
  2444. * Walk through all properties and convert them into
  2445. * getter/setters. This method should only be called when
  2446. * value type is Object.
  2447. */
  2448. Observer.prototype.walk = function walk (obj) {
  2449. var keys = Object.keys(obj);
  2450. for (var i = 0; i < keys.length; i++) {
  2451. defineReactive$$1(obj, keys[i]);
  2452. }
  2453. };
  2454. /**
  2455. * Observe a list of Array items.
  2456. */
  2457. Observer.prototype.observeArray = function observeArray (items) {
  2458. for (var i = 0, l = items.length; i < l; i++) {
  2459. observe(items[i]);
  2460. }
  2461. };
  2462. // helpers
  2463. /**
  2464. * Augment a target Object or Array by intercepting
  2465. * the prototype chain using __proto__
  2466. */
  2467. function protoAugment (target, src) {
  2468. /* eslint-disable no-proto */
  2469. target.__proto__ = src;
  2470. /* eslint-enable no-proto */
  2471. }
  2472. /**
  2473. * Augment a target Object or Array by defining
  2474. * hidden properties.
  2475. */
  2476. /* istanbul ignore next */
  2477. function copyAugment (target, src, keys) {
  2478. for (var i = 0, l = keys.length; i < l; i++) {
  2479. var key = keys[i];
  2480. def(target, key, src[key]);
  2481. }
  2482. }
  2483. /**
  2484. * Attempt to create an observer instance for a value,
  2485. * returns the new observer if successfully observed,
  2486. * or the existing observer if the value already has one.
  2487. */
  2488. function observe (value, asRootData) {
  2489. if (!isObject(value) || value instanceof VNode) {
  2490. return
  2491. }
  2492. var ob;
  2493. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  2494. ob = value.__ob__;
  2495. } else if (
  2496. shouldObserve &&
  2497. !isServerRendering() &&
  2498. (Array.isArray(value) || isPlainObject(value)) &&
  2499. Object.isExtensible(value) &&
  2500. !value._isVue
  2501. ) {
  2502. ob = new Observer(value);
  2503. }
  2504. if (asRootData && ob) {
  2505. ob.vmCount++;
  2506. }
  2507. return ob
  2508. }
  2509. /**
  2510. * Define a reactive property on an Object.
  2511. */
  2512. function defineReactive$$1 (
  2513. obj,
  2514. key,
  2515. val,
  2516. customSetter,
  2517. shallow
  2518. ) {
  2519. var dep = new Dep();
  2520. var property = Object.getOwnPropertyDescriptor(obj, key);
  2521. if (property && property.configurable === false) {
  2522. return
  2523. }
  2524. // cater for pre-defined getter/setters
  2525. var getter = property && property.get;
  2526. var setter = property && property.set;
  2527. if ((!getter || setter) && arguments.length === 2) {
  2528. val = obj[key];
  2529. }
  2530. var childOb = !shallow && observe(val);
  2531. Object.defineProperty(obj, key, {
  2532. enumerable: true,
  2533. configurable: true,
  2534. get: function reactiveGetter () {
  2535. var value = getter ? getter.call(obj) : val;
  2536. if (Dep.SharedObject.target) { // fixed by xxxxxx
  2537. dep.depend();
  2538. if (childOb) {
  2539. childOb.dep.depend();
  2540. if (Array.isArray(value)) {
  2541. dependArray(value);
  2542. }
  2543. }
  2544. }
  2545. return value
  2546. },
  2547. set: function reactiveSetter (newVal) {
  2548. var value = getter ? getter.call(obj) : val;
  2549. /* eslint-disable no-self-compare */
  2550. if (newVal === value || (newVal !== newVal && value !== value)) {
  2551. return
  2552. }
  2553. /* eslint-enable no-self-compare */
  2554. if ( true && customSetter) {
  2555. customSetter();
  2556. }
  2557. // #7981: for accessor properties without setter
  2558. if (getter && !setter) { return }
  2559. if (setter) {
  2560. setter.call(obj, newVal);
  2561. } else {
  2562. val = newVal;
  2563. }
  2564. childOb = !shallow && observe(newVal);
  2565. dep.notify();
  2566. }
  2567. });
  2568. }
  2569. /**
  2570. * Set a property on an object. Adds the new property and
  2571. * triggers change notification if the property doesn't
  2572. * already exist.
  2573. */
  2574. function set (target, key, val) {
  2575. if ( true &&
  2576. (isUndef(target) || isPrimitive(target))
  2577. ) {
  2578. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  2579. }
  2580. if (Array.isArray(target) && isValidArrayIndex(key)) {
  2581. target.length = Math.max(target.length, key);
  2582. target.splice(key, 1, val);
  2583. return val
  2584. }
  2585. if (key in target && !(key in Object.prototype)) {
  2586. target[key] = val;
  2587. return val
  2588. }
  2589. var ob = (target).__ob__;
  2590. if (target._isVue || (ob && ob.vmCount)) {
  2591. true && warn(
  2592. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  2593. 'at runtime - declare it upfront in the data option.'
  2594. );
  2595. return val
  2596. }
  2597. if (!ob) {
  2598. target[key] = val;
  2599. return val
  2600. }
  2601. defineReactive$$1(ob.value, key, val);
  2602. ob.dep.notify();
  2603. return val
  2604. }
  2605. /**
  2606. * Delete a property and trigger change if necessary.
  2607. */
  2608. function del (target, key) {
  2609. if ( true &&
  2610. (isUndef(target) || isPrimitive(target))
  2611. ) {
  2612. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  2613. }
  2614. if (Array.isArray(target) && isValidArrayIndex(key)) {
  2615. target.splice(key, 1);
  2616. return
  2617. }
  2618. var ob = (target).__ob__;
  2619. if (target._isVue || (ob && ob.vmCount)) {
  2620. true && warn(
  2621. 'Avoid deleting properties on a Vue instance or its root $data ' +
  2622. '- just set it to null.'
  2623. );
  2624. return
  2625. }
  2626. if (!hasOwn(target, key)) {
  2627. return
  2628. }
  2629. delete target[key];
  2630. if (!ob) {
  2631. return
  2632. }
  2633. ob.dep.notify();
  2634. }
  2635. /**
  2636. * Collect dependencies on array elements when the array is touched, since
  2637. * we cannot intercept array element access like property getters.
  2638. */
  2639. function dependArray (value) {
  2640. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  2641. e = value[i];
  2642. e && e.__ob__ && e.__ob__.dep.depend();
  2643. if (Array.isArray(e)) {
  2644. dependArray(e);
  2645. }
  2646. }
  2647. }
  2648. /* */
  2649. /**
  2650. * Option overwriting strategies are functions that handle
  2651. * how to merge a parent option value and a child option
  2652. * value into the final value.
  2653. */
  2654. var strats = config.optionMergeStrategies;
  2655. /**
  2656. * Options with restrictions
  2657. */
  2658. if (true) {
  2659. strats.el = strats.propsData = function (parent, child, vm, key) {
  2660. if (!vm) {
  2661. warn(
  2662. "option \"" + key + "\" can only be used during instance " +
  2663. 'creation with the `new` keyword.'
  2664. );
  2665. }
  2666. return defaultStrat(parent, child)
  2667. };
  2668. }
  2669. /**
  2670. * Helper that recursively merges two data objects together.
  2671. */
  2672. function mergeData (to, from) {
  2673. if (!from) { return to }
  2674. var key, toVal, fromVal;
  2675. var keys = hasSymbol
  2676. ? Reflect.ownKeys(from)
  2677. : Object.keys(from);
  2678. for (var i = 0; i < keys.length; i++) {
  2679. key = keys[i];
  2680. // in case the object is already observed...
  2681. if (key === '__ob__') { continue }
  2682. toVal = to[key];
  2683. fromVal = from[key];
  2684. if (!hasOwn(to, key)) {
  2685. set(to, key, fromVal);
  2686. } else if (
  2687. toVal !== fromVal &&
  2688. isPlainObject(toVal) &&
  2689. isPlainObject(fromVal)
  2690. ) {
  2691. mergeData(toVal, fromVal);
  2692. }
  2693. }
  2694. return to
  2695. }
  2696. /**
  2697. * Data
  2698. */
  2699. function mergeDataOrFn (
  2700. parentVal,
  2701. childVal,
  2702. vm
  2703. ) {
  2704. if (!vm) {
  2705. // in a Vue.extend merge, both should be functions
  2706. if (!childVal) {
  2707. return parentVal
  2708. }
  2709. if (!parentVal) {
  2710. return childVal
  2711. }
  2712. // when parentVal & childVal are both present,
  2713. // we need to return a function that returns the
  2714. // merged result of both functions... no need to
  2715. // check if parentVal is a function here because
  2716. // it has to be a function to pass previous merges.
  2717. return function mergedDataFn () {
  2718. return mergeData(
  2719. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  2720. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  2721. )
  2722. }
  2723. } else {
  2724. return function mergedInstanceDataFn () {
  2725. // instance merge
  2726. var instanceData = typeof childVal === 'function'
  2727. ? childVal.call(vm, vm)
  2728. : childVal;
  2729. var defaultData = typeof parentVal === 'function'
  2730. ? parentVal.call(vm, vm)
  2731. : parentVal;
  2732. if (instanceData) {
  2733. return mergeData(instanceData, defaultData)
  2734. } else {
  2735. return defaultData
  2736. }
  2737. }
  2738. }
  2739. }
  2740. strats.data = function (
  2741. parentVal,
  2742. childVal,
  2743. vm
  2744. ) {
  2745. if (!vm) {
  2746. if (childVal && typeof childVal !== 'function') {
  2747. true && warn(
  2748. 'The "data" option should be a function ' +
  2749. 'that returns a per-instance value in component ' +
  2750. 'definitions.',
  2751. vm
  2752. );
  2753. return parentVal
  2754. }
  2755. return mergeDataOrFn(parentVal, childVal)
  2756. }
  2757. return mergeDataOrFn(parentVal, childVal, vm)
  2758. };
  2759. /**
  2760. * Hooks and props are merged as arrays.
  2761. */
  2762. function mergeHook (
  2763. parentVal,
  2764. childVal
  2765. ) {
  2766. var res = childVal
  2767. ? parentVal
  2768. ? parentVal.concat(childVal)
  2769. : Array.isArray(childVal)
  2770. ? childVal
  2771. : [childVal]
  2772. : parentVal;
  2773. return res
  2774. ? dedupeHooks(res)
  2775. : res
  2776. }
  2777. function dedupeHooks (hooks) {
  2778. var res = [];
  2779. for (var i = 0; i < hooks.length; i++) {
  2780. if (res.indexOf(hooks[i]) === -1) {
  2781. res.push(hooks[i]);
  2782. }
  2783. }
  2784. return res
  2785. }
  2786. LIFECYCLE_HOOKS.forEach(function (hook) {
  2787. strats[hook] = mergeHook;
  2788. });
  2789. /**
  2790. * Assets
  2791. *
  2792. * When a vm is present (instance creation), we need to do
  2793. * a three-way merge between constructor options, instance
  2794. * options and parent options.
  2795. */
  2796. function mergeAssets (
  2797. parentVal,
  2798. childVal,
  2799. vm,
  2800. key
  2801. ) {
  2802. var res = Object.create(parentVal || null);
  2803. if (childVal) {
  2804. true && assertObjectType(key, childVal, vm);
  2805. return extend(res, childVal)
  2806. } else {
  2807. return res
  2808. }
  2809. }
  2810. ASSET_TYPES.forEach(function (type) {
  2811. strats[type + 's'] = mergeAssets;
  2812. });
  2813. /**
  2814. * Watchers.
  2815. *
  2816. * Watchers hashes should not overwrite one
  2817. * another, so we merge them as arrays.
  2818. */
  2819. strats.watch = function (
  2820. parentVal,
  2821. childVal,
  2822. vm,
  2823. key
  2824. ) {
  2825. // work around Firefox's Object.prototype.watch...
  2826. if (parentVal === nativeWatch) { parentVal = undefined; }
  2827. if (childVal === nativeWatch) { childVal = undefined; }
  2828. /* istanbul ignore if */
  2829. if (!childVal) { return Object.create(parentVal || null) }
  2830. if (true) {
  2831. assertObjectType(key, childVal, vm);
  2832. }
  2833. if (!parentVal) { return childVal }
  2834. var ret = {};
  2835. extend(ret, parentVal);
  2836. for (var key$1 in childVal) {
  2837. var parent = ret[key$1];
  2838. var child = childVal[key$1];
  2839. if (parent && !Array.isArray(parent)) {
  2840. parent = [parent];
  2841. }
  2842. ret[key$1] = parent
  2843. ? parent.concat(child)
  2844. : Array.isArray(child) ? child : [child];
  2845. }
  2846. return ret
  2847. };
  2848. /**
  2849. * Other object hashes.
  2850. */
  2851. strats.props =
  2852. strats.methods =
  2853. strats.inject =
  2854. strats.computed = function (
  2855. parentVal,
  2856. childVal,
  2857. vm,
  2858. key
  2859. ) {
  2860. if (childVal && "development" !== 'production') {
  2861. assertObjectType(key, childVal, vm);
  2862. }
  2863. if (!parentVal) { return childVal }
  2864. var ret = Object.create(null);
  2865. extend(ret, parentVal);
  2866. if (childVal) { extend(ret, childVal); }
  2867. return ret
  2868. };
  2869. strats.provide = mergeDataOrFn;
  2870. /**
  2871. * Default strategy.
  2872. */
  2873. var defaultStrat = function (parentVal, childVal) {
  2874. return childVal === undefined
  2875. ? parentVal
  2876. : childVal
  2877. };
  2878. /**
  2879. * Validate component names
  2880. */
  2881. function checkComponents (options) {
  2882. for (var key in options.components) {
  2883. validateComponentName(key);
  2884. }
  2885. }
  2886. function validateComponentName (name) {
  2887. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  2888. warn(
  2889. 'Invalid component name: "' + name + '". Component names ' +
  2890. 'should conform to valid custom element name in html5 specification.'
  2891. );
  2892. }
  2893. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  2894. warn(
  2895. 'Do not use built-in or reserved HTML elements as component ' +
  2896. 'id: ' + name
  2897. );
  2898. }
  2899. }
  2900. /**
  2901. * Ensure all props option syntax are normalized into the
  2902. * Object-based format.
  2903. */
  2904. function normalizeProps (options, vm) {
  2905. var props = options.props;
  2906. if (!props) { return }
  2907. var res = {};
  2908. var i, val, name;
  2909. if (Array.isArray(props)) {
  2910. i = props.length;
  2911. while (i--) {
  2912. val = props[i];
  2913. if (typeof val === 'string') {
  2914. name = camelize(val);
  2915. res[name] = { type: null };
  2916. } else if (true) {
  2917. warn('props must be strings when using array syntax.');
  2918. }
  2919. }
  2920. } else if (isPlainObject(props)) {
  2921. for (var key in props) {
  2922. val = props[key];
  2923. name = camelize(key);
  2924. res[name] = isPlainObject(val)
  2925. ? val
  2926. : { type: val };
  2927. }
  2928. } else if (true) {
  2929. warn(
  2930. "Invalid value for option \"props\": expected an Array or an Object, " +
  2931. "but got " + (toRawType(props)) + ".",
  2932. vm
  2933. );
  2934. }
  2935. options.props = res;
  2936. }
  2937. /**
  2938. * Normalize all injections into Object-based format
  2939. */
  2940. function normalizeInject (options, vm) {
  2941. var inject = options.inject;
  2942. if (!inject) { return }
  2943. var normalized = options.inject = {};
  2944. if (Array.isArray(inject)) {
  2945. for (var i = 0; i < inject.length; i++) {
  2946. normalized[inject[i]] = { from: inject[i] };
  2947. }
  2948. } else if (isPlainObject(inject)) {
  2949. for (var key in inject) {
  2950. var val = inject[key];
  2951. normalized[key] = isPlainObject(val)
  2952. ? extend({ from: key }, val)
  2953. : { from: val };
  2954. }
  2955. } else if (true) {
  2956. warn(
  2957. "Invalid value for option \"inject\": expected an Array or an Object, " +
  2958. "but got " + (toRawType(inject)) + ".",
  2959. vm
  2960. );
  2961. }
  2962. }
  2963. /**
  2964. * Normalize raw function directives into object format.
  2965. */
  2966. function normalizeDirectives (options) {
  2967. var dirs = options.directives;
  2968. if (dirs) {
  2969. for (var key in dirs) {
  2970. var def$$1 = dirs[key];
  2971. if (typeof def$$1 === 'function') {
  2972. dirs[key] = { bind: def$$1, update: def$$1 };
  2973. }
  2974. }
  2975. }
  2976. }
  2977. function assertObjectType (name, value, vm) {
  2978. if (!isPlainObject(value)) {
  2979. warn(
  2980. "Invalid value for option \"" + name + "\": expected an Object, " +
  2981. "but got " + (toRawType(value)) + ".",
  2982. vm
  2983. );
  2984. }
  2985. }
  2986. /**
  2987. * Merge two option objects into a new one.
  2988. * Core utility used in both instantiation and inheritance.
  2989. */
  2990. function mergeOptions (
  2991. parent,
  2992. child,
  2993. vm
  2994. ) {
  2995. if (true) {
  2996. checkComponents(child);
  2997. }
  2998. if (typeof child === 'function') {
  2999. child = child.options;
  3000. }
  3001. normalizeProps(child, vm);
  3002. normalizeInject(child, vm);
  3003. normalizeDirectives(child);
  3004. // Apply extends and mixins on the child options,
  3005. // but only if it is a raw options object that isn't
  3006. // the result of another mergeOptions call.
  3007. // Only merged options has the _base property.
  3008. if (!child._base) {
  3009. if (child.extends) {
  3010. parent = mergeOptions(parent, child.extends, vm);
  3011. }
  3012. if (child.mixins) {
  3013. for (var i = 0, l = child.mixins.length; i < l; i++) {
  3014. parent = mergeOptions(parent, child.mixins[i], vm);
  3015. }
  3016. }
  3017. }
  3018. var options = {};
  3019. var key;
  3020. for (key in parent) {
  3021. mergeField(key);
  3022. }
  3023. for (key in child) {
  3024. if (!hasOwn(parent, key)) {
  3025. mergeField(key);
  3026. }
  3027. }
  3028. function mergeField (key) {
  3029. var strat = strats[key] || defaultStrat;
  3030. options[key] = strat(parent[key], child[key], vm, key);
  3031. }
  3032. return options
  3033. }
  3034. /**
  3035. * Resolve an asset.
  3036. * This function is used because child instances need access
  3037. * to assets defined in its ancestor chain.
  3038. */
  3039. function resolveAsset (
  3040. options,
  3041. type,
  3042. id,
  3043. warnMissing
  3044. ) {
  3045. /* istanbul ignore if */
  3046. if (typeof id !== 'string') {
  3047. return
  3048. }
  3049. var assets = options[type];
  3050. // check local registration variations first
  3051. if (hasOwn(assets, id)) { return assets[id] }
  3052. var camelizedId = camelize(id);
  3053. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  3054. var PascalCaseId = capitalize(camelizedId);
  3055. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  3056. // fallback to prototype chain
  3057. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  3058. if ( true && warnMissing && !res) {
  3059. warn(
  3060. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  3061. options
  3062. );
  3063. }
  3064. return res
  3065. }
  3066. /* */
  3067. function validateProp (
  3068. key,
  3069. propOptions,
  3070. propsData,
  3071. vm
  3072. ) {
  3073. var prop = propOptions[key];
  3074. var absent = !hasOwn(propsData, key);
  3075. var value = propsData[key];
  3076. // boolean casting
  3077. var booleanIndex = getTypeIndex(Boolean, prop.type);
  3078. if (booleanIndex > -1) {
  3079. if (absent && !hasOwn(prop, 'default')) {
  3080. value = false;
  3081. } else if (value === '' || value === hyphenate(key)) {
  3082. // only cast empty string / same name to boolean if
  3083. // boolean has higher priority
  3084. var stringIndex = getTypeIndex(String, prop.type);
  3085. if (stringIndex < 0 || booleanIndex < stringIndex) {
  3086. value = true;
  3087. }
  3088. }
  3089. }
  3090. // check default value
  3091. if (value === undefined) {
  3092. value = getPropDefaultValue(vm, prop, key);
  3093. // since the default value is a fresh copy,
  3094. // make sure to observe it.
  3095. var prevShouldObserve = shouldObserve;
  3096. toggleObserving(true);
  3097. observe(value);
  3098. toggleObserving(prevShouldObserve);
  3099. }
  3100. if (
  3101. true
  3102. ) {
  3103. assertProp(prop, key, value, vm, absent);
  3104. }
  3105. return value
  3106. }
  3107. /**
  3108. * Get the default value of a prop.
  3109. */
  3110. function getPropDefaultValue (vm, prop, key) {
  3111. // no default, return undefined
  3112. if (!hasOwn(prop, 'default')) {
  3113. return undefined
  3114. }
  3115. var def = prop.default;
  3116. // warn against non-factory defaults for Object & Array
  3117. if ( true && isObject(def)) {
  3118. warn(
  3119. 'Invalid default value for prop "' + key + '": ' +
  3120. 'Props with type Object/Array must use a factory function ' +
  3121. 'to return the default value.',
  3122. vm
  3123. );
  3124. }
  3125. // the raw prop value was also undefined from previous render,
  3126. // return previous default value to avoid unnecessary watcher trigger
  3127. if (vm && vm.$options.propsData &&
  3128. vm.$options.propsData[key] === undefined &&
  3129. vm._props[key] !== undefined
  3130. ) {
  3131. return vm._props[key]
  3132. }
  3133. // call factory function for non-Function types
  3134. // a value is Function if its prototype is function even across different execution context
  3135. return typeof def === 'function' && getType(prop.type) !== 'Function'
  3136. ? def.call(vm)
  3137. : def
  3138. }
  3139. /**
  3140. * Assert whether a prop is valid.
  3141. */
  3142. function assertProp (
  3143. prop,
  3144. name,
  3145. value,
  3146. vm,
  3147. absent
  3148. ) {
  3149. if (prop.required && absent) {
  3150. warn(
  3151. 'Missing required prop: "' + name + '"',
  3152. vm
  3153. );
  3154. return
  3155. }
  3156. if (value == null && !prop.required) {
  3157. return
  3158. }
  3159. var type = prop.type;
  3160. var valid = !type || type === true;
  3161. var expectedTypes = [];
  3162. if (type) {
  3163. if (!Array.isArray(type)) {
  3164. type = [type];
  3165. }
  3166. for (var i = 0; i < type.length && !valid; i++) {
  3167. var assertedType = assertType(value, type[i]);
  3168. expectedTypes.push(assertedType.expectedType || '');
  3169. valid = assertedType.valid;
  3170. }
  3171. }
  3172. if (!valid) {
  3173. warn(
  3174. getInvalidTypeMessage(name, value, expectedTypes),
  3175. vm
  3176. );
  3177. return
  3178. }
  3179. var validator = prop.validator;
  3180. if (validator) {
  3181. if (!validator(value)) {
  3182. warn(
  3183. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  3184. vm
  3185. );
  3186. }
  3187. }
  3188. }
  3189. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  3190. function assertType (value, type) {
  3191. var valid;
  3192. var expectedType = getType(type);
  3193. if (simpleCheckRE.test(expectedType)) {
  3194. var t = typeof value;
  3195. valid = t === expectedType.toLowerCase();
  3196. // for primitive wrapper objects
  3197. if (!valid && t === 'object') {
  3198. valid = value instanceof type;
  3199. }
  3200. } else if (expectedType === 'Object') {
  3201. valid = isPlainObject(value);
  3202. } else if (expectedType === 'Array') {
  3203. valid = Array.isArray(value);
  3204. } else {
  3205. valid = value instanceof type;
  3206. }
  3207. return {
  3208. valid: valid,
  3209. expectedType: expectedType
  3210. }
  3211. }
  3212. /**
  3213. * Use function string name to check built-in types,
  3214. * because a simple equality check will fail when running
  3215. * across different vms / iframes.
  3216. */
  3217. function getType (fn) {
  3218. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  3219. return match ? match[1] : ''
  3220. }
  3221. function isSameType (a, b) {
  3222. return getType(a) === getType(b)
  3223. }
  3224. function getTypeIndex (type, expectedTypes) {
  3225. if (!Array.isArray(expectedTypes)) {
  3226. return isSameType(expectedTypes, type) ? 0 : -1
  3227. }
  3228. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  3229. if (isSameType(expectedTypes[i], type)) {
  3230. return i
  3231. }
  3232. }
  3233. return -1
  3234. }
  3235. function getInvalidTypeMessage (name, value, expectedTypes) {
  3236. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  3237. " Expected " + (expectedTypes.map(capitalize).join(', '));
  3238. var expectedType = expectedTypes[0];
  3239. var receivedType = toRawType(value);
  3240. var expectedValue = styleValue(value, expectedType);
  3241. var receivedValue = styleValue(value, receivedType);
  3242. // check if we need to specify expected value
  3243. if (expectedTypes.length === 1 &&
  3244. isExplicable(expectedType) &&
  3245. !isBoolean(expectedType, receivedType)) {
  3246. message += " with value " + expectedValue;
  3247. }
  3248. message += ", got " + receivedType + " ";
  3249. // check if we need to specify received value
  3250. if (isExplicable(receivedType)) {
  3251. message += "with value " + receivedValue + ".";
  3252. }
  3253. return message
  3254. }
  3255. function styleValue (value, type) {
  3256. if (type === 'String') {
  3257. return ("\"" + value + "\"")
  3258. } else if (type === 'Number') {
  3259. return ("" + (Number(value)))
  3260. } else {
  3261. return ("" + value)
  3262. }
  3263. }
  3264. function isExplicable (value) {
  3265. var explicitTypes = ['string', 'number', 'boolean'];
  3266. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  3267. }
  3268. function isBoolean () {
  3269. var args = [], len = arguments.length;
  3270. while ( len-- ) args[ len ] = arguments[ len ];
  3271. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  3272. }
  3273. /* */
  3274. function handleError (err, vm, info) {
  3275. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  3276. // See: https://github.com/vuejs/vuex/issues/1505
  3277. pushTarget();
  3278. try {
  3279. if (vm) {
  3280. var cur = vm;
  3281. while ((cur = cur.$parent)) {
  3282. var hooks = cur.$options.errorCaptured;
  3283. if (hooks) {
  3284. for (var i = 0; i < hooks.length; i++) {
  3285. try {
  3286. var capture = hooks[i].call(cur, err, vm, info) === false;
  3287. if (capture) { return }
  3288. } catch (e) {
  3289. globalHandleError(e, cur, 'errorCaptured hook');
  3290. }
  3291. }
  3292. }
  3293. }
  3294. }
  3295. globalHandleError(err, vm, info);
  3296. } finally {
  3297. popTarget();
  3298. }
  3299. }
  3300. function invokeWithErrorHandling (
  3301. handler,
  3302. context,
  3303. args,
  3304. vm,
  3305. info
  3306. ) {
  3307. var res;
  3308. try {
  3309. res = args ? handler.apply(context, args) : handler.call(context);
  3310. if (res && !res._isVue && isPromise(res) && !res._handled) {
  3311. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  3312. // issue #9511
  3313. // avoid catch triggering multiple times when nested calls
  3314. res._handled = true;
  3315. }
  3316. } catch (e) {
  3317. handleError(e, vm, info);
  3318. }
  3319. return res
  3320. }
  3321. function globalHandleError (err, vm, info) {
  3322. if (config.errorHandler) {
  3323. try {
  3324. return config.errorHandler.call(null, err, vm, info)
  3325. } catch (e) {
  3326. // if the user intentionally throws the original error in the handler,
  3327. // do not log it twice
  3328. if (e !== err) {
  3329. logError(e, null, 'config.errorHandler');
  3330. }
  3331. }
  3332. }
  3333. logError(err, vm, info);
  3334. }
  3335. function logError (err, vm, info) {
  3336. if (true) {
  3337. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  3338. }
  3339. /* istanbul ignore else */
  3340. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  3341. console.error(err);
  3342. } else {
  3343. throw err
  3344. }
  3345. }
  3346. /* */
  3347. var callbacks = [];
  3348. var pending = false;
  3349. function flushCallbacks () {
  3350. pending = false;
  3351. var copies = callbacks.slice(0);
  3352. callbacks.length = 0;
  3353. for (var i = 0; i < copies.length; i++) {
  3354. copies[i]();
  3355. }
  3356. }
  3357. // Here we have async deferring wrappers using microtasks.
  3358. // In 2.5 we used (macro) tasks (in combination with microtasks).
  3359. // However, it has subtle problems when state is changed right before repaint
  3360. // (e.g. #6813, out-in transitions).
  3361. // Also, using (macro) tasks in event handler would cause some weird behaviors
  3362. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  3363. // So we now use microtasks everywhere, again.
  3364. // A major drawback of this tradeoff is that there are some scenarios
  3365. // where microtasks have too high a priority and fire in between supposedly
  3366. // sequential events (e.g. #4521, #6690, which have workarounds)
  3367. // or even between bubbling of the same event (#6566).
  3368. var timerFunc;
  3369. // The nextTick behavior leverages the microtask queue, which can be accessed
  3370. // via either native Promise.then or MutationObserver.
  3371. // MutationObserver has wider support, however it is seriously bugged in
  3372. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  3373. // completely stops working after triggering a few times... so, if native
  3374. // Promise is available, we will use it:
  3375. /* istanbul ignore next, $flow-disable-line */
  3376. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  3377. var p = Promise.resolve();
  3378. timerFunc = function () {
  3379. p.then(flushCallbacks);
  3380. // In problematic UIWebViews, Promise.then doesn't completely break, but
  3381. // it can get stuck in a weird state where callbacks are pushed into the
  3382. // microtask queue but the queue isn't being flushed, until the browser
  3383. // needs to do some other work, e.g. handle a timer. Therefore we can
  3384. // "force" the microtask queue to be flushed by adding an empty timer.
  3385. if (isIOS) { setTimeout(noop); }
  3386. };
  3387. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  3388. isNative(MutationObserver) ||
  3389. // PhantomJS and iOS 7.x
  3390. MutationObserver.toString() === '[object MutationObserverConstructor]'
  3391. )) {
  3392. // Use MutationObserver where native Promise is not available,
  3393. // e.g. PhantomJS, iOS7, Android 4.4
  3394. // (#6466 MutationObserver is unreliable in IE11)
  3395. var counter = 1;
  3396. var observer = new MutationObserver(flushCallbacks);
  3397. var textNode = document.createTextNode(String(counter));
  3398. observer.observe(textNode, {
  3399. characterData: true
  3400. });
  3401. timerFunc = function () {
  3402. counter = (counter + 1) % 2;
  3403. textNode.data = String(counter);
  3404. };
  3405. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  3406. // Fallback to setImmediate.
  3407. // Technically it leverages the (macro) task queue,
  3408. // but it is still a better choice than setTimeout.
  3409. timerFunc = function () {
  3410. setImmediate(flushCallbacks);
  3411. };
  3412. } else {
  3413. // Fallback to setTimeout.
  3414. timerFunc = function () {
  3415. setTimeout(flushCallbacks, 0);
  3416. };
  3417. }
  3418. function nextTick (cb, ctx) {
  3419. var _resolve;
  3420. callbacks.push(function () {
  3421. if (cb) {
  3422. try {
  3423. cb.call(ctx);
  3424. } catch (e) {
  3425. handleError(e, ctx, 'nextTick');
  3426. }
  3427. } else if (_resolve) {
  3428. _resolve(ctx);
  3429. }
  3430. });
  3431. if (!pending) {
  3432. pending = true;
  3433. timerFunc();
  3434. }
  3435. // $flow-disable-line
  3436. if (!cb && typeof Promise !== 'undefined') {
  3437. return new Promise(function (resolve) {
  3438. _resolve = resolve;
  3439. })
  3440. }
  3441. }
  3442. /* */
  3443. /* not type checking this file because flow doesn't play well with Proxy */
  3444. var initProxy;
  3445. if (true) {
  3446. var allowedGlobals = makeMap(
  3447. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  3448. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  3449. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  3450. 'require' // for Webpack/Browserify
  3451. );
  3452. var warnNonPresent = function (target, key) {
  3453. warn(
  3454. "Property or method \"" + key + "\" is not defined on the instance but " +
  3455. 'referenced during render. Make sure that this property is reactive, ' +
  3456. 'either in the data option, or for class-based components, by ' +
  3457. 'initializing the property. ' +
  3458. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  3459. target
  3460. );
  3461. };
  3462. var warnReservedPrefix = function (target, key) {
  3463. warn(
  3464. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  3465. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  3466. 'prevent conflicts with Vue internals. ' +
  3467. 'See: https://vuejs.org/v2/api/#data',
  3468. target
  3469. );
  3470. };
  3471. var hasProxy =
  3472. typeof Proxy !== 'undefined' && isNative(Proxy);
  3473. if (hasProxy) {
  3474. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  3475. config.keyCodes = new Proxy(config.keyCodes, {
  3476. set: function set (target, key, value) {
  3477. if (isBuiltInModifier(key)) {
  3478. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  3479. return false
  3480. } else {
  3481. target[key] = value;
  3482. return true
  3483. }
  3484. }
  3485. });
  3486. }
  3487. var hasHandler = {
  3488. has: function has (target, key) {
  3489. var has = key in target;
  3490. var isAllowed = allowedGlobals(key) ||
  3491. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  3492. if (!has && !isAllowed) {
  3493. if (key in target.$data) { warnReservedPrefix(target, key); }
  3494. else { warnNonPresent(target, key); }
  3495. }
  3496. return has || !isAllowed
  3497. }
  3498. };
  3499. var getHandler = {
  3500. get: function get (target, key) {
  3501. if (typeof key === 'string' && !(key in target)) {
  3502. if (key in target.$data) { warnReservedPrefix(target, key); }
  3503. else { warnNonPresent(target, key); }
  3504. }
  3505. return target[key]
  3506. }
  3507. };
  3508. initProxy = function initProxy (vm) {
  3509. if (hasProxy) {
  3510. // determine which proxy handler to use
  3511. var options = vm.$options;
  3512. var handlers = options.render && options.render._withStripped
  3513. ? getHandler
  3514. : hasHandler;
  3515. vm._renderProxy = new Proxy(vm, handlers);
  3516. } else {
  3517. vm._renderProxy = vm;
  3518. }
  3519. };
  3520. }
  3521. /* */
  3522. var seenObjects = new _Set();
  3523. /**
  3524. * Recursively traverse an object to evoke all converted
  3525. * getters, so that every nested property inside the object
  3526. * is collected as a "deep" dependency.
  3527. */
  3528. function traverse (val) {
  3529. _traverse(val, seenObjects);
  3530. seenObjects.clear();
  3531. }
  3532. function _traverse (val, seen) {
  3533. var i, keys;
  3534. var isA = Array.isArray(val);
  3535. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  3536. return
  3537. }
  3538. if (val.__ob__) {
  3539. var depId = val.__ob__.dep.id;
  3540. if (seen.has(depId)) {
  3541. return
  3542. }
  3543. seen.add(depId);
  3544. }
  3545. if (isA) {
  3546. i = val.length;
  3547. while (i--) { _traverse(val[i], seen); }
  3548. } else {
  3549. keys = Object.keys(val);
  3550. i = keys.length;
  3551. while (i--) { _traverse(val[keys[i]], seen); }
  3552. }
  3553. }
  3554. var mark;
  3555. var measure;
  3556. if (true) {
  3557. var perf = inBrowser && window.performance;
  3558. /* istanbul ignore if */
  3559. if (
  3560. perf &&
  3561. perf.mark &&
  3562. perf.measure &&
  3563. perf.clearMarks &&
  3564. perf.clearMeasures
  3565. ) {
  3566. mark = function (tag) { return perf.mark(tag); };
  3567. measure = function (name, startTag, endTag) {
  3568. perf.measure(name, startTag, endTag);
  3569. perf.clearMarks(startTag);
  3570. perf.clearMarks(endTag);
  3571. // perf.clearMeasures(name)
  3572. };
  3573. }
  3574. }
  3575. /* */
  3576. var normalizeEvent = cached(function (name) {
  3577. var passive = name.charAt(0) === '&';
  3578. name = passive ? name.slice(1) : name;
  3579. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  3580. name = once$$1 ? name.slice(1) : name;
  3581. var capture = name.charAt(0) === '!';
  3582. name = capture ? name.slice(1) : name;
  3583. return {
  3584. name: name,
  3585. once: once$$1,
  3586. capture: capture,
  3587. passive: passive
  3588. }
  3589. });
  3590. function createFnInvoker (fns, vm) {
  3591. function invoker () {
  3592. var arguments$1 = arguments;
  3593. var fns = invoker.fns;
  3594. if (Array.isArray(fns)) {
  3595. var cloned = fns.slice();
  3596. for (var i = 0; i < cloned.length; i++) {
  3597. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  3598. }
  3599. } else {
  3600. // return handler return value for single handlers
  3601. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  3602. }
  3603. }
  3604. invoker.fns = fns;
  3605. return invoker
  3606. }
  3607. function updateListeners (
  3608. on,
  3609. oldOn,
  3610. add,
  3611. remove$$1,
  3612. createOnceHandler,
  3613. vm
  3614. ) {
  3615. var name, def$$1, cur, old, event;
  3616. for (name in on) {
  3617. def$$1 = cur = on[name];
  3618. old = oldOn[name];
  3619. event = normalizeEvent(name);
  3620. if (isUndef(cur)) {
  3621. true && warn(
  3622. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  3623. vm
  3624. );
  3625. } else if (isUndef(old)) {
  3626. if (isUndef(cur.fns)) {
  3627. cur = on[name] = createFnInvoker(cur, vm);
  3628. }
  3629. if (isTrue(event.once)) {
  3630. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  3631. }
  3632. add(event.name, cur, event.capture, event.passive, event.params);
  3633. } else if (cur !== old) {
  3634. old.fns = cur;
  3635. on[name] = old;
  3636. }
  3637. }
  3638. for (name in oldOn) {
  3639. if (isUndef(on[name])) {
  3640. event = normalizeEvent(name);
  3641. remove$$1(event.name, oldOn[name], event.capture);
  3642. }
  3643. }
  3644. }
  3645. /* */
  3646. /* */
  3647. // fixed by xxxxxx (mp properties)
  3648. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  3649. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  3650. if (isUndef(propOptions)) {
  3651. return res
  3652. }
  3653. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  3654. var attrs = data.attrs;
  3655. var props = data.props;
  3656. if (isDef(attrs) || isDef(props)) {
  3657. for (var key in propOptions) {
  3658. var altKey = hyphenate(key);
  3659. var result = checkProp(res, props, key, altKey, true) ||
  3660. checkProp(res, attrs, key, altKey, false);
  3661. // externalClass
  3662. if (
  3663. result &&
  3664. res[key] &&
  3665. externalClasses.indexOf(altKey) !== -1 &&
  3666. context[camelize(res[key])]
  3667. ) {
  3668. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  3669. res[key] = context[camelize(res[key])];
  3670. }
  3671. }
  3672. }
  3673. return res
  3674. }
  3675. function extractPropsFromVNodeData (
  3676. data,
  3677. Ctor,
  3678. tag,
  3679. context// fixed by xxxxxx
  3680. ) {
  3681. // we are only extracting raw values here.
  3682. // validation and default values are handled in the child
  3683. // component itself.
  3684. var propOptions = Ctor.options.props;
  3685. if (isUndef(propOptions)) {
  3686. // fixed by xxxxxx
  3687. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  3688. }
  3689. var res = {};
  3690. var attrs = data.attrs;
  3691. var props = data.props;
  3692. if (isDef(attrs) || isDef(props)) {
  3693. for (var key in propOptions) {
  3694. var altKey = hyphenate(key);
  3695. if (true) {
  3696. var keyInLowerCase = key.toLowerCase();
  3697. if (
  3698. key !== keyInLowerCase &&
  3699. attrs && hasOwn(attrs, keyInLowerCase)
  3700. ) {
  3701. tip(
  3702. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  3703. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  3704. " \"" + key + "\". " +
  3705. "Note that HTML attributes are case-insensitive and camelCased " +
  3706. "props need to use their kebab-case equivalents when using in-DOM " +
  3707. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  3708. );
  3709. }
  3710. }
  3711. checkProp(res, props, key, altKey, true) ||
  3712. checkProp(res, attrs, key, altKey, false);
  3713. }
  3714. }
  3715. // fixed by xxxxxx
  3716. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  3717. }
  3718. function checkProp (
  3719. res,
  3720. hash,
  3721. key,
  3722. altKey,
  3723. preserve
  3724. ) {
  3725. if (isDef(hash)) {
  3726. if (hasOwn(hash, key)) {
  3727. res[key] = hash[key];
  3728. if (!preserve) {
  3729. delete hash[key];
  3730. }
  3731. return true
  3732. } else if (hasOwn(hash, altKey)) {
  3733. res[key] = hash[altKey];
  3734. if (!preserve) {
  3735. delete hash[altKey];
  3736. }
  3737. return true
  3738. }
  3739. }
  3740. return false
  3741. }
  3742. /* */
  3743. // The template compiler attempts to minimize the need for normalization by
  3744. // statically analyzing the template at compile time.
  3745. //
  3746. // For plain HTML markup, normalization can be completely skipped because the
  3747. // generated render function is guaranteed to return Array<VNode>. There are
  3748. // two cases where extra normalization is needed:
  3749. // 1. When the children contains components - because a functional component
  3750. // may return an Array instead of a single root. In this case, just a simple
  3751. // normalization is needed - if any child is an Array, we flatten the whole
  3752. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  3753. // because functional components already normalize their own children.
  3754. function simpleNormalizeChildren (children) {
  3755. for (var i = 0; i < children.length; i++) {
  3756. if (Array.isArray(children[i])) {
  3757. return Array.prototype.concat.apply([], children)
  3758. }
  3759. }
  3760. return children
  3761. }
  3762. // 2. When the children contains constructs that always generated nested Arrays,
  3763. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  3764. // with hand-written render functions / JSX. In such cases a full normalization
  3765. // is needed to cater to all possible types of children values.
  3766. function normalizeChildren (children) {
  3767. return isPrimitive(children)
  3768. ? [createTextVNode(children)]
  3769. : Array.isArray(children)
  3770. ? normalizeArrayChildren(children)
  3771. : undefined
  3772. }
  3773. function isTextNode (node) {
  3774. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  3775. }
  3776. function normalizeArrayChildren (children, nestedIndex) {
  3777. var res = [];
  3778. var i, c, lastIndex, last;
  3779. for (i = 0; i < children.length; i++) {
  3780. c = children[i];
  3781. if (isUndef(c) || typeof c === 'boolean') { continue }
  3782. lastIndex = res.length - 1;
  3783. last = res[lastIndex];
  3784. // nested
  3785. if (Array.isArray(c)) {
  3786. if (c.length > 0) {
  3787. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  3788. // merge adjacent text nodes
  3789. if (isTextNode(c[0]) && isTextNode(last)) {
  3790. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  3791. c.shift();
  3792. }
  3793. res.push.apply(res, c);
  3794. }
  3795. } else if (isPrimitive(c)) {
  3796. if (isTextNode(last)) {
  3797. // merge adjacent text nodes
  3798. // this is necessary for SSR hydration because text nodes are
  3799. // essentially merged when rendered to HTML strings
  3800. res[lastIndex] = createTextVNode(last.text + c);
  3801. } else if (c !== '') {
  3802. // convert primitive to vnode
  3803. res.push(createTextVNode(c));
  3804. }
  3805. } else {
  3806. if (isTextNode(c) && isTextNode(last)) {
  3807. // merge adjacent text nodes
  3808. res[lastIndex] = createTextVNode(last.text + c.text);
  3809. } else {
  3810. // default key for nested array children (likely generated by v-for)
  3811. if (isTrue(children._isVList) &&
  3812. isDef(c.tag) &&
  3813. isUndef(c.key) &&
  3814. isDef(nestedIndex)) {
  3815. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  3816. }
  3817. res.push(c);
  3818. }
  3819. }
  3820. }
  3821. return res
  3822. }
  3823. /* */
  3824. function initProvide (vm) {
  3825. var provide = vm.$options.provide;
  3826. if (provide) {
  3827. vm._provided = typeof provide === 'function'
  3828. ? provide.call(vm)
  3829. : provide;
  3830. }
  3831. }
  3832. function initInjections (vm) {
  3833. var result = resolveInject(vm.$options.inject, vm);
  3834. if (result) {
  3835. toggleObserving(false);
  3836. Object.keys(result).forEach(function (key) {
  3837. /* istanbul ignore else */
  3838. if (true) {
  3839. defineReactive$$1(vm, key, result[key], function () {
  3840. warn(
  3841. "Avoid mutating an injected value directly since the changes will be " +
  3842. "overwritten whenever the provided component re-renders. " +
  3843. "injection being mutated: \"" + key + "\"",
  3844. vm
  3845. );
  3846. });
  3847. } else {}
  3848. });
  3849. toggleObserving(true);
  3850. }
  3851. }
  3852. function resolveInject (inject, vm) {
  3853. if (inject) {
  3854. // inject is :any because flow is not smart enough to figure out cached
  3855. var result = Object.create(null);
  3856. var keys = hasSymbol
  3857. ? Reflect.ownKeys(inject)
  3858. : Object.keys(inject);
  3859. for (var i = 0; i < keys.length; i++) {
  3860. var key = keys[i];
  3861. // #6574 in case the inject object is observed...
  3862. if (key === '__ob__') { continue }
  3863. var provideKey = inject[key].from;
  3864. var source = vm;
  3865. while (source) {
  3866. if (source._provided && hasOwn(source._provided, provideKey)) {
  3867. result[key] = source._provided[provideKey];
  3868. break
  3869. }
  3870. source = source.$parent;
  3871. }
  3872. if (!source) {
  3873. if ('default' in inject[key]) {
  3874. var provideDefault = inject[key].default;
  3875. result[key] = typeof provideDefault === 'function'
  3876. ? provideDefault.call(vm)
  3877. : provideDefault;
  3878. } else if (true) {
  3879. warn(("Injection \"" + key + "\" not found"), vm);
  3880. }
  3881. }
  3882. }
  3883. return result
  3884. }
  3885. }
  3886. /* */
  3887. /**
  3888. * Runtime helper for resolving raw children VNodes into a slot object.
  3889. */
  3890. function resolveSlots (
  3891. children,
  3892. context
  3893. ) {
  3894. if (!children || !children.length) {
  3895. return {}
  3896. }
  3897. var slots = {};
  3898. for (var i = 0, l = children.length; i < l; i++) {
  3899. var child = children[i];
  3900. var data = child.data;
  3901. // remove slot attribute if the node is resolved as a Vue slot node
  3902. if (data && data.attrs && data.attrs.slot) {
  3903. delete data.attrs.slot;
  3904. }
  3905. // named slots should only be respected if the vnode was rendered in the
  3906. // same context.
  3907. if ((child.context === context || child.fnContext === context) &&
  3908. data && data.slot != null
  3909. ) {
  3910. var name = data.slot;
  3911. var slot = (slots[name] || (slots[name] = []));
  3912. if (child.tag === 'template') {
  3913. slot.push.apply(slot, child.children || []);
  3914. } else {
  3915. slot.push(child);
  3916. }
  3917. } else {
  3918. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  3919. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  3920. (slots['page'] || (slots['page'] = [])).push(child);
  3921. }else{
  3922. (slots.default || (slots.default = [])).push(child);
  3923. }
  3924. }
  3925. }
  3926. // ignore slots that contains only whitespace
  3927. for (var name$1 in slots) {
  3928. if (slots[name$1].every(isWhitespace)) {
  3929. delete slots[name$1];
  3930. }
  3931. }
  3932. return slots
  3933. }
  3934. function isWhitespace (node) {
  3935. return (node.isComment && !node.asyncFactory) || node.text === ' '
  3936. }
  3937. /* */
  3938. function normalizeScopedSlots (
  3939. slots,
  3940. normalSlots,
  3941. prevSlots
  3942. ) {
  3943. var res;
  3944. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  3945. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  3946. var key = slots && slots.$key;
  3947. if (!slots) {
  3948. res = {};
  3949. } else if (slots._normalized) {
  3950. // fast path 1: child component re-render only, parent did not change
  3951. return slots._normalized
  3952. } else if (
  3953. isStable &&
  3954. prevSlots &&
  3955. prevSlots !== emptyObject &&
  3956. key === prevSlots.$key &&
  3957. !hasNormalSlots &&
  3958. !prevSlots.$hasNormal
  3959. ) {
  3960. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  3961. // only need to normalize once
  3962. return prevSlots
  3963. } else {
  3964. res = {};
  3965. for (var key$1 in slots) {
  3966. if (slots[key$1] && key$1[0] !== '$') {
  3967. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  3968. }
  3969. }
  3970. }
  3971. // expose normal slots on scopedSlots
  3972. for (var key$2 in normalSlots) {
  3973. if (!(key$2 in res)) {
  3974. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  3975. }
  3976. }
  3977. // avoriaz seems to mock a non-extensible $scopedSlots object
  3978. // and when that is passed down this would cause an error
  3979. if (slots && Object.isExtensible(slots)) {
  3980. (slots)._normalized = res;
  3981. }
  3982. def(res, '$stable', isStable);
  3983. def(res, '$key', key);
  3984. def(res, '$hasNormal', hasNormalSlots);
  3985. return res
  3986. }
  3987. function normalizeScopedSlot(normalSlots, key, fn) {
  3988. var normalized = function () {
  3989. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  3990. res = res && typeof res === 'object' && !Array.isArray(res)
  3991. ? [res] // single vnode
  3992. : normalizeChildren(res);
  3993. return res && (
  3994. res.length === 0 ||
  3995. (res.length === 1 && res[0].isComment) // #9658
  3996. ) ? undefined
  3997. : res
  3998. };
  3999. // this is a slot using the new v-slot syntax without scope. although it is
  4000. // compiled as a scoped slot, render fn users would expect it to be present
  4001. // on this.$slots because the usage is semantically a normal slot.
  4002. if (fn.proxy) {
  4003. Object.defineProperty(normalSlots, key, {
  4004. get: normalized,
  4005. enumerable: true,
  4006. configurable: true
  4007. });
  4008. }
  4009. return normalized
  4010. }
  4011. function proxyNormalSlot(slots, key) {
  4012. return function () { return slots[key]; }
  4013. }
  4014. /* */
  4015. /**
  4016. * Runtime helper for rendering v-for lists.
  4017. */
  4018. function renderList (
  4019. val,
  4020. render
  4021. ) {
  4022. var ret, i, l, keys, key;
  4023. if (Array.isArray(val) || typeof val === 'string') {
  4024. ret = new Array(val.length);
  4025. for (i = 0, l = val.length; i < l; i++) {
  4026. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  4027. }
  4028. } else if (typeof val === 'number') {
  4029. ret = new Array(val);
  4030. for (i = 0; i < val; i++) {
  4031. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  4032. }
  4033. } else if (isObject(val)) {
  4034. if (hasSymbol && val[Symbol.iterator]) {
  4035. ret = [];
  4036. var iterator = val[Symbol.iterator]();
  4037. var result = iterator.next();
  4038. while (!result.done) {
  4039. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  4040. result = iterator.next();
  4041. }
  4042. } else {
  4043. keys = Object.keys(val);
  4044. ret = new Array(keys.length);
  4045. for (i = 0, l = keys.length; i < l; i++) {
  4046. key = keys[i];
  4047. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  4048. }
  4049. }
  4050. }
  4051. if (!isDef(ret)) {
  4052. ret = [];
  4053. }
  4054. (ret)._isVList = true;
  4055. return ret
  4056. }
  4057. /* */
  4058. /**
  4059. * Runtime helper for rendering <slot>
  4060. */
  4061. function renderSlot (
  4062. name,
  4063. fallback,
  4064. props,
  4065. bindObject
  4066. ) {
  4067. var scopedSlotFn = this.$scopedSlots[name];
  4068. var nodes;
  4069. if (scopedSlotFn) { // scoped slot
  4070. props = props || {};
  4071. if (bindObject) {
  4072. if ( true && !isObject(bindObject)) {
  4073. warn(
  4074. 'slot v-bind without argument expects an Object',
  4075. this
  4076. );
  4077. }
  4078. props = extend(extend({}, bindObject), props);
  4079. }
  4080. // fixed by xxxxxx app-plus scopedSlot
  4081. nodes = scopedSlotFn(props, this, props._i) || fallback;
  4082. } else {
  4083. nodes = this.$slots[name] || fallback;
  4084. }
  4085. var target = props && props.slot;
  4086. if (target) {
  4087. return this.$createElement('template', { slot: target }, nodes)
  4088. } else {
  4089. return nodes
  4090. }
  4091. }
  4092. /* */
  4093. /**
  4094. * Runtime helper for resolving filters
  4095. */
  4096. function resolveFilter (id) {
  4097. return resolveAsset(this.$options, 'filters', id, true) || identity
  4098. }
  4099. /* */
  4100. function isKeyNotMatch (expect, actual) {
  4101. if (Array.isArray(expect)) {
  4102. return expect.indexOf(actual) === -1
  4103. } else {
  4104. return expect !== actual
  4105. }
  4106. }
  4107. /**
  4108. * Runtime helper for checking keyCodes from config.
  4109. * exposed as Vue.prototype._k
  4110. * passing in eventKeyName as last argument separately for backwards compat
  4111. */
  4112. function checkKeyCodes (
  4113. eventKeyCode,
  4114. key,
  4115. builtInKeyCode,
  4116. eventKeyName,
  4117. builtInKeyName
  4118. ) {
  4119. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  4120. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  4121. return isKeyNotMatch(builtInKeyName, eventKeyName)
  4122. } else if (mappedKeyCode) {
  4123. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  4124. } else if (eventKeyName) {
  4125. return hyphenate(eventKeyName) !== key
  4126. }
  4127. }
  4128. /* */
  4129. /**
  4130. * Runtime helper for merging v-bind="object" into a VNode's data.
  4131. */
  4132. function bindObjectProps (
  4133. data,
  4134. tag,
  4135. value,
  4136. asProp,
  4137. isSync
  4138. ) {
  4139. if (value) {
  4140. if (!isObject(value)) {
  4141. true && warn(
  4142. 'v-bind without argument expects an Object or Array value',
  4143. this
  4144. );
  4145. } else {
  4146. if (Array.isArray(value)) {
  4147. value = toObject(value);
  4148. }
  4149. var hash;
  4150. var loop = function ( key ) {
  4151. if (
  4152. key === 'class' ||
  4153. key === 'style' ||
  4154. isReservedAttribute(key)
  4155. ) {
  4156. hash = data;
  4157. } else {
  4158. var type = data.attrs && data.attrs.type;
  4159. hash = asProp || config.mustUseProp(tag, type, key)
  4160. ? data.domProps || (data.domProps = {})
  4161. : data.attrs || (data.attrs = {});
  4162. }
  4163. var camelizedKey = camelize(key);
  4164. var hyphenatedKey = hyphenate(key);
  4165. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  4166. hash[key] = value[key];
  4167. if (isSync) {
  4168. var on = data.on || (data.on = {});
  4169. on[("update:" + key)] = function ($event) {
  4170. value[key] = $event;
  4171. };
  4172. }
  4173. }
  4174. };
  4175. for (var key in value) loop( key );
  4176. }
  4177. }
  4178. return data
  4179. }
  4180. /* */
  4181. /**
  4182. * Runtime helper for rendering static trees.
  4183. */
  4184. function renderStatic (
  4185. index,
  4186. isInFor
  4187. ) {
  4188. var cached = this._staticTrees || (this._staticTrees = []);
  4189. var tree = cached[index];
  4190. // if has already-rendered static tree and not inside v-for,
  4191. // we can reuse the same tree.
  4192. if (tree && !isInFor) {
  4193. return tree
  4194. }
  4195. // otherwise, render a fresh tree.
  4196. tree = cached[index] = this.$options.staticRenderFns[index].call(
  4197. this._renderProxy,
  4198. null,
  4199. this // for render fns generated for functional component templates
  4200. );
  4201. markStatic(tree, ("__static__" + index), false);
  4202. return tree
  4203. }
  4204. /**
  4205. * Runtime helper for v-once.
  4206. * Effectively it means marking the node as static with a unique key.
  4207. */
  4208. function markOnce (
  4209. tree,
  4210. index,
  4211. key
  4212. ) {
  4213. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  4214. return tree
  4215. }
  4216. function markStatic (
  4217. tree,
  4218. key,
  4219. isOnce
  4220. ) {
  4221. if (Array.isArray(tree)) {
  4222. for (var i = 0; i < tree.length; i++) {
  4223. if (tree[i] && typeof tree[i] !== 'string') {
  4224. markStaticNode(tree[i], (key + "_" + i), isOnce);
  4225. }
  4226. }
  4227. } else {
  4228. markStaticNode(tree, key, isOnce);
  4229. }
  4230. }
  4231. function markStaticNode (node, key, isOnce) {
  4232. node.isStatic = true;
  4233. node.key = key;
  4234. node.isOnce = isOnce;
  4235. }
  4236. /* */
  4237. function bindObjectListeners (data, value) {
  4238. if (value) {
  4239. if (!isPlainObject(value)) {
  4240. true && warn(
  4241. 'v-on without argument expects an Object value',
  4242. this
  4243. );
  4244. } else {
  4245. var on = data.on = data.on ? extend({}, data.on) : {};
  4246. for (var key in value) {
  4247. var existing = on[key];
  4248. var ours = value[key];
  4249. on[key] = existing ? [].concat(existing, ours) : ours;
  4250. }
  4251. }
  4252. }
  4253. return data
  4254. }
  4255. /* */
  4256. function resolveScopedSlots (
  4257. fns, // see flow/vnode
  4258. res,
  4259. // the following are added in 2.6
  4260. hasDynamicKeys,
  4261. contentHashKey
  4262. ) {
  4263. res = res || { $stable: !hasDynamicKeys };
  4264. for (var i = 0; i < fns.length; i++) {
  4265. var slot = fns[i];
  4266. if (Array.isArray(slot)) {
  4267. resolveScopedSlots(slot, res, hasDynamicKeys);
  4268. } else if (slot) {
  4269. // marker for reverse proxying v-slot without scope on this.$slots
  4270. if (slot.proxy) {
  4271. slot.fn.proxy = true;
  4272. }
  4273. res[slot.key] = slot.fn;
  4274. }
  4275. }
  4276. if (contentHashKey) {
  4277. (res).$key = contentHashKey;
  4278. }
  4279. return res
  4280. }
  4281. /* */
  4282. function bindDynamicKeys (baseObj, values) {
  4283. for (var i = 0; i < values.length; i += 2) {
  4284. var key = values[i];
  4285. if (typeof key === 'string' && key) {
  4286. baseObj[values[i]] = values[i + 1];
  4287. } else if ( true && key !== '' && key !== null) {
  4288. // null is a special value for explicitly removing a binding
  4289. warn(
  4290. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  4291. this
  4292. );
  4293. }
  4294. }
  4295. return baseObj
  4296. }
  4297. // helper to dynamically append modifier runtime markers to event names.
  4298. // ensure only append when value is already string, otherwise it will be cast
  4299. // to string and cause the type check to miss.
  4300. function prependModifier (value, symbol) {
  4301. return typeof value === 'string' ? symbol + value : value
  4302. }
  4303. /* */
  4304. function installRenderHelpers (target) {
  4305. target._o = markOnce;
  4306. target._n = toNumber;
  4307. target._s = toString;
  4308. target._l = renderList;
  4309. target._t = renderSlot;
  4310. target._q = looseEqual;
  4311. target._i = looseIndexOf;
  4312. target._m = renderStatic;
  4313. target._f = resolveFilter;
  4314. target._k = checkKeyCodes;
  4315. target._b = bindObjectProps;
  4316. target._v = createTextVNode;
  4317. target._e = createEmptyVNode;
  4318. target._u = resolveScopedSlots;
  4319. target._g = bindObjectListeners;
  4320. target._d = bindDynamicKeys;
  4321. target._p = prependModifier;
  4322. }
  4323. /* */
  4324. function FunctionalRenderContext (
  4325. data,
  4326. props,
  4327. children,
  4328. parent,
  4329. Ctor
  4330. ) {
  4331. var this$1 = this;
  4332. var options = Ctor.options;
  4333. // ensure the createElement function in functional components
  4334. // gets a unique context - this is necessary for correct named slot check
  4335. var contextVm;
  4336. if (hasOwn(parent, '_uid')) {
  4337. contextVm = Object.create(parent);
  4338. // $flow-disable-line
  4339. contextVm._original = parent;
  4340. } else {
  4341. // the context vm passed in is a functional context as well.
  4342. // in this case we want to make sure we are able to get a hold to the
  4343. // real context instance.
  4344. contextVm = parent;
  4345. // $flow-disable-line
  4346. parent = parent._original;
  4347. }
  4348. var isCompiled = isTrue(options._compiled);
  4349. var needNormalization = !isCompiled;
  4350. this.data = data;
  4351. this.props = props;
  4352. this.children = children;
  4353. this.parent = parent;
  4354. this.listeners = data.on || emptyObject;
  4355. this.injections = resolveInject(options.inject, parent);
  4356. this.slots = function () {
  4357. if (!this$1.$slots) {
  4358. normalizeScopedSlots(
  4359. data.scopedSlots,
  4360. this$1.$slots = resolveSlots(children, parent)
  4361. );
  4362. }
  4363. return this$1.$slots
  4364. };
  4365. Object.defineProperty(this, 'scopedSlots', ({
  4366. enumerable: true,
  4367. get: function get () {
  4368. return normalizeScopedSlots(data.scopedSlots, this.slots())
  4369. }
  4370. }));
  4371. // support for compiled functional template
  4372. if (isCompiled) {
  4373. // exposing $options for renderStatic()
  4374. this.$options = options;
  4375. // pre-resolve slots for renderSlot()
  4376. this.$slots = this.slots();
  4377. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  4378. }
  4379. if (options._scopeId) {
  4380. this._c = function (a, b, c, d) {
  4381. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  4382. if (vnode && !Array.isArray(vnode)) {
  4383. vnode.fnScopeId = options._scopeId;
  4384. vnode.fnContext = parent;
  4385. }
  4386. return vnode
  4387. };
  4388. } else {
  4389. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  4390. }
  4391. }
  4392. installRenderHelpers(FunctionalRenderContext.prototype);
  4393. function createFunctionalComponent (
  4394. Ctor,
  4395. propsData,
  4396. data,
  4397. contextVm,
  4398. children
  4399. ) {
  4400. var options = Ctor.options;
  4401. var props = {};
  4402. var propOptions = options.props;
  4403. if (isDef(propOptions)) {
  4404. for (var key in propOptions) {
  4405. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  4406. }
  4407. } else {
  4408. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  4409. if (isDef(data.props)) { mergeProps(props, data.props); }
  4410. }
  4411. var renderContext = new FunctionalRenderContext(
  4412. data,
  4413. props,
  4414. children,
  4415. contextVm,
  4416. Ctor
  4417. );
  4418. var vnode = options.render.call(null, renderContext._c, renderContext);
  4419. if (vnode instanceof VNode) {
  4420. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  4421. } else if (Array.isArray(vnode)) {
  4422. var vnodes = normalizeChildren(vnode) || [];
  4423. var res = new Array(vnodes.length);
  4424. for (var i = 0; i < vnodes.length; i++) {
  4425. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  4426. }
  4427. return res
  4428. }
  4429. }
  4430. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  4431. // #7817 clone node before setting fnContext, otherwise if the node is reused
  4432. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  4433. // that should not be matched to match.
  4434. var clone = cloneVNode(vnode);
  4435. clone.fnContext = contextVm;
  4436. clone.fnOptions = options;
  4437. if (true) {
  4438. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  4439. }
  4440. if (data.slot) {
  4441. (clone.data || (clone.data = {})).slot = data.slot;
  4442. }
  4443. return clone
  4444. }
  4445. function mergeProps (to, from) {
  4446. for (var key in from) {
  4447. to[camelize(key)] = from[key];
  4448. }
  4449. }
  4450. /* */
  4451. /* */
  4452. /* */
  4453. /* */
  4454. // inline hooks to be invoked on component VNodes during patch
  4455. var componentVNodeHooks = {
  4456. init: function init (vnode, hydrating) {
  4457. if (
  4458. vnode.componentInstance &&
  4459. !vnode.componentInstance._isDestroyed &&
  4460. vnode.data.keepAlive
  4461. ) {
  4462. // kept-alive components, treat as a patch
  4463. var mountedNode = vnode; // work around flow
  4464. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  4465. } else {
  4466. var child = vnode.componentInstance = createComponentInstanceForVnode(
  4467. vnode,
  4468. activeInstance
  4469. );
  4470. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  4471. }
  4472. },
  4473. prepatch: function prepatch (oldVnode, vnode) {
  4474. var options = vnode.componentOptions;
  4475. var child = vnode.componentInstance = oldVnode.componentInstance;
  4476. updateChildComponent(
  4477. child,
  4478. options.propsData, // updated props
  4479. options.listeners, // updated listeners
  4480. vnode, // new parent vnode
  4481. options.children // new children
  4482. );
  4483. },
  4484. insert: function insert (vnode) {
  4485. var context = vnode.context;
  4486. var componentInstance = vnode.componentInstance;
  4487. if (!componentInstance._isMounted) {
  4488. callHook(componentInstance, 'onServiceCreated');
  4489. callHook(componentInstance, 'onServiceAttached');
  4490. componentInstance._isMounted = true;
  4491. callHook(componentInstance, 'mounted');
  4492. }
  4493. if (vnode.data.keepAlive) {
  4494. if (context._isMounted) {
  4495. // vue-router#1212
  4496. // During updates, a kept-alive component's child components may
  4497. // change, so directly walking the tree here may call activated hooks
  4498. // on incorrect children. Instead we push them into a queue which will
  4499. // be processed after the whole patch process ended.
  4500. queueActivatedComponent(componentInstance);
  4501. } else {
  4502. activateChildComponent(componentInstance, true /* direct */);
  4503. }
  4504. }
  4505. },
  4506. destroy: function destroy (vnode) {
  4507. var componentInstance = vnode.componentInstance;
  4508. if (!componentInstance._isDestroyed) {
  4509. if (!vnode.data.keepAlive) {
  4510. componentInstance.$destroy();
  4511. } else {
  4512. deactivateChildComponent(componentInstance, true /* direct */);
  4513. }
  4514. }
  4515. }
  4516. };
  4517. var hooksToMerge = Object.keys(componentVNodeHooks);
  4518. function createComponent (
  4519. Ctor,
  4520. data,
  4521. context,
  4522. children,
  4523. tag
  4524. ) {
  4525. if (isUndef(Ctor)) {
  4526. return
  4527. }
  4528. var baseCtor = context.$options._base;
  4529. // plain options object: turn it into a constructor
  4530. if (isObject(Ctor)) {
  4531. Ctor = baseCtor.extend(Ctor);
  4532. }
  4533. // if at this stage it's not a constructor or an async component factory,
  4534. // reject.
  4535. if (typeof Ctor !== 'function') {
  4536. if (true) {
  4537. warn(("Invalid Component definition: " + (String(Ctor))), context);
  4538. }
  4539. return
  4540. }
  4541. // async component
  4542. var asyncFactory;
  4543. if (isUndef(Ctor.cid)) {
  4544. asyncFactory = Ctor;
  4545. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  4546. if (Ctor === undefined) {
  4547. // return a placeholder node for async component, which is rendered
  4548. // as a comment node but preserves all the raw information for the node.
  4549. // the information will be used for async server-rendering and hydration.
  4550. return createAsyncPlaceholder(
  4551. asyncFactory,
  4552. data,
  4553. context,
  4554. children,
  4555. tag
  4556. )
  4557. }
  4558. }
  4559. data = data || {};
  4560. // resolve constructor options in case global mixins are applied after
  4561. // component constructor creation
  4562. resolveConstructorOptions(Ctor);
  4563. // transform component v-model data into props & events
  4564. if (isDef(data.model)) {
  4565. transformModel(Ctor.options, data);
  4566. }
  4567. // extract props
  4568. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  4569. // functional component
  4570. if (isTrue(Ctor.options.functional)) {
  4571. return createFunctionalComponent(Ctor, propsData, data, context, children)
  4572. }
  4573. // extract listeners, since these needs to be treated as
  4574. // child component listeners instead of DOM listeners
  4575. var listeners = data.on;
  4576. // replace with listeners with .native modifier
  4577. // so it gets processed during parent component patch.
  4578. data.on = data.nativeOn;
  4579. if (isTrue(Ctor.options.abstract)) {
  4580. // abstract components do not keep anything
  4581. // other than props & listeners & slot
  4582. // work around flow
  4583. var slot = data.slot;
  4584. data = {};
  4585. if (slot) {
  4586. data.slot = slot;
  4587. }
  4588. }
  4589. // install component management hooks onto the placeholder node
  4590. installComponentHooks(data);
  4591. // return a placeholder vnode
  4592. var name = Ctor.options.name || tag;
  4593. var vnode = new VNode(
  4594. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  4595. data, undefined, undefined, undefined, context,
  4596. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  4597. asyncFactory
  4598. );
  4599. return vnode
  4600. }
  4601. function createComponentInstanceForVnode (
  4602. vnode, // we know it's MountedComponentVNode but flow doesn't
  4603. parent // activeInstance in lifecycle state
  4604. ) {
  4605. var options = {
  4606. _isComponent: true,
  4607. _parentVnode: vnode,
  4608. parent: parent
  4609. };
  4610. // check inline-template render functions
  4611. var inlineTemplate = vnode.data.inlineTemplate;
  4612. if (isDef(inlineTemplate)) {
  4613. options.render = inlineTemplate.render;
  4614. options.staticRenderFns = inlineTemplate.staticRenderFns;
  4615. }
  4616. return new vnode.componentOptions.Ctor(options)
  4617. }
  4618. function installComponentHooks (data) {
  4619. var hooks = data.hook || (data.hook = {});
  4620. for (var i = 0; i < hooksToMerge.length; i++) {
  4621. var key = hooksToMerge[i];
  4622. var existing = hooks[key];
  4623. var toMerge = componentVNodeHooks[key];
  4624. if (existing !== toMerge && !(existing && existing._merged)) {
  4625. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  4626. }
  4627. }
  4628. }
  4629. function mergeHook$1 (f1, f2) {
  4630. var merged = function (a, b) {
  4631. // flow complains about extra args which is why we use any
  4632. f1(a, b);
  4633. f2(a, b);
  4634. };
  4635. merged._merged = true;
  4636. return merged
  4637. }
  4638. // transform component v-model info (value and callback) into
  4639. // prop and event handler respectively.
  4640. function transformModel (options, data) {
  4641. var prop = (options.model && options.model.prop) || 'value';
  4642. var event = (options.model && options.model.event) || 'input'
  4643. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  4644. var on = data.on || (data.on = {});
  4645. var existing = on[event];
  4646. var callback = data.model.callback;
  4647. if (isDef(existing)) {
  4648. if (
  4649. Array.isArray(existing)
  4650. ? existing.indexOf(callback) === -1
  4651. : existing !== callback
  4652. ) {
  4653. on[event] = [callback].concat(existing);
  4654. }
  4655. } else {
  4656. on[event] = callback;
  4657. }
  4658. }
  4659. /* */
  4660. var SIMPLE_NORMALIZE = 1;
  4661. var ALWAYS_NORMALIZE = 2;
  4662. // wrapper function for providing a more flexible interface
  4663. // without getting yelled at by flow
  4664. function createElement (
  4665. context,
  4666. tag,
  4667. data,
  4668. children,
  4669. normalizationType,
  4670. alwaysNormalize
  4671. ) {
  4672. if (Array.isArray(data) || isPrimitive(data)) {
  4673. normalizationType = children;
  4674. children = data;
  4675. data = undefined;
  4676. }
  4677. if (isTrue(alwaysNormalize)) {
  4678. normalizationType = ALWAYS_NORMALIZE;
  4679. }
  4680. return _createElement(context, tag, data, children, normalizationType)
  4681. }
  4682. function _createElement (
  4683. context,
  4684. tag,
  4685. data,
  4686. children,
  4687. normalizationType
  4688. ) {
  4689. if (isDef(data) && isDef((data).__ob__)) {
  4690. true && warn(
  4691. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  4692. 'Always create fresh vnode data objects in each render!',
  4693. context
  4694. );
  4695. return createEmptyVNode()
  4696. }
  4697. // object syntax in v-bind
  4698. if (isDef(data) && isDef(data.is)) {
  4699. tag = data.is;
  4700. }
  4701. if (!tag) {
  4702. // in case of component :is set to falsy value
  4703. return createEmptyVNode()
  4704. }
  4705. // warn against non-primitive key
  4706. if ( true &&
  4707. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  4708. ) {
  4709. {
  4710. warn(
  4711. 'Avoid using non-primitive value as key, ' +
  4712. 'use string/number value instead.',
  4713. context
  4714. );
  4715. }
  4716. }
  4717. // support single function children as default scoped slot
  4718. if (Array.isArray(children) &&
  4719. typeof children[0] === 'function'
  4720. ) {
  4721. data = data || {};
  4722. data.scopedSlots = { default: children[0] };
  4723. children.length = 0;
  4724. }
  4725. if (normalizationType === ALWAYS_NORMALIZE) {
  4726. children = normalizeChildren(children);
  4727. } else if (normalizationType === SIMPLE_NORMALIZE) {
  4728. children = simpleNormalizeChildren(children);
  4729. }
  4730. var vnode, ns;
  4731. if (typeof tag === 'string') {
  4732. var Ctor;
  4733. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  4734. if (config.isReservedTag(tag)) {
  4735. // platform built-in elements
  4736. if ( true && isDef(data) && isDef(data.nativeOn)) {
  4737. warn(
  4738. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  4739. context
  4740. );
  4741. }
  4742. vnode = new VNode(
  4743. config.parsePlatformTagName(tag), data, children,
  4744. undefined, undefined, context
  4745. );
  4746. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  4747. // component
  4748. vnode = createComponent(Ctor, data, context, children, tag);
  4749. } else {
  4750. // unknown or unlisted namespaced elements
  4751. // check at runtime because it may get assigned a namespace when its
  4752. // parent normalizes children
  4753. vnode = new VNode(
  4754. tag, data, children,
  4755. undefined, undefined, context
  4756. );
  4757. }
  4758. } else {
  4759. // direct component options / constructor
  4760. vnode = createComponent(tag, data, context, children);
  4761. }
  4762. if (Array.isArray(vnode)) {
  4763. return vnode
  4764. } else if (isDef(vnode)) {
  4765. if (isDef(ns)) { applyNS(vnode, ns); }
  4766. if (isDef(data)) { registerDeepBindings(data); }
  4767. return vnode
  4768. } else {
  4769. return createEmptyVNode()
  4770. }
  4771. }
  4772. function applyNS (vnode, ns, force) {
  4773. vnode.ns = ns;
  4774. if (vnode.tag === 'foreignObject') {
  4775. // use default namespace inside foreignObject
  4776. ns = undefined;
  4777. force = true;
  4778. }
  4779. if (isDef(vnode.children)) {
  4780. for (var i = 0, l = vnode.children.length; i < l; i++) {
  4781. var child = vnode.children[i];
  4782. if (isDef(child.tag) && (
  4783. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  4784. applyNS(child, ns, force);
  4785. }
  4786. }
  4787. }
  4788. }
  4789. // ref #5318
  4790. // necessary to ensure parent re-render when deep bindings like :style and
  4791. // :class are used on slot nodes
  4792. function registerDeepBindings (data) {
  4793. if (isObject(data.style)) {
  4794. traverse(data.style);
  4795. }
  4796. if (isObject(data.class)) {
  4797. traverse(data.class);
  4798. }
  4799. }
  4800. /* */
  4801. function initRender (vm) {
  4802. vm._vnode = null; // the root of the child tree
  4803. vm._staticTrees = null; // v-once cached trees
  4804. var options = vm.$options;
  4805. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  4806. var renderContext = parentVnode && parentVnode.context;
  4807. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  4808. vm.$scopedSlots = emptyObject;
  4809. // bind the createElement fn to this instance
  4810. // so that we get proper render context inside it.
  4811. // args order: tag, data, children, normalizationType, alwaysNormalize
  4812. // internal version is used by render functions compiled from templates
  4813. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  4814. // normalization is always applied for the public version, used in
  4815. // user-written render functions.
  4816. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  4817. // $attrs & $listeners are exposed for easier HOC creation.
  4818. // they need to be reactive so that HOCs using them are always updated
  4819. var parentData = parentVnode && parentVnode.data;
  4820. /* istanbul ignore else */
  4821. if (true) {
  4822. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  4823. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  4824. }, true);
  4825. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  4826. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  4827. }, true);
  4828. } else {}
  4829. }
  4830. var currentRenderingInstance = null;
  4831. function renderMixin (Vue) {
  4832. // install runtime convenience helpers
  4833. installRenderHelpers(Vue.prototype);
  4834. Vue.prototype.$nextTick = function (fn) {
  4835. return nextTick(fn, this)
  4836. };
  4837. Vue.prototype._render = function () {
  4838. var vm = this;
  4839. var ref = vm.$options;
  4840. var render = ref.render;
  4841. var _parentVnode = ref._parentVnode;
  4842. if (_parentVnode) {
  4843. vm.$scopedSlots = normalizeScopedSlots(
  4844. _parentVnode.data.scopedSlots,
  4845. vm.$slots,
  4846. vm.$scopedSlots
  4847. );
  4848. }
  4849. // set parent vnode. this allows render functions to have access
  4850. // to the data on the placeholder node.
  4851. vm.$vnode = _parentVnode;
  4852. // render self
  4853. var vnode;
  4854. try {
  4855. // There's no need to maintain a stack because all render fns are called
  4856. // separately from one another. Nested component's render fns are called
  4857. // when parent component is patched.
  4858. currentRenderingInstance = vm;
  4859. vnode = render.call(vm._renderProxy, vm.$createElement);
  4860. } catch (e) {
  4861. handleError(e, vm, "render");
  4862. // return error render result,
  4863. // or previous vnode to prevent render error causing blank component
  4864. /* istanbul ignore else */
  4865. if ( true && vm.$options.renderError) {
  4866. try {
  4867. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  4868. } catch (e) {
  4869. handleError(e, vm, "renderError");
  4870. vnode = vm._vnode;
  4871. }
  4872. } else {
  4873. vnode = vm._vnode;
  4874. }
  4875. } finally {
  4876. currentRenderingInstance = null;
  4877. }
  4878. // if the returned array contains only a single node, allow it
  4879. if (Array.isArray(vnode) && vnode.length === 1) {
  4880. vnode = vnode[0];
  4881. }
  4882. // return empty vnode in case the render function errored out
  4883. if (!(vnode instanceof VNode)) {
  4884. if ( true && Array.isArray(vnode)) {
  4885. warn(
  4886. 'Multiple root nodes returned from render function. Render function ' +
  4887. 'should return a single root node.',
  4888. vm
  4889. );
  4890. }
  4891. vnode = createEmptyVNode();
  4892. }
  4893. // set parent
  4894. vnode.parent = _parentVnode;
  4895. return vnode
  4896. };
  4897. }
  4898. /* */
  4899. function ensureCtor (comp, base) {
  4900. if (
  4901. comp.__esModule ||
  4902. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  4903. ) {
  4904. comp = comp.default;
  4905. }
  4906. return isObject(comp)
  4907. ? base.extend(comp)
  4908. : comp
  4909. }
  4910. function createAsyncPlaceholder (
  4911. factory,
  4912. data,
  4913. context,
  4914. children,
  4915. tag
  4916. ) {
  4917. var node = createEmptyVNode();
  4918. node.asyncFactory = factory;
  4919. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  4920. return node
  4921. }
  4922. function resolveAsyncComponent (
  4923. factory,
  4924. baseCtor
  4925. ) {
  4926. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  4927. return factory.errorComp
  4928. }
  4929. if (isDef(factory.resolved)) {
  4930. return factory.resolved
  4931. }
  4932. var owner = currentRenderingInstance;
  4933. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  4934. // already pending
  4935. factory.owners.push(owner);
  4936. }
  4937. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  4938. return factory.loadingComp
  4939. }
  4940. if (owner && !isDef(factory.owners)) {
  4941. var owners = factory.owners = [owner];
  4942. var sync = true;
  4943. var timerLoading = null;
  4944. var timerTimeout = null
  4945. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  4946. var forceRender = function (renderCompleted) {
  4947. for (var i = 0, l = owners.length; i < l; i++) {
  4948. (owners[i]).$forceUpdate();
  4949. }
  4950. if (renderCompleted) {
  4951. owners.length = 0;
  4952. if (timerLoading !== null) {
  4953. clearTimeout(timerLoading);
  4954. timerLoading = null;
  4955. }
  4956. if (timerTimeout !== null) {
  4957. clearTimeout(timerTimeout);
  4958. timerTimeout = null;
  4959. }
  4960. }
  4961. };
  4962. var resolve = once(function (res) {
  4963. // cache resolved
  4964. factory.resolved = ensureCtor(res, baseCtor);
  4965. // invoke callbacks only if this is not a synchronous resolve
  4966. // (async resolves are shimmed as synchronous during SSR)
  4967. if (!sync) {
  4968. forceRender(true);
  4969. } else {
  4970. owners.length = 0;
  4971. }
  4972. });
  4973. var reject = once(function (reason) {
  4974. true && warn(
  4975. "Failed to resolve async component: " + (String(factory)) +
  4976. (reason ? ("\nReason: " + reason) : '')
  4977. );
  4978. if (isDef(factory.errorComp)) {
  4979. factory.error = true;
  4980. forceRender(true);
  4981. }
  4982. });
  4983. var res = factory(resolve, reject);
  4984. if (isObject(res)) {
  4985. if (isPromise(res)) {
  4986. // () => Promise
  4987. if (isUndef(factory.resolved)) {
  4988. res.then(resolve, reject);
  4989. }
  4990. } else if (isPromise(res.component)) {
  4991. res.component.then(resolve, reject);
  4992. if (isDef(res.error)) {
  4993. factory.errorComp = ensureCtor(res.error, baseCtor);
  4994. }
  4995. if (isDef(res.loading)) {
  4996. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  4997. if (res.delay === 0) {
  4998. factory.loading = true;
  4999. } else {
  5000. timerLoading = setTimeout(function () {
  5001. timerLoading = null;
  5002. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  5003. factory.loading = true;
  5004. forceRender(false);
  5005. }
  5006. }, res.delay || 200);
  5007. }
  5008. }
  5009. if (isDef(res.timeout)) {
  5010. timerTimeout = setTimeout(function () {
  5011. timerTimeout = null;
  5012. if (isUndef(factory.resolved)) {
  5013. reject(
  5014. true
  5015. ? ("timeout (" + (res.timeout) + "ms)")
  5016. : undefined
  5017. );
  5018. }
  5019. }, res.timeout);
  5020. }
  5021. }
  5022. }
  5023. sync = false;
  5024. // return in case resolved synchronously
  5025. return factory.loading
  5026. ? factory.loadingComp
  5027. : factory.resolved
  5028. }
  5029. }
  5030. /* */
  5031. function isAsyncPlaceholder (node) {
  5032. return node.isComment && node.asyncFactory
  5033. }
  5034. /* */
  5035. function getFirstComponentChild (children) {
  5036. if (Array.isArray(children)) {
  5037. for (var i = 0; i < children.length; i++) {
  5038. var c = children[i];
  5039. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  5040. return c
  5041. }
  5042. }
  5043. }
  5044. }
  5045. /* */
  5046. /* */
  5047. function initEvents (vm) {
  5048. vm._events = Object.create(null);
  5049. vm._hasHookEvent = false;
  5050. // init parent attached events
  5051. var listeners = vm.$options._parentListeners;
  5052. if (listeners) {
  5053. updateComponentListeners(vm, listeners);
  5054. }
  5055. }
  5056. var target;
  5057. function add (event, fn) {
  5058. target.$on(event, fn);
  5059. }
  5060. function remove$1 (event, fn) {
  5061. target.$off(event, fn);
  5062. }
  5063. function createOnceHandler (event, fn) {
  5064. var _target = target;
  5065. return function onceHandler () {
  5066. var res = fn.apply(null, arguments);
  5067. if (res !== null) {
  5068. _target.$off(event, onceHandler);
  5069. }
  5070. }
  5071. }
  5072. function updateComponentListeners (
  5073. vm,
  5074. listeners,
  5075. oldListeners
  5076. ) {
  5077. target = vm;
  5078. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  5079. target = undefined;
  5080. }
  5081. function eventsMixin (Vue) {
  5082. var hookRE = /^hook:/;
  5083. Vue.prototype.$on = function (event, fn) {
  5084. var vm = this;
  5085. if (Array.isArray(event)) {
  5086. for (var i = 0, l = event.length; i < l; i++) {
  5087. vm.$on(event[i], fn);
  5088. }
  5089. } else {
  5090. (vm._events[event] || (vm._events[event] = [])).push(fn);
  5091. // optimize hook:event cost by using a boolean flag marked at registration
  5092. // instead of a hash lookup
  5093. if (hookRE.test(event)) {
  5094. vm._hasHookEvent = true;
  5095. }
  5096. }
  5097. return vm
  5098. };
  5099. Vue.prototype.$once = function (event, fn) {
  5100. var vm = this;
  5101. function on () {
  5102. vm.$off(event, on);
  5103. fn.apply(vm, arguments);
  5104. }
  5105. on.fn = fn;
  5106. vm.$on(event, on);
  5107. return vm
  5108. };
  5109. Vue.prototype.$off = function (event, fn) {
  5110. var vm = this;
  5111. // all
  5112. if (!arguments.length) {
  5113. vm._events = Object.create(null);
  5114. return vm
  5115. }
  5116. // array of events
  5117. if (Array.isArray(event)) {
  5118. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  5119. vm.$off(event[i$1], fn);
  5120. }
  5121. return vm
  5122. }
  5123. // specific event
  5124. var cbs = vm._events[event];
  5125. if (!cbs) {
  5126. return vm
  5127. }
  5128. if (!fn) {
  5129. vm._events[event] = null;
  5130. return vm
  5131. }
  5132. // specific handler
  5133. var cb;
  5134. var i = cbs.length;
  5135. while (i--) {
  5136. cb = cbs[i];
  5137. if (cb === fn || cb.fn === fn) {
  5138. cbs.splice(i, 1);
  5139. break
  5140. }
  5141. }
  5142. return vm
  5143. };
  5144. Vue.prototype.$emit = function (event) {
  5145. var vm = this;
  5146. if (true) {
  5147. var lowerCaseEvent = event.toLowerCase();
  5148. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  5149. tip(
  5150. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  5151. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  5152. "Note that HTML attributes are case-insensitive and you cannot use " +
  5153. "v-on to listen to camelCase events when using in-DOM templates. " +
  5154. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  5155. );
  5156. }
  5157. }
  5158. var cbs = vm._events[event];
  5159. if (cbs) {
  5160. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  5161. var args = toArray(arguments, 1);
  5162. var info = "event handler for \"" + event + "\"";
  5163. for (var i = 0, l = cbs.length; i < l; i++) {
  5164. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  5165. }
  5166. }
  5167. return vm
  5168. };
  5169. }
  5170. /* */
  5171. var activeInstance = null;
  5172. var isUpdatingChildComponent = false;
  5173. function setActiveInstance(vm) {
  5174. var prevActiveInstance = activeInstance;
  5175. activeInstance = vm;
  5176. return function () {
  5177. activeInstance = prevActiveInstance;
  5178. }
  5179. }
  5180. function initLifecycle (vm) {
  5181. var options = vm.$options;
  5182. // locate first non-abstract parent
  5183. var parent = options.parent;
  5184. if (parent && !options.abstract) {
  5185. while (parent.$options.abstract && parent.$parent) {
  5186. parent = parent.$parent;
  5187. }
  5188. parent.$children.push(vm);
  5189. }
  5190. vm.$parent = parent;
  5191. vm.$root = parent ? parent.$root : vm;
  5192. vm.$children = [];
  5193. vm.$refs = {};
  5194. vm._watcher = null;
  5195. vm._inactive = null;
  5196. vm._directInactive = false;
  5197. vm._isMounted = false;
  5198. vm._isDestroyed = false;
  5199. vm._isBeingDestroyed = false;
  5200. }
  5201. function lifecycleMixin (Vue) {
  5202. Vue.prototype._update = function (vnode, hydrating) {
  5203. var vm = this;
  5204. var prevEl = vm.$el;
  5205. var prevVnode = vm._vnode;
  5206. var restoreActiveInstance = setActiveInstance(vm);
  5207. vm._vnode = vnode;
  5208. // Vue.prototype.__patch__ is injected in entry points
  5209. // based on the rendering backend used.
  5210. if (!prevVnode) {
  5211. // initial render
  5212. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  5213. } else {
  5214. // updates
  5215. vm.$el = vm.__patch__(prevVnode, vnode);
  5216. }
  5217. restoreActiveInstance();
  5218. // update __vue__ reference
  5219. if (prevEl) {
  5220. prevEl.__vue__ = null;
  5221. }
  5222. if (vm.$el) {
  5223. vm.$el.__vue__ = vm;
  5224. }
  5225. // if parent is an HOC, update its $el as well
  5226. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  5227. vm.$parent.$el = vm.$el;
  5228. }
  5229. // updated hook is called by the scheduler to ensure that children are
  5230. // updated in a parent's updated hook.
  5231. };
  5232. Vue.prototype.$forceUpdate = function () {
  5233. var vm = this;
  5234. if (vm._watcher) {
  5235. vm._watcher.update();
  5236. }
  5237. };
  5238. Vue.prototype.$destroy = function () {
  5239. var vm = this;
  5240. if (vm._isBeingDestroyed) {
  5241. return
  5242. }
  5243. callHook(vm, 'beforeDestroy');
  5244. vm._isBeingDestroyed = true;
  5245. // remove self from parent
  5246. var parent = vm.$parent;
  5247. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  5248. remove(parent.$children, vm);
  5249. }
  5250. // teardown watchers
  5251. if (vm._watcher) {
  5252. vm._watcher.teardown();
  5253. }
  5254. var i = vm._watchers.length;
  5255. while (i--) {
  5256. vm._watchers[i].teardown();
  5257. }
  5258. // remove reference from data ob
  5259. // frozen object may not have observer.
  5260. if (vm._data.__ob__) {
  5261. vm._data.__ob__.vmCount--;
  5262. }
  5263. // call the last hook...
  5264. vm._isDestroyed = true;
  5265. // invoke destroy hooks on current rendered tree
  5266. vm.__patch__(vm._vnode, null);
  5267. // fire destroyed hook
  5268. callHook(vm, 'destroyed');
  5269. // turn off all instance listeners.
  5270. vm.$off();
  5271. // remove __vue__ reference
  5272. if (vm.$el) {
  5273. vm.$el.__vue__ = null;
  5274. }
  5275. // release circular reference (#6759)
  5276. if (vm.$vnode) {
  5277. vm.$vnode.parent = null;
  5278. }
  5279. };
  5280. }
  5281. function updateChildComponent (
  5282. vm,
  5283. propsData,
  5284. listeners,
  5285. parentVnode,
  5286. renderChildren
  5287. ) {
  5288. if (true) {
  5289. isUpdatingChildComponent = true;
  5290. }
  5291. // determine whether component has slot children
  5292. // we need to do this before overwriting $options._renderChildren.
  5293. // check if there are dynamic scopedSlots (hand-written or compiled but with
  5294. // dynamic slot names). Static scoped slots compiled from template has the
  5295. // "$stable" marker.
  5296. var newScopedSlots = parentVnode.data.scopedSlots;
  5297. var oldScopedSlots = vm.$scopedSlots;
  5298. var hasDynamicScopedSlot = !!(
  5299. (newScopedSlots && !newScopedSlots.$stable) ||
  5300. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  5301. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  5302. );
  5303. // Any static slot children from the parent may have changed during parent's
  5304. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  5305. // update is necessary to ensure correctness.
  5306. var needsForceUpdate = !!(
  5307. renderChildren || // has new static slots
  5308. vm.$options._renderChildren || // has old static slots
  5309. hasDynamicScopedSlot
  5310. );
  5311. vm.$options._parentVnode = parentVnode;
  5312. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  5313. if (vm._vnode) { // update child tree's parent
  5314. vm._vnode.parent = parentVnode;
  5315. }
  5316. vm.$options._renderChildren = renderChildren;
  5317. // update $attrs and $listeners hash
  5318. // these are also reactive so they may trigger child update if the child
  5319. // used them during render
  5320. vm.$attrs = parentVnode.data.attrs || emptyObject;
  5321. vm.$listeners = listeners || emptyObject;
  5322. // update props
  5323. if (propsData && vm.$options.props) {
  5324. toggleObserving(false);
  5325. var props = vm._props;
  5326. var propKeys = vm.$options._propKeys || [];
  5327. for (var i = 0; i < propKeys.length; i++) {
  5328. var key = propKeys[i];
  5329. var propOptions = vm.$options.props; // wtf flow?
  5330. props[key] = validateProp(key, propOptions, propsData, vm);
  5331. }
  5332. toggleObserving(true);
  5333. // keep a copy of raw propsData
  5334. vm.$options.propsData = propsData;
  5335. }
  5336. // fixed by xxxxxx update properties(mp runtime)
  5337. vm._$updateProperties && vm._$updateProperties(vm);
  5338. // update listeners
  5339. listeners = listeners || emptyObject;
  5340. var oldListeners = vm.$options._parentListeners;
  5341. vm.$options._parentListeners = listeners;
  5342. updateComponentListeners(vm, listeners, oldListeners);
  5343. // resolve slots + force update if has children
  5344. if (needsForceUpdate) {
  5345. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  5346. vm.$forceUpdate();
  5347. }
  5348. if (true) {
  5349. isUpdatingChildComponent = false;
  5350. }
  5351. }
  5352. function isInInactiveTree (vm) {
  5353. while (vm && (vm = vm.$parent)) {
  5354. if (vm._inactive) { return true }
  5355. }
  5356. return false
  5357. }
  5358. function activateChildComponent (vm, direct) {
  5359. if (direct) {
  5360. vm._directInactive = false;
  5361. if (isInInactiveTree(vm)) {
  5362. return
  5363. }
  5364. } else if (vm._directInactive) {
  5365. return
  5366. }
  5367. if (vm._inactive || vm._inactive === null) {
  5368. vm._inactive = false;
  5369. for (var i = 0; i < vm.$children.length; i++) {
  5370. activateChildComponent(vm.$children[i]);
  5371. }
  5372. callHook(vm, 'activated');
  5373. }
  5374. }
  5375. function deactivateChildComponent (vm, direct) {
  5376. if (direct) {
  5377. vm._directInactive = true;
  5378. if (isInInactiveTree(vm)) {
  5379. return
  5380. }
  5381. }
  5382. if (!vm._inactive) {
  5383. vm._inactive = true;
  5384. for (var i = 0; i < vm.$children.length; i++) {
  5385. deactivateChildComponent(vm.$children[i]);
  5386. }
  5387. callHook(vm, 'deactivated');
  5388. }
  5389. }
  5390. function callHook (vm, hook) {
  5391. // #7573 disable dep collection when invoking lifecycle hooks
  5392. pushTarget();
  5393. var handlers = vm.$options[hook];
  5394. var info = hook + " hook";
  5395. if (handlers) {
  5396. for (var i = 0, j = handlers.length; i < j; i++) {
  5397. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  5398. }
  5399. }
  5400. if (vm._hasHookEvent) {
  5401. vm.$emit('hook:' + hook);
  5402. }
  5403. popTarget();
  5404. }
  5405. /* */
  5406. var MAX_UPDATE_COUNT = 100;
  5407. var queue = [];
  5408. var activatedChildren = [];
  5409. var has = {};
  5410. var circular = {};
  5411. var waiting = false;
  5412. var flushing = false;
  5413. var index = 0;
  5414. /**
  5415. * Reset the scheduler's state.
  5416. */
  5417. function resetSchedulerState () {
  5418. index = queue.length = activatedChildren.length = 0;
  5419. has = {};
  5420. if (true) {
  5421. circular = {};
  5422. }
  5423. waiting = flushing = false;
  5424. }
  5425. // Async edge case #6566 requires saving the timestamp when event listeners are
  5426. // attached. However, calling performance.now() has a perf overhead especially
  5427. // if the page has thousands of event listeners. Instead, we take a timestamp
  5428. // every time the scheduler flushes and use that for all event listeners
  5429. // attached during that flush.
  5430. var currentFlushTimestamp = 0;
  5431. // Async edge case fix requires storing an event listener's attach timestamp.
  5432. var getNow = Date.now;
  5433. // Determine what event timestamp the browser is using. Annoyingly, the
  5434. // timestamp can either be hi-res (relative to page load) or low-res
  5435. // (relative to UNIX epoch), so in order to compare time we have to use the
  5436. // same timestamp type when saving the flush timestamp.
  5437. // All IE versions use low-res event timestamps, and have problematic clock
  5438. // implementations (#9632)
  5439. if (inBrowser && !isIE) {
  5440. var performance = window.performance;
  5441. if (
  5442. performance &&
  5443. typeof performance.now === 'function' &&
  5444. getNow() > document.createEvent('Event').timeStamp
  5445. ) {
  5446. // if the event timestamp, although evaluated AFTER the Date.now(), is
  5447. // smaller than it, it means the event is using a hi-res timestamp,
  5448. // and we need to use the hi-res version for event listener timestamps as
  5449. // well.
  5450. getNow = function () { return performance.now(); };
  5451. }
  5452. }
  5453. /**
  5454. * Flush both queues and run the watchers.
  5455. */
  5456. function flushSchedulerQueue () {
  5457. currentFlushTimestamp = getNow();
  5458. flushing = true;
  5459. var watcher, id;
  5460. // Sort queue before flush.
  5461. // This ensures that:
  5462. // 1. Components are updated from parent to child. (because parent is always
  5463. // created before the child)
  5464. // 2. A component's user watchers are run before its render watcher (because
  5465. // user watchers are created before the render watcher)
  5466. // 3. If a component is destroyed during a parent component's watcher run,
  5467. // its watchers can be skipped.
  5468. queue.sort(function (a, b) { return a.id - b.id; });
  5469. // do not cache length because more watchers might be pushed
  5470. // as we run existing watchers
  5471. for (index = 0; index < queue.length; index++) {
  5472. watcher = queue[index];
  5473. if (watcher.before) {
  5474. watcher.before();
  5475. }
  5476. id = watcher.id;
  5477. has[id] = null;
  5478. watcher.run();
  5479. // in dev build, check and stop circular updates.
  5480. if ( true && has[id] != null) {
  5481. circular[id] = (circular[id] || 0) + 1;
  5482. if (circular[id] > MAX_UPDATE_COUNT) {
  5483. warn(
  5484. 'You may have an infinite update loop ' + (
  5485. watcher.user
  5486. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  5487. : "in a component render function."
  5488. ),
  5489. watcher.vm
  5490. );
  5491. break
  5492. }
  5493. }
  5494. }
  5495. // keep copies of post queues before resetting state
  5496. var activatedQueue = activatedChildren.slice();
  5497. var updatedQueue = queue.slice();
  5498. resetSchedulerState();
  5499. // call component updated and activated hooks
  5500. callActivatedHooks(activatedQueue);
  5501. callUpdatedHooks(updatedQueue);
  5502. // devtool hook
  5503. /* istanbul ignore if */
  5504. if (devtools && config.devtools) {
  5505. devtools.emit('flush');
  5506. }
  5507. }
  5508. function callUpdatedHooks (queue) {
  5509. var i = queue.length;
  5510. while (i--) {
  5511. var watcher = queue[i];
  5512. var vm = watcher.vm;
  5513. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  5514. callHook(vm, 'updated');
  5515. }
  5516. }
  5517. }
  5518. /**
  5519. * Queue a kept-alive component that was activated during patch.
  5520. * The queue will be processed after the entire tree has been patched.
  5521. */
  5522. function queueActivatedComponent (vm) {
  5523. // setting _inactive to false here so that a render function can
  5524. // rely on checking whether it's in an inactive tree (e.g. router-view)
  5525. vm._inactive = false;
  5526. activatedChildren.push(vm);
  5527. }
  5528. function callActivatedHooks (queue) {
  5529. for (var i = 0; i < queue.length; i++) {
  5530. queue[i]._inactive = true;
  5531. activateChildComponent(queue[i], true /* true */);
  5532. }
  5533. }
  5534. /**
  5535. * Push a watcher into the watcher queue.
  5536. * Jobs with duplicate IDs will be skipped unless it's
  5537. * pushed when the queue is being flushed.
  5538. */
  5539. function queueWatcher (watcher) {
  5540. var id = watcher.id;
  5541. if (has[id] == null) {
  5542. has[id] = true;
  5543. if (!flushing) {
  5544. queue.push(watcher);
  5545. } else {
  5546. // if already flushing, splice the watcher based on its id
  5547. // if already past its id, it will be run next immediately.
  5548. var i = queue.length - 1;
  5549. while (i > index && queue[i].id > watcher.id) {
  5550. i--;
  5551. }
  5552. queue.splice(i + 1, 0, watcher);
  5553. }
  5554. // queue the flush
  5555. if (!waiting) {
  5556. waiting = true;
  5557. if ( true && !config.async) {
  5558. flushSchedulerQueue();
  5559. return
  5560. }
  5561. nextTick(flushSchedulerQueue);
  5562. }
  5563. }
  5564. }
  5565. /* */
  5566. var uid$2 = 0;
  5567. /**
  5568. * A watcher parses an expression, collects dependencies,
  5569. * and fires callback when the expression value changes.
  5570. * This is used for both the $watch() api and directives.
  5571. */
  5572. var Watcher = function Watcher (
  5573. vm,
  5574. expOrFn,
  5575. cb,
  5576. options,
  5577. isRenderWatcher
  5578. ) {
  5579. this.vm = vm;
  5580. if (isRenderWatcher) {
  5581. vm._watcher = this;
  5582. }
  5583. vm._watchers.push(this);
  5584. // options
  5585. if (options) {
  5586. this.deep = !!options.deep;
  5587. this.user = !!options.user;
  5588. this.lazy = !!options.lazy;
  5589. this.sync = !!options.sync;
  5590. this.before = options.before;
  5591. } else {
  5592. this.deep = this.user = this.lazy = this.sync = false;
  5593. }
  5594. this.cb = cb;
  5595. this.id = ++uid$2; // uid for batching
  5596. this.active = true;
  5597. this.dirty = this.lazy; // for lazy watchers
  5598. this.deps = [];
  5599. this.newDeps = [];
  5600. this.depIds = new _Set();
  5601. this.newDepIds = new _Set();
  5602. this.expression = true
  5603. ? expOrFn.toString()
  5604. : undefined;
  5605. // parse expression for getter
  5606. if (typeof expOrFn === 'function') {
  5607. this.getter = expOrFn;
  5608. } else {
  5609. this.getter = parsePath(expOrFn);
  5610. if (!this.getter) {
  5611. this.getter = noop;
  5612. true && warn(
  5613. "Failed watching path: \"" + expOrFn + "\" " +
  5614. 'Watcher only accepts simple dot-delimited paths. ' +
  5615. 'For full control, use a function instead.',
  5616. vm
  5617. );
  5618. }
  5619. }
  5620. this.value = this.lazy
  5621. ? undefined
  5622. : this.get();
  5623. };
  5624. /**
  5625. * Evaluate the getter, and re-collect dependencies.
  5626. */
  5627. Watcher.prototype.get = function get () {
  5628. pushTarget(this);
  5629. var value;
  5630. var vm = this.vm;
  5631. try {
  5632. value = this.getter.call(vm, vm);
  5633. } catch (e) {
  5634. if (this.user) {
  5635. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  5636. } else {
  5637. throw e
  5638. }
  5639. } finally {
  5640. // "touch" every property so they are all tracked as
  5641. // dependencies for deep watching
  5642. if (this.deep) {
  5643. traverse(value);
  5644. }
  5645. popTarget();
  5646. this.cleanupDeps();
  5647. }
  5648. return value
  5649. };
  5650. /**
  5651. * Add a dependency to this directive.
  5652. */
  5653. Watcher.prototype.addDep = function addDep (dep) {
  5654. var id = dep.id;
  5655. if (!this.newDepIds.has(id)) {
  5656. this.newDepIds.add(id);
  5657. this.newDeps.push(dep);
  5658. if (!this.depIds.has(id)) {
  5659. dep.addSub(this);
  5660. }
  5661. }
  5662. };
  5663. /**
  5664. * Clean up for dependency collection.
  5665. */
  5666. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  5667. var i = this.deps.length;
  5668. while (i--) {
  5669. var dep = this.deps[i];
  5670. if (!this.newDepIds.has(dep.id)) {
  5671. dep.removeSub(this);
  5672. }
  5673. }
  5674. var tmp = this.depIds;
  5675. this.depIds = this.newDepIds;
  5676. this.newDepIds = tmp;
  5677. this.newDepIds.clear();
  5678. tmp = this.deps;
  5679. this.deps = this.newDeps;
  5680. this.newDeps = tmp;
  5681. this.newDeps.length = 0;
  5682. };
  5683. /**
  5684. * Subscriber interface.
  5685. * Will be called when a dependency changes.
  5686. */
  5687. Watcher.prototype.update = function update () {
  5688. /* istanbul ignore else */
  5689. if (this.lazy) {
  5690. this.dirty = true;
  5691. } else if (this.sync) {
  5692. this.run();
  5693. } else {
  5694. queueWatcher(this);
  5695. }
  5696. };
  5697. /**
  5698. * Scheduler job interface.
  5699. * Will be called by the scheduler.
  5700. */
  5701. Watcher.prototype.run = function run () {
  5702. if (this.active) {
  5703. var value = this.get();
  5704. if (
  5705. value !== this.value ||
  5706. // Deep watchers and watchers on Object/Arrays should fire even
  5707. // when the value is the same, because the value may
  5708. // have mutated.
  5709. isObject(value) ||
  5710. this.deep
  5711. ) {
  5712. // set new value
  5713. var oldValue = this.value;
  5714. this.value = value;
  5715. if (this.user) {
  5716. try {
  5717. this.cb.call(this.vm, value, oldValue);
  5718. } catch (e) {
  5719. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  5720. }
  5721. } else {
  5722. this.cb.call(this.vm, value, oldValue);
  5723. }
  5724. }
  5725. }
  5726. };
  5727. /**
  5728. * Evaluate the value of the watcher.
  5729. * This only gets called for lazy watchers.
  5730. */
  5731. Watcher.prototype.evaluate = function evaluate () {
  5732. this.value = this.get();
  5733. this.dirty = false;
  5734. };
  5735. /**
  5736. * Depend on all deps collected by this watcher.
  5737. */
  5738. Watcher.prototype.depend = function depend () {
  5739. var i = this.deps.length;
  5740. while (i--) {
  5741. this.deps[i].depend();
  5742. }
  5743. };
  5744. /**
  5745. * Remove self from all dependencies' subscriber list.
  5746. */
  5747. Watcher.prototype.teardown = function teardown () {
  5748. if (this.active) {
  5749. // remove self from vm's watcher list
  5750. // this is a somewhat expensive operation so we skip it
  5751. // if the vm is being destroyed.
  5752. if (!this.vm._isBeingDestroyed) {
  5753. remove(this.vm._watchers, this);
  5754. }
  5755. var i = this.deps.length;
  5756. while (i--) {
  5757. this.deps[i].removeSub(this);
  5758. }
  5759. this.active = false;
  5760. }
  5761. };
  5762. /* */
  5763. var sharedPropertyDefinition = {
  5764. enumerable: true,
  5765. configurable: true,
  5766. get: noop,
  5767. set: noop
  5768. };
  5769. function proxy (target, sourceKey, key) {
  5770. sharedPropertyDefinition.get = function proxyGetter () {
  5771. return this[sourceKey][key]
  5772. };
  5773. sharedPropertyDefinition.set = function proxySetter (val) {
  5774. this[sourceKey][key] = val;
  5775. };
  5776. Object.defineProperty(target, key, sharedPropertyDefinition);
  5777. }
  5778. function initState (vm) {
  5779. vm._watchers = [];
  5780. var opts = vm.$options;
  5781. if (opts.props) { initProps(vm, opts.props); }
  5782. if (opts.methods) { initMethods(vm, opts.methods); }
  5783. if (opts.data) {
  5784. initData(vm);
  5785. } else {
  5786. observe(vm._data = {}, true /* asRootData */);
  5787. }
  5788. if (opts.computed) { initComputed(vm, opts.computed); }
  5789. if (opts.watch && opts.watch !== nativeWatch) {
  5790. initWatch(vm, opts.watch);
  5791. }
  5792. }
  5793. function initProps (vm, propsOptions) {
  5794. var propsData = vm.$options.propsData || {};
  5795. var props = vm._props = {};
  5796. // cache prop keys so that future props updates can iterate using Array
  5797. // instead of dynamic object key enumeration.
  5798. var keys = vm.$options._propKeys = [];
  5799. var isRoot = !vm.$parent;
  5800. // root instance props should be converted
  5801. if (!isRoot) {
  5802. toggleObserving(false);
  5803. }
  5804. var loop = function ( key ) {
  5805. keys.push(key);
  5806. var value = validateProp(key, propsOptions, propsData, vm);
  5807. /* istanbul ignore else */
  5808. if (true) {
  5809. var hyphenatedKey = hyphenate(key);
  5810. if (isReservedAttribute(hyphenatedKey) ||
  5811. config.isReservedAttr(hyphenatedKey)) {
  5812. warn(
  5813. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  5814. vm
  5815. );
  5816. }
  5817. defineReactive$$1(props, key, value, function () {
  5818. if (!isRoot && !isUpdatingChildComponent) {
  5819. {
  5820. if(vm.mpHost === 'mp-baidu'){//百度 observer 在 setData callback 之后触发,直接忽略该 warn
  5821. return
  5822. }
  5823. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  5824. if(
  5825. key === 'value' &&
  5826. Array.isArray(vm.$options.behaviors) &&
  5827. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  5828. ){
  5829. return
  5830. }
  5831. if(vm._getFormData){
  5832. return
  5833. }
  5834. var $parent = vm.$parent;
  5835. while($parent){
  5836. if($parent.__next_tick_pending){
  5837. return
  5838. }
  5839. $parent = $parent.$parent;
  5840. }
  5841. }
  5842. warn(
  5843. "Avoid mutating a prop directly since the value will be " +
  5844. "overwritten whenever the parent component re-renders. " +
  5845. "Instead, use a data or computed property based on the prop's " +
  5846. "value. Prop being mutated: \"" + key + "\"",
  5847. vm
  5848. );
  5849. }
  5850. });
  5851. } else {}
  5852. // static props are already proxied on the component's prototype
  5853. // during Vue.extend(). We only need to proxy props defined at
  5854. // instantiation here.
  5855. if (!(key in vm)) {
  5856. proxy(vm, "_props", key);
  5857. }
  5858. };
  5859. for (var key in propsOptions) loop( key );
  5860. toggleObserving(true);
  5861. }
  5862. function initData (vm) {
  5863. var data = vm.$options.data;
  5864. data = vm._data = typeof data === 'function'
  5865. ? getData(data, vm)
  5866. : data || {};
  5867. if (!isPlainObject(data)) {
  5868. data = {};
  5869. true && warn(
  5870. 'data functions should return an object:\n' +
  5871. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  5872. vm
  5873. );
  5874. }
  5875. // proxy data on instance
  5876. var keys = Object.keys(data);
  5877. var props = vm.$options.props;
  5878. var methods = vm.$options.methods;
  5879. var i = keys.length;
  5880. while (i--) {
  5881. var key = keys[i];
  5882. if (true) {
  5883. if (methods && hasOwn(methods, key)) {
  5884. warn(
  5885. ("Method \"" + key + "\" has already been defined as a data property."),
  5886. vm
  5887. );
  5888. }
  5889. }
  5890. if (props && hasOwn(props, key)) {
  5891. true && warn(
  5892. "The data property \"" + key + "\" is already declared as a prop. " +
  5893. "Use prop default value instead.",
  5894. vm
  5895. );
  5896. } else if (!isReserved(key)) {
  5897. proxy(vm, "_data", key);
  5898. }
  5899. }
  5900. // observe data
  5901. observe(data, true /* asRootData */);
  5902. }
  5903. function getData (data, vm) {
  5904. // #7573 disable dep collection when invoking data getters
  5905. pushTarget();
  5906. try {
  5907. return data.call(vm, vm)
  5908. } catch (e) {
  5909. handleError(e, vm, "data()");
  5910. return {}
  5911. } finally {
  5912. popTarget();
  5913. }
  5914. }
  5915. var computedWatcherOptions = { lazy: true };
  5916. function initComputed (vm, computed) {
  5917. // $flow-disable-line
  5918. var watchers = vm._computedWatchers = Object.create(null);
  5919. // computed properties are just getters during SSR
  5920. var isSSR = isServerRendering();
  5921. for (var key in computed) {
  5922. var userDef = computed[key];
  5923. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  5924. if ( true && getter == null) {
  5925. warn(
  5926. ("Getter is missing for computed property \"" + key + "\"."),
  5927. vm
  5928. );
  5929. }
  5930. if (!isSSR) {
  5931. // create internal watcher for the computed property.
  5932. watchers[key] = new Watcher(
  5933. vm,
  5934. getter || noop,
  5935. noop,
  5936. computedWatcherOptions
  5937. );
  5938. }
  5939. // component-defined computed properties are already defined on the
  5940. // component prototype. We only need to define computed properties defined
  5941. // at instantiation here.
  5942. if (!(key in vm)) {
  5943. defineComputed(vm, key, userDef);
  5944. } else if (true) {
  5945. if (key in vm.$data) {
  5946. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  5947. } else if (vm.$options.props && key in vm.$options.props) {
  5948. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  5949. }
  5950. }
  5951. }
  5952. }
  5953. function defineComputed (
  5954. target,
  5955. key,
  5956. userDef
  5957. ) {
  5958. var shouldCache = !isServerRendering();
  5959. if (typeof userDef === 'function') {
  5960. sharedPropertyDefinition.get = shouldCache
  5961. ? createComputedGetter(key)
  5962. : createGetterInvoker(userDef);
  5963. sharedPropertyDefinition.set = noop;
  5964. } else {
  5965. sharedPropertyDefinition.get = userDef.get
  5966. ? shouldCache && userDef.cache !== false
  5967. ? createComputedGetter(key)
  5968. : createGetterInvoker(userDef.get)
  5969. : noop;
  5970. sharedPropertyDefinition.set = userDef.set || noop;
  5971. }
  5972. if ( true &&
  5973. sharedPropertyDefinition.set === noop) {
  5974. sharedPropertyDefinition.set = function () {
  5975. warn(
  5976. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  5977. this
  5978. );
  5979. };
  5980. }
  5981. Object.defineProperty(target, key, sharedPropertyDefinition);
  5982. }
  5983. function createComputedGetter (key) {
  5984. return function computedGetter () {
  5985. var watcher = this._computedWatchers && this._computedWatchers[key];
  5986. if (watcher) {
  5987. if (watcher.dirty) {
  5988. watcher.evaluate();
  5989. }
  5990. if (Dep.SharedObject.target) {// fixed by xxxxxx
  5991. watcher.depend();
  5992. }
  5993. return watcher.value
  5994. }
  5995. }
  5996. }
  5997. function createGetterInvoker(fn) {
  5998. return function computedGetter () {
  5999. return fn.call(this, this)
  6000. }
  6001. }
  6002. function initMethods (vm, methods) {
  6003. var props = vm.$options.props;
  6004. for (var key in methods) {
  6005. if (true) {
  6006. if (typeof methods[key] !== 'function') {
  6007. warn(
  6008. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  6009. "Did you reference the function correctly?",
  6010. vm
  6011. );
  6012. }
  6013. if (props && hasOwn(props, key)) {
  6014. warn(
  6015. ("Method \"" + key + "\" has already been defined as a prop."),
  6016. vm
  6017. );
  6018. }
  6019. if ((key in vm) && isReserved(key)) {
  6020. warn(
  6021. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  6022. "Avoid defining component methods that start with _ or $."
  6023. );
  6024. }
  6025. }
  6026. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  6027. }
  6028. }
  6029. function initWatch (vm, watch) {
  6030. for (var key in watch) {
  6031. var handler = watch[key];
  6032. if (Array.isArray(handler)) {
  6033. for (var i = 0; i < handler.length; i++) {
  6034. createWatcher(vm, key, handler[i]);
  6035. }
  6036. } else {
  6037. createWatcher(vm, key, handler);
  6038. }
  6039. }
  6040. }
  6041. function createWatcher (
  6042. vm,
  6043. expOrFn,
  6044. handler,
  6045. options
  6046. ) {
  6047. if (isPlainObject(handler)) {
  6048. options = handler;
  6049. handler = handler.handler;
  6050. }
  6051. if (typeof handler === 'string') {
  6052. handler = vm[handler];
  6053. }
  6054. return vm.$watch(expOrFn, handler, options)
  6055. }
  6056. function stateMixin (Vue) {
  6057. // flow somehow has problems with directly declared definition object
  6058. // when using Object.defineProperty, so we have to procedurally build up
  6059. // the object here.
  6060. var dataDef = {};
  6061. dataDef.get = function () { return this._data };
  6062. var propsDef = {};
  6063. propsDef.get = function () { return this._props };
  6064. if (true) {
  6065. dataDef.set = function () {
  6066. warn(
  6067. 'Avoid replacing instance root $data. ' +
  6068. 'Use nested data properties instead.',
  6069. this
  6070. );
  6071. };
  6072. propsDef.set = function () {
  6073. warn("$props is readonly.", this);
  6074. };
  6075. }
  6076. Object.defineProperty(Vue.prototype, '$data', dataDef);
  6077. Object.defineProperty(Vue.prototype, '$props', propsDef);
  6078. Vue.prototype.$set = set;
  6079. Vue.prototype.$delete = del;
  6080. Vue.prototype.$watch = function (
  6081. expOrFn,
  6082. cb,
  6083. options
  6084. ) {
  6085. var vm = this;
  6086. if (isPlainObject(cb)) {
  6087. return createWatcher(vm, expOrFn, cb, options)
  6088. }
  6089. options = options || {};
  6090. options.user = true;
  6091. var watcher = new Watcher(vm, expOrFn, cb, options);
  6092. if (options.immediate) {
  6093. try {
  6094. cb.call(vm, watcher.value);
  6095. } catch (error) {
  6096. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  6097. }
  6098. }
  6099. return function unwatchFn () {
  6100. watcher.teardown();
  6101. }
  6102. };
  6103. }
  6104. /* */
  6105. var uid$3 = 0;
  6106. function initMixin (Vue) {
  6107. Vue.prototype._init = function (options) {
  6108. var vm = this;
  6109. // a uid
  6110. vm._uid = uid$3++;
  6111. var startTag, endTag;
  6112. /* istanbul ignore if */
  6113. if ( true && config.performance && mark) {
  6114. startTag = "vue-perf-start:" + (vm._uid);
  6115. endTag = "vue-perf-end:" + (vm._uid);
  6116. mark(startTag);
  6117. }
  6118. // a flag to avoid this being observed
  6119. vm._isVue = true;
  6120. // merge options
  6121. if (options && options._isComponent) {
  6122. // optimize internal component instantiation
  6123. // since dynamic options merging is pretty slow, and none of the
  6124. // internal component options needs special treatment.
  6125. initInternalComponent(vm, options);
  6126. } else {
  6127. vm.$options = mergeOptions(
  6128. resolveConstructorOptions(vm.constructor),
  6129. options || {},
  6130. vm
  6131. );
  6132. }
  6133. /* istanbul ignore else */
  6134. if (true) {
  6135. initProxy(vm);
  6136. } else {}
  6137. // expose real self
  6138. vm._self = vm;
  6139. initLifecycle(vm);
  6140. initEvents(vm);
  6141. initRender(vm);
  6142. callHook(vm, 'beforeCreate');
  6143. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  6144. initState(vm);
  6145. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  6146. !vm._$fallback && callHook(vm, 'created');
  6147. /* istanbul ignore if */
  6148. if ( true && config.performance && mark) {
  6149. vm._name = formatComponentName(vm, false);
  6150. mark(endTag);
  6151. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  6152. }
  6153. if (vm.$options.el) {
  6154. vm.$mount(vm.$options.el);
  6155. }
  6156. };
  6157. }
  6158. function initInternalComponent (vm, options) {
  6159. var opts = vm.$options = Object.create(vm.constructor.options);
  6160. // doing this because it's faster than dynamic enumeration.
  6161. var parentVnode = options._parentVnode;
  6162. opts.parent = options.parent;
  6163. opts._parentVnode = parentVnode;
  6164. var vnodeComponentOptions = parentVnode.componentOptions;
  6165. opts.propsData = vnodeComponentOptions.propsData;
  6166. opts._parentListeners = vnodeComponentOptions.listeners;
  6167. opts._renderChildren = vnodeComponentOptions.children;
  6168. opts._componentTag = vnodeComponentOptions.tag;
  6169. if (options.render) {
  6170. opts.render = options.render;
  6171. opts.staticRenderFns = options.staticRenderFns;
  6172. }
  6173. }
  6174. function resolveConstructorOptions (Ctor) {
  6175. var options = Ctor.options;
  6176. if (Ctor.super) {
  6177. var superOptions = resolveConstructorOptions(Ctor.super);
  6178. var cachedSuperOptions = Ctor.superOptions;
  6179. if (superOptions !== cachedSuperOptions) {
  6180. // super option changed,
  6181. // need to resolve new options.
  6182. Ctor.superOptions = superOptions;
  6183. // check if there are any late-modified/attached options (#4976)
  6184. var modifiedOptions = resolveModifiedOptions(Ctor);
  6185. // update base extend options
  6186. if (modifiedOptions) {
  6187. extend(Ctor.extendOptions, modifiedOptions);
  6188. }
  6189. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  6190. if (options.name) {
  6191. options.components[options.name] = Ctor;
  6192. }
  6193. }
  6194. }
  6195. return options
  6196. }
  6197. function resolveModifiedOptions (Ctor) {
  6198. var modified;
  6199. var latest = Ctor.options;
  6200. var sealed = Ctor.sealedOptions;
  6201. for (var key in latest) {
  6202. if (latest[key] !== sealed[key]) {
  6203. if (!modified) { modified = {}; }
  6204. modified[key] = latest[key];
  6205. }
  6206. }
  6207. return modified
  6208. }
  6209. function Vue (options) {
  6210. if ( true &&
  6211. !(this instanceof Vue)
  6212. ) {
  6213. warn('Vue is a constructor and should be called with the `new` keyword');
  6214. }
  6215. this._init(options);
  6216. }
  6217. initMixin(Vue);
  6218. stateMixin(Vue);
  6219. eventsMixin(Vue);
  6220. lifecycleMixin(Vue);
  6221. renderMixin(Vue);
  6222. /* */
  6223. function initUse (Vue) {
  6224. Vue.use = function (plugin) {
  6225. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  6226. if (installedPlugins.indexOf(plugin) > -1) {
  6227. return this
  6228. }
  6229. // additional parameters
  6230. var args = toArray(arguments, 1);
  6231. args.unshift(this);
  6232. if (typeof plugin.install === 'function') {
  6233. plugin.install.apply(plugin, args);
  6234. } else if (typeof plugin === 'function') {
  6235. plugin.apply(null, args);
  6236. }
  6237. installedPlugins.push(plugin);
  6238. return this
  6239. };
  6240. }
  6241. /* */
  6242. function initMixin$1 (Vue) {
  6243. Vue.mixin = function (mixin) {
  6244. this.options = mergeOptions(this.options, mixin);
  6245. return this
  6246. };
  6247. }
  6248. /* */
  6249. function initExtend (Vue) {
  6250. /**
  6251. * Each instance constructor, including Vue, has a unique
  6252. * cid. This enables us to create wrapped "child
  6253. * constructors" for prototypal inheritance and cache them.
  6254. */
  6255. Vue.cid = 0;
  6256. var cid = 1;
  6257. /**
  6258. * Class inheritance
  6259. */
  6260. Vue.extend = function (extendOptions) {
  6261. extendOptions = extendOptions || {};
  6262. var Super = this;
  6263. var SuperId = Super.cid;
  6264. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  6265. if (cachedCtors[SuperId]) {
  6266. return cachedCtors[SuperId]
  6267. }
  6268. var name = extendOptions.name || Super.options.name;
  6269. if ( true && name) {
  6270. validateComponentName(name);
  6271. }
  6272. var Sub = function VueComponent (options) {
  6273. this._init(options);
  6274. };
  6275. Sub.prototype = Object.create(Super.prototype);
  6276. Sub.prototype.constructor = Sub;
  6277. Sub.cid = cid++;
  6278. Sub.options = mergeOptions(
  6279. Super.options,
  6280. extendOptions
  6281. );
  6282. Sub['super'] = Super;
  6283. // For props and computed properties, we define the proxy getters on
  6284. // the Vue instances at extension time, on the extended prototype. This
  6285. // avoids Object.defineProperty calls for each instance created.
  6286. if (Sub.options.props) {
  6287. initProps$1(Sub);
  6288. }
  6289. if (Sub.options.computed) {
  6290. initComputed$1(Sub);
  6291. }
  6292. // allow further extension/mixin/plugin usage
  6293. Sub.extend = Super.extend;
  6294. Sub.mixin = Super.mixin;
  6295. Sub.use = Super.use;
  6296. // create asset registers, so extended classes
  6297. // can have their private assets too.
  6298. ASSET_TYPES.forEach(function (type) {
  6299. Sub[type] = Super[type];
  6300. });
  6301. // enable recursive self-lookup
  6302. if (name) {
  6303. Sub.options.components[name] = Sub;
  6304. }
  6305. // keep a reference to the super options at extension time.
  6306. // later at instantiation we can check if Super's options have
  6307. // been updated.
  6308. Sub.superOptions = Super.options;
  6309. Sub.extendOptions = extendOptions;
  6310. Sub.sealedOptions = extend({}, Sub.options);
  6311. // cache constructor
  6312. cachedCtors[SuperId] = Sub;
  6313. return Sub
  6314. };
  6315. }
  6316. function initProps$1 (Comp) {
  6317. var props = Comp.options.props;
  6318. for (var key in props) {
  6319. proxy(Comp.prototype, "_props", key);
  6320. }
  6321. }
  6322. function initComputed$1 (Comp) {
  6323. var computed = Comp.options.computed;
  6324. for (var key in computed) {
  6325. defineComputed(Comp.prototype, key, computed[key]);
  6326. }
  6327. }
  6328. /* */
  6329. function initAssetRegisters (Vue) {
  6330. /**
  6331. * Create asset registration methods.
  6332. */
  6333. ASSET_TYPES.forEach(function (type) {
  6334. Vue[type] = function (
  6335. id,
  6336. definition
  6337. ) {
  6338. if (!definition) {
  6339. return this.options[type + 's'][id]
  6340. } else {
  6341. /* istanbul ignore if */
  6342. if ( true && type === 'component') {
  6343. validateComponentName(id);
  6344. }
  6345. if (type === 'component' && isPlainObject(definition)) {
  6346. definition.name = definition.name || id;
  6347. definition = this.options._base.extend(definition);
  6348. }
  6349. if (type === 'directive' && typeof definition === 'function') {
  6350. definition = { bind: definition, update: definition };
  6351. }
  6352. this.options[type + 's'][id] = definition;
  6353. return definition
  6354. }
  6355. };
  6356. });
  6357. }
  6358. /* */
  6359. function getComponentName (opts) {
  6360. return opts && (opts.Ctor.options.name || opts.tag)
  6361. }
  6362. function matches (pattern, name) {
  6363. if (Array.isArray(pattern)) {
  6364. return pattern.indexOf(name) > -1
  6365. } else if (typeof pattern === 'string') {
  6366. return pattern.split(',').indexOf(name) > -1
  6367. } else if (isRegExp(pattern)) {
  6368. return pattern.test(name)
  6369. }
  6370. /* istanbul ignore next */
  6371. return false
  6372. }
  6373. function pruneCache (keepAliveInstance, filter) {
  6374. var cache = keepAliveInstance.cache;
  6375. var keys = keepAliveInstance.keys;
  6376. var _vnode = keepAliveInstance._vnode;
  6377. for (var key in cache) {
  6378. var cachedNode = cache[key];
  6379. if (cachedNode) {
  6380. var name = getComponentName(cachedNode.componentOptions);
  6381. if (name && !filter(name)) {
  6382. pruneCacheEntry(cache, key, keys, _vnode);
  6383. }
  6384. }
  6385. }
  6386. }
  6387. function pruneCacheEntry (
  6388. cache,
  6389. key,
  6390. keys,
  6391. current
  6392. ) {
  6393. var cached$$1 = cache[key];
  6394. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  6395. cached$$1.componentInstance.$destroy();
  6396. }
  6397. cache[key] = null;
  6398. remove(keys, key);
  6399. }
  6400. var patternTypes = [String, RegExp, Array];
  6401. var KeepAlive = {
  6402. name: 'keep-alive',
  6403. abstract: true,
  6404. props: {
  6405. include: patternTypes,
  6406. exclude: patternTypes,
  6407. max: [String, Number]
  6408. },
  6409. created: function created () {
  6410. this.cache = Object.create(null);
  6411. this.keys = [];
  6412. },
  6413. destroyed: function destroyed () {
  6414. for (var key in this.cache) {
  6415. pruneCacheEntry(this.cache, key, this.keys);
  6416. }
  6417. },
  6418. mounted: function mounted () {
  6419. var this$1 = this;
  6420. this.$watch('include', function (val) {
  6421. pruneCache(this$1, function (name) { return matches(val, name); });
  6422. });
  6423. this.$watch('exclude', function (val) {
  6424. pruneCache(this$1, function (name) { return !matches(val, name); });
  6425. });
  6426. },
  6427. render: function render () {
  6428. var slot = this.$slots.default;
  6429. var vnode = getFirstComponentChild(slot);
  6430. var componentOptions = vnode && vnode.componentOptions;
  6431. if (componentOptions) {
  6432. // check pattern
  6433. var name = getComponentName(componentOptions);
  6434. var ref = this;
  6435. var include = ref.include;
  6436. var exclude = ref.exclude;
  6437. if (
  6438. // not included
  6439. (include && (!name || !matches(include, name))) ||
  6440. // excluded
  6441. (exclude && name && matches(exclude, name))
  6442. ) {
  6443. return vnode
  6444. }
  6445. var ref$1 = this;
  6446. var cache = ref$1.cache;
  6447. var keys = ref$1.keys;
  6448. var key = vnode.key == null
  6449. // same constructor may get registered as different local components
  6450. // so cid alone is not enough (#3269)
  6451. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  6452. : vnode.key;
  6453. if (cache[key]) {
  6454. vnode.componentInstance = cache[key].componentInstance;
  6455. // make current key freshest
  6456. remove(keys, key);
  6457. keys.push(key);
  6458. } else {
  6459. cache[key] = vnode;
  6460. keys.push(key);
  6461. // prune oldest entry
  6462. if (this.max && keys.length > parseInt(this.max)) {
  6463. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  6464. }
  6465. }
  6466. vnode.data.keepAlive = true;
  6467. }
  6468. return vnode || (slot && slot[0])
  6469. }
  6470. };
  6471. var builtInComponents = {
  6472. KeepAlive: KeepAlive
  6473. };
  6474. /* */
  6475. function initGlobalAPI (Vue) {
  6476. // config
  6477. var configDef = {};
  6478. configDef.get = function () { return config; };
  6479. if (true) {
  6480. configDef.set = function () {
  6481. warn(
  6482. 'Do not replace the Vue.config object, set individual fields instead.'
  6483. );
  6484. };
  6485. }
  6486. Object.defineProperty(Vue, 'config', configDef);
  6487. // exposed util methods.
  6488. // NOTE: these are not considered part of the public API - avoid relying on
  6489. // them unless you are aware of the risk.
  6490. Vue.util = {
  6491. warn: warn,
  6492. extend: extend,
  6493. mergeOptions: mergeOptions,
  6494. defineReactive: defineReactive$$1
  6495. };
  6496. Vue.set = set;
  6497. Vue.delete = del;
  6498. Vue.nextTick = nextTick;
  6499. // 2.6 explicit observable API
  6500. Vue.observable = function (obj) {
  6501. observe(obj);
  6502. return obj
  6503. };
  6504. Vue.options = Object.create(null);
  6505. ASSET_TYPES.forEach(function (type) {
  6506. Vue.options[type + 's'] = Object.create(null);
  6507. });
  6508. // this is used to identify the "base" constructor to extend all plain-object
  6509. // components with in Weex's multi-instance scenarios.
  6510. Vue.options._base = Vue;
  6511. extend(Vue.options.components, builtInComponents);
  6512. initUse(Vue);
  6513. initMixin$1(Vue);
  6514. initExtend(Vue);
  6515. initAssetRegisters(Vue);
  6516. }
  6517. initGlobalAPI(Vue);
  6518. Object.defineProperty(Vue.prototype, '$isServer', {
  6519. get: isServerRendering
  6520. });
  6521. Object.defineProperty(Vue.prototype, '$ssrContext', {
  6522. get: function get () {
  6523. /* istanbul ignore next */
  6524. return this.$vnode && this.$vnode.ssrContext
  6525. }
  6526. });
  6527. // expose FunctionalRenderContext for ssr runtime helper installation
  6528. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  6529. value: FunctionalRenderContext
  6530. });
  6531. Vue.version = '2.6.11';
  6532. /**
  6533. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  6534. */
  6535. var ARRAYTYPE = '[object Array]';
  6536. var OBJECTTYPE = '[object Object]';
  6537. // const FUNCTIONTYPE = '[object Function]'
  6538. function diff(current, pre) {
  6539. var result = {};
  6540. syncKeys(current, pre);
  6541. _diff(current, pre, '', result);
  6542. return result
  6543. }
  6544. function syncKeys(current, pre) {
  6545. if (current === pre) { return }
  6546. var rootCurrentType = type(current);
  6547. var rootPreType = type(pre);
  6548. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  6549. if(Object.keys(current).length >= Object.keys(pre).length){
  6550. for (var key in pre) {
  6551. var currentValue = current[key];
  6552. if (currentValue === undefined) {
  6553. current[key] = null;
  6554. } else {
  6555. syncKeys(currentValue, pre[key]);
  6556. }
  6557. }
  6558. }
  6559. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  6560. if (current.length >= pre.length) {
  6561. pre.forEach(function (item, index) {
  6562. syncKeys(current[index], item);
  6563. });
  6564. }
  6565. }
  6566. }
  6567. function _diff(current, pre, path, result) {
  6568. if (current === pre) { return }
  6569. var rootCurrentType = type(current);
  6570. var rootPreType = type(pre);
  6571. if (rootCurrentType == OBJECTTYPE) {
  6572. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  6573. setResult(result, path, current);
  6574. } else {
  6575. var loop = function ( key ) {
  6576. var currentValue = current[key];
  6577. var preValue = pre[key];
  6578. var currentType = type(currentValue);
  6579. var preType = type(preValue);
  6580. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  6581. if (currentValue != pre[key]) {
  6582. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6583. }
  6584. } else if (currentType == ARRAYTYPE) {
  6585. if (preType != ARRAYTYPE) {
  6586. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6587. } else {
  6588. if (currentValue.length < preValue.length) {
  6589. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6590. } else {
  6591. currentValue.forEach(function (item, index) {
  6592. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  6593. });
  6594. }
  6595. }
  6596. } else if (currentType == OBJECTTYPE) {
  6597. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  6598. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  6599. } else {
  6600. for (var subKey in currentValue) {
  6601. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  6602. }
  6603. }
  6604. }
  6605. };
  6606. for (var key in current) loop( key );
  6607. }
  6608. } else if (rootCurrentType == ARRAYTYPE) {
  6609. if (rootPreType != ARRAYTYPE) {
  6610. setResult(result, path, current);
  6611. } else {
  6612. if (current.length < pre.length) {
  6613. setResult(result, path, current);
  6614. } else {
  6615. current.forEach(function (item, index) {
  6616. _diff(item, pre[index], path + '[' + index + ']', result);
  6617. });
  6618. }
  6619. }
  6620. } else {
  6621. setResult(result, path, current);
  6622. }
  6623. }
  6624. function setResult(result, k, v) {
  6625. // if (type(v) != FUNCTIONTYPE) {
  6626. result[k] = v;
  6627. // }
  6628. }
  6629. function type(obj) {
  6630. return Object.prototype.toString.call(obj)
  6631. }
  6632. /* */
  6633. function flushCallbacks$1(vm) {
  6634. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  6635. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"江夏红十字会","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  6636. var mpInstance = vm.$scope;
  6637. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  6638. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  6639. }
  6640. var copies = vm.__next_tick_callbacks.slice(0);
  6641. vm.__next_tick_callbacks.length = 0;
  6642. for (var i = 0; i < copies.length; i++) {
  6643. copies[i]();
  6644. }
  6645. }
  6646. }
  6647. function hasRenderWatcher(vm) {
  6648. return queue.find(function (watcher) { return vm._watcher === watcher; })
  6649. }
  6650. function nextTick$1(vm, cb) {
  6651. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  6652. //2.nextTick 之前存在 render watcher
  6653. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  6654. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"江夏红十字会","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  6655. var mpInstance = vm.$scope;
  6656. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  6657. ']:nextVueTick');
  6658. }
  6659. return nextTick(cb, vm)
  6660. }else{
  6661. if(Object({"NODE_ENV":"development","VUE_APP_NAME":"江夏红十字会","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  6662. var mpInstance$1 = vm.$scope;
  6663. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  6664. ']:nextMPTick');
  6665. }
  6666. }
  6667. var _resolve;
  6668. if (!vm.__next_tick_callbacks) {
  6669. vm.__next_tick_callbacks = [];
  6670. }
  6671. vm.__next_tick_callbacks.push(function () {
  6672. if (cb) {
  6673. try {
  6674. cb.call(vm);
  6675. } catch (e) {
  6676. handleError(e, vm, 'nextTick');
  6677. }
  6678. } else if (_resolve) {
  6679. _resolve(vm);
  6680. }
  6681. });
  6682. // $flow-disable-line
  6683. if (!cb && typeof Promise !== 'undefined') {
  6684. return new Promise(function (resolve) {
  6685. _resolve = resolve;
  6686. })
  6687. }
  6688. }
  6689. /* */
  6690. function cloneWithData(vm) {
  6691. // 确保当前 vm 所有数据被同步
  6692. var ret = Object.create(null);
  6693. var dataKeys = [].concat(
  6694. Object.keys(vm._data || {}),
  6695. Object.keys(vm._computedWatchers || {}));
  6696. dataKeys.reduce(function(ret, key) {
  6697. ret[key] = vm[key];
  6698. return ret
  6699. }, ret);
  6700. // vue-composition-api
  6701. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  6702. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  6703. if (rawBindings) {
  6704. Object.keys(rawBindings).forEach(function (key) {
  6705. ret[key] = vm[key];
  6706. });
  6707. }
  6708. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  6709. Object.assign(ret, vm.$mp.data || {});
  6710. if (
  6711. Array.isArray(vm.$options.behaviors) &&
  6712. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  6713. ) { //form-field
  6714. ret['name'] = vm.name;
  6715. ret['value'] = vm.value;
  6716. }
  6717. return JSON.parse(JSON.stringify(ret))
  6718. }
  6719. var patch = function(oldVnode, vnode) {
  6720. var this$1 = this;
  6721. if (vnode === null) { //destroy
  6722. return
  6723. }
  6724. if (this.mpType === 'page' || this.mpType === 'component') {
  6725. var mpInstance = this.$scope;
  6726. var data = Object.create(null);
  6727. try {
  6728. data = cloneWithData(this);
  6729. } catch (err) {
  6730. console.error(err);
  6731. }
  6732. data.__webviewId__ = mpInstance.data.__webviewId__;
  6733. var mpData = Object.create(null);
  6734. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  6735. mpData[key] = mpInstance.data[key];
  6736. });
  6737. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  6738. if (Object.keys(diffData).length) {
  6739. if (Object({"NODE_ENV":"development","VUE_APP_NAME":"江夏红十字会","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  6740. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  6741. ']差量更新',
  6742. JSON.stringify(diffData));
  6743. }
  6744. this.__next_tick_pending = true;
  6745. mpInstance.setData(diffData, function () {
  6746. this$1.__next_tick_pending = false;
  6747. flushCallbacks$1(this$1);
  6748. });
  6749. } else {
  6750. flushCallbacks$1(this);
  6751. }
  6752. }
  6753. };
  6754. /* */
  6755. function createEmptyRender() {
  6756. }
  6757. function mountComponent$1(
  6758. vm,
  6759. el,
  6760. hydrating
  6761. ) {
  6762. if (!vm.mpType) {//main.js 中的 new Vue
  6763. return vm
  6764. }
  6765. if (vm.mpType === 'app') {
  6766. vm.$options.render = createEmptyRender;
  6767. }
  6768. if (!vm.$options.render) {
  6769. vm.$options.render = createEmptyRender;
  6770. if (true) {
  6771. /* istanbul ignore if */
  6772. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  6773. vm.$options.el || el) {
  6774. warn(
  6775. 'You are using the runtime-only build of Vue where the template ' +
  6776. 'compiler is not available. Either pre-compile the templates into ' +
  6777. 'render functions, or use the compiler-included build.',
  6778. vm
  6779. );
  6780. } else {
  6781. warn(
  6782. 'Failed to mount component: template or render function not defined.',
  6783. vm
  6784. );
  6785. }
  6786. }
  6787. }
  6788. !vm._$fallback && callHook(vm, 'beforeMount');
  6789. var updateComponent = function () {
  6790. vm._update(vm._render(), hydrating);
  6791. };
  6792. // we set this to vm._watcher inside the watcher's constructor
  6793. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  6794. // component's mounted hook), which relies on vm._watcher being already defined
  6795. new Watcher(vm, updateComponent, noop, {
  6796. before: function before() {
  6797. if (vm._isMounted && !vm._isDestroyed) {
  6798. callHook(vm, 'beforeUpdate');
  6799. }
  6800. }
  6801. }, true /* isRenderWatcher */);
  6802. hydrating = false;
  6803. return vm
  6804. }
  6805. /* */
  6806. function renderClass (
  6807. staticClass,
  6808. dynamicClass
  6809. ) {
  6810. if (isDef(staticClass) || isDef(dynamicClass)) {
  6811. return concat(staticClass, stringifyClass(dynamicClass))
  6812. }
  6813. /* istanbul ignore next */
  6814. return ''
  6815. }
  6816. function concat (a, b) {
  6817. return a ? b ? (a + ' ' + b) : a : (b || '')
  6818. }
  6819. function stringifyClass (value) {
  6820. if (Array.isArray(value)) {
  6821. return stringifyArray(value)
  6822. }
  6823. if (isObject(value)) {
  6824. return stringifyObject(value)
  6825. }
  6826. if (typeof value === 'string') {
  6827. return value
  6828. }
  6829. /* istanbul ignore next */
  6830. return ''
  6831. }
  6832. function stringifyArray (value) {
  6833. var res = '';
  6834. var stringified;
  6835. for (var i = 0, l = value.length; i < l; i++) {
  6836. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  6837. if (res) { res += ' '; }
  6838. res += stringified;
  6839. }
  6840. }
  6841. return res
  6842. }
  6843. function stringifyObject (value) {
  6844. var res = '';
  6845. for (var key in value) {
  6846. if (value[key]) {
  6847. if (res) { res += ' '; }
  6848. res += key;
  6849. }
  6850. }
  6851. return res
  6852. }
  6853. /* */
  6854. var parseStyleText = cached(function (cssText) {
  6855. var res = {};
  6856. var listDelimiter = /;(?![^(]*\))/g;
  6857. var propertyDelimiter = /:(.+)/;
  6858. cssText.split(listDelimiter).forEach(function (item) {
  6859. if (item) {
  6860. var tmp = item.split(propertyDelimiter);
  6861. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  6862. }
  6863. });
  6864. return res
  6865. });
  6866. // normalize possible array / string values into Object
  6867. function normalizeStyleBinding (bindingStyle) {
  6868. if (Array.isArray(bindingStyle)) {
  6869. return toObject(bindingStyle)
  6870. }
  6871. if (typeof bindingStyle === 'string') {
  6872. return parseStyleText(bindingStyle)
  6873. }
  6874. return bindingStyle
  6875. }
  6876. /* */
  6877. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  6878. function getTarget(obj, path) {
  6879. var parts = path.split('.');
  6880. var key = parts[0];
  6881. if (key.indexOf('__$n') === 0) { //number index
  6882. key = parseInt(key.replace('__$n', ''));
  6883. }
  6884. if (parts.length === 1) {
  6885. return obj[key]
  6886. }
  6887. return getTarget(obj[key], parts.slice(1).join('.'))
  6888. }
  6889. function internalMixin(Vue) {
  6890. Vue.config.errorHandler = function(err, vm, info) {
  6891. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  6892. console.error(err);
  6893. /* eslint-disable no-undef */
  6894. var app = getApp();
  6895. if (app && app.onError) {
  6896. app.onError(err);
  6897. }
  6898. };
  6899. var oldEmit = Vue.prototype.$emit;
  6900. Vue.prototype.$emit = function(event) {
  6901. if (this.$scope && event) {
  6902. this.$scope['triggerEvent'](event, {
  6903. __args__: toArray(arguments, 1)
  6904. });
  6905. }
  6906. return oldEmit.apply(this, arguments)
  6907. };
  6908. Vue.prototype.$nextTick = function(fn) {
  6909. return nextTick$1(this, fn)
  6910. };
  6911. MP_METHODS.forEach(function (method) {
  6912. Vue.prototype[method] = function(args) {
  6913. if (this.$scope && this.$scope[method]) {
  6914. return this.$scope[method](args)
  6915. }
  6916. // mp-alipay
  6917. if (typeof my === 'undefined') {
  6918. return
  6919. }
  6920. if (method === 'createSelectorQuery') {
  6921. /* eslint-disable no-undef */
  6922. return my.createSelectorQuery(args)
  6923. } else if (method === 'createIntersectionObserver') {
  6924. /* eslint-disable no-undef */
  6925. return my.createIntersectionObserver(args)
  6926. }
  6927. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  6928. };
  6929. });
  6930. Vue.prototype.__init_provide = initProvide;
  6931. Vue.prototype.__init_injections = initInjections;
  6932. Vue.prototype.__call_hook = function(hook, args) {
  6933. var vm = this;
  6934. // #7573 disable dep collection when invoking lifecycle hooks
  6935. pushTarget();
  6936. var handlers = vm.$options[hook];
  6937. var info = hook + " hook";
  6938. var ret;
  6939. if (handlers) {
  6940. for (var i = 0, j = handlers.length; i < j; i++) {
  6941. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  6942. }
  6943. }
  6944. if (vm._hasHookEvent) {
  6945. vm.$emit('hook:' + hook, args);
  6946. }
  6947. popTarget();
  6948. return ret
  6949. };
  6950. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  6951. if (Array.isArray(modifiers)) {
  6952. if (modifiers.indexOf('trim') !== -1) {
  6953. value = value.trim();
  6954. }
  6955. if (modifiers.indexOf('number') !== -1) {
  6956. value = this._n(value);
  6957. }
  6958. }
  6959. if (!target) {
  6960. target = this;
  6961. }
  6962. target[key] = value;
  6963. };
  6964. Vue.prototype.__set_sync = function(target, key, value) {
  6965. if (!target) {
  6966. target = this;
  6967. }
  6968. target[key] = value;
  6969. };
  6970. Vue.prototype.__get_orig = function(item) {
  6971. if (isPlainObject(item)) {
  6972. return item['$orig'] || item
  6973. }
  6974. return item
  6975. };
  6976. Vue.prototype.__get_value = function(dataPath, target) {
  6977. return getTarget(target || this, dataPath)
  6978. };
  6979. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  6980. return renderClass(staticClass, dynamicClass)
  6981. };
  6982. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  6983. if (!dynamicStyle && !staticStyle) {
  6984. return ''
  6985. }
  6986. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  6987. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  6988. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  6989. };
  6990. Vue.prototype.__map = function(val, iteratee) {
  6991. //TODO 暂不考虑 string
  6992. var ret, i, l, keys, key;
  6993. if (Array.isArray(val)) {
  6994. ret = new Array(val.length);
  6995. for (i = 0, l = val.length; i < l; i++) {
  6996. ret[i] = iteratee(val[i], i);
  6997. }
  6998. return ret
  6999. } else if (isObject(val)) {
  7000. keys = Object.keys(val);
  7001. ret = Object.create(null);
  7002. for (i = 0, l = keys.length; i < l; i++) {
  7003. key = keys[i];
  7004. ret[key] = iteratee(val[key], key, i);
  7005. }
  7006. return ret
  7007. } else if (typeof val === 'number') {
  7008. ret = new Array(val);
  7009. for (i = 0, l = val; i < l; i++) {
  7010. // 第一个参数暂时仍和小程序一致
  7011. ret[i] = iteratee(i, i);
  7012. }
  7013. return ret
  7014. }
  7015. return []
  7016. };
  7017. }
  7018. /* */
  7019. var LIFECYCLE_HOOKS$1 = [
  7020. //App
  7021. 'onLaunch',
  7022. 'onShow',
  7023. 'onHide',
  7024. 'onUniNViewMessage',
  7025. 'onPageNotFound',
  7026. 'onThemeChange',
  7027. 'onError',
  7028. 'onUnhandledRejection',
  7029. //Page
  7030. 'onInit',
  7031. 'onLoad',
  7032. // 'onShow',
  7033. 'onReady',
  7034. // 'onHide',
  7035. 'onUnload',
  7036. 'onPullDownRefresh',
  7037. 'onReachBottom',
  7038. 'onTabItemTap',
  7039. 'onAddToFavorites',
  7040. 'onShareTimeline',
  7041. 'onShareAppMessage',
  7042. 'onResize',
  7043. 'onPageScroll',
  7044. 'onNavigationBarButtonTap',
  7045. 'onBackPress',
  7046. 'onNavigationBarSearchInputChanged',
  7047. 'onNavigationBarSearchInputConfirmed',
  7048. 'onNavigationBarSearchInputClicked',
  7049. //Component
  7050. // 'onReady', // 兼容旧版本,应该移除该事件
  7051. 'onPageShow',
  7052. 'onPageHide',
  7053. 'onPageResize'
  7054. ];
  7055. function lifecycleMixin$1(Vue) {
  7056. //fixed vue-class-component
  7057. var oldExtend = Vue.extend;
  7058. Vue.extend = function(extendOptions) {
  7059. extendOptions = extendOptions || {};
  7060. var methods = extendOptions.methods;
  7061. if (methods) {
  7062. Object.keys(methods).forEach(function (methodName) {
  7063. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  7064. extendOptions[methodName] = methods[methodName];
  7065. delete methods[methodName];
  7066. }
  7067. });
  7068. }
  7069. return oldExtend.call(this, extendOptions)
  7070. };
  7071. var strategies = Vue.config.optionMergeStrategies;
  7072. var mergeHook = strategies.created;
  7073. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  7074. strategies[hook] = mergeHook;
  7075. });
  7076. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  7077. }
  7078. /* */
  7079. // install platform patch function
  7080. Vue.prototype.__patch__ = patch;
  7081. // public mount method
  7082. Vue.prototype.$mount = function(
  7083. el ,
  7084. hydrating
  7085. ) {
  7086. return mountComponent$1(this, el, hydrating)
  7087. };
  7088. lifecycleMixin$1(Vue);
  7089. internalMixin(Vue);
  7090. /* */
  7091. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  7092. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  7093. /***/ }),
  7094. /***/ 20:
  7095. /*!***********************************************************!*\
  7096. !*** /Users/wanglili/Documents/liuniu/jxred/api/index.js ***!
  7097. \***********************************************************/
  7098. /*! no static exports found */
  7099. /***/ (function(module, exports, __webpack_require__) {
  7100. "use strict";
  7101. Object.defineProperty(exports, "__esModule", { value: true });exports.loadIndexs = loadIndexs;exports.bannerlist = bannerlist;exports.upload = upload;exports.groom4 = groom4;exports.groom1 = groom1;exports.groom3 = groom3;exports.myCreateCircle = myCreateCircle;exports.getList = getList;exports.getNumber = getNumber;exports.joinSec = joinSec;exports.joinSecc = joinSecc;exports.getdis = getdis;exports.tocall = tocall;exports.training = training;exports.getseek = getseek;exports.getcomAddress = getcomAddress;exports.getrescue = getrescue;exports.change_rescue = change_rescue;exports.getListAED = getListAED;exports.getDistance = getDistance;exports.deleteList = deleteList;var _request = _interopRequireWildcard(__webpack_require__(/*! @/utils/request */ 21));function _getRequireWildcardCache() {if (typeof WeakMap !== "function") return null;var cache = new WeakMap();_getRequireWildcardCache = function _getRequireWildcardCache() {return cache;};return cache;}function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache();if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}
  7102. // 获取轮播图
  7103. function loadIndexs(data) {
  7104. return (0, _request.default)({
  7105. url: '/api/index',
  7106. method: 'get',
  7107. data: data });
  7108. }
  7109. // 获取文章列表
  7110. function bannerlist(data) {
  7111. return (0, _request.default)({
  7112. url: '/api/article/list/1',
  7113. method: 'get',
  7114. data: data });
  7115. }
  7116. //上传图片
  7117. function upload(data) {
  7118. return (0, _request.upFilse)({
  7119. url: '/api/upload/image',
  7120. method: 'post',
  7121. data: data });
  7122. }
  7123. // 促销商品
  7124. function groom4(data) {
  7125. return (0, _request.default)({
  7126. url: '/api/groom/list/4',
  7127. method: 'get',
  7128. data: data });
  7129. }
  7130. // 精品推荐
  7131. function groom1(data) {
  7132. return (0, _request.default)({
  7133. url: '/api/groom/list/1',
  7134. method: 'get',
  7135. data: data });
  7136. }
  7137. // 新品首发
  7138. function groom3(data) {
  7139. return (0, _request.default)({
  7140. url: '/api/groom/list/3',
  7141. method: 'get',
  7142. data: data });
  7143. }
  7144. // 获取我创建的圈子
  7145. function myCreateCircle(data) {
  7146. return (0, _request.default)({
  7147. url: '/api/circle/mycreate',
  7148. method: 'post',
  7149. data: data });
  7150. }
  7151. // 造血干细胞捐献
  7152. function getList(data) {
  7153. return (0, _request.default)({
  7154. url: '/api/sign_cell',
  7155. method: 'post',
  7156. data: data });
  7157. }
  7158. // 救护者页面获取参与人数
  7159. function getNumber(data) {
  7160. return (0, _request.default)({
  7161. url: '/api/get_rescuer',
  7162. method: 'get',
  7163. data: data });
  7164. }
  7165. // joinSec
  7166. function joinSec(data) {
  7167. return (0, _request.default)({
  7168. url: '/api/add_volunteers',
  7169. method: 'post',
  7170. data: data });
  7171. }
  7172. // joinSecc 器官捐赠
  7173. function joinSecc(data) {
  7174. return (0, _request.default)({
  7175. url: '/api/add_donation',
  7176. method: 'post',
  7177. data: data });
  7178. }
  7179. // 获取定位
  7180. function getdis(data) {
  7181. return (0, _request.default)({
  7182. url: '/api/getdis',
  7183. method: 'get',
  7184. data: data });
  7185. }
  7186. // 立即救援
  7187. function tocall(data) {
  7188. return (0, _request.default)({
  7189. url: '/api/do_getdis',
  7190. method: 'get',
  7191. data: data });
  7192. }
  7193. // 救护培训报名
  7194. function training(data) {
  7195. return (0, _request.default)({
  7196. url: '/api/training',
  7197. method: 'get',
  7198. data: data });
  7199. }
  7200. // 求助记录 getsee
  7201. function getseek(data) {
  7202. return (0, _request.default)({
  7203. url: '/api/seek',
  7204. method: 'get',
  7205. data: data });
  7206. }
  7207. // getcomAddress 获取常用地址
  7208. function getcomAddress(data) {
  7209. return (0, _request.default)({
  7210. url: '/api/get_commonly',
  7211. method: 'get',
  7212. data: data });
  7213. }
  7214. // 救援记录 rescue
  7215. function getrescue(data) {
  7216. return (0, _request.default)({
  7217. url: '/api/rescueee',
  7218. method: 'get',
  7219. data: data });
  7220. }
  7221. function change_rescue(data) {
  7222. return (0, _request.default)({
  7223. url: '/api/change_rescue',
  7224. method: 'get',
  7225. data: data });
  7226. }
  7227. // 获取ADE经纬度 getListAED getDistance
  7228. function getListAED(data) {
  7229. return (0, _request.default)({
  7230. url: '/api/getAed',
  7231. method: 'get',
  7232. data: data });
  7233. }
  7234. function getDistance(data) {
  7235. return (0, _request.default)({
  7236. url: '/api/aeddiss',
  7237. method: 'get',
  7238. data: data });
  7239. }
  7240. // deleteList 删除救援地址
  7241. function deleteList(data) {
  7242. return (0, _request.default)({
  7243. url: '/api/del_resc',
  7244. method: 'get',
  7245. data: data });
  7246. }
  7247. /***/ }),
  7248. /***/ 21:
  7249. /*!***************************************************************!*\
  7250. !*** /Users/wanglili/Documents/liuniu/jxred/utils/request.js ***!
  7251. \***************************************************************/
  7252. /*! no static exports found */
  7253. /***/ (function(module, exports, __webpack_require__) {
  7254. "use strict";
  7255. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = exports.upFilse = void 0;var _newRequest = _interopRequireDefault(__webpack_require__(/*! ./newRequest.js */ 22));
  7256. var _store = _interopRequireDefault(__webpack_require__(/*! ../store */ 5));
  7257. var _loginUtils = __webpack_require__(/*! @/utils/loginUtils.js */ 26);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  7258. // 请求完成后拦截
  7259. _newRequest.default.interceptors.response(
  7260. function (response) {
  7261. try {
  7262. var res = response.data;
  7263. // 解析字符串为数字
  7264. if (res.status !== 200) {
  7265. if (res.status == 410000) {
  7266. // 存储当前地址
  7267. (0, _loginUtils.saveUrl)();
  7268. // 调用退出登录方法清空用户信息
  7269. _store.default.commit('user/logout');
  7270. // 判断是否开启强制登录
  7271. // 跳转页面
  7272. (0, _loginUtils.interceptor)();
  7273. uni.showModal({
  7274. title: "您未登录!是否马上登录?",
  7275. success: function success(e) {
  7276. if (e.confirm) {
  7277. // 保存当前页面地址
  7278. }
  7279. } });
  7280. } else {
  7281. if (res.msg != '系统出现异常') {
  7282. uni.showToast({
  7283. title: res.msg,
  7284. duration: 1500,
  7285. mask: false,
  7286. icon: 'none' });
  7287. }
  7288. }
  7289. console.log(res);
  7290. //return Promise.reject(new Error(res.msg || 'Error'))
  7291. } else {
  7292. return res;
  7293. }
  7294. } catch (e) {
  7295. console.log(e);
  7296. }
  7297. },
  7298. function (error) {
  7299. uni.showToast({
  7300. title: "加载错误请重试",
  7301. duration: 1500,
  7302. mask: false,
  7303. icon: 'none' });
  7304. return Promise.reject(error);
  7305. });
  7306. // 请求前拦截器
  7307. _newRequest.default.interceptors.request(
  7308. function (config) {
  7309. // config.data.token = getToken();
  7310. // console.log(config);
  7311. var token = uni.getStorageSync('token');
  7312. // console.log(token);
  7313. if (!config.header) {
  7314. config.header = {
  7315. "Authori-zation": 'Bearer ' + token };
  7316. } else {
  7317. // 添加key请求头
  7318. config.header["Authori-zation"] = 'Bearer ' + token;
  7319. }
  7320. return config;
  7321. },
  7322. function (error) {
  7323. // 错误处理
  7324. console.log(error);
  7325. return Promise.reject(error);
  7326. });
  7327. var upFilse = _newRequest.default.upFilse;exports.upFilse = upFilse;var _default =
  7328. _newRequest.default.open;exports.default = _default;
  7329. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  7330. /***/ }),
  7331. /***/ 22:
  7332. /*!******************************************************************!*\
  7333. !*** /Users/wanglili/Documents/liuniu/jxred/utils/newRequest.js ***!
  7334. \******************************************************************/
  7335. /*! no static exports found */
  7336. /***/ (function(module, exports, __webpack_require__) {
  7337. "use strict";
  7338. /* 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 */ 23));var _store = _interopRequireDefault(__webpack_require__(/*! ../store */ 5));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);});};}
  7339. var service = {
  7340. // baseURL: store.state.baseURL, // 请求头
  7341. baseURL: '', // 请求头
  7342. header: {
  7343. 'Content-Type': "application/x-www-form-urlencoded" },
  7344. // 请求拦截器
  7345. interceptors: {
  7346. // 安装请求前拦截
  7347. request: function request(success, iserror) {
  7348. service.request.success = success;
  7349. service.request.error = iserror;
  7350. },
  7351. // 安装请求完成后拦截
  7352. response: function response(success, iserror) {
  7353. service.response.success = success;
  7354. service.response.error = iserror;
  7355. } },
  7356. // 请求前拦截
  7357. request: {
  7358. // 回调成功执行方法
  7359. success: function success(e) {
  7360. return e;
  7361. },
  7362. // 回调失败
  7363. error: function error(e) {
  7364. return e;
  7365. } },
  7366. // 请求完成后拦截
  7367. response: {
  7368. // 回调成功执行方法
  7369. success: function success(e) {
  7370. return e;
  7371. },
  7372. // 回调失败
  7373. error: function error(e) {
  7374. return e;
  7375. } },
  7376. // 开始请求
  7377. open: function () {var _open = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee(data) {return _regenerator.default.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
  7378. new Promise(function (resolve, reject) {
  7379. var requestData = ''; //保存处理完成后请求数据
  7380. //console.log(data);
  7381. // 请求前数据处理
  7382. requestData = service.request.success(data);
  7383. // 保存请求地址;
  7384. var url;
  7385. if (requestData.url.indexOf('http') > -1) {
  7386. url = requestData.url;
  7387. } else {
  7388. url = service.baseURL + requestData.url;
  7389. }
  7390. // 数据复制用于请求
  7391. uni.request({
  7392. url: url,
  7393. method: requestData.method || 'GET',
  7394. data: requestData.data,
  7395. header: data.header || service.header,
  7396. success: function success(res) {
  7397. if (res.statusCode == 200) {
  7398. try {
  7399. resolve(service.response.success(res));
  7400. } catch (e) {
  7401. service.response.error(e);
  7402. }
  7403. }
  7404. },
  7405. // 请求失败数据处理
  7406. fail: function fail(err) {
  7407. service.response.error(err);
  7408. } });
  7409. }));case 2:return _context.abrupt("return", _context.sent);case 3:case "end":return _context.stop();}}}, _callee);}));function open(_x) {return _open.apply(this, arguments);}return open;}(),
  7410. // 上传文件
  7411. upFilse: function () {var _upFilse = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee4(data) {return _regenerator.default.wrap(function _callee4$(_context4) {while (1) {switch (_context4.prev = _context4.next) {case 0:_context4.next = 2;return (
  7412. new Promise(function (resolve, reject) {
  7413. var requestData = ''; //保存处理完成后请求数据
  7414. try {
  7415. // 请求前数据处理
  7416. requestData = service.request.success(data);
  7417. } catch (e) {
  7418. // 请求报错拦截
  7419. service.request.error(e);
  7420. }
  7421. var config = {
  7422. // 上传图片的API
  7423. upload_img_url: service.baseURL + requestData.url };
  7424. var Uploader = {
  7425. // 选择图片
  7426. choose: function choose(num) {
  7427. return new Promise(function (resolve, reject) {
  7428. uni.chooseImage({
  7429. count: num,
  7430. sourceType: ['album'],
  7431. sizeType: ['compressed'],
  7432. success: function success(res) {
  7433. // console.log(res);
  7434. // 缓存文件路径
  7435. resolve(res.tempFilePaths);
  7436. },
  7437. fail: function fail(err) {
  7438. console.log(err);
  7439. reject(err);
  7440. } });
  7441. });
  7442. },
  7443. // 上传图片
  7444. upload_one: function upload_one(path) {
  7445. return new Promise(function (resolve, reject) {
  7446. uni.showLoading({
  7447. title: '上传中' });
  7448. uni.uploadFile({
  7449. url: config.upload_img_url, //仅为示例,非真实的接口地址
  7450. filePath: path,
  7451. name: 'file',
  7452. header: {
  7453. "Authori-zation": 'Bearer ' + uni.getStorageSync('token') },
  7454. success: function success(uploadFileRes) {
  7455. if ("string" === typeof uploadFileRes.data) {
  7456. resolve(JSON.parse(uploadFileRes.data).data);
  7457. } else {
  7458. resolve(uploadFileRes.data.data);
  7459. }
  7460. },
  7461. complete: function complete() {
  7462. uni.hideLoading();
  7463. } });
  7464. });
  7465. },
  7466. // 上传多个图片
  7467. upload: function upload(path_arr) {var _this = this;
  7468. var num = path_arr.length;
  7469. return new Promise( /*#__PURE__*/function () {var _ref = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee2(resolve, reject) {var img_urls, i, img_url;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:
  7470. img_urls = [];
  7471. i = 0;case 2:if (!(i < num)) {_context2.next = 10;break;}_context2.next = 5;return (
  7472. _this.upload_one(path_arr[i]));case 5:img_url = _context2.sent;
  7473. img_urls.push(img_url);case 7:i++;_context2.next = 2;break;case 10:
  7474. ;
  7475. resolve(img_urls);case 12:case "end":return _context2.stop();}}}, _callee2);}));return function (_x3, _x4) {return _ref.apply(this, arguments);};}());
  7476. },
  7477. // 触发上传图片事件
  7478. choose_and_upload: function choose_and_upload(num) {var _this2 = this;
  7479. return new Promise( /*#__PURE__*/function () {var _ref2 = _asyncToGenerator( /*#__PURE__*/_regenerator.default.mark(function _callee3(resolve, reject) {var path_arr;return _regenerator.default.wrap(function _callee3$(_context3) {while (1) {switch (_context3.prev = _context3.next) {case 0:_context3.next = 2;return (
  7480. _this2.choose(num));case 2:path_arr = _context3.sent;_context3.next = 5;return (
  7481. _this2.upload(path_arr).then(function (e) {
  7482. resolve(e);
  7483. }).catch(function (e) {
  7484. reject(e);
  7485. }));case 5:case "end":return _context3.stop();}}}, _callee3);}));return function (_x5, _x6) {return _ref2.apply(this, arguments);};}());
  7486. } };
  7487. Uploader.choose_and_upload(1).then(function (e) {
  7488. resolve(e);
  7489. }).catch(function (e) {
  7490. console.log(e);
  7491. });
  7492. }));case 2:return _context4.abrupt("return", _context4.sent);case 3:case "end":return _context4.stop();}}}, _callee4);}));function upFilse(_x2) {return _upFilse.apply(this, arguments);}return upFilse;}() };var _default =
  7493. service;exports.default = _default;
  7494. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  7495. /***/ }),
  7496. /***/ 23:
  7497. /*!**********************************************************!*\
  7498. !*** ./node_modules/@babel/runtime/regenerator/index.js ***!
  7499. \**********************************************************/
  7500. /*! no static exports found */
  7501. /***/ (function(module, exports, __webpack_require__) {
  7502. module.exports = __webpack_require__(/*! regenerator-runtime */ 24);
  7503. /***/ }),
  7504. /***/ 24:
  7505. /*!************************************************************!*\
  7506. !*** ./node_modules/regenerator-runtime/runtime-module.js ***!
  7507. \************************************************************/
  7508. /*! no static exports found */
  7509. /***/ (function(module, exports, __webpack_require__) {
  7510. /**
  7511. * Copyright (c) 2014-present, Facebook, Inc.
  7512. *
  7513. * This source code is licensed under the MIT license found in the
  7514. * LICENSE file in the root directory of this source tree.
  7515. */
  7516. // This method of obtaining a reference to the global object needs to be
  7517. // kept identical to the way it is obtained in runtime.js
  7518. var g = (function() {
  7519. return this || (typeof self === "object" && self);
  7520. })() || Function("return this")();
  7521. // Use `getOwnPropertyNames` because not all browsers support calling
  7522. // `hasOwnProperty` on the global `self` object in a worker. See #183.
  7523. var hadRuntime = g.regeneratorRuntime &&
  7524. Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
  7525. // Save the old regeneratorRuntime in case it needs to be restored later.
  7526. var oldRuntime = hadRuntime && g.regeneratorRuntime;
  7527. // Force reevalutation of runtime.js.
  7528. g.regeneratorRuntime = undefined;
  7529. module.exports = __webpack_require__(/*! ./runtime */ 25);
  7530. if (hadRuntime) {
  7531. // Restore the original runtime.
  7532. g.regeneratorRuntime = oldRuntime;
  7533. } else {
  7534. // Remove the global property added by runtime.js.
  7535. try {
  7536. delete g.regeneratorRuntime;
  7537. } catch(e) {
  7538. g.regeneratorRuntime = undefined;
  7539. }
  7540. }
  7541. /***/ }),
  7542. /***/ 25:
  7543. /*!*****************************************************!*\
  7544. !*** ./node_modules/regenerator-runtime/runtime.js ***!
  7545. \*****************************************************/
  7546. /*! no static exports found */
  7547. /***/ (function(module, exports) {
  7548. /**
  7549. * Copyright (c) 2014-present, Facebook, Inc.
  7550. *
  7551. * This source code is licensed under the MIT license found in the
  7552. * LICENSE file in the root directory of this source tree.
  7553. */
  7554. !(function(global) {
  7555. "use strict";
  7556. var Op = Object.prototype;
  7557. var hasOwn = Op.hasOwnProperty;
  7558. var undefined; // More compressible than void 0.
  7559. var $Symbol = typeof Symbol === "function" ? Symbol : {};
  7560. var iteratorSymbol = $Symbol.iterator || "@@iterator";
  7561. var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
  7562. var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  7563. var inModule = typeof module === "object";
  7564. var runtime = global.regeneratorRuntime;
  7565. if (runtime) {
  7566. if (inModule) {
  7567. // If regeneratorRuntime is defined globally and we're in a module,
  7568. // make the exports object identical to regeneratorRuntime.
  7569. module.exports = runtime;
  7570. }
  7571. // Don't bother evaluating the rest of this file if the runtime was
  7572. // already defined globally.
  7573. return;
  7574. }
  7575. // Define the runtime globally (as expected by generated code) as either
  7576. // module.exports (if we're in a module) or a new, empty object.
  7577. runtime = global.regeneratorRuntime = inModule ? module.exports : {};
  7578. function wrap(innerFn, outerFn, self, tryLocsList) {
  7579. // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
  7580. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
  7581. var generator = Object.create(protoGenerator.prototype);
  7582. var context = new Context(tryLocsList || []);
  7583. // The ._invoke method unifies the implementations of the .next,
  7584. // .throw, and .return methods.
  7585. generator._invoke = makeInvokeMethod(innerFn, self, context);
  7586. return generator;
  7587. }
  7588. runtime.wrap = wrap;
  7589. // Try/catch helper to minimize deoptimizations. Returns a completion
  7590. // record like context.tryEntries[i].completion. This interface could
  7591. // have been (and was previously) designed to take a closure to be
  7592. // invoked without arguments, but in all the cases we care about we
  7593. // already have an existing method we want to call, so there's no need
  7594. // to create a new function object. We can even get away with assuming
  7595. // the method takes exactly one argument, since that happens to be true
  7596. // in every case, so we don't have to touch the arguments object. The
  7597. // only additional allocation required is the completion record, which
  7598. // has a stable shape and so hopefully should be cheap to allocate.
  7599. function tryCatch(fn, obj, arg) {
  7600. try {
  7601. return { type: "normal", arg: fn.call(obj, arg) };
  7602. } catch (err) {
  7603. return { type: "throw", arg: err };
  7604. }
  7605. }
  7606. var GenStateSuspendedStart = "suspendedStart";
  7607. var GenStateSuspendedYield = "suspendedYield";
  7608. var GenStateExecuting = "executing";
  7609. var GenStateCompleted = "completed";
  7610. // Returning this object from the innerFn has the same effect as
  7611. // breaking out of the dispatch switch statement.
  7612. var ContinueSentinel = {};
  7613. // Dummy constructor functions that we use as the .constructor and
  7614. // .constructor.prototype properties for functions that return Generator
  7615. // objects. For full spec compliance, you may wish to configure your
  7616. // minifier not to mangle the names of these two functions.
  7617. function Generator() {}
  7618. function GeneratorFunction() {}
  7619. function GeneratorFunctionPrototype() {}
  7620. // This is a polyfill for %IteratorPrototype% for environments that
  7621. // don't natively support it.
  7622. var IteratorPrototype = {};
  7623. IteratorPrototype[iteratorSymbol] = function () {
  7624. return this;
  7625. };
  7626. var getProto = Object.getPrototypeOf;
  7627. var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  7628. if (NativeIteratorPrototype &&
  7629. NativeIteratorPrototype !== Op &&
  7630. hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
  7631. // This environment has a native %IteratorPrototype%; use it instead
  7632. // of the polyfill.
  7633. IteratorPrototype = NativeIteratorPrototype;
  7634. }
  7635. var Gp = GeneratorFunctionPrototype.prototype =
  7636. Generator.prototype = Object.create(IteratorPrototype);
  7637. GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
  7638. GeneratorFunctionPrototype.constructor = GeneratorFunction;
  7639. GeneratorFunctionPrototype[toStringTagSymbol] =
  7640. GeneratorFunction.displayName = "GeneratorFunction";
  7641. // Helper for defining the .next, .throw, and .return methods of the
  7642. // Iterator interface in terms of a single ._invoke method.
  7643. function defineIteratorMethods(prototype) {
  7644. ["next", "throw", "return"].forEach(function(method) {
  7645. prototype[method] = function(arg) {
  7646. return this._invoke(method, arg);
  7647. };
  7648. });
  7649. }
  7650. runtime.isGeneratorFunction = function(genFun) {
  7651. var ctor = typeof genFun === "function" && genFun.constructor;
  7652. return ctor
  7653. ? ctor === GeneratorFunction ||
  7654. // For the native GeneratorFunction constructor, the best we can
  7655. // do is to check its .name property.
  7656. (ctor.displayName || ctor.name) === "GeneratorFunction"
  7657. : false;
  7658. };
  7659. runtime.mark = function(genFun) {
  7660. if (Object.setPrototypeOf) {
  7661. Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
  7662. } else {
  7663. genFun.__proto__ = GeneratorFunctionPrototype;
  7664. if (!(toStringTagSymbol in genFun)) {
  7665. genFun[toStringTagSymbol] = "GeneratorFunction";
  7666. }
  7667. }
  7668. genFun.prototype = Object.create(Gp);
  7669. return genFun;
  7670. };
  7671. // Within the body of any async function, `await x` is transformed to
  7672. // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
  7673. // `hasOwn.call(value, "__await")` to determine if the yielded value is
  7674. // meant to be awaited.
  7675. runtime.awrap = function(arg) {
  7676. return { __await: arg };
  7677. };
  7678. function AsyncIterator(generator) {
  7679. function invoke(method, arg, resolve, reject) {
  7680. var record = tryCatch(generator[method], generator, arg);
  7681. if (record.type === "throw") {
  7682. reject(record.arg);
  7683. } else {
  7684. var result = record.arg;
  7685. var value = result.value;
  7686. if (value &&
  7687. typeof value === "object" &&
  7688. hasOwn.call(value, "__await")) {
  7689. return Promise.resolve(value.__await).then(function(value) {
  7690. invoke("next", value, resolve, reject);
  7691. }, function(err) {
  7692. invoke("throw", err, resolve, reject);
  7693. });
  7694. }
  7695. return Promise.resolve(value).then(function(unwrapped) {
  7696. // When a yielded Promise is resolved, its final value becomes
  7697. // the .value of the Promise<{value,done}> result for the
  7698. // current iteration.
  7699. result.value = unwrapped;
  7700. resolve(result);
  7701. }, function(error) {
  7702. // If a rejected Promise was yielded, throw the rejection back
  7703. // into the async generator function so it can be handled there.
  7704. return invoke("throw", error, resolve, reject);
  7705. });
  7706. }
  7707. }
  7708. var previousPromise;
  7709. function enqueue(method, arg) {
  7710. function callInvokeWithMethodAndArg() {
  7711. return new Promise(function(resolve, reject) {
  7712. invoke(method, arg, resolve, reject);
  7713. });
  7714. }
  7715. return previousPromise =
  7716. // If enqueue has been called before, then we want to wait until
  7717. // all previous Promises have been resolved before calling invoke,
  7718. // so that results are always delivered in the correct order. If
  7719. // enqueue has not been called before, then it is important to
  7720. // call invoke immediately, without waiting on a callback to fire,
  7721. // so that the async generator function has the opportunity to do
  7722. // any necessary setup in a predictable way. This predictability
  7723. // is why the Promise constructor synchronously invokes its
  7724. // executor callback, and why async functions synchronously
  7725. // execute code before the first await. Since we implement simple
  7726. // async functions in terms of async generators, it is especially
  7727. // important to get this right, even though it requires care.
  7728. previousPromise ? previousPromise.then(
  7729. callInvokeWithMethodAndArg,
  7730. // Avoid propagating failures to Promises returned by later
  7731. // invocations of the iterator.
  7732. callInvokeWithMethodAndArg
  7733. ) : callInvokeWithMethodAndArg();
  7734. }
  7735. // Define the unified helper method that is used to implement .next,
  7736. // .throw, and .return (see defineIteratorMethods).
  7737. this._invoke = enqueue;
  7738. }
  7739. defineIteratorMethods(AsyncIterator.prototype);
  7740. AsyncIterator.prototype[asyncIteratorSymbol] = function () {
  7741. return this;
  7742. };
  7743. runtime.AsyncIterator = AsyncIterator;
  7744. // Note that simple async functions are implemented on top of
  7745. // AsyncIterator objects; they just return a Promise for the value of
  7746. // the final result produced by the iterator.
  7747. runtime.async = function(innerFn, outerFn, self, tryLocsList) {
  7748. var iter = new AsyncIterator(
  7749. wrap(innerFn, outerFn, self, tryLocsList)
  7750. );
  7751. return runtime.isGeneratorFunction(outerFn)
  7752. ? iter // If outerFn is a generator, return the full iterator.
  7753. : iter.next().then(function(result) {
  7754. return result.done ? result.value : iter.next();
  7755. });
  7756. };
  7757. function makeInvokeMethod(innerFn, self, context) {
  7758. var state = GenStateSuspendedStart;
  7759. return function invoke(method, arg) {
  7760. if (state === GenStateExecuting) {
  7761. throw new Error("Generator is already running");
  7762. }
  7763. if (state === GenStateCompleted) {
  7764. if (method === "throw") {
  7765. throw arg;
  7766. }
  7767. // Be forgiving, per 25.3.3.3.3 of the spec:
  7768. // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
  7769. return doneResult();
  7770. }
  7771. context.method = method;
  7772. context.arg = arg;
  7773. while (true) {
  7774. var delegate = context.delegate;
  7775. if (delegate) {
  7776. var delegateResult = maybeInvokeDelegate(delegate, context);
  7777. if (delegateResult) {
  7778. if (delegateResult === ContinueSentinel) continue;
  7779. return delegateResult;
  7780. }
  7781. }
  7782. if (context.method === "next") {
  7783. // Setting context._sent for legacy support of Babel's
  7784. // function.sent implementation.
  7785. context.sent = context._sent = context.arg;
  7786. } else if (context.method === "throw") {
  7787. if (state === GenStateSuspendedStart) {
  7788. state = GenStateCompleted;
  7789. throw context.arg;
  7790. }
  7791. context.dispatchException(context.arg);
  7792. } else if (context.method === "return") {
  7793. context.abrupt("return", context.arg);
  7794. }
  7795. state = GenStateExecuting;
  7796. var record = tryCatch(innerFn, self, context);
  7797. if (record.type === "normal") {
  7798. // If an exception is thrown from innerFn, we leave state ===
  7799. // GenStateExecuting and loop back for another invocation.
  7800. state = context.done
  7801. ? GenStateCompleted
  7802. : GenStateSuspendedYield;
  7803. if (record.arg === ContinueSentinel) {
  7804. continue;
  7805. }
  7806. return {
  7807. value: record.arg,
  7808. done: context.done
  7809. };
  7810. } else if (record.type === "throw") {
  7811. state = GenStateCompleted;
  7812. // Dispatch the exception by looping back around to the
  7813. // context.dispatchException(context.arg) call above.
  7814. context.method = "throw";
  7815. context.arg = record.arg;
  7816. }
  7817. }
  7818. };
  7819. }
  7820. // Call delegate.iterator[context.method](context.arg) and handle the
  7821. // result, either by returning a { value, done } result from the
  7822. // delegate iterator, or by modifying context.method and context.arg,
  7823. // setting context.delegate to null, and returning the ContinueSentinel.
  7824. function maybeInvokeDelegate(delegate, context) {
  7825. var method = delegate.iterator[context.method];
  7826. if (method === undefined) {
  7827. // A .throw or .return when the delegate iterator has no .throw
  7828. // method always terminates the yield* loop.
  7829. context.delegate = null;
  7830. if (context.method === "throw") {
  7831. if (delegate.iterator.return) {
  7832. // If the delegate iterator has a return method, give it a
  7833. // chance to clean up.
  7834. context.method = "return";
  7835. context.arg = undefined;
  7836. maybeInvokeDelegate(delegate, context);
  7837. if (context.method === "throw") {
  7838. // If maybeInvokeDelegate(context) changed context.method from
  7839. // "return" to "throw", let that override the TypeError below.
  7840. return ContinueSentinel;
  7841. }
  7842. }
  7843. context.method = "throw";
  7844. context.arg = new TypeError(
  7845. "The iterator does not provide a 'throw' method");
  7846. }
  7847. return ContinueSentinel;
  7848. }
  7849. var record = tryCatch(method, delegate.iterator, context.arg);
  7850. if (record.type === "throw") {
  7851. context.method = "throw";
  7852. context.arg = record.arg;
  7853. context.delegate = null;
  7854. return ContinueSentinel;
  7855. }
  7856. var info = record.arg;
  7857. if (! info) {
  7858. context.method = "throw";
  7859. context.arg = new TypeError("iterator result is not an object");
  7860. context.delegate = null;
  7861. return ContinueSentinel;
  7862. }
  7863. if (info.done) {
  7864. // Assign the result of the finished delegate to the temporary
  7865. // variable specified by delegate.resultName (see delegateYield).
  7866. context[delegate.resultName] = info.value;
  7867. // Resume execution at the desired location (see delegateYield).
  7868. context.next = delegate.nextLoc;
  7869. // If context.method was "throw" but the delegate handled the
  7870. // exception, let the outer generator proceed normally. If
  7871. // context.method was "next", forget context.arg since it has been
  7872. // "consumed" by the delegate iterator. If context.method was
  7873. // "return", allow the original .return call to continue in the
  7874. // outer generator.
  7875. if (context.method !== "return") {
  7876. context.method = "next";
  7877. context.arg = undefined;
  7878. }
  7879. } else {
  7880. // Re-yield the result returned by the delegate method.
  7881. return info;
  7882. }
  7883. // The delegate iterator is finished, so forget it and continue with
  7884. // the outer generator.
  7885. context.delegate = null;
  7886. return ContinueSentinel;
  7887. }
  7888. // Define Generator.prototype.{next,throw,return} in terms of the
  7889. // unified ._invoke helper method.
  7890. defineIteratorMethods(Gp);
  7891. Gp[toStringTagSymbol] = "Generator";
  7892. // A Generator should always return itself as the iterator object when the
  7893. // @@iterator function is called on it. Some browsers' implementations of the
  7894. // iterator prototype chain incorrectly implement this, causing the Generator
  7895. // object to not be returned from this call. This ensures that doesn't happen.
  7896. // See https://github.com/facebook/regenerator/issues/274 for more details.
  7897. Gp[iteratorSymbol] = function() {
  7898. return this;
  7899. };
  7900. Gp.toString = function() {
  7901. return "[object Generator]";
  7902. };
  7903. function pushTryEntry(locs) {
  7904. var entry = { tryLoc: locs[0] };
  7905. if (1 in locs) {
  7906. entry.catchLoc = locs[1];
  7907. }
  7908. if (2 in locs) {
  7909. entry.finallyLoc = locs[2];
  7910. entry.afterLoc = locs[3];
  7911. }
  7912. this.tryEntries.push(entry);
  7913. }
  7914. function resetTryEntry(entry) {
  7915. var record = entry.completion || {};
  7916. record.type = "normal";
  7917. delete record.arg;
  7918. entry.completion = record;
  7919. }
  7920. function Context(tryLocsList) {
  7921. // The root entry object (effectively a try statement without a catch
  7922. // or a finally block) gives us a place to store values thrown from
  7923. // locations where there is no enclosing try statement.
  7924. this.tryEntries = [{ tryLoc: "root" }];
  7925. tryLocsList.forEach(pushTryEntry, this);
  7926. this.reset(true);
  7927. }
  7928. runtime.keys = function(object) {
  7929. var keys = [];
  7930. for (var key in object) {
  7931. keys.push(key);
  7932. }
  7933. keys.reverse();
  7934. // Rather than returning an object with a next method, we keep
  7935. // things simple and return the next function itself.
  7936. return function next() {
  7937. while (keys.length) {
  7938. var key = keys.pop();
  7939. if (key in object) {
  7940. next.value = key;
  7941. next.done = false;
  7942. return next;
  7943. }
  7944. }
  7945. // To avoid creating an additional object, we just hang the .value
  7946. // and .done properties off the next function object itself. This
  7947. // also ensures that the minifier will not anonymize the function.
  7948. next.done = true;
  7949. return next;
  7950. };
  7951. };
  7952. function values(iterable) {
  7953. if (iterable) {
  7954. var iteratorMethod = iterable[iteratorSymbol];
  7955. if (iteratorMethod) {
  7956. return iteratorMethod.call(iterable);
  7957. }
  7958. if (typeof iterable.next === "function") {
  7959. return iterable;
  7960. }
  7961. if (!isNaN(iterable.length)) {
  7962. var i = -1, next = function next() {
  7963. while (++i < iterable.length) {
  7964. if (hasOwn.call(iterable, i)) {
  7965. next.value = iterable[i];
  7966. next.done = false;
  7967. return next;
  7968. }
  7969. }
  7970. next.value = undefined;
  7971. next.done = true;
  7972. return next;
  7973. };
  7974. return next.next = next;
  7975. }
  7976. }
  7977. // Return an iterator with no values.
  7978. return { next: doneResult };
  7979. }
  7980. runtime.values = values;
  7981. function doneResult() {
  7982. return { value: undefined, done: true };
  7983. }
  7984. Context.prototype = {
  7985. constructor: Context,
  7986. reset: function(skipTempReset) {
  7987. this.prev = 0;
  7988. this.next = 0;
  7989. // Resetting context._sent for legacy support of Babel's
  7990. // function.sent implementation.
  7991. this.sent = this._sent = undefined;
  7992. this.done = false;
  7993. this.delegate = null;
  7994. this.method = "next";
  7995. this.arg = undefined;
  7996. this.tryEntries.forEach(resetTryEntry);
  7997. if (!skipTempReset) {
  7998. for (var name in this) {
  7999. // Not sure about the optimal order of these conditions:
  8000. if (name.charAt(0) === "t" &&
  8001. hasOwn.call(this, name) &&
  8002. !isNaN(+name.slice(1))) {
  8003. this[name] = undefined;
  8004. }
  8005. }
  8006. }
  8007. },
  8008. stop: function() {
  8009. this.done = true;
  8010. var rootEntry = this.tryEntries[0];
  8011. var rootRecord = rootEntry.completion;
  8012. if (rootRecord.type === "throw") {
  8013. throw rootRecord.arg;
  8014. }
  8015. return this.rval;
  8016. },
  8017. dispatchException: function(exception) {
  8018. if (this.done) {
  8019. throw exception;
  8020. }
  8021. var context = this;
  8022. function handle(loc, caught) {
  8023. record.type = "throw";
  8024. record.arg = exception;
  8025. context.next = loc;
  8026. if (caught) {
  8027. // If the dispatched exception was caught by a catch block,
  8028. // then let that catch block handle the exception normally.
  8029. context.method = "next";
  8030. context.arg = undefined;
  8031. }
  8032. return !! caught;
  8033. }
  8034. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  8035. var entry = this.tryEntries[i];
  8036. var record = entry.completion;
  8037. if (entry.tryLoc === "root") {
  8038. // Exception thrown outside of any try block that could handle
  8039. // it, so set the completion value of the entire function to
  8040. // throw the exception.
  8041. return handle("end");
  8042. }
  8043. if (entry.tryLoc <= this.prev) {
  8044. var hasCatch = hasOwn.call(entry, "catchLoc");
  8045. var hasFinally = hasOwn.call(entry, "finallyLoc");
  8046. if (hasCatch && hasFinally) {
  8047. if (this.prev < entry.catchLoc) {
  8048. return handle(entry.catchLoc, true);
  8049. } else if (this.prev < entry.finallyLoc) {
  8050. return handle(entry.finallyLoc);
  8051. }
  8052. } else if (hasCatch) {
  8053. if (this.prev < entry.catchLoc) {
  8054. return handle(entry.catchLoc, true);
  8055. }
  8056. } else if (hasFinally) {
  8057. if (this.prev < entry.finallyLoc) {
  8058. return handle(entry.finallyLoc);
  8059. }
  8060. } else {
  8061. throw new Error("try statement without catch or finally");
  8062. }
  8063. }
  8064. }
  8065. },
  8066. abrupt: function(type, arg) {
  8067. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  8068. var entry = this.tryEntries[i];
  8069. if (entry.tryLoc <= this.prev &&
  8070. hasOwn.call(entry, "finallyLoc") &&
  8071. this.prev < entry.finallyLoc) {
  8072. var finallyEntry = entry;
  8073. break;
  8074. }
  8075. }
  8076. if (finallyEntry &&
  8077. (type === "break" ||
  8078. type === "continue") &&
  8079. finallyEntry.tryLoc <= arg &&
  8080. arg <= finallyEntry.finallyLoc) {
  8081. // Ignore the finally entry if control is not jumping to a
  8082. // location outside the try/catch block.
  8083. finallyEntry = null;
  8084. }
  8085. var record = finallyEntry ? finallyEntry.completion : {};
  8086. record.type = type;
  8087. record.arg = arg;
  8088. if (finallyEntry) {
  8089. this.method = "next";
  8090. this.next = finallyEntry.finallyLoc;
  8091. return ContinueSentinel;
  8092. }
  8093. return this.complete(record);
  8094. },
  8095. complete: function(record, afterLoc) {
  8096. if (record.type === "throw") {
  8097. throw record.arg;
  8098. }
  8099. if (record.type === "break" ||
  8100. record.type === "continue") {
  8101. this.next = record.arg;
  8102. } else if (record.type === "return") {
  8103. this.rval = this.arg = record.arg;
  8104. this.method = "return";
  8105. this.next = "end";
  8106. } else if (record.type === "normal" && afterLoc) {
  8107. this.next = afterLoc;
  8108. }
  8109. return ContinueSentinel;
  8110. },
  8111. finish: function(finallyLoc) {
  8112. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  8113. var entry = this.tryEntries[i];
  8114. if (entry.finallyLoc === finallyLoc) {
  8115. this.complete(entry.completion, entry.afterLoc);
  8116. resetTryEntry(entry);
  8117. return ContinueSentinel;
  8118. }
  8119. }
  8120. },
  8121. "catch": function(tryLoc) {
  8122. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  8123. var entry = this.tryEntries[i];
  8124. if (entry.tryLoc === tryLoc) {
  8125. var record = entry.completion;
  8126. if (record.type === "throw") {
  8127. var thrown = record.arg;
  8128. resetTryEntry(entry);
  8129. }
  8130. return thrown;
  8131. }
  8132. }
  8133. // The context.catch method must only be called with a location
  8134. // argument that corresponds to a known catch block.
  8135. throw new Error("illegal catch attempt");
  8136. },
  8137. delegateYield: function(iterable, resultName, nextLoc) {
  8138. this.delegate = {
  8139. iterator: values(iterable),
  8140. resultName: resultName,
  8141. nextLoc: nextLoc
  8142. };
  8143. if (this.method === "next") {
  8144. // Deliberately forget the last sent value so that we don't
  8145. // accidentally pass it on to the delegate.
  8146. this.arg = undefined;
  8147. }
  8148. return ContinueSentinel;
  8149. }
  8150. };
  8151. })(
  8152. // In sloppy mode, unbound `this` refers to the global object, fallback to
  8153. // Function constructor if we're in global strict mode. That is sadly a form
  8154. // of indirect eval which violates Content Security Policy.
  8155. (function() {
  8156. return this || (typeof self === "object" && self);
  8157. })() || Function("return this")()
  8158. );
  8159. /***/ }),
  8160. /***/ 26:
  8161. /*!******************************************************************!*\
  8162. !*** /Users/wanglili/Documents/liuniu/jxred/utils/loginUtils.js ***!
  8163. \******************************************************************/
  8164. /*! no static exports found */
  8165. /***/ (function(module, exports, __webpack_require__) {
  8166. "use strict";
  8167. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.getActionPage = getActionPage;exports.getPageUrl = getPageUrl;exports.interceptor = interceptor;exports.saveUrl = saveUrl; // 获取当前页面
  8168. function getActionPage() {
  8169. var pages = getCurrentPages();
  8170. return pages[pages.length - 1];
  8171. }
  8172. // 处理分享链接地址
  8173. function getPageUrl(config) {
  8174. var page = getActionPage();
  8175. var path = '/' + page.route;
  8176. var url = '';
  8177. // 获取对象可枚举键值列表
  8178. var objKeys = Object.keys(page.options);
  8179. // 判断有无传值
  8180. if (objKeys.length > 0) {
  8181. // 循环赋值对象数据
  8182. for (var a in page.options) {
  8183. // 判断有无邀请人
  8184. if (a != 'spread') {
  8185. url += a + "=" + page.options[a] + "&";
  8186. }
  8187. }
  8188. path += '?' + url.substr(0, url.length - 1);
  8189. }
  8190. // 返回处理邀请人后的邀请地址
  8191. return path;
  8192. }
  8193. //登录拦截
  8194. function interceptor() {
  8195. var pages = getActionPage();
  8196. // 获取当前页面
  8197. var pageUrl = '/' + pages.route;
  8198. var url = '/pages/login/login';
  8199. url = '/pages/public/wxLogin';
  8200. if (pageUrl != url) {
  8201. uni.navigateTo({
  8202. url: url });
  8203. }
  8204. }
  8205. // 保存页面
  8206. function saveUrl() {
  8207. // 获取当前页面
  8208. var page = getActionPage();
  8209. // 获取跳转前路由地址
  8210. var path = '/' + page.route;
  8211. var url = '';
  8212. // 获取对象可枚举键值列表
  8213. var objKeys = Object.keys(page.options);
  8214. // 判断有无传值
  8215. if (objKeys.length > 0) {
  8216. // 循环赋值对象数据
  8217. for (var a in page.options) {
  8218. url += a + "=" + page.options[a] + "&";
  8219. }
  8220. path += '?' + url.substr(0, url.length - 1);
  8221. }
  8222. // uni.showModal({
  8223. // title: '地址',
  8224. // content: path,
  8225. // fail: function (res) {
  8226. // console.log(res.errMsg);
  8227. // uni.showModal({
  8228. // title: 'error',
  8229. // content: res.errMsg
  8230. // })
  8231. // }
  8232. // })
  8233. uni.setStorageSync('present', path);
  8234. // // 获取当前页面
  8235. // let page = getActionPage();
  8236. // // 获取跳转前路由地址
  8237. // let path = '/' + page.route;
  8238. // let url = '';
  8239. // // 获取对象可枚举键值列表
  8240. // let objKeys = Object.keys(page.options);
  8241. // // 判断有无传值
  8242. // if (objKeys.length > 0) {
  8243. // // 循环赋值对象数据
  8244. // for (let a in page.options) {
  8245. // url += a + "=" + page.options[a] + "&"
  8246. // }
  8247. // path += '?' + url.substr(0, url.length - 1);
  8248. // }
  8249. // console.log(path,1)
  8250. // uni.setStorageSync('present', path);
  8251. }
  8252. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  8253. /***/ }),
  8254. /***/ 27:
  8255. /*!**********************************************************!*\
  8256. !*** /Users/wanglili/Documents/liuniu/jxred/api/user.js ***!
  8257. \**********************************************************/
  8258. /*! no static exports found */
  8259. /***/ (function(module, exports, __webpack_require__) {
  8260. "use strict";
  8261. Object.defineProperty(exports, "__esModule", { value: true });exports.orderData = orderData;exports.userinfo = userinfo;exports.userinfoid = userinfoid;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 21));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  8262. // 订单统计信息
  8263. function orderData(data) {
  8264. return (0, _request.default)({
  8265. url: '/api/order/data',
  8266. method: 'get',
  8267. data: data });
  8268. }
  8269. // 获取用户信息
  8270. function userinfo(data) {
  8271. return (0, _request.default)({
  8272. url: '/api/userinfo',
  8273. method: 'get',
  8274. data: data });
  8275. }
  8276. //获取名片信息
  8277. function userinfoid(data) {
  8278. return (0, _request.default)({
  8279. url: '/api/level/recharge',
  8280. method: 'post',
  8281. data: data });
  8282. }
  8283. /***/ }),
  8284. /***/ 28:
  8285. /*!********************************************************************!*\
  8286. !*** /Users/wanglili/Documents/liuniu/jxred/utils/wxAuthorized.js ***!
  8287. \********************************************************************/
  8288. /*! no static exports found */
  8289. /***/ (function(module, exports, __webpack_require__) {
  8290. "use strict";
  8291. Object.defineProperty(exports, "__esModule", { value: true });exports.loginWinxin = loginWinxin;exports.weixindata = weixindata;exports.weixinhideMenu = weixinhideMenu;exports.default = void 0;var _wx = __webpack_require__(/*! @/api/wx */ 29);
  8292. var _store = _interopRequireDefault(__webpack_require__(/*! ../store */ 5));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  8293. // 保存wx对象
  8294. var weixinObj = __webpack_require__(/*! jweixin-module */ 30);
  8295. // 保存分享数据
  8296. var shareData = '';
  8297. // 保存注册返回appId数据
  8298. var appId = '';
  8299. //微信登录
  8300. /**
  8301. * @param {string} 当前页面地址信息
  8302. */
  8303. function loginWinxin() {
  8304. var pages, page, path;
  8305. try {
  8306. pages = getCurrentPages();
  8307. // 获取跳转前页面
  8308. page = pages[pages.length - 1];
  8309. // 获取跳转前路由地址
  8310. path = page.route;
  8311. } catch (e) {
  8312. console.log(e);
  8313. }
  8314. // 判断是否在登录页
  8315. if (path != 'pages/redirect/redirect') {
  8316. setTimeout(function (e) {
  8317. weixinObj.ready(function () {
  8318. console.log('weixinObj.ready');
  8319. // 调用
  8320. try {
  8321. console.log(shareData);
  8322. console.log(path);
  8323. weixinSq(shareData, path);
  8324. } catch (e) {
  8325. console.log(e);
  8326. //TODO handle the exception
  8327. }
  8328. });
  8329. weixinObj.error(function (e) {
  8330. console.log(e);
  8331. });
  8332. }, 10);
  8333. }
  8334. };
  8335. // 微信授权登录
  8336. function weixinSq(data, path) {
  8337. // 微信授权后跳转页面
  8338. try {
  8339. var ul = encodeURIComponent(_store.default.state.baseURL + _store.default.state.urlFile + '/#/pages/redirect/redirect');
  8340. console.log(ul, "ul");
  8341. // 打开微信授权页面
  8342. var url =
  8343. 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
  8344. appId +
  8345. '&redirect_uri=' +
  8346. ul +
  8347. '&response_type=code&scope=snsapi_userinfo&state=' +
  8348. new Date().getTime() +
  8349. '#wechat_redirect';
  8350. console.log(url, "url");
  8351. window.location.href = url;
  8352. } catch (e) {
  8353. console.log(e);
  8354. }
  8355. };
  8356. // 微信注册
  8357. function weixindata(config) {
  8358. // console.log(config);
  8359. //注册微信信息
  8360. var weixinObj = __webpack_require__(/*! jweixin-module */ 30);
  8361. // 保存微信对象到全局仓库
  8362. _store.default.commit('setWeiChatObj', weixinObj);
  8363. console.log(window.location.href);
  8364. console.log('当前注册url地址', window.location.href);
  8365. (0, _wx.wechatConfig)({
  8366. // url: 'pages/applic/location',
  8367. url: _store.default.state.baseURL + _store.default.state.urlFile + '/' }).
  8368. then(function (_ref)
  8369. {var data = _ref.data;
  8370. // uni.showModal({
  8371. // // url: 'http://yyred.igxys.com/index/',
  8372. // title:'地址',
  8373. // content: window.location.href
  8374. // })
  8375. // 保存appId
  8376. _store.default.commit('setWeiChatInfo', data);
  8377. appId = data.appId;
  8378. // 微信信息配置
  8379. weixinObj.config({
  8380. debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
  8381. appId: data.appId, // 必填,企业号的唯一标识,此处填写企业号corpid
  8382. timestamp: data.timestamp, // 必填,生成签名的时间戳
  8383. nonceStr: data.nonceStr, // 必填,生成签名的随机串
  8384. signature: data.signature, // 必填,签名,见附录1
  8385. jsApiList: data.jsApiList // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
  8386. });
  8387. weixinObj.ready(function (e) {
  8388. console.log('分享数据', shareData);
  8389. if (shareData == '') {
  8390. (0, _wx.share)({}).then(function (_ref2)
  8391. {var data = _ref2.data;
  8392. shareData = data.data;
  8393. shareLoad(config);
  8394. });
  8395. } else {
  8396. shareLoad(config);
  8397. }
  8398. });
  8399. }).
  8400. catch(function (e) {
  8401. console.log(e);
  8402. });
  8403. }
  8404. // 加载分享数据
  8405. function shareLoad(config) {
  8406. var mess;
  8407. if (config) {
  8408. mess = {
  8409. link: config.link, // 分享链接
  8410. imgUrl: config.imgUrl,
  8411. desc: config.desc,
  8412. title: config.title,
  8413. success: config.success,
  8414. fail: config.fail || function (e) {
  8415. console.log(e);
  8416. } };
  8417. } else {
  8418. // console.log(window.location.href, 55)
  8419. // let url = window.location.href + '?spread=' + store.state.userInfo.uid;
  8420. var url = window.location.href;
  8421. url = url.replace(/[\?,&]{0,1}from=singlemessage/g, '');
  8422. mess = {
  8423. title: shareData.title,
  8424. link: url, // 分享链接
  8425. imgUrl: shareData.img, // 分享图标
  8426. desc: shareData.synopsis,
  8427. success: function success() {
  8428. },
  8429. fail: function fail(e) {
  8430. console.log(e);
  8431. } };
  8432. }
  8433. // 获取仓库数据
  8434. // 分享好友
  8435. // weixinObj.updateAppMessageShareData(mess);
  8436. weixinObj.onMenuShareAppMessage(mess); // 即将废弃
  8437. // 分享朋友圈
  8438. // weixinObj.updateTimelineShareData(mess)
  8439. weixinObj.onMenuShareTimeline(mess); // 即将废弃
  8440. }
  8441. // 隐藏功能按钮
  8442. function weixinhideMenu(config) {
  8443. console.log(config);
  8444. weixinObj.ready(function (e) {
  8445. weixinObj.hideMenuItems({
  8446. menuList: config // 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3
  8447. });
  8448. });
  8449. }
  8450. // export function getLoca(config) {
  8451. // console.log(config)
  8452. // weixinObj.ready((e) => {
  8453. // weixinObj.getLocation({
  8454. // type: 'wgs84',
  8455. // success: function (res) {
  8456. // config.longitude = res.longitude;
  8457. // config.latitude = res.latitude;
  8458. // uni.showModal({
  8459. // title: '提示',
  8460. // content: res.longitude
  8461. // })
  8462. // console.log('当前位置的经度:' + res.longitude);
  8463. // console.log('当前位置的纬度:' + res.latitude);
  8464. // }
  8465. // });
  8466. // })
  8467. // }
  8468. var _default =
  8469. {
  8470. weixinObj: weixinObj,
  8471. shareData: shareData,
  8472. appId: appId };exports.default = _default;
  8473. /***/ }),
  8474. /***/ 29:
  8475. /*!********************************************************!*\
  8476. !*** /Users/wanglili/Documents/liuniu/jxred/api/wx.js ***!
  8477. \********************************************************/
  8478. /*! no static exports found */
  8479. /***/ (function(module, exports, __webpack_require__) {
  8480. "use strict";
  8481. Object.defineProperty(exports, "__esModule", { value: true });exports.wechatMpAuth = wechatMpAuth;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 21));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  8482. // 微信code地址
  8483. function wechatMpAuth(data) {
  8484. return (0, _request.default)({
  8485. url: '/api/wechat/mp_auth',
  8486. method: 'post',
  8487. data: data });
  8488. }
  8489. /***/ }),
  8490. /***/ 3:
  8491. /*!***********************************!*\
  8492. !*** (webpack)/buildin/global.js ***!
  8493. \***********************************/
  8494. /*! no static exports found */
  8495. /***/ (function(module, exports) {
  8496. var g;
  8497. // This works in non-strict mode
  8498. g = (function() {
  8499. return this;
  8500. })();
  8501. try {
  8502. // This works if eval is allowed (see CSP)
  8503. g = g || new Function("return this")();
  8504. } catch (e) {
  8505. // This works if the window reference is available
  8506. if (typeof window === "object") g = window;
  8507. }
  8508. // g can still be undefined, but nothing to do about it...
  8509. // We return undefined, instead of nothing here, so it's
  8510. // easier to handle this case. if(!global) { ...}
  8511. module.exports = g;
  8512. /***/ }),
  8513. /***/ 30:
  8514. /*!***************************************************************************************!*\
  8515. !*** /Users/wanglili/Documents/liuniu/jxred/node_modules/jweixin-module/out/index.js ***!
  8516. \***************************************************************************************/
  8517. /*! no static exports found */
  8518. /***/ (function(module, exports, __webpack_require__) {
  8519. 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 (e, n) { true ? module.exports = n(e) : undefined;}(window, function (o, e) {function c(n, e, i) {o.WeixinJSBridge ? WeixinJSBridge.invoke(n, r(e), function (e) {a(n, e, i);}) : d(n, i);}function i(n, i, t) {o.WeixinJSBridge ? WeixinJSBridge.on(n, function (e) {t && t.trigger && t.trigger(e), a(n, e, i);}) : d(n, t || i);}function r(e) {return (e = e || {}).appId = M.appId, e.verifyAppId = M.appId, e.verifySignType = "sha1", e.verifyTimestamp = M.timestamp + "", e.verifyNonceStr = M.nonceStr, e.verifySignature = M.signature, e;}function n(e) {return { timeStamp: e.timestamp + "", nonceStr: e.nonceStr, package: e.package, paySign: e.paySign, signType: e.signType || "SHA1" };}function a(e, n, i) {"openEnterpriseChat" == e && (n.errCode = n.err_code), delete n.err_code, delete n.err_desc, delete n.err_detail;var t = n.errMsg;t || (t = n.err_msg, delete n.err_msg, t = function (e, n) {var i = e,t = f[i];t && (i = t);var o = "ok";if (n) {var r = n.indexOf(":");"confirm" == (o = n.substring(r + 1)) && (o = "ok"), "failed" == o && (o = "fail"), -1 != o.indexOf("failed_") && (o = o.substring(7)), -1 != o.indexOf("fail_") && (o = o.substring(5)), "access denied" != (o = (o = o.replace(/_/g, " ")).toLowerCase()) && "no permission to execute" != o || (o = "permission denied"), "config" == i && "function not exist" == o && (o = "ok"), "" == o && (o = "fail");}return n = i + ":" + o;}(e, t), n.errMsg = t), (i = i || {})._complete && (i._complete(n), delete i._complete), t = n.errMsg || "", M.debug && !i.isInnerInvoke && alert(JSON.stringify(n));var o = t.indexOf(":");switch (t.substring(o + 1)) {case "ok":i.success && i.success(n);break;case "cancel":i.cancel && i.cancel(n);break;default:i.fail && i.fail(n);}i.complete && i.complete(n);}function s(e) {if (e) {for (var n = 0, i = e.length; n < i; ++n) {var t = e[n],o = p[t];o && (e[n] = o);}return e;}}function d(e, n) {if (!(!M.debug || n && n.isInnerInvoke)) {var i = f[e];i && (e = i), n && n._complete && delete n._complete, console.log('"' + e + '",', n || "");}}function l() {return new Date().getTime();}function u(e) {I && (o.WeixinJSBridge ? e() : t.addEventListener && t.addEventListener("WeixinJSBridgeReady", e, !1));}if (!o.jWeixin) {var _C;var p = { config: "preVerifyJSAPI", onMenuShareTimeline: "menu:share:timeline", onMenuShareAppMessage: "menu:share:appmessage", onMenuShareQQ: "menu:share:qq", onMenuShareWeibo: "menu:share:weiboApp", onMenuShareQZone: "menu:share:QZone", previewImage: "imagePreview", getLocation: "geoLocation", openProductSpecificView: "openProductViewWithPid", addCard: "batchAddCard", openCard: "batchViewCard", chooseWXPay: "getBrandWCPayRequest", openEnterpriseRedPacket: "getRecevieBizHongBaoRequest", startSearchBeacons: "startMonitoringBeacons", stopSearchBeacons: "stopMonitoringBeacons", onSearchBeacons: "onBeaconsInRange", consumeAndShareCard: "consumedShareCard", openAddress: "editAddress" },f = function () {var e = {};for (var n in p) {e[p[n]] = n;}return e;}(),t = o.document,m = t.title,g = navigator.userAgent.toLowerCase(),h = navigator.platform.toLowerCase(),v = !(!h.match("mac") && !h.match("win")),S = -1 != g.indexOf("wxdebugger"),I = -1 != g.indexOf("micromessenger"),y = -1 != g.indexOf("android"),_ = -1 != g.indexOf("iphone") || -1 != g.indexOf("ipad"),w = (O = g.match(/micromessenger\/(\d+\.\d+\.\d+)/) || g.match(/micromessenger\/(\d+\.\d+)/)) ? O[1] : "",k = { initStartTime: l(), initEndTime: 0, preVerifyStartTime: 0, preVerifyEndTime: 0 },T = { version: 1, appId: "", initTime: 0, preVerifyTime: 0, networkType: "", isPreVerifyOk: 1, systemType: _ ? 1 : y ? 2 : -1, clientVersion: w, url: encodeURIComponent(location.href) },M = {},P = { _completes: [] },x = { state: 0, data: {} };u(function () {k.initEndTime = l();});var A = !1,V = [],C = (_C = { config: function config(e) {d("config", M = e);var t = !1 !== M.check;u(function () {if (t) c(p.config, { verifyJsApiList: s(M.jsApiList) }, function () {P._complete = function (e) {k.preVerifyEndTime = l(), x.state = 1, x.data = e;}, P.success = function (e) {T.isPreVerifyOk = 0;}, P.fail = function (e) {P._fail ? P._fail(e) : x.state = -1;};var t = P._completes;return t.push(function () {!function (e) {if (!(v || S || M.debug || w < "6.0.2" || T.systemType < 0)) {var i = new Image();T.appId = M.appId, T.initTime = k.initEndTime - k.initStartTime, T.preVerifyTime = k.preVerifyEndTime - k.preVerifyStartTime, C.getNetworkType({ isInnerInvoke: !0, success: function success(e) {T.networkType = e.networkType;var n = "https://open.weixin.qq.com/sdk/report?v=" + T.version + "&o=" + T.isPreVerifyOk + "&s=" + T.systemType + "&c=" + T.clientVersion + "&a=" + T.appId + "&n=" + T.networkType + "&i=" + T.initTime + "&p=" + T.preVerifyTime + "&u=" + T.url;i.src = n;} });}}();}), P.complete = function (e) {for (var n = 0, i = t.length; n < i; ++n) {t[n]();}P._completes = [];}, P;}()), k.preVerifyStartTime = l();else {x.state = 1;for (var e = P._completes, n = 0, i = e.length; n < i; ++n) {e[n]();}P._completes = [];}}), C.invoke || (C.invoke = function (e, n, i) {o.WeixinJSBridge && WeixinJSBridge.invoke(e, r(n), i);}, C.on = function (e, n) {o.WeixinJSBridge && WeixinJSBridge.on(e, n);});}, ready: function ready(e) {0 != x.state ? e() : (P._completes.push(e), !I && M.debug && e());}, error: function error(e) {w < "6.0.2" || (-1 == x.state ? e(x.data) : P._fail = e);}, checkJsApi: function checkJsApi(e) {c("checkJsApi", { jsApiList: s(e.jsApiList) }, (e._complete = function (e) {if (y) {var n = e.checkResult;n && (e.checkResult = JSON.parse(n));}e = function (e) {var n = e.checkResult;for (var i in n) {var t = f[i];t && (n[t] = n[i], delete n[i]);}return e;}(e);}, e));}, onMenuShareTimeline: function onMenuShareTimeline(e) {i(p.onMenuShareTimeline, { complete: function complete() {c("shareTimeline", { title: e.title || m, desc: e.title || m, img_url: e.imgUrl || "", link: e.link || location.href, type: e.type || "link", data_url: e.dataUrl || "" }, e);} }, e);}, onMenuShareAppMessage: function onMenuShareAppMessage(n) {i(p.onMenuShareAppMessage, { complete: function complete(e) {"favorite" === e.scene ? c("sendAppMessage", { title: n.title || m, desc: n.desc || "", link: n.link || location.href, img_url: n.imgUrl || "", type: n.type || "link", data_url: n.dataUrl || "" }) : c("sendAppMessage", { title: n.title || m, desc: n.desc || "", link: n.link || location.href, img_url: n.imgUrl || "", type: n.type || "link", data_url: n.dataUrl || "" }, n);} }, n);}, onMenuShareQQ: function onMenuShareQQ(e) {i(p.onMenuShareQQ, { complete: function complete() {c("shareQQ", { title: e.title || m, desc: e.desc || "", img_url: e.imgUrl || "", link: e.link || location.href }, e);} }, e);}, onMenuShareWeibo: function onMenuShareWeibo(e) {i(p.onMenuShareWeibo, { complete: function complete() {c("shareWeiboApp", { title: e.title || m, desc: e.desc || "", img_url: e.imgUrl || "", link: e.link || location.href }, e);} }, e);}, onMenuShareQZone: function onMenuShareQZone(e) {i(p.onMenuShareQZone, { complete: function complete() {c("shareQZone", { title: e.title || m, desc: e.desc || "", img_url: e.imgUrl || "", link: e.link || location.href }, e);} }, e);}, updateTimelineShareData: function updateTimelineShareData(e) {c("updateTimelineShareData", { title: e.title, link: e.link, imgUrl: e.imgUrl }, e);}, updateAppMessageShareData: function updateAppMessageShareData(e) {c("updateAppMessageShareData", { title: e.title, desc: e.desc, link: e.link, imgUrl: e.imgUrl }, e);}, startRecord: function startRecord(e) {c("startRecord", {}, e);}, stopRecord: function stopRecord(e) {c("stopRecord", {}, e);}, onVoiceRecordEnd: function onVoiceRecordEnd(e) {i("onVoiceRecordEnd", e);}, playVoice: function playVoice(e) {c("playVoice", { localId: e.localId }, e);}, pauseVoice: function pauseVoice(e) {c("pauseVoice", { localId: e.localId }, e);}, stopVoice: function stopVoice(e) {c("stopVoice", { localId: e.localId }, e);}, onVoicePlayEnd: function onVoicePlayEnd(e) {i("onVoicePlayEnd", e);}, uploadVoice: function uploadVoice(e) {c("uploadVoice", { localId: e.localId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e);}, downloadVoice: function downloadVoice(e) {c("downloadVoice", { serverId: e.serverId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e);}, translateVoice: function translateVoice(e) {c("translateVoice", { localId: e.localId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e);}, chooseImage: function chooseImage(e) {c("chooseImage", { scene: "1|2", count: e.count || 9, sizeType: e.sizeType || ["original", "compressed"], sourceType: e.sourceType || ["album", "camera"] }, (e._complete = function (e) {if (y) {var n = e.localIds;try {n && (e.localIds = JSON.parse(n));} catch (e) {}}}, e));}, getLocation: function getLocation(e) {}, previewImage: function previewImage(e) {c(p.previewImage, { current: e.current, urls: e.urls }, e);}, uploadImage: function uploadImage(e) {c("uploadImage", { localId: e.localId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e);}, downloadImage: function downloadImage(e) {c("downloadImage", { serverId: e.serverId, isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1 }, e);}, getLocalImgData: function getLocalImgData(e) {!1 === A ? (A = !0, c("getLocalImgData", { localId: e.localId }, (e._complete = function (e) {if (A = !1, 0 < V.length) {var n = V.shift();wx.getLocalImgData(n);}}, e))) : V.push(e);}, getNetworkType: function getNetworkType(e) {c("getNetworkType", {}, (e._complete = function (e) {e = function (e) {var n = e.errMsg;e.errMsg = "getNetworkType:ok";var i = e.subtype;if (delete e.subtype, i) e.networkType = i;else {var t = n.indexOf(":"),o = n.substring(t + 1);switch (o) {case "wifi":case "edge":case "wwan":e.networkType = o;break;default:e.errMsg = "getNetworkType:fail";}}return e;}(e);}, e));}, openLocation: function openLocation(e) {c("openLocation", { latitude: e.latitude, longitude: e.longitude, name: e.name || "", address: e.address || "", scale: e.scale || 28, infoUrl: e.infoUrl || "" }, e);} }, _defineProperty(_C, "getLocation", function getLocation(e) {c(p.getLocation, { type: (e = e || {}).type || "wgs84" }, (e._complete = function (e) {delete e.type;}, e));}), _defineProperty(_C, "hideOptionMenu", function hideOptionMenu(e) {c("hideOptionMenu", {}, e);}), _defineProperty(_C, "showOptionMenu", function showOptionMenu(e) {c("showOptionMenu", {}, e);}), _defineProperty(_C, "closeWindow", function closeWindow(e) {c("closeWindow", {}, e = e || {});}), _defineProperty(_C, "hideMenuItems", function hideMenuItems(e) {c("hideMenuItems", { menuList: e.menuList }, e);}), _defineProperty(_C, "showMenuItems", function showMenuItems(e) {c("showMenuItems", { menuList: e.menuList }, e);}), _defineProperty(_C, "hideAllNonBaseMenuItem", function hideAllNonBaseMenuItem(e) {c("hideAllNonBaseMenuItem", {}, e);}), _defineProperty(_C, "showAllNonBaseMenuItem", function showAllNonBaseMenuItem(e) {c("showAllNonBaseMenuItem", {}, e);}), _defineProperty(_C, "scanQRCode", function scanQRCode(e) {c("scanQRCode", { needResult: (e = e || {}).needResult || 0, scanType: e.scanType || ["qrCode", "barCode"] }, (e._complete = function (e) {if (_) {var n = e.resultStr;if (n) {var i = JSON.parse(n);e.resultStr = i && i.scan_code && i.scan_code.scan_result;}}}, e));}), _defineProperty(_C, "openAddress", function openAddress(e) {c(p.openAddress, {}, (e._complete = function (e) {var n;(n = e).postalCode = n.addressPostalCode, delete n.addressPostalCode, n.provinceName = n.proviceFirstStageName, delete n.proviceFirstStageName, n.cityName = n.addressCitySecondStageName, delete n.addressCitySecondStageName, n.countryName = n.addressCountiesThirdStageName, delete n.addressCountiesThirdStageName, n.detailInfo = n.addressDetailInfo, delete n.addressDetailInfo, e = n;}, e));}), _defineProperty(_C, "openProductSpecificView", function openProductSpecificView(e) {c(p.openProductSpecificView, { pid: e.productId, view_type: e.viewType || 0, ext_info: e.extInfo }, e);}), _defineProperty(_C, "addCard", function addCard(e) {for (var n = e.cardList, i = [], t = 0, o = n.length; t < o; ++t) {var r = n[t],a = { card_id: r.cardId, card_ext: r.cardExt };i.push(a);}c(p.addCard, { card_list: i }, (e._complete = function (e) {var n = e.card_list;if (n) {for (var i = 0, t = (n = JSON.parse(n)).length; i < t; ++i) {var o = n[i];o.cardId = o.card_id, o.cardExt = o.card_ext, o.isSuccess = !!o.is_succ, delete o.card_id, delete o.card_ext, delete o.is_succ;}e.cardList = n, delete e.card_list;}}, e));}), _defineProperty(_C, "chooseCard", function chooseCard(e) {c("chooseCard", { app_id: M.appId, location_id: e.shopId || "", sign_type: e.signType || "SHA1", card_id: e.cardId || "", card_type: e.cardType || "", card_sign: e.cardSign, time_stamp: e.timestamp + "", nonce_str: e.nonceStr }, (e._complete = function (e) {e.cardList = e.choose_card_info, delete e.choose_card_info;}, e));}), _defineProperty(_C, "openCard", function openCard(e) {for (var n = e.cardList, i = [], t = 0, o = n.length; t < o; ++t) {var r = n[t],a = { card_id: r.cardId, code: r.code };i.push(a);}c(p.openCard, { card_list: i }, e);}), _defineProperty(_C, "consumeAndShareCard", function consumeAndShareCard(e) {c(p.consumeAndShareCard, { consumedCardId: e.cardId, consumedCode: e.code }, e);}), _defineProperty(_C, "chooseWXPay", function chooseWXPay(e) {c(p.chooseWXPay, n(e), e);}), _defineProperty(_C, "openEnterpriseRedPacket", function openEnterpriseRedPacket(e) {c(p.openEnterpriseRedPacket, n(e), e);}), _defineProperty(_C, "startSearchBeacons", function startSearchBeacons(e) {c(p.startSearchBeacons, { ticket: e.ticket }, e);}), _defineProperty(_C, "stopSearchBeacons", function stopSearchBeacons(e) {c(p.stopSearchBeacons, {}, e);}), _defineProperty(_C, "onSearchBeacons", function onSearchBeacons(e) {i(p.onSearchBeacons, e);}), _defineProperty(_C, "openEnterpriseChat", function openEnterpriseChat(e) {c("openEnterpriseChat", { useridlist: e.userIds, chatname: e.groupName }, e);}), _defineProperty(_C, "launchMiniProgram", function launchMiniProgram(e) {c("launchMiniProgram", { targetAppId: e.targetAppId, path: function (e) {if ("string" == typeof e && 0 < e.length) {var n = e.split("?")[0],i = e.split("?")[1];return n += ".html", void 0 !== i ? n + "?" + i : n;}}(e.path), envVersion: e.envVersion }, e);}), _defineProperty(_C, "miniProgram", { navigateBack: function navigateBack(e) {e = e || {}, u(function () {c("invokeMiniProgramAPI", { name: "navigateBack", arg: { delta: e.delta || 1 } }, e);});}, navigateTo: function navigateTo(e) {u(function () {c("invokeMiniProgramAPI", { name: "navigateTo", arg: { url: e.url } }, e);});}, redirectTo: function redirectTo(e) {u(function () {c("invokeMiniProgramAPI", { name: "redirectTo", arg: { url: e.url } }, e);});}, switchTab: function switchTab(e) {u(function () {c("invokeMiniProgramAPI", { name: "switchTab", arg: { url: e.url } }, e);});}, reLaunch: function reLaunch(e) {u(function () {c("invokeMiniProgramAPI", { name: "reLaunch", arg: { url: e.url } }, e);});}, postMessage: function postMessage(e) {u(function () {c("invokeMiniProgramAPI", { name: "postMessage", arg: e.data || {} }, e);});}, getEnv: function getEnv(e) {u(function () {e({ miniprogram: "miniprogram" === o.__wxjs_environment });});} }), _C),L = 1,B = {};return t.addEventListener("error", function (e) {if (!y) {var n = e.target,i = n.tagName,t = n.src;if (("IMG" == i || "VIDEO" == i || "AUDIO" == i || "SOURCE" == i) && -1 != t.indexOf("wxlocalresource://")) {e.preventDefault(), e.stopPropagation();var o = n["wx-id"];if (o || (o = L++, n["wx-id"] = o), B[o]) return;B[o] = !0, wx.ready(function () {wx.getLocalImgData({ localId: t, success: function success(e) {n.src = e.localData;} });});}}}, !0), t.addEventListener("load", function (e) {if (!y) {var n = e.target,i = n.tagName;if (n.src, "IMG" == i || "VIDEO" == i || "AUDIO" == i || "SOURCE" == i) {var t = n["wx-id"];t && (B[t] = !1);}}}, !0), e && (o.wx = o.jWeixin = C), C;}var O;});
  8520. /***/ }),
  8521. /***/ 325:
  8522. /*!**********************************************************!*\
  8523. !*** /Users/wanglili/Documents/liuniu/jxred/api/info.js ***!
  8524. \**********************************************************/
  8525. /*! no static exports found */
  8526. /***/ (function(module, exports, __webpack_require__) {
  8527. "use strict";
  8528. Object.defineProperty(exports, "__esModule", { value: true });exports.articletop = articletop;exports.articledel = articledel;exports.details = details;exports.deconstructArticle = deconstructArticle;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 21));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  8529. // 置顶 取消置顶
  8530. function articletop(data) {
  8531. return (0, _request.default)({
  8532. url: '/api/circle/articletop',
  8533. method: 'post',
  8534. data: data });
  8535. }
  8536. // 删除贴子
  8537. function articledel(data) {
  8538. return (0, _request.default)({
  8539. url: '/api/circle/articledel',
  8540. method: 'post',
  8541. data: data });
  8542. }
  8543. // 文章详情
  8544. function details(data, id) {
  8545. return (0, _request.default)({
  8546. url: '/api/article/details/' + id,
  8547. method: 'get',
  8548. data: data });
  8549. }
  8550. //处理文章详情页
  8551. function deconstructArticle(data) {
  8552. if (data) {
  8553. data = data.replace(/<img/g, '<img style="width: 100% !important;height:auto"').replace(
  8554. /<p>\S*<img/g, '<p style="line-height: 0;"><img');
  8555. }
  8556. return data;
  8557. }
  8558. /***/ }),
  8559. /***/ 334:
  8560. /*!***********************************************************!*\
  8561. !*** /Users/wanglili/Documents/liuniu/jxred/api/login.js ***!
  8562. \***********************************************************/
  8563. /*! no static exports found */
  8564. /***/ (function(module, exports, __webpack_require__) {
  8565. "use strict";
  8566. Object.defineProperty(exports, "__esModule", { value: true });exports.login = login;exports.register = register;exports.verify = verify;exports.getUserInfo = getUserInfo;exports.loginMobile = loginMobile;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 21));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  8567. // 登录
  8568. function login(data) {
  8569. return (0, _request.default)({
  8570. url: '/api/login',
  8571. method: 'post',
  8572. data: data });
  8573. }
  8574. // 注册
  8575. function register(data) {
  8576. return (0, _request.default)({
  8577. url: '/api/register',
  8578. method: 'post',
  8579. data: data });
  8580. }
  8581. // 验证码
  8582. function verify(data) {
  8583. // type=register为注册
  8584. // type=login为登录
  8585. return (0, _request.default)({
  8586. url: '/api/register/verify',
  8587. method: 'post',
  8588. data: data });
  8589. }
  8590. // 获取用户信息
  8591. function getUserInfo(data) {
  8592. return (0, _request.default)({
  8593. url: '/api/userinfo',
  8594. method: 'get',
  8595. data: data });
  8596. }
  8597. // 短信登录
  8598. function loginMobile(data) {
  8599. return (0, _request.default)({
  8600. url: '/api/login/mobile',
  8601. method: 'post',
  8602. data: data });
  8603. }
  8604. /***/ }),
  8605. /***/ 373:
  8606. /*!********************************************************************!*\
  8607. !*** /Users/wanglili/Documents/liuniu/jxred/utils/wxMinProgram.js ***!
  8608. \********************************************************************/
  8609. /*! no static exports found */
  8610. /***/ (function(module, exports, __webpack_require__) {
  8611. "use strict";
  8612. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.loginWinxinMp = loginWinxinMp;var _store = _interopRequireDefault(__webpack_require__(/*! ../store */ 5));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  8613. //微信登录
  8614. /**
  8615. * @param {string} 当前页面地址信息
  8616. */
  8617. function loginWinxinMp() {
  8618. var pages = getCurrentPages();
  8619. // 获取跳转前页面
  8620. var page = pages[pages.length - 2];
  8621. var queryUrl = '';
  8622. for (var key in page.options) {
  8623. queryUrl += key + '=' + page.options[key] + "&";
  8624. }
  8625. // 获取当页面路由地址
  8626. var path = '/' + page.route + '?' + queryUrl;
  8627. // 保存跳转前页面
  8628. uni.setStorageSync('present', path);
  8629. return new Promise(function (resolve, reject) {
  8630. wx.login({
  8631. success: function success(e) {
  8632. console.log(e);
  8633. resolve(e);
  8634. },
  8635. fill: function fill(e) {
  8636. reject(e);
  8637. } });
  8638. });
  8639. };
  8640. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  8641. /***/ }),
  8642. /***/ 381:
  8643. /*!****************************************************************************!*\
  8644. !*** /Users/wanglili/Documents/liuniu/jxred/components/uni-popup/popup.js ***!
  8645. \****************************************************************************/
  8646. /*! no static exports found */
  8647. /***/ (function(module, exports, __webpack_require__) {
  8648. "use strict";
  8649. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _message = _interopRequireDefault(__webpack_require__(/*! ./message.js */ 382));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  8650. // 定义 type 类型:弹出类型:top/bottom/center
  8651. var config = {
  8652. // 顶部弹出
  8653. top: 'top',
  8654. // 底部弹出
  8655. bottom: 'bottom',
  8656. // 居中弹出
  8657. center: 'center',
  8658. // 消息提示
  8659. message: 'top',
  8660. // 对话框
  8661. dialog: 'center',
  8662. // 分享
  8663. share: 'bottom' };var _default =
  8664. {
  8665. data: function data() {
  8666. return {
  8667. config: config };
  8668. },
  8669. mixins: [_message.default] };exports.default = _default;
  8670. /***/ }),
  8671. /***/ 382:
  8672. /*!******************************************************************************!*\
  8673. !*** /Users/wanglili/Documents/liuniu/jxred/components/uni-popup/message.js ***!
  8674. \******************************************************************************/
  8675. /*! no static exports found */
  8676. /***/ (function(module, exports, __webpack_require__) {
  8677. "use strict";
  8678. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  8679. created: function created() {
  8680. if (this.type === 'message') {
  8681. // 不显示遮罩
  8682. this.maskShow = false;
  8683. // 获取子组件对象
  8684. this.childrenMsg = null;
  8685. }
  8686. },
  8687. methods: {
  8688. customOpen: function customOpen() {
  8689. if (this.childrenMsg) {
  8690. this.childrenMsg.open();
  8691. }
  8692. },
  8693. customClose: function customClose() {
  8694. if (this.childrenMsg) {
  8695. this.childrenMsg.close();
  8696. }
  8697. } } };exports.default = _default;
  8698. /***/ }),
  8699. /***/ 4:
  8700. /*!*********************************************************!*\
  8701. !*** /Users/wanglili/Documents/liuniu/jxred/pages.json ***!
  8702. \*********************************************************/
  8703. /*! no static exports found */
  8704. /***/ (function(module, exports) {
  8705. /***/ }),
  8706. /***/ 404:
  8707. /*!*****************************************************************************************!*\
  8708. !*** /Users/wanglili/Documents/liuniu/jxred/components/jyf-parser/libs/MpHtmlParser.js ***!
  8709. \*****************************************************************************************/
  8710. /*! no static exports found */
  8711. /***/ (function(module, exports, __webpack_require__) {
  8712. /* WEBPACK VAR INJECTION */(function(uni) {/**
  8713. * html 解析器
  8714. * @tutorial https://github.com/jin-yufeng/Parser
  8715. * @version 20200728
  8716. * @author JinYufeng
  8717. * @listens MIT
  8718. */
  8719. var cfg = __webpack_require__(/*! ./config.js */ 405),
  8720. blankChar = cfg.blankChar,
  8721. CssHandler = __webpack_require__(/*! ./CssHandler.js */ 406),
  8722. windowWidth = uni.getSystemInfoSync().windowWidth;
  8723. var emoji;
  8724. function MpHtmlParser(data) {var _this = this;var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  8725. this.attrs = {};
  8726. this.CssHandler = new CssHandler(options.tagStyle, windowWidth);
  8727. this.data = data;
  8728. this.domain = options.domain;
  8729. this.DOM = [];
  8730. this.i = this.start = this.audioNum = this.imgNum = this.videoNum = 0;
  8731. options.prot = (this.domain || '').includes('://') ? this.domain.split('://')[0] : 'http';
  8732. this.options = options;
  8733. this.state = this.Text;
  8734. this.STACK = [];
  8735. // 工具函数
  8736. this.bubble = function () {
  8737. for (var i = _this.STACK.length, item; item = _this.STACK[--i];) {
  8738. if (cfg.richOnlyTags[item.name]) {
  8739. if (item.name == 'table' && !Object.hasOwnProperty.call(item, 'c')) item.c = 1;
  8740. return false;
  8741. }
  8742. item.c = 1;
  8743. }
  8744. return true;
  8745. };
  8746. this.decode = function (val, amp) {
  8747. var i = -1,
  8748. j,en;
  8749. while (1) {
  8750. if ((i = val.indexOf('&', i + 1)) == -1) break;
  8751. if ((j = val.indexOf(';', i + 2)) == -1) break;
  8752. if (val[i + 1] == '#') {
  8753. en = parseInt((val[i + 2] == 'x' ? '0' : '') + val.substring(i + 2, j));
  8754. if (!isNaN(en)) val = val.substr(0, i) + String.fromCharCode(en) + val.substr(j + 1);
  8755. } else {
  8756. en = val.substring(i + 1, j);
  8757. if (cfg.entities[en] || en == amp)
  8758. val = val.substr(0, i) + (cfg.entities[en] || '&') + val.substr(j + 1);
  8759. }
  8760. }
  8761. return val;
  8762. };
  8763. this.getUrl = function (url) {
  8764. if (url[0] == '/') {
  8765. if (url[1] == '/') url = _this.options.prot + ':' + url;else
  8766. if (_this.domain) url = _this.domain + url;
  8767. } else if (_this.domain && url.indexOf('data:') != 0 && !url.includes('://'))
  8768. url = _this.domain + '/' + url;
  8769. return url;
  8770. };
  8771. this.isClose = function () {return _this.data[_this.i] == '>' || _this.data[_this.i] == '/' && _this.data[_this.i + 1] == '>';};
  8772. this.section = function () {return _this.data.substring(_this.start, _this.i);};
  8773. this.parent = function () {return _this.STACK[_this.STACK.length - 1];};
  8774. this.siblings = function () {return _this.STACK.length ? _this.parent().children : _this.DOM;};
  8775. }
  8776. MpHtmlParser.prototype.parse = function () {
  8777. if (emoji) this.data = emoji.parseEmoji(this.data);
  8778. for (var c; c = this.data[this.i]; this.i++) {
  8779. this.state(c);}
  8780. if (this.state == this.Text) this.setText();
  8781. while (this.STACK.length) {this.popNode(this.STACK.pop());}
  8782. return this.DOM;
  8783. };
  8784. // 设置属性
  8785. MpHtmlParser.prototype.setAttr = function () {
  8786. var name = this.attrName.toLowerCase(),
  8787. val = this.attrVal;
  8788. if (cfg.boolAttrs[name]) this.attrs[name] = 'T';else
  8789. if (val) {
  8790. if (name == 'src' || name == 'data-src' && !this.attrs.src) this.attrs.src = this.getUrl(this.decode(val, 'amp'));else
  8791. if (name == 'href' || name == 'style') this.attrs[name] = this.decode(val, 'amp');else
  8792. if (name.substr(0, 5) != 'data-') this.attrs[name] = val;
  8793. }
  8794. this.attrVal = '';
  8795. while (blankChar[this.data[this.i]]) {this.i++;}
  8796. if (this.isClose()) this.setNode();else
  8797. {
  8798. this.start = this.i;
  8799. this.state = this.AttrName;
  8800. }
  8801. };
  8802. // 设置文本节点
  8803. MpHtmlParser.prototype.setText = function () {
  8804. var back,text = this.section();
  8805. if (!text) return;
  8806. text = cfg.onText && cfg.onText(text, function () {return back = true;}) || text;
  8807. if (back) {
  8808. this.data = this.data.substr(0, this.start) + text + this.data.substr(this.i);
  8809. var j = this.start + text.length;
  8810. for (this.i = this.start; this.i < j; this.i++) {this.state(this.data[this.i]);}
  8811. return;
  8812. }
  8813. if (!this.pre) {
  8814. // 合并空白符
  8815. var flag,tmp = [];
  8816. for (var i = text.length, c; c = text[--i];) {
  8817. if (!blankChar[c]) {
  8818. tmp.unshift(c);
  8819. if (!flag) flag = 1;
  8820. } else {
  8821. if (tmp[0] != ' ') tmp.unshift(' ');
  8822. if (c == '\n' && flag == void 0) flag = 0;
  8823. }}
  8824. if (flag == 0) return;
  8825. text = tmp.join('');
  8826. }
  8827. this.siblings().push({
  8828. type: 'text',
  8829. text: this.decode(text) });
  8830. };
  8831. // 设置元素节点
  8832. MpHtmlParser.prototype.setNode = function () {
  8833. var node = {
  8834. name: this.tagName.toLowerCase(),
  8835. attrs: this.attrs },
  8836. close = cfg.selfClosingTags[node.name];
  8837. if (this.options.nodes.length) node.type = 'node';
  8838. this.attrs = {};
  8839. if (!cfg.ignoreTags[node.name]) {
  8840. // 处理属性
  8841. var attrs = node.attrs,
  8842. style = this.CssHandler.match(node.name, attrs, node) + (attrs.style || ''),
  8843. styleObj = {};
  8844. if (attrs.id) {
  8845. if (this.options.compress & 1) attrs.id = void 0;else
  8846. if (this.options.useAnchor) this.bubble();
  8847. }
  8848. if (this.options.compress & 2 && attrs.class) attrs.class = void 0;
  8849. switch (node.name) {
  8850. case 'a':
  8851. case 'ad':
  8852. this.bubble();
  8853. break;
  8854. case 'font':
  8855. if (attrs.color) {
  8856. styleObj['color'] = attrs.color;
  8857. attrs.color = void 0;
  8858. }
  8859. if (attrs.face) {
  8860. styleObj['font-family'] = attrs.face;
  8861. attrs.face = void 0;
  8862. }
  8863. if (attrs.size) {
  8864. var size = parseInt(attrs.size);
  8865. if (size < 1) size = 1;else
  8866. if (size > 7) size = 7;
  8867. var map = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'];
  8868. styleObj['font-size'] = map[size - 1];
  8869. attrs.size = void 0;
  8870. }
  8871. break;
  8872. case 'embed':
  8873. var src = node.attrs.src || '',
  8874. type = node.attrs.type || '';
  8875. if (type.includes('video') || src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8'))
  8876. node.name = 'video';else
  8877. if (type.includes('audio') || src.includes('.m4a') || src.includes('.wav') || src.includes('.mp3') || src.includes(
  8878. '.aac'))
  8879. node.name = 'audio';else
  8880. break;
  8881. if (node.attrs.autostart)
  8882. node.attrs.autoplay = 'T';
  8883. node.attrs.controls = 'T';
  8884. case 'video':
  8885. case 'audio':
  8886. if (!attrs.id) attrs.id = node.name + ++this["".concat(node.name, "Num")];else
  8887. this["".concat(node.name, "Num")]++;
  8888. if (node.name == 'video') {
  8889. if (this.videoNum > 3)
  8890. node.lazyLoad = 1;
  8891. if (attrs.width) {
  8892. styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px');
  8893. attrs.width = void 0;
  8894. }
  8895. if (attrs.height) {
  8896. styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px');
  8897. attrs.height = void 0;
  8898. }
  8899. }
  8900. if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T';
  8901. attrs.source = [];
  8902. if (attrs.src) {
  8903. attrs.source.push(attrs.src);
  8904. attrs.src = void 0;
  8905. }
  8906. this.bubble();
  8907. break;
  8908. case 'td':
  8909. case 'th':
  8910. if (attrs.colspan || attrs.rowspan)
  8911. for (var k = this.STACK.length, item; item = this.STACK[--k];) {
  8912. if (item.name == 'table') {
  8913. item.c = void 0;
  8914. break;
  8915. }}}
  8916. if (attrs.align) {
  8917. styleObj['text-align'] = attrs.align;
  8918. attrs.align = void 0;
  8919. }
  8920. // 压缩 style
  8921. var styles = style.split(';');
  8922. style = '';
  8923. for (var i = 0, len = styles.length; i < len; i++) {
  8924. var info = styles[i].split(':');
  8925. if (info.length < 2) continue;
  8926. var _key = info[0].trim().toLowerCase(),
  8927. _value = info.slice(1).join(':').trim();
  8928. if (_value[0] == '-' || _value.includes('safe'))
  8929. style += ";".concat(_key, ":").concat(_value);else
  8930. if (!styleObj[_key] || _value.includes('import') || !styleObj[_key].includes('import'))
  8931. styleObj[_key] = _value;
  8932. }
  8933. if (node.name == 'img') {
  8934. if (attrs.src && !attrs.ignore) {
  8935. if (this.bubble())
  8936. attrs.i = (this.imgNum++).toString();else
  8937. attrs.ignore = 'T';
  8938. }
  8939. if (attrs.ignore) {
  8940. style += ';-webkit-touch-callout:none';
  8941. styleObj['max-width'] = '100%';
  8942. }
  8943. var width;
  8944. if (styleObj.width) width = styleObj.width;else
  8945. if (attrs.width) width = attrs.width.includes('%') ? attrs.width : attrs.width + 'px';
  8946. if (width) {
  8947. styleObj.width = width;
  8948. attrs.width = '100%';
  8949. if (parseInt(width) > windowWidth) {
  8950. styleObj.height = '';
  8951. if (attrs.height) attrs.height = void 0;
  8952. }
  8953. }
  8954. if (styleObj.height) {
  8955. attrs.height = styleObj.height;
  8956. styleObj.height = '';
  8957. } else if (attrs.height && !attrs.height.includes('%'))
  8958. attrs.height += 'px';
  8959. }
  8960. for (var key in styleObj) {
  8961. var value = styleObj[key];
  8962. if (!value) continue;
  8963. if (key.includes('flex') || key == 'order' || key == 'self-align') node.c = 1;
  8964. // 填充链接
  8965. if (value.includes('url')) {
  8966. var j = value.indexOf('(');
  8967. if (j++ != -1) {
  8968. while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) {j++;}
  8969. value = value.substr(0, j) + this.getUrl(value.substr(j));
  8970. }
  8971. }
  8972. // 转换 rpx
  8973. else if (value.includes('rpx'))
  8974. value = value.replace(/[0-9.]+\s*rpx/g, function ($) {return parseFloat($) * windowWidth / 750 + 'px';});else
  8975. if (key == 'white-space' && value.includes('pre') && !close)
  8976. this.pre = node.pre = true;
  8977. style += ";".concat(key, ":").concat(value);
  8978. }
  8979. style = style.substr(1);
  8980. if (style) attrs.style = style;
  8981. if (!close) {
  8982. node.children = [];
  8983. if (node.name == 'pre' && cfg.highlight) {
  8984. this.remove(node);
  8985. this.pre = node.pre = true;
  8986. }
  8987. this.siblings().push(node);
  8988. this.STACK.push(node);
  8989. } else if (!cfg.filter || cfg.filter(node, this) != false)
  8990. this.siblings().push(node);
  8991. } else {
  8992. if (!close) this.remove(node);else
  8993. if (node.name == 'source') {
  8994. var parent = this.parent();
  8995. if (parent && (parent.name == 'video' || parent.name == 'audio') && node.attrs.src)
  8996. parent.attrs.source.push(node.attrs.src);
  8997. } else if (node.name == 'base' && !this.domain) this.domain = node.attrs.href;
  8998. }
  8999. if (this.data[this.i] == '/') this.i++;
  9000. this.start = this.i + 1;
  9001. this.state = this.Text;
  9002. };
  9003. // 移除标签
  9004. MpHtmlParser.prototype.remove = function (node) {var _this2 = this;
  9005. var name = node.name,
  9006. j = this.i;
  9007. // 处理 svg
  9008. var handleSvg = function handleSvg() {
  9009. var src = _this2.data.substring(j, _this2.i + 1);
  9010. if (!node.attrs.xmlns) src = ' xmlns="http://www.w3.org/2000/svg"' + src;
  9011. var i = j;
  9012. while (_this2.data[j] != '<') {j--;}
  9013. src = _this2.data.substring(j, i).replace("viewbox", "viewBox") + src;
  9014. var parent = _this2.parent();
  9015. if (node.attrs.width == '100%' && parent && (parent.attrs.style || '').includes('inline'))
  9016. parent.attrs.style = 'width:300px;max-width:100%;' + parent.attrs.style;
  9017. _this2.siblings().push({
  9018. name: 'img',
  9019. attrs: {
  9020. src: 'data:image/svg+xml;utf8,' + src.replace(/#/g, '%23'),
  9021. style: (/vertical[^;]+/.exec(node.attrs.style) || []).shift(),
  9022. ignore: 'T' } });
  9023. };
  9024. if (node.name == 'svg' && this.data[j] == '/') return handleSvg(this.i++);
  9025. while (1) {
  9026. if ((this.i = this.data.indexOf('</', this.i + 1)) == -1) {
  9027. if (name == 'pre' || name == 'svg') this.i = j;else
  9028. this.i = this.data.length;
  9029. return;
  9030. }
  9031. this.start = this.i += 2;
  9032. while (!blankChar[this.data[this.i]] && !this.isClose()) {this.i++;}
  9033. if (this.section().toLowerCase() == name) {
  9034. // 代码块高亮
  9035. if (name == 'pre') {
  9036. this.data = this.data.substr(0, j + 1) + cfg.highlight(this.data.substring(j + 1, this.i - 5), node.attrs) + this.data.
  9037. substr(this.i - 5);
  9038. return this.i = j;
  9039. } else if (name == 'style')
  9040. this.CssHandler.getStyle(this.data.substring(j + 1, this.i - 7));else
  9041. if (name == 'title')
  9042. this.DOM.title = this.data.substring(j + 1, this.i - 7);
  9043. if ((this.i = this.data.indexOf('>', this.i)) == -1) this.i = this.data.length;
  9044. if (name == 'svg') handleSvg();
  9045. return;
  9046. }
  9047. }
  9048. };
  9049. // 节点出栈处理
  9050. MpHtmlParser.prototype.popNode = function (node) {
  9051. // 空白符处理
  9052. if (node.pre) {
  9053. node.pre = this.pre = void 0;
  9054. for (var i = this.STACK.length; i--;) {
  9055. if (this.STACK[i].pre)
  9056. this.pre = true;}
  9057. }
  9058. var siblings = this.siblings(),
  9059. len = siblings.length,
  9060. childs = node.children;
  9061. if (node.name == 'head' || cfg.filter && cfg.filter(node, this) == false)
  9062. return siblings.pop();
  9063. var attrs = node.attrs;
  9064. // 替换一些标签名
  9065. if (cfg.blockTags[node.name]) node.name = 'div';else
  9066. if (!cfg.trustTags[node.name]) node.name = 'span';
  9067. // 处理列表
  9068. if (node.c && (node.name == 'ul' || node.name == 'ol')) {
  9069. if ((node.attrs.style || '').includes('list-style:none')) {
  9070. for (var _i = 0, child; child = childs[_i++];) {
  9071. if (child.name == 'li')
  9072. child.name = 'div';}
  9073. } else if (node.name == 'ul') {
  9074. var floor = 1;
  9075. for (var _i2 = this.STACK.length; _i2--;) {
  9076. if (this.STACK[_i2].name == 'ul') floor++;}
  9077. if (floor != 1)
  9078. for (var _i3 = childs.length; _i3--;) {
  9079. childs[_i3].floor = floor;}
  9080. } else {
  9081. for (var _i4 = 0, num = 1, _child; _child = childs[_i4++];) {
  9082. if (_child.name == 'li') {
  9083. _child.type = 'ol';
  9084. _child.num = function (num, type) {
  9085. if (type == 'a') return String.fromCharCode(97 + (num - 1) % 26);
  9086. if (type == 'A') return String.fromCharCode(65 + (num - 1) % 26);
  9087. if (type == 'i' || type == 'I') {
  9088. num = (num - 1) % 99 + 1;
  9089. var one = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX'],
  9090. ten = ['X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC'],
  9091. res = (ten[Math.floor(num / 10) - 1] || '') + (one[num % 10 - 1] || '');
  9092. if (type == 'i') return res.toLowerCase();
  9093. return res;
  9094. }
  9095. return num;
  9096. }(num++, attrs.type) + '.';
  9097. }}
  9098. }
  9099. }
  9100. // 处理表格的边框
  9101. if (node.name == 'table') {
  9102. var padding = attrs.cellpadding,
  9103. spacing = attrs.cellspacing,
  9104. border = attrs.border;
  9105. if (node.c) {
  9106. this.bubble();
  9107. attrs.style = (attrs.style || '') + ';display:table';
  9108. if (!padding) padding = 2;
  9109. if (!spacing) spacing = 2;
  9110. }
  9111. if (border) attrs.style = "border:".concat(border, "px solid gray;").concat(attrs.style || '');
  9112. if (spacing) attrs.style = "border-spacing:".concat(spacing, "px;").concat(attrs.style || '');
  9113. if (border || padding || node.c)
  9114. (function f(ns) {
  9115. for (var i = 0, n; n = ns[i]; i++) {
  9116. if (n.type == 'text') continue;
  9117. var style = n.attrs.style || '';
  9118. if (node.c && n.name[0] == 't') {
  9119. n.c = 1;
  9120. style += ';display:table-' + (n.name == 'th' || n.name == 'td' ? 'cell' : n.name == 'tr' ? 'row' : 'row-group');
  9121. }
  9122. if (n.name == 'th' || n.name == 'td') {
  9123. if (border) style = "border:".concat(border, "px solid gray;").concat(style);
  9124. if (padding) style = "padding:".concat(padding, "px;").concat(style);
  9125. } else f(n.children || []);
  9126. if (style) n.attrs.style = style;
  9127. }
  9128. })(childs);
  9129. if (this.options.autoscroll) {
  9130. var table = Object.assign({}, node);
  9131. node.name = 'div';
  9132. node.attrs = {
  9133. style: 'overflow:scroll' };
  9134. node.children = [table];
  9135. }
  9136. }
  9137. this.CssHandler.pop && this.CssHandler.pop(node);
  9138. // 自动压缩
  9139. if (node.name == 'div' && !Object.keys(attrs).length && childs.length == 1 && childs[0].name == 'div')
  9140. siblings[len - 1] = childs[0];
  9141. };
  9142. // 状态机
  9143. MpHtmlParser.prototype.Text = function (c) {
  9144. if (c == '<') {
  9145. var next = this.data[this.i + 1],
  9146. isLetter = function isLetter(c) {return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';};
  9147. if (isLetter(next)) {
  9148. this.setText();
  9149. this.start = this.i + 1;
  9150. this.state = this.TagName;
  9151. } else if (next == '/') {
  9152. this.setText();
  9153. if (isLetter(this.data[++this.i + 1])) {
  9154. this.start = this.i + 1;
  9155. this.state = this.EndTag;
  9156. } else this.Comment();
  9157. } else if (next == '!' || next == '?') {
  9158. this.setText();
  9159. this.Comment();
  9160. }
  9161. }
  9162. };
  9163. MpHtmlParser.prototype.Comment = function () {
  9164. var key;
  9165. if (this.data.substring(this.i + 2, this.i + 4) == '--') key = '-->';else
  9166. if (this.data.substring(this.i + 2, this.i + 9) == '[CDATA[') key = ']]>';else
  9167. key = '>';
  9168. if ((this.i = this.data.indexOf(key, this.i + 2)) == -1) this.i = this.data.length;else
  9169. this.i += key.length - 1;
  9170. this.start = this.i + 1;
  9171. this.state = this.Text;
  9172. };
  9173. MpHtmlParser.prototype.TagName = function (c) {
  9174. if (blankChar[c]) {
  9175. this.tagName = this.section();
  9176. while (blankChar[this.data[this.i]]) {this.i++;}
  9177. if (this.isClose()) this.setNode();else
  9178. {
  9179. this.start = this.i;
  9180. this.state = this.AttrName;
  9181. }
  9182. } else if (this.isClose()) {
  9183. this.tagName = this.section();
  9184. this.setNode();
  9185. }
  9186. };
  9187. MpHtmlParser.prototype.AttrName = function (c) {
  9188. if (c == '=' || blankChar[c] || this.isClose()) {
  9189. this.attrName = this.section();
  9190. if (blankChar[c])
  9191. while (blankChar[this.data[++this.i]]) {;}
  9192. if (this.data[this.i] == '=') {
  9193. while (blankChar[this.data[++this.i]]) {;}
  9194. this.start = this.i--;
  9195. this.state = this.AttrValue;
  9196. } else this.setAttr();
  9197. }
  9198. };
  9199. MpHtmlParser.prototype.AttrValue = function (c) {
  9200. if (c == '"' || c == "'") {
  9201. this.start++;
  9202. if ((this.i = this.data.indexOf(c, this.i + 1)) == -1) return this.i = this.data.length;
  9203. this.attrVal = this.section();
  9204. this.i++;
  9205. } else {
  9206. for (; !blankChar[this.data[this.i]] && !this.isClose(); this.i++) {;}
  9207. this.attrVal = this.section();
  9208. }
  9209. this.setAttr();
  9210. };
  9211. MpHtmlParser.prototype.EndTag = function (c) {
  9212. if (blankChar[c] || c == '>' || c == '/') {
  9213. var name = this.section().toLowerCase();
  9214. for (var i = this.STACK.length; i--;) {
  9215. if (this.STACK[i].name == name) break;}
  9216. if (i != -1) {
  9217. var node;
  9218. while ((node = this.STACK.pop()).name != name) {this.popNode(node);}
  9219. this.popNode(node);
  9220. } else if (name == 'p' || name == 'br')
  9221. this.siblings().push({
  9222. name: name,
  9223. attrs: {} });
  9224. this.i = this.data.indexOf('>', this.i);
  9225. this.start = this.i + 1;
  9226. if (this.i == -1) this.i = this.data.length;else
  9227. this.state = this.Text;
  9228. }
  9229. };
  9230. module.exports = MpHtmlParser;
  9231. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  9232. /***/ }),
  9233. /***/ 405:
  9234. /*!***********************************************************************************!*\
  9235. !*** /Users/wanglili/Documents/liuniu/jxred/components/jyf-parser/libs/config.js ***!
  9236. \***********************************************************************************/
  9237. /*! no static exports found */
  9238. /***/ (function(module, exports) {
  9239. /* 配置文件 */
  9240. var cfg = {
  9241. // 出错占位图
  9242. errorImg: null,
  9243. // 过滤器函数
  9244. filter: null,
  9245. // 代码高亮函数
  9246. highlight: null,
  9247. // 文本处理函数
  9248. onText: null,
  9249. // 实体编码列表
  9250. entities: {
  9251. quot: '"',
  9252. apos: "'",
  9253. semi: ';',
  9254. nbsp: '\xA0',
  9255. ensp: "\u2002",
  9256. emsp: "\u2003",
  9257. ndash: '–',
  9258. mdash: '—',
  9259. middot: '·',
  9260. lsquo: '‘',
  9261. rsquo: '’',
  9262. ldquo: '“',
  9263. rdquo: '”',
  9264. bull: '•',
  9265. hellip: '…' },
  9266. blankChar: makeMap(' ,\xA0,\t,\r,\n,\f'),
  9267. boolAttrs: makeMap('allowfullscreen,autoplay,autostart,controls,ignore,loop,muted'),
  9268. // 块级标签,将被转为 div
  9269. blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
  9270. // 将被移除的标签
  9271. ignoreTags: makeMap('area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr'),
  9272. // 只能被 rich-text 显示的标签
  9273. richOnlyTags: makeMap('a,colgroup,fieldset,legend,table'),
  9274. // 自闭合的标签
  9275. selfClosingTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
  9276. // 信任的标签
  9277. trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'),
  9278. // 默认的标签样式
  9279. userAgentStyles: {
  9280. address: 'font-style:italic',
  9281. big: 'display:inline;font-size:1.2em',
  9282. blockquote: 'background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px',
  9283. caption: 'display:table-caption;text-align:center',
  9284. center: 'text-align:center',
  9285. cite: 'font-style:italic',
  9286. dd: 'margin-left:40px',
  9287. mark: 'background-color:yellow',
  9288. pre: 'font-family:monospace;white-space:pre;overflow:scroll',
  9289. s: 'text-decoration:line-through',
  9290. small: 'display:inline;font-size:0.8em',
  9291. u: 'text-decoration:underline' } };
  9292. function makeMap(str) {
  9293. var map = Object.create(null),
  9294. list = str.split(',');
  9295. for (var i = list.length; i--;) {
  9296. map[list[i]] = true;}
  9297. return map;
  9298. }
  9299. if (wx.canIUse('editor')) {
  9300. cfg.blockTags.pre = void 0;
  9301. cfg.ignoreTags.rp = true;
  9302. Object.assign(cfg.richOnlyTags, makeMap('bdi,bdo,caption,rt,ruby'));
  9303. Object.assign(cfg.trustTags, makeMap('bdi,bdo,caption,pre,rt,ruby'));
  9304. }
  9305. module.exports = cfg;
  9306. /***/ }),
  9307. /***/ 406:
  9308. /*!***************************************************************************************!*\
  9309. !*** /Users/wanglili/Documents/liuniu/jxred/components/jyf-parser/libs/CssHandler.js ***!
  9310. \***************************************************************************************/
  9311. /*! no static exports found */
  9312. /***/ (function(module, exports, __webpack_require__) {
  9313. var cfg = __webpack_require__(/*! ./config.js */ 405),
  9314. isLetter = function isLetter(c) {return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';};
  9315. function CssHandler(tagStyle) {
  9316. var styles = Object.assign(Object.create(null), cfg.userAgentStyles);
  9317. for (var item in tagStyle) {
  9318. styles[item] = (styles[item] ? styles[item] + ';' : '') + tagStyle[item];}
  9319. this.styles = styles;
  9320. }
  9321. CssHandler.prototype.getStyle = function (data) {
  9322. this.styles = new parser(data, this.styles).parse();
  9323. };
  9324. CssHandler.prototype.match = function (name, attrs) {
  9325. var tmp,matched = (tmp = this.styles[name]) ? tmp + ';' : '';
  9326. if (attrs.class) {
  9327. var items = attrs.class.split(' ');
  9328. for (var i = 0, item; item = items[i]; i++) {
  9329. if (tmp = this.styles['.' + item])
  9330. matched += tmp + ';';}
  9331. }
  9332. if (tmp = this.styles['#' + attrs.id])
  9333. matched += tmp + ';';
  9334. return matched;
  9335. };
  9336. module.exports = CssHandler;
  9337. function parser(data, init) {
  9338. this.data = data;
  9339. this.floor = 0;
  9340. this.i = 0;
  9341. this.list = [];
  9342. this.res = init;
  9343. this.state = this.Space;
  9344. }
  9345. parser.prototype.parse = function () {
  9346. for (var c; c = this.data[this.i]; this.i++) {
  9347. this.state(c);}
  9348. return this.res;
  9349. };
  9350. parser.prototype.section = function () {
  9351. return this.data.substring(this.start, this.i);
  9352. };
  9353. // 状态机
  9354. parser.prototype.Space = function (c) {
  9355. if (c == '.' || c == '#' || isLetter(c)) {
  9356. this.start = this.i;
  9357. this.state = this.Name;
  9358. } else if (c == '/' && this.data[this.i + 1] == '*')
  9359. this.Comment();else
  9360. if (!cfg.blankChar[c] && c != ';')
  9361. this.state = this.Ignore;
  9362. };
  9363. parser.prototype.Comment = function () {
  9364. this.i = this.data.indexOf('*/', this.i) + 1;
  9365. if (!this.i) this.i = this.data.length;
  9366. this.state = this.Space;
  9367. };
  9368. parser.prototype.Ignore = function (c) {
  9369. if (c == '{') this.floor++;else
  9370. if (c == '}' && ! --this.floor) this.state = this.Space;
  9371. };
  9372. parser.prototype.Name = function (c) {
  9373. if (cfg.blankChar[c]) {
  9374. this.list.push(this.section());
  9375. this.state = this.NameSpace;
  9376. } else if (c == '{') {
  9377. this.list.push(this.section());
  9378. this.Content();
  9379. } else if (c == ',') {
  9380. this.list.push(this.section());
  9381. this.Comma();
  9382. } else if (!isLetter(c) && (c < '0' || c > '9') && c != '-' && c != '_')
  9383. this.state = this.Ignore;
  9384. };
  9385. parser.prototype.NameSpace = function (c) {
  9386. if (c == '{') this.Content();else
  9387. if (c == ',') this.Comma();else
  9388. if (!cfg.blankChar[c]) this.state = this.Ignore;
  9389. };
  9390. parser.prototype.Comma = function () {
  9391. while (cfg.blankChar[this.data[++this.i]]) {;}
  9392. if (this.data[this.i] == '{') this.Content();else
  9393. {
  9394. this.start = this.i--;
  9395. this.state = this.Name;
  9396. }
  9397. };
  9398. parser.prototype.Content = function () {
  9399. this.start = ++this.i;
  9400. if ((this.i = this.data.indexOf('}', this.i)) == -1) this.i = this.data.length;
  9401. var content = this.section();
  9402. for (var i = 0, item; item = this.list[i++];) {
  9403. if (this.res[item]) this.res[item] += ';' + content;else
  9404. this.res[item] = content;}
  9405. this.list = [];
  9406. this.state = this.Space;
  9407. };
  9408. /***/ }),
  9409. /***/ 435:
  9410. /*!****************************************************************************************!*\
  9411. !*** /Users/wanglili/Documents/liuniu/jxred/components/wangding-pickerAddress/data.js ***!
  9412. \****************************************************************************************/
  9413. /*! no static exports found */
  9414. /***/ (function(module, exports, __webpack_require__) {
  9415. "use strict";
  9416. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = [
  9417. {
  9418. "name": "北京市",
  9419. "city": [
  9420. {
  9421. "name": "北京市",
  9422. "area": [
  9423. "东城区",
  9424. "西城区",
  9425. "崇文区",
  9426. "宣武区",
  9427. "朝阳区",
  9428. "丰台区",
  9429. "石景山区",
  9430. "海淀区",
  9431. "门头沟区",
  9432. "房山区",
  9433. "通州区",
  9434. "顺义区",
  9435. "昌平区",
  9436. "大兴区",
  9437. "平谷区",
  9438. "怀柔区",
  9439. "密云县",
  9440. "延庆县"] }] },
  9441. {
  9442. "name": "天津市",
  9443. "city": [
  9444. {
  9445. "name": "天津市",
  9446. "area": [
  9447. "和平区",
  9448. "河东区",
  9449. "河西区",
  9450. "南开区",
  9451. "河北区",
  9452. "红桥区",
  9453. "塘沽区",
  9454. "汉沽区",
  9455. "大港区",
  9456. "东丽区",
  9457. "西青区",
  9458. "津南区",
  9459. "北辰区",
  9460. "武清区",
  9461. "宝坻区",
  9462. "宁河县",
  9463. "静海县",
  9464. "蓟 县"] }] },
  9465. {
  9466. "name": "河北省",
  9467. "city": [
  9468. {
  9469. "name": "石家庄市",
  9470. "area": [
  9471. "长安区",
  9472. "桥东区",
  9473. "桥西区",
  9474. "新华区",
  9475. "郊 区",
  9476. "井陉矿区",
  9477. "井陉县",
  9478. "正定县",
  9479. "栾城县",
  9480. "行唐县",
  9481. "灵寿县",
  9482. "高邑县",
  9483. "深泽县",
  9484. "赞皇县",
  9485. "无极县",
  9486. "平山县",
  9487. "元氏县",
  9488. "赵 县",
  9489. "辛集市",
  9490. "藁",
  9491. "晋州市",
  9492. "新乐市",
  9493. "鹿泉市"] },
  9494. {
  9495. "name": "唐山市",
  9496. "area": [
  9497. "路南区",
  9498. "路北区",
  9499. "古冶区",
  9500. "开平区",
  9501. "新 区",
  9502. "丰润县",
  9503. "滦 县",
  9504. "滦南县",
  9505. "乐亭县",
  9506. "迁西县",
  9507. "玉田县",
  9508. "唐海县",
  9509. "遵化市",
  9510. "丰南市",
  9511. "迁安市"] },
  9512. {
  9513. "name": "秦皇岛市",
  9514. "area": [
  9515. "海港区",
  9516. "山海关区",
  9517. "北戴河区",
  9518. "青龙满族自治县",
  9519. "昌黎县",
  9520. "抚宁县",
  9521. "卢龙县"] },
  9522. {
  9523. "name": "邯郸市",
  9524. "area": [
  9525. "邯山区",
  9526. "丛台区",
  9527. "复兴区",
  9528. "峰峰矿区",
  9529. "邯郸县",
  9530. "临漳县",
  9531. "成安县",
  9532. "大名县",
  9533. "涉 县",
  9534. "磁 县",
  9535. "肥乡县",
  9536. "永年县",
  9537. "邱 县",
  9538. "鸡泽县",
  9539. "广平县",
  9540. "馆陶县",
  9541. "魏 县",
  9542. "曲周县",
  9543. "武安市"] },
  9544. {
  9545. "name": "邢台市",
  9546. "area": [
  9547. "桥东区",
  9548. "桥西区",
  9549. "邢台县",
  9550. "临城县",
  9551. "内丘县",
  9552. "柏乡县",
  9553. "隆尧县",
  9554. "任 县",
  9555. "南和县",
  9556. "宁晋县",
  9557. "巨鹿县",
  9558. "新河县",
  9559. "广宗县",
  9560. "平乡县",
  9561. "威 县",
  9562. "清河县",
  9563. "临西县",
  9564. "南宫市",
  9565. "沙河市"] },
  9566. {
  9567. "name": "保定市",
  9568. "area": [
  9569. "新市区",
  9570. "北市区",
  9571. "南市区",
  9572. "满城县",
  9573. "清苑县",
  9574. "涞水县",
  9575. "阜平县",
  9576. "徐水县",
  9577. "定兴县",
  9578. "唐 县",
  9579. "高阳县",
  9580. "容城县",
  9581. "涞源县",
  9582. "望都县",
  9583. "安新县",
  9584. "易 县",
  9585. "曲阳县",
  9586. "蠡 县",
  9587. "顺平县",
  9588. "博野",
  9589. "雄县",
  9590. "涿州市",
  9591. "定州市",
  9592. "安国市",
  9593. "高碑店市"] },
  9594. {
  9595. "name": "张家口",
  9596. "area": [
  9597. "桥东区",
  9598. "桥西区",
  9599. "宣化区",
  9600. "下花园区",
  9601. "宣化县",
  9602. "张北县",
  9603. "康保县",
  9604. "沽源县",
  9605. "尚义县",
  9606. "蔚 县",
  9607. "阳原县",
  9608. "怀安县",
  9609. "万全县",
  9610. "怀来县",
  9611. "涿鹿县",
  9612. "赤城县",
  9613. "崇礼县"] },
  9614. {
  9615. "name": "承德市",
  9616. "area": [
  9617. "双桥区",
  9618. "双滦区",
  9619. "鹰手营子矿区",
  9620. "承德县",
  9621. "兴隆县",
  9622. "平泉县",
  9623. "滦平县",
  9624. "隆化县",
  9625. "丰宁满族自治县",
  9626. "宽城满族自治县",
  9627. "围场满族蒙古族自治县"] },
  9628. {
  9629. "name": "沧州市",
  9630. "area": [
  9631. "新华区",
  9632. "运河区",
  9633. "沧 县",
  9634. "青 县",
  9635. "东光县",
  9636. "海兴县",
  9637. "盐山县",
  9638. "肃宁县",
  9639. "南皮县",
  9640. "吴桥县",
  9641. "献 县",
  9642. "孟村回族自治县",
  9643. "泊头市",
  9644. "任丘市",
  9645. "黄骅市",
  9646. "河间市"] },
  9647. {
  9648. "name": "廊坊市",
  9649. "area": [
  9650. "安次区",
  9651. "固安县",
  9652. "永清县",
  9653. "香河县",
  9654. "大城县",
  9655. "文安县",
  9656. "大厂回族自治县",
  9657. "霸州市",
  9658. "三河市"] },
  9659. {
  9660. "name": "衡水市",
  9661. "area": [
  9662. "桃城区",
  9663. "枣强县",
  9664. "武邑县",
  9665. "武强县",
  9666. "饶阳县",
  9667. "安平县",
  9668. "故城县",
  9669. "景 县",
  9670. "阜城县",
  9671. "冀州市",
  9672. "深州市"] }] },
  9673. {
  9674. "name": "山西省",
  9675. "city": [
  9676. {
  9677. "name": "太原市",
  9678. "area": [
  9679. "小店区",
  9680. "迎泽区",
  9681. "杏花岭区",
  9682. "尖草坪区",
  9683. "万柏林区",
  9684. "晋源区",
  9685. "清徐县",
  9686. "阳曲县",
  9687. "娄烦县",
  9688. "古交市"] },
  9689. {
  9690. "name": "大同市",
  9691. "area": [
  9692. "城 区",
  9693. "矿 区",
  9694. "南郊区",
  9695. "新荣区",
  9696. "阳高县",
  9697. "天镇县",
  9698. "广灵县",
  9699. "灵丘县",
  9700. "浑源县",
  9701. "左云县",
  9702. "大同县"] },
  9703. {
  9704. "name": "阳泉市",
  9705. "area": [
  9706. "城 区",
  9707. "矿 区",
  9708. "郊 区",
  9709. "平定县",
  9710. "盂 县"] },
  9711. {
  9712. "name": "长治市",
  9713. "area": [
  9714. "城 区",
  9715. "郊 区",
  9716. "长治县",
  9717. "襄垣县",
  9718. "屯留县",
  9719. "平顺县",
  9720. "黎城县",
  9721. "壶关县",
  9722. "长子县",
  9723. "武乡县",
  9724. "沁 县",
  9725. "沁源县",
  9726. "潞城市"] },
  9727. {
  9728. "name": "晋城市",
  9729. "area": [
  9730. "城 区",
  9731. "沁水县",
  9732. "阳城县",
  9733. "陵川县",
  9734. "泽州县",
  9735. "高平市"] },
  9736. {
  9737. "name": "朔州市",
  9738. "area": [
  9739. "朔城区",
  9740. "平鲁区",
  9741. "山阴县",
  9742. "应 县",
  9743. "右玉县",
  9744. "怀仁县"] },
  9745. {
  9746. "name": "忻州市",
  9747. "area": [
  9748. "忻府区",
  9749. "原平市",
  9750. "定襄县",
  9751. "五台县",
  9752. "代 县",
  9753. "繁峙县",
  9754. "宁武县",
  9755. "静乐县",
  9756. "神池县",
  9757. "五寨县",
  9758. "岢岚县",
  9759. "河曲县",
  9760. "保德县",
  9761. "偏关县"] },
  9762. {
  9763. "name": "吕梁市",
  9764. "area": [
  9765. "离石区",
  9766. "孝义市",
  9767. "汾阳市",
  9768. "文水县",
  9769. "交城县",
  9770. "兴 县",
  9771. "临 县",
  9772. "柳林县",
  9773. "石楼县",
  9774. "岚 县",
  9775. "方山县",
  9776. "中阳县",
  9777. "交口县"] },
  9778. {
  9779. "name": "晋中市",
  9780. "area": [
  9781. "榆次市",
  9782. "介休市",
  9783. "榆社县",
  9784. "左权县",
  9785. "和顺县",
  9786. "昔阳县",
  9787. "寿阳县",
  9788. "太谷县",
  9789. "祁 县",
  9790. "平遥县",
  9791. "灵石县"] },
  9792. {
  9793. "name": "临汾市",
  9794. "area": [
  9795. "临汾市",
  9796. "侯马市",
  9797. "霍州市",
  9798. "曲沃县",
  9799. "翼城县",
  9800. "襄汾县",
  9801. "洪洞县",
  9802. "古 县",
  9803. "安泽县",
  9804. "浮山县",
  9805. "吉 县",
  9806. "乡宁县",
  9807. "蒲 县",
  9808. "大宁县",
  9809. "永和县",
  9810. "隰 县",
  9811. "汾西县"] },
  9812. {
  9813. "name": "运城市",
  9814. "area": [
  9815. "运城市",
  9816. "永济市",
  9817. "河津市",
  9818. "芮城县",
  9819. "临猗县",
  9820. "万荣县",
  9821. "新绛县",
  9822. "稷山县",
  9823. "闻喜县",
  9824. "夏 县",
  9825. "绛 县",
  9826. "平陆县",
  9827. "垣曲县"] }] },
  9828. {
  9829. "name": "内蒙古",
  9830. "city": [
  9831. {
  9832. "name": "呼和浩特市",
  9833. "area": [
  9834. "新城区",
  9835. "回民区",
  9836. "玉泉区",
  9837. "郊 区",
  9838. "土默特左旗",
  9839. "托克托县",
  9840. "和林格尔县",
  9841. "清水河县",
  9842. "武川县"] },
  9843. {
  9844. "name": "包头市",
  9845. "area": [
  9846. "东河区",
  9847. "昆都伦区",
  9848. "青山区",
  9849. "石拐矿区",
  9850. "白云矿区",
  9851. "郊 区",
  9852. "土默特右旗",
  9853. "固阳县",
  9854. "达尔罕茂明安联合旗"] },
  9855. {
  9856. "name": "乌海市",
  9857. "area": [
  9858. "海勃湾区",
  9859. "海南区",
  9860. "乌达区"] },
  9861. {
  9862. "name": "赤峰市",
  9863. "area": [
  9864. "红山区",
  9865. "元宝山区",
  9866. "松山区",
  9867. "阿鲁科尔沁旗",
  9868. "巴林左旗",
  9869. "巴林右旗",
  9870. "林西县",
  9871. "克什克腾旗",
  9872. "翁牛特旗",
  9873. "喀喇沁旗",
  9874. "宁城县",
  9875. "敖汉旗"] },
  9876. {
  9877. "name": "呼伦贝尔市",
  9878. "area": [
  9879. "海拉尔市",
  9880. "满洲里市",
  9881. "扎兰屯市",
  9882. "牙克石市",
  9883. "根河市",
  9884. "额尔古纳市",
  9885. "阿荣旗",
  9886. "莫力达瓦达斡尔族自治旗",
  9887. "鄂伦春自治旗",
  9888. "鄂温克族自治旗",
  9889. "新巴尔虎右旗",
  9890. "新巴尔虎左旗",
  9891. "陈巴尔虎旗"] },
  9892. {
  9893. "name": "兴安盟",
  9894. "area": [
  9895. "乌兰浩特市",
  9896. "阿尔山市",
  9897. "科尔沁右翼前旗",
  9898. "科尔沁右翼中旗",
  9899. "扎赉特旗",
  9900. "突泉县"] },
  9901. {
  9902. "name": "通辽市",
  9903. "area": [
  9904. "科尔沁区",
  9905. "霍林郭勒市",
  9906. "科尔沁左翼中旗",
  9907. "科尔沁左翼后旗",
  9908. "开鲁县",
  9909. "库伦旗",
  9910. "奈曼旗",
  9911. "扎鲁特旗"] },
  9912. {
  9913. "name": "锡林郭勒盟",
  9914. "area": [
  9915. "二连浩特市",
  9916. "锡林浩特市",
  9917. "阿巴嘎旗",
  9918. "苏尼特左旗",
  9919. "苏尼特右旗",
  9920. "东乌珠穆沁旗",
  9921. "西乌珠穆沁旗",
  9922. "太仆寺旗",
  9923. "镶黄旗",
  9924. "正镶白旗",
  9925. "正蓝旗",
  9926. "多伦县"] },
  9927. {
  9928. "name": "乌兰察布盟",
  9929. "area": [
  9930. "集宁市",
  9931. "丰镇市",
  9932. "卓资县",
  9933. "化德县",
  9934. "商都县",
  9935. "兴和县",
  9936. "凉城县",
  9937. "察哈尔右翼前旗",
  9938. "察哈尔右翼中旗",
  9939. "察哈尔右翼后旗",
  9940. "四子王旗"] },
  9941. {
  9942. "name": "伊克昭盟",
  9943. "area": [
  9944. "东胜市",
  9945. "达拉特旗",
  9946. "准格尔旗",
  9947. "鄂托克前旗",
  9948. "鄂托克旗",
  9949. "杭锦旗",
  9950. "乌审旗",
  9951. "伊金霍洛旗"] },
  9952. {
  9953. "name": "巴彦淖尔盟",
  9954. "area": [
  9955. "临河市",
  9956. "五原县",
  9957. "磴口县",
  9958. "乌拉特前旗",
  9959. "乌拉特中旗",
  9960. "乌拉特后旗",
  9961. "杭锦后旗"] },
  9962. {
  9963. "name": "阿拉善盟",
  9964. "area": [
  9965. "阿拉善左旗",
  9966. "阿拉善右旗",
  9967. "额济纳旗"] }] },
  9968. {
  9969. "name": "辽宁省",
  9970. "city": [
  9971. {
  9972. "name": "沈阳市",
  9973. "area": [
  9974. "沈河区",
  9975. "皇姑区",
  9976. "和平区",
  9977. "大东区",
  9978. "铁西区",
  9979. "苏家屯区",
  9980. "东陵区",
  9981. "于洪区",
  9982. "新民市",
  9983. "法库县",
  9984. "辽中县",
  9985. "康平县",
  9986. "新城子区"] },
  9987. {
  9988. "name": "大连市",
  9989. "area": [
  9990. "西岗区",
  9991. "中山区",
  9992. "沙河口区",
  9993. "甘井子区",
  9994. "旅顺口区",
  9995. "金州区",
  9996. "瓦房店市",
  9997. "普兰店市",
  9998. "庄河市",
  9999. "长海县"] },
  10000. {
  10001. "name": "鞍山市",
  10002. "area": [
  10003. "铁东区",
  10004. "铁西区",
  10005. "立山区",
  10006. "千山区",
  10007. "海城市",
  10008. "台安县",
  10009. "岫岩满族自治县"] },
  10010. {
  10011. "name": "抚顺市",
  10012. "area": [
  10013. "顺城区",
  10014. "新抚区",
  10015. "东洲区",
  10016. "望花区",
  10017. "抚顺县",
  10018. "清原满族自治县",
  10019. "新宾满族自治县"] },
  10020. {
  10021. "name": "本溪市",
  10022. "area": [
  10023. "平山区",
  10024. "明山区",
  10025. "溪湖区",
  10026. "南芬区",
  10027. "本溪满族自治县",
  10028. "桓仁满族自治县"] },
  10029. {
  10030. "name": "丹东市",
  10031. "area": [
  10032. "振兴区",
  10033. "元宝区",
  10034. "振安区",
  10035. "东港市",
  10036. "凤城市",
  10037. "宽甸满族自治县"] },
  10038. {
  10039. "name": "锦州市",
  10040. "area": [
  10041. "太和区",
  10042. "古塔区",
  10043. "凌河区",
  10044. "凌海市",
  10045. "黑山县",
  10046. "义县",
  10047. "北宁市"] },
  10048. {
  10049. "name": "营口市",
  10050. "area": [
  10051. "站前区",
  10052. "西市区",
  10053. "鲅鱼圈区",
  10054. "老边区",
  10055. "大石桥市",
  10056. "盖州市"] },
  10057. {
  10058. "name": "阜新市",
  10059. "area": [
  10060. "海州区",
  10061. "新邱区",
  10062. "太平区",
  10063. "清河门区",
  10064. "细河区",
  10065. "彰武县",
  10066. "阜新蒙古族自治县"] },
  10067. {
  10068. "name": "辽阳市",
  10069. "area": [
  10070. "白塔区",
  10071. "文圣区",
  10072. "宏伟区",
  10073. "太子河区",
  10074. "弓长岭区",
  10075. "灯塔市",
  10076. "辽阳县"] },
  10077. {
  10078. "name": "盘锦",
  10079. "area": [
  10080. "双台子区",
  10081. "兴隆台区",
  10082. "盘山县",
  10083. "大洼县"] },
  10084. {
  10085. "name": "铁岭市",
  10086. "area": [
  10087. "银州区",
  10088. "清河区",
  10089. "调兵山市",
  10090. "开原市",
  10091. "铁岭县",
  10092. "昌图县",
  10093. "西丰县"] },
  10094. {
  10095. "name": "朝阳市",
  10096. "area": [
  10097. "双塔区",
  10098. "龙城区",
  10099. "凌源市",
  10100. "北票市",
  10101. "朝阳县",
  10102. "建平县",
  10103. "喀喇沁左翼蒙古族自治县"] },
  10104. {
  10105. "name": "葫芦岛市",
  10106. "area": [
  10107. "龙港区",
  10108. "南票区",
  10109. "连山区",
  10110. "兴城市",
  10111. "绥中县",
  10112. "建昌县"] }] },
  10113. {
  10114. "name": "吉林省",
  10115. "city": [
  10116. {
  10117. "name": "长春市",
  10118. "area": [
  10119. "朝阳区",
  10120. "宽城区",
  10121. "二道区",
  10122. "南关区",
  10123. "绿园区",
  10124. "双阳区",
  10125. "九台市",
  10126. "榆树市",
  10127. "德惠市",
  10128. "农安县"] },
  10129. {
  10130. "name": "吉林市",
  10131. "area": [
  10132. "船营区",
  10133. "昌邑区",
  10134. "龙潭区",
  10135. "丰满区",
  10136. "舒兰市",
  10137. "桦甸市",
  10138. "蛟河市",
  10139. "磐石市",
  10140. "永吉县"] },
  10141. {
  10142. "name": "四平",
  10143. "area": [
  10144. "铁西区",
  10145. "铁东区",
  10146. "公主岭市",
  10147. "双辽市",
  10148. "梨树县",
  10149. "伊通满族自治县"] },
  10150. {
  10151. "name": "辽源市",
  10152. "area": [
  10153. "龙山区",
  10154. "西安区",
  10155. "东辽县",
  10156. "东丰县"] },
  10157. {
  10158. "name": "通化市",
  10159. "area": [
  10160. "东昌区",
  10161. "二道江区",
  10162. "梅河口市",
  10163. "集安市",
  10164. "通化县",
  10165. "辉南县",
  10166. "柳河县"] },
  10167. {
  10168. "name": "白山市",
  10169. "area": [
  10170. "八道江区",
  10171. "江源区",
  10172. "临江市",
  10173. "靖宇县",
  10174. "抚松县",
  10175. "长白朝鲜族自治县"] },
  10176. {
  10177. "name": "松原市",
  10178. "area": [
  10179. "宁江区",
  10180. "乾安县",
  10181. "长岭县",
  10182. "扶余县",
  10183. "前郭尔罗斯蒙古族自治县"] },
  10184. {
  10185. "name": "白城市",
  10186. "area": [
  10187. "洮北区",
  10188. "大安市",
  10189. "洮南市",
  10190. "镇赉县",
  10191. "通榆县"] },
  10192. {
  10193. "name": "延边朝鲜族自治州",
  10194. "area": [
  10195. "延吉市",
  10196. "图们市",
  10197. "敦化市",
  10198. "龙井市",
  10199. "珲春市",
  10200. "和龙市",
  10201. "安图县",
  10202. "汪清县"] }] },
  10203. {
  10204. "name": "黑龙江省",
  10205. "city": [
  10206. {
  10207. "name": "哈尔滨市",
  10208. "area": [
  10209. "松北区",
  10210. "道里区",
  10211. "南岗区",
  10212. "平房区",
  10213. "香坊区",
  10214. "道外区",
  10215. "呼兰区",
  10216. "阿城区",
  10217. "双城市",
  10218. "尚志市",
  10219. "五常市",
  10220. "宾县",
  10221. "方正县",
  10222. "通河县",
  10223. "巴彦县",
  10224. "延寿县",
  10225. "木兰县",
  10226. "依兰县"] },
  10227. {
  10228. "name": "齐齐哈尔市",
  10229. "area": [
  10230. "龙沙区",
  10231. "昂昂溪区",
  10232. "铁锋区",
  10233. "建华区",
  10234. "富拉尔基区",
  10235. "碾子山区",
  10236. "梅里斯达斡尔族区",
  10237. "讷河市",
  10238. "富裕县",
  10239. "拜泉县",
  10240. "甘南县",
  10241. "依安县",
  10242. "克山县",
  10243. "泰来县",
  10244. "克东县",
  10245. "龙江县"] },
  10246. {
  10247. "name": "鹤岗市",
  10248. "area": [
  10249. "兴山区",
  10250. "工农区",
  10251. "南山区",
  10252. "兴安区",
  10253. "向阳区",
  10254. "东山区",
  10255. "萝北县",
  10256. "绥滨县"] },
  10257. {
  10258. "name": "双鸭山",
  10259. "area": [
  10260. "尖山区",
  10261. "岭东区",
  10262. "四方台区",
  10263. "宝山区",
  10264. "集贤县",
  10265. "宝清县",
  10266. "友谊县",
  10267. "饶河县"] },
  10268. {
  10269. "name": "鸡西市",
  10270. "area": [
  10271. "鸡冠区",
  10272. "恒山区",
  10273. "城子河区",
  10274. "滴道区",
  10275. "梨树区",
  10276. "麻山区",
  10277. "密山市",
  10278. "虎林市",
  10279. "鸡东县"] },
  10280. {
  10281. "name": "大庆市",
  10282. "area": [
  10283. "萨尔图区",
  10284. "红岗区",
  10285. "龙凤区",
  10286. "让胡路区",
  10287. "大同区",
  10288. "林甸县",
  10289. "肇州县",
  10290. "肇源县",
  10291. "杜尔伯特蒙古族自治县"] },
  10292. {
  10293. "name": "伊春市",
  10294. "area": [
  10295. "伊春区",
  10296. "带岭区",
  10297. "南岔区",
  10298. "金山屯区",
  10299. "西林区",
  10300. "美溪区",
  10301. "乌马河区",
  10302. "翠峦区",
  10303. "友好区",
  10304. "上甘岭区",
  10305. "五营区",
  10306. "红星区",
  10307. "新青区",
  10308. "汤旺河区",
  10309. "乌伊岭区",
  10310. "铁力市",
  10311. "嘉荫县"] },
  10312. {
  10313. "name": "牡丹江市",
  10314. "area": [
  10315. "爱民区",
  10316. "东安区",
  10317. "阳明区",
  10318. "西安区",
  10319. "绥芬河市",
  10320. "宁安市",
  10321. "海林市",
  10322. "穆棱市",
  10323. "林口县",
  10324. "东宁县"] },
  10325. {
  10326. "name": "佳木斯市",
  10327. "area": [
  10328. "向阳区",
  10329. "前进区",
  10330. "东风区",
  10331. "郊区",
  10332. "同江市",
  10333. "富锦市",
  10334. "桦川县",
  10335. "抚远县",
  10336. "桦南县",
  10337. "汤原县"] },
  10338. {
  10339. "name": "七台河市",
  10340. "area": [
  10341. "桃山区",
  10342. "新兴区",
  10343. "茄子河区",
  10344. "勃利县"] },
  10345. {
  10346. "name": "黑河市",
  10347. "area": [
  10348. "爱辉区",
  10349. "北安市",
  10350. "五大连池市",
  10351. "逊克县",
  10352. "嫩江县",
  10353. "孙吴县"] },
  10354. {
  10355. "name": "绥化市",
  10356. "area": [
  10357. "北林区",
  10358. "安达市",
  10359. "肇东市",
  10360. "海伦市",
  10361. "绥棱县",
  10362. "兰西县",
  10363. "明水县",
  10364. "青冈县",
  10365. "庆安县",
  10366. "望奎县"] },
  10367. {
  10368. "name": "大兴安岭地区",
  10369. "area": [
  10370. "呼玛县",
  10371. "塔河县",
  10372. "漠河县",
  10373. "大兴安岭辖区"] }] },
  10374. {
  10375. "name": "上海市",
  10376. "city": [
  10377. {
  10378. "name": "上海市",
  10379. "area": [
  10380. "黄浦区",
  10381. "卢湾区",
  10382. "徐汇区",
  10383. "长宁区",
  10384. "静安区",
  10385. "普陀区",
  10386. "闸北区",
  10387. "虹口区",
  10388. "杨浦区",
  10389. "宝山区",
  10390. "闵行区",
  10391. "嘉定区",
  10392. "松江区",
  10393. "金山区",
  10394. "青浦区",
  10395. "南汇区",
  10396. "奉贤区",
  10397. "浦东新区",
  10398. "崇明县"] }] },
  10399. {
  10400. "name": "江苏省",
  10401. "city": [
  10402. {
  10403. "name": "南京市",
  10404. "area": [
  10405. "玄武区",
  10406. "白下区",
  10407. "秦淮区",
  10408. "建邺区",
  10409. "鼓楼区",
  10410. "下关区",
  10411. "栖霞区",
  10412. "雨花台区",
  10413. "浦口区",
  10414. "江宁区",
  10415. "六合区",
  10416. "溧水县",
  10417. "高淳县"] },
  10418. {
  10419. "name": "苏州市",
  10420. "area": [
  10421. "金阊区",
  10422. "平江区",
  10423. "沧浪区",
  10424. "虎丘区",
  10425. "吴中区",
  10426. "相城区",
  10427. "常熟市",
  10428. "张家港市",
  10429. "昆山市",
  10430. "吴江市",
  10431. "太仓市"] },
  10432. {
  10433. "name": "无锡市",
  10434. "area": [
  10435. "崇安区",
  10436. "南长区",
  10437. "北塘区",
  10438. "滨湖区",
  10439. "锡山区",
  10440. "惠山区",
  10441. "江阴市",
  10442. "宜兴市"] },
  10443. {
  10444. "name": "常州市",
  10445. "area": [
  10446. "钟楼区",
  10447. "天宁区",
  10448. "戚墅堰区",
  10449. "新北区",
  10450. "武进区",
  10451. "金坛市",
  10452. "溧阳市"] },
  10453. {
  10454. "name": "镇江市",
  10455. "area": [
  10456. "京口区",
  10457. "润州区",
  10458. "丹徒区",
  10459. "丹阳市",
  10460. "扬中市",
  10461. "句容市"] },
  10462. {
  10463. "name": "南通市",
  10464. "area": [
  10465. "崇川区",
  10466. "港闸区",
  10467. "通州市",
  10468. "如皋市",
  10469. "海门市",
  10470. "启东市",
  10471. "海安县",
  10472. "如东县"] },
  10473. {
  10474. "name": "泰州市",
  10475. "area": [
  10476. "海陵区",
  10477. "高港区",
  10478. "姜堰市",
  10479. "泰兴市",
  10480. "靖江市",
  10481. "兴化市"] },
  10482. {
  10483. "name": "扬州市",
  10484. "area": [
  10485. "广陵区",
  10486. "维扬区",
  10487. "邗江区",
  10488. "江都市",
  10489. "仪征市",
  10490. "高邮市",
  10491. "宝应县"] },
  10492. {
  10493. "name": "盐城市",
  10494. "area": [
  10495. "亭湖区",
  10496. "盐都区",
  10497. "大丰市",
  10498. "东台市",
  10499. "建湖县",
  10500. "射阳县",
  10501. "阜宁县",
  10502. "滨海县",
  10503. "响水县"] },
  10504. {
  10505. "name": "连云港市",
  10506. "area": [
  10507. "新浦区",
  10508. "海州区",
  10509. "连云区",
  10510. "东海县",
  10511. "灌云县",
  10512. "赣榆县",
  10513. "灌南县"] },
  10514. {
  10515. "name": "徐州市",
  10516. "area": [
  10517. "云龙区",
  10518. "鼓楼区",
  10519. "九里区",
  10520. "泉山区",
  10521. "贾汪区",
  10522. "邳州市",
  10523. "新沂市",
  10524. "铜山县",
  10525. "睢宁县",
  10526. "沛县",
  10527. "丰县"] },
  10528. {
  10529. "name": "淮安市",
  10530. "area": [
  10531. "清河区",
  10532. "清浦区",
  10533. "楚州区",
  10534. "淮阴区",
  10535. "涟水县",
  10536. "洪泽县",
  10537. "金湖县",
  10538. "盱眙县"] },
  10539. {
  10540. "name": "宿迁市",
  10541. "area": [
  10542. "宿城区",
  10543. "宿豫区",
  10544. "沭阳县",
  10545. "泗阳县",
  10546. "泗洪县"] }] },
  10547. {
  10548. "name": "浙江省",
  10549. "city": [
  10550. {
  10551. "name": "杭州市",
  10552. "area": [
  10553. "拱墅区",
  10554. "西湖区",
  10555. "上城区",
  10556. "下城区",
  10557. "江干区",
  10558. "滨江区",
  10559. "余杭区",
  10560. "萧山区",
  10561. "建德市",
  10562. "富阳市",
  10563. "临安市",
  10564. "桐庐县",
  10565. "淳安县"] },
  10566. {
  10567. "name": "宁波市",
  10568. "area": [
  10569. "海曙区",
  10570. "江东区",
  10571. "江北区",
  10572. "镇海区",
  10573. "北仑区",
  10574. "鄞州区",
  10575. "余姚市",
  10576. "慈溪市",
  10577. "奉化市",
  10578. "宁海县",
  10579. "象山县"] },
  10580. {
  10581. "name": "温州市",
  10582. "area": [
  10583. "鹿城区",
  10584. "龙湾区",
  10585. "瓯海区",
  10586. "瑞安市",
  10587. "乐清市",
  10588. "永嘉县",
  10589. "洞头县",
  10590. "平阳县",
  10591. "苍南县",
  10592. "文成县",
  10593. "泰顺县"] },
  10594. {
  10595. "name": "嘉兴市",
  10596. "area": [
  10597. "秀城区",
  10598. "秀洲区",
  10599. "海宁市",
  10600. "平湖市",
  10601. "桐乡市",
  10602. "嘉善县",
  10603. "海盐县"] },
  10604. {
  10605. "name": "湖州市",
  10606. "area": [
  10607. "吴兴区",
  10608. "南浔区",
  10609. "长兴县",
  10610. "德清县",
  10611. "安吉县"] },
  10612. {
  10613. "name": "绍兴市",
  10614. "area": [
  10615. "越城区",
  10616. "诸暨市",
  10617. "上虞市",
  10618. "嵊州市",
  10619. "绍兴县",
  10620. "新昌县"] },
  10621. {
  10622. "name": "金华市",
  10623. "area": [
  10624. "婺城区",
  10625. "金东区",
  10626. "兰溪市",
  10627. "义乌市",
  10628. "东阳市",
  10629. "永康市",
  10630. "武义县",
  10631. "浦江县",
  10632. "磐安县"] },
  10633. {
  10634. "name": "衢州市",
  10635. "area": [
  10636. "柯城区",
  10637. "衢江区",
  10638. "江山市",
  10639. "龙游县",
  10640. "常山县",
  10641. "开化县"] },
  10642. {
  10643. "name": "舟山市",
  10644. "area": [
  10645. "定海区",
  10646. "普陀区",
  10647. "岱山县",
  10648. "嵊泗县"] },
  10649. {
  10650. "name": "台州市",
  10651. "area": [
  10652. "椒江区",
  10653. "黄岩区",
  10654. "路桥区",
  10655. "临海市",
  10656. "温岭市",
  10657. "玉环县",
  10658. "天台县",
  10659. "仙居县",
  10660. "三门县"] },
  10661. {
  10662. "name": "丽水市",
  10663. "area": [
  10664. "莲都区",
  10665. "龙泉市",
  10666. "缙云县",
  10667. "青田县",
  10668. "云和县",
  10669. "遂昌县",
  10670. "松阳县",
  10671. "庆元县",
  10672. "景宁畲族自治县"] }] },
  10673. {
  10674. "name": "安徽省",
  10675. "city": [
  10676. {
  10677. "name": "合肥市",
  10678. "area": [
  10679. "庐阳区",
  10680. "瑶海区",
  10681. "蜀山区",
  10682. "包河区",
  10683. "长丰县",
  10684. "肥东县",
  10685. "肥西县"] },
  10686. {
  10687. "name": "芜湖市",
  10688. "area": [
  10689. "镜湖区",
  10690. "弋江区",
  10691. "鸠江区",
  10692. "三山区",
  10693. "芜湖县",
  10694. "南陵县",
  10695. "繁昌县"] },
  10696. {
  10697. "name": "蚌埠市",
  10698. "area": [
  10699. "蚌山区",
  10700. "龙子湖区",
  10701. "禹会区",
  10702. "淮上区",
  10703. "怀远县",
  10704. "固镇县",
  10705. "五河县"] },
  10706. {
  10707. "name": "淮南市",
  10708. "area": [
  10709. "田家庵区",
  10710. "大通区",
  10711. "谢家集区",
  10712. "八公山区",
  10713. "潘集区",
  10714. "凤台县"] },
  10715. {
  10716. "name": "马鞍山市",
  10717. "area": [
  10718. "雨山区",
  10719. "花山区",
  10720. "金家庄区",
  10721. "当涂县"] },
  10722. {
  10723. "name": "淮北市",
  10724. "area": [
  10725. "相山区",
  10726. "杜集区",
  10727. "烈山区",
  10728. "濉溪县"] },
  10729. {
  10730. "name": "铜陵市",
  10731. "area": [
  10732. "铜官山区",
  10733. "狮子山区",
  10734. "郊区",
  10735. "铜陵县"] },
  10736. {
  10737. "name": "安庆市",
  10738. "area": [
  10739. "迎江区",
  10740. "大观区",
  10741. "宜秀区",
  10742. "桐城市",
  10743. "宿松县",
  10744. "枞阳县",
  10745. "太湖县",
  10746. "怀宁县",
  10747. "岳西县",
  10748. "望江县",
  10749. "潜山县"] },
  10750. {
  10751. "name": "黄山市",
  10752. "area": [
  10753. "屯溪区",
  10754. "黄山区",
  10755. "徽州区",
  10756. "休宁县",
  10757. "歙县",
  10758. "祁门县",
  10759. "黟县"] },
  10760. {
  10761. "name": "滁州市",
  10762. "area": [
  10763. "琅琊区",
  10764. "南谯区",
  10765. "天长市",
  10766. "明光市",
  10767. "全椒县",
  10768. "来安县",
  10769. "定远县",
  10770. "凤阳县"] },
  10771. {
  10772. "name": "阜阳市",
  10773. "area": [
  10774. "颍州区",
  10775. "颍东区",
  10776. "颍泉区",
  10777. "界首市",
  10778. "临泉县",
  10779. "颍上县",
  10780. "阜南县",
  10781. "太和县"] },
  10782. {
  10783. "name": "宿州市",
  10784. "area": [
  10785. "埇桥区",
  10786. "萧县",
  10787. "泗县",
  10788. "砀山县",
  10789. "灵璧县"] },
  10790. {
  10791. "name": "巢湖市",
  10792. "area": [
  10793. "居巢区",
  10794. "含山县",
  10795. "无为县",
  10796. "庐江县",
  10797. "和县"] },
  10798. {
  10799. "name": "六安市",
  10800. "area": [
  10801. "金安区",
  10802. "裕安区",
  10803. "寿县",
  10804. "霍山县",
  10805. "霍邱县",
  10806. "舒城县",
  10807. "金寨县"] },
  10808. {
  10809. "name": "亳州市",
  10810. "area": [
  10811. "谯城区",
  10812. "利辛县",
  10813. "涡阳县",
  10814. "蒙城县"] },
  10815. {
  10816. "name": "池州市",
  10817. "area": [
  10818. "贵池区",
  10819. "东至县",
  10820. "石台县",
  10821. "青阳县"] },
  10822. {
  10823. "name": "宣城市",
  10824. "area": [
  10825. "宣州区",
  10826. "宁国市",
  10827. "广德县",
  10828. "郎溪县",
  10829. "泾县",
  10830. "旌德县",
  10831. "绩溪县"] }] },
  10832. {
  10833. "name": "福建省",
  10834. "city": [
  10835. {
  10836. "name": "福州市",
  10837. "area": [
  10838. "鼓楼区",
  10839. "台江区",
  10840. "仓山区",
  10841. "马尾区",
  10842. "晋安区",
  10843. "福清市",
  10844. "长乐市",
  10845. "闽侯县",
  10846. "闽清县",
  10847. "永泰县",
  10848. "连江县",
  10849. "罗源县",
  10850. "平潭县"] },
  10851. {
  10852. "name": "厦门市",
  10853. "area": [
  10854. "思明区",
  10855. "海沧区",
  10856. "湖里区",
  10857. "集美区",
  10858. "同安区",
  10859. "翔安区"] },
  10860. {
  10861. "name": "莆田市",
  10862. "area": [
  10863. "城厢区",
  10864. "涵江区",
  10865. "荔城区",
  10866. "秀屿区",
  10867. "仙游县"] },
  10868. {
  10869. "name": "三明市",
  10870. "area": [
  10871. "梅列区",
  10872. "三元区",
  10873. "永安市",
  10874. "明溪县",
  10875. "将乐县",
  10876. "大田县",
  10877. "宁化县",
  10878. "建宁县",
  10879. "沙县",
  10880. "尤溪县",
  10881. "清流县",
  10882. "泰宁县"] },
  10883. {
  10884. "name": "泉州市",
  10885. "area": [
  10886. "鲤城区",
  10887. "丰泽区",
  10888. "洛江区",
  10889. "泉港区",
  10890. "石狮市",
  10891. "晋江市",
  10892. "南安市",
  10893. "惠安县",
  10894. "永春县",
  10895. "安溪县",
  10896. "德化县",
  10897. "金门县"] },
  10898. {
  10899. "name": "漳州市",
  10900. "area": [
  10901. "芗城区",
  10902. "龙文区",
  10903. "龙海市",
  10904. "平和县",
  10905. "南靖县",
  10906. "诏安县",
  10907. "漳浦县",
  10908. "华安县",
  10909. "东山县",
  10910. "长泰县",
  10911. "云霄县"] },
  10912. {
  10913. "name": "南平市",
  10914. "area": [
  10915. "延平区",
  10916. "建瓯市",
  10917. "邵武市",
  10918. "武夷山市",
  10919. "建阳市",
  10920. "松溪县",
  10921. "光泽县",
  10922. "顺昌县",
  10923. "浦城县",
  10924. "政和县"] },
  10925. {
  10926. "name": "龙岩市",
  10927. "area": [
  10928. "新罗区",
  10929. "漳平市",
  10930. "长汀县",
  10931. "武平县",
  10932. "上杭县",
  10933. "永定县",
  10934. "连城县"] },
  10935. {
  10936. "name": "宁德市",
  10937. "area": [
  10938. "蕉城区",
  10939. "福安市",
  10940. "福鼎市",
  10941. "寿宁县",
  10942. "霞浦县",
  10943. "柘荣县",
  10944. "屏南县",
  10945. "古田县",
  10946. "周宁县"] }] },
  10947. {
  10948. "name": "江西省",
  10949. "city": [
  10950. {
  10951. "name": "南昌市",
  10952. "area": [
  10953. "东湖区",
  10954. "西湖区",
  10955. "青云谱区",
  10956. "湾里区",
  10957. "青山湖区",
  10958. "新建县",
  10959. "南昌县",
  10960. "进贤县",
  10961. "安义县"] },
  10962. {
  10963. "name": "景德镇市",
  10964. "area": [
  10965. "珠山区",
  10966. "昌江区",
  10967. "乐平市",
  10968. "浮梁县"] },
  10969. {
  10970. "name": "萍乡市",
  10971. "area": [
  10972. "安源区",
  10973. "湘东区",
  10974. "莲花县",
  10975. "上栗县",
  10976. "芦溪县"] },
  10977. {
  10978. "name": "九江市",
  10979. "area": [
  10980. "浔阳区",
  10981. "庐山区",
  10982. "瑞昌市",
  10983. "九江县",
  10984. "星子县",
  10985. "武宁县",
  10986. "彭泽县",
  10987. "永修县",
  10988. "修水县",
  10989. "湖口县",
  10990. "德安县",
  10991. "都昌县"] },
  10992. {
  10993. "name": "新余市",
  10994. "area": [
  10995. "渝水区",
  10996. "分宜县"] },
  10997. {
  10998. "name": "鹰潭市",
  10999. "area": [
  11000. "月湖区",
  11001. "贵溪市",
  11002. "余江县"] },
  11003. {
  11004. "name": "赣州市",
  11005. "area": [
  11006. "章贡区",
  11007. "瑞金市",
  11008. "南康市",
  11009. "石城县",
  11010. "安远县",
  11011. "赣县",
  11012. "宁都县",
  11013. "寻乌县",
  11014. "兴国县",
  11015. "定南县",
  11016. "上犹县",
  11017. "于都县",
  11018. "龙南县",
  11019. "崇义县",
  11020. "信丰县",
  11021. "全南县",
  11022. "大余县",
  11023. "会昌县"] },
  11024. {
  11025. "name": "吉安市",
  11026. "area": [
  11027. "吉州区",
  11028. "青原区",
  11029. "井冈山市",
  11030. "吉安县",
  11031. "永丰县",
  11032. "永新县",
  11033. "新干县",
  11034. "泰和县",
  11035. "峡江县",
  11036. "遂川县",
  11037. "安福县",
  11038. "吉水县",
  11039. "万安县"] },
  11040. {
  11041. "name": "宜春市",
  11042. "area": [
  11043. "袁州区",
  11044. "丰城市",
  11045. "樟树市",
  11046. "高安市",
  11047. "铜鼓县",
  11048. "靖安县",
  11049. "宜丰县",
  11050. "奉新县",
  11051. "万载县",
  11052. "上高县"] },
  11053. {
  11054. "name": "抚州市",
  11055. "area": [
  11056. "临川区",
  11057. "南丰县",
  11058. "乐安县",
  11059. "金溪县",
  11060. "南城县",
  11061. "东乡县",
  11062. "资溪县",
  11063. "宜黄县",
  11064. "广昌县",
  11065. "黎川县",
  11066. "崇仁县"] },
  11067. {
  11068. "name": "上饶市",
  11069. "area": [
  11070. "信州区",
  11071. "德兴市",
  11072. "上饶县",
  11073. "广丰县",
  11074. "鄱阳县",
  11075. "婺源县",
  11076. "铅山县",
  11077. "余干县",
  11078. "横峰县",
  11079. "弋阳县",
  11080. "玉山县",
  11081. "万年县"] }] },
  11082. {
  11083. "name": "山东省",
  11084. "city": [
  11085. {
  11086. "name": "济南市",
  11087. "area": [
  11088. "市中区",
  11089. "历下区",
  11090. "天桥区",
  11091. "槐荫区",
  11092. "历城区",
  11093. "长清区",
  11094. "章丘市",
  11095. "平阴县",
  11096. "济阳县",
  11097. "商河县"] },
  11098. {
  11099. "name": "青岛市",
  11100. "area": [
  11101. "市南区",
  11102. "市北区",
  11103. "城阳区",
  11104. "四方区",
  11105. "李沧区",
  11106. "黄岛区",
  11107. "崂山区",
  11108. "胶南市",
  11109. "胶州市",
  11110. "平度市",
  11111. "莱西市",
  11112. "即墨市"] },
  11113. {
  11114. "name": "淄博市",
  11115. "area": [
  11116. "张店区",
  11117. "临淄区",
  11118. "淄川区",
  11119. "博山区",
  11120. "周村区",
  11121. "桓台县",
  11122. "高青县",
  11123. "沂源县"] },
  11124. {
  11125. "name": "枣庄市",
  11126. "area": [
  11127. "市中区",
  11128. "山亭区",
  11129. "峄城区",
  11130. "台儿庄区",
  11131. "薛城区",
  11132. "滕州市"] },
  11133. {
  11134. "name": "东营市",
  11135. "area": [
  11136. "东营区",
  11137. "河口区",
  11138. "垦利县",
  11139. "广饶县",
  11140. "利津县"] },
  11141. {
  11142. "name": "烟台市",
  11143. "area": [
  11144. "芝罘区",
  11145. "福山区",
  11146. "牟平区",
  11147. "莱山区",
  11148. "龙口市",
  11149. "莱阳市",
  11150. "莱州市",
  11151. "招远市",
  11152. "蓬莱市",
  11153. "栖霞市",
  11154. "海阳市",
  11155. "长岛县"] },
  11156. {
  11157. "name": "潍坊市",
  11158. "area": [
  11159. "潍城区",
  11160. "寒亭区",
  11161. "坊子区",
  11162. "奎文区",
  11163. "青州市",
  11164. "诸城市",
  11165. "寿光市",
  11166. "安丘市",
  11167. "高密市",
  11168. "昌邑市",
  11169. "昌乐县",
  11170. "临朐县"] },
  11171. {
  11172. "name": "济宁市",
  11173. "area": [
  11174. "市中区",
  11175. "任城区",
  11176. "曲阜市",
  11177. "兖州市",
  11178. "邹城市",
  11179. "鱼台县",
  11180. "金乡县",
  11181. "嘉祥县",
  11182. "微山县",
  11183. "汶上县",
  11184. "泗水县",
  11185. "梁山县"] },
  11186. {
  11187. "name": "泰安市",
  11188. "area": [
  11189. "泰山区",
  11190. "岱岳区",
  11191. "新泰市",
  11192. "肥城市",
  11193. "宁阳县",
  11194. "东平县"] },
  11195. {
  11196. "name": "威海市",
  11197. "area": [
  11198. "环翠区",
  11199. "乳山市",
  11200. "文登市",
  11201. "荣成市"] },
  11202. {
  11203. "name": "日照市",
  11204. "area": [
  11205. "东港区",
  11206. "岚山区",
  11207. "五莲县",
  11208. "莒县"] },
  11209. {
  11210. "name": "莱芜市",
  11211. "area": [
  11212. "莱城区",
  11213. "钢城区"] },
  11214. {
  11215. "name": "临沂市",
  11216. "area": [
  11217. "兰山区",
  11218. "罗庄区",
  11219. "河东区",
  11220. "沂南县",
  11221. "郯城县",
  11222. "沂水县",
  11223. "苍山县",
  11224. "费县",
  11225. "平邑县",
  11226. "莒南县",
  11227. "蒙阴县",
  11228. "临沭县"] },
  11229. {
  11230. "name": "德州市",
  11231. "area": [
  11232. "德城区",
  11233. "乐陵市",
  11234. "禹城市",
  11235. "陵县",
  11236. "宁津县",
  11237. "齐河县",
  11238. "武城县",
  11239. "庆云县",
  11240. "平原县",
  11241. "夏津县",
  11242. "临邑县"] },
  11243. {
  11244. "name": "聊城市",
  11245. "area": [
  11246. "东昌府区",
  11247. "临清市",
  11248. "高唐县",
  11249. "阳谷县",
  11250. "茌平县",
  11251. "莘县",
  11252. "东阿县",
  11253. "冠县"] },
  11254. {
  11255. "name": "滨州市",
  11256. "area": [
  11257. "滨城区",
  11258. "邹平县",
  11259. "沾化县",
  11260. "惠民县",
  11261. "博兴县",
  11262. "阳信县",
  11263. "无棣县"] },
  11264. {
  11265. "name": "菏泽市",
  11266. "area": [
  11267. "牡丹区",
  11268. "鄄城县",
  11269. "单县",
  11270. "郓城县",
  11271. "曹县",
  11272. "定陶县",
  11273. "巨野县",
  11274. "东明县",
  11275. "成武县"] }] },
  11276. {
  11277. "name": "河南省",
  11278. "city": [
  11279. {
  11280. "name": "郑州市",
  11281. "area": [
  11282. "中原区",
  11283. "金水区",
  11284. "二七区",
  11285. "管城回族区",
  11286. "上街区",
  11287. "惠济区",
  11288. "巩义市",
  11289. "新郑市",
  11290. "新密市",
  11291. "登封市",
  11292. "荥阳市",
  11293. "中牟县"] },
  11294. {
  11295. "name": "开封市",
  11296. "area": [
  11297. "鼓楼区",
  11298. "龙亭区",
  11299. "顺河回族区",
  11300. "禹王台区",
  11301. "金明区",
  11302. "开封县",
  11303. "尉氏县",
  11304. "兰考县",
  11305. "杞县",
  11306. "通许县"] },
  11307. {
  11308. "name": "洛阳市",
  11309. "area": [
  11310. "西工区",
  11311. "老城区",
  11312. "涧西区",
  11313. "瀍河回族区",
  11314. "洛龙区",
  11315. "吉利区",
  11316. "偃师市",
  11317. "孟津县",
  11318. "汝阳县",
  11319. "伊川县",
  11320. "洛宁县",
  11321. "嵩县",
  11322. "宜阳县",
  11323. "新安县",
  11324. "栾川县"] },
  11325. {
  11326. "name": "平顶山市",
  11327. "area": [
  11328. "新华区",
  11329. "卫东区",
  11330. "湛河区",
  11331. "石龙区",
  11332. "汝州市",
  11333. "舞钢市",
  11334. "宝丰县",
  11335. "叶县",
  11336. "郏县",
  11337. "鲁山县"] },
  11338. {
  11339. "name": "安阳市",
  11340. "area": [
  11341. "北关区",
  11342. "文峰区",
  11343. "殷都区",
  11344. "龙安区",
  11345. "林州市",
  11346. "安阳县",
  11347. "滑县",
  11348. "内黄县",
  11349. "汤阴县"] },
  11350. {
  11351. "name": "鹤壁市",
  11352. "area": [
  11353. "淇滨区",
  11354. "山城区",
  11355. "鹤山区",
  11356. "浚县",
  11357. "淇县"] },
  11358. {
  11359. "name": "新乡市",
  11360. "area": [
  11361. "卫滨区",
  11362. "红旗区",
  11363. "凤泉区",
  11364. "牧野区",
  11365. "卫辉市",
  11366. "辉县市",
  11367. "新乡县",
  11368. "获嘉县",
  11369. "原阳县",
  11370. "长垣县",
  11371. "封丘县",
  11372. "延津县"] },
  11373. {
  11374. "name": "焦作市",
  11375. "area": [
  11376. "解放区",
  11377. "中站区",
  11378. "马村区",
  11379. "山阳区",
  11380. "沁阳市",
  11381. "孟州市",
  11382. "修武县",
  11383. "温县",
  11384. "武陟县",
  11385. "博爱县"] },
  11386. {
  11387. "name": "濮阳市",
  11388. "area": [
  11389. "华龙区",
  11390. "濮阳县",
  11391. "南乐县",
  11392. "台前县",
  11393. "清丰县",
  11394. "范县"] },
  11395. {
  11396. "name": "许昌市",
  11397. "area": [
  11398. "魏都区",
  11399. "禹州市",
  11400. "长葛市",
  11401. "许昌县",
  11402. "鄢陵县",
  11403. "襄城县"] },
  11404. {
  11405. "name": "漯河市",
  11406. "area": [
  11407. "源汇区",
  11408. "郾城区",
  11409. "召陵区",
  11410. "临颍县",
  11411. "舞阳县"] },
  11412. {
  11413. "name": "三门峡市",
  11414. "area": [
  11415. "湖滨区",
  11416. "义马市",
  11417. "灵宝市",
  11418. "渑池县",
  11419. "卢氏县",
  11420. "陕县"] },
  11421. {
  11422. "name": "南阳市",
  11423. "area": [
  11424. "卧龙区",
  11425. "宛城区",
  11426. "邓州市",
  11427. "桐柏县",
  11428. "方城县",
  11429. "淅川县",
  11430. "镇平县",
  11431. "唐河县",
  11432. "南召县",
  11433. "内乡县",
  11434. "新野县",
  11435. "社旗县",
  11436. "西峡县"] },
  11437. {
  11438. "name": "商丘市",
  11439. "area": [
  11440. "梁园区",
  11441. "睢阳区",
  11442. "永城市",
  11443. "宁陵县",
  11444. "虞城县",
  11445. "民权县",
  11446. "夏邑县",
  11447. "柘城县",
  11448. "睢县"] },
  11449. {
  11450. "name": "信阳市",
  11451. "area": [
  11452. "浉河区",
  11453. "平桥区",
  11454. "潢川县",
  11455. "淮滨县",
  11456. "息县",
  11457. "新县",
  11458. "商城县",
  11459. "固始县",
  11460. "罗山县",
  11461. "光山县"] },
  11462. {
  11463. "name": "周口市",
  11464. "area": [
  11465. "川汇区",
  11466. "项城市",
  11467. "商水县",
  11468. "淮阳县",
  11469. "太康县",
  11470. "鹿邑县",
  11471. "西华县",
  11472. "扶沟县",
  11473. "沈丘县",
  11474. "郸城县"] },
  11475. {
  11476. "name": "驻马店市",
  11477. "area": [
  11478. "驿城区",
  11479. "确山县",
  11480. "新蔡县",
  11481. "上蔡县",
  11482. "西平县",
  11483. "泌阳县",
  11484. "平舆县",
  11485. "汝南县",
  11486. "遂平县",
  11487. "正阳县"] },
  11488. {
  11489. "name": "焦作市",
  11490. "area": [
  11491. "济源市"] }] },
  11492. {
  11493. "name": "湖北省",
  11494. "city": [
  11495. {
  11496. "name": "武汉市",
  11497. "area": [
  11498. "江岸区",
  11499. "武昌区",
  11500. "江汉区",
  11501. "硚口区",
  11502. "汉阳区",
  11503. "青山区",
  11504. "洪山区",
  11505. "东西湖区",
  11506. "汉南区",
  11507. "蔡甸区",
  11508. "江夏区",
  11509. "黄陂区",
  11510. "新洲区"] },
  11511. {
  11512. "name": "黄石市",
  11513. "area": [
  11514. "黄石港区",
  11515. "西塞山区",
  11516. "下陆区",
  11517. "铁山区",
  11518. "大冶市",
  11519. "阳新县"] },
  11520. {
  11521. "name": "十堰市",
  11522. "area": [
  11523. "张湾区",
  11524. "茅箭区",
  11525. "丹江口市",
  11526. "郧县",
  11527. "竹山县",
  11528. "房县",
  11529. "郧西县",
  11530. "竹溪县"] },
  11531. {
  11532. "name": "荆州市",
  11533. "area": [
  11534. "沙市区",
  11535. "荆州区",
  11536. "洪湖市",
  11537. "石首市",
  11538. "松滋市",
  11539. "监利县",
  11540. "公安县",
  11541. "江陵县"] },
  11542. {
  11543. "name": "宜昌市",
  11544. "area": [
  11545. "西陵区",
  11546. "伍家岗区",
  11547. "点军区",
  11548. "猇亭区",
  11549. "夷陵区",
  11550. "宜都市",
  11551. "当阳市",
  11552. "枝江市",
  11553. "秭归县",
  11554. "远安县",
  11555. "兴山县",
  11556. "五峰土家族自治县",
  11557. "长阳土家族自治县"] },
  11558. {
  11559. "name": "襄樊市",
  11560. "area": [
  11561. "襄城区",
  11562. "樊城区",
  11563. "襄阳区",
  11564. "老河口市",
  11565. "枣阳市",
  11566. "宜城市",
  11567. "南漳县",
  11568. "谷城县",
  11569. "保康县"] },
  11570. {
  11571. "name": "鄂州市",
  11572. "area": [
  11573. "鄂城区",
  11574. "华容区",
  11575. "梁子湖区"] },
  11576. {
  11577. "name": "荆门市",
  11578. "area": [
  11579. "东宝区",
  11580. "掇刀区",
  11581. "钟祥市",
  11582. "京山县",
  11583. "沙洋县"] },
  11584. {
  11585. "name": "孝感市",
  11586. "area": [
  11587. "孝南区",
  11588. "应城市",
  11589. "安陆市",
  11590. "汉川市",
  11591. "云梦县",
  11592. "大悟县",
  11593. "孝昌县"] },
  11594. {
  11595. "name": "黄冈市",
  11596. "area": [
  11597. "黄州区",
  11598. "麻城市",
  11599. "武穴市",
  11600. "红安县",
  11601. "罗田县",
  11602. "浠水县",
  11603. "蕲春县",
  11604. "黄梅县",
  11605. "英山县",
  11606. "团风县"] },
  11607. {
  11608. "name": "咸宁市",
  11609. "area": [
  11610. "咸安区",
  11611. "赤壁市",
  11612. "嘉鱼县",
  11613. "通山县",
  11614. "崇阳县",
  11615. "通城县"] },
  11616. {
  11617. "name": "随州市",
  11618. "area": [
  11619. "曾都区",
  11620. "广水市"] },
  11621. {
  11622. "name": "恩施土家族苗族自治州",
  11623. "area": [
  11624. "恩施市",
  11625. "利川市",
  11626. "建始县",
  11627. "来凤县",
  11628. "巴东县",
  11629. "鹤峰县",
  11630. "宣恩县",
  11631. "咸丰县"] },
  11632. {
  11633. "name": "仙桃市",
  11634. "area": [
  11635. "仙桃"] },
  11636. {
  11637. "name": "天门市",
  11638. "area": [
  11639. "天门"] },
  11640. {
  11641. "name": "潜江市",
  11642. "area": [
  11643. "潜江"] },
  11644. {
  11645. "name": "神农架林区",
  11646. "area": [
  11647. "神农架林区"] }] },
  11648. {
  11649. "name": "湖南省",
  11650. "city": [
  11651. {
  11652. "name": "长沙市",
  11653. "area": [
  11654. "岳麓区",
  11655. "芙蓉区",
  11656. "天心区",
  11657. "开福区",
  11658. "雨花区",
  11659. "浏阳市",
  11660. "长沙县",
  11661. "望城县",
  11662. "宁乡县"] },
  11663. {
  11664. "name": "株洲市",
  11665. "area": [
  11666. "天元区",
  11667. "荷塘区",
  11668. "芦淞区",
  11669. "石峰区",
  11670. "醴陵市",
  11671. "株洲县",
  11672. "炎陵县",
  11673. "茶陵县",
  11674. "攸县"] },
  11675. {
  11676. "name": "湘潭市",
  11677. "area": [
  11678. "岳塘区",
  11679. "雨湖区",
  11680. "湘乡市",
  11681. "韶山市",
  11682. "湘潭县"] },
  11683. {
  11684. "name": "衡阳市",
  11685. "area": [
  11686. "雁峰区",
  11687. "珠晖区",
  11688. "石鼓区",
  11689. "蒸湘区",
  11690. "南岳区",
  11691. "耒阳市",
  11692. "常宁市",
  11693. "衡阳县",
  11694. "衡东县",
  11695. "衡山县",
  11696. "衡南县",
  11697. "祁东县"] },
  11698. {
  11699. "name": "邵阳市",
  11700. "area": [
  11701. "双清区",
  11702. "大祥区",
  11703. "北塔区",
  11704. "武冈市",
  11705. "邵东县",
  11706. "洞口县",
  11707. "新邵县",
  11708. "绥宁县",
  11709. "新宁县",
  11710. "邵阳县",
  11711. "隆回县",
  11712. "城步苗族自治县"] },
  11713. {
  11714. "name": "岳阳市",
  11715. "area": [
  11716. "岳阳楼区",
  11717. "云溪区",
  11718. "君山区",
  11719. "临湘市",
  11720. "汨罗市",
  11721. "岳阳县",
  11722. "湘阴县",
  11723. "平江县",
  11724. "华容县"] },
  11725. {
  11726. "name": "常德市",
  11727. "area": [
  11728. "武陵区",
  11729. "鼎城区",
  11730. "津市市",
  11731. "澧县",
  11732. "临澧县",
  11733. "桃源县",
  11734. "汉寿县",
  11735. "安乡县",
  11736. "石门县"] },
  11737. {
  11738. "name": "张家界市",
  11739. "area": [
  11740. "永定区",
  11741. "武陵源区",
  11742. "慈利县",
  11743. "桑植县"] },
  11744. {
  11745. "name": "益阳市",
  11746. "area": [
  11747. "赫山区",
  11748. "资阳区",
  11749. "沅江市",
  11750. "桃江县",
  11751. "南县",
  11752. "安化县"] },
  11753. {
  11754. "name": "郴州市",
  11755. "area": [
  11756. "北湖区",
  11757. "苏仙区",
  11758. "资兴市",
  11759. "宜章县",
  11760. "汝城县",
  11761. "安仁县",
  11762. "嘉禾县",
  11763. "临武县",
  11764. "桂东县",
  11765. "永兴县",
  11766. "桂阳县"] },
  11767. {
  11768. "name": "永州市",
  11769. "area": [
  11770. "冷水滩区",
  11771. "零陵区",
  11772. "祁阳县",
  11773. "蓝山县",
  11774. "宁远县",
  11775. "新田县",
  11776. "东安县",
  11777. "江永县",
  11778. "道县",
  11779. "双牌县",
  11780. "江华瑶族自治县"] },
  11781. {
  11782. "name": "怀化市",
  11783. "area": [
  11784. "鹤城区",
  11785. "洪江市",
  11786. "会同县",
  11787. "沅陵县",
  11788. "辰溪县",
  11789. "溆浦县",
  11790. "中方县",
  11791. "新晃侗族自治县",
  11792. "芷江侗族自治县",
  11793. "通道侗族自治县",
  11794. "靖州苗族侗族自治县",
  11795. "麻阳苗族自治县"] },
  11796. {
  11797. "name": "娄底市",
  11798. "area": [
  11799. "娄星区",
  11800. "冷水江市",
  11801. "涟源市",
  11802. "新化县",
  11803. "双峰县"] },
  11804. {
  11805. "name": "湘西土家族苗族自治州",
  11806. "area": [
  11807. "吉首市",
  11808. "古丈县",
  11809. "龙山县",
  11810. "永顺县",
  11811. "凤凰县",
  11812. "泸溪县",
  11813. "保靖县",
  11814. "花垣县"] }] },
  11815. {
  11816. "name": "广东省",
  11817. "city": [
  11818. {
  11819. "name": "广州市",
  11820. "area": [
  11821. "越秀区",
  11822. "荔湾区",
  11823. "海珠区",
  11824. "天河区",
  11825. "白云区",
  11826. "黄埔区",
  11827. "番禺区",
  11828. "花都区",
  11829. "南沙区",
  11830. "萝岗区",
  11831. "增城市",
  11832. "从化市"] },
  11833. {
  11834. "name": "深圳市",
  11835. "area": [
  11836. "福田区",
  11837. "罗湖区",
  11838. "南山区",
  11839. "宝安区",
  11840. "龙岗区",
  11841. "盐田区"] },
  11842. {
  11843. "name": "东莞市",
  11844. "area": [
  11845. "莞城",
  11846. "常平",
  11847. "塘厦",
  11848. "塘厦",
  11849. "塘厦"] },
  11850. {
  11851. "name": "中山市",
  11852. "area": [
  11853. "中山"] },
  11854. {
  11855. "name": "潮州市",
  11856. "area": [
  11857. "湘桥区",
  11858. "潮安县",
  11859. "饶平县"] },
  11860. {
  11861. "name": "揭阳市",
  11862. "area": [
  11863. "榕城区",
  11864. "揭东县",
  11865. "揭西县",
  11866. "惠来县",
  11867. "普宁市"] },
  11868. {
  11869. "name": "云浮市",
  11870. "area": [
  11871. "云城区",
  11872. "新兴县",
  11873. "郁南县",
  11874. "云安县",
  11875. "罗定市"] },
  11876. {
  11877. "name": "珠海市",
  11878. "area": [
  11879. "香洲区",
  11880. "斗门区",
  11881. "金湾区"] },
  11882. {
  11883. "name": "汕头市",
  11884. "area": [
  11885. "金平区",
  11886. "濠江区",
  11887. "龙湖区",
  11888. "潮阳区",
  11889. "潮南区",
  11890. "澄海区",
  11891. "南澳县"] },
  11892. {
  11893. "name": "韶关市",
  11894. "area": [
  11895. "浈江区",
  11896. "武江区",
  11897. "曲江区",
  11898. "乐昌市",
  11899. "南雄市",
  11900. "始兴县",
  11901. "仁化县",
  11902. "翁源县",
  11903. "新丰县",
  11904. "乳源瑶族自治县"] },
  11905. {
  11906. "name": "佛山市",
  11907. "area": [
  11908. "禅城区",
  11909. "南海区",
  11910. "顺德区",
  11911. "三水区",
  11912. "高明区"] },
  11913. {
  11914. "name": "江门市",
  11915. "area": [
  11916. "蓬江区",
  11917. "江海区",
  11918. "新会区",
  11919. "恩平市",
  11920. "台山市",
  11921. "开平市",
  11922. "鹤山市"] },
  11923. {
  11924. "name": "湛江市",
  11925. "area": [
  11926. "赤坎区",
  11927. "霞山区",
  11928. "坡头区",
  11929. "麻章区",
  11930. "吴川市",
  11931. "廉江市",
  11932. "雷州市",
  11933. "遂溪县",
  11934. "徐闻县"] },
  11935. {
  11936. "name": "茂名市",
  11937. "area": [
  11938. "茂南区",
  11939. "茂港区",
  11940. "化州市",
  11941. "信宜市",
  11942. "高州市",
  11943. "电白县"] },
  11944. {
  11945. "name": "肇庆市",
  11946. "area": [
  11947. "端州区",
  11948. "鼎湖区",
  11949. "高要市",
  11950. "四会市",
  11951. "广宁县",
  11952. "怀集县",
  11953. "封开县",
  11954. "德庆县"] },
  11955. {
  11956. "name": "惠州市",
  11957. "area": [
  11958. "惠城区",
  11959. "惠阳区",
  11960. "博罗县",
  11961. "惠东县",
  11962. "龙门县"] },
  11963. {
  11964. "name": "梅州市",
  11965. "area": [
  11966. "梅江区",
  11967. "兴宁市",
  11968. "梅县",
  11969. "大埔县",
  11970. "丰顺县",
  11971. "五华县",
  11972. "平远县",
  11973. "蕉岭县"] },
  11974. {
  11975. "name": "汕尾市",
  11976. "area": [
  11977. "城区",
  11978. "陆丰市",
  11979. "海丰县",
  11980. "陆河县"] },
  11981. {
  11982. "name": "河源市",
  11983. "area": [
  11984. "源城区",
  11985. "紫金县",
  11986. "龙川县",
  11987. "连平县",
  11988. "和平县",
  11989. "东源县"] },
  11990. {
  11991. "name": "阳江市",
  11992. "area": [
  11993. "江城区",
  11994. "阳春市",
  11995. "阳西县",
  11996. "阳东县"] },
  11997. {
  11998. "name": "清远市",
  11999. "area": [
  12000. "清城区",
  12001. "英德市",
  12002. "连州市",
  12003. "佛冈县",
  12004. "阳山县",
  12005. "清新县",
  12006. "连山壮族瑶族自治县",
  12007. "连南瑶族自治县"] }] },
  12008. {
  12009. "name": "广西",
  12010. "city": [
  12011. {
  12012. "name": "南宁市",
  12013. "area": [
  12014. "青秀区",
  12015. "兴宁区",
  12016. "西乡塘区",
  12017. "良庆区",
  12018. "江南区",
  12019. "邕宁区",
  12020. "武鸣县",
  12021. "隆安县",
  12022. "马山县",
  12023. "上林县",
  12024. "宾阳县",
  12025. "横县"] },
  12026. {
  12027. "name": "柳州市",
  12028. "area": [
  12029. "城中区",
  12030. "鱼峰区",
  12031. "柳北区",
  12032. "柳南区",
  12033. "柳江县",
  12034. "柳城县",
  12035. "鹿寨县",
  12036. "融安县",
  12037. "融水苗族自治县",
  12038. "三江侗族自治县"] },
  12039. {
  12040. "name": "桂林市",
  12041. "area": [
  12042. "象山区",
  12043. "秀峰区",
  12044. "叠彩区",
  12045. "七星区",
  12046. "雁山区",
  12047. "阳朔县",
  12048. "临桂县",
  12049. "灵川县",
  12050. "全州县",
  12051. "平乐县",
  12052. "兴安县",
  12053. "灌阳县",
  12054. "荔浦县",
  12055. "资源县",
  12056. "永福县",
  12057. "龙胜各族自治县",
  12058. "恭城瑶族自治县"] },
  12059. {
  12060. "name": "梧州市",
  12061. "area": [
  12062. "万秀区",
  12063. "蝶山区",
  12064. "长洲区",
  12065. "岑溪市",
  12066. "苍梧县",
  12067. "藤县",
  12068. "蒙山县"] },
  12069. {
  12070. "name": "北海市",
  12071. "area": [
  12072. "海城区",
  12073. "银海区",
  12074. "铁山港区",
  12075. "合浦县"] },
  12076. {
  12077. "name": "防城港市",
  12078. "area": [
  12079. "港口区",
  12080. "防城区",
  12081. "东兴市",
  12082. "上思县"] },
  12083. {
  12084. "name": "钦州市",
  12085. "area": [
  12086. "钦南区",
  12087. "钦北区",
  12088. "灵山县",
  12089. "浦北县"] },
  12090. {
  12091. "name": "贵港市",
  12092. "area": [
  12093. "港北区",
  12094. "港南区",
  12095. "覃塘区",
  12096. "桂平市",
  12097. "平南县"] },
  12098. {
  12099. "name": "玉林市",
  12100. "area": [
  12101. "玉州区",
  12102. "北流市",
  12103. "容县",
  12104. "陆川县",
  12105. "博白县",
  12106. "兴业县"] },
  12107. {
  12108. "name": "百色市",
  12109. "area": [
  12110. "右江区",
  12111. "凌云县",
  12112. "平果县",
  12113. "西林县",
  12114. "乐业县",
  12115. "德保县",
  12116. "田林县",
  12117. "田阳县",
  12118. "靖西县",
  12119. "田东县",
  12120. "那坡县",
  12121. "隆林各族自治县"] },
  12122. {
  12123. "name": "贺州市",
  12124. "area": [
  12125. "八步区",
  12126. "钟山县",
  12127. "昭平县",
  12128. "富川瑶族自治县"] },
  12129. {
  12130. "name": "河池市",
  12131. "area": [
  12132. "金城江区",
  12133. "宜州市",
  12134. "天峨县",
  12135. "凤山县",
  12136. "南丹县",
  12137. "东兰县",
  12138. "都安瑶族自治县",
  12139. "罗城仫佬族自治县",
  12140. "巴马瑶族自治县",
  12141. "环江毛南族自治县",
  12142. "大化瑶族自治县"] },
  12143. {
  12144. "name": "来宾市",
  12145. "area": [
  12146. "兴宾区",
  12147. "合山市",
  12148. "象州县",
  12149. "武宣县",
  12150. "忻城县",
  12151. "金秀瑶族自治县"] },
  12152. {
  12153. "name": "崇左市",
  12154. "area": [
  12155. "江州区",
  12156. "凭祥市",
  12157. "宁明县",
  12158. "扶绥县",
  12159. "龙州县",
  12160. "大新县",
  12161. "天等县"] }] },
  12162. {
  12163. "name": "海南省",
  12164. "city": [
  12165. {
  12166. "name": "海口市",
  12167. "area": [
  12168. "龙华区",
  12169. "秀英区",
  12170. "琼山区",
  12171. "美兰区"] },
  12172. {
  12173. "name": "三亚市",
  12174. "area": [
  12175. "三亚市"] },
  12176. {
  12177. "name": "五指山市",
  12178. "area": [
  12179. "五指山"] },
  12180. {
  12181. "name": "琼海市",
  12182. "area": [
  12183. "琼海"] },
  12184. {
  12185. "name": "儋州市",
  12186. "area": [
  12187. "儋州"] },
  12188. {
  12189. "name": "文昌市",
  12190. "area": [
  12191. "文昌"] },
  12192. {
  12193. "name": "万宁市",
  12194. "area": [
  12195. "万宁"] },
  12196. {
  12197. "name": "东方市",
  12198. "area": [
  12199. "东方"] },
  12200. {
  12201. "name": "澄迈县",
  12202. "area": [
  12203. "澄迈县"] },
  12204. {
  12205. "name": "定安县",
  12206. "area": [
  12207. "定安县"] },
  12208. {
  12209. "name": "屯昌县",
  12210. "area": [
  12211. "屯昌县"] },
  12212. {
  12213. "name": "临高县",
  12214. "area": [
  12215. "临高县"] },
  12216. {
  12217. "name": "白沙黎族自治县",
  12218. "area": [
  12219. "白沙黎族自治县"] },
  12220. {
  12221. "name": "昌江黎族自治县",
  12222. "area": [
  12223. "昌江黎族自治县"] },
  12224. {
  12225. "name": "乐东黎族自治县",
  12226. "area": [
  12227. "乐东黎族自治县"] },
  12228. {
  12229. "name": "陵水黎族自治县",
  12230. "area": [
  12231. "陵水黎族自治县"] },
  12232. {
  12233. "name": "保亭黎族苗族自治县",
  12234. "area": [
  12235. "保亭黎族苗族自治县"] },
  12236. {
  12237. "name": "琼中黎族苗族自治县",
  12238. "area": [
  12239. "琼中黎族苗族自治县"] }] },
  12240. {
  12241. "name": "重庆市",
  12242. "city": [
  12243. {
  12244. "name": "重庆市",
  12245. "area": [
  12246. "渝中区",
  12247. "大渡口区",
  12248. "江北区",
  12249. "南岸区",
  12250. "北碚区",
  12251. "渝北区",
  12252. "巴南区",
  12253. "长寿区",
  12254. "双桥区",
  12255. "沙坪坝区",
  12256. "万盛区",
  12257. "万州区",
  12258. "涪陵区",
  12259. "黔江区",
  12260. "永川区",
  12261. "合川区",
  12262. "江津区",
  12263. "九龙坡区",
  12264. "南川区",
  12265. "綦江县",
  12266. "潼南县",
  12267. "荣昌县",
  12268. "璧山县",
  12269. "大足县",
  12270. "铜梁县",
  12271. "梁平县",
  12272. "开县",
  12273. "忠县",
  12274. "城口县",
  12275. "垫江县",
  12276. "武隆县",
  12277. "丰都县",
  12278. "奉节县",
  12279. "云阳县",
  12280. "巫溪县",
  12281. "巫山县",
  12282. "石柱土家族自治县",
  12283. "秀山土家族苗族自治县",
  12284. "酉阳土家族苗族自治县",
  12285. "彭水苗族土家族自治县"] }] },
  12286. {
  12287. "name": "四川省",
  12288. "city": [
  12289. {
  12290. "name": "成都市",
  12291. "area": [
  12292. "青羊区",
  12293. "锦江区",
  12294. "金牛区",
  12295. "武侯区",
  12296. "成华区",
  12297. "龙泉驿区",
  12298. "青白江区",
  12299. "新都区",
  12300. "温江区",
  12301. "都江堰市",
  12302. "彭州市",
  12303. "邛崃市",
  12304. "崇州市",
  12305. "金堂县",
  12306. "郫县",
  12307. "新津县",
  12308. "双流县",
  12309. "蒲江县",
  12310. "大邑县"] },
  12311. {
  12312. "name": "自贡市",
  12313. "area": [
  12314. "大安区",
  12315. "自流井区",
  12316. "贡井区",
  12317. "沿滩区",
  12318. "荣县",
  12319. "富顺县"] },
  12320. {
  12321. "name": "攀枝花市",
  12322. "area": [
  12323. "仁和区",
  12324. "米易县",
  12325. "盐边县",
  12326. "东区",
  12327. "西区"] },
  12328. {
  12329. "name": "泸州市",
  12330. "area": [
  12331. "江阳区",
  12332. "纳溪区",
  12333. "龙马潭区",
  12334. "泸县",
  12335. "合江县",
  12336. "叙永县",
  12337. "古蔺县"] },
  12338. {
  12339. "name": "德阳市",
  12340. "area": [
  12341. "旌阳区",
  12342. "广汉市",
  12343. "什邡市",
  12344. "绵竹市",
  12345. "罗江县",
  12346. "中江县"] },
  12347. {
  12348. "name": "绵阳市",
  12349. "area": [
  12350. "涪城区",
  12351. "游仙区",
  12352. "江油市",
  12353. "盐亭县",
  12354. "三台县",
  12355. "平武县",
  12356. "安县",
  12357. "梓潼县",
  12358. "北川羌族自治县"] },
  12359. {
  12360. "name": "广元市",
  12361. "area": [
  12362. "元坝区",
  12363. "朝天区",
  12364. "青川县",
  12365. "旺苍县",
  12366. "剑阁县",
  12367. "苍溪县",
  12368. "市中区"] },
  12369. {
  12370. "name": "遂宁市",
  12371. "area": [
  12372. "船山区",
  12373. "安居区",
  12374. "射洪县",
  12375. "蓬溪县",
  12376. "大英县"] },
  12377. {
  12378. "name": "内江市",
  12379. "area": [
  12380. "市中区",
  12381. "东兴区",
  12382. "资中县",
  12383. "隆昌县",
  12384. "威远县"] },
  12385. {
  12386. "name": "乐山市",
  12387. "area": [
  12388. "市中区",
  12389. "五通桥区",
  12390. "沙湾区",
  12391. "金口河区",
  12392. "峨眉山市",
  12393. "夹江县",
  12394. "井研县",
  12395. "犍为县",
  12396. "沐川县",
  12397. "马边彝族自治县",
  12398. "峨边彝族自治县"] },
  12399. {
  12400. "name": "南充",
  12401. "area": [
  12402. "顺庆区",
  12403. "高坪区",
  12404. "嘉陵区",
  12405. "阆中市",
  12406. "营山县",
  12407. "蓬安县",
  12408. "仪陇县",
  12409. "南部县",
  12410. "西充县"] },
  12411. {
  12412. "name": "眉山市",
  12413. "area": [
  12414. "东坡区",
  12415. "仁寿县",
  12416. "彭山县",
  12417. "洪雅县",
  12418. "丹棱县",
  12419. "青神县"] },
  12420. {
  12421. "name": "宜宾市",
  12422. "area": [
  12423. "翠屏区",
  12424. "宜宾县",
  12425. "兴文县",
  12426. "南溪县",
  12427. "珙县",
  12428. "长宁县",
  12429. "高县",
  12430. "江安县",
  12431. "筠连县",
  12432. "屏山县"] },
  12433. {
  12434. "name": "广安市",
  12435. "area": [
  12436. "广安区",
  12437. "华蓥市",
  12438. "岳池县",
  12439. "邻水县",
  12440. "武胜县"] },
  12441. {
  12442. "name": "达州市",
  12443. "area": [
  12444. "通川区",
  12445. "万源市",
  12446. "达县",
  12447. "渠县",
  12448. "宣汉县",
  12449. "开江县",
  12450. "大竹县"] },
  12451. {
  12452. "name": "雅安市",
  12453. "area": [
  12454. "雨城区",
  12455. "芦山县",
  12456. "石棉县",
  12457. "名山县",
  12458. "天全县",
  12459. "荥经县",
  12460. "宝兴县",
  12461. "汉源县"] },
  12462. {
  12463. "name": "巴中市",
  12464. "area": [
  12465. "巴州区",
  12466. "南江县",
  12467. "平昌县",
  12468. "通江县"] },
  12469. {
  12470. "name": "资阳市",
  12471. "area": [
  12472. "雁江区",
  12473. "简阳市",
  12474. "安岳县",
  12475. "乐至县"] },
  12476. {
  12477. "name": "阿坝藏族羌族自治州",
  12478. "area": [
  12479. "马尔康县",
  12480. "九寨沟县",
  12481. "红原县",
  12482. "汶川县",
  12483. "阿坝县",
  12484. "理县",
  12485. "若尔盖县",
  12486. "小金县",
  12487. "黑水县",
  12488. "金川县",
  12489. "松潘县",
  12490. "壤塘县",
  12491. "茂县"] },
  12492. {
  12493. "name": "甘孜藏族自治州",
  12494. "area": [
  12495. "康定县",
  12496. "丹巴县",
  12497. "炉霍县",
  12498. "九龙县",
  12499. "甘孜县",
  12500. "雅江县",
  12501. "新龙县",
  12502. "道孚县",
  12503. "白玉县",
  12504. "理塘县",
  12505. "德格县",
  12506. "乡城县",
  12507. "石渠县",
  12508. "稻城县",
  12509. "色达县",
  12510. "巴塘县",
  12511. "泸定县",
  12512. "得荣县"] },
  12513. {
  12514. "name": "凉山彝族自治州",
  12515. "area": [
  12516. "西昌市",
  12517. "美姑县",
  12518. "昭觉县",
  12519. "金阳县",
  12520. "甘洛县",
  12521. "布拖县",
  12522. "雷波县",
  12523. "普格县",
  12524. "宁南县",
  12525. "喜德县",
  12526. "会东县",
  12527. "越西县",
  12528. "会理县",
  12529. "盐源县",
  12530. "德昌县",
  12531. "冕宁县",
  12532. "木里藏族自治县"] }] },
  12533. {
  12534. "name": "贵州省",
  12535. "city": [
  12536. {
  12537. "name": "贵阳市",
  12538. "area": [
  12539. "南明区",
  12540. "云岩区",
  12541. "花溪区",
  12542. "乌当区",
  12543. "白云区",
  12544. "小河区",
  12545. "清镇市",
  12546. "开阳县",
  12547. "修文县",
  12548. "息烽县"] },
  12549. {
  12550. "name": "六盘水市",
  12551. "area": [
  12552. "钟山区",
  12553. "水城县",
  12554. "盘县",
  12555. "六枝特区"] },
  12556. {
  12557. "name": "遵义市",
  12558. "area": [
  12559. "红花岗区",
  12560. "汇川区",
  12561. "赤水市",
  12562. "仁怀市",
  12563. "遵义县",
  12564. "绥阳县",
  12565. "桐梓县",
  12566. "习水县",
  12567. "凤冈县",
  12568. "正安县",
  12569. "余庆县",
  12570. "湄潭县",
  12571. "道真仡佬族苗族自治县",
  12572. "务川仡佬族苗族自治县"] },
  12573. {
  12574. "name": "安顺市",
  12575. "area": [
  12576. "西秀区",
  12577. "普定县",
  12578. "平坝县",
  12579. "镇宁布依族苗族自治县",
  12580. "紫云苗族布依族自治县",
  12581. "关岭布依族苗族自治县"] },
  12582. {
  12583. "name": "铜仁地区",
  12584. "area": [
  12585. "铜仁市",
  12586. "德江县",
  12587. "江口县",
  12588. "思南县",
  12589. "石阡县",
  12590. "玉屏侗族自治县",
  12591. "松桃苗族自治县",
  12592. "印江土家族苗族自治县",
  12593. "沿河土家族自治县",
  12594. "万山特区"] },
  12595. {
  12596. "name": "毕节地区",
  12597. "area": [
  12598. "毕节市",
  12599. "黔西县",
  12600. "大方县",
  12601. "织金县",
  12602. "金沙县",
  12603. "赫章县",
  12604. "纳雍县",
  12605. "威宁彝族回族苗族自治县"] },
  12606. {
  12607. "name": "黔西南布依族苗族自治州",
  12608. "area": [
  12609. "兴义市",
  12610. "望谟县",
  12611. "兴仁县",
  12612. "普安县",
  12613. "册亨县",
  12614. "晴隆县",
  12615. "贞丰县",
  12616. "安龙县"] },
  12617. {
  12618. "name": "黔东南苗族侗族自治州",
  12619. "area": [
  12620. "凯里市",
  12621. "施秉县",
  12622. "从江县",
  12623. "锦屏县",
  12624. "镇远县",
  12625. "麻江县",
  12626. "台江县",
  12627. "天柱县",
  12628. "黄平县",
  12629. "榕江县",
  12630. "剑河县",
  12631. "三穗县",
  12632. "雷山县",
  12633. "黎平县",
  12634. "岑巩县",
  12635. "丹寨县"] },
  12636. {
  12637. "name": "黔南布依族苗族自治州",
  12638. "area": [
  12639. "都匀市",
  12640. "福泉市",
  12641. "贵定县",
  12642. "惠水县",
  12643. "罗甸县",
  12644. "瓮安县",
  12645. "荔波县",
  12646. "龙里县",
  12647. "平塘县",
  12648. "长顺县",
  12649. "独山县",
  12650. "三都水族自治县"] }] },
  12651. {
  12652. "name": "云南省",
  12653. "city": [
  12654. {
  12655. "name": "昆明市",
  12656. "area": [
  12657. "盘龙区",
  12658. "五华区",
  12659. "官渡区",
  12660. "西山区",
  12661. "东川区",
  12662. "安宁市",
  12663. "呈贡县",
  12664. "晋宁县",
  12665. "富民县",
  12666. "宜良县",
  12667. "嵩明县",
  12668. "石林彝族自治县",
  12669. "禄劝彝族苗族自治县",
  12670. "寻甸回族彝族自治县"] },
  12671. {
  12672. "name": "曲靖市",
  12673. "area": [
  12674. "麒麟区",
  12675. "宣威市",
  12676. "马龙县",
  12677. "沾益县",
  12678. "富源县",
  12679. "罗平县",
  12680. "师宗县",
  12681. "陆良县",
  12682. "会泽县"] },
  12683. {
  12684. "name": "玉溪市",
  12685. "area": [
  12686. "红塔区",
  12687. "江川县",
  12688. "澄江县",
  12689. "通海县",
  12690. "华宁县",
  12691. "易门县",
  12692. "峨山彝族自治县",
  12693. "新平彝族傣族自治县",
  12694. "元江哈尼族彝族傣族自治县"] },
  12695. {
  12696. "name": "保山市",
  12697. "area": [
  12698. "隆阳区",
  12699. "施甸县",
  12700. "腾冲县",
  12701. "龙陵县",
  12702. "昌宁县"] },
  12703. {
  12704. "name": "昭通市",
  12705. "area": [
  12706. "昭阳区",
  12707. "鲁甸县",
  12708. "巧家县",
  12709. "盐津县",
  12710. "大关县",
  12711. "永善县",
  12712. "绥江县",
  12713. "镇雄县",
  12714. "彝良县",
  12715. "威信县",
  12716. "水富县"] },
  12717. {
  12718. "name": "丽江市",
  12719. "area": [
  12720. "古城区",
  12721. "永胜县",
  12722. "华坪县",
  12723. "玉龙纳西族自治县",
  12724. "宁蒗彝族自治县"] },
  12725. {
  12726. "name": "普洱市",
  12727. "area": [
  12728. "思茅区",
  12729. "普洱哈尼族彝族自治县",
  12730. "墨江哈尼族自治县",
  12731. "景东彝族自治县",
  12732. "景谷傣族彝族自治县",
  12733. "镇沅彝族哈尼族拉祜族自治县",
  12734. "江城哈尼族彝族自治县",
  12735. "孟连傣族拉祜族佤族自治县",
  12736. "澜沧拉祜族自治县",
  12737. "西盟佤族自治县"] },
  12738. {
  12739. "name": "临沧市",
  12740. "area": [
  12741. "临翔区",
  12742. "凤庆县",
  12743. "云县",
  12744. "永德县",
  12745. "镇康县",
  12746. "双江拉祜族佤族布朗族傣族自治县",
  12747. "耿马傣族佤族自治县",
  12748. "沧源佤族自治县"] },
  12749. {
  12750. "name": "德宏傣族景颇族自治州",
  12751. "area": [
  12752. "潞西市",
  12753. "瑞丽市",
  12754. "梁河县",
  12755. "盈江县",
  12756. "陇川县"] },
  12757. {
  12758. "name": "怒江傈僳族自治州",
  12759. "area": [
  12760. "泸水县",
  12761. "福贡县",
  12762. "贡山独龙族怒族自治县",
  12763. "兰坪白族普米族自治县"] },
  12764. {
  12765. "name": "迪庆藏族自治州",
  12766. "area": [
  12767. "香格里拉县",
  12768. "德钦县",
  12769. "维西傈僳族自治县"] },
  12770. {
  12771. "name": "大理白族自治州",
  12772. "area": [
  12773. "大理市",
  12774. "祥云县",
  12775. "宾川县",
  12776. "弥渡县",
  12777. "永平县",
  12778. "云龙县",
  12779. "洱源县",
  12780. "剑川县",
  12781. "鹤庆县",
  12782. "漾濞彝族自治县",
  12783. "南涧彝族自治县",
  12784. "巍山彝族回族自治县"] },
  12785. {
  12786. "name": "楚雄彝族自治州",
  12787. "area": [
  12788. "楚雄市",
  12789. "双柏县",
  12790. "牟定县",
  12791. "南华县",
  12792. "姚安县",
  12793. "大姚县",
  12794. "永仁县",
  12795. "元谋县",
  12796. "武定县",
  12797. "禄丰县"] },
  12798. {
  12799. "name": "红河哈尼族彝族自治州",
  12800. "area": [
  12801. "蒙自县",
  12802. "个旧市",
  12803. "开远市",
  12804. "绿春县",
  12805. "建水县",
  12806. "石屏县",
  12807. "弥勒县",
  12808. "泸西县",
  12809. "元阳县",
  12810. "红河县",
  12811. "金平苗族瑶族傣族自治县",
  12812. "河口瑶族自治县",
  12813. "屏边苗族自治县"] },
  12814. {
  12815. "name": "文山壮族苗族自治州",
  12816. "area": [
  12817. "文山县",
  12818. "砚山县",
  12819. "西畴县",
  12820. "麻栗坡县",
  12821. "马关县",
  12822. "丘北县",
  12823. "广南县",
  12824. "富宁县"] },
  12825. {
  12826. "name": "西双版纳傣族自治州",
  12827. "area": [
  12828. "景洪市",
  12829. "勐海县",
  12830. "勐腊县"] }] },
  12831. {
  12832. "name": "西藏",
  12833. "city": [
  12834. {
  12835. "name": "拉萨市",
  12836. "area": [
  12837. "城关区",
  12838. "林周县",
  12839. "当雄县",
  12840. "尼木县",
  12841. "曲水县",
  12842. "堆龙德庆县",
  12843. "达孜县",
  12844. "墨竹工卡县"] },
  12845. {
  12846. "name": "那曲地区",
  12847. "area": [
  12848. "那曲县",
  12849. "嘉黎县",
  12850. "比如县",
  12851. "聂荣县",
  12852. "安多县",
  12853. "申扎县",
  12854. "索县",
  12855. "班戈县",
  12856. "巴青县",
  12857. "尼玛县"] },
  12858. {
  12859. "name": "昌都地区",
  12860. "area": [
  12861. "昌都县",
  12862. "江达县",
  12863. "贡觉县",
  12864. "类乌齐县",
  12865. "丁青县",
  12866. "察雅县",
  12867. "八宿县",
  12868. "左贡县",
  12869. "芒康县",
  12870. "洛隆县",
  12871. "边坝县"] },
  12872. {
  12873. "name": "林芝地区",
  12874. "area": [
  12875. "林芝县",
  12876. "工布江达县",
  12877. "米林县",
  12878. "墨脱县",
  12879. "波密县",
  12880. "察隅县",
  12881. "朗县"] },
  12882. {
  12883. "name": "山南地区",
  12884. "area": [
  12885. "乃东县",
  12886. "扎囊县",
  12887. "贡嘎县",
  12888. "桑日县",
  12889. "琼结县",
  12890. "曲松县",
  12891. "措美县",
  12892. "洛扎县",
  12893. "加查县",
  12894. "隆子县",
  12895. "错那县",
  12896. "浪卡子县"] },
  12897. {
  12898. "name": "日喀则地区",
  12899. "area": [
  12900. "日喀则市",
  12901. "南木林县",
  12902. "江孜县",
  12903. "定日县",
  12904. "萨迦县",
  12905. "拉孜县",
  12906. "昂仁县",
  12907. "谢通门县",
  12908. "白朗县",
  12909. "仁布县",
  12910. "康马县",
  12911. "定结县",
  12912. "仲巴县",
  12913. "亚东县",
  12914. "吉隆县",
  12915. "聂拉木县",
  12916. "萨嘎县",
  12917. "岗巴县"] },
  12918. {
  12919. "name": "阿里地区",
  12920. "area": [
  12921. "噶尔县",
  12922. "普兰县",
  12923. "札达县",
  12924. "日土县",
  12925. "革吉县",
  12926. "改则县",
  12927. "措勤县"] }] },
  12928. {
  12929. "name": "陕西省",
  12930. "city": [
  12931. {
  12932. "name": "西安市",
  12933. "area": [
  12934. "莲湖区",
  12935. "新城区",
  12936. "碑林区",
  12937. "雁塔区",
  12938. "灞桥区",
  12939. "未央区",
  12940. "阎良区",
  12941. "临潼区",
  12942. "长安区",
  12943. "高陵县",
  12944. "蓝田县",
  12945. "户县",
  12946. "周至县"] },
  12947. {
  12948. "name": "铜川市",
  12949. "area": [
  12950. "耀州区",
  12951. "王益区",
  12952. "印台区",
  12953. "宜君县"] },
  12954. {
  12955. "name": "宝鸡市",
  12956. "area": [
  12957. "渭滨区",
  12958. "金台区",
  12959. "陈仓区",
  12960. "岐山县",
  12961. "凤翔县",
  12962. "陇县",
  12963. "太白县",
  12964. "麟游县",
  12965. "扶风县",
  12966. "千阳县",
  12967. "眉县",
  12968. "凤县"] },
  12969. {
  12970. "name": "咸阳市",
  12971. "area": [
  12972. "秦都区",
  12973. "渭城区",
  12974. "杨陵区",
  12975. "兴平市",
  12976. "礼泉县",
  12977. "泾阳县",
  12978. "永寿县",
  12979. "三原县",
  12980. "彬县",
  12981. "旬邑县",
  12982. "长武县",
  12983. "乾县",
  12984. "武功县",
  12985. "淳化县"] },
  12986. {
  12987. "name": "渭南市",
  12988. "area": [
  12989. "临渭区",
  12990. "韩城市",
  12991. "华阴市",
  12992. "蒲城县",
  12993. "潼关县",
  12994. "白水县",
  12995. "澄城县",
  12996. "华县",
  12997. "合阳县",
  12998. "富平县",
  12999. "大荔县"] },
  13000. {
  13001. "name": "延安市",
  13002. "area": [
  13003. "宝塔区",
  13004. "安塞县",
  13005. "洛川县",
  13006. "子长县",
  13007. "黄陵县",
  13008. "延川县",
  13009. "富县",
  13010. "延长县",
  13011. "甘泉县",
  13012. "宜川县",
  13013. "志丹县",
  13014. "黄龙县",
  13015. "吴起县"] },
  13016. {
  13017. "name": "汉中市",
  13018. "area": [
  13019. "汉台区",
  13020. "留坝县",
  13021. "镇巴县",
  13022. "城固县",
  13023. "南郑县",
  13024. "洋县",
  13025. "宁强县",
  13026. "佛坪县",
  13027. "勉县",
  13028. "西乡县",
  13029. "略阳县"] },
  13030. {
  13031. "name": "榆林市",
  13032. "area": [
  13033. "榆阳区",
  13034. "清涧县",
  13035. "绥德县",
  13036. "神木县",
  13037. "佳县",
  13038. "府谷县",
  13039. "子洲县",
  13040. "靖边县",
  13041. "横山县",
  13042. "米脂县",
  13043. "吴堡县",
  13044. "定边县"] },
  13045. {
  13046. "name": "安康市",
  13047. "area": [
  13048. "汉滨区",
  13049. "紫阳县",
  13050. "岚皋县",
  13051. "旬阳县",
  13052. "镇坪县",
  13053. "平利县",
  13054. "石泉县",
  13055. "宁陕县",
  13056. "白河县",
  13057. "汉阴县"] },
  13058. {
  13059. "name": "商洛市",
  13060. "area": [
  13061. "商州区",
  13062. "镇安县",
  13063. "山阳县",
  13064. "洛南县",
  13065. "商南县",
  13066. "丹凤县",
  13067. "柞水县"] }] },
  13068. {
  13069. "name": "甘肃省",
  13070. "city": [
  13071. {
  13072. "name": "兰州市",
  13073. "area": [
  13074. "城关区",
  13075. "七里河区",
  13076. "西固区",
  13077. "安宁区",
  13078. "红古区",
  13079. "永登县",
  13080. "皋兰县",
  13081. "榆中县"] },
  13082. {
  13083. "name": "嘉峪关市",
  13084. "area": [
  13085. "嘉峪关市"] },
  13086. {
  13087. "name": "金昌市",
  13088. "area": [
  13089. "金川区",
  13090. "永昌县"] },
  13091. {
  13092. "name": "白银市",
  13093. "area": [
  13094. "白银区",
  13095. "平川区",
  13096. "靖远县",
  13097. "会宁县",
  13098. "景泰县"] },
  13099. {
  13100. "name": "天水市",
  13101. "area": [
  13102. "清水县",
  13103. "秦安县",
  13104. "甘谷县",
  13105. "武山县",
  13106. "张家川回族自治县",
  13107. "北道区",
  13108. "秦城区"] },
  13109. {
  13110. "name": "武威市",
  13111. "area": [
  13112. "凉州区",
  13113. "民勤县",
  13114. "古浪县",
  13115. "天祝藏族自治县"] },
  13116. {
  13117. "name": "酒泉市",
  13118. "area": [
  13119. "肃州区",
  13120. "玉门市",
  13121. "敦煌市",
  13122. "金塔县",
  13123. "肃北蒙古族自治县",
  13124. "阿克塞哈萨克族自治县",
  13125. "安西县"] },
  13126. {
  13127. "name": "张掖市",
  13128. "area": [
  13129. "甘州区",
  13130. "民乐县",
  13131. "临泽县",
  13132. "高台县",
  13133. "山丹县",
  13134. "肃南裕固族自治县"] },
  13135. {
  13136. "name": "庆阳市",
  13137. "area": [
  13138. "西峰区",
  13139. "庆城县",
  13140. "环县",
  13141. "华池县",
  13142. "合水县",
  13143. "正宁县",
  13144. "宁县",
  13145. "镇原县"] },
  13146. {
  13147. "name": "平凉市",
  13148. "area": [
  13149. "崆峒区",
  13150. "泾川县",
  13151. "灵台县",
  13152. "崇信县",
  13153. "华亭县",
  13154. "庄浪县",
  13155. "静宁县"] },
  13156. {
  13157. "name": "定西市",
  13158. "area": [
  13159. "安定区",
  13160. "通渭县",
  13161. "临洮县",
  13162. "漳县",
  13163. "岷县",
  13164. "渭源县",
  13165. "陇西县"] },
  13166. {
  13167. "name": "陇南市",
  13168. "area": [
  13169. "武都区",
  13170. "成县",
  13171. "宕昌县",
  13172. "康县",
  13173. "文县",
  13174. "西和县",
  13175. "礼县",
  13176. "两当县",
  13177. "徽县"] },
  13178. {
  13179. "name": "临夏回族自治州",
  13180. "area": [
  13181. "临夏市",
  13182. "临夏县",
  13183. "康乐县",
  13184. "永靖县",
  13185. "广河县",
  13186. "和政县",
  13187. "东乡族自治县",
  13188. "积石山保安族东乡族撒拉族自治县"] },
  13189. {
  13190. "name": "甘南藏族自治州",
  13191. "area": [
  13192. "合作市",
  13193. "临潭县",
  13194. "卓尼县",
  13195. "舟曲县",
  13196. "迭部县",
  13197. "玛曲县",
  13198. "碌曲县",
  13199. "夏河县"] }] },
  13200. {
  13201. "name": "青海省",
  13202. "city": [
  13203. {
  13204. "name": "西宁市",
  13205. "area": [
  13206. "城中区",
  13207. "城东区",
  13208. "城西区",
  13209. "城北区",
  13210. "湟源县",
  13211. "湟中县",
  13212. "大通回族土族自治县"] },
  13213. {
  13214. "name": "海东地区",
  13215. "area": [
  13216. "平安县",
  13217. "乐都县",
  13218. "民和回族土族自治县",
  13219. "互助土族自治县",
  13220. "化隆回族自治县",
  13221. "循化撒拉族自治县"] },
  13222. {
  13223. "name": "海北藏族自治州",
  13224. "area": [
  13225. "海晏县",
  13226. "祁连县",
  13227. "刚察县",
  13228. "门源回族自治县"] },
  13229. {
  13230. "name": "海南藏族自治州",
  13231. "area": [
  13232. "共和县",
  13233. "同德县",
  13234. "贵德县",
  13235. "兴海县",
  13236. "贵南县"] },
  13237. {
  13238. "name": "黄南藏族自治州",
  13239. "area": [
  13240. "同仁县",
  13241. "尖扎县",
  13242. "泽库县",
  13243. "河南蒙古族自治县"] },
  13244. {
  13245. "name": "果洛藏族自治州",
  13246. "area": [
  13247. "玛沁县",
  13248. "班玛县",
  13249. "甘德县",
  13250. "达日县",
  13251. "久治县",
  13252. "玛多县"] },
  13253. {
  13254. "name": "玉树藏族自治州",
  13255. "area": [
  13256. "玉树县",
  13257. "杂多县",
  13258. "称多县",
  13259. "治多县",
  13260. "囊谦县",
  13261. "曲麻莱县"] },
  13262. {
  13263. "name": "海西蒙古族藏族自治州",
  13264. "area": [
  13265. "德令哈市",
  13266. "格尔木市",
  13267. "乌兰县",
  13268. "都兰县",
  13269. "天峻县"] }] },
  13270. {
  13271. "name": "宁夏",
  13272. "city": [
  13273. {
  13274. "name": "银川市",
  13275. "area": [
  13276. "兴庆区",
  13277. "西夏区",
  13278. "金凤区",
  13279. "灵武市",
  13280. "永宁县",
  13281. "贺兰县"] },
  13282. {
  13283. "name": "石嘴山市",
  13284. "area": [
  13285. "大武口区",
  13286. "惠农区",
  13287. "平罗县"] },
  13288. {
  13289. "name": "吴忠市",
  13290. "area": [
  13291. "利通区",
  13292. "青铜峡市",
  13293. "盐池县",
  13294. "同心县"] },
  13295. {
  13296. "name": "固原市",
  13297. "area": [
  13298. "原州区",
  13299. "西吉县",
  13300. "隆德县",
  13301. "泾源县",
  13302. "彭阳县"] },
  13303. {
  13304. "name": "中卫市",
  13305. "area": [
  13306. "沙坡头区",
  13307. "中宁县",
  13308. "海原县"] }] },
  13309. {
  13310. "name": "新疆",
  13311. "city": [
  13312. {
  13313. "name": "乌鲁木齐市",
  13314. "area": [
  13315. "天山区",
  13316. "沙依巴克区",
  13317. "新市区",
  13318. "水磨沟区",
  13319. "头屯河区",
  13320. "达坂城区",
  13321. "东山区",
  13322. "乌鲁木齐县"] },
  13323. {
  13324. "name": "克拉玛依市",
  13325. "area": [
  13326. "克拉玛依区",
  13327. "独山子区",
  13328. "白碱滩区",
  13329. "乌尔禾区"] },
  13330. {
  13331. "name": "吐鲁番地区",
  13332. "area": [
  13333. "吐鲁番市",
  13334. "托克逊县",
  13335. "鄯善县"] },
  13336. {
  13337. "name": "哈密地区",
  13338. "area": [
  13339. "哈密市",
  13340. "伊吾县",
  13341. "巴里坤哈萨克自治县"] },
  13342. {
  13343. "name": "和田地区",
  13344. "area": [
  13345. "和田市",
  13346. "和田县",
  13347. "洛浦县",
  13348. "民丰县",
  13349. "皮山县",
  13350. "策勒县",
  13351. "于田县",
  13352. "墨玉县"] },
  13353. {
  13354. "name": "阿克苏地区",
  13355. "area": [
  13356. "阿克苏市",
  13357. "温宿县",
  13358. "沙雅县",
  13359. "拜城县",
  13360. "阿瓦提县",
  13361. "库车县",
  13362. "柯坪县",
  13363. "新和县",
  13364. "乌什县"] },
  13365. {
  13366. "name": "喀什地区",
  13367. "area": [
  13368. "喀什市",
  13369. "巴楚县",
  13370. "泽普县",
  13371. "伽师县",
  13372. "叶城县",
  13373. "岳普湖县",
  13374. "疏勒县",
  13375. "麦盖提县",
  13376. "英吉沙县",
  13377. "莎车县",
  13378. "疏附县",
  13379. "塔什库尔干塔吉克自治县"] },
  13380. {
  13381. "name": "克孜勒苏柯尔克孜自治州",
  13382. "area": [
  13383. "阿图什市",
  13384. "阿合奇县",
  13385. "乌恰县",
  13386. "阿克陶县"] },
  13387. {
  13388. "name": "巴音郭楞蒙古自治州",
  13389. "area": [
  13390. "库尔勒市",
  13391. "和静县",
  13392. "尉犁县",
  13393. "和硕县",
  13394. "且末县",
  13395. "博湖县",
  13396. "轮台县",
  13397. "若羌县",
  13398. "焉耆回族自治县"] },
  13399. {
  13400. "name": "昌吉回族自治州",
  13401. "area": [
  13402. "昌吉市",
  13403. "阜康市",
  13404. "奇台县",
  13405. "玛纳斯县",
  13406. "吉木萨尔县",
  13407. "呼图壁县",
  13408. "木垒哈萨克自治县",
  13409. "米泉市"] },
  13410. {
  13411. "name": "博尔塔拉蒙古自治州",
  13412. "area": [
  13413. "博乐市",
  13414. "精河县",
  13415. "温泉县"] },
  13416. {
  13417. "name": "石河子",
  13418. "area": [
  13419. "石河子"] },
  13420. {
  13421. "name": "阿拉尔",
  13422. "area": [
  13423. "阿拉尔"] },
  13424. {
  13425. "name": "图木舒克",
  13426. "area": [
  13427. "图木舒克"] },
  13428. {
  13429. "name": "五家渠",
  13430. "area": [
  13431. "五家渠"] },
  13432. {
  13433. "name": "伊犁哈萨克自治州",
  13434. "area": [
  13435. "伊宁市",
  13436. "奎屯市",
  13437. "伊宁县",
  13438. "特克斯县",
  13439. "尼勒克县",
  13440. "昭苏县",
  13441. "新源县",
  13442. "霍城县",
  13443. "巩留县",
  13444. "察布查尔锡伯自治县",
  13445. "塔城地区",
  13446. "阿勒泰地区"] }] },
  13447. {
  13448. "name": "台湾省",
  13449. "city": [
  13450. {
  13451. "name": "台北市",
  13452. "area": [
  13453. "内湖区",
  13454. "南港区",
  13455. "中正区",
  13456. "万华区",
  13457. "大同区",
  13458. "中山区",
  13459. "松山区",
  13460. "大安区",
  13461. "信义区",
  13462. "文山区",
  13463. "士林区",
  13464. "北投区"] },
  13465. {
  13466. "name": "新北市",
  13467. "area": [
  13468. "板桥区",
  13469. "汐止区",
  13470. "新店区"] },
  13471. {
  13472. "name": "桃园市",
  13473. "area": [
  13474. "其他"] },
  13475. {
  13476. "name": "台中市",
  13477. "area": [
  13478. "其他"] },
  13479. {
  13480. "name": "台南市",
  13481. "area": [
  13482. "其他"] },
  13483. {
  13484. "name": "高雄市",
  13485. "area": [
  13486. "其他"] }] },
  13487. {
  13488. "name": "澳门",
  13489. "city": [
  13490. {
  13491. "name": "澳门",
  13492. "area": [
  13493. "花地玛堂区",
  13494. "圣安多尼堂区",
  13495. "大堂区",
  13496. "望德堂区",
  13497. "风顺堂区",
  13498. "嘉模堂区",
  13499. "圣方济各堂区",
  13500. "路凼"] }] },
  13501. {
  13502. "name": "香港",
  13503. "city": [
  13504. {
  13505. "name": "香港",
  13506. "area": [
  13507. "深水埗区",
  13508. "油尖旺区",
  13509. "九龙城区",
  13510. "黄大仙区",
  13511. "观塘区",
  13512. "北区",
  13513. "大埔区",
  13514. "沙田区",
  13515. "西贡区",
  13516. "元朗区",
  13517. "屯门区",
  13518. "荃湾区",
  13519. "葵青区",
  13520. "离岛区",
  13521. "中西区",
  13522. "湾仔区",
  13523. "东区",
  13524. "南区"] }] }];exports.default = _default;
  13525. /***/ }),
  13526. /***/ 47:
  13527. /*!*********************************************************!*\
  13528. !*** /Users/wanglili/Documents/liuniu/jxred/api/ask.js ***!
  13529. \*********************************************************/
  13530. /*! no static exports found */
  13531. /***/ (function(module, exports, __webpack_require__) {
  13532. "use strict";
  13533. Object.defineProperty(exports, "__esModule", { value: true });exports.addrescuer = addrescuer;exports.upload = upload;exports.articlesave = articlesave;exports.myarticle = myarticle;exports.replyask = replyask;exports.replylist = replylist;exports.myreplylist = myreplylist;exports.mechanism = mechanism;exports.chosintention = chosintention;exports.joinDona = joinDona;exports.getDonaList = getDonaList;exports.MyDonaList = MyDonaList;exports.getCertificate = getCertificate;var _request = _interopRequireWildcard(__webpack_require__(/*! @/utils/request */ 21));function _getRequireWildcardCache() {if (typeof WeakMap !== "function") return null;var cache = new WeakMap();_getRequireWildcardCache = function _getRequireWildcardCache() {return cache;};return cache;}function _interopRequireWildcard(obj) {if (obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache();if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}
  13534. //上传救护者信息
  13535. function addrescuer(data) {
  13536. return (0, _request.default)({
  13537. url: '/api/add_rescuer',
  13538. method: 'post',
  13539. data: data });
  13540. }
  13541. //上传图片
  13542. function upload(data) {
  13543. return (0, _request.upFilse)({
  13544. url: '/api/upload/image',
  13545. method: 'post',
  13546. data: data });
  13547. }
  13548. //发表文章
  13549. function articlesave(data) {
  13550. return (0, _request.default)({
  13551. url: '/api/circle/articlesave',
  13552. method: 'post',
  13553. data: data });
  13554. }
  13555. //我发表的文章
  13556. function myarticle(data) {
  13557. return (0, _request.default)({
  13558. url: '/api/circle/myarticle',
  13559. method: 'post',
  13560. data: data });
  13561. }
  13562. //发表评论
  13563. function replyask(data) {
  13564. return (0, _request.default)({
  13565. url: '/api/add_a',
  13566. method: 'post',
  13567. data: data });
  13568. }
  13569. //问答详情
  13570. function replylist(data) {
  13571. return (0, _request.default)({
  13572. url: '/api/q_list',
  13573. method: 'get',
  13574. data: data });
  13575. }
  13576. //评论列表
  13577. function myreplylist(data) {
  13578. return (0, _request.default)({
  13579. url: '/api/a_list',
  13580. method: 'get',
  13581. data: data });
  13582. }
  13583. //机构搜索
  13584. function mechanism(data) {
  13585. return (0, _request.default)({
  13586. url: '/api/mechanism',
  13587. method: 'get',
  13588. data: data });
  13589. }
  13590. // 捐款意向 chosintention
  13591. function chosintention(data) {
  13592. return (0, _request.default)({
  13593. url: '/api/intention',
  13594. method: 'get',
  13595. data: data });
  13596. }
  13597. // 爱心捐赠 joinDona 提交
  13598. function joinDona(data) {
  13599. return (0, _request.default)({
  13600. url: '/api/intention',
  13601. method: 'get',
  13602. data: data });
  13603. }
  13604. // 捐赠列表 getDonaList
  13605. function getDonaList(data) {
  13606. return (0, _request.default)({
  13607. url: '/api/bulletin',
  13608. method: 'get',
  13609. data: data });
  13610. }
  13611. // 我的捐赠 MyDonaList
  13612. function MyDonaList(data) {
  13613. return (0, _request.default)({
  13614. url: '/api/my_donate',
  13615. method: 'get',
  13616. data: data });
  13617. }
  13618. // 获得证书 getCertificate
  13619. function getCertificate(data) {
  13620. return (0, _request.default)({
  13621. url: '/api/detail_training',
  13622. method: 'get',
  13623. data: data });
  13624. }
  13625. /***/ }),
  13626. /***/ 48:
  13627. /*!***********************************************************!*\
  13628. !*** /Users/wanglili/Documents/liuniu/jxred/api/money.js ***!
  13629. \***********************************************************/
  13630. /*! no static exports found */
  13631. /***/ (function(module, exports, __webpack_require__) {
  13632. "use strict";
  13633. Object.defineProperty(exports, "__esModule", { value: true });exports.computedOrderkey = computedOrderkey;exports.createOrderkey = createOrderkey;exports.balance = balance;exports.orderPay = orderPay;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 21));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  13634. // 统计金额
  13635. function computedOrderkey(data) {
  13636. return (0, _request.default)({
  13637. url: '/api/order/computed/' + data.orderkey,
  13638. method: 'post',
  13639. data: data });
  13640. }
  13641. // 创建订单
  13642. function createOrderkey(data, key) {
  13643. return (0, _request.default)({
  13644. url: '/api/order/create/' + key,
  13645. method: 'post',
  13646. data: data });
  13647. }
  13648. // 账户余额
  13649. function balance(data) {
  13650. return (0, _request.default)({
  13651. url: '/api/user/balance',
  13652. method: 'get',
  13653. data: data });
  13654. }
  13655. // 订单支付
  13656. function orderPay(data) {
  13657. return (0, _request.default)({
  13658. url: '/api/order/pay',
  13659. method: 'post',
  13660. data: data });
  13661. }
  13662. /***/ }),
  13663. /***/ 481:
  13664. /*!****************************************************************************************!*\
  13665. !*** /Users/wanglili/Documents/liuniu/jxred/components/uni-swipe-action-item/mpwxs.js ***!
  13666. \****************************************************************************************/
  13667. /*! no static exports found */
  13668. /***/ (function(module, exports, __webpack_require__) {
  13669. "use strict";
  13670. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  13671. data: function data() {
  13672. return {
  13673. position: [],
  13674. button: {},
  13675. btn: "[]" };
  13676. },
  13677. // computed: {
  13678. // pos() {
  13679. // return JSON.stringify(this.position)
  13680. // },
  13681. // btn() {
  13682. // return JSON.stringify(this.button)
  13683. // }
  13684. // },
  13685. watch: {
  13686. button: {
  13687. handler: function handler(newVal) {
  13688. this.btn = JSON.stringify(newVal);
  13689. },
  13690. deep: true },
  13691. show: function show(newVal) {
  13692. if (this.autoClose) return;
  13693. if (!this.button) {
  13694. this.init();
  13695. return;
  13696. }
  13697. this.button.show = newVal;
  13698. },
  13699. leftOptions: function leftOptions() {
  13700. this.init();
  13701. },
  13702. rightOptions: function rightOptions() {
  13703. this.init();
  13704. } },
  13705. created: function created() {
  13706. if (this.swipeaction.children !== undefined) {
  13707. this.swipeaction.children.push(this);
  13708. }
  13709. },
  13710. mounted: function mounted() {
  13711. this.init();
  13712. },
  13713. beforeDestroy: function beforeDestroy() {var _this = this;
  13714. this.swipeaction.children.forEach(function (item, index) {
  13715. if (item === _this) {
  13716. _this.swipeaction.children.splice(index, 1);
  13717. }
  13718. });
  13719. },
  13720. methods: {
  13721. init: function init() {var _this2 = this;
  13722. clearTimeout(this.swipetimer);
  13723. this.swipetimer = setTimeout(function () {
  13724. _this2.getButtonSize();
  13725. }, 50);
  13726. },
  13727. closeSwipe: function closeSwipe(e) {
  13728. if (!this.autoClose) return;
  13729. this.swipeaction.closeOther(this);
  13730. },
  13731. change: function change(e) {
  13732. this.$emit('change', e.open);
  13733. var show = this.button.show;
  13734. if (show !== e.open) {
  13735. this.button.show = e.open;
  13736. }
  13737. },
  13738. appTouchStart: function appTouchStart(e) {var
  13739. clientX =
  13740. e.changedTouches[0].clientX;
  13741. this.clientX = clientX;
  13742. this.timestamp = new Date().getTime();
  13743. },
  13744. appTouchEnd: function appTouchEnd(e, index, item, position) {var
  13745. clientX =
  13746. e.changedTouches[0].clientX;
  13747. // fixed by xxxx 模拟点击事件,解决 ios 13 点击区域错位的问题
  13748. var diff = Math.abs(this.clientX - clientX);
  13749. var time = new Date().getTime() - this.timestamp;
  13750. if (diff < 40 && time < 300) {
  13751. this.$emit('click', {
  13752. content: item,
  13753. index: index,
  13754. position: position });
  13755. }
  13756. },
  13757. getButtonSize: function getButtonSize() {var _this3 = this;
  13758. var views = uni.createSelectorQuery().in(this);
  13759. views.
  13760. selectAll('.uni-swipe_button-group').
  13761. boundingClientRect(function (data) {
  13762. var show = 'none';
  13763. if (_this3.autoClose) {
  13764. show = 'none';
  13765. } else {
  13766. show = _this3.show;
  13767. }
  13768. _this3.button = {
  13769. data: data,
  13770. show: show };
  13771. }).
  13772. exec();
  13773. } } };exports.default = _default;
  13774. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  13775. /***/ }),
  13776. /***/ 5:
  13777. /*!*************************************************************!*\
  13778. !*** /Users/wanglili/Documents/liuniu/jxred/store/index.js ***!
  13779. \*************************************************************/
  13780. /*! no static exports found */
  13781. /***/ (function(module, exports, __webpack_require__) {
  13782. "use strict";
  13783. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 2));
  13784. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 6));
  13785. var _user = _interopRequireDefault(__webpack_require__(/*! ./model/user */ 7));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  13786. _vue.default.use(_vuex.default);
  13787. var store = new _vuex.default.Store({
  13788. state: {
  13789. baseURL: 'http://jxred.igxys.com', //请求地址配置
  13790. // baseURL: 'http://yrh.liuniu946.com', //请求地址配置
  13791. urlFile: '/index', //项目部署所在文件夹
  13792. loginInterceptor: false, //是否打开强制登录
  13793. token: ''
  13794. // shareData:'',//分享信息
  13795. },
  13796. mutations: {},
  13797. modules: {
  13798. user: _user.default },
  13799. actions: {} });var _default =
  13800. store;exports.default = _default;
  13801. /***/ }),
  13802. /***/ 507:
  13803. /*!****************************************************************************!*\
  13804. !*** /Users/wanglili/Documents/liuniu/jxred/components/uni-icons/icons.js ***!
  13805. \****************************************************************************/
  13806. /*! no static exports found */
  13807. /***/ (function(module, exports, __webpack_require__) {
  13808. "use strict";
  13809. Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _default = {
  13810. 'contact': "\uE100",
  13811. 'person': "\uE101",
  13812. 'personadd': "\uE102",
  13813. 'contact-filled': "\uE130",
  13814. 'person-filled': "\uE131",
  13815. 'personadd-filled': "\uE132",
  13816. 'phone': "\uE200",
  13817. 'email': "\uE201",
  13818. 'chatbubble': "\uE202",
  13819. 'chatboxes': "\uE203",
  13820. 'phone-filled': "\uE230",
  13821. 'email-filled': "\uE231",
  13822. 'chatbubble-filled': "\uE232",
  13823. 'chatboxes-filled': "\uE233",
  13824. 'weibo': "\uE260",
  13825. 'weixin': "\uE261",
  13826. 'pengyouquan': "\uE262",
  13827. 'chat': "\uE263",
  13828. 'qq': "\uE264",
  13829. 'videocam': "\uE300",
  13830. 'camera': "\uE301",
  13831. 'mic': "\uE302",
  13832. 'location': "\uE303",
  13833. 'mic-filled': "\uE332",
  13834. 'speech': "\uE332",
  13835. 'location-filled': "\uE333",
  13836. 'micoff': "\uE360",
  13837. 'image': "\uE363",
  13838. 'map': "\uE364",
  13839. 'compose': "\uE400",
  13840. 'trash': "\uE401",
  13841. 'upload': "\uE402",
  13842. 'download': "\uE403",
  13843. 'close': "\uE404",
  13844. 'redo': "\uE405",
  13845. 'undo': "\uE406",
  13846. 'refresh': "\uE407",
  13847. 'star': "\uE408",
  13848. 'plus': "\uE409",
  13849. 'minus': "\uE410",
  13850. 'circle': "\uE411",
  13851. 'checkbox': "\uE411",
  13852. 'close-filled': "\uE434",
  13853. 'clear': "\uE434",
  13854. 'refresh-filled': "\uE437",
  13855. 'star-filled': "\uE438",
  13856. 'plus-filled': "\uE439",
  13857. 'minus-filled': "\uE440",
  13858. 'circle-filled': "\uE441",
  13859. 'checkbox-filled': "\uE442",
  13860. 'closeempty': "\uE460",
  13861. 'refreshempty': "\uE461",
  13862. 'reload': "\uE462",
  13863. 'starhalf': "\uE463",
  13864. 'spinner': "\uE464",
  13865. 'spinner-cycle': "\uE465",
  13866. 'search': "\uE466",
  13867. 'plusempty': "\uE468",
  13868. 'forward': "\uE470",
  13869. 'back': "\uE471",
  13870. 'left-nav': "\uE471",
  13871. 'checkmarkempty': "\uE472",
  13872. 'home': "\uE500",
  13873. 'navigate': "\uE501",
  13874. 'gear': "\uE502",
  13875. 'paperplane': "\uE503",
  13876. 'info': "\uE504",
  13877. 'help': "\uE505",
  13878. 'locked': "\uE506",
  13879. 'more': "\uE507",
  13880. 'flag': "\uE508",
  13881. 'home-filled': "\uE530",
  13882. 'gear-filled': "\uE532",
  13883. 'info-filled': "\uE534",
  13884. 'help-filled': "\uE535",
  13885. 'more-filled': "\uE537",
  13886. 'settings': "\uE560",
  13887. 'list': "\uE562",
  13888. 'bars': "\uE563",
  13889. 'loop': "\uE565",
  13890. 'paperclip': "\uE567",
  13891. 'eye': "\uE568",
  13892. 'arrowup': "\uE580",
  13893. 'arrowdown': "\uE581",
  13894. 'arrowleft': "\uE582",
  13895. 'arrowright': "\uE583",
  13896. 'arrowthinup': "\uE584",
  13897. 'arrowthindown': "\uE585",
  13898. 'arrowthinleft': "\uE586",
  13899. 'arrowthinright': "\uE587",
  13900. 'pulldown': "\uE588",
  13901. 'closefill': "\uE589",
  13902. 'sound': "\uE590",
  13903. 'scan': "\uE612" };exports.default = _default;
  13904. /***/ }),
  13905. /***/ 6:
  13906. /*!********************************************!*\
  13907. !*** ./node_modules/vuex/dist/vuex.esm.js ***!
  13908. \********************************************/
  13909. /*! exports provided: default, Store, createNamespacedHelpers, install, mapActions, mapGetters, mapMutations, mapState */
  13910. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  13911. "use strict";
  13912. __webpack_require__.r(__webpack_exports__);
  13913. /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Store", function() { return Store; });
  13914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createNamespacedHelpers", function() { return createNamespacedHelpers; });
  13915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; });
  13916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapActions", function() { return mapActions; });
  13917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapGetters", function() { return mapGetters; });
  13918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapMutations", function() { return mapMutations; });
  13919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapState", function() { return mapState; });
  13920. /*!
  13921. * vuex v3.4.0
  13922. * (c) 2020 Evan You
  13923. * @license MIT
  13924. */
  13925. function applyMixin (Vue) {
  13926. var version = Number(Vue.version.split('.')[0]);
  13927. if (version >= 2) {
  13928. Vue.mixin({ beforeCreate: vuexInit });
  13929. } else {
  13930. // override init and inject vuex init procedure
  13931. // for 1.x backwards compatibility.
  13932. var _init = Vue.prototype._init;
  13933. Vue.prototype._init = function (options) {
  13934. if ( options === void 0 ) options = {};
  13935. options.init = options.init
  13936. ? [vuexInit].concat(options.init)
  13937. : vuexInit;
  13938. _init.call(this, options);
  13939. };
  13940. }
  13941. /**
  13942. * Vuex init hook, injected into each instances init hooks list.
  13943. */
  13944. function vuexInit () {
  13945. var options = this.$options;
  13946. // store injection
  13947. if (options.store) {
  13948. this.$store = typeof options.store === 'function'
  13949. ? options.store()
  13950. : options.store;
  13951. } else if (options.parent && options.parent.$store) {
  13952. this.$store = options.parent.$store;
  13953. }
  13954. }
  13955. }
  13956. var target = typeof window !== 'undefined'
  13957. ? window
  13958. : typeof global !== 'undefined'
  13959. ? global
  13960. : {};
  13961. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  13962. function devtoolPlugin (store) {
  13963. if (!devtoolHook) { return }
  13964. store._devtoolHook = devtoolHook;
  13965. devtoolHook.emit('vuex:init', store);
  13966. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  13967. store.replaceState(targetState);
  13968. });
  13969. store.subscribe(function (mutation, state) {
  13970. devtoolHook.emit('vuex:mutation', mutation, state);
  13971. }, { prepend: true });
  13972. store.subscribeAction(function (action, state) {
  13973. devtoolHook.emit('vuex:action', action, state);
  13974. }, { prepend: true });
  13975. }
  13976. /**
  13977. * Get the first item that pass the test
  13978. * by second argument function
  13979. *
  13980. * @param {Array} list
  13981. * @param {Function} f
  13982. * @return {*}
  13983. */
  13984. /**
  13985. * forEach for object
  13986. */
  13987. function forEachValue (obj, fn) {
  13988. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  13989. }
  13990. function isObject (obj) {
  13991. return obj !== null && typeof obj === 'object'
  13992. }
  13993. function isPromise (val) {
  13994. return val && typeof val.then === 'function'
  13995. }
  13996. function assert (condition, msg) {
  13997. if (!condition) { throw new Error(("[vuex] " + msg)) }
  13998. }
  13999. function partial (fn, arg) {
  14000. return function () {
  14001. return fn(arg)
  14002. }
  14003. }
  14004. // Base data struct for store's module, package with some attribute and method
  14005. var Module = function Module (rawModule, runtime) {
  14006. this.runtime = runtime;
  14007. // Store some children item
  14008. this._children = Object.create(null);
  14009. // Store the origin module object which passed by programmer
  14010. this._rawModule = rawModule;
  14011. var rawState = rawModule.state;
  14012. // Store the origin module's state
  14013. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  14014. };
  14015. var prototypeAccessors = { namespaced: { configurable: true } };
  14016. prototypeAccessors.namespaced.get = function () {
  14017. return !!this._rawModule.namespaced
  14018. };
  14019. Module.prototype.addChild = function addChild (key, module) {
  14020. this._children[key] = module;
  14021. };
  14022. Module.prototype.removeChild = function removeChild (key) {
  14023. delete this._children[key];
  14024. };
  14025. Module.prototype.getChild = function getChild (key) {
  14026. return this._children[key]
  14027. };
  14028. Module.prototype.hasChild = function hasChild (key) {
  14029. return key in this._children
  14030. };
  14031. Module.prototype.update = function update (rawModule) {
  14032. this._rawModule.namespaced = rawModule.namespaced;
  14033. if (rawModule.actions) {
  14034. this._rawModule.actions = rawModule.actions;
  14035. }
  14036. if (rawModule.mutations) {
  14037. this._rawModule.mutations = rawModule.mutations;
  14038. }
  14039. if (rawModule.getters) {
  14040. this._rawModule.getters = rawModule.getters;
  14041. }
  14042. };
  14043. Module.prototype.forEachChild = function forEachChild (fn) {
  14044. forEachValue(this._children, fn);
  14045. };
  14046. Module.prototype.forEachGetter = function forEachGetter (fn) {
  14047. if (this._rawModule.getters) {
  14048. forEachValue(this._rawModule.getters, fn);
  14049. }
  14050. };
  14051. Module.prototype.forEachAction = function forEachAction (fn) {
  14052. if (this._rawModule.actions) {
  14053. forEachValue(this._rawModule.actions, fn);
  14054. }
  14055. };
  14056. Module.prototype.forEachMutation = function forEachMutation (fn) {
  14057. if (this._rawModule.mutations) {
  14058. forEachValue(this._rawModule.mutations, fn);
  14059. }
  14060. };
  14061. Object.defineProperties( Module.prototype, prototypeAccessors );
  14062. var ModuleCollection = function ModuleCollection (rawRootModule) {
  14063. // register root module (Vuex.Store options)
  14064. this.register([], rawRootModule, false);
  14065. };
  14066. ModuleCollection.prototype.get = function get (path) {
  14067. return path.reduce(function (module, key) {
  14068. return module.getChild(key)
  14069. }, this.root)
  14070. };
  14071. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  14072. var module = this.root;
  14073. return path.reduce(function (namespace, key) {
  14074. module = module.getChild(key);
  14075. return namespace + (module.namespaced ? key + '/' : '')
  14076. }, '')
  14077. };
  14078. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  14079. update([], this.root, rawRootModule);
  14080. };
  14081. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  14082. var this$1 = this;
  14083. if ( runtime === void 0 ) runtime = true;
  14084. if ((true)) {
  14085. assertRawModule(path, rawModule);
  14086. }
  14087. var newModule = new Module(rawModule, runtime);
  14088. if (path.length === 0) {
  14089. this.root = newModule;
  14090. } else {
  14091. var parent = this.get(path.slice(0, -1));
  14092. parent.addChild(path[path.length - 1], newModule);
  14093. }
  14094. // register nested modules
  14095. if (rawModule.modules) {
  14096. forEachValue(rawModule.modules, function (rawChildModule, key) {
  14097. this$1.register(path.concat(key), rawChildModule, runtime);
  14098. });
  14099. }
  14100. };
  14101. ModuleCollection.prototype.unregister = function unregister (path) {
  14102. var parent = this.get(path.slice(0, -1));
  14103. var key = path[path.length - 1];
  14104. if (!parent.getChild(key).runtime) { return }
  14105. parent.removeChild(key);
  14106. };
  14107. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  14108. var parent = this.get(path.slice(0, -1));
  14109. var key = path[path.length - 1];
  14110. return parent.hasChild(key)
  14111. };
  14112. function update (path, targetModule, newModule) {
  14113. if ((true)) {
  14114. assertRawModule(path, newModule);
  14115. }
  14116. // update target module
  14117. targetModule.update(newModule);
  14118. // update nested modules
  14119. if (newModule.modules) {
  14120. for (var key in newModule.modules) {
  14121. if (!targetModule.getChild(key)) {
  14122. if ((true)) {
  14123. console.warn(
  14124. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  14125. 'manual reload is needed'
  14126. );
  14127. }
  14128. return
  14129. }
  14130. update(
  14131. path.concat(key),
  14132. targetModule.getChild(key),
  14133. newModule.modules[key]
  14134. );
  14135. }
  14136. }
  14137. }
  14138. var functionAssert = {
  14139. assert: function (value) { return typeof value === 'function'; },
  14140. expected: 'function'
  14141. };
  14142. var objectAssert = {
  14143. assert: function (value) { return typeof value === 'function' ||
  14144. (typeof value === 'object' && typeof value.handler === 'function'); },
  14145. expected: 'function or object with "handler" function'
  14146. };
  14147. var assertTypes = {
  14148. getters: functionAssert,
  14149. mutations: functionAssert,
  14150. actions: objectAssert
  14151. };
  14152. function assertRawModule (path, rawModule) {
  14153. Object.keys(assertTypes).forEach(function (key) {
  14154. if (!rawModule[key]) { return }
  14155. var assertOptions = assertTypes[key];
  14156. forEachValue(rawModule[key], function (value, type) {
  14157. assert(
  14158. assertOptions.assert(value),
  14159. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  14160. );
  14161. });
  14162. });
  14163. }
  14164. function makeAssertionMessage (path, key, type, value, expected) {
  14165. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  14166. if (path.length > 0) {
  14167. buf += " in module \"" + (path.join('.')) + "\"";
  14168. }
  14169. buf += " is " + (JSON.stringify(value)) + ".";
  14170. return buf
  14171. }
  14172. var Vue; // bind on install
  14173. var Store = function Store (options) {
  14174. var this$1 = this;
  14175. if ( options === void 0 ) options = {};
  14176. // Auto install if it is not done yet and `window` has `Vue`.
  14177. // To allow users to avoid auto-installation in some cases,
  14178. // this code should be placed here. See #731
  14179. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  14180. install(window.Vue);
  14181. }
  14182. if ((true)) {
  14183. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  14184. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  14185. assert(this instanceof Store, "store must be called with the new operator.");
  14186. }
  14187. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  14188. var strict = options.strict; if ( strict === void 0 ) strict = false;
  14189. // store internal state
  14190. this._committing = false;
  14191. this._actions = Object.create(null);
  14192. this._actionSubscribers = [];
  14193. this._mutations = Object.create(null);
  14194. this._wrappedGetters = Object.create(null);
  14195. this._modules = new ModuleCollection(options);
  14196. this._modulesNamespaceMap = Object.create(null);
  14197. this._subscribers = [];
  14198. this._watcherVM = new Vue();
  14199. this._makeLocalGettersCache = Object.create(null);
  14200. // bind commit and dispatch to self
  14201. var store = this;
  14202. var ref = this;
  14203. var dispatch = ref.dispatch;
  14204. var commit = ref.commit;
  14205. this.dispatch = function boundDispatch (type, payload) {
  14206. return dispatch.call(store, type, payload)
  14207. };
  14208. this.commit = function boundCommit (type, payload, options) {
  14209. return commit.call(store, type, payload, options)
  14210. };
  14211. // strict mode
  14212. this.strict = strict;
  14213. var state = this._modules.root.state;
  14214. // init root module.
  14215. // this also recursively registers all sub-modules
  14216. // and collects all module getters inside this._wrappedGetters
  14217. installModule(this, state, [], this._modules.root);
  14218. // initialize the store vm, which is responsible for the reactivity
  14219. // (also registers _wrappedGetters as computed properties)
  14220. resetStoreVM(this, state);
  14221. // apply plugins
  14222. plugins.forEach(function (plugin) { return plugin(this$1); });
  14223. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  14224. if (useDevtools) {
  14225. devtoolPlugin(this);
  14226. }
  14227. };
  14228. var prototypeAccessors$1 = { state: { configurable: true } };
  14229. prototypeAccessors$1.state.get = function () {
  14230. return this._vm._data.$$state
  14231. };
  14232. prototypeAccessors$1.state.set = function (v) {
  14233. if ((true)) {
  14234. assert(false, "use store.replaceState() to explicit replace store state.");
  14235. }
  14236. };
  14237. Store.prototype.commit = function commit (_type, _payload, _options) {
  14238. var this$1 = this;
  14239. // check object-style commit
  14240. var ref = unifyObjectStyle(_type, _payload, _options);
  14241. var type = ref.type;
  14242. var payload = ref.payload;
  14243. var options = ref.options;
  14244. var mutation = { type: type, payload: payload };
  14245. var entry = this._mutations[type];
  14246. if (!entry) {
  14247. if ((true)) {
  14248. console.error(("[vuex] unknown mutation type: " + type));
  14249. }
  14250. return
  14251. }
  14252. this._withCommit(function () {
  14253. entry.forEach(function commitIterator (handler) {
  14254. handler(payload);
  14255. });
  14256. });
  14257. this._subscribers
  14258. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  14259. .forEach(function (sub) { return sub(mutation, this$1.state); });
  14260. if (
  14261. ( true) &&
  14262. options && options.silent
  14263. ) {
  14264. console.warn(
  14265. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  14266. 'Use the filter functionality in the vue-devtools'
  14267. );
  14268. }
  14269. };
  14270. Store.prototype.dispatch = function dispatch (_type, _payload) {
  14271. var this$1 = this;
  14272. // check object-style dispatch
  14273. var ref = unifyObjectStyle(_type, _payload);
  14274. var type = ref.type;
  14275. var payload = ref.payload;
  14276. var action = { type: type, payload: payload };
  14277. var entry = this._actions[type];
  14278. if (!entry) {
  14279. if ((true)) {
  14280. console.error(("[vuex] unknown action type: " + type));
  14281. }
  14282. return
  14283. }
  14284. try {
  14285. this._actionSubscribers
  14286. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  14287. .filter(function (sub) { return sub.before; })
  14288. .forEach(function (sub) { return sub.before(action, this$1.state); });
  14289. } catch (e) {
  14290. if ((true)) {
  14291. console.warn("[vuex] error in before action subscribers: ");
  14292. console.error(e);
  14293. }
  14294. }
  14295. var result = entry.length > 1
  14296. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  14297. : entry[0](payload);
  14298. return new Promise(function (resolve, reject) {
  14299. result.then(function (res) {
  14300. try {
  14301. this$1._actionSubscribers
  14302. .filter(function (sub) { return sub.after; })
  14303. .forEach(function (sub) { return sub.after(action, this$1.state); });
  14304. } catch (e) {
  14305. if ((true)) {
  14306. console.warn("[vuex] error in after action subscribers: ");
  14307. console.error(e);
  14308. }
  14309. }
  14310. resolve(res);
  14311. }, function (error) {
  14312. try {
  14313. this$1._actionSubscribers
  14314. .filter(function (sub) { return sub.error; })
  14315. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  14316. } catch (e) {
  14317. if ((true)) {
  14318. console.warn("[vuex] error in error action subscribers: ");
  14319. console.error(e);
  14320. }
  14321. }
  14322. reject(error);
  14323. });
  14324. })
  14325. };
  14326. Store.prototype.subscribe = function subscribe (fn, options) {
  14327. return genericSubscribe(fn, this._subscribers, options)
  14328. };
  14329. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  14330. var subs = typeof fn === 'function' ? { before: fn } : fn;
  14331. return genericSubscribe(subs, this._actionSubscribers, options)
  14332. };
  14333. Store.prototype.watch = function watch (getter, cb, options) {
  14334. var this$1 = this;
  14335. if ((true)) {
  14336. assert(typeof getter === 'function', "store.watch only accepts a function.");
  14337. }
  14338. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  14339. };
  14340. Store.prototype.replaceState = function replaceState (state) {
  14341. var this$1 = this;
  14342. this._withCommit(function () {
  14343. this$1._vm._data.$$state = state;
  14344. });
  14345. };
  14346. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  14347. if ( options === void 0 ) options = {};
  14348. if (typeof path === 'string') { path = [path]; }
  14349. if ((true)) {
  14350. assert(Array.isArray(path), "module path must be a string or an Array.");
  14351. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  14352. }
  14353. this._modules.register(path, rawModule);
  14354. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  14355. // reset store to update getters...
  14356. resetStoreVM(this, this.state);
  14357. };
  14358. Store.prototype.unregisterModule = function unregisterModule (path) {
  14359. var this$1 = this;
  14360. if (typeof path === 'string') { path = [path]; }
  14361. if ((true)) {
  14362. assert(Array.isArray(path), "module path must be a string or an Array.");
  14363. }
  14364. this._modules.unregister(path);
  14365. this._withCommit(function () {
  14366. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  14367. Vue.delete(parentState, path[path.length - 1]);
  14368. });
  14369. resetStore(this);
  14370. };
  14371. Store.prototype.hasModule = function hasModule (path) {
  14372. if (typeof path === 'string') { path = [path]; }
  14373. if ((true)) {
  14374. assert(Array.isArray(path), "module path must be a string or an Array.");
  14375. }
  14376. return this._modules.isRegistered(path)
  14377. };
  14378. Store.prototype.hotUpdate = function hotUpdate (newOptions) {
  14379. this._modules.update(newOptions);
  14380. resetStore(this, true);
  14381. };
  14382. Store.prototype._withCommit = function _withCommit (fn) {
  14383. var committing = this._committing;
  14384. this._committing = true;
  14385. fn();
  14386. this._committing = committing;
  14387. };
  14388. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  14389. function genericSubscribe (fn, subs, options) {
  14390. if (subs.indexOf(fn) < 0) {
  14391. options && options.prepend
  14392. ? subs.unshift(fn)
  14393. : subs.push(fn);
  14394. }
  14395. return function () {
  14396. var i = subs.indexOf(fn);
  14397. if (i > -1) {
  14398. subs.splice(i, 1);
  14399. }
  14400. }
  14401. }
  14402. function resetStore (store, hot) {
  14403. store._actions = Object.create(null);
  14404. store._mutations = Object.create(null);
  14405. store._wrappedGetters = Object.create(null);
  14406. store._modulesNamespaceMap = Object.create(null);
  14407. var state = store.state;
  14408. // init all modules
  14409. installModule(store, state, [], store._modules.root, true);
  14410. // reset vm
  14411. resetStoreVM(store, state, hot);
  14412. }
  14413. function resetStoreVM (store, state, hot) {
  14414. var oldVm = store._vm;
  14415. // bind store public getters
  14416. store.getters = {};
  14417. // reset local getters cache
  14418. store._makeLocalGettersCache = Object.create(null);
  14419. var wrappedGetters = store._wrappedGetters;
  14420. var computed = {};
  14421. forEachValue(wrappedGetters, function (fn, key) {
  14422. // use computed to leverage its lazy-caching mechanism
  14423. // direct inline function use will lead to closure preserving oldVm.
  14424. // using partial to return function with only arguments preserved in closure environment.
  14425. computed[key] = partial(fn, store);
  14426. Object.defineProperty(store.getters, key, {
  14427. get: function () { return store._vm[key]; },
  14428. enumerable: true // for local getters
  14429. });
  14430. });
  14431. // use a Vue instance to store the state tree
  14432. // suppress warnings just in case the user has added
  14433. // some funky global mixins
  14434. var silent = Vue.config.silent;
  14435. Vue.config.silent = true;
  14436. store._vm = new Vue({
  14437. data: {
  14438. $$state: state
  14439. },
  14440. computed: computed
  14441. });
  14442. Vue.config.silent = silent;
  14443. // enable strict mode for new vm
  14444. if (store.strict) {
  14445. enableStrictMode(store);
  14446. }
  14447. if (oldVm) {
  14448. if (hot) {
  14449. // dispatch changes in all subscribed watchers
  14450. // to force getter re-evaluation for hot reloading.
  14451. store._withCommit(function () {
  14452. oldVm._data.$$state = null;
  14453. });
  14454. }
  14455. Vue.nextTick(function () { return oldVm.$destroy(); });
  14456. }
  14457. }
  14458. function installModule (store, rootState, path, module, hot) {
  14459. var isRoot = !path.length;
  14460. var namespace = store._modules.getNamespace(path);
  14461. // register in namespace map
  14462. if (module.namespaced) {
  14463. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  14464. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  14465. }
  14466. store._modulesNamespaceMap[namespace] = module;
  14467. }
  14468. // set state
  14469. if (!isRoot && !hot) {
  14470. var parentState = getNestedState(rootState, path.slice(0, -1));
  14471. var moduleName = path[path.length - 1];
  14472. store._withCommit(function () {
  14473. if ((true)) {
  14474. if (moduleName in parentState) {
  14475. console.warn(
  14476. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  14477. );
  14478. }
  14479. }
  14480. Vue.set(parentState, moduleName, module.state);
  14481. });
  14482. }
  14483. var local = module.context = makeLocalContext(store, namespace, path);
  14484. module.forEachMutation(function (mutation, key) {
  14485. var namespacedType = namespace + key;
  14486. registerMutation(store, namespacedType, mutation, local);
  14487. });
  14488. module.forEachAction(function (action, key) {
  14489. var type = action.root ? key : namespace + key;
  14490. var handler = action.handler || action;
  14491. registerAction(store, type, handler, local);
  14492. });
  14493. module.forEachGetter(function (getter, key) {
  14494. var namespacedType = namespace + key;
  14495. registerGetter(store, namespacedType, getter, local);
  14496. });
  14497. module.forEachChild(function (child, key) {
  14498. installModule(store, rootState, path.concat(key), child, hot);
  14499. });
  14500. }
  14501. /**
  14502. * make localized dispatch, commit, getters and state
  14503. * if there is no namespace, just use root ones
  14504. */
  14505. function makeLocalContext (store, namespace, path) {
  14506. var noNamespace = namespace === '';
  14507. var local = {
  14508. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  14509. var args = unifyObjectStyle(_type, _payload, _options);
  14510. var payload = args.payload;
  14511. var options = args.options;
  14512. var type = args.type;
  14513. if (!options || !options.root) {
  14514. type = namespace + type;
  14515. if (( true) && !store._actions[type]) {
  14516. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  14517. return
  14518. }
  14519. }
  14520. return store.dispatch(type, payload)
  14521. },
  14522. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  14523. var args = unifyObjectStyle(_type, _payload, _options);
  14524. var payload = args.payload;
  14525. var options = args.options;
  14526. var type = args.type;
  14527. if (!options || !options.root) {
  14528. type = namespace + type;
  14529. if (( true) && !store._mutations[type]) {
  14530. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  14531. return
  14532. }
  14533. }
  14534. store.commit(type, payload, options);
  14535. }
  14536. };
  14537. // getters and state object must be gotten lazily
  14538. // because they will be changed by vm update
  14539. Object.defineProperties(local, {
  14540. getters: {
  14541. get: noNamespace
  14542. ? function () { return store.getters; }
  14543. : function () { return makeLocalGetters(store, namespace); }
  14544. },
  14545. state: {
  14546. get: function () { return getNestedState(store.state, path); }
  14547. }
  14548. });
  14549. return local
  14550. }
  14551. function makeLocalGetters (store, namespace) {
  14552. if (!store._makeLocalGettersCache[namespace]) {
  14553. var gettersProxy = {};
  14554. var splitPos = namespace.length;
  14555. Object.keys(store.getters).forEach(function (type) {
  14556. // skip if the target getter is not match this namespace
  14557. if (type.slice(0, splitPos) !== namespace) { return }
  14558. // extract local getter type
  14559. var localType = type.slice(splitPos);
  14560. // Add a port to the getters proxy.
  14561. // Define as getter property because
  14562. // we do not want to evaluate the getters in this time.
  14563. Object.defineProperty(gettersProxy, localType, {
  14564. get: function () { return store.getters[type]; },
  14565. enumerable: true
  14566. });
  14567. });
  14568. store._makeLocalGettersCache[namespace] = gettersProxy;
  14569. }
  14570. return store._makeLocalGettersCache[namespace]
  14571. }
  14572. function registerMutation (store, type, handler, local) {
  14573. var entry = store._mutations[type] || (store._mutations[type] = []);
  14574. entry.push(function wrappedMutationHandler (payload) {
  14575. handler.call(store, local.state, payload);
  14576. });
  14577. }
  14578. function registerAction (store, type, handler, local) {
  14579. var entry = store._actions[type] || (store._actions[type] = []);
  14580. entry.push(function wrappedActionHandler (payload) {
  14581. var res = handler.call(store, {
  14582. dispatch: local.dispatch,
  14583. commit: local.commit,
  14584. getters: local.getters,
  14585. state: local.state,
  14586. rootGetters: store.getters,
  14587. rootState: store.state
  14588. }, payload);
  14589. if (!isPromise(res)) {
  14590. res = Promise.resolve(res);
  14591. }
  14592. if (store._devtoolHook) {
  14593. return res.catch(function (err) {
  14594. store._devtoolHook.emit('vuex:error', err);
  14595. throw err
  14596. })
  14597. } else {
  14598. return res
  14599. }
  14600. });
  14601. }
  14602. function registerGetter (store, type, rawGetter, local) {
  14603. if (store._wrappedGetters[type]) {
  14604. if ((true)) {
  14605. console.error(("[vuex] duplicate getter key: " + type));
  14606. }
  14607. return
  14608. }
  14609. store._wrappedGetters[type] = function wrappedGetter (store) {
  14610. return rawGetter(
  14611. local.state, // local state
  14612. local.getters, // local getters
  14613. store.state, // root state
  14614. store.getters // root getters
  14615. )
  14616. };
  14617. }
  14618. function enableStrictMode (store) {
  14619. store._vm.$watch(function () { return this._data.$$state }, function () {
  14620. if ((true)) {
  14621. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  14622. }
  14623. }, { deep: true, sync: true });
  14624. }
  14625. function getNestedState (state, path) {
  14626. return path.reduce(function (state, key) { return state[key]; }, state)
  14627. }
  14628. function unifyObjectStyle (type, payload, options) {
  14629. if (isObject(type) && type.type) {
  14630. options = payload;
  14631. payload = type;
  14632. type = type.type;
  14633. }
  14634. if ((true)) {
  14635. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  14636. }
  14637. return { type: type, payload: payload, options: options }
  14638. }
  14639. function install (_Vue) {
  14640. if (Vue && _Vue === Vue) {
  14641. if ((true)) {
  14642. console.error(
  14643. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  14644. );
  14645. }
  14646. return
  14647. }
  14648. Vue = _Vue;
  14649. applyMixin(Vue);
  14650. }
  14651. /**
  14652. * Reduce the code which written in Vue.js for getting the state.
  14653. * @param {String} [namespace] - Module's namespace
  14654. * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.
  14655. * @param {Object}
  14656. */
  14657. var mapState = normalizeNamespace(function (namespace, states) {
  14658. var res = {};
  14659. if (( true) && !isValidMap(states)) {
  14660. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  14661. }
  14662. normalizeMap(states).forEach(function (ref) {
  14663. var key = ref.key;
  14664. var val = ref.val;
  14665. res[key] = function mappedState () {
  14666. var state = this.$store.state;
  14667. var getters = this.$store.getters;
  14668. if (namespace) {
  14669. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  14670. if (!module) {
  14671. return
  14672. }
  14673. state = module.context.state;
  14674. getters = module.context.getters;
  14675. }
  14676. return typeof val === 'function'
  14677. ? val.call(this, state, getters)
  14678. : state[val]
  14679. };
  14680. // mark vuex getter for devtools
  14681. res[key].vuex = true;
  14682. });
  14683. return res
  14684. });
  14685. /**
  14686. * Reduce the code which written in Vue.js for committing the mutation
  14687. * @param {String} [namespace] - Module's namespace
  14688. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept anthor params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  14689. * @return {Object}
  14690. */
  14691. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  14692. var res = {};
  14693. if (( true) && !isValidMap(mutations)) {
  14694. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  14695. }
  14696. normalizeMap(mutations).forEach(function (ref) {
  14697. var key = ref.key;
  14698. var val = ref.val;
  14699. res[key] = function mappedMutation () {
  14700. var args = [], len = arguments.length;
  14701. while ( len-- ) args[ len ] = arguments[ len ];
  14702. // Get the commit method from store
  14703. var commit = this.$store.commit;
  14704. if (namespace) {
  14705. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  14706. if (!module) {
  14707. return
  14708. }
  14709. commit = module.context.commit;
  14710. }
  14711. return typeof val === 'function'
  14712. ? val.apply(this, [commit].concat(args))
  14713. : commit.apply(this.$store, [val].concat(args))
  14714. };
  14715. });
  14716. return res
  14717. });
  14718. /**
  14719. * Reduce the code which written in Vue.js for getting the getters
  14720. * @param {String} [namespace] - Module's namespace
  14721. * @param {Object|Array} getters
  14722. * @return {Object}
  14723. */
  14724. var mapGetters = normalizeNamespace(function (namespace, getters) {
  14725. var res = {};
  14726. if (( true) && !isValidMap(getters)) {
  14727. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  14728. }
  14729. normalizeMap(getters).forEach(function (ref) {
  14730. var key = ref.key;
  14731. var val = ref.val;
  14732. // The namespace has been mutated by normalizeNamespace
  14733. val = namespace + val;
  14734. res[key] = function mappedGetter () {
  14735. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  14736. return
  14737. }
  14738. if (( true) && !(val in this.$store.getters)) {
  14739. console.error(("[vuex] unknown getter: " + val));
  14740. return
  14741. }
  14742. return this.$store.getters[val]
  14743. };
  14744. // mark vuex getter for devtools
  14745. res[key].vuex = true;
  14746. });
  14747. return res
  14748. });
  14749. /**
  14750. * Reduce the code which written in Vue.js for dispatch the action
  14751. * @param {String} [namespace] - Module's namespace
  14752. * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  14753. * @return {Object}
  14754. */
  14755. var mapActions = normalizeNamespace(function (namespace, actions) {
  14756. var res = {};
  14757. if (( true) && !isValidMap(actions)) {
  14758. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  14759. }
  14760. normalizeMap(actions).forEach(function (ref) {
  14761. var key = ref.key;
  14762. var val = ref.val;
  14763. res[key] = function mappedAction () {
  14764. var args = [], len = arguments.length;
  14765. while ( len-- ) args[ len ] = arguments[ len ];
  14766. // get dispatch function from store
  14767. var dispatch = this.$store.dispatch;
  14768. if (namespace) {
  14769. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  14770. if (!module) {
  14771. return
  14772. }
  14773. dispatch = module.context.dispatch;
  14774. }
  14775. return typeof val === 'function'
  14776. ? val.apply(this, [dispatch].concat(args))
  14777. : dispatch.apply(this.$store, [val].concat(args))
  14778. };
  14779. });
  14780. return res
  14781. });
  14782. /**
  14783. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  14784. * @param {String} namespace
  14785. * @return {Object}
  14786. */
  14787. var createNamespacedHelpers = function (namespace) { return ({
  14788. mapState: mapState.bind(null, namespace),
  14789. mapGetters: mapGetters.bind(null, namespace),
  14790. mapMutations: mapMutations.bind(null, namespace),
  14791. mapActions: mapActions.bind(null, namespace)
  14792. }); };
  14793. /**
  14794. * Normalize the map
  14795. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  14796. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  14797. * @param {Array|Object} map
  14798. * @return {Object}
  14799. */
  14800. function normalizeMap (map) {
  14801. if (!isValidMap(map)) {
  14802. return []
  14803. }
  14804. return Array.isArray(map)
  14805. ? map.map(function (key) { return ({ key: key, val: key }); })
  14806. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  14807. }
  14808. /**
  14809. * Validate whether given map is valid or not
  14810. * @param {*} map
  14811. * @return {Boolean}
  14812. */
  14813. function isValidMap (map) {
  14814. return Array.isArray(map) || isObject(map)
  14815. }
  14816. /**
  14817. * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.
  14818. * @param {Function} fn
  14819. * @return {Function}
  14820. */
  14821. function normalizeNamespace (fn) {
  14822. return function (namespace, map) {
  14823. if (typeof namespace !== 'string') {
  14824. map = namespace;
  14825. namespace = '';
  14826. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  14827. namespace += '/';
  14828. }
  14829. return fn(namespace, map)
  14830. }
  14831. }
  14832. /**
  14833. * Search a special module from store by namespace. if module not exist, print error message.
  14834. * @param {Object} store
  14835. * @param {String} helper
  14836. * @param {String} namespace
  14837. * @return {Object}
  14838. */
  14839. function getModuleByNamespace (store, helper, namespace) {
  14840. var module = store._modulesNamespaceMap[namespace];
  14841. if (( true) && !module) {
  14842. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  14843. }
  14844. return module
  14845. }
  14846. var index = {
  14847. Store: Store,
  14848. install: install,
  14849. version: '3.4.0',
  14850. mapState: mapState,
  14851. mapMutations: mapMutations,
  14852. mapGetters: mapGetters,
  14853. mapActions: mapActions,
  14854. createNamespacedHelpers: createNamespacedHelpers
  14855. };
  14856. /* harmony default export */ __webpack_exports__["default"] = (index);
  14857. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 3)))
  14858. /***/ }),
  14859. /***/ 7:
  14860. /*!******************************************************************!*\
  14861. !*** /Users/wanglili/Documents/liuniu/jxred/store/model/user.js ***!
  14862. \******************************************************************/
  14863. /*! no static exports found */
  14864. /***/ (function(module, exports, __webpack_require__) {
  14865. "use strict";
  14866. /* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var state = {
  14867. userInfo: {}, //用户信息
  14868. orderInfo: {
  14869. complete_count: 0, //完成
  14870. received_count: 0, //待收货
  14871. unshipped_count: 0, //待发货
  14872. order_count: 0, //订单总数
  14873. unpaid_count: 0 //待付款
  14874. }, //订单信息
  14875. hasLogin: false //是否登录
  14876. };
  14877. var mutations = {
  14878. // 登录
  14879. login: function login(state) {
  14880. state.hasLogin = true;
  14881. },
  14882. // 退出登录
  14883. logout: function logout(state, provider) {
  14884. state.hasLogin = false;
  14885. // 清空基础信息
  14886. state.userInfo = {};
  14887. state.orderInfo = {
  14888. complete_count: 0, //完成
  14889. received_count: 0, //待收货
  14890. unshipped_count: 0, //待发货
  14891. order_count: 0, //订单总数
  14892. unpaid_count: 0 //待付款
  14893. };
  14894. // 清除缓存用户信息
  14895. uni.removeStorage({
  14896. key: 'userInfo' });
  14897. // 清除缓存token
  14898. uni.removeStorage({
  14899. key: 'token' });
  14900. },
  14901. // 保存用户信息
  14902. setUserInfo: function setUserInfo(state, provider) {
  14903. state.userInfo = provider;
  14904. uni.setStorage({ //缓存用户登陆状态
  14905. key: 'userInfo',
  14906. data: provider });
  14907. },
  14908. // 保存订单信息
  14909. setOrderInfo: function setOrderInfo(state, provider) {
  14910. state.orderInfo = provider;
  14911. } };
  14912. var getters = {};var _default =
  14913. {
  14914. namespaced: true,
  14915. state: state,
  14916. mutations: mutations,
  14917. getters: getters };exports.default = _default;
  14918. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
  14919. /***/ }),
  14920. /***/ 81:
  14921. /*!***********************************************************!*\
  14922. !*** /Users/wanglili/Documents/liuniu/jxred/api/train.js ***!
  14923. \***********************************************************/
  14924. /*! no static exports found */
  14925. /***/ (function(module, exports, __webpack_require__) {
  14926. "use strict";
  14927. Object.defineProperty(exports, "__esModule", { value: true });exports.get_training = get_training;exports.detail_training = detail_training;exports.sign_training = sign_training;exports.add_volunteers = add_volunteers;exports.cell = cell;exports.get_cell = get_cell;exports.sign_cell = sign_cell;var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 21));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };}
  14928. //救护培训系详情
  14929. function get_training(data) {
  14930. return (0, _request.default)({
  14931. url: '/api/get_training',
  14932. method: 'get',
  14933. data: data });
  14934. }
  14935. function detail_training(data) {
  14936. return (0, _request.default)({
  14937. url: '/api/detail_training',
  14938. method: 'get',
  14939. data: data });
  14940. }
  14941. //救护培训报名
  14942. function sign_training(data) {
  14943. return (0, _request.default)({
  14944. url: '/api/sign_training',
  14945. method: 'post',
  14946. data: data });
  14947. }
  14948. //志愿者报名
  14949. function add_volunteers(data) {
  14950. return (0, _request.default)({
  14951. url: '/api/add_registration',
  14952. method: 'post',
  14953. data: data });
  14954. }
  14955. // 造血干细胞列表
  14956. function cell(data) {
  14957. return (0, _request.default)({
  14958. url: '/api/cell',
  14959. method: 'get',
  14960. data: data });
  14961. }
  14962. // 造血干细胞详情
  14963. function get_cell(data) {
  14964. return (0, _request.default)({
  14965. url: '/api/get_cell',
  14966. method: 'get',
  14967. data: data });
  14968. }
  14969. function sign_cell(data) {
  14970. return (0, _request.default)({
  14971. url: '/api/sign_cell',
  14972. method: 'post',
  14973. data: data });
  14974. }
  14975. /***/ })
  14976. }]);
  14977. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map