vendor.js 912 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],{
  2. /***/ 1:
  3. /*!*********************************************************!*\
  4. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  5. \*********************************************************/
  6. /*! no static exports found */
  7. /***/ (function(module, exports, __webpack_require__) {
  8. "use strict";
  9. Object.defineProperty(exports, "__esModule", {
  10. value: true
  11. });
  12. exports.default = void 0;
  13. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  14. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  15. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  16. return this;
  17. }();
  18. var key = ['w', 'x'].join('');
  19. var oldWx = target[key];
  20. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  21. function isWxKey(key) {
  22. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  23. return false;
  24. }
  25. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  26. }
  27. function initWx() {
  28. var newWx = {};
  29. for (var _key in oldWx) {
  30. if (isWxKey(_key)) {
  31. // TODO wrapper function
  32. newWx[_key] = oldWx[_key];
  33. }
  34. }
  35. return newWx;
  36. }
  37. target[key] = initWx();
  38. var _default = target[key];
  39. exports.default = _default;
  40. /***/ }),
  41. /***/ 10:
  42. /*!****************************************************************!*\
  43. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  44. \****************************************************************/
  45. /*! no static exports found */
  46. /***/ (function(module, exports) {
  47. function _nonIterableRest() {
  48. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  49. }
  50. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  51. /***/ }),
  52. /***/ 11:
  53. /*!***************************************************************!*\
  54. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  55. \***************************************************************/
  56. /*! no static exports found */
  57. /***/ (function(module, exports, __webpack_require__) {
  58. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  59. function _defineProperty(obj, key, value) {
  60. key = toPropertyKey(key);
  61. if (key in obj) {
  62. Object.defineProperty(obj, key, {
  63. value: value,
  64. enumerable: true,
  65. configurable: true,
  66. writable: true
  67. });
  68. } else {
  69. obj[key] = value;
  70. }
  71. return obj;
  72. }
  73. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  74. /***/ }),
  75. /***/ 110:
  76. /*!****************************************!*\
  77. !*** D:/工作/项目2/华畦/xcw/api/activity.js ***!
  78. \****************************************/
  79. /*! no static exports found */
  80. /***/ (function(module, exports, __webpack_require__) {
  81. "use strict";
  82. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  83. Object.defineProperty(exports, "__esModule", {
  84. value: true
  85. });
  86. exports.cancelIntegralOrder = cancelIntegralOrder;
  87. exports.closeBargainOrder = closeBargainOrder;
  88. exports.confirmIntegralOrder = confirmIntegralOrder;
  89. exports.delIntegralOrder = delIntegralOrder;
  90. exports.getActivityGoodsLists = getActivityGoodsLists;
  91. exports.getBargainActivityDetail = getBargainActivityDetail;
  92. exports.getBargainActivityList = getBargainActivityList;
  93. exports.getBargainDetail = getBargainDetail;
  94. exports.getBargainList = getBargainList;
  95. exports.getBargainNumber = getBargainNumber;
  96. exports.getBargainPost = getBargainPost;
  97. exports.getCoupon = getCoupon;
  98. exports.getCouponList = getCouponList;
  99. exports.getGroupList = getGroupList;
  100. exports.getIntegralGoods = getIntegralGoods;
  101. exports.getIntegralGoodsDetail = getIntegralGoodsDetail;
  102. exports.getIntegralOrder = getIntegralOrder;
  103. exports.getIntegralOrderDetail = getIntegralOrderDetail;
  104. exports.getIntegralOrderTraces = getIntegralOrderTraces;
  105. exports.getMyCoupon = getMyCoupon;
  106. exports.getOrderCoupon = getOrderCoupon;
  107. exports.getSeckillGoods = getSeckillGoods;
  108. exports.getSeckillTime = getSeckillTime;
  109. exports.getSignLists = getSignLists;
  110. exports.getSignRule = getSignRule;
  111. exports.getTeamInfo = getTeamInfo;
  112. exports.getUserGroup = getUserGroup;
  113. exports.helpBargain = helpBargain;
  114. exports.integralSettlement = integralSettlement;
  115. exports.integralSubmitOrder = integralSubmitOrder;
  116. exports.launchBargain = launchBargain;
  117. exports.live = live;
  118. exports.teamBuy = teamBuy;
  119. exports.teamCheck = teamCheck;
  120. exports.teamKaiTuan = teamKaiTuan;
  121. exports.userSignIn = userSignIn;
  122. var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 35));
  123. var _tools = __webpack_require__(/*! @/utils/tools */ 41);
  124. //领券中心
  125. function getCouponList(params) {
  126. return _request.default.get("coupon/getCouponList", {
  127. params: params
  128. });
  129. }
  130. //用户领取优惠券
  131. function getCoupon(id) {
  132. return _request.default.post('coupon/getCoupon', {
  133. coupon_id: id
  134. });
  135. }
  136. // 下单优惠券
  137. function getOrderCoupon(data) {
  138. return _request.default.post("coupon/getBuyCouponList", data);
  139. }
  140. //我的优惠券
  141. function getMyCoupon(params) {
  142. return _request.default.get('coupon/myCouponList', {
  143. params: params
  144. });
  145. }
  146. // 获取活动专区商品列表
  147. function getActivityGoodsLists(data) {
  148. return _request.default.get("activity_area/activityGoodsList", {
  149. params: data
  150. });
  151. }
  152. // 获取秒杀时间段
  153. function getSeckillTime() {
  154. return _request.default.get("seckill_goods/getSeckillTime");
  155. }
  156. // 获取秒杀商品
  157. function getSeckillGoods(params) {
  158. return _request.default.get("seckill_goods/getSeckillGoods", {
  159. params: params
  160. });
  161. }
  162. // 拼团列表
  163. function getGroupList(params) {
  164. return _request.default.get('team/activity', {
  165. params: params
  166. });
  167. }
  168. //拼团记录
  169. function getUserGroup(params) {
  170. return _request.default.get('team/record', {
  171. params: params
  172. });
  173. }
  174. //拼团详情
  175. function getTeamInfo(params) {
  176. return _request.default.get('team/teamInfo', {
  177. params: params
  178. });
  179. }
  180. //开团|结算
  181. function teamKaiTuan(data) {
  182. return _request.default.post('team/kaituan', data);
  183. }
  184. //参与拼团验证
  185. function teamCheck(data) {
  186. return _request.default.post('team/check', data);
  187. }
  188. //拼团下单
  189. function teamBuy(data) {
  190. return _request.default.post("team/buy", data);
  191. }
  192. // 获取砍价列表
  193. function getBargainList(data) {
  194. return _request.default.get('bargain/lists', {
  195. params: data
  196. });
  197. }
  198. // 获取砍价详情
  199. function getBargainDetail(data) {
  200. return _request.default.get('bargain/detail', {
  201. params: data
  202. });
  203. }
  204. // 获取砍价成功人数
  205. function getBargainNumber() {
  206. return _request.default.get("bargain/barginNumber");
  207. }
  208. // 发起砍价
  209. function launchBargain(data) {
  210. return _request.default.post('bargain/sponsor', data);
  211. }
  212. // 获取砍价活动商品列表
  213. function getBargainActivityList(data) {
  214. return _request.default.get('bargain/orderList', {
  215. params: data
  216. });
  217. }
  218. // 砍价详情
  219. function getBargainActivityDetail(data) {
  220. return _request.default.get("bargain/bargainDetail", {
  221. params: data
  222. });
  223. }
  224. // 砍价海报
  225. function getBargainPost(data) {
  226. return _request.default.get("share/shareBargain", {
  227. params: data
  228. });
  229. }
  230. // 好友助力
  231. function helpBargain(data) {
  232. return _request.default.post('bargain/knife', data);
  233. }
  234. // 关闭结算订单
  235. function closeBargainOrder(data) {
  236. return _request.default.get("bargain/closeBargain", {
  237. params: data
  238. });
  239. }
  240. // 获取签到列表
  241. function getSignLists() {
  242. return _request.default.get("sign/lists");
  243. }
  244. // 获取签到列表
  245. function getSignRule() {
  246. return _request.default.get("sign/rule");
  247. }
  248. // 签到
  249. function userSignIn() {
  250. return _request.default.get("sign/sign");
  251. }
  252. // 券商城
  253. function getIntegralGoods(params) {
  254. return _request.default.get("integral_goods/lists", {
  255. params: params
  256. });
  257. }
  258. // 券商品详情
  259. function getIntegralGoodsDetail(params) {
  260. return _request.default.get("integral_goods/detail", {
  261. params: params
  262. });
  263. }
  264. // 券兑换订单结算
  265. function integralSettlement(params) {
  266. return _request.default.get("integral_order/settlement", {
  267. params: params
  268. });
  269. }
  270. // 券兑换提交订单
  271. function integralSubmitOrder(params) {
  272. return _request.default.post("integral_order/submitOrder", params);
  273. }
  274. // 券兑换订单列表
  275. function getIntegralOrder(params) {
  276. return _request.default.get("integral_order/lists", {
  277. params: params
  278. });
  279. }
  280. //删除券兑换订单
  281. function delIntegralOrder(id) {
  282. return _request.default.post('integral_order/del', {
  283. id: id
  284. });
  285. }
  286. //券兑换订单订单详情
  287. function getIntegralOrderDetail(id) {
  288. return _request.default.get('integral_order/detail', {
  289. params: {
  290. id: id
  291. }
  292. });
  293. }
  294. //取消券兑换订单
  295. function cancelIntegralOrder(id) {
  296. return _request.default.post('integral_order/cancel', {
  297. id: id
  298. });
  299. }
  300. //确认收货券兑换订单
  301. function confirmIntegralOrder(id) {
  302. return _request.default.post("integral_order/confirm", {
  303. id: id
  304. });
  305. }
  306. // 查看物流
  307. function getIntegralOrderTraces(id) {
  308. return _request.default.get("integral_order/orderTraces", {
  309. params: {
  310. id: id
  311. }
  312. });
  313. }
  314. // 直播列表
  315. function live(data) {
  316. return _request.default.get("wechat/live", {
  317. params: data
  318. });
  319. }
  320. /***/ }),
  321. /***/ 1112:
  322. /*!*****************************************************************!*\
  323. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/util/emitter.js ***!
  324. \*****************************************************************/
  325. /*! no static exports found */
  326. /***/ (function(module, exports, __webpack_require__) {
  327. "use strict";
  328. Object.defineProperty(exports, "__esModule", {
  329. value: true
  330. });
  331. exports.default = void 0;
  332. /**
  333. * 递归使用 call 方式this指向
  334. * @param componentName // 需要找的组件的名称
  335. * @param eventName // 事件名称
  336. * @param params // 需要传递的参数
  337. */
  338. function _broadcast(componentName, eventName, params) {
  339. // 循环子节点找到名称一样的子节点 否则 递归 当前子节点
  340. this.$children.map(function (child) {
  341. if (componentName === child.$options.name) {
  342. child.$emit.apply(child, [eventName].concat(params));
  343. } else {
  344. _broadcast.apply(child, [componentName, eventName].concat(params));
  345. }
  346. });
  347. }
  348. var _default = {
  349. methods: {
  350. /**
  351. * 派发 (向上查找) (一个)
  352. * @param componentName // 需要找的组件的名称
  353. * @param eventName // 事件名称
  354. * @param params // 需要传递的参数
  355. */
  356. dispatch: function dispatch(componentName, eventName, params) {
  357. var parent = this.$parent || this.$root; //$parent 找到最近的父节点 $root 根节点
  358. var name = parent.$options.name; // 获取当前组件实例的name
  359. // 如果当前有节点 && 当前没名称 且 当前名称等于需要传进来的名称的时候就去查找当前的节点
  360. // 循环出当前名称的一样的组件实例
  361. while (parent && (!name || name !== componentName)) {
  362. parent = parent.$parent;
  363. if (parent) {
  364. name = parent.$options.name;
  365. }
  366. }
  367. // 有节点表示当前找到了name一样的实例
  368. if (parent) {
  369. parent.$emit.apply(parent, [eventName].concat(params));
  370. }
  371. },
  372. /**
  373. * 广播 (向下查找) (广播多个)
  374. * @param componentName // 需要找的组件的名称
  375. * @param eventName // 事件名称
  376. * @param params // 需要传递的参数
  377. */
  378. broadcast: function broadcast(componentName, eventName, params) {
  379. _broadcast.call(this, componentName, eventName, params);
  380. }
  381. }
  382. };
  383. exports.default = _default;
  384. /***/ }),
  385. /***/ 1169:
  386. /*!************************************************************************************!*\
  387. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/components/u-parse/libs/MpHtmlParser.js ***!
  388. \************************************************************************************/
  389. /*! no static exports found */
  390. /***/ (function(module, exports, __webpack_require__) {
  391. /* WEBPACK VAR INJECTION */(function(uni) {/**
  392. * html 解析器
  393. * @tutorial https://github.com/jin-yufeng/Parser
  394. * @version 20201029
  395. * @author JinYufeng
  396. * @listens MIT
  397. */
  398. var cfg = __webpack_require__(/*! ./config.js */ 1170),
  399. blankChar = cfg.blankChar,
  400. CssHandler = __webpack_require__(/*! ./CssHandler.js */ 1171),
  401. windowWidth = uni.getSystemInfoSync().windowWidth;
  402. var emoji;
  403. function MpHtmlParser(data) {
  404. var _this = this;
  405. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  406. this.attrs = {};
  407. this.CssHandler = new CssHandler(options.tagStyle, windowWidth);
  408. this.data = data;
  409. this.domain = options.domain;
  410. this.DOM = [];
  411. this.i = this.start = this.audioNum = this.imgNum = this.videoNum = 0;
  412. options.prot = (this.domain || '').includes('://') ? this.domain.split('://')[0] : 'http';
  413. this.options = options;
  414. this.state = this.Text;
  415. this.STACK = [];
  416. // 工具函数
  417. this.bubble = function () {
  418. for (var i = _this.STACK.length, item; item = _this.STACK[--i];) {
  419. if (cfg.richOnlyTags[item.name]) return false;
  420. item.c = 1;
  421. }
  422. return true;
  423. };
  424. this.decode = function (val, amp) {
  425. var i = -1,
  426. j,
  427. en;
  428. while (1) {
  429. if ((i = val.indexOf('&', i + 1)) == -1) break;
  430. if ((j = val.indexOf(';', i + 2)) == -1) break;
  431. if (val[i + 1] == '#') {
  432. en = parseInt((val[i + 2] == 'x' ? '0' : '') + val.substring(i + 2, j));
  433. if (!isNaN(en)) val = val.substr(0, i) + String.fromCharCode(en) + val.substr(j + 1);
  434. } else {
  435. en = val.substring(i + 1, j);
  436. if (cfg.entities[en] || en == amp) val = val.substr(0, i) + (cfg.entities[en] || '&') + val.substr(j + 1);
  437. }
  438. }
  439. return val;
  440. };
  441. this.getUrl = function (url) {
  442. if (url[0] == '/') {
  443. if (url[1] == '/') url = _this.options.prot + ':' + url;else if (_this.domain) url = _this.domain + url;
  444. } else if (_this.domain && url.indexOf('data:') != 0 && !url.includes('://')) url = _this.domain + '/' + url;
  445. return url;
  446. };
  447. this.isClose = function () {
  448. return _this.data[_this.i] == '>' || _this.data[_this.i] == '/' && _this.data[_this.i + 1] == '>';
  449. };
  450. this.section = function () {
  451. return _this.data.substring(_this.start, _this.i);
  452. };
  453. this.parent = function () {
  454. return _this.STACK[_this.STACK.length - 1];
  455. };
  456. this.siblings = function () {
  457. return _this.STACK.length ? _this.parent().children : _this.DOM;
  458. };
  459. }
  460. MpHtmlParser.prototype.parse = function () {
  461. if (emoji) this.data = emoji.parseEmoji(this.data);
  462. for (var c; c = this.data[this.i]; this.i++) {
  463. this.state(c);
  464. }
  465. if (this.state == this.Text) this.setText();
  466. while (this.STACK.length) {
  467. this.popNode(this.STACK.pop());
  468. }
  469. return this.DOM;
  470. };
  471. // 设置属性
  472. MpHtmlParser.prototype.setAttr = function () {
  473. var name = this.attrName.toLowerCase(),
  474. val = this.attrVal;
  475. if (cfg.boolAttrs[name]) this.attrs[name] = 'T';else if (val) {
  476. if (name == 'src' || name == 'data-src' && !this.attrs.src) this.attrs.src = this.getUrl(this.decode(val, 'amp'));else if (name == 'href' || name == 'style') this.attrs[name] = this.decode(val, 'amp');else if (name.substr(0, 5) != 'data-') this.attrs[name] = val;
  477. }
  478. this.attrVal = '';
  479. while (blankChar[this.data[this.i]]) {
  480. this.i++;
  481. }
  482. if (this.isClose()) this.setNode();else {
  483. this.start = this.i;
  484. this.state = this.AttrName;
  485. }
  486. };
  487. // 设置文本节点
  488. MpHtmlParser.prototype.setText = function () {
  489. var back,
  490. text = this.section();
  491. if (!text) return;
  492. text = cfg.onText && cfg.onText(text, function () {
  493. return back = true;
  494. }) || text;
  495. if (back) {
  496. this.data = this.data.substr(0, this.start) + text + this.data.substr(this.i);
  497. var j = this.start + text.length;
  498. for (this.i = this.start; this.i < j; this.i++) {
  499. this.state(this.data[this.i]);
  500. }
  501. return;
  502. }
  503. if (!this.pre) {
  504. // 合并空白符
  505. var flag,
  506. tmp = [];
  507. for (var i = text.length, c; c = text[--i];) {
  508. if (!blankChar[c]) {
  509. tmp.unshift(c);
  510. if (!flag) flag = 1;
  511. } else {
  512. if (tmp[0] != ' ') tmp.unshift(' ');
  513. if (c == '\n' && flag == void 0) flag = 0;
  514. }
  515. }
  516. if (flag == 0) return;
  517. text = tmp.join('');
  518. }
  519. this.siblings().push({
  520. type: 'text',
  521. text: this.decode(text)
  522. });
  523. };
  524. // 设置元素节点
  525. MpHtmlParser.prototype.setNode = function () {
  526. var node = {
  527. name: this.tagName.toLowerCase(),
  528. attrs: this.attrs
  529. },
  530. close = cfg.selfClosingTags[node.name];
  531. if (this.options.nodes.length) node.type = 'node';
  532. this.attrs = {};
  533. if (!cfg.ignoreTags[node.name]) {
  534. // 处理属性
  535. var attrs = node.attrs,
  536. style = this.CssHandler.match(node.name, attrs, node) + (attrs.style || ''),
  537. styleObj = {};
  538. if (attrs.id) {
  539. if (this.options.compress & 1) attrs.id = void 0;else if (this.options.useAnchor) this.bubble();
  540. }
  541. if (this.options.compress & 2 && attrs.class) attrs.class = void 0;
  542. switch (node.name) {
  543. case 'a':
  544. case 'ad':
  545. this.bubble();
  546. break;
  547. case 'font':
  548. if (attrs.color) {
  549. styleObj['color'] = attrs.color;
  550. attrs.color = void 0;
  551. }
  552. if (attrs.face) {
  553. styleObj['font-family'] = attrs.face;
  554. attrs.face = void 0;
  555. }
  556. if (attrs.size) {
  557. var size = parseInt(attrs.size);
  558. if (size < 1) size = 1;else if (size > 7) size = 7;
  559. var map = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'];
  560. styleObj['font-size'] = map[size - 1];
  561. attrs.size = void 0;
  562. }
  563. break;
  564. case 'embed':
  565. var src = node.attrs.src || '',
  566. type = node.attrs.type || '';
  567. if (type.includes('video') || src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8')) node.name = 'video';else if (type.includes('audio') || src.includes('.m4a') || src.includes('.wav') || src.includes('.mp3') || src.includes('.aac')) node.name = 'audio';else break;
  568. if (node.attrs.autostart) node.attrs.autoplay = 'T';
  569. node.attrs.controls = 'T';
  570. case 'video':
  571. case 'audio':
  572. if (!attrs.id) attrs.id = node.name + ++this["".concat(node.name, "Num")];else this["".concat(node.name, "Num")]++;
  573. if (node.name == 'video') {
  574. if (this.videoNum > 3) node.lazyLoad = 1;
  575. if (attrs.width) {
  576. styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px');
  577. attrs.width = void 0;
  578. }
  579. if (attrs.height) {
  580. styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px');
  581. attrs.height = void 0;
  582. }
  583. }
  584. if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T';
  585. attrs.source = [];
  586. if (attrs.src) {
  587. attrs.source.push(attrs.src);
  588. attrs.src = void 0;
  589. }
  590. this.bubble();
  591. break;
  592. case 'td':
  593. case 'th':
  594. if (attrs.colspan || attrs.rowspan) for (var k = this.STACK.length, item; item = this.STACK[--k];) {
  595. if (item.name == 'table') {
  596. item.flag = 1;
  597. break;
  598. }
  599. }
  600. }
  601. if (attrs.align) {
  602. if (node.name == 'table') {
  603. if (attrs.align == 'center') styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto';else styleObj['float'] = attrs.align;
  604. } else styleObj['text-align'] = attrs.align;
  605. attrs.align = void 0;
  606. }
  607. // 压缩 style
  608. var styles = style.split(';');
  609. style = '';
  610. for (var i = 0, len = styles.length; i < len; i++) {
  611. var info = styles[i].split(':');
  612. if (info.length < 2) continue;
  613. var _key = info[0].trim().toLowerCase(),
  614. _value = info.slice(1).join(':').trim();
  615. if (_value[0] == '-' || _value.includes('safe')) style += ";".concat(_key, ":").concat(_value);else if (!styleObj[_key] || _value.includes('import') || !styleObj[_key].includes('import')) styleObj[_key] = _value;
  616. }
  617. if (node.name == 'img') {
  618. if (attrs.src && !attrs.ignore) {
  619. if (this.bubble()) attrs.i = (this.imgNum++).toString();else attrs.ignore = 'T';
  620. }
  621. if (attrs.ignore) {
  622. style += ';-webkit-touch-callout:none';
  623. styleObj['max-width'] = '100%';
  624. }
  625. var width;
  626. if (styleObj.width) width = styleObj.width;else if (attrs.width) width = attrs.width.includes('%') ? attrs.width : parseFloat(attrs.width) + 'px';
  627. if (width) {
  628. styleObj.width = width;
  629. attrs.width = '100%';
  630. if (parseInt(width) > windowWidth) {
  631. styleObj.height = '';
  632. if (attrs.height) attrs.height = void 0;
  633. }
  634. }
  635. if (styleObj.height) {
  636. attrs.height = styleObj.height;
  637. styleObj.height = '';
  638. } else if (attrs.height && !attrs.height.includes('%')) attrs.height = parseFloat(attrs.height) + 'px';
  639. }
  640. for (var key in styleObj) {
  641. var value = styleObj[key];
  642. if (!value) continue;
  643. if (key.includes('flex') || key == 'order' || key == 'self-align') node.c = 1;
  644. // 填充链接
  645. if (value.includes('url')) {
  646. var j = value.indexOf('(');
  647. if (j++ != -1) {
  648. while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) {
  649. j++;
  650. }
  651. value = value.substr(0, j) + this.getUrl(value.substr(j));
  652. }
  653. }
  654. // 转换 rpx
  655. else if (value.includes('rpx')) value = value.replace(/[0-9.]+\s*rpx/g, function ($) {
  656. return parseFloat($) * windowWidth / 750 + 'px';
  657. });else if (key == 'white-space' && value.includes('pre') && !close) this.pre = node.pre = true;
  658. style += ";".concat(key, ":").concat(value);
  659. }
  660. style = style.substr(1);
  661. if (style) attrs.style = style;
  662. if (!close) {
  663. node.children = [];
  664. if (node.name == 'pre' && cfg.highlight) {
  665. this.remove(node);
  666. this.pre = node.pre = true;
  667. }
  668. this.siblings().push(node);
  669. this.STACK.push(node);
  670. } else if (!cfg.filter || cfg.filter(node, this) != false) this.siblings().push(node);
  671. } else {
  672. if (!close) this.remove(node);else if (node.name == 'source') {
  673. var parent = this.parent();
  674. if (parent && (parent.name == 'video' || parent.name == 'audio') && node.attrs.src) parent.attrs.source.push(node.attrs.src);
  675. } else if (node.name == 'base' && !this.domain) this.domain = node.attrs.href;
  676. }
  677. if (this.data[this.i] == '/') this.i++;
  678. this.start = this.i + 1;
  679. this.state = this.Text;
  680. };
  681. // 移除标签
  682. MpHtmlParser.prototype.remove = function (node) {
  683. var _this2 = this;
  684. var name = node.name,
  685. j = this.i;
  686. // 处理 svg
  687. var handleSvg = function handleSvg() {
  688. var src = _this2.data.substring(j, _this2.i + 1);
  689. node.attrs.xmlns = 'http://www.w3.org/2000/svg';
  690. for (var key in node.attrs) {
  691. if (key == 'viewbox') src = " viewBox=\"".concat(node.attrs.viewbox, "\"") + src;else if (key != 'style') src = " ".concat(key, "=\"").concat(node.attrs[key], "\"") + src;
  692. }
  693. src = '<svg' + src;
  694. var parent = _this2.parent();
  695. if (node.attrs.width == '100%' && parent && (parent.attrs.style || '').includes('inline')) parent.attrs.style = 'width:300px;max-width:100%;' + parent.attrs.style;
  696. _this2.siblings().push({
  697. name: 'img',
  698. attrs: {
  699. src: 'data:image/svg+xml;utf8,' + src.replace(/#/g, '%23'),
  700. style: node.attrs.style,
  701. ignore: 'T'
  702. }
  703. });
  704. };
  705. if (node.name == 'svg' && this.data[j] == '/') return handleSvg(this.i++);
  706. while (1) {
  707. if ((this.i = this.data.indexOf('</', this.i + 1)) == -1) {
  708. if (name == 'pre' || name == 'svg') this.i = j;else this.i = this.data.length;
  709. return;
  710. }
  711. this.start = this.i += 2;
  712. while (!blankChar[this.data[this.i]] && !this.isClose()) {
  713. this.i++;
  714. }
  715. if (this.section().toLowerCase() == name) {
  716. // 代码块高亮
  717. if (name == 'pre') {
  718. this.data = this.data.substr(0, j + 1) + cfg.highlight(this.data.substring(j + 1, this.i - 5), node.attrs) + this.data.substr(this.i - 5);
  719. return this.i = j;
  720. } else if (name == 'style') this.CssHandler.getStyle(this.data.substring(j + 1, this.i - 7));else if (name == 'title') this.DOM.title = this.data.substring(j + 1, this.i - 7);
  721. if ((this.i = this.data.indexOf('>', this.i)) == -1) this.i = this.data.length;
  722. if (name == 'svg') handleSvg();
  723. return;
  724. }
  725. }
  726. };
  727. // 节点出栈处理
  728. MpHtmlParser.prototype.popNode = function (node) {
  729. // 空白符处理
  730. if (node.pre) {
  731. node.pre = this.pre = void 0;
  732. for (var i = this.STACK.length; i--;) {
  733. if (this.STACK[i].pre) this.pre = true;
  734. }
  735. }
  736. var siblings = this.siblings(),
  737. len = siblings.length,
  738. childs = node.children;
  739. if (node.name == 'head' || cfg.filter && cfg.filter(node, this) == false) return siblings.pop();
  740. var attrs = node.attrs;
  741. // 替换一些标签名
  742. if (cfg.blockTags[node.name]) node.name = 'div';else if (!cfg.trustTags[node.name]) node.name = 'span';
  743. // 处理列表
  744. if (node.c && (node.name == 'ul' || node.name == 'ol')) {
  745. if ((node.attrs.style || '').includes('list-style:none')) {
  746. for (var _i = 0, child; child = childs[_i++];) {
  747. if (child.name == 'li') child.name = 'div';
  748. }
  749. } else if (node.name == 'ul') {
  750. var floor = 1;
  751. for (var _i2 = this.STACK.length; _i2--;) {
  752. if (this.STACK[_i2].name == 'ul') floor++;
  753. }
  754. if (floor != 1) for (var _i3 = childs.length; _i3--;) {
  755. childs[_i3].floor = floor;
  756. }
  757. } else {
  758. for (var _i4 = 0, num = 1, _child; _child = childs[_i4++];) {
  759. if (_child.name == 'li') {
  760. _child.type = 'ol';
  761. _child.num = function (num, type) {
  762. if (type == 'a') return String.fromCharCode(97 + (num - 1) % 26);
  763. if (type == 'A') return String.fromCharCode(65 + (num - 1) % 26);
  764. if (type == 'i' || type == 'I') {
  765. num = (num - 1) % 99 + 1;
  766. var one = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX'],
  767. ten = ['X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC'],
  768. res = (ten[Math.floor(num / 10) - 1] || '') + (one[num % 10 - 1] || '');
  769. if (type == 'i') return res.toLowerCase();
  770. return res;
  771. }
  772. return num;
  773. }(num++, attrs.type) + '.';
  774. }
  775. }
  776. }
  777. }
  778. // 处理表格
  779. if (node.name == 'table') {
  780. var padding = parseFloat(attrs.cellpadding),
  781. spacing = parseFloat(attrs.cellspacing),
  782. border = parseFloat(attrs.border);
  783. if (node.c) {
  784. if (isNaN(padding)) padding = 2;
  785. if (isNaN(spacing)) spacing = 2;
  786. }
  787. if (border) attrs.style = "border:".concat(border, "px solid gray;").concat(attrs.style || '');
  788. if (node.flag && node.c) {
  789. // 有 colspan 或 rowspan 且含有链接的表格转为 grid 布局实现
  790. attrs.style = "".concat(attrs.style || '', ";").concat(spacing ? ";grid-gap:".concat(spacing, "px") : ';border-left:0;border-top:0');
  791. var row = 1,
  792. col = 1,
  793. colNum,
  794. trs = [],
  795. children = [],
  796. map = {};
  797. (function f(ns) {
  798. for (var i = 0; i < ns.length; i++) {
  799. if (ns[i].name == 'tr') trs.push(ns[i]);else f(ns[i].children || []);
  800. }
  801. })(node.children);
  802. for (var _i5 = 0; _i5 < trs.length; _i5++) {
  803. for (var j = 0, td; td = trs[_i5].children[j]; j++) {
  804. if (td.name == 'td' || td.name == 'th') {
  805. while (map[row + '.' + col]) {
  806. col++;
  807. }
  808. var cell = {
  809. name: 'div',
  810. c: 1,
  811. attrs: {
  812. style: (td.attrs.style || '') + (border ? ";border:".concat(border, "px solid gray") + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? ";padding:".concat(padding, "px") : '')
  813. },
  814. children: td.children
  815. };
  816. if (td.attrs.colspan) {
  817. cell.attrs.style += ';grid-column-start:' + col + ';grid-column-end:' + (col + parseInt(td.attrs.colspan));
  818. if (!td.attrs.rowspan) cell.attrs.style += ';grid-row-start:' + row + ';grid-row-end:' + (row + 1);
  819. col += parseInt(td.attrs.colspan) - 1;
  820. }
  821. if (td.attrs.rowspan) {
  822. cell.attrs.style += ';grid-row-start:' + row + ';grid-row-end:' + (row + parseInt(td.attrs.rowspan));
  823. if (!td.attrs.colspan) cell.attrs.style += ';grid-column-start:' + col + ';grid-column-end:' + (col + 1);
  824. for (var k = 1; k < td.attrs.rowspan; k++) {
  825. map[row + k + '.' + col] = 1;
  826. }
  827. }
  828. children.push(cell);
  829. col++;
  830. }
  831. }
  832. if (!colNum) {
  833. colNum = col - 1;
  834. attrs.style += ";grid-template-columns:repeat(".concat(colNum, ",auto)");
  835. }
  836. col = 1;
  837. row++;
  838. }
  839. node.children = children;
  840. } else {
  841. attrs.style = "border-spacing:".concat(spacing, "px;").concat(attrs.style || '');
  842. if (border || padding) (function f(ns) {
  843. for (var i = 0, n; n = ns[i]; i++) {
  844. if (n.name == 'th' || n.name == 'td') {
  845. if (border) n.attrs.style = "border:".concat(border, "px solid gray;").concat(n.attrs.style || '');
  846. if (padding) n.attrs.style = "padding:".concat(padding, "px;").concat(n.attrs.style || '');
  847. } else f(n.children || []);
  848. }
  849. })(childs);
  850. }
  851. if (this.options.autoscroll) {
  852. var table = Object.assign({}, node);
  853. node.name = 'div';
  854. node.attrs = {
  855. style: 'overflow:scroll'
  856. };
  857. node.children = [table];
  858. }
  859. }
  860. this.CssHandler.pop && this.CssHandler.pop(node);
  861. // 自动压缩
  862. if (node.name == 'div' && !Object.keys(attrs).length && childs.length == 1 && childs[0].name == 'div') siblings[len - 1] = childs[0];
  863. };
  864. // 状态机
  865. MpHtmlParser.prototype.Text = function (c) {
  866. if (c == '<') {
  867. var next = this.data[this.i + 1],
  868. isLetter = function isLetter(c) {
  869. return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';
  870. };
  871. if (isLetter(next)) {
  872. this.setText();
  873. this.start = this.i + 1;
  874. this.state = this.TagName;
  875. } else if (next == '/') {
  876. this.setText();
  877. if (isLetter(this.data[++this.i + 1])) {
  878. this.start = this.i + 1;
  879. this.state = this.EndTag;
  880. } else this.Comment();
  881. } else if (next == '!' || next == '?') {
  882. this.setText();
  883. this.Comment();
  884. }
  885. }
  886. };
  887. MpHtmlParser.prototype.Comment = function () {
  888. var key;
  889. if (this.data.substring(this.i + 2, this.i + 4) == '--') key = '-->';else if (this.data.substring(this.i + 2, this.i + 9) == '[CDATA[') key = ']]>';else key = '>';
  890. if ((this.i = this.data.indexOf(key, this.i + 2)) == -1) this.i = this.data.length;else this.i += key.length - 1;
  891. this.start = this.i + 1;
  892. this.state = this.Text;
  893. };
  894. MpHtmlParser.prototype.TagName = function (c) {
  895. if (blankChar[c]) {
  896. this.tagName = this.section();
  897. while (blankChar[this.data[this.i]]) {
  898. this.i++;
  899. }
  900. if (this.isClose()) this.setNode();else {
  901. this.start = this.i;
  902. this.state = this.AttrName;
  903. }
  904. } else if (this.isClose()) {
  905. this.tagName = this.section();
  906. this.setNode();
  907. }
  908. };
  909. MpHtmlParser.prototype.AttrName = function (c) {
  910. if (c == '=' || blankChar[c] || this.isClose()) {
  911. this.attrName = this.section();
  912. if (blankChar[c]) while (blankChar[this.data[++this.i]]) {
  913. ;
  914. }
  915. if (this.data[this.i] == '=') {
  916. while (blankChar[this.data[++this.i]]) {
  917. ;
  918. }
  919. this.start = this.i--;
  920. this.state = this.AttrValue;
  921. } else this.setAttr();
  922. }
  923. };
  924. MpHtmlParser.prototype.AttrValue = function (c) {
  925. if (c == '"' || c == "'") {
  926. this.start++;
  927. if ((this.i = this.data.indexOf(c, this.i + 1)) == -1) return this.i = this.data.length;
  928. this.attrVal = this.section();
  929. this.i++;
  930. } else {
  931. for (; !blankChar[this.data[this.i]] && !this.isClose(); this.i++) {
  932. ;
  933. }
  934. this.attrVal = this.section();
  935. }
  936. this.setAttr();
  937. };
  938. MpHtmlParser.prototype.EndTag = function (c) {
  939. if (blankChar[c] || c == '>' || c == '/') {
  940. var name = this.section().toLowerCase();
  941. for (var i = this.STACK.length; i--;) {
  942. if (this.STACK[i].name == name) break;
  943. }
  944. if (i != -1) {
  945. var node;
  946. while ((node = this.STACK.pop()).name != name) {
  947. this.popNode(node);
  948. }
  949. this.popNode(node);
  950. } else if (name == 'p' || name == 'br') this.siblings().push({
  951. name: name,
  952. attrs: {}
  953. });
  954. this.i = this.data.indexOf('>', this.i);
  955. this.start = this.i + 1;
  956. if (this.i == -1) this.i = this.data.length;else this.state = this.Text;
  957. }
  958. };
  959. module.exports = MpHtmlParser;
  960. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  961. /***/ }),
  962. /***/ 1170:
  963. /*!******************************************************************************!*\
  964. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/components/u-parse/libs/config.js ***!
  965. \******************************************************************************/
  966. /*! no static exports found */
  967. /***/ (function(module, exports, __webpack_require__) {
  968. /* WEBPACK VAR INJECTION */(function(wx) {/* 配置文件 */
  969. var cfg = {
  970. // 出错占位图
  971. errorImg: null,
  972. // 过滤器函数
  973. filter: null,
  974. // 代码高亮函数
  975. highlight: null,
  976. // 文本处理函数
  977. onText: null,
  978. // 实体编码列表
  979. entities: {
  980. quot: '"',
  981. apos: "'",
  982. semi: ';',
  983. nbsp: '\xA0',
  984. ensp: "\u2002",
  985. emsp: "\u2003",
  986. ndash: '–',
  987. mdash: '—',
  988. middot: '·',
  989. lsquo: '‘',
  990. rsquo: '’',
  991. ldquo: '“',
  992. rdquo: '”',
  993. bull: '•',
  994. hellip: '…'
  995. },
  996. blankChar: makeMap(' ,\xA0,\t,\r,\n,\f'),
  997. boolAttrs: makeMap('allowfullscreen,autoplay,autostart,controls,ignore,loop,muted'),
  998. // 块级标签,将被转为 div
  999. blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
  1000. // 将被移除的标签
  1001. ignoreTags: makeMap('area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr'),
  1002. // 只能被 rich-text 显示的标签
  1003. richOnlyTags: makeMap('a,colgroup,fieldset,legend'),
  1004. // 自闭合的标签
  1005. selfClosingTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
  1006. // 信任的标签
  1007. 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'),
  1008. // 默认的标签样式
  1009. userAgentStyles: {
  1010. address: 'font-style:italic',
  1011. big: 'display:inline;font-size:1.2em',
  1012. blockquote: 'background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px',
  1013. caption: 'display:table-caption;text-align:center',
  1014. center: 'text-align:center',
  1015. cite: 'font-style:italic',
  1016. dd: 'margin-left:40px',
  1017. mark: 'background-color:yellow',
  1018. pre: 'font-family:monospace;white-space:pre;overflow:scroll',
  1019. s: 'text-decoration:line-through',
  1020. small: 'display:inline;font-size:0.8em',
  1021. u: 'text-decoration:underline'
  1022. }
  1023. };
  1024. function makeMap(str) {
  1025. var map = Object.create(null),
  1026. list = str.split(',');
  1027. for (var i = list.length; i--;) {
  1028. map[list[i]] = true;
  1029. }
  1030. return map;
  1031. }
  1032. if (wx.canIUse('editor')) {
  1033. cfg.blockTags.pre = void 0;
  1034. cfg.ignoreTags.rp = true;
  1035. Object.assign(cfg.richOnlyTags, makeMap('bdi,bdo,caption,rt,ruby'));
  1036. Object.assign(cfg.trustTags, makeMap('bdi,bdo,caption,pre,rt,ruby'));
  1037. }
  1038. module.exports = cfg;
  1039. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  1040. /***/ }),
  1041. /***/ 1171:
  1042. /*!**********************************************************************************!*\
  1043. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/components/u-parse/libs/CssHandler.js ***!
  1044. \**********************************************************************************/
  1045. /*! no static exports found */
  1046. /***/ (function(module, exports, __webpack_require__) {
  1047. var cfg = __webpack_require__(/*! ./config.js */ 1170),
  1048. isLetter = function isLetter(c) {
  1049. return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';
  1050. };
  1051. function CssHandler(tagStyle) {
  1052. var styles = Object.assign(Object.create(null), cfg.userAgentStyles);
  1053. for (var item in tagStyle) {
  1054. styles[item] = (styles[item] ? styles[item] + ';' : '') + tagStyle[item];
  1055. }
  1056. this.styles = styles;
  1057. }
  1058. CssHandler.prototype.getStyle = function (data) {
  1059. this.styles = new parser(data, this.styles).parse();
  1060. };
  1061. CssHandler.prototype.match = function (name, attrs) {
  1062. var tmp,
  1063. matched = (tmp = this.styles[name]) ? tmp + ';' : '';
  1064. if (attrs.class) {
  1065. var items = attrs.class.split(' ');
  1066. for (var i = 0, item; item = items[i]; i++) {
  1067. if (tmp = this.styles['.' + item]) matched += tmp + ';';
  1068. }
  1069. }
  1070. if (tmp = this.styles['#' + attrs.id]) matched += tmp + ';';
  1071. return matched;
  1072. };
  1073. module.exports = CssHandler;
  1074. function parser(data, init) {
  1075. this.data = data;
  1076. this.floor = 0;
  1077. this.i = 0;
  1078. this.list = [];
  1079. this.res = init;
  1080. this.state = this.Space;
  1081. }
  1082. parser.prototype.parse = function () {
  1083. for (var c; c = this.data[this.i]; this.i++) {
  1084. this.state(c);
  1085. }
  1086. return this.res;
  1087. };
  1088. parser.prototype.section = function () {
  1089. return this.data.substring(this.start, this.i);
  1090. };
  1091. // 状态机
  1092. parser.prototype.Space = function (c) {
  1093. if (c == '.' || c == '#' || isLetter(c)) {
  1094. this.start = this.i;
  1095. this.state = this.Name;
  1096. } else if (c == '/' && this.data[this.i + 1] == '*') this.Comment();else if (!cfg.blankChar[c] && c != ';') this.state = this.Ignore;
  1097. };
  1098. parser.prototype.Comment = function () {
  1099. this.i = this.data.indexOf('*/', this.i) + 1;
  1100. if (!this.i) this.i = this.data.length;
  1101. this.state = this.Space;
  1102. };
  1103. parser.prototype.Ignore = function (c) {
  1104. if (c == '{') this.floor++;else if (c == '}' && ! --this.floor) {
  1105. this.list = [];
  1106. this.state = this.Space;
  1107. }
  1108. };
  1109. parser.prototype.Name = function (c) {
  1110. if (cfg.blankChar[c]) {
  1111. this.list.push(this.section());
  1112. this.state = this.NameSpace;
  1113. } else if (c == '{') {
  1114. this.list.push(this.section());
  1115. this.Content();
  1116. } else if (c == ',') {
  1117. this.list.push(this.section());
  1118. this.Comma();
  1119. } else if (!isLetter(c) && (c < '0' || c > '9') && c != '-' && c != '_') this.state = this.Ignore;
  1120. };
  1121. parser.prototype.NameSpace = function (c) {
  1122. if (c == '{') this.Content();else if (c == ',') this.Comma();else if (!cfg.blankChar[c]) this.state = this.Ignore;
  1123. };
  1124. parser.prototype.Comma = function () {
  1125. while (cfg.blankChar[this.data[++this.i]]) {
  1126. ;
  1127. }
  1128. if (this.data[this.i] == '{') this.Content();else {
  1129. this.start = this.i--;
  1130. this.state = this.Name;
  1131. }
  1132. };
  1133. parser.prototype.Content = function () {
  1134. this.start = ++this.i;
  1135. if ((this.i = this.data.indexOf('}', this.i)) == -1) this.i = this.data.length;
  1136. var content = this.section();
  1137. for (var i = 0, item; item = this.list[i++];) {
  1138. if (this.res[item]) this.res[item] += ';' + content;else this.res[item] = content;
  1139. }
  1140. this.list = [];
  1141. this.state = this.Space;
  1142. };
  1143. /***/ }),
  1144. /***/ 12:
  1145. /*!**************************************************************!*\
  1146. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  1147. \**************************************************************/
  1148. /*! no static exports found */
  1149. /***/ (function(module, exports, __webpack_require__) {
  1150. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  1151. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  1152. function _toPropertyKey(arg) {
  1153. var key = toPrimitive(arg, "string");
  1154. return _typeof(key) === "symbol" ? key : String(key);
  1155. }
  1156. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1157. /***/ }),
  1158. /***/ 127:
  1159. /*!************************************!*\
  1160. !*** D:/工作/项目2/华畦/xcw/api/shop.js ***!
  1161. \************************************/
  1162. /*! no static exports found */
  1163. /***/ (function(module, exports, __webpack_require__) {
  1164. "use strict";
  1165. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  1166. Object.defineProperty(exports, "__esModule", {
  1167. value: true
  1168. });
  1169. exports.apiEnergy = apiEnergy;
  1170. exports.apiInvoiceAdd = apiInvoiceAdd;
  1171. exports.apiInvoiceDetail = apiInvoiceDetail;
  1172. exports.apiInvoiceEdit = apiInvoiceEdit;
  1173. exports.apiOrderInvoiceDetail = apiOrderInvoiceDetail;
  1174. exports.changeShopFollow = changeShopFollow;
  1175. exports.energyLog = energyLog;
  1176. exports.exchangeEnergy = exchangeEnergy;
  1177. exports.getAdVideoList = getAdVideoList;
  1178. exports.getGoodsDiscountList = getGoodsDiscountList;
  1179. exports.getInvoiceSetting = getInvoiceSetting;
  1180. exports.getLiveList = getLiveList;
  1181. exports.getNearbyShops = getNearbyShops;
  1182. exports.getShopCategory = getShopCategory;
  1183. exports.getShopGoodsCategory = getShopGoodsCategory;
  1184. exports.getShopInfo = getShopInfo;
  1185. exports.getShopList = getShopList;
  1186. exports.getShopService = getShopService;
  1187. exports.getTreaty = getTreaty;
  1188. exports.giftEnergy = giftEnergy;
  1189. exports.seeVideoGift = seeVideoGift;
  1190. exports.shopApply = shopApply;
  1191. exports.shopApplyDetail = shopApplyDetail;
  1192. exports.shopApplyRecord = shopApplyRecord;
  1193. exports.transferEnergy = transferEnergy;
  1194. var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 35));
  1195. var _tools = __webpack_require__(/*! @/utils/tools */ 41);
  1196. //获取店铺列表
  1197. function getShopList(params) {
  1198. return _request.default.get('shop/getShopList', {
  1199. params: params
  1200. });
  1201. }
  1202. //获取附近店铺列表
  1203. function getNearbyShops(params) {
  1204. return _request.default.get('shop/getNearbyShops', {
  1205. params: params
  1206. });
  1207. }
  1208. //获取主营类目列表
  1209. function getShopCategory() {
  1210. return _request.default.get('shop_category/getList');
  1211. }
  1212. //获取店铺信息
  1213. function getShopInfo(params) {
  1214. return _request.default.get('shop/getShopInfo', {
  1215. params: params
  1216. });
  1217. }
  1218. //获取店铺商品分类
  1219. function getShopGoodsCategory(params) {
  1220. return _request.default.get('shop_goods_category/getShopGoodsCategory', {
  1221. params: params
  1222. });
  1223. }
  1224. //店铺关注/取消关注
  1225. function changeShopFollow(data) {
  1226. return _request.default.post('shop_follow/changeStatus', data);
  1227. }
  1228. // 商家入驻
  1229. function shopApply(data) {
  1230. return _request.default.post('ShopApply/apply', data);
  1231. }
  1232. // 申请记录
  1233. function shopApplyRecord(params) {
  1234. return _request.default.get('ShopApply/record', {
  1235. params: params
  1236. });
  1237. }
  1238. // 申请记录详情
  1239. function shopApplyDetail(id) {
  1240. return _request.default.get('ShopApply/detail', {
  1241. params: {
  1242. id: id
  1243. }
  1244. });
  1245. }
  1246. // 入住协议
  1247. function getTreaty() {
  1248. return _request.default.get('ShopApply/getTreaty');
  1249. }
  1250. //客服
  1251. function getShopService(id) {
  1252. return _request.default.get("setting/getShopCustomerService", {
  1253. params: {
  1254. shop_id: id
  1255. }
  1256. });
  1257. }
  1258. // 商家发票设置
  1259. function getInvoiceSetting(params) {
  1260. return _request.default.get("order_invoice/setting", {
  1261. params: params
  1262. });
  1263. }
  1264. // 发票提交
  1265. function apiInvoiceAdd(params) {
  1266. return _request.default.post("order_invoice/add", params);
  1267. }
  1268. // 发票编辑
  1269. function apiInvoiceEdit(params) {
  1270. return _request.default.post("order_invoice/edit", params);
  1271. }
  1272. // 发票详情
  1273. function apiInvoiceDetail(params) {
  1274. return _request.default.get("order_invoice/detail", {
  1275. params: params
  1276. });
  1277. }
  1278. // 订单发票详情
  1279. function apiOrderInvoiceDetail(params) {
  1280. return _request.default.get("order/invoice", {
  1281. params: params
  1282. });
  1283. }
  1284. // 抵用券
  1285. function apiEnergy() {
  1286. return _request.default.get("/user/energy");
  1287. }
  1288. // 转让抵用券
  1289. function transferEnergy(params) {
  1290. return _request.default.post("/user/transferenergy", params);
  1291. }
  1292. // 兑换抵用券
  1293. function exchangeEnergy(params) {
  1294. return _request.default.post("/user/exchangeenergy", params);
  1295. }
  1296. // 抵用券明细
  1297. function energyLog(params) {
  1298. return _request.default.get("/user/energylog", {
  1299. params: params
  1300. });
  1301. }
  1302. // 抵用券馈赠
  1303. function giftEnergy(params) {
  1304. return _request.default.post('/user/gift_energy', params);
  1305. }
  1306. // 可抵扣商品
  1307. function getGoodsDiscountList(params) {
  1308. return _request.default.get('/goods/getGoodsDiscountLists', {
  1309. params: params
  1310. });
  1311. }
  1312. // 直播
  1313. function getLiveList(params) {
  1314. return _request.default.get("/LiveBroadcast/get_live_list", {
  1315. params: params
  1316. });
  1317. }
  1318. // 获取广告视频列表
  1319. function getAdVideoList(params) {
  1320. return _request.default.get("/LiveBroadcast/get_video_list", {
  1321. params: params
  1322. });
  1323. }
  1324. // 看完视频获取券
  1325. function seeVideoGift(params) {
  1326. return _request.default.post("/LiveBroadcast/see_video_gift_integral", params);
  1327. }
  1328. /***/ }),
  1329. /***/ 13:
  1330. /*!*******************************************************!*\
  1331. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  1332. \*******************************************************/
  1333. /*! no static exports found */
  1334. /***/ (function(module, exports) {
  1335. function _typeof(obj) {
  1336. "@babel/helpers - typeof";
  1337. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  1338. return typeof obj;
  1339. } : function (obj) {
  1340. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  1341. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  1342. }
  1343. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  1344. /***/ }),
  1345. /***/ 1373:
  1346. /*!******************************************************************!*\
  1347. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/util/province.js ***!
  1348. \******************************************************************/
  1349. /*! no static exports found */
  1350. /***/ (function(module, exports, __webpack_require__) {
  1351. "use strict";
  1352. Object.defineProperty(exports, "__esModule", {
  1353. value: true
  1354. });
  1355. exports.default = void 0;
  1356. var provinceData = [{
  1357. "label": "北京市",
  1358. "value": "11"
  1359. }, {
  1360. "label": "天津市",
  1361. "value": "12"
  1362. }, {
  1363. "label": "河北省",
  1364. "value": "13"
  1365. }, {
  1366. "label": "山西省",
  1367. "value": "14"
  1368. }, {
  1369. "label": "内蒙古自治区",
  1370. "value": "15"
  1371. }, {
  1372. "label": "辽宁省",
  1373. "value": "21"
  1374. }, {
  1375. "label": "吉林省",
  1376. "value": "22"
  1377. }, {
  1378. "label": "黑龙江省",
  1379. "value": "23"
  1380. }, {
  1381. "label": "上海市",
  1382. "value": "31"
  1383. }, {
  1384. "label": "江苏省",
  1385. "value": "32"
  1386. }, {
  1387. "label": "浙江省",
  1388. "value": "33"
  1389. }, {
  1390. "label": "安徽省",
  1391. "value": "34"
  1392. }, {
  1393. "label": "福建省",
  1394. "value": "35"
  1395. }, {
  1396. "label": "江西省",
  1397. "value": "36"
  1398. }, {
  1399. "label": "山东省",
  1400. "value": "37"
  1401. }, {
  1402. "label": "河南省",
  1403. "value": "41"
  1404. }, {
  1405. "label": "湖北省",
  1406. "value": "42"
  1407. }, {
  1408. "label": "湖南省",
  1409. "value": "43"
  1410. }, {
  1411. "label": "广东省",
  1412. "value": "44"
  1413. }, {
  1414. "label": "广西壮族自治区",
  1415. "value": "45"
  1416. }, {
  1417. "label": "海南省",
  1418. "value": "46"
  1419. }, {
  1420. "label": "重庆市",
  1421. "value": "50"
  1422. }, {
  1423. "label": "四川省",
  1424. "value": "51"
  1425. }, {
  1426. "label": "贵州省",
  1427. "value": "52"
  1428. }, {
  1429. "label": "云南省",
  1430. "value": "53"
  1431. }, {
  1432. "label": "西藏自治区",
  1433. "value": "54"
  1434. }, {
  1435. "label": "陕西省",
  1436. "value": "61"
  1437. }, {
  1438. "label": "甘肃省",
  1439. "value": "62"
  1440. }, {
  1441. "label": "青海省",
  1442. "value": "63"
  1443. }, {
  1444. "label": "宁夏回族自治区",
  1445. "value": "64"
  1446. }, {
  1447. "label": "新疆维吾尔自治区",
  1448. "value": "65"
  1449. }, {
  1450. "label": "台湾",
  1451. "value": "66"
  1452. }, {
  1453. "label": "香港",
  1454. "value": "67"
  1455. }, {
  1456. "label": "澳门",
  1457. "value": "68"
  1458. }];
  1459. var _default = provinceData;
  1460. exports.default = _default;
  1461. /***/ }),
  1462. /***/ 1374:
  1463. /*!**************************************************************!*\
  1464. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/util/city.js ***!
  1465. \**************************************************************/
  1466. /*! no static exports found */
  1467. /***/ (function(module, exports, __webpack_require__) {
  1468. "use strict";
  1469. Object.defineProperty(exports, "__esModule", {
  1470. value: true
  1471. });
  1472. exports.default = void 0;
  1473. var cityData = [[{
  1474. "label": "市辖区",
  1475. "value": "1101"
  1476. }], [{
  1477. "label": "市辖区",
  1478. "value": "1201"
  1479. }], [{
  1480. "label": "石家庄市",
  1481. "value": "1301"
  1482. }, {
  1483. "label": "唐山市",
  1484. "value": "1302"
  1485. }, {
  1486. "label": "秦皇岛市",
  1487. "value": "1303"
  1488. }, {
  1489. "label": "邯郸市",
  1490. "value": "1304"
  1491. }, {
  1492. "label": "邢台市",
  1493. "value": "1305"
  1494. }, {
  1495. "label": "保定市",
  1496. "value": "1306"
  1497. }, {
  1498. "label": "张家口市",
  1499. "value": "1307"
  1500. }, {
  1501. "label": "承德市",
  1502. "value": "1308"
  1503. }, {
  1504. "label": "沧州市",
  1505. "value": "1309"
  1506. }, {
  1507. "label": "廊坊市",
  1508. "value": "1310"
  1509. }, {
  1510. "label": "衡水市",
  1511. "value": "1311"
  1512. }], [{
  1513. "label": "太原市",
  1514. "value": "1401"
  1515. }, {
  1516. "label": "大同市",
  1517. "value": "1402"
  1518. }, {
  1519. "label": "阳泉市",
  1520. "value": "1403"
  1521. }, {
  1522. "label": "长治市",
  1523. "value": "1404"
  1524. }, {
  1525. "label": "晋城市",
  1526. "value": "1405"
  1527. }, {
  1528. "label": "朔州市",
  1529. "value": "1406"
  1530. }, {
  1531. "label": "晋中市",
  1532. "value": "1407"
  1533. }, {
  1534. "label": "运城市",
  1535. "value": "1408"
  1536. }, {
  1537. "label": "忻州市",
  1538. "value": "1409"
  1539. }, {
  1540. "label": "临汾市",
  1541. "value": "1410"
  1542. }, {
  1543. "label": "吕梁市",
  1544. "value": "1411"
  1545. }], [{
  1546. "label": "呼和浩特市",
  1547. "value": "1501"
  1548. }, {
  1549. "label": "包头市",
  1550. "value": "1502"
  1551. }, {
  1552. "label": "乌海市",
  1553. "value": "1503"
  1554. }, {
  1555. "label": "赤峰市",
  1556. "value": "1504"
  1557. }, {
  1558. "label": "通辽市",
  1559. "value": "1505"
  1560. }, {
  1561. "label": "鄂尔多斯市",
  1562. "value": "1506"
  1563. }, {
  1564. "label": "呼伦贝尔市",
  1565. "value": "1507"
  1566. }, {
  1567. "label": "巴彦淖尔市",
  1568. "value": "1508"
  1569. }, {
  1570. "label": "乌兰察布市",
  1571. "value": "1509"
  1572. }, {
  1573. "label": "兴安盟",
  1574. "value": "1522"
  1575. }, {
  1576. "label": "锡林郭勒盟",
  1577. "value": "1525"
  1578. }, {
  1579. "label": "阿拉善盟",
  1580. "value": "1529"
  1581. }], [{
  1582. "label": "沈阳市",
  1583. "value": "2101"
  1584. }, {
  1585. "label": "大连市",
  1586. "value": "2102"
  1587. }, {
  1588. "label": "鞍山市",
  1589. "value": "2103"
  1590. }, {
  1591. "label": "抚顺市",
  1592. "value": "2104"
  1593. }, {
  1594. "label": "本溪市",
  1595. "value": "2105"
  1596. }, {
  1597. "label": "丹东市",
  1598. "value": "2106"
  1599. }, {
  1600. "label": "锦州市",
  1601. "value": "2107"
  1602. }, {
  1603. "label": "营口市",
  1604. "value": "2108"
  1605. }, {
  1606. "label": "阜新市",
  1607. "value": "2109"
  1608. }, {
  1609. "label": "辽阳市",
  1610. "value": "2110"
  1611. }, {
  1612. "label": "盘锦市",
  1613. "value": "2111"
  1614. }, {
  1615. "label": "铁岭市",
  1616. "value": "2112"
  1617. }, {
  1618. "label": "朝阳市",
  1619. "value": "2113"
  1620. }, {
  1621. "label": "葫芦岛市",
  1622. "value": "2114"
  1623. }], [{
  1624. "label": "长春市",
  1625. "value": "2201"
  1626. }, {
  1627. "label": "吉林市",
  1628. "value": "2202"
  1629. }, {
  1630. "label": "四平市",
  1631. "value": "2203"
  1632. }, {
  1633. "label": "辽源市",
  1634. "value": "2204"
  1635. }, {
  1636. "label": "通化市",
  1637. "value": "2205"
  1638. }, {
  1639. "label": "白山市",
  1640. "value": "2206"
  1641. }, {
  1642. "label": "松原市",
  1643. "value": "2207"
  1644. }, {
  1645. "label": "白城市",
  1646. "value": "2208"
  1647. }, {
  1648. "label": "延边朝鲜族自治州",
  1649. "value": "2224"
  1650. }], [{
  1651. "label": "哈尔滨市",
  1652. "value": "2301"
  1653. }, {
  1654. "label": "齐齐哈尔市",
  1655. "value": "2302"
  1656. }, {
  1657. "label": "鸡西市",
  1658. "value": "2303"
  1659. }, {
  1660. "label": "鹤岗市",
  1661. "value": "2304"
  1662. }, {
  1663. "label": "双鸭山市",
  1664. "value": "2305"
  1665. }, {
  1666. "label": "大庆市",
  1667. "value": "2306"
  1668. }, {
  1669. "label": "伊春市",
  1670. "value": "2307"
  1671. }, {
  1672. "label": "佳木斯市",
  1673. "value": "2308"
  1674. }, {
  1675. "label": "七台河市",
  1676. "value": "2309"
  1677. }, {
  1678. "label": "牡丹江市",
  1679. "value": "2310"
  1680. }, {
  1681. "label": "黑河市",
  1682. "value": "2311"
  1683. }, {
  1684. "label": "绥化市",
  1685. "value": "2312"
  1686. }, {
  1687. "label": "大兴安岭地区",
  1688. "value": "2327"
  1689. }], [{
  1690. "label": "市辖区",
  1691. "value": "3101"
  1692. }], [{
  1693. "label": "南京市",
  1694. "value": "3201"
  1695. }, {
  1696. "label": "无锡市",
  1697. "value": "3202"
  1698. }, {
  1699. "label": "徐州市",
  1700. "value": "3203"
  1701. }, {
  1702. "label": "常州市",
  1703. "value": "3204"
  1704. }, {
  1705. "label": "苏州市",
  1706. "value": "3205"
  1707. }, {
  1708. "label": "南通市",
  1709. "value": "3206"
  1710. }, {
  1711. "label": "连云港市",
  1712. "value": "3207"
  1713. }, {
  1714. "label": "淮安市",
  1715. "value": "3208"
  1716. }, {
  1717. "label": "盐城市",
  1718. "value": "3209"
  1719. }, {
  1720. "label": "扬州市",
  1721. "value": "3210"
  1722. }, {
  1723. "label": "镇江市",
  1724. "value": "3211"
  1725. }, {
  1726. "label": "泰州市",
  1727. "value": "3212"
  1728. }, {
  1729. "label": "宿迁市",
  1730. "value": "3213"
  1731. }], [{
  1732. "label": "杭州市",
  1733. "value": "3301"
  1734. }, {
  1735. "label": "宁波市",
  1736. "value": "3302"
  1737. }, {
  1738. "label": "温州市",
  1739. "value": "3303"
  1740. }, {
  1741. "label": "嘉兴市",
  1742. "value": "3304"
  1743. }, {
  1744. "label": "湖州市",
  1745. "value": "3305"
  1746. }, {
  1747. "label": "绍兴市",
  1748. "value": "3306"
  1749. }, {
  1750. "label": "金华市",
  1751. "value": "3307"
  1752. }, {
  1753. "label": "衢州市",
  1754. "value": "3308"
  1755. }, {
  1756. "label": "舟山市",
  1757. "value": "3309"
  1758. }, {
  1759. "label": "台州市",
  1760. "value": "3310"
  1761. }, {
  1762. "label": "丽水市",
  1763. "value": "3311"
  1764. }], [{
  1765. "label": "合肥市",
  1766. "value": "3401"
  1767. }, {
  1768. "label": "芜湖市",
  1769. "value": "3402"
  1770. }, {
  1771. "label": "蚌埠市",
  1772. "value": "3403"
  1773. }, {
  1774. "label": "淮南市",
  1775. "value": "3404"
  1776. }, {
  1777. "label": "马鞍山市",
  1778. "value": "3405"
  1779. }, {
  1780. "label": "淮北市",
  1781. "value": "3406"
  1782. }, {
  1783. "label": "铜陵市",
  1784. "value": "3407"
  1785. }, {
  1786. "label": "安庆市",
  1787. "value": "3408"
  1788. }, {
  1789. "label": "黄山市",
  1790. "value": "3410"
  1791. }, {
  1792. "label": "滁州市",
  1793. "value": "3411"
  1794. }, {
  1795. "label": "阜阳市",
  1796. "value": "3412"
  1797. }, {
  1798. "label": "宿州市",
  1799. "value": "3413"
  1800. }, {
  1801. "label": "六安市",
  1802. "value": "3415"
  1803. }, {
  1804. "label": "亳州市",
  1805. "value": "3416"
  1806. }, {
  1807. "label": "池州市",
  1808. "value": "3417"
  1809. }, {
  1810. "label": "宣城市",
  1811. "value": "3418"
  1812. }], [{
  1813. "label": "福州市",
  1814. "value": "3501"
  1815. }, {
  1816. "label": "厦门市",
  1817. "value": "3502"
  1818. }, {
  1819. "label": "莆田市",
  1820. "value": "3503"
  1821. }, {
  1822. "label": "三明市",
  1823. "value": "3504"
  1824. }, {
  1825. "label": "泉州市",
  1826. "value": "3505"
  1827. }, {
  1828. "label": "漳州市",
  1829. "value": "3506"
  1830. }, {
  1831. "label": "南平市",
  1832. "value": "3507"
  1833. }, {
  1834. "label": "龙岩市",
  1835. "value": "3508"
  1836. }, {
  1837. "label": "宁德市",
  1838. "value": "3509"
  1839. }], [{
  1840. "label": "南昌市",
  1841. "value": "3601"
  1842. }, {
  1843. "label": "景德镇市",
  1844. "value": "3602"
  1845. }, {
  1846. "label": "萍乡市",
  1847. "value": "3603"
  1848. }, {
  1849. "label": "九江市",
  1850. "value": "3604"
  1851. }, {
  1852. "label": "新余市",
  1853. "value": "3605"
  1854. }, {
  1855. "label": "鹰潭市",
  1856. "value": "3606"
  1857. }, {
  1858. "label": "赣州市",
  1859. "value": "3607"
  1860. }, {
  1861. "label": "吉安市",
  1862. "value": "3608"
  1863. }, {
  1864. "label": "宜春市",
  1865. "value": "3609"
  1866. }, {
  1867. "label": "抚州市",
  1868. "value": "3610"
  1869. }, {
  1870. "label": "上饶市",
  1871. "value": "3611"
  1872. }], [{
  1873. "label": "济南市",
  1874. "value": "3701"
  1875. }, {
  1876. "label": "青岛市",
  1877. "value": "3702"
  1878. }, {
  1879. "label": "淄博市",
  1880. "value": "3703"
  1881. }, {
  1882. "label": "枣庄市",
  1883. "value": "3704"
  1884. }, {
  1885. "label": "东营市",
  1886. "value": "3705"
  1887. }, {
  1888. "label": "烟台市",
  1889. "value": "3706"
  1890. }, {
  1891. "label": "潍坊市",
  1892. "value": "3707"
  1893. }, {
  1894. "label": "济宁市",
  1895. "value": "3708"
  1896. }, {
  1897. "label": "泰安市",
  1898. "value": "3709"
  1899. }, {
  1900. "label": "威海市",
  1901. "value": "3710"
  1902. }, {
  1903. "label": "日照市",
  1904. "value": "3711"
  1905. }, {
  1906. "label": "莱芜市",
  1907. "value": "3712"
  1908. }, {
  1909. "label": "临沂市",
  1910. "value": "3713"
  1911. }, {
  1912. "label": "德州市",
  1913. "value": "3714"
  1914. }, {
  1915. "label": "聊城市",
  1916. "value": "3715"
  1917. }, {
  1918. "label": "滨州市",
  1919. "value": "3716"
  1920. }, {
  1921. "label": "菏泽市",
  1922. "value": "3717"
  1923. }], [{
  1924. "label": "郑州市",
  1925. "value": "4101"
  1926. }, {
  1927. "label": "开封市",
  1928. "value": "4102"
  1929. }, {
  1930. "label": "洛阳市",
  1931. "value": "4103"
  1932. }, {
  1933. "label": "平顶山市",
  1934. "value": "4104"
  1935. }, {
  1936. "label": "安阳市",
  1937. "value": "4105"
  1938. }, {
  1939. "label": "鹤壁市",
  1940. "value": "4106"
  1941. }, {
  1942. "label": "新乡市",
  1943. "value": "4107"
  1944. }, {
  1945. "label": "焦作市",
  1946. "value": "4108"
  1947. }, {
  1948. "label": "濮阳市",
  1949. "value": "4109"
  1950. }, {
  1951. "label": "许昌市",
  1952. "value": "4110"
  1953. }, {
  1954. "label": "漯河市",
  1955. "value": "4111"
  1956. }, {
  1957. "label": "三门峡市",
  1958. "value": "4112"
  1959. }, {
  1960. "label": "南阳市",
  1961. "value": "4113"
  1962. }, {
  1963. "label": "商丘市",
  1964. "value": "4114"
  1965. }, {
  1966. "label": "信阳市",
  1967. "value": "4115"
  1968. }, {
  1969. "label": "周口市",
  1970. "value": "4116"
  1971. }, {
  1972. "label": "驻马店市",
  1973. "value": "4117"
  1974. }, {
  1975. "label": "省直辖县级行政区划",
  1976. "value": "4190"
  1977. }], [{
  1978. "label": "武汉市",
  1979. "value": "4201"
  1980. }, {
  1981. "label": "黄石市",
  1982. "value": "4202"
  1983. }, {
  1984. "label": "十堰市",
  1985. "value": "4203"
  1986. }, {
  1987. "label": "宜昌市",
  1988. "value": "4205"
  1989. }, {
  1990. "label": "襄阳市",
  1991. "value": "4206"
  1992. }, {
  1993. "label": "鄂州市",
  1994. "value": "4207"
  1995. }, {
  1996. "label": "荆门市",
  1997. "value": "4208"
  1998. }, {
  1999. "label": "孝感市",
  2000. "value": "4209"
  2001. }, {
  2002. "label": "荆州市",
  2003. "value": "4210"
  2004. }, {
  2005. "label": "黄冈市",
  2006. "value": "4211"
  2007. }, {
  2008. "label": "咸宁市",
  2009. "value": "4212"
  2010. }, {
  2011. "label": "随州市",
  2012. "value": "4213"
  2013. }, {
  2014. "label": "恩施土家族苗族自治州",
  2015. "value": "4228"
  2016. }, {
  2017. "label": "省直辖县级行政区划",
  2018. "value": "4290"
  2019. }], [{
  2020. "label": "长沙市",
  2021. "value": "4301"
  2022. }, {
  2023. "label": "株洲市",
  2024. "value": "4302"
  2025. }, {
  2026. "label": "湘潭市",
  2027. "value": "4303"
  2028. }, {
  2029. "label": "衡阳市",
  2030. "value": "4304"
  2031. }, {
  2032. "label": "邵阳市",
  2033. "value": "4305"
  2034. }, {
  2035. "label": "岳阳市",
  2036. "value": "4306"
  2037. }, {
  2038. "label": "常德市",
  2039. "value": "4307"
  2040. }, {
  2041. "label": "张家界市",
  2042. "value": "4308"
  2043. }, {
  2044. "label": "益阳市",
  2045. "value": "4309"
  2046. }, {
  2047. "label": "郴州市",
  2048. "value": "4310"
  2049. }, {
  2050. "label": "永州市",
  2051. "value": "4311"
  2052. }, {
  2053. "label": "怀化市",
  2054. "value": "4312"
  2055. }, {
  2056. "label": "娄底市",
  2057. "value": "4313"
  2058. }, {
  2059. "label": "湘西土家族苗族自治州",
  2060. "value": "4331"
  2061. }], [{
  2062. "label": "广州市",
  2063. "value": "4401"
  2064. }, {
  2065. "label": "韶关市",
  2066. "value": "4402"
  2067. }, {
  2068. "label": "深圳市",
  2069. "value": "4403"
  2070. }, {
  2071. "label": "珠海市",
  2072. "value": "4404"
  2073. }, {
  2074. "label": "汕头市",
  2075. "value": "4405"
  2076. }, {
  2077. "label": "佛山市",
  2078. "value": "4406"
  2079. }, {
  2080. "label": "江门市",
  2081. "value": "4407"
  2082. }, {
  2083. "label": "湛江市",
  2084. "value": "4408"
  2085. }, {
  2086. "label": "茂名市",
  2087. "value": "4409"
  2088. }, {
  2089. "label": "肇庆市",
  2090. "value": "4412"
  2091. }, {
  2092. "label": "惠州市",
  2093. "value": "4413"
  2094. }, {
  2095. "label": "梅州市",
  2096. "value": "4414"
  2097. }, {
  2098. "label": "汕尾市",
  2099. "value": "4415"
  2100. }, {
  2101. "label": "河源市",
  2102. "value": "4416"
  2103. }, {
  2104. "label": "阳江市",
  2105. "value": "4417"
  2106. }, {
  2107. "label": "清远市",
  2108. "value": "4418"
  2109. }, {
  2110. "label": "东莞市",
  2111. "value": "4419"
  2112. }, {
  2113. "label": "中山市",
  2114. "value": "4420"
  2115. }, {
  2116. "label": "潮州市",
  2117. "value": "4451"
  2118. }, {
  2119. "label": "揭阳市",
  2120. "value": "4452"
  2121. }, {
  2122. "label": "云浮市",
  2123. "value": "4453"
  2124. }], [{
  2125. "label": "南宁市",
  2126. "value": "4501"
  2127. }, {
  2128. "label": "柳州市",
  2129. "value": "4502"
  2130. }, {
  2131. "label": "桂林市",
  2132. "value": "4503"
  2133. }, {
  2134. "label": "梧州市",
  2135. "value": "4504"
  2136. }, {
  2137. "label": "北海市",
  2138. "value": "4505"
  2139. }, {
  2140. "label": "防城港市",
  2141. "value": "4506"
  2142. }, {
  2143. "label": "钦州市",
  2144. "value": "4507"
  2145. }, {
  2146. "label": "贵港市",
  2147. "value": "4508"
  2148. }, {
  2149. "label": "玉林市",
  2150. "value": "4509"
  2151. }, {
  2152. "label": "百色市",
  2153. "value": "4510"
  2154. }, {
  2155. "label": "贺州市",
  2156. "value": "4511"
  2157. }, {
  2158. "label": "河池市",
  2159. "value": "4512"
  2160. }, {
  2161. "label": "来宾市",
  2162. "value": "4513"
  2163. }, {
  2164. "label": "崇左市",
  2165. "value": "4514"
  2166. }], [{
  2167. "label": "海口市",
  2168. "value": "4601"
  2169. }, {
  2170. "label": "三亚市",
  2171. "value": "4602"
  2172. }, {
  2173. "label": "三沙市",
  2174. "value": "4603"
  2175. }, {
  2176. "label": "儋州市",
  2177. "value": "4604"
  2178. }, {
  2179. "label": "省直辖县级行政区划",
  2180. "value": "4690"
  2181. }], [{
  2182. "label": "市辖区",
  2183. "value": "5001"
  2184. }, {
  2185. "label": "县",
  2186. "value": "5002"
  2187. }], [{
  2188. "label": "成都市",
  2189. "value": "5101"
  2190. }, {
  2191. "label": "自贡市",
  2192. "value": "5103"
  2193. }, {
  2194. "label": "攀枝花市",
  2195. "value": "5104"
  2196. }, {
  2197. "label": "泸州市",
  2198. "value": "5105"
  2199. }, {
  2200. "label": "德阳市",
  2201. "value": "5106"
  2202. }, {
  2203. "label": "绵阳市",
  2204. "value": "5107"
  2205. }, {
  2206. "label": "广元市",
  2207. "value": "5108"
  2208. }, {
  2209. "label": "遂宁市",
  2210. "value": "5109"
  2211. }, {
  2212. "label": "内江市",
  2213. "value": "5110"
  2214. }, {
  2215. "label": "乐山市",
  2216. "value": "5111"
  2217. }, {
  2218. "label": "南充市",
  2219. "value": "5113"
  2220. }, {
  2221. "label": "眉山市",
  2222. "value": "5114"
  2223. }, {
  2224. "label": "宜宾市",
  2225. "value": "5115"
  2226. }, {
  2227. "label": "广安市",
  2228. "value": "5116"
  2229. }, {
  2230. "label": "达州市",
  2231. "value": "5117"
  2232. }, {
  2233. "label": "雅安市",
  2234. "value": "5118"
  2235. }, {
  2236. "label": "巴中市",
  2237. "value": "5119"
  2238. }, {
  2239. "label": "资阳市",
  2240. "value": "5120"
  2241. }, {
  2242. "label": "阿坝藏族羌族自治州",
  2243. "value": "5132"
  2244. }, {
  2245. "label": "甘孜藏族自治州",
  2246. "value": "5133"
  2247. }, {
  2248. "label": "凉山彝族自治州",
  2249. "value": "5134"
  2250. }], [{
  2251. "label": "贵阳市",
  2252. "value": "5201"
  2253. }, {
  2254. "label": "六盘水市",
  2255. "value": "5202"
  2256. }, {
  2257. "label": "遵义市",
  2258. "value": "5203"
  2259. }, {
  2260. "label": "安顺市",
  2261. "value": "5204"
  2262. }, {
  2263. "label": "毕节市",
  2264. "value": "5205"
  2265. }, {
  2266. "label": "铜仁市",
  2267. "value": "5206"
  2268. }, {
  2269. "label": "黔西南布依族苗族自治州",
  2270. "value": "5223"
  2271. }, {
  2272. "label": "黔东南苗族侗族自治州",
  2273. "value": "5226"
  2274. }, {
  2275. "label": "黔南布依族苗族自治州",
  2276. "value": "5227"
  2277. }], [{
  2278. "label": "昆明市",
  2279. "value": "5301"
  2280. }, {
  2281. "label": "曲靖市",
  2282. "value": "5303"
  2283. }, {
  2284. "label": "玉溪市",
  2285. "value": "5304"
  2286. }, {
  2287. "label": "保山市",
  2288. "value": "5305"
  2289. }, {
  2290. "label": "昭通市",
  2291. "value": "5306"
  2292. }, {
  2293. "label": "丽江市",
  2294. "value": "5307"
  2295. }, {
  2296. "label": "普洱市",
  2297. "value": "5308"
  2298. }, {
  2299. "label": "临沧市",
  2300. "value": "5309"
  2301. }, {
  2302. "label": "楚雄彝族自治州",
  2303. "value": "5323"
  2304. }, {
  2305. "label": "红河哈尼族彝族自治州",
  2306. "value": "5325"
  2307. }, {
  2308. "label": "文山壮族苗族自治州",
  2309. "value": "5326"
  2310. }, {
  2311. "label": "西双版纳傣族自治州",
  2312. "value": "5328"
  2313. }, {
  2314. "label": "大理白族自治州",
  2315. "value": "5329"
  2316. }, {
  2317. "label": "德宏傣族景颇族自治州",
  2318. "value": "5331"
  2319. }, {
  2320. "label": "怒江傈僳族自治州",
  2321. "value": "5333"
  2322. }, {
  2323. "label": "迪庆藏族自治州",
  2324. "value": "5334"
  2325. }], [{
  2326. "label": "拉萨市",
  2327. "value": "5401"
  2328. }, {
  2329. "label": "日喀则市",
  2330. "value": "5402"
  2331. }, {
  2332. "label": "昌都市",
  2333. "value": "5403"
  2334. }, {
  2335. "label": "林芝市",
  2336. "value": "5404"
  2337. }, {
  2338. "label": "山南市",
  2339. "value": "5405"
  2340. }, {
  2341. "label": "那曲地区",
  2342. "value": "5424"
  2343. }, {
  2344. "label": "阿里地区",
  2345. "value": "5425"
  2346. }], [{
  2347. "label": "西安市",
  2348. "value": "6101"
  2349. }, {
  2350. "label": "铜川市",
  2351. "value": "6102"
  2352. }, {
  2353. "label": "宝鸡市",
  2354. "value": "6103"
  2355. }, {
  2356. "label": "咸阳市",
  2357. "value": "6104"
  2358. }, {
  2359. "label": "渭南市",
  2360. "value": "6105"
  2361. }, {
  2362. "label": "延安市",
  2363. "value": "6106"
  2364. }, {
  2365. "label": "汉中市",
  2366. "value": "6107"
  2367. }, {
  2368. "label": "榆林市",
  2369. "value": "6108"
  2370. }, {
  2371. "label": "安康市",
  2372. "value": "6109"
  2373. }, {
  2374. "label": "商洛市",
  2375. "value": "6110"
  2376. }], [{
  2377. "label": "兰州市",
  2378. "value": "6201"
  2379. }, {
  2380. "label": "嘉峪关市",
  2381. "value": "6202"
  2382. }, {
  2383. "label": "金昌市",
  2384. "value": "6203"
  2385. }, {
  2386. "label": "白银市",
  2387. "value": "6204"
  2388. }, {
  2389. "label": "天水市",
  2390. "value": "6205"
  2391. }, {
  2392. "label": "武威市",
  2393. "value": "6206"
  2394. }, {
  2395. "label": "张掖市",
  2396. "value": "6207"
  2397. }, {
  2398. "label": "平凉市",
  2399. "value": "6208"
  2400. }, {
  2401. "label": "酒泉市",
  2402. "value": "6209"
  2403. }, {
  2404. "label": "庆阳市",
  2405. "value": "6210"
  2406. }, {
  2407. "label": "定西市",
  2408. "value": "6211"
  2409. }, {
  2410. "label": "陇南市",
  2411. "value": "6212"
  2412. }, {
  2413. "label": "临夏回族自治州",
  2414. "value": "6229"
  2415. }, {
  2416. "label": "甘南藏族自治州",
  2417. "value": "6230"
  2418. }], [{
  2419. "label": "西宁市",
  2420. "value": "6301"
  2421. }, {
  2422. "label": "海东市",
  2423. "value": "6302"
  2424. }, {
  2425. "label": "海北藏族自治州",
  2426. "value": "6322"
  2427. }, {
  2428. "label": "黄南藏族自治州",
  2429. "value": "6323"
  2430. }, {
  2431. "label": "海南藏族自治州",
  2432. "value": "6325"
  2433. }, {
  2434. "label": "果洛藏族自治州",
  2435. "value": "6326"
  2436. }, {
  2437. "label": "玉树藏族自治州",
  2438. "value": "6327"
  2439. }, {
  2440. "label": "海西蒙古族藏族自治州",
  2441. "value": "6328"
  2442. }], [{
  2443. "label": "银川市",
  2444. "value": "6401"
  2445. }, {
  2446. "label": "石嘴山市",
  2447. "value": "6402"
  2448. }, {
  2449. "label": "吴忠市",
  2450. "value": "6403"
  2451. }, {
  2452. "label": "固原市",
  2453. "value": "6404"
  2454. }, {
  2455. "label": "中卫市",
  2456. "value": "6405"
  2457. }], [{
  2458. "label": "乌鲁木齐市",
  2459. "value": "6501"
  2460. }, {
  2461. "label": "克拉玛依市",
  2462. "value": "6502"
  2463. }, {
  2464. "label": "吐鲁番市",
  2465. "value": "6504"
  2466. }, {
  2467. "label": "哈密市",
  2468. "value": "6505"
  2469. }, {
  2470. "label": "昌吉回族自治州",
  2471. "value": "6523"
  2472. }, {
  2473. "label": "博尔塔拉蒙古自治州",
  2474. "value": "6527"
  2475. }, {
  2476. "label": "巴音郭楞蒙古自治州",
  2477. "value": "6528"
  2478. }, {
  2479. "label": "阿克苏地区",
  2480. "value": "6529"
  2481. }, {
  2482. "label": "克孜勒苏柯尔克孜自治州",
  2483. "value": "6530"
  2484. }, {
  2485. "label": "喀什地区",
  2486. "value": "6531"
  2487. }, {
  2488. "label": "和田地区",
  2489. "value": "6532"
  2490. }, {
  2491. "label": "伊犁哈萨克自治州",
  2492. "value": "6540"
  2493. }, {
  2494. "label": "塔城地区",
  2495. "value": "6542"
  2496. }, {
  2497. "label": "阿勒泰地区",
  2498. "value": "6543"
  2499. }, {
  2500. "label": "自治区直辖县级行政区划",
  2501. "value": "6590"
  2502. }], [{
  2503. "label": "台北",
  2504. "value": "6601"
  2505. }, {
  2506. "label": "高雄",
  2507. "value": "6602"
  2508. }, {
  2509. "label": "基隆",
  2510. "value": "6603"
  2511. }, {
  2512. "label": "台中",
  2513. "value": "6604"
  2514. }, {
  2515. "label": "台南",
  2516. "value": "6605"
  2517. }, {
  2518. "label": "新竹",
  2519. "value": "6606"
  2520. }, {
  2521. "label": "嘉义",
  2522. "value": "6607"
  2523. }, {
  2524. "label": "宜兰",
  2525. "value": "6608"
  2526. }, {
  2527. "label": "桃园",
  2528. "value": "6609"
  2529. }, {
  2530. "label": "苗栗",
  2531. "value": "6610"
  2532. }, {
  2533. "label": "彰化",
  2534. "value": "6611"
  2535. }, {
  2536. "label": "南投",
  2537. "value": "6612"
  2538. }, {
  2539. "label": "云林",
  2540. "value": "6613"
  2541. }, {
  2542. "label": "屏东",
  2543. "value": "6614"
  2544. }, {
  2545. "label": "台东",
  2546. "value": "6615"
  2547. }, {
  2548. "label": "花莲",
  2549. "value": "6616"
  2550. }, {
  2551. "label": "澎湖",
  2552. "value": "6617"
  2553. }], [{
  2554. "label": "香港岛",
  2555. "value": "6701"
  2556. }, {
  2557. "label": "九龙",
  2558. "value": "6702"
  2559. }, {
  2560. "label": "新界",
  2561. "value": "6703"
  2562. }], [{
  2563. "label": "澳门半岛",
  2564. "value": "6801"
  2565. }, {
  2566. "label": "氹仔岛",
  2567. "value": "6802"
  2568. }, {
  2569. "label": "路环岛",
  2570. "value": "6803"
  2571. }, {
  2572. "label": "路氹城",
  2573. "value": "6804"
  2574. }]];
  2575. var _default = cityData;
  2576. exports.default = _default;
  2577. /***/ }),
  2578. /***/ 1375:
  2579. /*!**************************************************************!*\
  2580. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/util/area.js ***!
  2581. \**************************************************************/
  2582. /*! no static exports found */
  2583. /***/ (function(module, exports, __webpack_require__) {
  2584. "use strict";
  2585. Object.defineProperty(exports, "__esModule", {
  2586. value: true
  2587. });
  2588. exports.default = void 0;
  2589. var areaData = [[[{
  2590. "label": "东城区",
  2591. "value": "110101"
  2592. }, {
  2593. "label": "西城区",
  2594. "value": "110102"
  2595. }, {
  2596. "label": "朝阳区",
  2597. "value": "110105"
  2598. }, {
  2599. "label": "丰台区",
  2600. "value": "110106"
  2601. }, {
  2602. "label": "石景山区",
  2603. "value": "110107"
  2604. }, {
  2605. "label": "海淀区",
  2606. "value": "110108"
  2607. }, {
  2608. "label": "门头沟区",
  2609. "value": "110109"
  2610. }, {
  2611. "label": "房山区",
  2612. "value": "110111"
  2613. }, {
  2614. "label": "通州区",
  2615. "value": "110112"
  2616. }, {
  2617. "label": "顺义区",
  2618. "value": "110113"
  2619. }, {
  2620. "label": "昌平区",
  2621. "value": "110114"
  2622. }, {
  2623. "label": "大兴区",
  2624. "value": "110115"
  2625. }, {
  2626. "label": "怀柔区",
  2627. "value": "110116"
  2628. }, {
  2629. "label": "平谷区",
  2630. "value": "110117"
  2631. }, {
  2632. "label": "密云区",
  2633. "value": "110118"
  2634. }, {
  2635. "label": "延庆区",
  2636. "value": "110119"
  2637. }]], [[{
  2638. "label": "和平区",
  2639. "value": "120101"
  2640. }, {
  2641. "label": "河东区",
  2642. "value": "120102"
  2643. }, {
  2644. "label": "河西区",
  2645. "value": "120103"
  2646. }, {
  2647. "label": "南开区",
  2648. "value": "120104"
  2649. }, {
  2650. "label": "河北区",
  2651. "value": "120105"
  2652. }, {
  2653. "label": "红桥区",
  2654. "value": "120106"
  2655. }, {
  2656. "label": "东丽区",
  2657. "value": "120110"
  2658. }, {
  2659. "label": "西青区",
  2660. "value": "120111"
  2661. }, {
  2662. "label": "津南区",
  2663. "value": "120112"
  2664. }, {
  2665. "label": "北辰区",
  2666. "value": "120113"
  2667. }, {
  2668. "label": "武清区",
  2669. "value": "120114"
  2670. }, {
  2671. "label": "宝坻区",
  2672. "value": "120115"
  2673. }, {
  2674. "label": "滨海新区",
  2675. "value": "120116"
  2676. }, {
  2677. "label": "宁河区",
  2678. "value": "120117"
  2679. }, {
  2680. "label": "静海区",
  2681. "value": "120118"
  2682. }, {
  2683. "label": "蓟州区",
  2684. "value": "120119"
  2685. }]], [[{
  2686. "label": "长安区",
  2687. "value": "130102"
  2688. }, {
  2689. "label": "桥西区",
  2690. "value": "130104"
  2691. }, {
  2692. "label": "新华区",
  2693. "value": "130105"
  2694. }, {
  2695. "label": "井陉矿区",
  2696. "value": "130107"
  2697. }, {
  2698. "label": "裕华区",
  2699. "value": "130108"
  2700. }, {
  2701. "label": "藁城区",
  2702. "value": "130109"
  2703. }, {
  2704. "label": "鹿泉区",
  2705. "value": "130110"
  2706. }, {
  2707. "label": "栾城区",
  2708. "value": "130111"
  2709. }, {
  2710. "label": "井陉县",
  2711. "value": "130121"
  2712. }, {
  2713. "label": "正定县",
  2714. "value": "130123"
  2715. }, {
  2716. "label": "行唐县",
  2717. "value": "130125"
  2718. }, {
  2719. "label": "灵寿县",
  2720. "value": "130126"
  2721. }, {
  2722. "label": "高邑县",
  2723. "value": "130127"
  2724. }, {
  2725. "label": "深泽县",
  2726. "value": "130128"
  2727. }, {
  2728. "label": "赞皇县",
  2729. "value": "130129"
  2730. }, {
  2731. "label": "无极县",
  2732. "value": "130130"
  2733. }, {
  2734. "label": "平山县",
  2735. "value": "130131"
  2736. }, {
  2737. "label": "元氏县",
  2738. "value": "130132"
  2739. }, {
  2740. "label": "赵县",
  2741. "value": "130133"
  2742. }, {
  2743. "label": "石家庄高新技术产业开发区",
  2744. "value": "130171"
  2745. }, {
  2746. "label": "石家庄循环化工园区",
  2747. "value": "130172"
  2748. }, {
  2749. "label": "辛集市",
  2750. "value": "130181"
  2751. }, {
  2752. "label": "晋州市",
  2753. "value": "130183"
  2754. }, {
  2755. "label": "新乐市",
  2756. "value": "130184"
  2757. }], [{
  2758. "label": "路南区",
  2759. "value": "130202"
  2760. }, {
  2761. "label": "路北区",
  2762. "value": "130203"
  2763. }, {
  2764. "label": "古冶区",
  2765. "value": "130204"
  2766. }, {
  2767. "label": "开平区",
  2768. "value": "130205"
  2769. }, {
  2770. "label": "丰南区",
  2771. "value": "130207"
  2772. }, {
  2773. "label": "丰润区",
  2774. "value": "130208"
  2775. }, {
  2776. "label": "曹妃甸区",
  2777. "value": "130209"
  2778. }, {
  2779. "label": "滦县",
  2780. "value": "130223"
  2781. }, {
  2782. "label": "滦南县",
  2783. "value": "130224"
  2784. }, {
  2785. "label": "乐亭县",
  2786. "value": "130225"
  2787. }, {
  2788. "label": "迁西县",
  2789. "value": "130227"
  2790. }, {
  2791. "label": "玉田县",
  2792. "value": "130229"
  2793. }, {
  2794. "label": "唐山市芦台经济技术开发区",
  2795. "value": "130271"
  2796. }, {
  2797. "label": "唐山市汉沽管理区",
  2798. "value": "130272"
  2799. }, {
  2800. "label": "唐山高新技术产业开发区",
  2801. "value": "130273"
  2802. }, {
  2803. "label": "河北唐山海港经济开发区",
  2804. "value": "130274"
  2805. }, {
  2806. "label": "遵化市",
  2807. "value": "130281"
  2808. }, {
  2809. "label": "迁安市",
  2810. "value": "130283"
  2811. }], [{
  2812. "label": "海港区",
  2813. "value": "130302"
  2814. }, {
  2815. "label": "山海关区",
  2816. "value": "130303"
  2817. }, {
  2818. "label": "北戴河区",
  2819. "value": "130304"
  2820. }, {
  2821. "label": "抚宁区",
  2822. "value": "130306"
  2823. }, {
  2824. "label": "青龙满族自治县",
  2825. "value": "130321"
  2826. }, {
  2827. "label": "昌黎县",
  2828. "value": "130322"
  2829. }, {
  2830. "label": "卢龙县",
  2831. "value": "130324"
  2832. }, {
  2833. "label": "秦皇岛市经济技术开发区",
  2834. "value": "130371"
  2835. }, {
  2836. "label": "北戴河新区",
  2837. "value": "130372"
  2838. }], [{
  2839. "label": "邯山区",
  2840. "value": "130402"
  2841. }, {
  2842. "label": "丛台区",
  2843. "value": "130403"
  2844. }, {
  2845. "label": "复兴区",
  2846. "value": "130404"
  2847. }, {
  2848. "label": "峰峰矿区",
  2849. "value": "130406"
  2850. }, {
  2851. "label": "肥乡区",
  2852. "value": "130407"
  2853. }, {
  2854. "label": "永年区",
  2855. "value": "130408"
  2856. }, {
  2857. "label": "临漳县",
  2858. "value": "130423"
  2859. }, {
  2860. "label": "成安县",
  2861. "value": "130424"
  2862. }, {
  2863. "label": "大名县",
  2864. "value": "130425"
  2865. }, {
  2866. "label": "涉县",
  2867. "value": "130426"
  2868. }, {
  2869. "label": "磁县",
  2870. "value": "130427"
  2871. }, {
  2872. "label": "邱县",
  2873. "value": "130430"
  2874. }, {
  2875. "label": "鸡泽县",
  2876. "value": "130431"
  2877. }, {
  2878. "label": "广平县",
  2879. "value": "130432"
  2880. }, {
  2881. "label": "馆陶县",
  2882. "value": "130433"
  2883. }, {
  2884. "label": "魏县",
  2885. "value": "130434"
  2886. }, {
  2887. "label": "曲周县",
  2888. "value": "130435"
  2889. }, {
  2890. "label": "邯郸经济技术开发区",
  2891. "value": "130471"
  2892. }, {
  2893. "label": "邯郸冀南新区",
  2894. "value": "130473"
  2895. }, {
  2896. "label": "武安市",
  2897. "value": "130481"
  2898. }], [{
  2899. "label": "桥东区",
  2900. "value": "130502"
  2901. }, {
  2902. "label": "桥西区",
  2903. "value": "130503"
  2904. }, {
  2905. "label": "邢台县",
  2906. "value": "130521"
  2907. }, {
  2908. "label": "临城县",
  2909. "value": "130522"
  2910. }, {
  2911. "label": "内丘县",
  2912. "value": "130523"
  2913. }, {
  2914. "label": "柏乡县",
  2915. "value": "130524"
  2916. }, {
  2917. "label": "隆尧县",
  2918. "value": "130525"
  2919. }, {
  2920. "label": "任县",
  2921. "value": "130526"
  2922. }, {
  2923. "label": "南和县",
  2924. "value": "130527"
  2925. }, {
  2926. "label": "宁晋县",
  2927. "value": "130528"
  2928. }, {
  2929. "label": "巨鹿县",
  2930. "value": "130529"
  2931. }, {
  2932. "label": "新河县",
  2933. "value": "130530"
  2934. }, {
  2935. "label": "广宗县",
  2936. "value": "130531"
  2937. }, {
  2938. "label": "平乡县",
  2939. "value": "130532"
  2940. }, {
  2941. "label": "威县",
  2942. "value": "130533"
  2943. }, {
  2944. "label": "清河县",
  2945. "value": "130534"
  2946. }, {
  2947. "label": "临西县",
  2948. "value": "130535"
  2949. }, {
  2950. "label": "河北邢台经济开发区",
  2951. "value": "130571"
  2952. }, {
  2953. "label": "南宫市",
  2954. "value": "130581"
  2955. }, {
  2956. "label": "沙河市",
  2957. "value": "130582"
  2958. }], [{
  2959. "label": "竞秀区",
  2960. "value": "130602"
  2961. }, {
  2962. "label": "莲池区",
  2963. "value": "130606"
  2964. }, {
  2965. "label": "满城区",
  2966. "value": "130607"
  2967. }, {
  2968. "label": "清苑区",
  2969. "value": "130608"
  2970. }, {
  2971. "label": "徐水区",
  2972. "value": "130609"
  2973. }, {
  2974. "label": "涞水县",
  2975. "value": "130623"
  2976. }, {
  2977. "label": "阜平县",
  2978. "value": "130624"
  2979. }, {
  2980. "label": "定兴县",
  2981. "value": "130626"
  2982. }, {
  2983. "label": "唐县",
  2984. "value": "130627"
  2985. }, {
  2986. "label": "高阳县",
  2987. "value": "130628"
  2988. }, {
  2989. "label": "容城县",
  2990. "value": "130629"
  2991. }, {
  2992. "label": "涞源县",
  2993. "value": "130630"
  2994. }, {
  2995. "label": "望都县",
  2996. "value": "130631"
  2997. }, {
  2998. "label": "安新县",
  2999. "value": "130632"
  3000. }, {
  3001. "label": "易县",
  3002. "value": "130633"
  3003. }, {
  3004. "label": "曲阳县",
  3005. "value": "130634"
  3006. }, {
  3007. "label": "蠡县",
  3008. "value": "130635"
  3009. }, {
  3010. "label": "顺平县",
  3011. "value": "130636"
  3012. }, {
  3013. "label": "博野县",
  3014. "value": "130637"
  3015. }, {
  3016. "label": "雄县",
  3017. "value": "130638"
  3018. }, {
  3019. "label": "保定高新技术产业开发区",
  3020. "value": "130671"
  3021. }, {
  3022. "label": "保定白沟新城",
  3023. "value": "130672"
  3024. }, {
  3025. "label": "涿州市",
  3026. "value": "130681"
  3027. }, {
  3028. "label": "定州市",
  3029. "value": "130682"
  3030. }, {
  3031. "label": "安国市",
  3032. "value": "130683"
  3033. }, {
  3034. "label": "高碑店市",
  3035. "value": "130684"
  3036. }], [{
  3037. "label": "桥东区",
  3038. "value": "130702"
  3039. }, {
  3040. "label": "桥西区",
  3041. "value": "130703"
  3042. }, {
  3043. "label": "宣化区",
  3044. "value": "130705"
  3045. }, {
  3046. "label": "下花园区",
  3047. "value": "130706"
  3048. }, {
  3049. "label": "万全区",
  3050. "value": "130708"
  3051. }, {
  3052. "label": "崇礼区",
  3053. "value": "130709"
  3054. }, {
  3055. "label": "张北县",
  3056. "value": "130722"
  3057. }, {
  3058. "label": "康保县",
  3059. "value": "130723"
  3060. }, {
  3061. "label": "沽源县",
  3062. "value": "130724"
  3063. }, {
  3064. "label": "尚义县",
  3065. "value": "130725"
  3066. }, {
  3067. "label": "蔚县",
  3068. "value": "130726"
  3069. }, {
  3070. "label": "阳原县",
  3071. "value": "130727"
  3072. }, {
  3073. "label": "怀安县",
  3074. "value": "130728"
  3075. }, {
  3076. "label": "怀来县",
  3077. "value": "130730"
  3078. }, {
  3079. "label": "涿鹿县",
  3080. "value": "130731"
  3081. }, {
  3082. "label": "赤城县",
  3083. "value": "130732"
  3084. }, {
  3085. "label": "张家口市高新技术产业开发区",
  3086. "value": "130771"
  3087. }, {
  3088. "label": "张家口市察北管理区",
  3089. "value": "130772"
  3090. }, {
  3091. "label": "张家口市塞北管理区",
  3092. "value": "130773"
  3093. }], [{
  3094. "label": "双桥区",
  3095. "value": "130802"
  3096. }, {
  3097. "label": "双滦区",
  3098. "value": "130803"
  3099. }, {
  3100. "label": "鹰手营子矿区",
  3101. "value": "130804"
  3102. }, {
  3103. "label": "承德县",
  3104. "value": "130821"
  3105. }, {
  3106. "label": "兴隆县",
  3107. "value": "130822"
  3108. }, {
  3109. "label": "滦平县",
  3110. "value": "130824"
  3111. }, {
  3112. "label": "隆化县",
  3113. "value": "130825"
  3114. }, {
  3115. "label": "丰宁满族自治县",
  3116. "value": "130826"
  3117. }, {
  3118. "label": "宽城满族自治县",
  3119. "value": "130827"
  3120. }, {
  3121. "label": "围场满族蒙古族自治县",
  3122. "value": "130828"
  3123. }, {
  3124. "label": "承德高新技术产业开发区",
  3125. "value": "130871"
  3126. }, {
  3127. "label": "平泉市",
  3128. "value": "130881"
  3129. }], [{
  3130. "label": "新华区",
  3131. "value": "130902"
  3132. }, {
  3133. "label": "运河区",
  3134. "value": "130903"
  3135. }, {
  3136. "label": "沧县",
  3137. "value": "130921"
  3138. }, {
  3139. "label": "青县",
  3140. "value": "130922"
  3141. }, {
  3142. "label": "东光县",
  3143. "value": "130923"
  3144. }, {
  3145. "label": "海兴县",
  3146. "value": "130924"
  3147. }, {
  3148. "label": "盐山县",
  3149. "value": "130925"
  3150. }, {
  3151. "label": "肃宁县",
  3152. "value": "130926"
  3153. }, {
  3154. "label": "南皮县",
  3155. "value": "130927"
  3156. }, {
  3157. "label": "吴桥县",
  3158. "value": "130928"
  3159. }, {
  3160. "label": "献县",
  3161. "value": "130929"
  3162. }, {
  3163. "label": "孟村回族自治县",
  3164. "value": "130930"
  3165. }, {
  3166. "label": "河北沧州经济开发区",
  3167. "value": "130971"
  3168. }, {
  3169. "label": "沧州高新技术产业开发区",
  3170. "value": "130972"
  3171. }, {
  3172. "label": "沧州渤海新区",
  3173. "value": "130973"
  3174. }, {
  3175. "label": "泊头市",
  3176. "value": "130981"
  3177. }, {
  3178. "label": "任丘市",
  3179. "value": "130982"
  3180. }, {
  3181. "label": "黄骅市",
  3182. "value": "130983"
  3183. }, {
  3184. "label": "河间市",
  3185. "value": "130984"
  3186. }], [{
  3187. "label": "安次区",
  3188. "value": "131002"
  3189. }, {
  3190. "label": "广阳区",
  3191. "value": "131003"
  3192. }, {
  3193. "label": "固安县",
  3194. "value": "131022"
  3195. }, {
  3196. "label": "永清县",
  3197. "value": "131023"
  3198. }, {
  3199. "label": "香河县",
  3200. "value": "131024"
  3201. }, {
  3202. "label": "大城县",
  3203. "value": "131025"
  3204. }, {
  3205. "label": "文安县",
  3206. "value": "131026"
  3207. }, {
  3208. "label": "大厂回族自治县",
  3209. "value": "131028"
  3210. }, {
  3211. "label": "廊坊经济技术开发区",
  3212. "value": "131071"
  3213. }, {
  3214. "label": "霸州市",
  3215. "value": "131081"
  3216. }, {
  3217. "label": "三河市",
  3218. "value": "131082"
  3219. }], [{
  3220. "label": "桃城区",
  3221. "value": "131102"
  3222. }, {
  3223. "label": "冀州区",
  3224. "value": "131103"
  3225. }, {
  3226. "label": "枣强县",
  3227. "value": "131121"
  3228. }, {
  3229. "label": "武邑县",
  3230. "value": "131122"
  3231. }, {
  3232. "label": "武强县",
  3233. "value": "131123"
  3234. }, {
  3235. "label": "饶阳县",
  3236. "value": "131124"
  3237. }, {
  3238. "label": "安平县",
  3239. "value": "131125"
  3240. }, {
  3241. "label": "故城县",
  3242. "value": "131126"
  3243. }, {
  3244. "label": "景县",
  3245. "value": "131127"
  3246. }, {
  3247. "label": "阜城县",
  3248. "value": "131128"
  3249. }, {
  3250. "label": "河北衡水经济开发区",
  3251. "value": "131171"
  3252. }, {
  3253. "label": "衡水滨湖新区",
  3254. "value": "131172"
  3255. }, {
  3256. "label": "深州市",
  3257. "value": "131182"
  3258. }]], [[{
  3259. "label": "小店区",
  3260. "value": "140105"
  3261. }, {
  3262. "label": "迎泽区",
  3263. "value": "140106"
  3264. }, {
  3265. "label": "杏花岭区",
  3266. "value": "140107"
  3267. }, {
  3268. "label": "尖草坪区",
  3269. "value": "140108"
  3270. }, {
  3271. "label": "万柏林区",
  3272. "value": "140109"
  3273. }, {
  3274. "label": "晋源区",
  3275. "value": "140110"
  3276. }, {
  3277. "label": "清徐县",
  3278. "value": "140121"
  3279. }, {
  3280. "label": "阳曲县",
  3281. "value": "140122"
  3282. }, {
  3283. "label": "娄烦县",
  3284. "value": "140123"
  3285. }, {
  3286. "label": "山西转型综合改革示范区",
  3287. "value": "140171"
  3288. }, {
  3289. "label": "古交市",
  3290. "value": "140181"
  3291. }], [{
  3292. "label": "城区",
  3293. "value": "140202"
  3294. }, {
  3295. "label": "矿区",
  3296. "value": "140203"
  3297. }, {
  3298. "label": "南郊区",
  3299. "value": "140211"
  3300. }, {
  3301. "label": "新荣区",
  3302. "value": "140212"
  3303. }, {
  3304. "label": "阳高县",
  3305. "value": "140221"
  3306. }, {
  3307. "label": "天镇县",
  3308. "value": "140222"
  3309. }, {
  3310. "label": "广灵县",
  3311. "value": "140223"
  3312. }, {
  3313. "label": "灵丘县",
  3314. "value": "140224"
  3315. }, {
  3316. "label": "浑源县",
  3317. "value": "140225"
  3318. }, {
  3319. "label": "左云县",
  3320. "value": "140226"
  3321. }, {
  3322. "label": "大同县",
  3323. "value": "140227"
  3324. }, {
  3325. "label": "山西大同经济开发区",
  3326. "value": "140271"
  3327. }], [{
  3328. "label": "城区",
  3329. "value": "140302"
  3330. }, {
  3331. "label": "矿区",
  3332. "value": "140303"
  3333. }, {
  3334. "label": "郊区",
  3335. "value": "140311"
  3336. }, {
  3337. "label": "平定县",
  3338. "value": "140321"
  3339. }, {
  3340. "label": "盂县",
  3341. "value": "140322"
  3342. }, {
  3343. "label": "山西阳泉经济开发区",
  3344. "value": "140371"
  3345. }], [{
  3346. "label": "城区",
  3347. "value": "140402"
  3348. }, {
  3349. "label": "郊区",
  3350. "value": "140411"
  3351. }, {
  3352. "label": "长治县",
  3353. "value": "140421"
  3354. }, {
  3355. "label": "襄垣县",
  3356. "value": "140423"
  3357. }, {
  3358. "label": "屯留县",
  3359. "value": "140424"
  3360. }, {
  3361. "label": "平顺县",
  3362. "value": "140425"
  3363. }, {
  3364. "label": "黎城县",
  3365. "value": "140426"
  3366. }, {
  3367. "label": "壶关县",
  3368. "value": "140427"
  3369. }, {
  3370. "label": "长子县",
  3371. "value": "140428"
  3372. }, {
  3373. "label": "武乡县",
  3374. "value": "140429"
  3375. }, {
  3376. "label": "沁县",
  3377. "value": "140430"
  3378. }, {
  3379. "label": "沁源县",
  3380. "value": "140431"
  3381. }, {
  3382. "label": "山西长治高新技术产业园区",
  3383. "value": "140471"
  3384. }, {
  3385. "label": "潞城市",
  3386. "value": "140481"
  3387. }], [{
  3388. "label": "城区",
  3389. "value": "140502"
  3390. }, {
  3391. "label": "沁水县",
  3392. "value": "140521"
  3393. }, {
  3394. "label": "阳城县",
  3395. "value": "140522"
  3396. }, {
  3397. "label": "陵川县",
  3398. "value": "140524"
  3399. }, {
  3400. "label": "泽州县",
  3401. "value": "140525"
  3402. }, {
  3403. "label": "高平市",
  3404. "value": "140581"
  3405. }], [{
  3406. "label": "朔城区",
  3407. "value": "140602"
  3408. }, {
  3409. "label": "平鲁区",
  3410. "value": "140603"
  3411. }, {
  3412. "label": "山阴县",
  3413. "value": "140621"
  3414. }, {
  3415. "label": "应县",
  3416. "value": "140622"
  3417. }, {
  3418. "label": "右玉县",
  3419. "value": "140623"
  3420. }, {
  3421. "label": "怀仁县",
  3422. "value": "140624"
  3423. }, {
  3424. "label": "山西朔州经济开发区",
  3425. "value": "140671"
  3426. }], [{
  3427. "label": "榆次区",
  3428. "value": "140702"
  3429. }, {
  3430. "label": "榆社县",
  3431. "value": "140721"
  3432. }, {
  3433. "label": "左权县",
  3434. "value": "140722"
  3435. }, {
  3436. "label": "和顺县",
  3437. "value": "140723"
  3438. }, {
  3439. "label": "昔阳县",
  3440. "value": "140724"
  3441. }, {
  3442. "label": "寿阳县",
  3443. "value": "140725"
  3444. }, {
  3445. "label": "太谷县",
  3446. "value": "140726"
  3447. }, {
  3448. "label": "祁县",
  3449. "value": "140727"
  3450. }, {
  3451. "label": "平遥县",
  3452. "value": "140728"
  3453. }, {
  3454. "label": "灵石县",
  3455. "value": "140729"
  3456. }, {
  3457. "label": "介休市",
  3458. "value": "140781"
  3459. }], [{
  3460. "label": "盐湖区",
  3461. "value": "140802"
  3462. }, {
  3463. "label": "临猗县",
  3464. "value": "140821"
  3465. }, {
  3466. "label": "万荣县",
  3467. "value": "140822"
  3468. }, {
  3469. "label": "闻喜县",
  3470. "value": "140823"
  3471. }, {
  3472. "label": "稷山县",
  3473. "value": "140824"
  3474. }, {
  3475. "label": "新绛县",
  3476. "value": "140825"
  3477. }, {
  3478. "label": "绛县",
  3479. "value": "140826"
  3480. }, {
  3481. "label": "垣曲县",
  3482. "value": "140827"
  3483. }, {
  3484. "label": "夏县",
  3485. "value": "140828"
  3486. }, {
  3487. "label": "平陆县",
  3488. "value": "140829"
  3489. }, {
  3490. "label": "芮城县",
  3491. "value": "140830"
  3492. }, {
  3493. "label": "永济市",
  3494. "value": "140881"
  3495. }, {
  3496. "label": "河津市",
  3497. "value": "140882"
  3498. }], [{
  3499. "label": "忻府区",
  3500. "value": "140902"
  3501. }, {
  3502. "label": "定襄县",
  3503. "value": "140921"
  3504. }, {
  3505. "label": "五台县",
  3506. "value": "140922"
  3507. }, {
  3508. "label": "代县",
  3509. "value": "140923"
  3510. }, {
  3511. "label": "繁峙县",
  3512. "value": "140924"
  3513. }, {
  3514. "label": "宁武县",
  3515. "value": "140925"
  3516. }, {
  3517. "label": "静乐县",
  3518. "value": "140926"
  3519. }, {
  3520. "label": "神池县",
  3521. "value": "140927"
  3522. }, {
  3523. "label": "五寨县",
  3524. "value": "140928"
  3525. }, {
  3526. "label": "岢岚县",
  3527. "value": "140929"
  3528. }, {
  3529. "label": "河曲县",
  3530. "value": "140930"
  3531. }, {
  3532. "label": "保德县",
  3533. "value": "140931"
  3534. }, {
  3535. "label": "偏关县",
  3536. "value": "140932"
  3537. }, {
  3538. "label": "五台山风景名胜区",
  3539. "value": "140971"
  3540. }, {
  3541. "label": "原平市",
  3542. "value": "140981"
  3543. }], [{
  3544. "label": "尧都区",
  3545. "value": "141002"
  3546. }, {
  3547. "label": "曲沃县",
  3548. "value": "141021"
  3549. }, {
  3550. "label": "翼城县",
  3551. "value": "141022"
  3552. }, {
  3553. "label": "襄汾县",
  3554. "value": "141023"
  3555. }, {
  3556. "label": "洪洞县",
  3557. "value": "141024"
  3558. }, {
  3559. "label": "古县",
  3560. "value": "141025"
  3561. }, {
  3562. "label": "安泽县",
  3563. "value": "141026"
  3564. }, {
  3565. "label": "浮山县",
  3566. "value": "141027"
  3567. }, {
  3568. "label": "吉县",
  3569. "value": "141028"
  3570. }, {
  3571. "label": "乡宁县",
  3572. "value": "141029"
  3573. }, {
  3574. "label": "大宁县",
  3575. "value": "141030"
  3576. }, {
  3577. "label": "隰县",
  3578. "value": "141031"
  3579. }, {
  3580. "label": "永和县",
  3581. "value": "141032"
  3582. }, {
  3583. "label": "蒲县",
  3584. "value": "141033"
  3585. }, {
  3586. "label": "汾西县",
  3587. "value": "141034"
  3588. }, {
  3589. "label": "侯马市",
  3590. "value": "141081"
  3591. }, {
  3592. "label": "霍州市",
  3593. "value": "141082"
  3594. }], [{
  3595. "label": "离石区",
  3596. "value": "141102"
  3597. }, {
  3598. "label": "文水县",
  3599. "value": "141121"
  3600. }, {
  3601. "label": "交城县",
  3602. "value": "141122"
  3603. }, {
  3604. "label": "兴县",
  3605. "value": "141123"
  3606. }, {
  3607. "label": "临县",
  3608. "value": "141124"
  3609. }, {
  3610. "label": "柳林县",
  3611. "value": "141125"
  3612. }, {
  3613. "label": "石楼县",
  3614. "value": "141126"
  3615. }, {
  3616. "label": "岚县",
  3617. "value": "141127"
  3618. }, {
  3619. "label": "方山县",
  3620. "value": "141128"
  3621. }, {
  3622. "label": "中阳县",
  3623. "value": "141129"
  3624. }, {
  3625. "label": "交口县",
  3626. "value": "141130"
  3627. }, {
  3628. "label": "孝义市",
  3629. "value": "141181"
  3630. }, {
  3631. "label": "汾阳市",
  3632. "value": "141182"
  3633. }]], [[{
  3634. "label": "新城区",
  3635. "value": "150102"
  3636. }, {
  3637. "label": "回民区",
  3638. "value": "150103"
  3639. }, {
  3640. "label": "玉泉区",
  3641. "value": "150104"
  3642. }, {
  3643. "label": "赛罕区",
  3644. "value": "150105"
  3645. }, {
  3646. "label": "土默特左旗",
  3647. "value": "150121"
  3648. }, {
  3649. "label": "托克托县",
  3650. "value": "150122"
  3651. }, {
  3652. "label": "和林格尔县",
  3653. "value": "150123"
  3654. }, {
  3655. "label": "清水河县",
  3656. "value": "150124"
  3657. }, {
  3658. "label": "武川县",
  3659. "value": "150125"
  3660. }, {
  3661. "label": "呼和浩特金海工业园区",
  3662. "value": "150171"
  3663. }, {
  3664. "label": "呼和浩特经济技术开发区",
  3665. "value": "150172"
  3666. }], [{
  3667. "label": "东河区",
  3668. "value": "150202"
  3669. }, {
  3670. "label": "昆都仑区",
  3671. "value": "150203"
  3672. }, {
  3673. "label": "青山区",
  3674. "value": "150204"
  3675. }, {
  3676. "label": "石拐区",
  3677. "value": "150205"
  3678. }, {
  3679. "label": "白云鄂博矿区",
  3680. "value": "150206"
  3681. }, {
  3682. "label": "九原区",
  3683. "value": "150207"
  3684. }, {
  3685. "label": "土默特右旗",
  3686. "value": "150221"
  3687. }, {
  3688. "label": "固阳县",
  3689. "value": "150222"
  3690. }, {
  3691. "label": "达尔罕茂明安联合旗",
  3692. "value": "150223"
  3693. }, {
  3694. "label": "包头稀土高新技术产业开发区",
  3695. "value": "150271"
  3696. }], [{
  3697. "label": "海勃湾区",
  3698. "value": "150302"
  3699. }, {
  3700. "label": "海南区",
  3701. "value": "150303"
  3702. }, {
  3703. "label": "乌达区",
  3704. "value": "150304"
  3705. }], [{
  3706. "label": "红山区",
  3707. "value": "150402"
  3708. }, {
  3709. "label": "元宝山区",
  3710. "value": "150403"
  3711. }, {
  3712. "label": "松山区",
  3713. "value": "150404"
  3714. }, {
  3715. "label": "阿鲁科尔沁旗",
  3716. "value": "150421"
  3717. }, {
  3718. "label": "巴林左旗",
  3719. "value": "150422"
  3720. }, {
  3721. "label": "巴林右旗",
  3722. "value": "150423"
  3723. }, {
  3724. "label": "林西县",
  3725. "value": "150424"
  3726. }, {
  3727. "label": "克什克腾旗",
  3728. "value": "150425"
  3729. }, {
  3730. "label": "翁牛特旗",
  3731. "value": "150426"
  3732. }, {
  3733. "label": "喀喇沁旗",
  3734. "value": "150428"
  3735. }, {
  3736. "label": "宁城县",
  3737. "value": "150429"
  3738. }, {
  3739. "label": "敖汉旗",
  3740. "value": "150430"
  3741. }], [{
  3742. "label": "科尔沁区",
  3743. "value": "150502"
  3744. }, {
  3745. "label": "科尔沁左翼中旗",
  3746. "value": "150521"
  3747. }, {
  3748. "label": "科尔沁左翼后旗",
  3749. "value": "150522"
  3750. }, {
  3751. "label": "开鲁县",
  3752. "value": "150523"
  3753. }, {
  3754. "label": "库伦旗",
  3755. "value": "150524"
  3756. }, {
  3757. "label": "奈曼旗",
  3758. "value": "150525"
  3759. }, {
  3760. "label": "扎鲁特旗",
  3761. "value": "150526"
  3762. }, {
  3763. "label": "通辽经济技术开发区",
  3764. "value": "150571"
  3765. }, {
  3766. "label": "霍林郭勒市",
  3767. "value": "150581"
  3768. }], [{
  3769. "label": "东胜区",
  3770. "value": "150602"
  3771. }, {
  3772. "label": "康巴什区",
  3773. "value": "150603"
  3774. }, {
  3775. "label": "达拉特旗",
  3776. "value": "150621"
  3777. }, {
  3778. "label": "准格尔旗",
  3779. "value": "150622"
  3780. }, {
  3781. "label": "鄂托克前旗",
  3782. "value": "150623"
  3783. }, {
  3784. "label": "鄂托克旗",
  3785. "value": "150624"
  3786. }, {
  3787. "label": "杭锦旗",
  3788. "value": "150625"
  3789. }, {
  3790. "label": "乌审旗",
  3791. "value": "150626"
  3792. }, {
  3793. "label": "伊金霍洛旗",
  3794. "value": "150627"
  3795. }], [{
  3796. "label": "海拉尔区",
  3797. "value": "150702"
  3798. }, {
  3799. "label": "扎赉诺尔区",
  3800. "value": "150703"
  3801. }, {
  3802. "label": "阿荣旗",
  3803. "value": "150721"
  3804. }, {
  3805. "label": "莫力达瓦达斡尔族自治旗",
  3806. "value": "150722"
  3807. }, {
  3808. "label": "鄂伦春自治旗",
  3809. "value": "150723"
  3810. }, {
  3811. "label": "鄂温克族自治旗",
  3812. "value": "150724"
  3813. }, {
  3814. "label": "陈巴尔虎旗",
  3815. "value": "150725"
  3816. }, {
  3817. "label": "新巴尔虎左旗",
  3818. "value": "150726"
  3819. }, {
  3820. "label": "新巴尔虎右旗",
  3821. "value": "150727"
  3822. }, {
  3823. "label": "满洲里市",
  3824. "value": "150781"
  3825. }, {
  3826. "label": "牙克石市",
  3827. "value": "150782"
  3828. }, {
  3829. "label": "扎兰屯市",
  3830. "value": "150783"
  3831. }, {
  3832. "label": "额尔古纳市",
  3833. "value": "150784"
  3834. }, {
  3835. "label": "根河市",
  3836. "value": "150785"
  3837. }], [{
  3838. "label": "临河区",
  3839. "value": "150802"
  3840. }, {
  3841. "label": "五原县",
  3842. "value": "150821"
  3843. }, {
  3844. "label": "磴口县",
  3845. "value": "150822"
  3846. }, {
  3847. "label": "乌拉特前旗",
  3848. "value": "150823"
  3849. }, {
  3850. "label": "乌拉特中旗",
  3851. "value": "150824"
  3852. }, {
  3853. "label": "乌拉特后旗",
  3854. "value": "150825"
  3855. }, {
  3856. "label": "杭锦后旗",
  3857. "value": "150826"
  3858. }], [{
  3859. "label": "集宁区",
  3860. "value": "150902"
  3861. }, {
  3862. "label": "卓资县",
  3863. "value": "150921"
  3864. }, {
  3865. "label": "化德县",
  3866. "value": "150922"
  3867. }, {
  3868. "label": "商都县",
  3869. "value": "150923"
  3870. }, {
  3871. "label": "兴和县",
  3872. "value": "150924"
  3873. }, {
  3874. "label": "凉城县",
  3875. "value": "150925"
  3876. }, {
  3877. "label": "察哈尔右翼前旗",
  3878. "value": "150926"
  3879. }, {
  3880. "label": "察哈尔右翼中旗",
  3881. "value": "150927"
  3882. }, {
  3883. "label": "察哈尔右翼后旗",
  3884. "value": "150928"
  3885. }, {
  3886. "label": "四子王旗",
  3887. "value": "150929"
  3888. }, {
  3889. "label": "丰镇市",
  3890. "value": "150981"
  3891. }], [{
  3892. "label": "乌兰浩特市",
  3893. "value": "152201"
  3894. }, {
  3895. "label": "阿尔山市",
  3896. "value": "152202"
  3897. }, {
  3898. "label": "科尔沁右翼前旗",
  3899. "value": "152221"
  3900. }, {
  3901. "label": "科尔沁右翼中旗",
  3902. "value": "152222"
  3903. }, {
  3904. "label": "扎赉特旗",
  3905. "value": "152223"
  3906. }, {
  3907. "label": "突泉县",
  3908. "value": "152224"
  3909. }], [{
  3910. "label": "二连浩特市",
  3911. "value": "152501"
  3912. }, {
  3913. "label": "锡林浩特市",
  3914. "value": "152502"
  3915. }, {
  3916. "label": "阿巴嘎旗",
  3917. "value": "152522"
  3918. }, {
  3919. "label": "苏尼特左旗",
  3920. "value": "152523"
  3921. }, {
  3922. "label": "苏尼特右旗",
  3923. "value": "152524"
  3924. }, {
  3925. "label": "东乌珠穆沁旗",
  3926. "value": "152525"
  3927. }, {
  3928. "label": "西乌珠穆沁旗",
  3929. "value": "152526"
  3930. }, {
  3931. "label": "太仆寺旗",
  3932. "value": "152527"
  3933. }, {
  3934. "label": "镶黄旗",
  3935. "value": "152528"
  3936. }, {
  3937. "label": "正镶白旗",
  3938. "value": "152529"
  3939. }, {
  3940. "label": "正蓝旗",
  3941. "value": "152530"
  3942. }, {
  3943. "label": "多伦县",
  3944. "value": "152531"
  3945. }, {
  3946. "label": "乌拉盖管委会",
  3947. "value": "152571"
  3948. }], [{
  3949. "label": "阿拉善左旗",
  3950. "value": "152921"
  3951. }, {
  3952. "label": "阿拉善右旗",
  3953. "value": "152922"
  3954. }, {
  3955. "label": "额济纳旗",
  3956. "value": "152923"
  3957. }, {
  3958. "label": "内蒙古阿拉善经济开发区",
  3959. "value": "152971"
  3960. }]], [[{
  3961. "label": "和平区",
  3962. "value": "210102"
  3963. }, {
  3964. "label": "沈河区",
  3965. "value": "210103"
  3966. }, {
  3967. "label": "大东区",
  3968. "value": "210104"
  3969. }, {
  3970. "label": "皇姑区",
  3971. "value": "210105"
  3972. }, {
  3973. "label": "铁西区",
  3974. "value": "210106"
  3975. }, {
  3976. "label": "苏家屯区",
  3977. "value": "210111"
  3978. }, {
  3979. "label": "浑南区",
  3980. "value": "210112"
  3981. }, {
  3982. "label": "沈北新区",
  3983. "value": "210113"
  3984. }, {
  3985. "label": "于洪区",
  3986. "value": "210114"
  3987. }, {
  3988. "label": "辽中区",
  3989. "value": "210115"
  3990. }, {
  3991. "label": "康平县",
  3992. "value": "210123"
  3993. }, {
  3994. "label": "法库县",
  3995. "value": "210124"
  3996. }, {
  3997. "label": "新民市",
  3998. "value": "210181"
  3999. }], [{
  4000. "label": "中山区",
  4001. "value": "210202"
  4002. }, {
  4003. "label": "西岗区",
  4004. "value": "210203"
  4005. }, {
  4006. "label": "沙河口区",
  4007. "value": "210204"
  4008. }, {
  4009. "label": "甘井子区",
  4010. "value": "210211"
  4011. }, {
  4012. "label": "旅顺口区",
  4013. "value": "210212"
  4014. }, {
  4015. "label": "金州区",
  4016. "value": "210213"
  4017. }, {
  4018. "label": "普兰店区",
  4019. "value": "210214"
  4020. }, {
  4021. "label": "长海县",
  4022. "value": "210224"
  4023. }, {
  4024. "label": "瓦房店市",
  4025. "value": "210281"
  4026. }, {
  4027. "label": "庄河市",
  4028. "value": "210283"
  4029. }], [{
  4030. "label": "铁东区",
  4031. "value": "210302"
  4032. }, {
  4033. "label": "铁西区",
  4034. "value": "210303"
  4035. }, {
  4036. "label": "立山区",
  4037. "value": "210304"
  4038. }, {
  4039. "label": "千山区",
  4040. "value": "210311"
  4041. }, {
  4042. "label": "台安县",
  4043. "value": "210321"
  4044. }, {
  4045. "label": "岫岩满族自治县",
  4046. "value": "210323"
  4047. }, {
  4048. "label": "海城市",
  4049. "value": "210381"
  4050. }], [{
  4051. "label": "新抚区",
  4052. "value": "210402"
  4053. }, {
  4054. "label": "东洲区",
  4055. "value": "210403"
  4056. }, {
  4057. "label": "望花区",
  4058. "value": "210404"
  4059. }, {
  4060. "label": "顺城区",
  4061. "value": "210411"
  4062. }, {
  4063. "label": "抚顺县",
  4064. "value": "210421"
  4065. }, {
  4066. "label": "新宾满族自治县",
  4067. "value": "210422"
  4068. }, {
  4069. "label": "清原满族自治县",
  4070. "value": "210423"
  4071. }], [{
  4072. "label": "平山区",
  4073. "value": "210502"
  4074. }, {
  4075. "label": "溪湖区",
  4076. "value": "210503"
  4077. }, {
  4078. "label": "明山区",
  4079. "value": "210504"
  4080. }, {
  4081. "label": "南芬区",
  4082. "value": "210505"
  4083. }, {
  4084. "label": "本溪满族自治县",
  4085. "value": "210521"
  4086. }, {
  4087. "label": "桓仁满族自治县",
  4088. "value": "210522"
  4089. }], [{
  4090. "label": "元宝区",
  4091. "value": "210602"
  4092. }, {
  4093. "label": "振兴区",
  4094. "value": "210603"
  4095. }, {
  4096. "label": "振安区",
  4097. "value": "210604"
  4098. }, {
  4099. "label": "宽甸满族自治县",
  4100. "value": "210624"
  4101. }, {
  4102. "label": "东港市",
  4103. "value": "210681"
  4104. }, {
  4105. "label": "凤城市",
  4106. "value": "210682"
  4107. }], [{
  4108. "label": "古塔区",
  4109. "value": "210702"
  4110. }, {
  4111. "label": "凌河区",
  4112. "value": "210703"
  4113. }, {
  4114. "label": "太和区",
  4115. "value": "210711"
  4116. }, {
  4117. "label": "黑山县",
  4118. "value": "210726"
  4119. }, {
  4120. "label": "义县",
  4121. "value": "210727"
  4122. }, {
  4123. "label": "凌海市",
  4124. "value": "210781"
  4125. }, {
  4126. "label": "北镇市",
  4127. "value": "210782"
  4128. }], [{
  4129. "label": "站前区",
  4130. "value": "210802"
  4131. }, {
  4132. "label": "西市区",
  4133. "value": "210803"
  4134. }, {
  4135. "label": "鲅鱼圈区",
  4136. "value": "210804"
  4137. }, {
  4138. "label": "老边区",
  4139. "value": "210811"
  4140. }, {
  4141. "label": "盖州市",
  4142. "value": "210881"
  4143. }, {
  4144. "label": "大石桥市",
  4145. "value": "210882"
  4146. }], [{
  4147. "label": "海州区",
  4148. "value": "210902"
  4149. }, {
  4150. "label": "新邱区",
  4151. "value": "210903"
  4152. }, {
  4153. "label": "太平区",
  4154. "value": "210904"
  4155. }, {
  4156. "label": "清河门区",
  4157. "value": "210905"
  4158. }, {
  4159. "label": "细河区",
  4160. "value": "210911"
  4161. }, {
  4162. "label": "阜新蒙古族自治县",
  4163. "value": "210921"
  4164. }, {
  4165. "label": "彰武县",
  4166. "value": "210922"
  4167. }], [{
  4168. "label": "白塔区",
  4169. "value": "211002"
  4170. }, {
  4171. "label": "文圣区",
  4172. "value": "211003"
  4173. }, {
  4174. "label": "宏伟区",
  4175. "value": "211004"
  4176. }, {
  4177. "label": "弓长岭区",
  4178. "value": "211005"
  4179. }, {
  4180. "label": "太子河区",
  4181. "value": "211011"
  4182. }, {
  4183. "label": "辽阳县",
  4184. "value": "211021"
  4185. }, {
  4186. "label": "灯塔市",
  4187. "value": "211081"
  4188. }], [{
  4189. "label": "双台子区",
  4190. "value": "211102"
  4191. }, {
  4192. "label": "兴隆台区",
  4193. "value": "211103"
  4194. }, {
  4195. "label": "大洼区",
  4196. "value": "211104"
  4197. }, {
  4198. "label": "盘山县",
  4199. "value": "211122"
  4200. }], [{
  4201. "label": "银州区",
  4202. "value": "211202"
  4203. }, {
  4204. "label": "清河区",
  4205. "value": "211204"
  4206. }, {
  4207. "label": "铁岭县",
  4208. "value": "211221"
  4209. }, {
  4210. "label": "西丰县",
  4211. "value": "211223"
  4212. }, {
  4213. "label": "昌图县",
  4214. "value": "211224"
  4215. }, {
  4216. "label": "调兵山市",
  4217. "value": "211281"
  4218. }, {
  4219. "label": "开原市",
  4220. "value": "211282"
  4221. }], [{
  4222. "label": "双塔区",
  4223. "value": "211302"
  4224. }, {
  4225. "label": "龙城区",
  4226. "value": "211303"
  4227. }, {
  4228. "label": "朝阳县",
  4229. "value": "211321"
  4230. }, {
  4231. "label": "建平县",
  4232. "value": "211322"
  4233. }, {
  4234. "label": "喀喇沁左翼蒙古族自治县",
  4235. "value": "211324"
  4236. }, {
  4237. "label": "北票市",
  4238. "value": "211381"
  4239. }, {
  4240. "label": "凌源市",
  4241. "value": "211382"
  4242. }], [{
  4243. "label": "连山区",
  4244. "value": "211402"
  4245. }, {
  4246. "label": "龙港区",
  4247. "value": "211403"
  4248. }, {
  4249. "label": "南票区",
  4250. "value": "211404"
  4251. }, {
  4252. "label": "绥中县",
  4253. "value": "211421"
  4254. }, {
  4255. "label": "建昌县",
  4256. "value": "211422"
  4257. }, {
  4258. "label": "兴城市",
  4259. "value": "211481"
  4260. }]], [[{
  4261. "label": "南关区",
  4262. "value": "220102"
  4263. }, {
  4264. "label": "宽城区",
  4265. "value": "220103"
  4266. }, {
  4267. "label": "朝阳区",
  4268. "value": "220104"
  4269. }, {
  4270. "label": "二道区",
  4271. "value": "220105"
  4272. }, {
  4273. "label": "绿园区",
  4274. "value": "220106"
  4275. }, {
  4276. "label": "双阳区",
  4277. "value": "220112"
  4278. }, {
  4279. "label": "九台区",
  4280. "value": "220113"
  4281. }, {
  4282. "label": "农安县",
  4283. "value": "220122"
  4284. }, {
  4285. "label": "长春经济技术开发区",
  4286. "value": "220171"
  4287. }, {
  4288. "label": "长春净月高新技术产业开发区",
  4289. "value": "220172"
  4290. }, {
  4291. "label": "长春高新技术产业开发区",
  4292. "value": "220173"
  4293. }, {
  4294. "label": "长春汽车经济技术开发区",
  4295. "value": "220174"
  4296. }, {
  4297. "label": "榆树市",
  4298. "value": "220182"
  4299. }, {
  4300. "label": "德惠市",
  4301. "value": "220183"
  4302. }], [{
  4303. "label": "昌邑区",
  4304. "value": "220202"
  4305. }, {
  4306. "label": "龙潭区",
  4307. "value": "220203"
  4308. }, {
  4309. "label": "船营区",
  4310. "value": "220204"
  4311. }, {
  4312. "label": "丰满区",
  4313. "value": "220211"
  4314. }, {
  4315. "label": "永吉县",
  4316. "value": "220221"
  4317. }, {
  4318. "label": "吉林经济开发区",
  4319. "value": "220271"
  4320. }, {
  4321. "label": "吉林高新技术产业开发区",
  4322. "value": "220272"
  4323. }, {
  4324. "label": "吉林中国新加坡食品区",
  4325. "value": "220273"
  4326. }, {
  4327. "label": "蛟河市",
  4328. "value": "220281"
  4329. }, {
  4330. "label": "桦甸市",
  4331. "value": "220282"
  4332. }, {
  4333. "label": "舒兰市",
  4334. "value": "220283"
  4335. }, {
  4336. "label": "磐石市",
  4337. "value": "220284"
  4338. }], [{
  4339. "label": "铁西区",
  4340. "value": "220302"
  4341. }, {
  4342. "label": "铁东区",
  4343. "value": "220303"
  4344. }, {
  4345. "label": "梨树县",
  4346. "value": "220322"
  4347. }, {
  4348. "label": "伊通满族自治县",
  4349. "value": "220323"
  4350. }, {
  4351. "label": "公主岭市",
  4352. "value": "220381"
  4353. }, {
  4354. "label": "双辽市",
  4355. "value": "220382"
  4356. }], [{
  4357. "label": "龙山区",
  4358. "value": "220402"
  4359. }, {
  4360. "label": "西安区",
  4361. "value": "220403"
  4362. }, {
  4363. "label": "东丰县",
  4364. "value": "220421"
  4365. }, {
  4366. "label": "东辽县",
  4367. "value": "220422"
  4368. }], [{
  4369. "label": "东昌区",
  4370. "value": "220502"
  4371. }, {
  4372. "label": "二道江区",
  4373. "value": "220503"
  4374. }, {
  4375. "label": "通化县",
  4376. "value": "220521"
  4377. }, {
  4378. "label": "辉南县",
  4379. "value": "220523"
  4380. }, {
  4381. "label": "柳河县",
  4382. "value": "220524"
  4383. }, {
  4384. "label": "梅河口市",
  4385. "value": "220581"
  4386. }, {
  4387. "label": "集安市",
  4388. "value": "220582"
  4389. }], [{
  4390. "label": "浑江区",
  4391. "value": "220602"
  4392. }, {
  4393. "label": "江源区",
  4394. "value": "220605"
  4395. }, {
  4396. "label": "抚松县",
  4397. "value": "220621"
  4398. }, {
  4399. "label": "靖宇县",
  4400. "value": "220622"
  4401. }, {
  4402. "label": "长白朝鲜族自治县",
  4403. "value": "220623"
  4404. }, {
  4405. "label": "临江市",
  4406. "value": "220681"
  4407. }], [{
  4408. "label": "宁江区",
  4409. "value": "220702"
  4410. }, {
  4411. "label": "前郭尔罗斯蒙古族自治县",
  4412. "value": "220721"
  4413. }, {
  4414. "label": "长岭县",
  4415. "value": "220722"
  4416. }, {
  4417. "label": "乾安县",
  4418. "value": "220723"
  4419. }, {
  4420. "label": "吉林松原经济开发区",
  4421. "value": "220771"
  4422. }, {
  4423. "label": "扶余市",
  4424. "value": "220781"
  4425. }], [{
  4426. "label": "洮北区",
  4427. "value": "220802"
  4428. }, {
  4429. "label": "镇赉县",
  4430. "value": "220821"
  4431. }, {
  4432. "label": "通榆县",
  4433. "value": "220822"
  4434. }, {
  4435. "label": "吉林白城经济开发区",
  4436. "value": "220871"
  4437. }, {
  4438. "label": "洮南市",
  4439. "value": "220881"
  4440. }, {
  4441. "label": "大安市",
  4442. "value": "220882"
  4443. }], [{
  4444. "label": "延吉市",
  4445. "value": "222401"
  4446. }, {
  4447. "label": "图们市",
  4448. "value": "222402"
  4449. }, {
  4450. "label": "敦化市",
  4451. "value": "222403"
  4452. }, {
  4453. "label": "珲春市",
  4454. "value": "222404"
  4455. }, {
  4456. "label": "龙井市",
  4457. "value": "222405"
  4458. }, {
  4459. "label": "和龙市",
  4460. "value": "222406"
  4461. }, {
  4462. "label": "汪清县",
  4463. "value": "222424"
  4464. }, {
  4465. "label": "安图县",
  4466. "value": "222426"
  4467. }]], [[{
  4468. "label": "道里区",
  4469. "value": "230102"
  4470. }, {
  4471. "label": "南岗区",
  4472. "value": "230103"
  4473. }, {
  4474. "label": "道外区",
  4475. "value": "230104"
  4476. }, {
  4477. "label": "平房区",
  4478. "value": "230108"
  4479. }, {
  4480. "label": "松北区",
  4481. "value": "230109"
  4482. }, {
  4483. "label": "香坊区",
  4484. "value": "230110"
  4485. }, {
  4486. "label": "呼兰区",
  4487. "value": "230111"
  4488. }, {
  4489. "label": "阿城区",
  4490. "value": "230112"
  4491. }, {
  4492. "label": "双城区",
  4493. "value": "230113"
  4494. }, {
  4495. "label": "依兰县",
  4496. "value": "230123"
  4497. }, {
  4498. "label": "方正县",
  4499. "value": "230124"
  4500. }, {
  4501. "label": "宾县",
  4502. "value": "230125"
  4503. }, {
  4504. "label": "巴彦县",
  4505. "value": "230126"
  4506. }, {
  4507. "label": "木兰县",
  4508. "value": "230127"
  4509. }, {
  4510. "label": "通河县",
  4511. "value": "230128"
  4512. }, {
  4513. "label": "延寿县",
  4514. "value": "230129"
  4515. }, {
  4516. "label": "尚志市",
  4517. "value": "230183"
  4518. }, {
  4519. "label": "五常市",
  4520. "value": "230184"
  4521. }], [{
  4522. "label": "龙沙区",
  4523. "value": "230202"
  4524. }, {
  4525. "label": "建华区",
  4526. "value": "230203"
  4527. }, {
  4528. "label": "铁锋区",
  4529. "value": "230204"
  4530. }, {
  4531. "label": "昂昂溪区",
  4532. "value": "230205"
  4533. }, {
  4534. "label": "富拉尔基区",
  4535. "value": "230206"
  4536. }, {
  4537. "label": "碾子山区",
  4538. "value": "230207"
  4539. }, {
  4540. "label": "梅里斯达斡尔族区",
  4541. "value": "230208"
  4542. }, {
  4543. "label": "龙江县",
  4544. "value": "230221"
  4545. }, {
  4546. "label": "依安县",
  4547. "value": "230223"
  4548. }, {
  4549. "label": "泰来县",
  4550. "value": "230224"
  4551. }, {
  4552. "label": "甘南县",
  4553. "value": "230225"
  4554. }, {
  4555. "label": "富裕县",
  4556. "value": "230227"
  4557. }, {
  4558. "label": "克山县",
  4559. "value": "230229"
  4560. }, {
  4561. "label": "克东县",
  4562. "value": "230230"
  4563. }, {
  4564. "label": "拜泉县",
  4565. "value": "230231"
  4566. }, {
  4567. "label": "讷河市",
  4568. "value": "230281"
  4569. }], [{
  4570. "label": "鸡冠区",
  4571. "value": "230302"
  4572. }, {
  4573. "label": "恒山区",
  4574. "value": "230303"
  4575. }, {
  4576. "label": "滴道区",
  4577. "value": "230304"
  4578. }, {
  4579. "label": "梨树区",
  4580. "value": "230305"
  4581. }, {
  4582. "label": "城子河区",
  4583. "value": "230306"
  4584. }, {
  4585. "label": "麻山区",
  4586. "value": "230307"
  4587. }, {
  4588. "label": "鸡东县",
  4589. "value": "230321"
  4590. }, {
  4591. "label": "虎林市",
  4592. "value": "230381"
  4593. }, {
  4594. "label": "密山市",
  4595. "value": "230382"
  4596. }], [{
  4597. "label": "向阳区",
  4598. "value": "230402"
  4599. }, {
  4600. "label": "工农区",
  4601. "value": "230403"
  4602. }, {
  4603. "label": "南山区",
  4604. "value": "230404"
  4605. }, {
  4606. "label": "兴安区",
  4607. "value": "230405"
  4608. }, {
  4609. "label": "东山区",
  4610. "value": "230406"
  4611. }, {
  4612. "label": "兴山区",
  4613. "value": "230407"
  4614. }, {
  4615. "label": "萝北县",
  4616. "value": "230421"
  4617. }, {
  4618. "label": "绥滨县",
  4619. "value": "230422"
  4620. }], [{
  4621. "label": "尖山区",
  4622. "value": "230502"
  4623. }, {
  4624. "label": "岭东区",
  4625. "value": "230503"
  4626. }, {
  4627. "label": "四方台区",
  4628. "value": "230505"
  4629. }, {
  4630. "label": "宝山区",
  4631. "value": "230506"
  4632. }, {
  4633. "label": "集贤县",
  4634. "value": "230521"
  4635. }, {
  4636. "label": "友谊县",
  4637. "value": "230522"
  4638. }, {
  4639. "label": "宝清县",
  4640. "value": "230523"
  4641. }, {
  4642. "label": "饶河县",
  4643. "value": "230524"
  4644. }], [{
  4645. "label": "萨尔图区",
  4646. "value": "230602"
  4647. }, {
  4648. "label": "龙凤区",
  4649. "value": "230603"
  4650. }, {
  4651. "label": "让胡路区",
  4652. "value": "230604"
  4653. }, {
  4654. "label": "红岗区",
  4655. "value": "230605"
  4656. }, {
  4657. "label": "大同区",
  4658. "value": "230606"
  4659. }, {
  4660. "label": "肇州县",
  4661. "value": "230621"
  4662. }, {
  4663. "label": "肇源县",
  4664. "value": "230622"
  4665. }, {
  4666. "label": "林甸县",
  4667. "value": "230623"
  4668. }, {
  4669. "label": "杜尔伯特蒙古族自治县",
  4670. "value": "230624"
  4671. }, {
  4672. "label": "大庆高新技术产业开发区",
  4673. "value": "230671"
  4674. }], [{
  4675. "label": "伊春区",
  4676. "value": "230702"
  4677. }, {
  4678. "label": "南岔区",
  4679. "value": "230703"
  4680. }, {
  4681. "label": "友好区",
  4682. "value": "230704"
  4683. }, {
  4684. "label": "西林区",
  4685. "value": "230705"
  4686. }, {
  4687. "label": "翠峦区",
  4688. "value": "230706"
  4689. }, {
  4690. "label": "新青区",
  4691. "value": "230707"
  4692. }, {
  4693. "label": "美溪区",
  4694. "value": "230708"
  4695. }, {
  4696. "label": "金山屯区",
  4697. "value": "230709"
  4698. }, {
  4699. "label": "五营区",
  4700. "value": "230710"
  4701. }, {
  4702. "label": "乌马河区",
  4703. "value": "230711"
  4704. }, {
  4705. "label": "汤旺河区",
  4706. "value": "230712"
  4707. }, {
  4708. "label": "带岭区",
  4709. "value": "230713"
  4710. }, {
  4711. "label": "乌伊岭区",
  4712. "value": "230714"
  4713. }, {
  4714. "label": "红星区",
  4715. "value": "230715"
  4716. }, {
  4717. "label": "上甘岭区",
  4718. "value": "230716"
  4719. }, {
  4720. "label": "嘉荫县",
  4721. "value": "230722"
  4722. }, {
  4723. "label": "铁力市",
  4724. "value": "230781"
  4725. }], [{
  4726. "label": "向阳区",
  4727. "value": "230803"
  4728. }, {
  4729. "label": "前进区",
  4730. "value": "230804"
  4731. }, {
  4732. "label": "东风区",
  4733. "value": "230805"
  4734. }, {
  4735. "label": "郊区",
  4736. "value": "230811"
  4737. }, {
  4738. "label": "桦南县",
  4739. "value": "230822"
  4740. }, {
  4741. "label": "桦川县",
  4742. "value": "230826"
  4743. }, {
  4744. "label": "汤原县",
  4745. "value": "230828"
  4746. }, {
  4747. "label": "同江市",
  4748. "value": "230881"
  4749. }, {
  4750. "label": "富锦市",
  4751. "value": "230882"
  4752. }, {
  4753. "label": "抚远市",
  4754. "value": "230883"
  4755. }], [{
  4756. "label": "新兴区",
  4757. "value": "230902"
  4758. }, {
  4759. "label": "桃山区",
  4760. "value": "230903"
  4761. }, {
  4762. "label": "茄子河区",
  4763. "value": "230904"
  4764. }, {
  4765. "label": "勃利县",
  4766. "value": "230921"
  4767. }], [{
  4768. "label": "东安区",
  4769. "value": "231002"
  4770. }, {
  4771. "label": "阳明区",
  4772. "value": "231003"
  4773. }, {
  4774. "label": "爱民区",
  4775. "value": "231004"
  4776. }, {
  4777. "label": "西安区",
  4778. "value": "231005"
  4779. }, {
  4780. "label": "林口县",
  4781. "value": "231025"
  4782. }, {
  4783. "label": "牡丹江经济技术开发区",
  4784. "value": "231071"
  4785. }, {
  4786. "label": "绥芬河市",
  4787. "value": "231081"
  4788. }, {
  4789. "label": "海林市",
  4790. "value": "231083"
  4791. }, {
  4792. "label": "宁安市",
  4793. "value": "231084"
  4794. }, {
  4795. "label": "穆棱市",
  4796. "value": "231085"
  4797. }, {
  4798. "label": "东宁市",
  4799. "value": "231086"
  4800. }], [{
  4801. "label": "爱辉区",
  4802. "value": "231102"
  4803. }, {
  4804. "label": "嫩江县",
  4805. "value": "231121"
  4806. }, {
  4807. "label": "逊克县",
  4808. "value": "231123"
  4809. }, {
  4810. "label": "孙吴县",
  4811. "value": "231124"
  4812. }, {
  4813. "label": "北安市",
  4814. "value": "231181"
  4815. }, {
  4816. "label": "五大连池市",
  4817. "value": "231182"
  4818. }], [{
  4819. "label": "北林区",
  4820. "value": "231202"
  4821. }, {
  4822. "label": "望奎县",
  4823. "value": "231221"
  4824. }, {
  4825. "label": "兰西县",
  4826. "value": "231222"
  4827. }, {
  4828. "label": "青冈县",
  4829. "value": "231223"
  4830. }, {
  4831. "label": "庆安县",
  4832. "value": "231224"
  4833. }, {
  4834. "label": "明水县",
  4835. "value": "231225"
  4836. }, {
  4837. "label": "绥棱县",
  4838. "value": "231226"
  4839. }, {
  4840. "label": "安达市",
  4841. "value": "231281"
  4842. }, {
  4843. "label": "肇东市",
  4844. "value": "231282"
  4845. }, {
  4846. "label": "海伦市",
  4847. "value": "231283"
  4848. }], [{
  4849. "label": "加格达奇区",
  4850. "value": "232701"
  4851. }, {
  4852. "label": "松岭区",
  4853. "value": "232702"
  4854. }, {
  4855. "label": "新林区",
  4856. "value": "232703"
  4857. }, {
  4858. "label": "呼中区",
  4859. "value": "232704"
  4860. }, {
  4861. "label": "呼玛县",
  4862. "value": "232721"
  4863. }, {
  4864. "label": "塔河县",
  4865. "value": "232722"
  4866. }, {
  4867. "label": "漠河县",
  4868. "value": "232723"
  4869. }]], [[{
  4870. "label": "黄浦区",
  4871. "value": "310101"
  4872. }, {
  4873. "label": "徐汇区",
  4874. "value": "310104"
  4875. }, {
  4876. "label": "长宁区",
  4877. "value": "310105"
  4878. }, {
  4879. "label": "静安区",
  4880. "value": "310106"
  4881. }, {
  4882. "label": "普陀区",
  4883. "value": "310107"
  4884. }, {
  4885. "label": "虹口区",
  4886. "value": "310109"
  4887. }, {
  4888. "label": "杨浦区",
  4889. "value": "310110"
  4890. }, {
  4891. "label": "闵行区",
  4892. "value": "310112"
  4893. }, {
  4894. "label": "宝山区",
  4895. "value": "310113"
  4896. }, {
  4897. "label": "嘉定区",
  4898. "value": "310114"
  4899. }, {
  4900. "label": "浦东新区",
  4901. "value": "310115"
  4902. }, {
  4903. "label": "金山区",
  4904. "value": "310116"
  4905. }, {
  4906. "label": "松江区",
  4907. "value": "310117"
  4908. }, {
  4909. "label": "青浦区",
  4910. "value": "310118"
  4911. }, {
  4912. "label": "奉贤区",
  4913. "value": "310120"
  4914. }, {
  4915. "label": "崇明区",
  4916. "value": "310151"
  4917. }]], [[{
  4918. "label": "玄武区",
  4919. "value": "320102"
  4920. }, {
  4921. "label": "秦淮区",
  4922. "value": "320104"
  4923. }, {
  4924. "label": "建邺区",
  4925. "value": "320105"
  4926. }, {
  4927. "label": "鼓楼区",
  4928. "value": "320106"
  4929. }, {
  4930. "label": "浦口区",
  4931. "value": "320111"
  4932. }, {
  4933. "label": "栖霞区",
  4934. "value": "320113"
  4935. }, {
  4936. "label": "雨花台区",
  4937. "value": "320114"
  4938. }, {
  4939. "label": "江宁区",
  4940. "value": "320115"
  4941. }, {
  4942. "label": "六合区",
  4943. "value": "320116"
  4944. }, {
  4945. "label": "溧水区",
  4946. "value": "320117"
  4947. }, {
  4948. "label": "高淳区",
  4949. "value": "320118"
  4950. }], [{
  4951. "label": "锡山区",
  4952. "value": "320205"
  4953. }, {
  4954. "label": "惠山区",
  4955. "value": "320206"
  4956. }, {
  4957. "label": "滨湖区",
  4958. "value": "320211"
  4959. }, {
  4960. "label": "梁溪区",
  4961. "value": "320213"
  4962. }, {
  4963. "label": "新吴区",
  4964. "value": "320214"
  4965. }, {
  4966. "label": "江阴市",
  4967. "value": "320281"
  4968. }, {
  4969. "label": "宜兴市",
  4970. "value": "320282"
  4971. }], [{
  4972. "label": "鼓楼区",
  4973. "value": "320302"
  4974. }, {
  4975. "label": "云龙区",
  4976. "value": "320303"
  4977. }, {
  4978. "label": "贾汪区",
  4979. "value": "320305"
  4980. }, {
  4981. "label": "泉山区",
  4982. "value": "320311"
  4983. }, {
  4984. "label": "铜山区",
  4985. "value": "320312"
  4986. }, {
  4987. "label": "丰县",
  4988. "value": "320321"
  4989. }, {
  4990. "label": "沛县",
  4991. "value": "320322"
  4992. }, {
  4993. "label": "睢宁县",
  4994. "value": "320324"
  4995. }, {
  4996. "label": "徐州经济技术开发区",
  4997. "value": "320371"
  4998. }, {
  4999. "label": "新沂市",
  5000. "value": "320381"
  5001. }, {
  5002. "label": "邳州市",
  5003. "value": "320382"
  5004. }], [{
  5005. "label": "天宁区",
  5006. "value": "320402"
  5007. }, {
  5008. "label": "钟楼区",
  5009. "value": "320404"
  5010. }, {
  5011. "label": "新北区",
  5012. "value": "320411"
  5013. }, {
  5014. "label": "武进区",
  5015. "value": "320412"
  5016. }, {
  5017. "label": "金坛区",
  5018. "value": "320413"
  5019. }, {
  5020. "label": "溧阳市",
  5021. "value": "320481"
  5022. }], [{
  5023. "label": "虎丘区",
  5024. "value": "320505"
  5025. }, {
  5026. "label": "吴中区",
  5027. "value": "320506"
  5028. }, {
  5029. "label": "相城区",
  5030. "value": "320507"
  5031. }, {
  5032. "label": "姑苏区",
  5033. "value": "320508"
  5034. }, {
  5035. "label": "吴江区",
  5036. "value": "320509"
  5037. }, {
  5038. "label": "苏州工业园区",
  5039. "value": "320571"
  5040. }, {
  5041. "label": "常熟市",
  5042. "value": "320581"
  5043. }, {
  5044. "label": "张家港市",
  5045. "value": "320582"
  5046. }, {
  5047. "label": "昆山市",
  5048. "value": "320583"
  5049. }, {
  5050. "label": "太仓市",
  5051. "value": "320585"
  5052. }], [{
  5053. "label": "崇川区",
  5054. "value": "320602"
  5055. }, {
  5056. "label": "港闸区",
  5057. "value": "320611"
  5058. }, {
  5059. "label": "通州区",
  5060. "value": "320612"
  5061. }, {
  5062. "label": "海安县",
  5063. "value": "320621"
  5064. }, {
  5065. "label": "如东县",
  5066. "value": "320623"
  5067. }, {
  5068. "label": "南通经济技术开发区",
  5069. "value": "320671"
  5070. }, {
  5071. "label": "启东市",
  5072. "value": "320681"
  5073. }, {
  5074. "label": "如皋市",
  5075. "value": "320682"
  5076. }, {
  5077. "label": "海门市",
  5078. "value": "320684"
  5079. }], [{
  5080. "label": "连云区",
  5081. "value": "320703"
  5082. }, {
  5083. "label": "海州区",
  5084. "value": "320706"
  5085. }, {
  5086. "label": "赣榆区",
  5087. "value": "320707"
  5088. }, {
  5089. "label": "东海县",
  5090. "value": "320722"
  5091. }, {
  5092. "label": "灌云县",
  5093. "value": "320723"
  5094. }, {
  5095. "label": "灌南县",
  5096. "value": "320724"
  5097. }, {
  5098. "label": "连云港经济技术开发区",
  5099. "value": "320771"
  5100. }, {
  5101. "label": "连云港高新技术产业开发区",
  5102. "value": "320772"
  5103. }], [{
  5104. "label": "淮安区",
  5105. "value": "320803"
  5106. }, {
  5107. "label": "淮阴区",
  5108. "value": "320804"
  5109. }, {
  5110. "label": "清江浦区",
  5111. "value": "320812"
  5112. }, {
  5113. "label": "洪泽区",
  5114. "value": "320813"
  5115. }, {
  5116. "label": "涟水县",
  5117. "value": "320826"
  5118. }, {
  5119. "label": "盱眙县",
  5120. "value": "320830"
  5121. }, {
  5122. "label": "金湖县",
  5123. "value": "320831"
  5124. }, {
  5125. "label": "淮安经济技术开发区",
  5126. "value": "320871"
  5127. }], [{
  5128. "label": "亭湖区",
  5129. "value": "320902"
  5130. }, {
  5131. "label": "盐都区",
  5132. "value": "320903"
  5133. }, {
  5134. "label": "大丰区",
  5135. "value": "320904"
  5136. }, {
  5137. "label": "响水县",
  5138. "value": "320921"
  5139. }, {
  5140. "label": "滨海县",
  5141. "value": "320922"
  5142. }, {
  5143. "label": "阜宁县",
  5144. "value": "320923"
  5145. }, {
  5146. "label": "射阳县",
  5147. "value": "320924"
  5148. }, {
  5149. "label": "建湖县",
  5150. "value": "320925"
  5151. }, {
  5152. "label": "盐城经济技术开发区",
  5153. "value": "320971"
  5154. }, {
  5155. "label": "东台市",
  5156. "value": "320981"
  5157. }], [{
  5158. "label": "广陵区",
  5159. "value": "321002"
  5160. }, {
  5161. "label": "邗江区",
  5162. "value": "321003"
  5163. }, {
  5164. "label": "江都区",
  5165. "value": "321012"
  5166. }, {
  5167. "label": "宝应县",
  5168. "value": "321023"
  5169. }, {
  5170. "label": "扬州经济技术开发区",
  5171. "value": "321071"
  5172. }, {
  5173. "label": "仪征市",
  5174. "value": "321081"
  5175. }, {
  5176. "label": "高邮市",
  5177. "value": "321084"
  5178. }], [{
  5179. "label": "京口区",
  5180. "value": "321102"
  5181. }, {
  5182. "label": "润州区",
  5183. "value": "321111"
  5184. }, {
  5185. "label": "丹徒区",
  5186. "value": "321112"
  5187. }, {
  5188. "label": "镇江新区",
  5189. "value": "321171"
  5190. }, {
  5191. "label": "丹阳市",
  5192. "value": "321181"
  5193. }, {
  5194. "label": "扬中市",
  5195. "value": "321182"
  5196. }, {
  5197. "label": "句容市",
  5198. "value": "321183"
  5199. }], [{
  5200. "label": "海陵区",
  5201. "value": "321202"
  5202. }, {
  5203. "label": "高港区",
  5204. "value": "321203"
  5205. }, {
  5206. "label": "姜堰区",
  5207. "value": "321204"
  5208. }, {
  5209. "label": "泰州医药高新技术产业开发区",
  5210. "value": "321271"
  5211. }, {
  5212. "label": "兴化市",
  5213. "value": "321281"
  5214. }, {
  5215. "label": "靖江市",
  5216. "value": "321282"
  5217. }, {
  5218. "label": "泰兴市",
  5219. "value": "321283"
  5220. }], [{
  5221. "label": "宿城区",
  5222. "value": "321302"
  5223. }, {
  5224. "label": "宿豫区",
  5225. "value": "321311"
  5226. }, {
  5227. "label": "沭阳县",
  5228. "value": "321322"
  5229. }, {
  5230. "label": "泗阳县",
  5231. "value": "321323"
  5232. }, {
  5233. "label": "泗洪县",
  5234. "value": "321324"
  5235. }, {
  5236. "label": "宿迁经济技术开发区",
  5237. "value": "321371"
  5238. }]], [[{
  5239. "label": "上城区",
  5240. "value": "330102"
  5241. }, {
  5242. "label": "下城区",
  5243. "value": "330103"
  5244. }, {
  5245. "label": "江干区",
  5246. "value": "330104"
  5247. }, {
  5248. "label": "拱墅区",
  5249. "value": "330105"
  5250. }, {
  5251. "label": "西湖区",
  5252. "value": "330106"
  5253. }, {
  5254. "label": "滨江区",
  5255. "value": "330108"
  5256. }, {
  5257. "label": "萧山区",
  5258. "value": "330109"
  5259. }, {
  5260. "label": "余杭区",
  5261. "value": "330110"
  5262. }, {
  5263. "label": "富阳区",
  5264. "value": "330111"
  5265. }, {
  5266. "label": "临安区",
  5267. "value": "330112"
  5268. }, {
  5269. "label": "桐庐县",
  5270. "value": "330122"
  5271. }, {
  5272. "label": "淳安县",
  5273. "value": "330127"
  5274. }, {
  5275. "label": "建德市",
  5276. "value": "330182"
  5277. }], [{
  5278. "label": "海曙区",
  5279. "value": "330203"
  5280. }, {
  5281. "label": "江北区",
  5282. "value": "330205"
  5283. }, {
  5284. "label": "北仑区",
  5285. "value": "330206"
  5286. }, {
  5287. "label": "镇海区",
  5288. "value": "330211"
  5289. }, {
  5290. "label": "鄞州区",
  5291. "value": "330212"
  5292. }, {
  5293. "label": "奉化区",
  5294. "value": "330213"
  5295. }, {
  5296. "label": "象山县",
  5297. "value": "330225"
  5298. }, {
  5299. "label": "宁海县",
  5300. "value": "330226"
  5301. }, {
  5302. "label": "余姚市",
  5303. "value": "330281"
  5304. }, {
  5305. "label": "慈溪市",
  5306. "value": "330282"
  5307. }], [{
  5308. "label": "鹿城区",
  5309. "value": "330302"
  5310. }, {
  5311. "label": "龙湾区",
  5312. "value": "330303"
  5313. }, {
  5314. "label": "瓯海区",
  5315. "value": "330304"
  5316. }, {
  5317. "label": "洞头区",
  5318. "value": "330305"
  5319. }, {
  5320. "label": "永嘉县",
  5321. "value": "330324"
  5322. }, {
  5323. "label": "平阳县",
  5324. "value": "330326"
  5325. }, {
  5326. "label": "苍南县",
  5327. "value": "330327"
  5328. }, {
  5329. "label": "文成县",
  5330. "value": "330328"
  5331. }, {
  5332. "label": "泰顺县",
  5333. "value": "330329"
  5334. }, {
  5335. "label": "温州经济技术开发区",
  5336. "value": "330371"
  5337. }, {
  5338. "label": "瑞安市",
  5339. "value": "330381"
  5340. }, {
  5341. "label": "乐清市",
  5342. "value": "330382"
  5343. }], [{
  5344. "label": "南湖区",
  5345. "value": "330402"
  5346. }, {
  5347. "label": "秀洲区",
  5348. "value": "330411"
  5349. }, {
  5350. "label": "嘉善县",
  5351. "value": "330421"
  5352. }, {
  5353. "label": "海盐县",
  5354. "value": "330424"
  5355. }, {
  5356. "label": "海宁市",
  5357. "value": "330481"
  5358. }, {
  5359. "label": "平湖市",
  5360. "value": "330482"
  5361. }, {
  5362. "label": "桐乡市",
  5363. "value": "330483"
  5364. }], [{
  5365. "label": "吴兴区",
  5366. "value": "330502"
  5367. }, {
  5368. "label": "南浔区",
  5369. "value": "330503"
  5370. }, {
  5371. "label": "德清县",
  5372. "value": "330521"
  5373. }, {
  5374. "label": "长兴县",
  5375. "value": "330522"
  5376. }, {
  5377. "label": "安吉县",
  5378. "value": "330523"
  5379. }], [{
  5380. "label": "越城区",
  5381. "value": "330602"
  5382. }, {
  5383. "label": "柯桥区",
  5384. "value": "330603"
  5385. }, {
  5386. "label": "上虞区",
  5387. "value": "330604"
  5388. }, {
  5389. "label": "新昌县",
  5390. "value": "330624"
  5391. }, {
  5392. "label": "诸暨市",
  5393. "value": "330681"
  5394. }, {
  5395. "label": "嵊州市",
  5396. "value": "330683"
  5397. }], [{
  5398. "label": "婺城区",
  5399. "value": "330702"
  5400. }, {
  5401. "label": "金东区",
  5402. "value": "330703"
  5403. }, {
  5404. "label": "武义县",
  5405. "value": "330723"
  5406. }, {
  5407. "label": "浦江县",
  5408. "value": "330726"
  5409. }, {
  5410. "label": "磐安县",
  5411. "value": "330727"
  5412. }, {
  5413. "label": "兰溪市",
  5414. "value": "330781"
  5415. }, {
  5416. "label": "义乌市",
  5417. "value": "330782"
  5418. }, {
  5419. "label": "东阳市",
  5420. "value": "330783"
  5421. }, {
  5422. "label": "永康市",
  5423. "value": "330784"
  5424. }], [{
  5425. "label": "柯城区",
  5426. "value": "330802"
  5427. }, {
  5428. "label": "衢江区",
  5429. "value": "330803"
  5430. }, {
  5431. "label": "常山县",
  5432. "value": "330822"
  5433. }, {
  5434. "label": "开化县",
  5435. "value": "330824"
  5436. }, {
  5437. "label": "龙游县",
  5438. "value": "330825"
  5439. }, {
  5440. "label": "江山市",
  5441. "value": "330881"
  5442. }], [{
  5443. "label": "定海区",
  5444. "value": "330902"
  5445. }, {
  5446. "label": "普陀区",
  5447. "value": "330903"
  5448. }, {
  5449. "label": "岱山县",
  5450. "value": "330921"
  5451. }, {
  5452. "label": "嵊泗县",
  5453. "value": "330922"
  5454. }], [{
  5455. "label": "椒江区",
  5456. "value": "331002"
  5457. }, {
  5458. "label": "黄岩区",
  5459. "value": "331003"
  5460. }, {
  5461. "label": "路桥区",
  5462. "value": "331004"
  5463. }, {
  5464. "label": "三门县",
  5465. "value": "331022"
  5466. }, {
  5467. "label": "天台县",
  5468. "value": "331023"
  5469. }, {
  5470. "label": "仙居县",
  5471. "value": "331024"
  5472. }, {
  5473. "label": "温岭市",
  5474. "value": "331081"
  5475. }, {
  5476. "label": "临海市",
  5477. "value": "331082"
  5478. }, {
  5479. "label": "玉环市",
  5480. "value": "331083"
  5481. }], [{
  5482. "label": "莲都区",
  5483. "value": "331102"
  5484. }, {
  5485. "label": "青田县",
  5486. "value": "331121"
  5487. }, {
  5488. "label": "缙云县",
  5489. "value": "331122"
  5490. }, {
  5491. "label": "遂昌县",
  5492. "value": "331123"
  5493. }, {
  5494. "label": "松阳县",
  5495. "value": "331124"
  5496. }, {
  5497. "label": "云和县",
  5498. "value": "331125"
  5499. }, {
  5500. "label": "庆元县",
  5501. "value": "331126"
  5502. }, {
  5503. "label": "景宁畲族自治县",
  5504. "value": "331127"
  5505. }, {
  5506. "label": "龙泉市",
  5507. "value": "331181"
  5508. }]], [[{
  5509. "label": "瑶海区",
  5510. "value": "340102"
  5511. }, {
  5512. "label": "庐阳区",
  5513. "value": "340103"
  5514. }, {
  5515. "label": "蜀山区",
  5516. "value": "340104"
  5517. }, {
  5518. "label": "包河区",
  5519. "value": "340111"
  5520. }, {
  5521. "label": "长丰县",
  5522. "value": "340121"
  5523. }, {
  5524. "label": "肥东县",
  5525. "value": "340122"
  5526. }, {
  5527. "label": "肥西县",
  5528. "value": "340123"
  5529. }, {
  5530. "label": "庐江县",
  5531. "value": "340124"
  5532. }, {
  5533. "label": "合肥高新技术产业开发区",
  5534. "value": "340171"
  5535. }, {
  5536. "label": "合肥经济技术开发区",
  5537. "value": "340172"
  5538. }, {
  5539. "label": "合肥新站高新技术产业开发区",
  5540. "value": "340173"
  5541. }, {
  5542. "label": "巢湖市",
  5543. "value": "340181"
  5544. }], [{
  5545. "label": "镜湖区",
  5546. "value": "340202"
  5547. }, {
  5548. "label": "弋江区",
  5549. "value": "340203"
  5550. }, {
  5551. "label": "鸠江区",
  5552. "value": "340207"
  5553. }, {
  5554. "label": "三山区",
  5555. "value": "340208"
  5556. }, {
  5557. "label": "芜湖县",
  5558. "value": "340221"
  5559. }, {
  5560. "label": "繁昌县",
  5561. "value": "340222"
  5562. }, {
  5563. "label": "南陵县",
  5564. "value": "340223"
  5565. }, {
  5566. "label": "无为县",
  5567. "value": "340225"
  5568. }, {
  5569. "label": "芜湖经济技术开发区",
  5570. "value": "340271"
  5571. }, {
  5572. "label": "安徽芜湖长江大桥经济开发区",
  5573. "value": "340272"
  5574. }], [{
  5575. "label": "龙子湖区",
  5576. "value": "340302"
  5577. }, {
  5578. "label": "蚌山区",
  5579. "value": "340303"
  5580. }, {
  5581. "label": "禹会区",
  5582. "value": "340304"
  5583. }, {
  5584. "label": "淮上区",
  5585. "value": "340311"
  5586. }, {
  5587. "label": "怀远县",
  5588. "value": "340321"
  5589. }, {
  5590. "label": "五河县",
  5591. "value": "340322"
  5592. }, {
  5593. "label": "固镇县",
  5594. "value": "340323"
  5595. }, {
  5596. "label": "蚌埠市高新技术开发区",
  5597. "value": "340371"
  5598. }, {
  5599. "label": "蚌埠市经济开发区",
  5600. "value": "340372"
  5601. }], [{
  5602. "label": "大通区",
  5603. "value": "340402"
  5604. }, {
  5605. "label": "田家庵区",
  5606. "value": "340403"
  5607. }, {
  5608. "label": "谢家集区",
  5609. "value": "340404"
  5610. }, {
  5611. "label": "八公山区",
  5612. "value": "340405"
  5613. }, {
  5614. "label": "潘集区",
  5615. "value": "340406"
  5616. }, {
  5617. "label": "凤台县",
  5618. "value": "340421"
  5619. }, {
  5620. "label": "寿县",
  5621. "value": "340422"
  5622. }], [{
  5623. "label": "花山区",
  5624. "value": "340503"
  5625. }, {
  5626. "label": "雨山区",
  5627. "value": "340504"
  5628. }, {
  5629. "label": "博望区",
  5630. "value": "340506"
  5631. }, {
  5632. "label": "当涂县",
  5633. "value": "340521"
  5634. }, {
  5635. "label": "含山县",
  5636. "value": "340522"
  5637. }, {
  5638. "label": "和县",
  5639. "value": "340523"
  5640. }], [{
  5641. "label": "杜集区",
  5642. "value": "340602"
  5643. }, {
  5644. "label": "相山区",
  5645. "value": "340603"
  5646. }, {
  5647. "label": "烈山区",
  5648. "value": "340604"
  5649. }, {
  5650. "label": "濉溪县",
  5651. "value": "340621"
  5652. }], [{
  5653. "label": "铜官区",
  5654. "value": "340705"
  5655. }, {
  5656. "label": "义安区",
  5657. "value": "340706"
  5658. }, {
  5659. "label": "郊区",
  5660. "value": "340711"
  5661. }, {
  5662. "label": "枞阳县",
  5663. "value": "340722"
  5664. }], [{
  5665. "label": "迎江区",
  5666. "value": "340802"
  5667. }, {
  5668. "label": "大观区",
  5669. "value": "340803"
  5670. }, {
  5671. "label": "宜秀区",
  5672. "value": "340811"
  5673. }, {
  5674. "label": "怀宁县",
  5675. "value": "340822"
  5676. }, {
  5677. "label": "潜山县",
  5678. "value": "340824"
  5679. }, {
  5680. "label": "太湖县",
  5681. "value": "340825"
  5682. }, {
  5683. "label": "宿松县",
  5684. "value": "340826"
  5685. }, {
  5686. "label": "望江县",
  5687. "value": "340827"
  5688. }, {
  5689. "label": "岳西县",
  5690. "value": "340828"
  5691. }, {
  5692. "label": "安徽安庆经济开发区",
  5693. "value": "340871"
  5694. }, {
  5695. "label": "桐城市",
  5696. "value": "340881"
  5697. }], [{
  5698. "label": "屯溪区",
  5699. "value": "341002"
  5700. }, {
  5701. "label": "黄山区",
  5702. "value": "341003"
  5703. }, {
  5704. "label": "徽州区",
  5705. "value": "341004"
  5706. }, {
  5707. "label": "歙县",
  5708. "value": "341021"
  5709. }, {
  5710. "label": "休宁县",
  5711. "value": "341022"
  5712. }, {
  5713. "label": "黟县",
  5714. "value": "341023"
  5715. }, {
  5716. "label": "祁门县",
  5717. "value": "341024"
  5718. }], [{
  5719. "label": "琅琊区",
  5720. "value": "341102"
  5721. }, {
  5722. "label": "南谯区",
  5723. "value": "341103"
  5724. }, {
  5725. "label": "来安县",
  5726. "value": "341122"
  5727. }, {
  5728. "label": "全椒县",
  5729. "value": "341124"
  5730. }, {
  5731. "label": "定远县",
  5732. "value": "341125"
  5733. }, {
  5734. "label": "凤阳县",
  5735. "value": "341126"
  5736. }, {
  5737. "label": "苏滁现代产业园",
  5738. "value": "341171"
  5739. }, {
  5740. "label": "滁州经济技术开发区",
  5741. "value": "341172"
  5742. }, {
  5743. "label": "天长市",
  5744. "value": "341181"
  5745. }, {
  5746. "label": "明光市",
  5747. "value": "341182"
  5748. }], [{
  5749. "label": "颍州区",
  5750. "value": "341202"
  5751. }, {
  5752. "label": "颍东区",
  5753. "value": "341203"
  5754. }, {
  5755. "label": "颍泉区",
  5756. "value": "341204"
  5757. }, {
  5758. "label": "临泉县",
  5759. "value": "341221"
  5760. }, {
  5761. "label": "太和县",
  5762. "value": "341222"
  5763. }, {
  5764. "label": "阜南县",
  5765. "value": "341225"
  5766. }, {
  5767. "label": "颍上县",
  5768. "value": "341226"
  5769. }, {
  5770. "label": "阜阳合肥现代产业园区",
  5771. "value": "341271"
  5772. }, {
  5773. "label": "阜阳经济技术开发区",
  5774. "value": "341272"
  5775. }, {
  5776. "label": "界首市",
  5777. "value": "341282"
  5778. }], [{
  5779. "label": "埇桥区",
  5780. "value": "341302"
  5781. }, {
  5782. "label": "砀山县",
  5783. "value": "341321"
  5784. }, {
  5785. "label": "萧县",
  5786. "value": "341322"
  5787. }, {
  5788. "label": "灵璧县",
  5789. "value": "341323"
  5790. }, {
  5791. "label": "泗县",
  5792. "value": "341324"
  5793. }, {
  5794. "label": "宿州马鞍山现代产业园区",
  5795. "value": "341371"
  5796. }, {
  5797. "label": "宿州经济技术开发区",
  5798. "value": "341372"
  5799. }], [{
  5800. "label": "金安区",
  5801. "value": "341502"
  5802. }, {
  5803. "label": "裕安区",
  5804. "value": "341503"
  5805. }, {
  5806. "label": "叶集区",
  5807. "value": "341504"
  5808. }, {
  5809. "label": "霍邱县",
  5810. "value": "341522"
  5811. }, {
  5812. "label": "舒城县",
  5813. "value": "341523"
  5814. }, {
  5815. "label": "金寨县",
  5816. "value": "341524"
  5817. }, {
  5818. "label": "霍山县",
  5819. "value": "341525"
  5820. }], [{
  5821. "label": "谯城区",
  5822. "value": "341602"
  5823. }, {
  5824. "label": "涡阳县",
  5825. "value": "341621"
  5826. }, {
  5827. "label": "蒙城县",
  5828. "value": "341622"
  5829. }, {
  5830. "label": "利辛县",
  5831. "value": "341623"
  5832. }], [{
  5833. "label": "贵池区",
  5834. "value": "341702"
  5835. }, {
  5836. "label": "东至县",
  5837. "value": "341721"
  5838. }, {
  5839. "label": "石台县",
  5840. "value": "341722"
  5841. }, {
  5842. "label": "青阳县",
  5843. "value": "341723"
  5844. }], [{
  5845. "label": "宣州区",
  5846. "value": "341802"
  5847. }, {
  5848. "label": "郎溪县",
  5849. "value": "341821"
  5850. }, {
  5851. "label": "广德县",
  5852. "value": "341822"
  5853. }, {
  5854. "label": "泾县",
  5855. "value": "341823"
  5856. }, {
  5857. "label": "绩溪县",
  5858. "value": "341824"
  5859. }, {
  5860. "label": "旌德县",
  5861. "value": "341825"
  5862. }, {
  5863. "label": "宣城市经济开发区",
  5864. "value": "341871"
  5865. }, {
  5866. "label": "宁国市",
  5867. "value": "341881"
  5868. }]], [[{
  5869. "label": "鼓楼区",
  5870. "value": "350102"
  5871. }, {
  5872. "label": "台江区",
  5873. "value": "350103"
  5874. }, {
  5875. "label": "仓山区",
  5876. "value": "350104"
  5877. }, {
  5878. "label": "马尾区",
  5879. "value": "350105"
  5880. }, {
  5881. "label": "晋安区",
  5882. "value": "350111"
  5883. }, {
  5884. "label": "闽侯县",
  5885. "value": "350121"
  5886. }, {
  5887. "label": "连江县",
  5888. "value": "350122"
  5889. }, {
  5890. "label": "罗源县",
  5891. "value": "350123"
  5892. }, {
  5893. "label": "闽清县",
  5894. "value": "350124"
  5895. }, {
  5896. "label": "永泰县",
  5897. "value": "350125"
  5898. }, {
  5899. "label": "平潭县",
  5900. "value": "350128"
  5901. }, {
  5902. "label": "福清市",
  5903. "value": "350181"
  5904. }, {
  5905. "label": "长乐市",
  5906. "value": "350182"
  5907. }], [{
  5908. "label": "思明区",
  5909. "value": "350203"
  5910. }, {
  5911. "label": "海沧区",
  5912. "value": "350205"
  5913. }, {
  5914. "label": "湖里区",
  5915. "value": "350206"
  5916. }, {
  5917. "label": "集美区",
  5918. "value": "350211"
  5919. }, {
  5920. "label": "同安区",
  5921. "value": "350212"
  5922. }, {
  5923. "label": "翔安区",
  5924. "value": "350213"
  5925. }], [{
  5926. "label": "城厢区",
  5927. "value": "350302"
  5928. }, {
  5929. "label": "涵江区",
  5930. "value": "350303"
  5931. }, {
  5932. "label": "荔城区",
  5933. "value": "350304"
  5934. }, {
  5935. "label": "秀屿区",
  5936. "value": "350305"
  5937. }, {
  5938. "label": "仙游县",
  5939. "value": "350322"
  5940. }], [{
  5941. "label": "梅列区",
  5942. "value": "350402"
  5943. }, {
  5944. "label": "三元区",
  5945. "value": "350403"
  5946. }, {
  5947. "label": "明溪县",
  5948. "value": "350421"
  5949. }, {
  5950. "label": "清流县",
  5951. "value": "350423"
  5952. }, {
  5953. "label": "宁化县",
  5954. "value": "350424"
  5955. }, {
  5956. "label": "大田县",
  5957. "value": "350425"
  5958. }, {
  5959. "label": "尤溪县",
  5960. "value": "350426"
  5961. }, {
  5962. "label": "沙县",
  5963. "value": "350427"
  5964. }, {
  5965. "label": "将乐县",
  5966. "value": "350428"
  5967. }, {
  5968. "label": "泰宁县",
  5969. "value": "350429"
  5970. }, {
  5971. "label": "建宁县",
  5972. "value": "350430"
  5973. }, {
  5974. "label": "永安市",
  5975. "value": "350481"
  5976. }], [{
  5977. "label": "鲤城区",
  5978. "value": "350502"
  5979. }, {
  5980. "label": "丰泽区",
  5981. "value": "350503"
  5982. }, {
  5983. "label": "洛江区",
  5984. "value": "350504"
  5985. }, {
  5986. "label": "泉港区",
  5987. "value": "350505"
  5988. }, {
  5989. "label": "惠安县",
  5990. "value": "350521"
  5991. }, {
  5992. "label": "安溪县",
  5993. "value": "350524"
  5994. }, {
  5995. "label": "永春县",
  5996. "value": "350525"
  5997. }, {
  5998. "label": "德化县",
  5999. "value": "350526"
  6000. }, {
  6001. "label": "金门县",
  6002. "value": "350527"
  6003. }, {
  6004. "label": "石狮市",
  6005. "value": "350581"
  6006. }, {
  6007. "label": "晋江市",
  6008. "value": "350582"
  6009. }, {
  6010. "label": "南安市",
  6011. "value": "350583"
  6012. }], [{
  6013. "label": "芗城区",
  6014. "value": "350602"
  6015. }, {
  6016. "label": "龙文区",
  6017. "value": "350603"
  6018. }, {
  6019. "label": "云霄县",
  6020. "value": "350622"
  6021. }, {
  6022. "label": "漳浦县",
  6023. "value": "350623"
  6024. }, {
  6025. "label": "诏安县",
  6026. "value": "350624"
  6027. }, {
  6028. "label": "长泰县",
  6029. "value": "350625"
  6030. }, {
  6031. "label": "东山县",
  6032. "value": "350626"
  6033. }, {
  6034. "label": "南靖县",
  6035. "value": "350627"
  6036. }, {
  6037. "label": "平和县",
  6038. "value": "350628"
  6039. }, {
  6040. "label": "华安县",
  6041. "value": "350629"
  6042. }, {
  6043. "label": "龙海市",
  6044. "value": "350681"
  6045. }], [{
  6046. "label": "延平区",
  6047. "value": "350702"
  6048. }, {
  6049. "label": "建阳区",
  6050. "value": "350703"
  6051. }, {
  6052. "label": "顺昌县",
  6053. "value": "350721"
  6054. }, {
  6055. "label": "浦城县",
  6056. "value": "350722"
  6057. }, {
  6058. "label": "光泽县",
  6059. "value": "350723"
  6060. }, {
  6061. "label": "松溪县",
  6062. "value": "350724"
  6063. }, {
  6064. "label": "政和县",
  6065. "value": "350725"
  6066. }, {
  6067. "label": "邵武市",
  6068. "value": "350781"
  6069. }, {
  6070. "label": "武夷山市",
  6071. "value": "350782"
  6072. }, {
  6073. "label": "建瓯市",
  6074. "value": "350783"
  6075. }], [{
  6076. "label": "新罗区",
  6077. "value": "350802"
  6078. }, {
  6079. "label": "永定区",
  6080. "value": "350803"
  6081. }, {
  6082. "label": "长汀县",
  6083. "value": "350821"
  6084. }, {
  6085. "label": "上杭县",
  6086. "value": "350823"
  6087. }, {
  6088. "label": "武平县",
  6089. "value": "350824"
  6090. }, {
  6091. "label": "连城县",
  6092. "value": "350825"
  6093. }, {
  6094. "label": "漳平市",
  6095. "value": "350881"
  6096. }], [{
  6097. "label": "蕉城区",
  6098. "value": "350902"
  6099. }, {
  6100. "label": "霞浦县",
  6101. "value": "350921"
  6102. }, {
  6103. "label": "古田县",
  6104. "value": "350922"
  6105. }, {
  6106. "label": "屏南县",
  6107. "value": "350923"
  6108. }, {
  6109. "label": "寿宁县",
  6110. "value": "350924"
  6111. }, {
  6112. "label": "周宁县",
  6113. "value": "350925"
  6114. }, {
  6115. "label": "柘荣县",
  6116. "value": "350926"
  6117. }, {
  6118. "label": "福安市",
  6119. "value": "350981"
  6120. }, {
  6121. "label": "福鼎市",
  6122. "value": "350982"
  6123. }]], [[{
  6124. "label": "东湖区",
  6125. "value": "360102"
  6126. }, {
  6127. "label": "西湖区",
  6128. "value": "360103"
  6129. }, {
  6130. "label": "青云谱区",
  6131. "value": "360104"
  6132. }, {
  6133. "label": "湾里区",
  6134. "value": "360105"
  6135. }, {
  6136. "label": "青山湖区",
  6137. "value": "360111"
  6138. }, {
  6139. "label": "新建区",
  6140. "value": "360112"
  6141. }, {
  6142. "label": "南昌县",
  6143. "value": "360121"
  6144. }, {
  6145. "label": "安义县",
  6146. "value": "360123"
  6147. }, {
  6148. "label": "进贤县",
  6149. "value": "360124"
  6150. }], [{
  6151. "label": "昌江区",
  6152. "value": "360202"
  6153. }, {
  6154. "label": "珠山区",
  6155. "value": "360203"
  6156. }, {
  6157. "label": "浮梁县",
  6158. "value": "360222"
  6159. }, {
  6160. "label": "乐平市",
  6161. "value": "360281"
  6162. }], [{
  6163. "label": "安源区",
  6164. "value": "360302"
  6165. }, {
  6166. "label": "湘东区",
  6167. "value": "360313"
  6168. }, {
  6169. "label": "莲花县",
  6170. "value": "360321"
  6171. }, {
  6172. "label": "上栗县",
  6173. "value": "360322"
  6174. }, {
  6175. "label": "芦溪县",
  6176. "value": "360323"
  6177. }], [{
  6178. "label": "濂溪区",
  6179. "value": "360402"
  6180. }, {
  6181. "label": "浔阳区",
  6182. "value": "360403"
  6183. }, {
  6184. "label": "柴桑区",
  6185. "value": "360404"
  6186. }, {
  6187. "label": "武宁县",
  6188. "value": "360423"
  6189. }, {
  6190. "label": "修水县",
  6191. "value": "360424"
  6192. }, {
  6193. "label": "永修县",
  6194. "value": "360425"
  6195. }, {
  6196. "label": "德安县",
  6197. "value": "360426"
  6198. }, {
  6199. "label": "都昌县",
  6200. "value": "360428"
  6201. }, {
  6202. "label": "湖口县",
  6203. "value": "360429"
  6204. }, {
  6205. "label": "彭泽县",
  6206. "value": "360430"
  6207. }, {
  6208. "label": "瑞昌市",
  6209. "value": "360481"
  6210. }, {
  6211. "label": "共青城市",
  6212. "value": "360482"
  6213. }, {
  6214. "label": "庐山市",
  6215. "value": "360483"
  6216. }], [{
  6217. "label": "渝水区",
  6218. "value": "360502"
  6219. }, {
  6220. "label": "分宜县",
  6221. "value": "360521"
  6222. }], [{
  6223. "label": "月湖区",
  6224. "value": "360602"
  6225. }, {
  6226. "label": "余江县",
  6227. "value": "360622"
  6228. }, {
  6229. "label": "贵溪市",
  6230. "value": "360681"
  6231. }], [{
  6232. "label": "章贡区",
  6233. "value": "360702"
  6234. }, {
  6235. "label": "南康区",
  6236. "value": "360703"
  6237. }, {
  6238. "label": "赣县区",
  6239. "value": "360704"
  6240. }, {
  6241. "label": "信丰县",
  6242. "value": "360722"
  6243. }, {
  6244. "label": "大余县",
  6245. "value": "360723"
  6246. }, {
  6247. "label": "上犹县",
  6248. "value": "360724"
  6249. }, {
  6250. "label": "崇义县",
  6251. "value": "360725"
  6252. }, {
  6253. "label": "安远县",
  6254. "value": "360726"
  6255. }, {
  6256. "label": "龙南县",
  6257. "value": "360727"
  6258. }, {
  6259. "label": "定南县",
  6260. "value": "360728"
  6261. }, {
  6262. "label": "全南县",
  6263. "value": "360729"
  6264. }, {
  6265. "label": "宁都县",
  6266. "value": "360730"
  6267. }, {
  6268. "label": "于都县",
  6269. "value": "360731"
  6270. }, {
  6271. "label": "兴国县",
  6272. "value": "360732"
  6273. }, {
  6274. "label": "会昌县",
  6275. "value": "360733"
  6276. }, {
  6277. "label": "寻乌县",
  6278. "value": "360734"
  6279. }, {
  6280. "label": "石城县",
  6281. "value": "360735"
  6282. }, {
  6283. "label": "瑞金市",
  6284. "value": "360781"
  6285. }], [{
  6286. "label": "吉州区",
  6287. "value": "360802"
  6288. }, {
  6289. "label": "青原区",
  6290. "value": "360803"
  6291. }, {
  6292. "label": "吉安县",
  6293. "value": "360821"
  6294. }, {
  6295. "label": "吉水县",
  6296. "value": "360822"
  6297. }, {
  6298. "label": "峡江县",
  6299. "value": "360823"
  6300. }, {
  6301. "label": "新干县",
  6302. "value": "360824"
  6303. }, {
  6304. "label": "永丰县",
  6305. "value": "360825"
  6306. }, {
  6307. "label": "泰和县",
  6308. "value": "360826"
  6309. }, {
  6310. "label": "遂川县",
  6311. "value": "360827"
  6312. }, {
  6313. "label": "万安县",
  6314. "value": "360828"
  6315. }, {
  6316. "label": "安福县",
  6317. "value": "360829"
  6318. }, {
  6319. "label": "永新县",
  6320. "value": "360830"
  6321. }, {
  6322. "label": "井冈山市",
  6323. "value": "360881"
  6324. }], [{
  6325. "label": "袁州区",
  6326. "value": "360902"
  6327. }, {
  6328. "label": "奉新县",
  6329. "value": "360921"
  6330. }, {
  6331. "label": "万载县",
  6332. "value": "360922"
  6333. }, {
  6334. "label": "上高县",
  6335. "value": "360923"
  6336. }, {
  6337. "label": "宜丰县",
  6338. "value": "360924"
  6339. }, {
  6340. "label": "靖安县",
  6341. "value": "360925"
  6342. }, {
  6343. "label": "铜鼓县",
  6344. "value": "360926"
  6345. }, {
  6346. "label": "丰城市",
  6347. "value": "360981"
  6348. }, {
  6349. "label": "樟树市",
  6350. "value": "360982"
  6351. }, {
  6352. "label": "高安市",
  6353. "value": "360983"
  6354. }], [{
  6355. "label": "临川区",
  6356. "value": "361002"
  6357. }, {
  6358. "label": "东乡区",
  6359. "value": "361003"
  6360. }, {
  6361. "label": "南城县",
  6362. "value": "361021"
  6363. }, {
  6364. "label": "黎川县",
  6365. "value": "361022"
  6366. }, {
  6367. "label": "南丰县",
  6368. "value": "361023"
  6369. }, {
  6370. "label": "崇仁县",
  6371. "value": "361024"
  6372. }, {
  6373. "label": "乐安县",
  6374. "value": "361025"
  6375. }, {
  6376. "label": "宜黄县",
  6377. "value": "361026"
  6378. }, {
  6379. "label": "金溪县",
  6380. "value": "361027"
  6381. }, {
  6382. "label": "资溪县",
  6383. "value": "361028"
  6384. }, {
  6385. "label": "广昌县",
  6386. "value": "361030"
  6387. }], [{
  6388. "label": "信州区",
  6389. "value": "361102"
  6390. }, {
  6391. "label": "广丰区",
  6392. "value": "361103"
  6393. }, {
  6394. "label": "上饶县",
  6395. "value": "361121"
  6396. }, {
  6397. "label": "玉山县",
  6398. "value": "361123"
  6399. }, {
  6400. "label": "铅山县",
  6401. "value": "361124"
  6402. }, {
  6403. "label": "横峰县",
  6404. "value": "361125"
  6405. }, {
  6406. "label": "弋阳县",
  6407. "value": "361126"
  6408. }, {
  6409. "label": "余干县",
  6410. "value": "361127"
  6411. }, {
  6412. "label": "鄱阳县",
  6413. "value": "361128"
  6414. }, {
  6415. "label": "万年县",
  6416. "value": "361129"
  6417. }, {
  6418. "label": "婺源县",
  6419. "value": "361130"
  6420. }, {
  6421. "label": "德兴市",
  6422. "value": "361181"
  6423. }]], [[{
  6424. "label": "历下区",
  6425. "value": "370102"
  6426. }, {
  6427. "label": "市中区",
  6428. "value": "370103"
  6429. }, {
  6430. "label": "槐荫区",
  6431. "value": "370104"
  6432. }, {
  6433. "label": "天桥区",
  6434. "value": "370105"
  6435. }, {
  6436. "label": "历城区",
  6437. "value": "370112"
  6438. }, {
  6439. "label": "长清区",
  6440. "value": "370113"
  6441. }, {
  6442. "label": "章丘区",
  6443. "value": "370114"
  6444. }, {
  6445. "label": "平阴县",
  6446. "value": "370124"
  6447. }, {
  6448. "label": "济阳县",
  6449. "value": "370125"
  6450. }, {
  6451. "label": "商河县",
  6452. "value": "370126"
  6453. }, {
  6454. "label": "济南高新技术产业开发区",
  6455. "value": "370171"
  6456. }], [{
  6457. "label": "市南区",
  6458. "value": "370202"
  6459. }, {
  6460. "label": "市北区",
  6461. "value": "370203"
  6462. }, {
  6463. "label": "黄岛区",
  6464. "value": "370211"
  6465. }, {
  6466. "label": "崂山区",
  6467. "value": "370212"
  6468. }, {
  6469. "label": "李沧区",
  6470. "value": "370213"
  6471. }, {
  6472. "label": "城阳区",
  6473. "value": "370214"
  6474. }, {
  6475. "label": "即墨区",
  6476. "value": "370215"
  6477. }, {
  6478. "label": "青岛高新技术产业开发区",
  6479. "value": "370271"
  6480. }, {
  6481. "label": "胶州市",
  6482. "value": "370281"
  6483. }, {
  6484. "label": "平度市",
  6485. "value": "370283"
  6486. }, {
  6487. "label": "莱西市",
  6488. "value": "370285"
  6489. }], [{
  6490. "label": "淄川区",
  6491. "value": "370302"
  6492. }, {
  6493. "label": "张店区",
  6494. "value": "370303"
  6495. }, {
  6496. "label": "博山区",
  6497. "value": "370304"
  6498. }, {
  6499. "label": "临淄区",
  6500. "value": "370305"
  6501. }, {
  6502. "label": "周村区",
  6503. "value": "370306"
  6504. }, {
  6505. "label": "桓台县",
  6506. "value": "370321"
  6507. }, {
  6508. "label": "高青县",
  6509. "value": "370322"
  6510. }, {
  6511. "label": "沂源县",
  6512. "value": "370323"
  6513. }], [{
  6514. "label": "市中区",
  6515. "value": "370402"
  6516. }, {
  6517. "label": "薛城区",
  6518. "value": "370403"
  6519. }, {
  6520. "label": "峄城区",
  6521. "value": "370404"
  6522. }, {
  6523. "label": "台儿庄区",
  6524. "value": "370405"
  6525. }, {
  6526. "label": "山亭区",
  6527. "value": "370406"
  6528. }, {
  6529. "label": "滕州市",
  6530. "value": "370481"
  6531. }], [{
  6532. "label": "东营区",
  6533. "value": "370502"
  6534. }, {
  6535. "label": "河口区",
  6536. "value": "370503"
  6537. }, {
  6538. "label": "垦利区",
  6539. "value": "370505"
  6540. }, {
  6541. "label": "利津县",
  6542. "value": "370522"
  6543. }, {
  6544. "label": "广饶县",
  6545. "value": "370523"
  6546. }, {
  6547. "label": "东营经济技术开发区",
  6548. "value": "370571"
  6549. }, {
  6550. "label": "东营港经济开发区",
  6551. "value": "370572"
  6552. }], [{
  6553. "label": "芝罘区",
  6554. "value": "370602"
  6555. }, {
  6556. "label": "福山区",
  6557. "value": "370611"
  6558. }, {
  6559. "label": "牟平区",
  6560. "value": "370612"
  6561. }, {
  6562. "label": "莱山区",
  6563. "value": "370613"
  6564. }, {
  6565. "label": "长岛县",
  6566. "value": "370634"
  6567. }, {
  6568. "label": "烟台高新技术产业开发区",
  6569. "value": "370671"
  6570. }, {
  6571. "label": "烟台经济技术开发区",
  6572. "value": "370672"
  6573. }, {
  6574. "label": "龙口市",
  6575. "value": "370681"
  6576. }, {
  6577. "label": "莱阳市",
  6578. "value": "370682"
  6579. }, {
  6580. "label": "莱州市",
  6581. "value": "370683"
  6582. }, {
  6583. "label": "蓬莱市",
  6584. "value": "370684"
  6585. }, {
  6586. "label": "招远市",
  6587. "value": "370685"
  6588. }, {
  6589. "label": "栖霞市",
  6590. "value": "370686"
  6591. }, {
  6592. "label": "海阳市",
  6593. "value": "370687"
  6594. }], [{
  6595. "label": "潍城区",
  6596. "value": "370702"
  6597. }, {
  6598. "label": "寒亭区",
  6599. "value": "370703"
  6600. }, {
  6601. "label": "坊子区",
  6602. "value": "370704"
  6603. }, {
  6604. "label": "奎文区",
  6605. "value": "370705"
  6606. }, {
  6607. "label": "临朐县",
  6608. "value": "370724"
  6609. }, {
  6610. "label": "昌乐县",
  6611. "value": "370725"
  6612. }, {
  6613. "label": "潍坊滨海经济技术开发区",
  6614. "value": "370772"
  6615. }, {
  6616. "label": "青州市",
  6617. "value": "370781"
  6618. }, {
  6619. "label": "诸城市",
  6620. "value": "370782"
  6621. }, {
  6622. "label": "寿光市",
  6623. "value": "370783"
  6624. }, {
  6625. "label": "安丘市",
  6626. "value": "370784"
  6627. }, {
  6628. "label": "高密市",
  6629. "value": "370785"
  6630. }, {
  6631. "label": "昌邑市",
  6632. "value": "370786"
  6633. }], [{
  6634. "label": "任城区",
  6635. "value": "370811"
  6636. }, {
  6637. "label": "兖州区",
  6638. "value": "370812"
  6639. }, {
  6640. "label": "微山县",
  6641. "value": "370826"
  6642. }, {
  6643. "label": "鱼台县",
  6644. "value": "370827"
  6645. }, {
  6646. "label": "金乡县",
  6647. "value": "370828"
  6648. }, {
  6649. "label": "嘉祥县",
  6650. "value": "370829"
  6651. }, {
  6652. "label": "汶上县",
  6653. "value": "370830"
  6654. }, {
  6655. "label": "泗水县",
  6656. "value": "370831"
  6657. }, {
  6658. "label": "梁山县",
  6659. "value": "370832"
  6660. }, {
  6661. "label": "济宁高新技术产业开发区",
  6662. "value": "370871"
  6663. }, {
  6664. "label": "曲阜市",
  6665. "value": "370881"
  6666. }, {
  6667. "label": "邹城市",
  6668. "value": "370883"
  6669. }], [{
  6670. "label": "泰山区",
  6671. "value": "370902"
  6672. }, {
  6673. "label": "岱岳区",
  6674. "value": "370911"
  6675. }, {
  6676. "label": "宁阳县",
  6677. "value": "370921"
  6678. }, {
  6679. "label": "东平县",
  6680. "value": "370923"
  6681. }, {
  6682. "label": "新泰市",
  6683. "value": "370982"
  6684. }, {
  6685. "label": "肥城市",
  6686. "value": "370983"
  6687. }], [{
  6688. "label": "环翠区",
  6689. "value": "371002"
  6690. }, {
  6691. "label": "文登区",
  6692. "value": "371003"
  6693. }, {
  6694. "label": "威海火炬高技术产业开发区",
  6695. "value": "371071"
  6696. }, {
  6697. "label": "威海经济技术开发区",
  6698. "value": "371072"
  6699. }, {
  6700. "label": "威海临港经济技术开发区",
  6701. "value": "371073"
  6702. }, {
  6703. "label": "荣成市",
  6704. "value": "371082"
  6705. }, {
  6706. "label": "乳山市",
  6707. "value": "371083"
  6708. }], [{
  6709. "label": "东港区",
  6710. "value": "371102"
  6711. }, {
  6712. "label": "岚山区",
  6713. "value": "371103"
  6714. }, {
  6715. "label": "五莲县",
  6716. "value": "371121"
  6717. }, {
  6718. "label": "莒县",
  6719. "value": "371122"
  6720. }, {
  6721. "label": "日照经济技术开发区",
  6722. "value": "371171"
  6723. }, {
  6724. "label": "日照国际海洋城",
  6725. "value": "371172"
  6726. }], [{
  6727. "label": "莱城区",
  6728. "value": "371202"
  6729. }, {
  6730. "label": "钢城区",
  6731. "value": "371203"
  6732. }], [{
  6733. "label": "兰山区",
  6734. "value": "371302"
  6735. }, {
  6736. "label": "罗庄区",
  6737. "value": "371311"
  6738. }, {
  6739. "label": "河东区",
  6740. "value": "371312"
  6741. }, {
  6742. "label": "沂南县",
  6743. "value": "371321"
  6744. }, {
  6745. "label": "郯城县",
  6746. "value": "371322"
  6747. }, {
  6748. "label": "沂水县",
  6749. "value": "371323"
  6750. }, {
  6751. "label": "兰陵县",
  6752. "value": "371324"
  6753. }, {
  6754. "label": "费县",
  6755. "value": "371325"
  6756. }, {
  6757. "label": "平邑县",
  6758. "value": "371326"
  6759. }, {
  6760. "label": "莒南县",
  6761. "value": "371327"
  6762. }, {
  6763. "label": "蒙阴县",
  6764. "value": "371328"
  6765. }, {
  6766. "label": "临沭县",
  6767. "value": "371329"
  6768. }, {
  6769. "label": "临沂高新技术产业开发区",
  6770. "value": "371371"
  6771. }, {
  6772. "label": "临沂经济技术开发区",
  6773. "value": "371372"
  6774. }, {
  6775. "label": "临沂临港经济开发区",
  6776. "value": "371373"
  6777. }], [{
  6778. "label": "德城区",
  6779. "value": "371402"
  6780. }, {
  6781. "label": "陵城区",
  6782. "value": "371403"
  6783. }, {
  6784. "label": "宁津县",
  6785. "value": "371422"
  6786. }, {
  6787. "label": "庆云县",
  6788. "value": "371423"
  6789. }, {
  6790. "label": "临邑县",
  6791. "value": "371424"
  6792. }, {
  6793. "label": "齐河县",
  6794. "value": "371425"
  6795. }, {
  6796. "label": "平原县",
  6797. "value": "371426"
  6798. }, {
  6799. "label": "夏津县",
  6800. "value": "371427"
  6801. }, {
  6802. "label": "武城县",
  6803. "value": "371428"
  6804. }, {
  6805. "label": "德州经济技术开发区",
  6806. "value": "371471"
  6807. }, {
  6808. "label": "德州运河经济开发区",
  6809. "value": "371472"
  6810. }, {
  6811. "label": "乐陵市",
  6812. "value": "371481"
  6813. }, {
  6814. "label": "禹城市",
  6815. "value": "371482"
  6816. }], [{
  6817. "label": "东昌府区",
  6818. "value": "371502"
  6819. }, {
  6820. "label": "阳谷县",
  6821. "value": "371521"
  6822. }, {
  6823. "label": "莘县",
  6824. "value": "371522"
  6825. }, {
  6826. "label": "茌平县",
  6827. "value": "371523"
  6828. }, {
  6829. "label": "东阿县",
  6830. "value": "371524"
  6831. }, {
  6832. "label": "冠县",
  6833. "value": "371525"
  6834. }, {
  6835. "label": "高唐县",
  6836. "value": "371526"
  6837. }, {
  6838. "label": "临清市",
  6839. "value": "371581"
  6840. }], [{
  6841. "label": "滨城区",
  6842. "value": "371602"
  6843. }, {
  6844. "label": "沾化区",
  6845. "value": "371603"
  6846. }, {
  6847. "label": "惠民县",
  6848. "value": "371621"
  6849. }, {
  6850. "label": "阳信县",
  6851. "value": "371622"
  6852. }, {
  6853. "label": "无棣县",
  6854. "value": "371623"
  6855. }, {
  6856. "label": "博兴县",
  6857. "value": "371625"
  6858. }, {
  6859. "label": "邹平县",
  6860. "value": "371626"
  6861. }], [{
  6862. "label": "牡丹区",
  6863. "value": "371702"
  6864. }, {
  6865. "label": "定陶区",
  6866. "value": "371703"
  6867. }, {
  6868. "label": "曹县",
  6869. "value": "371721"
  6870. }, {
  6871. "label": "单县",
  6872. "value": "371722"
  6873. }, {
  6874. "label": "成武县",
  6875. "value": "371723"
  6876. }, {
  6877. "label": "巨野县",
  6878. "value": "371724"
  6879. }, {
  6880. "label": "郓城县",
  6881. "value": "371725"
  6882. }, {
  6883. "label": "鄄城县",
  6884. "value": "371726"
  6885. }, {
  6886. "label": "东明县",
  6887. "value": "371728"
  6888. }, {
  6889. "label": "菏泽经济技术开发区",
  6890. "value": "371771"
  6891. }, {
  6892. "label": "菏泽高新技术开发区",
  6893. "value": "371772"
  6894. }]], [[{
  6895. "label": "中原区",
  6896. "value": "410102"
  6897. }, {
  6898. "label": "二七区",
  6899. "value": "410103"
  6900. }, {
  6901. "label": "管城回族区",
  6902. "value": "410104"
  6903. }, {
  6904. "label": "金水区",
  6905. "value": "410105"
  6906. }, {
  6907. "label": "上街区",
  6908. "value": "410106"
  6909. }, {
  6910. "label": "惠济区",
  6911. "value": "410108"
  6912. }, {
  6913. "label": "中牟县",
  6914. "value": "410122"
  6915. }, {
  6916. "label": "郑州经济技术开发区",
  6917. "value": "410171"
  6918. }, {
  6919. "label": "郑州高新技术产业开发区",
  6920. "value": "410172"
  6921. }, {
  6922. "label": "郑州航空港经济综合实验区",
  6923. "value": "410173"
  6924. }, {
  6925. "label": "巩义市",
  6926. "value": "410181"
  6927. }, {
  6928. "label": "荥阳市",
  6929. "value": "410182"
  6930. }, {
  6931. "label": "新密市",
  6932. "value": "410183"
  6933. }, {
  6934. "label": "新郑市",
  6935. "value": "410184"
  6936. }, {
  6937. "label": "登封市",
  6938. "value": "410185"
  6939. }], [{
  6940. "label": "龙亭区",
  6941. "value": "410202"
  6942. }, {
  6943. "label": "顺河回族区",
  6944. "value": "410203"
  6945. }, {
  6946. "label": "鼓楼区",
  6947. "value": "410204"
  6948. }, {
  6949. "label": "禹王台区",
  6950. "value": "410205"
  6951. }, {
  6952. "label": "祥符区",
  6953. "value": "410212"
  6954. }, {
  6955. "label": "杞县",
  6956. "value": "410221"
  6957. }, {
  6958. "label": "通许县",
  6959. "value": "410222"
  6960. }, {
  6961. "label": "尉氏县",
  6962. "value": "410223"
  6963. }, {
  6964. "label": "兰考县",
  6965. "value": "410225"
  6966. }], [{
  6967. "label": "老城区",
  6968. "value": "410302"
  6969. }, {
  6970. "label": "西工区",
  6971. "value": "410303"
  6972. }, {
  6973. "label": "瀍河回族区",
  6974. "value": "410304"
  6975. }, {
  6976. "label": "涧西区",
  6977. "value": "410305"
  6978. }, {
  6979. "label": "吉利区",
  6980. "value": "410306"
  6981. }, {
  6982. "label": "洛龙区",
  6983. "value": "410311"
  6984. }, {
  6985. "label": "孟津县",
  6986. "value": "410322"
  6987. }, {
  6988. "label": "新安县",
  6989. "value": "410323"
  6990. }, {
  6991. "label": "栾川县",
  6992. "value": "410324"
  6993. }, {
  6994. "label": "嵩县",
  6995. "value": "410325"
  6996. }, {
  6997. "label": "汝阳县",
  6998. "value": "410326"
  6999. }, {
  7000. "label": "宜阳县",
  7001. "value": "410327"
  7002. }, {
  7003. "label": "洛宁县",
  7004. "value": "410328"
  7005. }, {
  7006. "label": "伊川县",
  7007. "value": "410329"
  7008. }, {
  7009. "label": "洛阳高新技术产业开发区",
  7010. "value": "410371"
  7011. }, {
  7012. "label": "偃师市",
  7013. "value": "410381"
  7014. }], [{
  7015. "label": "新华区",
  7016. "value": "410402"
  7017. }, {
  7018. "label": "卫东区",
  7019. "value": "410403"
  7020. }, {
  7021. "label": "石龙区",
  7022. "value": "410404"
  7023. }, {
  7024. "label": "湛河区",
  7025. "value": "410411"
  7026. }, {
  7027. "label": "宝丰县",
  7028. "value": "410421"
  7029. }, {
  7030. "label": "叶县",
  7031. "value": "410422"
  7032. }, {
  7033. "label": "鲁山县",
  7034. "value": "410423"
  7035. }, {
  7036. "label": "郏县",
  7037. "value": "410425"
  7038. }, {
  7039. "label": "平顶山高新技术产业开发区",
  7040. "value": "410471"
  7041. }, {
  7042. "label": "平顶山市新城区",
  7043. "value": "410472"
  7044. }, {
  7045. "label": "舞钢市",
  7046. "value": "410481"
  7047. }, {
  7048. "label": "汝州市",
  7049. "value": "410482"
  7050. }], [{
  7051. "label": "文峰区",
  7052. "value": "410502"
  7053. }, {
  7054. "label": "北关区",
  7055. "value": "410503"
  7056. }, {
  7057. "label": "殷都区",
  7058. "value": "410505"
  7059. }, {
  7060. "label": "龙安区",
  7061. "value": "410506"
  7062. }, {
  7063. "label": "安阳县",
  7064. "value": "410522"
  7065. }, {
  7066. "label": "汤阴县",
  7067. "value": "410523"
  7068. }, {
  7069. "label": "滑县",
  7070. "value": "410526"
  7071. }, {
  7072. "label": "内黄县",
  7073. "value": "410527"
  7074. }, {
  7075. "label": "安阳高新技术产业开发区",
  7076. "value": "410571"
  7077. }, {
  7078. "label": "林州市",
  7079. "value": "410581"
  7080. }], [{
  7081. "label": "鹤山区",
  7082. "value": "410602"
  7083. }, {
  7084. "label": "山城区",
  7085. "value": "410603"
  7086. }, {
  7087. "label": "淇滨区",
  7088. "value": "410611"
  7089. }, {
  7090. "label": "浚县",
  7091. "value": "410621"
  7092. }, {
  7093. "label": "淇县",
  7094. "value": "410622"
  7095. }, {
  7096. "label": "鹤壁经济技术开发区",
  7097. "value": "410671"
  7098. }], [{
  7099. "label": "红旗区",
  7100. "value": "410702"
  7101. }, {
  7102. "label": "卫滨区",
  7103. "value": "410703"
  7104. }, {
  7105. "label": "凤泉区",
  7106. "value": "410704"
  7107. }, {
  7108. "label": "牧野区",
  7109. "value": "410711"
  7110. }, {
  7111. "label": "新乡县",
  7112. "value": "410721"
  7113. }, {
  7114. "label": "获嘉县",
  7115. "value": "410724"
  7116. }, {
  7117. "label": "原阳县",
  7118. "value": "410725"
  7119. }, {
  7120. "label": "延津县",
  7121. "value": "410726"
  7122. }, {
  7123. "label": "封丘县",
  7124. "value": "410727"
  7125. }, {
  7126. "label": "长垣县",
  7127. "value": "410728"
  7128. }, {
  7129. "label": "新乡高新技术产业开发区",
  7130. "value": "410771"
  7131. }, {
  7132. "label": "新乡经济技术开发区",
  7133. "value": "410772"
  7134. }, {
  7135. "label": "新乡市平原城乡一体化示范区",
  7136. "value": "410773"
  7137. }, {
  7138. "label": "卫辉市",
  7139. "value": "410781"
  7140. }, {
  7141. "label": "辉县市",
  7142. "value": "410782"
  7143. }], [{
  7144. "label": "解放区",
  7145. "value": "410802"
  7146. }, {
  7147. "label": "中站区",
  7148. "value": "410803"
  7149. }, {
  7150. "label": "马村区",
  7151. "value": "410804"
  7152. }, {
  7153. "label": "山阳区",
  7154. "value": "410811"
  7155. }, {
  7156. "label": "修武县",
  7157. "value": "410821"
  7158. }, {
  7159. "label": "博爱县",
  7160. "value": "410822"
  7161. }, {
  7162. "label": "武陟县",
  7163. "value": "410823"
  7164. }, {
  7165. "label": "温县",
  7166. "value": "410825"
  7167. }, {
  7168. "label": "焦作城乡一体化示范区",
  7169. "value": "410871"
  7170. }, {
  7171. "label": "沁阳市",
  7172. "value": "410882"
  7173. }, {
  7174. "label": "孟州市",
  7175. "value": "410883"
  7176. }], [{
  7177. "label": "华龙区",
  7178. "value": "410902"
  7179. }, {
  7180. "label": "清丰县",
  7181. "value": "410922"
  7182. }, {
  7183. "label": "南乐县",
  7184. "value": "410923"
  7185. }, {
  7186. "label": "范县",
  7187. "value": "410926"
  7188. }, {
  7189. "label": "台前县",
  7190. "value": "410927"
  7191. }, {
  7192. "label": "濮阳县",
  7193. "value": "410928"
  7194. }, {
  7195. "label": "河南濮阳工业园区",
  7196. "value": "410971"
  7197. }, {
  7198. "label": "濮阳经济技术开发区",
  7199. "value": "410972"
  7200. }], [{
  7201. "label": "魏都区",
  7202. "value": "411002"
  7203. }, {
  7204. "label": "建安区",
  7205. "value": "411003"
  7206. }, {
  7207. "label": "鄢陵县",
  7208. "value": "411024"
  7209. }, {
  7210. "label": "襄城县",
  7211. "value": "411025"
  7212. }, {
  7213. "label": "许昌经济技术开发区",
  7214. "value": "411071"
  7215. }, {
  7216. "label": "禹州市",
  7217. "value": "411081"
  7218. }, {
  7219. "label": "长葛市",
  7220. "value": "411082"
  7221. }], [{
  7222. "label": "源汇区",
  7223. "value": "411102"
  7224. }, {
  7225. "label": "郾城区",
  7226. "value": "411103"
  7227. }, {
  7228. "label": "召陵区",
  7229. "value": "411104"
  7230. }, {
  7231. "label": "舞阳县",
  7232. "value": "411121"
  7233. }, {
  7234. "label": "临颍县",
  7235. "value": "411122"
  7236. }, {
  7237. "label": "漯河经济技术开发区",
  7238. "value": "411171"
  7239. }], [{
  7240. "label": "湖滨区",
  7241. "value": "411202"
  7242. }, {
  7243. "label": "陕州区",
  7244. "value": "411203"
  7245. }, {
  7246. "label": "渑池县",
  7247. "value": "411221"
  7248. }, {
  7249. "label": "卢氏县",
  7250. "value": "411224"
  7251. }, {
  7252. "label": "河南三门峡经济开发区",
  7253. "value": "411271"
  7254. }, {
  7255. "label": "义马市",
  7256. "value": "411281"
  7257. }, {
  7258. "label": "灵宝市",
  7259. "value": "411282"
  7260. }], [{
  7261. "label": "宛城区",
  7262. "value": "411302"
  7263. }, {
  7264. "label": "卧龙区",
  7265. "value": "411303"
  7266. }, {
  7267. "label": "南召县",
  7268. "value": "411321"
  7269. }, {
  7270. "label": "方城县",
  7271. "value": "411322"
  7272. }, {
  7273. "label": "西峡县",
  7274. "value": "411323"
  7275. }, {
  7276. "label": "镇平县",
  7277. "value": "411324"
  7278. }, {
  7279. "label": "内乡县",
  7280. "value": "411325"
  7281. }, {
  7282. "label": "淅川县",
  7283. "value": "411326"
  7284. }, {
  7285. "label": "社旗县",
  7286. "value": "411327"
  7287. }, {
  7288. "label": "唐河县",
  7289. "value": "411328"
  7290. }, {
  7291. "label": "新野县",
  7292. "value": "411329"
  7293. }, {
  7294. "label": "桐柏县",
  7295. "value": "411330"
  7296. }, {
  7297. "label": "南阳高新技术产业开发区",
  7298. "value": "411371"
  7299. }, {
  7300. "label": "南阳市城乡一体化示范区",
  7301. "value": "411372"
  7302. }, {
  7303. "label": "邓州市",
  7304. "value": "411381"
  7305. }], [{
  7306. "label": "梁园区",
  7307. "value": "411402"
  7308. }, {
  7309. "label": "睢阳区",
  7310. "value": "411403"
  7311. }, {
  7312. "label": "民权县",
  7313. "value": "411421"
  7314. }, {
  7315. "label": "睢县",
  7316. "value": "411422"
  7317. }, {
  7318. "label": "宁陵县",
  7319. "value": "411423"
  7320. }, {
  7321. "label": "柘城县",
  7322. "value": "411424"
  7323. }, {
  7324. "label": "虞城县",
  7325. "value": "411425"
  7326. }, {
  7327. "label": "夏邑县",
  7328. "value": "411426"
  7329. }, {
  7330. "label": "豫东综合物流产业聚集区",
  7331. "value": "411471"
  7332. }, {
  7333. "label": "河南商丘经济开发区",
  7334. "value": "411472"
  7335. }, {
  7336. "label": "永城市",
  7337. "value": "411481"
  7338. }], [{
  7339. "label": "浉河区",
  7340. "value": "411502"
  7341. }, {
  7342. "label": "平桥区",
  7343. "value": "411503"
  7344. }, {
  7345. "label": "罗山县",
  7346. "value": "411521"
  7347. }, {
  7348. "label": "光山县",
  7349. "value": "411522"
  7350. }, {
  7351. "label": "新县",
  7352. "value": "411523"
  7353. }, {
  7354. "label": "商城县",
  7355. "value": "411524"
  7356. }, {
  7357. "label": "固始县",
  7358. "value": "411525"
  7359. }, {
  7360. "label": "潢川县",
  7361. "value": "411526"
  7362. }, {
  7363. "label": "淮滨县",
  7364. "value": "411527"
  7365. }, {
  7366. "label": "息县",
  7367. "value": "411528"
  7368. }, {
  7369. "label": "信阳高新技术产业开发区",
  7370. "value": "411571"
  7371. }], [{
  7372. "label": "川汇区",
  7373. "value": "411602"
  7374. }, {
  7375. "label": "扶沟县",
  7376. "value": "411621"
  7377. }, {
  7378. "label": "西华县",
  7379. "value": "411622"
  7380. }, {
  7381. "label": "商水县",
  7382. "value": "411623"
  7383. }, {
  7384. "label": "沈丘县",
  7385. "value": "411624"
  7386. }, {
  7387. "label": "郸城县",
  7388. "value": "411625"
  7389. }, {
  7390. "label": "淮阳县",
  7391. "value": "411626"
  7392. }, {
  7393. "label": "太康县",
  7394. "value": "411627"
  7395. }, {
  7396. "label": "鹿邑县",
  7397. "value": "411628"
  7398. }, {
  7399. "label": "河南周口经济开发区",
  7400. "value": "411671"
  7401. }, {
  7402. "label": "项城市",
  7403. "value": "411681"
  7404. }], [{
  7405. "label": "驿城区",
  7406. "value": "411702"
  7407. }, {
  7408. "label": "西平县",
  7409. "value": "411721"
  7410. }, {
  7411. "label": "上蔡县",
  7412. "value": "411722"
  7413. }, {
  7414. "label": "平舆县",
  7415. "value": "411723"
  7416. }, {
  7417. "label": "正阳县",
  7418. "value": "411724"
  7419. }, {
  7420. "label": "确山县",
  7421. "value": "411725"
  7422. }, {
  7423. "label": "泌阳县",
  7424. "value": "411726"
  7425. }, {
  7426. "label": "汝南县",
  7427. "value": "411727"
  7428. }, {
  7429. "label": "遂平县",
  7430. "value": "411728"
  7431. }, {
  7432. "label": "新蔡县",
  7433. "value": "411729"
  7434. }, {
  7435. "label": "河南驻马店经济开发区",
  7436. "value": "411771"
  7437. }], [{
  7438. "label": "济源市",
  7439. "value": "419001"
  7440. }]], [[{
  7441. "label": "江岸区",
  7442. "value": "420102"
  7443. }, {
  7444. "label": "江汉区",
  7445. "value": "420103"
  7446. }, {
  7447. "label": "硚口区",
  7448. "value": "420104"
  7449. }, {
  7450. "label": "汉阳区",
  7451. "value": "420105"
  7452. }, {
  7453. "label": "武昌区",
  7454. "value": "420106"
  7455. }, {
  7456. "label": "青山区",
  7457. "value": "420107"
  7458. }, {
  7459. "label": "洪山区",
  7460. "value": "420111"
  7461. }, {
  7462. "label": "东西湖区",
  7463. "value": "420112"
  7464. }, {
  7465. "label": "汉南区",
  7466. "value": "420113"
  7467. }, {
  7468. "label": "蔡甸区",
  7469. "value": "420114"
  7470. }, {
  7471. "label": "江夏区",
  7472. "value": "420115"
  7473. }, {
  7474. "label": "黄陂区",
  7475. "value": "420116"
  7476. }, {
  7477. "label": "新洲区",
  7478. "value": "420117"
  7479. }], [{
  7480. "label": "黄石港区",
  7481. "value": "420202"
  7482. }, {
  7483. "label": "西塞山区",
  7484. "value": "420203"
  7485. }, {
  7486. "label": "下陆区",
  7487. "value": "420204"
  7488. }, {
  7489. "label": "铁山区",
  7490. "value": "420205"
  7491. }, {
  7492. "label": "阳新县",
  7493. "value": "420222"
  7494. }, {
  7495. "label": "大冶市",
  7496. "value": "420281"
  7497. }], [{
  7498. "label": "茅箭区",
  7499. "value": "420302"
  7500. }, {
  7501. "label": "张湾区",
  7502. "value": "420303"
  7503. }, {
  7504. "label": "郧阳区",
  7505. "value": "420304"
  7506. }, {
  7507. "label": "郧西县",
  7508. "value": "420322"
  7509. }, {
  7510. "label": "竹山县",
  7511. "value": "420323"
  7512. }, {
  7513. "label": "竹溪县",
  7514. "value": "420324"
  7515. }, {
  7516. "label": "房县",
  7517. "value": "420325"
  7518. }, {
  7519. "label": "丹江口市",
  7520. "value": "420381"
  7521. }], [{
  7522. "label": "西陵区",
  7523. "value": "420502"
  7524. }, {
  7525. "label": "伍家岗区",
  7526. "value": "420503"
  7527. }, {
  7528. "label": "点军区",
  7529. "value": "420504"
  7530. }, {
  7531. "label": "猇亭区",
  7532. "value": "420505"
  7533. }, {
  7534. "label": "夷陵区",
  7535. "value": "420506"
  7536. }, {
  7537. "label": "远安县",
  7538. "value": "420525"
  7539. }, {
  7540. "label": "兴山县",
  7541. "value": "420526"
  7542. }, {
  7543. "label": "秭归县",
  7544. "value": "420527"
  7545. }, {
  7546. "label": "长阳土家族自治县",
  7547. "value": "420528"
  7548. }, {
  7549. "label": "五峰土家族自治县",
  7550. "value": "420529"
  7551. }, {
  7552. "label": "宜都市",
  7553. "value": "420581"
  7554. }, {
  7555. "label": "当阳市",
  7556. "value": "420582"
  7557. }, {
  7558. "label": "枝江市",
  7559. "value": "420583"
  7560. }], [{
  7561. "label": "襄城区",
  7562. "value": "420602"
  7563. }, {
  7564. "label": "樊城区",
  7565. "value": "420606"
  7566. }, {
  7567. "label": "襄州区",
  7568. "value": "420607"
  7569. }, {
  7570. "label": "南漳县",
  7571. "value": "420624"
  7572. }, {
  7573. "label": "谷城县",
  7574. "value": "420625"
  7575. }, {
  7576. "label": "保康县",
  7577. "value": "420626"
  7578. }, {
  7579. "label": "老河口市",
  7580. "value": "420682"
  7581. }, {
  7582. "label": "枣阳市",
  7583. "value": "420683"
  7584. }, {
  7585. "label": "宜城市",
  7586. "value": "420684"
  7587. }], [{
  7588. "label": "梁子湖区",
  7589. "value": "420702"
  7590. }, {
  7591. "label": "华容区",
  7592. "value": "420703"
  7593. }, {
  7594. "label": "鄂城区",
  7595. "value": "420704"
  7596. }], [{
  7597. "label": "东宝区",
  7598. "value": "420802"
  7599. }, {
  7600. "label": "掇刀区",
  7601. "value": "420804"
  7602. }, {
  7603. "label": "京山县",
  7604. "value": "420821"
  7605. }, {
  7606. "label": "沙洋县",
  7607. "value": "420822"
  7608. }, {
  7609. "label": "钟祥市",
  7610. "value": "420881"
  7611. }], [{
  7612. "label": "孝南区",
  7613. "value": "420902"
  7614. }, {
  7615. "label": "孝昌县",
  7616. "value": "420921"
  7617. }, {
  7618. "label": "大悟县",
  7619. "value": "420922"
  7620. }, {
  7621. "label": "云梦县",
  7622. "value": "420923"
  7623. }, {
  7624. "label": "应城市",
  7625. "value": "420981"
  7626. }, {
  7627. "label": "安陆市",
  7628. "value": "420982"
  7629. }, {
  7630. "label": "汉川市",
  7631. "value": "420984"
  7632. }], [{
  7633. "label": "沙市区",
  7634. "value": "421002"
  7635. }, {
  7636. "label": "荆州区",
  7637. "value": "421003"
  7638. }, {
  7639. "label": "公安县",
  7640. "value": "421022"
  7641. }, {
  7642. "label": "监利县",
  7643. "value": "421023"
  7644. }, {
  7645. "label": "江陵县",
  7646. "value": "421024"
  7647. }, {
  7648. "label": "荆州经济技术开发区",
  7649. "value": "421071"
  7650. }, {
  7651. "label": "石首市",
  7652. "value": "421081"
  7653. }, {
  7654. "label": "洪湖市",
  7655. "value": "421083"
  7656. }, {
  7657. "label": "松滋市",
  7658. "value": "421087"
  7659. }], [{
  7660. "label": "黄州区",
  7661. "value": "421102"
  7662. }, {
  7663. "label": "团风县",
  7664. "value": "421121"
  7665. }, {
  7666. "label": "红安县",
  7667. "value": "421122"
  7668. }, {
  7669. "label": "罗田县",
  7670. "value": "421123"
  7671. }, {
  7672. "label": "英山县",
  7673. "value": "421124"
  7674. }, {
  7675. "label": "浠水县",
  7676. "value": "421125"
  7677. }, {
  7678. "label": "蕲春县",
  7679. "value": "421126"
  7680. }, {
  7681. "label": "黄梅县",
  7682. "value": "421127"
  7683. }, {
  7684. "label": "龙感湖管理区",
  7685. "value": "421171"
  7686. }, {
  7687. "label": "麻城市",
  7688. "value": "421181"
  7689. }, {
  7690. "label": "武穴市",
  7691. "value": "421182"
  7692. }], [{
  7693. "label": "咸安区",
  7694. "value": "421202"
  7695. }, {
  7696. "label": "嘉鱼县",
  7697. "value": "421221"
  7698. }, {
  7699. "label": "通城县",
  7700. "value": "421222"
  7701. }, {
  7702. "label": "崇阳县",
  7703. "value": "421223"
  7704. }, {
  7705. "label": "通山县",
  7706. "value": "421224"
  7707. }, {
  7708. "label": "赤壁市",
  7709. "value": "421281"
  7710. }], [{
  7711. "label": "曾都区",
  7712. "value": "421303"
  7713. }, {
  7714. "label": "随县",
  7715. "value": "421321"
  7716. }, {
  7717. "label": "广水市",
  7718. "value": "421381"
  7719. }], [{
  7720. "label": "恩施市",
  7721. "value": "422801"
  7722. }, {
  7723. "label": "利川市",
  7724. "value": "422802"
  7725. }, {
  7726. "label": "建始县",
  7727. "value": "422822"
  7728. }, {
  7729. "label": "巴东县",
  7730. "value": "422823"
  7731. }, {
  7732. "label": "宣恩县",
  7733. "value": "422825"
  7734. }, {
  7735. "label": "咸丰县",
  7736. "value": "422826"
  7737. }, {
  7738. "label": "来凤县",
  7739. "value": "422827"
  7740. }, {
  7741. "label": "鹤峰县",
  7742. "value": "422828"
  7743. }], [{
  7744. "label": "仙桃市",
  7745. "value": "429004"
  7746. }, {
  7747. "label": "潜江市",
  7748. "value": "429005"
  7749. }, {
  7750. "label": "天门市",
  7751. "value": "429006"
  7752. }, {
  7753. "label": "神农架林区",
  7754. "value": "429021"
  7755. }]], [[{
  7756. "label": "芙蓉区",
  7757. "value": "430102"
  7758. }, {
  7759. "label": "天心区",
  7760. "value": "430103"
  7761. }, {
  7762. "label": "岳麓区",
  7763. "value": "430104"
  7764. }, {
  7765. "label": "开福区",
  7766. "value": "430105"
  7767. }, {
  7768. "label": "雨花区",
  7769. "value": "430111"
  7770. }, {
  7771. "label": "望城区",
  7772. "value": "430112"
  7773. }, {
  7774. "label": "长沙县",
  7775. "value": "430121"
  7776. }, {
  7777. "label": "浏阳市",
  7778. "value": "430181"
  7779. }, {
  7780. "label": "宁乡市",
  7781. "value": "430182"
  7782. }], [{
  7783. "label": "荷塘区",
  7784. "value": "430202"
  7785. }, {
  7786. "label": "芦淞区",
  7787. "value": "430203"
  7788. }, {
  7789. "label": "石峰区",
  7790. "value": "430204"
  7791. }, {
  7792. "label": "天元区",
  7793. "value": "430211"
  7794. }, {
  7795. "label": "株洲县",
  7796. "value": "430221"
  7797. }, {
  7798. "label": "攸县",
  7799. "value": "430223"
  7800. }, {
  7801. "label": "茶陵县",
  7802. "value": "430224"
  7803. }, {
  7804. "label": "炎陵县",
  7805. "value": "430225"
  7806. }, {
  7807. "label": "云龙示范区",
  7808. "value": "430271"
  7809. }, {
  7810. "label": "醴陵市",
  7811. "value": "430281"
  7812. }], [{
  7813. "label": "雨湖区",
  7814. "value": "430302"
  7815. }, {
  7816. "label": "岳塘区",
  7817. "value": "430304"
  7818. }, {
  7819. "label": "湘潭县",
  7820. "value": "430321"
  7821. }, {
  7822. "label": "湖南湘潭高新技术产业园区",
  7823. "value": "430371"
  7824. }, {
  7825. "label": "湘潭昭山示范区",
  7826. "value": "430372"
  7827. }, {
  7828. "label": "湘潭九华示范区",
  7829. "value": "430373"
  7830. }, {
  7831. "label": "湘乡市",
  7832. "value": "430381"
  7833. }, {
  7834. "label": "韶山市",
  7835. "value": "430382"
  7836. }], [{
  7837. "label": "珠晖区",
  7838. "value": "430405"
  7839. }, {
  7840. "label": "雁峰区",
  7841. "value": "430406"
  7842. }, {
  7843. "label": "石鼓区",
  7844. "value": "430407"
  7845. }, {
  7846. "label": "蒸湘区",
  7847. "value": "430408"
  7848. }, {
  7849. "label": "南岳区",
  7850. "value": "430412"
  7851. }, {
  7852. "label": "衡阳县",
  7853. "value": "430421"
  7854. }, {
  7855. "label": "衡南县",
  7856. "value": "430422"
  7857. }, {
  7858. "label": "衡山县",
  7859. "value": "430423"
  7860. }, {
  7861. "label": "衡东县",
  7862. "value": "430424"
  7863. }, {
  7864. "label": "祁东县",
  7865. "value": "430426"
  7866. }, {
  7867. "label": "衡阳综合保税区",
  7868. "value": "430471"
  7869. }, {
  7870. "label": "湖南衡阳高新技术产业园区",
  7871. "value": "430472"
  7872. }, {
  7873. "label": "湖南衡阳松木经济开发区",
  7874. "value": "430473"
  7875. }, {
  7876. "label": "耒阳市",
  7877. "value": "430481"
  7878. }, {
  7879. "label": "常宁市",
  7880. "value": "430482"
  7881. }], [{
  7882. "label": "双清区",
  7883. "value": "430502"
  7884. }, {
  7885. "label": "大祥区",
  7886. "value": "430503"
  7887. }, {
  7888. "label": "北塔区",
  7889. "value": "430511"
  7890. }, {
  7891. "label": "邵东县",
  7892. "value": "430521"
  7893. }, {
  7894. "label": "新邵县",
  7895. "value": "430522"
  7896. }, {
  7897. "label": "邵阳县",
  7898. "value": "430523"
  7899. }, {
  7900. "label": "隆回县",
  7901. "value": "430524"
  7902. }, {
  7903. "label": "洞口县",
  7904. "value": "430525"
  7905. }, {
  7906. "label": "绥宁县",
  7907. "value": "430527"
  7908. }, {
  7909. "label": "新宁县",
  7910. "value": "430528"
  7911. }, {
  7912. "label": "城步苗族自治县",
  7913. "value": "430529"
  7914. }, {
  7915. "label": "武冈市",
  7916. "value": "430581"
  7917. }], [{
  7918. "label": "岳阳楼区",
  7919. "value": "430602"
  7920. }, {
  7921. "label": "云溪区",
  7922. "value": "430603"
  7923. }, {
  7924. "label": "君山区",
  7925. "value": "430611"
  7926. }, {
  7927. "label": "岳阳县",
  7928. "value": "430621"
  7929. }, {
  7930. "label": "华容县",
  7931. "value": "430623"
  7932. }, {
  7933. "label": "湘阴县",
  7934. "value": "430624"
  7935. }, {
  7936. "label": "平江县",
  7937. "value": "430626"
  7938. }, {
  7939. "label": "岳阳市屈原管理区",
  7940. "value": "430671"
  7941. }, {
  7942. "label": "汨罗市",
  7943. "value": "430681"
  7944. }, {
  7945. "label": "临湘市",
  7946. "value": "430682"
  7947. }], [{
  7948. "label": "武陵区",
  7949. "value": "430702"
  7950. }, {
  7951. "label": "鼎城区",
  7952. "value": "430703"
  7953. }, {
  7954. "label": "安乡县",
  7955. "value": "430721"
  7956. }, {
  7957. "label": "汉寿县",
  7958. "value": "430722"
  7959. }, {
  7960. "label": "澧县",
  7961. "value": "430723"
  7962. }, {
  7963. "label": "临澧县",
  7964. "value": "430724"
  7965. }, {
  7966. "label": "桃源县",
  7967. "value": "430725"
  7968. }, {
  7969. "label": "石门县",
  7970. "value": "430726"
  7971. }, {
  7972. "label": "常德市西洞庭管理区",
  7973. "value": "430771"
  7974. }, {
  7975. "label": "津市市",
  7976. "value": "430781"
  7977. }], [{
  7978. "label": "永定区",
  7979. "value": "430802"
  7980. }, {
  7981. "label": "武陵源区",
  7982. "value": "430811"
  7983. }, {
  7984. "label": "慈利县",
  7985. "value": "430821"
  7986. }, {
  7987. "label": "桑植县",
  7988. "value": "430822"
  7989. }], [{
  7990. "label": "资阳区",
  7991. "value": "430902"
  7992. }, {
  7993. "label": "赫山区",
  7994. "value": "430903"
  7995. }, {
  7996. "label": "南县",
  7997. "value": "430921"
  7998. }, {
  7999. "label": "桃江县",
  8000. "value": "430922"
  8001. }, {
  8002. "label": "安化县",
  8003. "value": "430923"
  8004. }, {
  8005. "label": "益阳市大通湖管理区",
  8006. "value": "430971"
  8007. }, {
  8008. "label": "湖南益阳高新技术产业园区",
  8009. "value": "430972"
  8010. }, {
  8011. "label": "沅江市",
  8012. "value": "430981"
  8013. }], [{
  8014. "label": "北湖区",
  8015. "value": "431002"
  8016. }, {
  8017. "label": "苏仙区",
  8018. "value": "431003"
  8019. }, {
  8020. "label": "桂阳县",
  8021. "value": "431021"
  8022. }, {
  8023. "label": "宜章县",
  8024. "value": "431022"
  8025. }, {
  8026. "label": "永兴县",
  8027. "value": "431023"
  8028. }, {
  8029. "label": "嘉禾县",
  8030. "value": "431024"
  8031. }, {
  8032. "label": "临武县",
  8033. "value": "431025"
  8034. }, {
  8035. "label": "汝城县",
  8036. "value": "431026"
  8037. }, {
  8038. "label": "桂东县",
  8039. "value": "431027"
  8040. }, {
  8041. "label": "安仁县",
  8042. "value": "431028"
  8043. }, {
  8044. "label": "资兴市",
  8045. "value": "431081"
  8046. }], [{
  8047. "label": "零陵区",
  8048. "value": "431102"
  8049. }, {
  8050. "label": "冷水滩区",
  8051. "value": "431103"
  8052. }, {
  8053. "label": "祁阳县",
  8054. "value": "431121"
  8055. }, {
  8056. "label": "东安县",
  8057. "value": "431122"
  8058. }, {
  8059. "label": "双牌县",
  8060. "value": "431123"
  8061. }, {
  8062. "label": "道县",
  8063. "value": "431124"
  8064. }, {
  8065. "label": "江永县",
  8066. "value": "431125"
  8067. }, {
  8068. "label": "宁远县",
  8069. "value": "431126"
  8070. }, {
  8071. "label": "蓝山县",
  8072. "value": "431127"
  8073. }, {
  8074. "label": "新田县",
  8075. "value": "431128"
  8076. }, {
  8077. "label": "江华瑶族自治县",
  8078. "value": "431129"
  8079. }, {
  8080. "label": "永州经济技术开发区",
  8081. "value": "431171"
  8082. }, {
  8083. "label": "永州市金洞管理区",
  8084. "value": "431172"
  8085. }, {
  8086. "label": "永州市回龙圩管理区",
  8087. "value": "431173"
  8088. }], [{
  8089. "label": "鹤城区",
  8090. "value": "431202"
  8091. }, {
  8092. "label": "中方县",
  8093. "value": "431221"
  8094. }, {
  8095. "label": "沅陵县",
  8096. "value": "431222"
  8097. }, {
  8098. "label": "辰溪县",
  8099. "value": "431223"
  8100. }, {
  8101. "label": "溆浦县",
  8102. "value": "431224"
  8103. }, {
  8104. "label": "会同县",
  8105. "value": "431225"
  8106. }, {
  8107. "label": "麻阳苗族自治县",
  8108. "value": "431226"
  8109. }, {
  8110. "label": "新晃侗族自治县",
  8111. "value": "431227"
  8112. }, {
  8113. "label": "芷江侗族自治县",
  8114. "value": "431228"
  8115. }, {
  8116. "label": "靖州苗族侗族自治县",
  8117. "value": "431229"
  8118. }, {
  8119. "label": "通道侗族自治县",
  8120. "value": "431230"
  8121. }, {
  8122. "label": "怀化市洪江管理区",
  8123. "value": "431271"
  8124. }, {
  8125. "label": "洪江市",
  8126. "value": "431281"
  8127. }], [{
  8128. "label": "娄星区",
  8129. "value": "431302"
  8130. }, {
  8131. "label": "双峰县",
  8132. "value": "431321"
  8133. }, {
  8134. "label": "新化县",
  8135. "value": "431322"
  8136. }, {
  8137. "label": "冷水江市",
  8138. "value": "431381"
  8139. }, {
  8140. "label": "涟源市",
  8141. "value": "431382"
  8142. }], [{
  8143. "label": "吉首市",
  8144. "value": "433101"
  8145. }, {
  8146. "label": "泸溪县",
  8147. "value": "433122"
  8148. }, {
  8149. "label": "凤凰县",
  8150. "value": "433123"
  8151. }, {
  8152. "label": "花垣县",
  8153. "value": "433124"
  8154. }, {
  8155. "label": "保靖县",
  8156. "value": "433125"
  8157. }, {
  8158. "label": "古丈县",
  8159. "value": "433126"
  8160. }, {
  8161. "label": "永顺县",
  8162. "value": "433127"
  8163. }, {
  8164. "label": "龙山县",
  8165. "value": "433130"
  8166. }, {
  8167. "label": "湖南吉首经济开发区",
  8168. "value": "433172"
  8169. }, {
  8170. "label": "湖南永顺经济开发区",
  8171. "value": "433173"
  8172. }]], [[{
  8173. "label": "荔湾区",
  8174. "value": "440103"
  8175. }, {
  8176. "label": "越秀区",
  8177. "value": "440104"
  8178. }, {
  8179. "label": "海珠区",
  8180. "value": "440105"
  8181. }, {
  8182. "label": "天河区",
  8183. "value": "440106"
  8184. }, {
  8185. "label": "白云区",
  8186. "value": "440111"
  8187. }, {
  8188. "label": "黄埔区",
  8189. "value": "440112"
  8190. }, {
  8191. "label": "番禺区",
  8192. "value": "440113"
  8193. }, {
  8194. "label": "花都区",
  8195. "value": "440114"
  8196. }, {
  8197. "label": "南沙区",
  8198. "value": "440115"
  8199. }, {
  8200. "label": "从化区",
  8201. "value": "440117"
  8202. }, {
  8203. "label": "增城区",
  8204. "value": "440118"
  8205. }], [{
  8206. "label": "武江区",
  8207. "value": "440203"
  8208. }, {
  8209. "label": "浈江区",
  8210. "value": "440204"
  8211. }, {
  8212. "label": "曲江区",
  8213. "value": "440205"
  8214. }, {
  8215. "label": "始兴县",
  8216. "value": "440222"
  8217. }, {
  8218. "label": "仁化县",
  8219. "value": "440224"
  8220. }, {
  8221. "label": "翁源县",
  8222. "value": "440229"
  8223. }, {
  8224. "label": "乳源瑶族自治县",
  8225. "value": "440232"
  8226. }, {
  8227. "label": "新丰县",
  8228. "value": "440233"
  8229. }, {
  8230. "label": "乐昌市",
  8231. "value": "440281"
  8232. }, {
  8233. "label": "南雄市",
  8234. "value": "440282"
  8235. }], [{
  8236. "label": "罗湖区",
  8237. "value": "440303"
  8238. }, {
  8239. "label": "福田区",
  8240. "value": "440304"
  8241. }, {
  8242. "label": "南山区",
  8243. "value": "440305"
  8244. }, {
  8245. "label": "宝安区",
  8246. "value": "440306"
  8247. }, {
  8248. "label": "龙岗区",
  8249. "value": "440307"
  8250. }, {
  8251. "label": "盐田区",
  8252. "value": "440308"
  8253. }, {
  8254. "label": "龙华区",
  8255. "value": "440309"
  8256. }, {
  8257. "label": "坪山区",
  8258. "value": "440310"
  8259. }], [{
  8260. "label": "香洲区",
  8261. "value": "440402"
  8262. }, {
  8263. "label": "斗门区",
  8264. "value": "440403"
  8265. }, {
  8266. "label": "金湾区",
  8267. "value": "440404"
  8268. }], [{
  8269. "label": "龙湖区",
  8270. "value": "440507"
  8271. }, {
  8272. "label": "金平区",
  8273. "value": "440511"
  8274. }, {
  8275. "label": "濠江区",
  8276. "value": "440512"
  8277. }, {
  8278. "label": "潮阳区",
  8279. "value": "440513"
  8280. }, {
  8281. "label": "潮南区",
  8282. "value": "440514"
  8283. }, {
  8284. "label": "澄海区",
  8285. "value": "440515"
  8286. }, {
  8287. "label": "南澳县",
  8288. "value": "440523"
  8289. }], [{
  8290. "label": "禅城区",
  8291. "value": "440604"
  8292. }, {
  8293. "label": "南海区",
  8294. "value": "440605"
  8295. }, {
  8296. "label": "顺德区",
  8297. "value": "440606"
  8298. }, {
  8299. "label": "三水区",
  8300. "value": "440607"
  8301. }, {
  8302. "label": "高明区",
  8303. "value": "440608"
  8304. }], [{
  8305. "label": "蓬江区",
  8306. "value": "440703"
  8307. }, {
  8308. "label": "江海区",
  8309. "value": "440704"
  8310. }, {
  8311. "label": "新会区",
  8312. "value": "440705"
  8313. }, {
  8314. "label": "台山市",
  8315. "value": "440781"
  8316. }, {
  8317. "label": "开平市",
  8318. "value": "440783"
  8319. }, {
  8320. "label": "鹤山市",
  8321. "value": "440784"
  8322. }, {
  8323. "label": "恩平市",
  8324. "value": "440785"
  8325. }], [{
  8326. "label": "赤坎区",
  8327. "value": "440802"
  8328. }, {
  8329. "label": "霞山区",
  8330. "value": "440803"
  8331. }, {
  8332. "label": "坡头区",
  8333. "value": "440804"
  8334. }, {
  8335. "label": "麻章区",
  8336. "value": "440811"
  8337. }, {
  8338. "label": "遂溪县",
  8339. "value": "440823"
  8340. }, {
  8341. "label": "徐闻县",
  8342. "value": "440825"
  8343. }, {
  8344. "label": "廉江市",
  8345. "value": "440881"
  8346. }, {
  8347. "label": "雷州市",
  8348. "value": "440882"
  8349. }, {
  8350. "label": "吴川市",
  8351. "value": "440883"
  8352. }], [{
  8353. "label": "茂南区",
  8354. "value": "440902"
  8355. }, {
  8356. "label": "电白区",
  8357. "value": "440904"
  8358. }, {
  8359. "label": "高州市",
  8360. "value": "440981"
  8361. }, {
  8362. "label": "化州市",
  8363. "value": "440982"
  8364. }, {
  8365. "label": "信宜市",
  8366. "value": "440983"
  8367. }], [{
  8368. "label": "端州区",
  8369. "value": "441202"
  8370. }, {
  8371. "label": "鼎湖区",
  8372. "value": "441203"
  8373. }, {
  8374. "label": "高要区",
  8375. "value": "441204"
  8376. }, {
  8377. "label": "广宁县",
  8378. "value": "441223"
  8379. }, {
  8380. "label": "怀集县",
  8381. "value": "441224"
  8382. }, {
  8383. "label": "封开县",
  8384. "value": "441225"
  8385. }, {
  8386. "label": "德庆县",
  8387. "value": "441226"
  8388. }, {
  8389. "label": "四会市",
  8390. "value": "441284"
  8391. }], [{
  8392. "label": "惠城区",
  8393. "value": "441302"
  8394. }, {
  8395. "label": "惠阳区",
  8396. "value": "441303"
  8397. }, {
  8398. "label": "博罗县",
  8399. "value": "441322"
  8400. }, {
  8401. "label": "惠东县",
  8402. "value": "441323"
  8403. }, {
  8404. "label": "龙门县",
  8405. "value": "441324"
  8406. }], [{
  8407. "label": "梅江区",
  8408. "value": "441402"
  8409. }, {
  8410. "label": "梅县区",
  8411. "value": "441403"
  8412. }, {
  8413. "label": "大埔县",
  8414. "value": "441422"
  8415. }, {
  8416. "label": "丰顺县",
  8417. "value": "441423"
  8418. }, {
  8419. "label": "五华县",
  8420. "value": "441424"
  8421. }, {
  8422. "label": "平远县",
  8423. "value": "441426"
  8424. }, {
  8425. "label": "蕉岭县",
  8426. "value": "441427"
  8427. }, {
  8428. "label": "兴宁市",
  8429. "value": "441481"
  8430. }], [{
  8431. "label": "城区",
  8432. "value": "441502"
  8433. }, {
  8434. "label": "海丰县",
  8435. "value": "441521"
  8436. }, {
  8437. "label": "陆河县",
  8438. "value": "441523"
  8439. }, {
  8440. "label": "陆丰市",
  8441. "value": "441581"
  8442. }], [{
  8443. "label": "源城区",
  8444. "value": "441602"
  8445. }, {
  8446. "label": "紫金县",
  8447. "value": "441621"
  8448. }, {
  8449. "label": "龙川县",
  8450. "value": "441622"
  8451. }, {
  8452. "label": "连平县",
  8453. "value": "441623"
  8454. }, {
  8455. "label": "和平县",
  8456. "value": "441624"
  8457. }, {
  8458. "label": "东源县",
  8459. "value": "441625"
  8460. }], [{
  8461. "label": "江城区",
  8462. "value": "441702"
  8463. }, {
  8464. "label": "阳东区",
  8465. "value": "441704"
  8466. }, {
  8467. "label": "阳西县",
  8468. "value": "441721"
  8469. }, {
  8470. "label": "阳春市",
  8471. "value": "441781"
  8472. }], [{
  8473. "label": "清城区",
  8474. "value": "441802"
  8475. }, {
  8476. "label": "清新区",
  8477. "value": "441803"
  8478. }, {
  8479. "label": "佛冈县",
  8480. "value": "441821"
  8481. }, {
  8482. "label": "阳山县",
  8483. "value": "441823"
  8484. }, {
  8485. "label": "连山壮族瑶族自治县",
  8486. "value": "441825"
  8487. }, {
  8488. "label": "连南瑶族自治县",
  8489. "value": "441826"
  8490. }, {
  8491. "label": "英德市",
  8492. "value": "441881"
  8493. }, {
  8494. "label": "连州市",
  8495. "value": "441882"
  8496. }], [{
  8497. "label": "东莞市",
  8498. "value": "441900"
  8499. }], [{
  8500. "label": "中山市",
  8501. "value": "442000"
  8502. }], [{
  8503. "label": "湘桥区",
  8504. "value": "445102"
  8505. }, {
  8506. "label": "潮安区",
  8507. "value": "445103"
  8508. }, {
  8509. "label": "饶平县",
  8510. "value": "445122"
  8511. }], [{
  8512. "label": "榕城区",
  8513. "value": "445202"
  8514. }, {
  8515. "label": "揭东区",
  8516. "value": "445203"
  8517. }, {
  8518. "label": "揭西县",
  8519. "value": "445222"
  8520. }, {
  8521. "label": "惠来县",
  8522. "value": "445224"
  8523. }, {
  8524. "label": "普宁市",
  8525. "value": "445281"
  8526. }], [{
  8527. "label": "云城区",
  8528. "value": "445302"
  8529. }, {
  8530. "label": "云安区",
  8531. "value": "445303"
  8532. }, {
  8533. "label": "新兴县",
  8534. "value": "445321"
  8535. }, {
  8536. "label": "郁南县",
  8537. "value": "445322"
  8538. }, {
  8539. "label": "罗定市",
  8540. "value": "445381"
  8541. }]], [[{
  8542. "label": "兴宁区",
  8543. "value": "450102"
  8544. }, {
  8545. "label": "青秀区",
  8546. "value": "450103"
  8547. }, {
  8548. "label": "江南区",
  8549. "value": "450105"
  8550. }, {
  8551. "label": "西乡塘区",
  8552. "value": "450107"
  8553. }, {
  8554. "label": "良庆区",
  8555. "value": "450108"
  8556. }, {
  8557. "label": "邕宁区",
  8558. "value": "450109"
  8559. }, {
  8560. "label": "武鸣区",
  8561. "value": "450110"
  8562. }, {
  8563. "label": "隆安县",
  8564. "value": "450123"
  8565. }, {
  8566. "label": "马山县",
  8567. "value": "450124"
  8568. }, {
  8569. "label": "上林县",
  8570. "value": "450125"
  8571. }, {
  8572. "label": "宾阳县",
  8573. "value": "450126"
  8574. }, {
  8575. "label": "横县",
  8576. "value": "450127"
  8577. }], [{
  8578. "label": "城中区",
  8579. "value": "450202"
  8580. }, {
  8581. "label": "鱼峰区",
  8582. "value": "450203"
  8583. }, {
  8584. "label": "柳南区",
  8585. "value": "450204"
  8586. }, {
  8587. "label": "柳北区",
  8588. "value": "450205"
  8589. }, {
  8590. "label": "柳江区",
  8591. "value": "450206"
  8592. }, {
  8593. "label": "柳城县",
  8594. "value": "450222"
  8595. }, {
  8596. "label": "鹿寨县",
  8597. "value": "450223"
  8598. }, {
  8599. "label": "融安县",
  8600. "value": "450224"
  8601. }, {
  8602. "label": "融水苗族自治县",
  8603. "value": "450225"
  8604. }, {
  8605. "label": "三江侗族自治县",
  8606. "value": "450226"
  8607. }], [{
  8608. "label": "秀峰区",
  8609. "value": "450302"
  8610. }, {
  8611. "label": "叠彩区",
  8612. "value": "450303"
  8613. }, {
  8614. "label": "象山区",
  8615. "value": "450304"
  8616. }, {
  8617. "label": "七星区",
  8618. "value": "450305"
  8619. }, {
  8620. "label": "雁山区",
  8621. "value": "450311"
  8622. }, {
  8623. "label": "临桂区",
  8624. "value": "450312"
  8625. }, {
  8626. "label": "阳朔县",
  8627. "value": "450321"
  8628. }, {
  8629. "label": "灵川县",
  8630. "value": "450323"
  8631. }, {
  8632. "label": "全州县",
  8633. "value": "450324"
  8634. }, {
  8635. "label": "兴安县",
  8636. "value": "450325"
  8637. }, {
  8638. "label": "永福县",
  8639. "value": "450326"
  8640. }, {
  8641. "label": "灌阳县",
  8642. "value": "450327"
  8643. }, {
  8644. "label": "龙胜各族自治县",
  8645. "value": "450328"
  8646. }, {
  8647. "label": "资源县",
  8648. "value": "450329"
  8649. }, {
  8650. "label": "平乐县",
  8651. "value": "450330"
  8652. }, {
  8653. "label": "荔浦县",
  8654. "value": "450331"
  8655. }, {
  8656. "label": "恭城瑶族自治县",
  8657. "value": "450332"
  8658. }], [{
  8659. "label": "万秀区",
  8660. "value": "450403"
  8661. }, {
  8662. "label": "长洲区",
  8663. "value": "450405"
  8664. }, {
  8665. "label": "龙圩区",
  8666. "value": "450406"
  8667. }, {
  8668. "label": "苍梧县",
  8669. "value": "450421"
  8670. }, {
  8671. "label": "藤县",
  8672. "value": "450422"
  8673. }, {
  8674. "label": "蒙山县",
  8675. "value": "450423"
  8676. }, {
  8677. "label": "岑溪市",
  8678. "value": "450481"
  8679. }], [{
  8680. "label": "海城区",
  8681. "value": "450502"
  8682. }, {
  8683. "label": "银海区",
  8684. "value": "450503"
  8685. }, {
  8686. "label": "铁山港区",
  8687. "value": "450512"
  8688. }, {
  8689. "label": "合浦县",
  8690. "value": "450521"
  8691. }], [{
  8692. "label": "港口区",
  8693. "value": "450602"
  8694. }, {
  8695. "label": "防城区",
  8696. "value": "450603"
  8697. }, {
  8698. "label": "上思县",
  8699. "value": "450621"
  8700. }, {
  8701. "label": "东兴市",
  8702. "value": "450681"
  8703. }], [{
  8704. "label": "钦南区",
  8705. "value": "450702"
  8706. }, {
  8707. "label": "钦北区",
  8708. "value": "450703"
  8709. }, {
  8710. "label": "灵山县",
  8711. "value": "450721"
  8712. }, {
  8713. "label": "浦北县",
  8714. "value": "450722"
  8715. }], [{
  8716. "label": "港北区",
  8717. "value": "450802"
  8718. }, {
  8719. "label": "港南区",
  8720. "value": "450803"
  8721. }, {
  8722. "label": "覃塘区",
  8723. "value": "450804"
  8724. }, {
  8725. "label": "平南县",
  8726. "value": "450821"
  8727. }, {
  8728. "label": "桂平市",
  8729. "value": "450881"
  8730. }], [{
  8731. "label": "玉州区",
  8732. "value": "450902"
  8733. }, {
  8734. "label": "福绵区",
  8735. "value": "450903"
  8736. }, {
  8737. "label": "容县",
  8738. "value": "450921"
  8739. }, {
  8740. "label": "陆川县",
  8741. "value": "450922"
  8742. }, {
  8743. "label": "博白县",
  8744. "value": "450923"
  8745. }, {
  8746. "label": "兴业县",
  8747. "value": "450924"
  8748. }, {
  8749. "label": "北流市",
  8750. "value": "450981"
  8751. }], [{
  8752. "label": "右江区",
  8753. "value": "451002"
  8754. }, {
  8755. "label": "田阳县",
  8756. "value": "451021"
  8757. }, {
  8758. "label": "田东县",
  8759. "value": "451022"
  8760. }, {
  8761. "label": "平果县",
  8762. "value": "451023"
  8763. }, {
  8764. "label": "德保县",
  8765. "value": "451024"
  8766. }, {
  8767. "label": "那坡县",
  8768. "value": "451026"
  8769. }, {
  8770. "label": "凌云县",
  8771. "value": "451027"
  8772. }, {
  8773. "label": "乐业县",
  8774. "value": "451028"
  8775. }, {
  8776. "label": "田林县",
  8777. "value": "451029"
  8778. }, {
  8779. "label": "西林县",
  8780. "value": "451030"
  8781. }, {
  8782. "label": "隆林各族自治县",
  8783. "value": "451031"
  8784. }, {
  8785. "label": "靖西市",
  8786. "value": "451081"
  8787. }], [{
  8788. "label": "八步区",
  8789. "value": "451102"
  8790. }, {
  8791. "label": "平桂区",
  8792. "value": "451103"
  8793. }, {
  8794. "label": "昭平县",
  8795. "value": "451121"
  8796. }, {
  8797. "label": "钟山县",
  8798. "value": "451122"
  8799. }, {
  8800. "label": "富川瑶族自治县",
  8801. "value": "451123"
  8802. }], [{
  8803. "label": "金城江区",
  8804. "value": "451202"
  8805. }, {
  8806. "label": "宜州区",
  8807. "value": "451203"
  8808. }, {
  8809. "label": "南丹县",
  8810. "value": "451221"
  8811. }, {
  8812. "label": "天峨县",
  8813. "value": "451222"
  8814. }, {
  8815. "label": "凤山县",
  8816. "value": "451223"
  8817. }, {
  8818. "label": "东兰县",
  8819. "value": "451224"
  8820. }, {
  8821. "label": "罗城仫佬族自治县",
  8822. "value": "451225"
  8823. }, {
  8824. "label": "环江毛南族自治县",
  8825. "value": "451226"
  8826. }, {
  8827. "label": "巴马瑶族自治县",
  8828. "value": "451227"
  8829. }, {
  8830. "label": "都安瑶族自治县",
  8831. "value": "451228"
  8832. }, {
  8833. "label": "大化瑶族自治县",
  8834. "value": "451229"
  8835. }], [{
  8836. "label": "兴宾区",
  8837. "value": "451302"
  8838. }, {
  8839. "label": "忻城县",
  8840. "value": "451321"
  8841. }, {
  8842. "label": "象州县",
  8843. "value": "451322"
  8844. }, {
  8845. "label": "武宣县",
  8846. "value": "451323"
  8847. }, {
  8848. "label": "金秀瑶族自治县",
  8849. "value": "451324"
  8850. }, {
  8851. "label": "合山市",
  8852. "value": "451381"
  8853. }], [{
  8854. "label": "江州区",
  8855. "value": "451402"
  8856. }, {
  8857. "label": "扶绥县",
  8858. "value": "451421"
  8859. }, {
  8860. "label": "宁明县",
  8861. "value": "451422"
  8862. }, {
  8863. "label": "龙州县",
  8864. "value": "451423"
  8865. }, {
  8866. "label": "大新县",
  8867. "value": "451424"
  8868. }, {
  8869. "label": "天等县",
  8870. "value": "451425"
  8871. }, {
  8872. "label": "凭祥市",
  8873. "value": "451481"
  8874. }]], [[{
  8875. "label": "秀英区",
  8876. "value": "460105"
  8877. }, {
  8878. "label": "龙华区",
  8879. "value": "460106"
  8880. }, {
  8881. "label": "琼山区",
  8882. "value": "460107"
  8883. }, {
  8884. "label": "美兰区",
  8885. "value": "460108"
  8886. }], [{
  8887. "label": "海棠区",
  8888. "value": "460202"
  8889. }, {
  8890. "label": "吉阳区",
  8891. "value": "460203"
  8892. }, {
  8893. "label": "天涯区",
  8894. "value": "460204"
  8895. }, {
  8896. "label": "崖州区",
  8897. "value": "460205"
  8898. }], [{
  8899. "label": "西沙群岛",
  8900. "value": "460321"
  8901. }, {
  8902. "label": "南沙群岛",
  8903. "value": "460322"
  8904. }, {
  8905. "label": "中沙群岛的岛礁及其海域",
  8906. "value": "460323"
  8907. }], [{
  8908. "label": "儋州市",
  8909. "value": "460400"
  8910. }], [{
  8911. "label": "五指山市",
  8912. "value": "469001"
  8913. }, {
  8914. "label": "琼海市",
  8915. "value": "469002"
  8916. }, {
  8917. "label": "文昌市",
  8918. "value": "469005"
  8919. }, {
  8920. "label": "万宁市",
  8921. "value": "469006"
  8922. }, {
  8923. "label": "东方市",
  8924. "value": "469007"
  8925. }, {
  8926. "label": "定安县",
  8927. "value": "469021"
  8928. }, {
  8929. "label": "屯昌县",
  8930. "value": "469022"
  8931. }, {
  8932. "label": "澄迈县",
  8933. "value": "469023"
  8934. }, {
  8935. "label": "临高县",
  8936. "value": "469024"
  8937. }, {
  8938. "label": "白沙黎族自治县",
  8939. "value": "469025"
  8940. }, {
  8941. "label": "昌江黎族自治县",
  8942. "value": "469026"
  8943. }, {
  8944. "label": "乐东黎族自治县",
  8945. "value": "469027"
  8946. }, {
  8947. "label": "陵水黎族自治县",
  8948. "value": "469028"
  8949. }, {
  8950. "label": "保亭黎族苗族自治县",
  8951. "value": "469029"
  8952. }, {
  8953. "label": "琼中黎族苗族自治县",
  8954. "value": "469030"
  8955. }]], [[{
  8956. "label": "万州区",
  8957. "value": "500101"
  8958. }, {
  8959. "label": "涪陵区",
  8960. "value": "500102"
  8961. }, {
  8962. "label": "渝中区",
  8963. "value": "500103"
  8964. }, {
  8965. "label": "大渡口区",
  8966. "value": "500104"
  8967. }, {
  8968. "label": "江北区",
  8969. "value": "500105"
  8970. }, {
  8971. "label": "沙坪坝区",
  8972. "value": "500106"
  8973. }, {
  8974. "label": "九龙坡区",
  8975. "value": "500107"
  8976. }, {
  8977. "label": "南岸区",
  8978. "value": "500108"
  8979. }, {
  8980. "label": "北碚区",
  8981. "value": "500109"
  8982. }, {
  8983. "label": "綦江区",
  8984. "value": "500110"
  8985. }, {
  8986. "label": "大足区",
  8987. "value": "500111"
  8988. }, {
  8989. "label": "渝北区",
  8990. "value": "500112"
  8991. }, {
  8992. "label": "巴南区",
  8993. "value": "500113"
  8994. }, {
  8995. "label": "黔江区",
  8996. "value": "500114"
  8997. }, {
  8998. "label": "长寿区",
  8999. "value": "500115"
  9000. }, {
  9001. "label": "江津区",
  9002. "value": "500116"
  9003. }, {
  9004. "label": "合川区",
  9005. "value": "500117"
  9006. }, {
  9007. "label": "永川区",
  9008. "value": "500118"
  9009. }, {
  9010. "label": "南川区",
  9011. "value": "500119"
  9012. }, {
  9013. "label": "璧山区",
  9014. "value": "500120"
  9015. }, {
  9016. "label": "铜梁区",
  9017. "value": "500151"
  9018. }, {
  9019. "label": "潼南区",
  9020. "value": "500152"
  9021. }, {
  9022. "label": "荣昌区",
  9023. "value": "500153"
  9024. }, {
  9025. "label": "开州区",
  9026. "value": "500154"
  9027. }, {
  9028. "label": "梁平区",
  9029. "value": "500155"
  9030. }, {
  9031. "label": "武隆区",
  9032. "value": "500156"
  9033. }], [{
  9034. "label": "城口县",
  9035. "value": "500229"
  9036. }, {
  9037. "label": "丰都县",
  9038. "value": "500230"
  9039. }, {
  9040. "label": "垫江县",
  9041. "value": "500231"
  9042. }, {
  9043. "label": "忠县",
  9044. "value": "500233"
  9045. }, {
  9046. "label": "云阳县",
  9047. "value": "500235"
  9048. }, {
  9049. "label": "奉节县",
  9050. "value": "500236"
  9051. }, {
  9052. "label": "巫山县",
  9053. "value": "500237"
  9054. }, {
  9055. "label": "巫溪县",
  9056. "value": "500238"
  9057. }, {
  9058. "label": "石柱土家族自治县",
  9059. "value": "500240"
  9060. }, {
  9061. "label": "秀山土家族苗族自治县",
  9062. "value": "500241"
  9063. }, {
  9064. "label": "酉阳土家族苗族自治县",
  9065. "value": "500242"
  9066. }, {
  9067. "label": "彭水苗族土家族自治县",
  9068. "value": "500243"
  9069. }]], [[{
  9070. "label": "锦江区",
  9071. "value": "510104"
  9072. }, {
  9073. "label": "青羊区",
  9074. "value": "510105"
  9075. }, {
  9076. "label": "金牛区",
  9077. "value": "510106"
  9078. }, {
  9079. "label": "武侯区",
  9080. "value": "510107"
  9081. }, {
  9082. "label": "成华区",
  9083. "value": "510108"
  9084. }, {
  9085. "label": "龙泉驿区",
  9086. "value": "510112"
  9087. }, {
  9088. "label": "青白江区",
  9089. "value": "510113"
  9090. }, {
  9091. "label": "新都区",
  9092. "value": "510114"
  9093. }, {
  9094. "label": "温江区",
  9095. "value": "510115"
  9096. }, {
  9097. "label": "双流区",
  9098. "value": "510116"
  9099. }, {
  9100. "label": "郫都区",
  9101. "value": "510117"
  9102. }, {
  9103. "label": "金堂县",
  9104. "value": "510121"
  9105. }, {
  9106. "label": "大邑县",
  9107. "value": "510129"
  9108. }, {
  9109. "label": "蒲江县",
  9110. "value": "510131"
  9111. }, {
  9112. "label": "新津县",
  9113. "value": "510132"
  9114. }, {
  9115. "label": "都江堰市",
  9116. "value": "510181"
  9117. }, {
  9118. "label": "彭州市",
  9119. "value": "510182"
  9120. }, {
  9121. "label": "邛崃市",
  9122. "value": "510183"
  9123. }, {
  9124. "label": "崇州市",
  9125. "value": "510184"
  9126. }, {
  9127. "label": "简阳市",
  9128. "value": "510185"
  9129. }], [{
  9130. "label": "自流井区",
  9131. "value": "510302"
  9132. }, {
  9133. "label": "贡井区",
  9134. "value": "510303"
  9135. }, {
  9136. "label": "大安区",
  9137. "value": "510304"
  9138. }, {
  9139. "label": "沿滩区",
  9140. "value": "510311"
  9141. }, {
  9142. "label": "荣县",
  9143. "value": "510321"
  9144. }, {
  9145. "label": "富顺县",
  9146. "value": "510322"
  9147. }], [{
  9148. "label": "东区",
  9149. "value": "510402"
  9150. }, {
  9151. "label": "西区",
  9152. "value": "510403"
  9153. }, {
  9154. "label": "仁和区",
  9155. "value": "510411"
  9156. }, {
  9157. "label": "米易县",
  9158. "value": "510421"
  9159. }, {
  9160. "label": "盐边县",
  9161. "value": "510422"
  9162. }], [{
  9163. "label": "江阳区",
  9164. "value": "510502"
  9165. }, {
  9166. "label": "纳溪区",
  9167. "value": "510503"
  9168. }, {
  9169. "label": "龙马潭区",
  9170. "value": "510504"
  9171. }, {
  9172. "label": "泸县",
  9173. "value": "510521"
  9174. }, {
  9175. "label": "合江县",
  9176. "value": "510522"
  9177. }, {
  9178. "label": "叙永县",
  9179. "value": "510524"
  9180. }, {
  9181. "label": "古蔺县",
  9182. "value": "510525"
  9183. }], [{
  9184. "label": "旌阳区",
  9185. "value": "510603"
  9186. }, {
  9187. "label": "罗江区",
  9188. "value": "510604"
  9189. }, {
  9190. "label": "中江县",
  9191. "value": "510623"
  9192. }, {
  9193. "label": "广汉市",
  9194. "value": "510681"
  9195. }, {
  9196. "label": "什邡市",
  9197. "value": "510682"
  9198. }, {
  9199. "label": "绵竹市",
  9200. "value": "510683"
  9201. }], [{
  9202. "label": "涪城区",
  9203. "value": "510703"
  9204. }, {
  9205. "label": "游仙区",
  9206. "value": "510704"
  9207. }, {
  9208. "label": "安州区",
  9209. "value": "510705"
  9210. }, {
  9211. "label": "三台县",
  9212. "value": "510722"
  9213. }, {
  9214. "label": "盐亭县",
  9215. "value": "510723"
  9216. }, {
  9217. "label": "梓潼县",
  9218. "value": "510725"
  9219. }, {
  9220. "label": "北川羌族自治县",
  9221. "value": "510726"
  9222. }, {
  9223. "label": "平武县",
  9224. "value": "510727"
  9225. }, {
  9226. "label": "江油市",
  9227. "value": "510781"
  9228. }], [{
  9229. "label": "利州区",
  9230. "value": "510802"
  9231. }, {
  9232. "label": "昭化区",
  9233. "value": "510811"
  9234. }, {
  9235. "label": "朝天区",
  9236. "value": "510812"
  9237. }, {
  9238. "label": "旺苍县",
  9239. "value": "510821"
  9240. }, {
  9241. "label": "青川县",
  9242. "value": "510822"
  9243. }, {
  9244. "label": "剑阁县",
  9245. "value": "510823"
  9246. }, {
  9247. "label": "苍溪县",
  9248. "value": "510824"
  9249. }], [{
  9250. "label": "船山区",
  9251. "value": "510903"
  9252. }, {
  9253. "label": "安居区",
  9254. "value": "510904"
  9255. }, {
  9256. "label": "蓬溪县",
  9257. "value": "510921"
  9258. }, {
  9259. "label": "射洪县",
  9260. "value": "510922"
  9261. }, {
  9262. "label": "大英县",
  9263. "value": "510923"
  9264. }], [{
  9265. "label": "市中区",
  9266. "value": "511002"
  9267. }, {
  9268. "label": "东兴区",
  9269. "value": "511011"
  9270. }, {
  9271. "label": "威远县",
  9272. "value": "511024"
  9273. }, {
  9274. "label": "资中县",
  9275. "value": "511025"
  9276. }, {
  9277. "label": "内江经济开发区",
  9278. "value": "511071"
  9279. }, {
  9280. "label": "隆昌市",
  9281. "value": "511083"
  9282. }], [{
  9283. "label": "市中区",
  9284. "value": "511102"
  9285. }, {
  9286. "label": "沙湾区",
  9287. "value": "511111"
  9288. }, {
  9289. "label": "五通桥区",
  9290. "value": "511112"
  9291. }, {
  9292. "label": "金口河区",
  9293. "value": "511113"
  9294. }, {
  9295. "label": "犍为县",
  9296. "value": "511123"
  9297. }, {
  9298. "label": "井研县",
  9299. "value": "511124"
  9300. }, {
  9301. "label": "夹江县",
  9302. "value": "511126"
  9303. }, {
  9304. "label": "沐川县",
  9305. "value": "511129"
  9306. }, {
  9307. "label": "峨边彝族自治县",
  9308. "value": "511132"
  9309. }, {
  9310. "label": "马边彝族自治县",
  9311. "value": "511133"
  9312. }, {
  9313. "label": "峨眉山市",
  9314. "value": "511181"
  9315. }], [{
  9316. "label": "顺庆区",
  9317. "value": "511302"
  9318. }, {
  9319. "label": "高坪区",
  9320. "value": "511303"
  9321. }, {
  9322. "label": "嘉陵区",
  9323. "value": "511304"
  9324. }, {
  9325. "label": "南部县",
  9326. "value": "511321"
  9327. }, {
  9328. "label": "营山县",
  9329. "value": "511322"
  9330. }, {
  9331. "label": "蓬安县",
  9332. "value": "511323"
  9333. }, {
  9334. "label": "仪陇县",
  9335. "value": "511324"
  9336. }, {
  9337. "label": "西充县",
  9338. "value": "511325"
  9339. }, {
  9340. "label": "阆中市",
  9341. "value": "511381"
  9342. }], [{
  9343. "label": "东坡区",
  9344. "value": "511402"
  9345. }, {
  9346. "label": "彭山区",
  9347. "value": "511403"
  9348. }, {
  9349. "label": "仁寿县",
  9350. "value": "511421"
  9351. }, {
  9352. "label": "洪雅县",
  9353. "value": "511423"
  9354. }, {
  9355. "label": "丹棱县",
  9356. "value": "511424"
  9357. }, {
  9358. "label": "青神县",
  9359. "value": "511425"
  9360. }], [{
  9361. "label": "翠屏区",
  9362. "value": "511502"
  9363. }, {
  9364. "label": "南溪区",
  9365. "value": "511503"
  9366. }, {
  9367. "label": "宜宾县",
  9368. "value": "511521"
  9369. }, {
  9370. "label": "江安县",
  9371. "value": "511523"
  9372. }, {
  9373. "label": "长宁县",
  9374. "value": "511524"
  9375. }, {
  9376. "label": "高县",
  9377. "value": "511525"
  9378. }, {
  9379. "label": "珙县",
  9380. "value": "511526"
  9381. }, {
  9382. "label": "筠连县",
  9383. "value": "511527"
  9384. }, {
  9385. "label": "兴文县",
  9386. "value": "511528"
  9387. }, {
  9388. "label": "屏山县",
  9389. "value": "511529"
  9390. }], [{
  9391. "label": "广安区",
  9392. "value": "511602"
  9393. }, {
  9394. "label": "前锋区",
  9395. "value": "511603"
  9396. }, {
  9397. "label": "岳池县",
  9398. "value": "511621"
  9399. }, {
  9400. "label": "武胜县",
  9401. "value": "511622"
  9402. }, {
  9403. "label": "邻水县",
  9404. "value": "511623"
  9405. }, {
  9406. "label": "华蓥市",
  9407. "value": "511681"
  9408. }], [{
  9409. "label": "通川区",
  9410. "value": "511702"
  9411. }, {
  9412. "label": "达川区",
  9413. "value": "511703"
  9414. }, {
  9415. "label": "宣汉县",
  9416. "value": "511722"
  9417. }, {
  9418. "label": "开江县",
  9419. "value": "511723"
  9420. }, {
  9421. "label": "大竹县",
  9422. "value": "511724"
  9423. }, {
  9424. "label": "渠县",
  9425. "value": "511725"
  9426. }, {
  9427. "label": "达州经济开发区",
  9428. "value": "511771"
  9429. }, {
  9430. "label": "万源市",
  9431. "value": "511781"
  9432. }], [{
  9433. "label": "雨城区",
  9434. "value": "511802"
  9435. }, {
  9436. "label": "名山区",
  9437. "value": "511803"
  9438. }, {
  9439. "label": "荥经县",
  9440. "value": "511822"
  9441. }, {
  9442. "label": "汉源县",
  9443. "value": "511823"
  9444. }, {
  9445. "label": "石棉县",
  9446. "value": "511824"
  9447. }, {
  9448. "label": "天全县",
  9449. "value": "511825"
  9450. }, {
  9451. "label": "芦山县",
  9452. "value": "511826"
  9453. }, {
  9454. "label": "宝兴县",
  9455. "value": "511827"
  9456. }], [{
  9457. "label": "巴州区",
  9458. "value": "511902"
  9459. }, {
  9460. "label": "恩阳区",
  9461. "value": "511903"
  9462. }, {
  9463. "label": "通江县",
  9464. "value": "511921"
  9465. }, {
  9466. "label": "南江县",
  9467. "value": "511922"
  9468. }, {
  9469. "label": "平昌县",
  9470. "value": "511923"
  9471. }, {
  9472. "label": "巴中经济开发区",
  9473. "value": "511971"
  9474. }], [{
  9475. "label": "雁江区",
  9476. "value": "512002"
  9477. }, {
  9478. "label": "安岳县",
  9479. "value": "512021"
  9480. }, {
  9481. "label": "乐至县",
  9482. "value": "512022"
  9483. }], [{
  9484. "label": "马尔康市",
  9485. "value": "513201"
  9486. }, {
  9487. "label": "汶川县",
  9488. "value": "513221"
  9489. }, {
  9490. "label": "理县",
  9491. "value": "513222"
  9492. }, {
  9493. "label": "茂县",
  9494. "value": "513223"
  9495. }, {
  9496. "label": "松潘县",
  9497. "value": "513224"
  9498. }, {
  9499. "label": "九寨沟县",
  9500. "value": "513225"
  9501. }, {
  9502. "label": "金川县",
  9503. "value": "513226"
  9504. }, {
  9505. "label": "小金县",
  9506. "value": "513227"
  9507. }, {
  9508. "label": "黑水县",
  9509. "value": "513228"
  9510. }, {
  9511. "label": "壤塘县",
  9512. "value": "513230"
  9513. }, {
  9514. "label": "阿坝县",
  9515. "value": "513231"
  9516. }, {
  9517. "label": "若尔盖县",
  9518. "value": "513232"
  9519. }, {
  9520. "label": "红原县",
  9521. "value": "513233"
  9522. }], [{
  9523. "label": "康定市",
  9524. "value": "513301"
  9525. }, {
  9526. "label": "泸定县",
  9527. "value": "513322"
  9528. }, {
  9529. "label": "丹巴县",
  9530. "value": "513323"
  9531. }, {
  9532. "label": "九龙县",
  9533. "value": "513324"
  9534. }, {
  9535. "label": "雅江县",
  9536. "value": "513325"
  9537. }, {
  9538. "label": "道孚县",
  9539. "value": "513326"
  9540. }, {
  9541. "label": "炉霍县",
  9542. "value": "513327"
  9543. }, {
  9544. "label": "甘孜县",
  9545. "value": "513328"
  9546. }, {
  9547. "label": "新龙县",
  9548. "value": "513329"
  9549. }, {
  9550. "label": "德格县",
  9551. "value": "513330"
  9552. }, {
  9553. "label": "白玉县",
  9554. "value": "513331"
  9555. }, {
  9556. "label": "石渠县",
  9557. "value": "513332"
  9558. }, {
  9559. "label": "色达县",
  9560. "value": "513333"
  9561. }, {
  9562. "label": "理塘县",
  9563. "value": "513334"
  9564. }, {
  9565. "label": "巴塘县",
  9566. "value": "513335"
  9567. }, {
  9568. "label": "乡城县",
  9569. "value": "513336"
  9570. }, {
  9571. "label": "稻城县",
  9572. "value": "513337"
  9573. }, {
  9574. "label": "得荣县",
  9575. "value": "513338"
  9576. }], [{
  9577. "label": "西昌市",
  9578. "value": "513401"
  9579. }, {
  9580. "label": "木里藏族自治县",
  9581. "value": "513422"
  9582. }, {
  9583. "label": "盐源县",
  9584. "value": "513423"
  9585. }, {
  9586. "label": "德昌县",
  9587. "value": "513424"
  9588. }, {
  9589. "label": "会理县",
  9590. "value": "513425"
  9591. }, {
  9592. "label": "会东县",
  9593. "value": "513426"
  9594. }, {
  9595. "label": "宁南县",
  9596. "value": "513427"
  9597. }, {
  9598. "label": "普格县",
  9599. "value": "513428"
  9600. }, {
  9601. "label": "布拖县",
  9602. "value": "513429"
  9603. }, {
  9604. "label": "金阳县",
  9605. "value": "513430"
  9606. }, {
  9607. "label": "昭觉县",
  9608. "value": "513431"
  9609. }, {
  9610. "label": "喜德县",
  9611. "value": "513432"
  9612. }, {
  9613. "label": "冕宁县",
  9614. "value": "513433"
  9615. }, {
  9616. "label": "越西县",
  9617. "value": "513434"
  9618. }, {
  9619. "label": "甘洛县",
  9620. "value": "513435"
  9621. }, {
  9622. "label": "美姑县",
  9623. "value": "513436"
  9624. }, {
  9625. "label": "雷波县",
  9626. "value": "513437"
  9627. }]], [[{
  9628. "label": "南明区",
  9629. "value": "520102"
  9630. }, {
  9631. "label": "云岩区",
  9632. "value": "520103"
  9633. }, {
  9634. "label": "花溪区",
  9635. "value": "520111"
  9636. }, {
  9637. "label": "乌当区",
  9638. "value": "520112"
  9639. }, {
  9640. "label": "白云区",
  9641. "value": "520113"
  9642. }, {
  9643. "label": "观山湖区",
  9644. "value": "520115"
  9645. }, {
  9646. "label": "开阳县",
  9647. "value": "520121"
  9648. }, {
  9649. "label": "息烽县",
  9650. "value": "520122"
  9651. }, {
  9652. "label": "修文县",
  9653. "value": "520123"
  9654. }, {
  9655. "label": "清镇市",
  9656. "value": "520181"
  9657. }], [{
  9658. "label": "钟山区",
  9659. "value": "520201"
  9660. }, {
  9661. "label": "六枝特区",
  9662. "value": "520203"
  9663. }, {
  9664. "label": "水城县",
  9665. "value": "520221"
  9666. }, {
  9667. "label": "盘州市",
  9668. "value": "520281"
  9669. }], [{
  9670. "label": "红花岗区",
  9671. "value": "520302"
  9672. }, {
  9673. "label": "汇川区",
  9674. "value": "520303"
  9675. }, {
  9676. "label": "播州区",
  9677. "value": "520304"
  9678. }, {
  9679. "label": "桐梓县",
  9680. "value": "520322"
  9681. }, {
  9682. "label": "绥阳县",
  9683. "value": "520323"
  9684. }, {
  9685. "label": "正安县",
  9686. "value": "520324"
  9687. }, {
  9688. "label": "道真仡佬族苗族自治县",
  9689. "value": "520325"
  9690. }, {
  9691. "label": "务川仡佬族苗族自治县",
  9692. "value": "520326"
  9693. }, {
  9694. "label": "凤冈县",
  9695. "value": "520327"
  9696. }, {
  9697. "label": "湄潭县",
  9698. "value": "520328"
  9699. }, {
  9700. "label": "余庆县",
  9701. "value": "520329"
  9702. }, {
  9703. "label": "习水县",
  9704. "value": "520330"
  9705. }, {
  9706. "label": "赤水市",
  9707. "value": "520381"
  9708. }, {
  9709. "label": "仁怀市",
  9710. "value": "520382"
  9711. }], [{
  9712. "label": "西秀区",
  9713. "value": "520402"
  9714. }, {
  9715. "label": "平坝区",
  9716. "value": "520403"
  9717. }, {
  9718. "label": "普定县",
  9719. "value": "520422"
  9720. }, {
  9721. "label": "镇宁布依族苗族自治县",
  9722. "value": "520423"
  9723. }, {
  9724. "label": "关岭布依族苗族自治县",
  9725. "value": "520424"
  9726. }, {
  9727. "label": "紫云苗族布依族自治县",
  9728. "value": "520425"
  9729. }], [{
  9730. "label": "七星关区",
  9731. "value": "520502"
  9732. }, {
  9733. "label": "大方县",
  9734. "value": "520521"
  9735. }, {
  9736. "label": "黔西县",
  9737. "value": "520522"
  9738. }, {
  9739. "label": "金沙县",
  9740. "value": "520523"
  9741. }, {
  9742. "label": "织金县",
  9743. "value": "520524"
  9744. }, {
  9745. "label": "纳雍县",
  9746. "value": "520525"
  9747. }, {
  9748. "label": "威宁彝族回族苗族自治县",
  9749. "value": "520526"
  9750. }, {
  9751. "label": "赫章县",
  9752. "value": "520527"
  9753. }], [{
  9754. "label": "碧江区",
  9755. "value": "520602"
  9756. }, {
  9757. "label": "万山区",
  9758. "value": "520603"
  9759. }, {
  9760. "label": "江口县",
  9761. "value": "520621"
  9762. }, {
  9763. "label": "玉屏侗族自治县",
  9764. "value": "520622"
  9765. }, {
  9766. "label": "石阡县",
  9767. "value": "520623"
  9768. }, {
  9769. "label": "思南县",
  9770. "value": "520624"
  9771. }, {
  9772. "label": "印江土家族苗族自治县",
  9773. "value": "520625"
  9774. }, {
  9775. "label": "德江县",
  9776. "value": "520626"
  9777. }, {
  9778. "label": "沿河土家族自治县",
  9779. "value": "520627"
  9780. }, {
  9781. "label": "松桃苗族自治县",
  9782. "value": "520628"
  9783. }], [{
  9784. "label": "兴义市",
  9785. "value": "522301"
  9786. }, {
  9787. "label": "兴仁县",
  9788. "value": "522322"
  9789. }, {
  9790. "label": "普安县",
  9791. "value": "522323"
  9792. }, {
  9793. "label": "晴隆县",
  9794. "value": "522324"
  9795. }, {
  9796. "label": "贞丰县",
  9797. "value": "522325"
  9798. }, {
  9799. "label": "望谟县",
  9800. "value": "522326"
  9801. }, {
  9802. "label": "册亨县",
  9803. "value": "522327"
  9804. }, {
  9805. "label": "安龙县",
  9806. "value": "522328"
  9807. }], [{
  9808. "label": "凯里市",
  9809. "value": "522601"
  9810. }, {
  9811. "label": "黄平县",
  9812. "value": "522622"
  9813. }, {
  9814. "label": "施秉县",
  9815. "value": "522623"
  9816. }, {
  9817. "label": "三穗县",
  9818. "value": "522624"
  9819. }, {
  9820. "label": "镇远县",
  9821. "value": "522625"
  9822. }, {
  9823. "label": "岑巩县",
  9824. "value": "522626"
  9825. }, {
  9826. "label": "天柱县",
  9827. "value": "522627"
  9828. }, {
  9829. "label": "锦屏县",
  9830. "value": "522628"
  9831. }, {
  9832. "label": "剑河县",
  9833. "value": "522629"
  9834. }, {
  9835. "label": "台江县",
  9836. "value": "522630"
  9837. }, {
  9838. "label": "黎平县",
  9839. "value": "522631"
  9840. }, {
  9841. "label": "榕江县",
  9842. "value": "522632"
  9843. }, {
  9844. "label": "从江县",
  9845. "value": "522633"
  9846. }, {
  9847. "label": "雷山县",
  9848. "value": "522634"
  9849. }, {
  9850. "label": "麻江县",
  9851. "value": "522635"
  9852. }, {
  9853. "label": "丹寨县",
  9854. "value": "522636"
  9855. }], [{
  9856. "label": "都匀市",
  9857. "value": "522701"
  9858. }, {
  9859. "label": "福泉市",
  9860. "value": "522702"
  9861. }, {
  9862. "label": "荔波县",
  9863. "value": "522722"
  9864. }, {
  9865. "label": "贵定县",
  9866. "value": "522723"
  9867. }, {
  9868. "label": "瓮安县",
  9869. "value": "522725"
  9870. }, {
  9871. "label": "独山县",
  9872. "value": "522726"
  9873. }, {
  9874. "label": "平塘县",
  9875. "value": "522727"
  9876. }, {
  9877. "label": "罗甸县",
  9878. "value": "522728"
  9879. }, {
  9880. "label": "长顺县",
  9881. "value": "522729"
  9882. }, {
  9883. "label": "龙里县",
  9884. "value": "522730"
  9885. }, {
  9886. "label": "惠水县",
  9887. "value": "522731"
  9888. }, {
  9889. "label": "三都水族自治县",
  9890. "value": "522732"
  9891. }]], [[{
  9892. "label": "五华区",
  9893. "value": "530102"
  9894. }, {
  9895. "label": "盘龙区",
  9896. "value": "530103"
  9897. }, {
  9898. "label": "官渡区",
  9899. "value": "530111"
  9900. }, {
  9901. "label": "西山区",
  9902. "value": "530112"
  9903. }, {
  9904. "label": "东川区",
  9905. "value": "530113"
  9906. }, {
  9907. "label": "呈贡区",
  9908. "value": "530114"
  9909. }, {
  9910. "label": "晋宁区",
  9911. "value": "530115"
  9912. }, {
  9913. "label": "富民县",
  9914. "value": "530124"
  9915. }, {
  9916. "label": "宜良县",
  9917. "value": "530125"
  9918. }, {
  9919. "label": "石林彝族自治县",
  9920. "value": "530126"
  9921. }, {
  9922. "label": "嵩明县",
  9923. "value": "530127"
  9924. }, {
  9925. "label": "禄劝彝族苗族自治县",
  9926. "value": "530128"
  9927. }, {
  9928. "label": "寻甸回族彝族自治县",
  9929. "value": "530129"
  9930. }, {
  9931. "label": "安宁市",
  9932. "value": "530181"
  9933. }], [{
  9934. "label": "麒麟区",
  9935. "value": "530302"
  9936. }, {
  9937. "label": "沾益区",
  9938. "value": "530303"
  9939. }, {
  9940. "label": "马龙县",
  9941. "value": "530321"
  9942. }, {
  9943. "label": "陆良县",
  9944. "value": "530322"
  9945. }, {
  9946. "label": "师宗县",
  9947. "value": "530323"
  9948. }, {
  9949. "label": "罗平县",
  9950. "value": "530324"
  9951. }, {
  9952. "label": "富源县",
  9953. "value": "530325"
  9954. }, {
  9955. "label": "会泽县",
  9956. "value": "530326"
  9957. }, {
  9958. "label": "宣威市",
  9959. "value": "530381"
  9960. }], [{
  9961. "label": "红塔区",
  9962. "value": "530402"
  9963. }, {
  9964. "label": "江川区",
  9965. "value": "530403"
  9966. }, {
  9967. "label": "澄江县",
  9968. "value": "530422"
  9969. }, {
  9970. "label": "通海县",
  9971. "value": "530423"
  9972. }, {
  9973. "label": "华宁县",
  9974. "value": "530424"
  9975. }, {
  9976. "label": "易门县",
  9977. "value": "530425"
  9978. }, {
  9979. "label": "峨山彝族自治县",
  9980. "value": "530426"
  9981. }, {
  9982. "label": "新平彝族傣族自治县",
  9983. "value": "530427"
  9984. }, {
  9985. "label": "元江哈尼族彝族傣族自治县",
  9986. "value": "530428"
  9987. }], [{
  9988. "label": "隆阳区",
  9989. "value": "530502"
  9990. }, {
  9991. "label": "施甸县",
  9992. "value": "530521"
  9993. }, {
  9994. "label": "龙陵县",
  9995. "value": "530523"
  9996. }, {
  9997. "label": "昌宁县",
  9998. "value": "530524"
  9999. }, {
  10000. "label": "腾冲市",
  10001. "value": "530581"
  10002. }], [{
  10003. "label": "昭阳区",
  10004. "value": "530602"
  10005. }, {
  10006. "label": "鲁甸县",
  10007. "value": "530621"
  10008. }, {
  10009. "label": "巧家县",
  10010. "value": "530622"
  10011. }, {
  10012. "label": "盐津县",
  10013. "value": "530623"
  10014. }, {
  10015. "label": "大关县",
  10016. "value": "530624"
  10017. }, {
  10018. "label": "永善县",
  10019. "value": "530625"
  10020. }, {
  10021. "label": "绥江县",
  10022. "value": "530626"
  10023. }, {
  10024. "label": "镇雄县",
  10025. "value": "530627"
  10026. }, {
  10027. "label": "彝良县",
  10028. "value": "530628"
  10029. }, {
  10030. "label": "威信县",
  10031. "value": "530629"
  10032. }, {
  10033. "label": "水富县",
  10034. "value": "530630"
  10035. }], [{
  10036. "label": "古城区",
  10037. "value": "530702"
  10038. }, {
  10039. "label": "玉龙纳西族自治县",
  10040. "value": "530721"
  10041. }, {
  10042. "label": "永胜县",
  10043. "value": "530722"
  10044. }, {
  10045. "label": "华坪县",
  10046. "value": "530723"
  10047. }, {
  10048. "label": "宁蒗彝族自治县",
  10049. "value": "530724"
  10050. }], [{
  10051. "label": "思茅区",
  10052. "value": "530802"
  10053. }, {
  10054. "label": "宁洱哈尼族彝族自治县",
  10055. "value": "530821"
  10056. }, {
  10057. "label": "墨江哈尼族自治县",
  10058. "value": "530822"
  10059. }, {
  10060. "label": "景东彝族自治县",
  10061. "value": "530823"
  10062. }, {
  10063. "label": "景谷傣族彝族自治县",
  10064. "value": "530824"
  10065. }, {
  10066. "label": "镇沅彝族哈尼族拉祜族自治县",
  10067. "value": "530825"
  10068. }, {
  10069. "label": "江城哈尼族彝族自治县",
  10070. "value": "530826"
  10071. }, {
  10072. "label": "孟连傣族拉祜族佤族自治县",
  10073. "value": "530827"
  10074. }, {
  10075. "label": "澜沧拉祜族自治县",
  10076. "value": "530828"
  10077. }, {
  10078. "label": "西盟佤族自治县",
  10079. "value": "530829"
  10080. }], [{
  10081. "label": "临翔区",
  10082. "value": "530902"
  10083. }, {
  10084. "label": "凤庆县",
  10085. "value": "530921"
  10086. }, {
  10087. "label": "云县",
  10088. "value": "530922"
  10089. }, {
  10090. "label": "永德县",
  10091. "value": "530923"
  10092. }, {
  10093. "label": "镇康县",
  10094. "value": "530924"
  10095. }, {
  10096. "label": "双江拉祜族佤族布朗族傣族自治县",
  10097. "value": "530925"
  10098. }, {
  10099. "label": "耿马傣族佤族自治县",
  10100. "value": "530926"
  10101. }, {
  10102. "label": "沧源佤族自治县",
  10103. "value": "530927"
  10104. }], [{
  10105. "label": "楚雄市",
  10106. "value": "532301"
  10107. }, {
  10108. "label": "双柏县",
  10109. "value": "532322"
  10110. }, {
  10111. "label": "牟定县",
  10112. "value": "532323"
  10113. }, {
  10114. "label": "南华县",
  10115. "value": "532324"
  10116. }, {
  10117. "label": "姚安县",
  10118. "value": "532325"
  10119. }, {
  10120. "label": "大姚县",
  10121. "value": "532326"
  10122. }, {
  10123. "label": "永仁县",
  10124. "value": "532327"
  10125. }, {
  10126. "label": "元谋县",
  10127. "value": "532328"
  10128. }, {
  10129. "label": "武定县",
  10130. "value": "532329"
  10131. }, {
  10132. "label": "禄丰县",
  10133. "value": "532331"
  10134. }], [{
  10135. "label": "个旧市",
  10136. "value": "532501"
  10137. }, {
  10138. "label": "开远市",
  10139. "value": "532502"
  10140. }, {
  10141. "label": "蒙自市",
  10142. "value": "532503"
  10143. }, {
  10144. "label": "弥勒市",
  10145. "value": "532504"
  10146. }, {
  10147. "label": "屏边苗族自治县",
  10148. "value": "532523"
  10149. }, {
  10150. "label": "建水县",
  10151. "value": "532524"
  10152. }, {
  10153. "label": "石屏县",
  10154. "value": "532525"
  10155. }, {
  10156. "label": "泸西县",
  10157. "value": "532527"
  10158. }, {
  10159. "label": "元阳县",
  10160. "value": "532528"
  10161. }, {
  10162. "label": "红河县",
  10163. "value": "532529"
  10164. }, {
  10165. "label": "金平苗族瑶族傣族自治县",
  10166. "value": "532530"
  10167. }, {
  10168. "label": "绿春县",
  10169. "value": "532531"
  10170. }, {
  10171. "label": "河口瑶族自治县",
  10172. "value": "532532"
  10173. }], [{
  10174. "label": "文山市",
  10175. "value": "532601"
  10176. }, {
  10177. "label": "砚山县",
  10178. "value": "532622"
  10179. }, {
  10180. "label": "西畴县",
  10181. "value": "532623"
  10182. }, {
  10183. "label": "麻栗坡县",
  10184. "value": "532624"
  10185. }, {
  10186. "label": "马关县",
  10187. "value": "532625"
  10188. }, {
  10189. "label": "丘北县",
  10190. "value": "532626"
  10191. }, {
  10192. "label": "广南县",
  10193. "value": "532627"
  10194. }, {
  10195. "label": "富宁县",
  10196. "value": "532628"
  10197. }], [{
  10198. "label": "景洪市",
  10199. "value": "532801"
  10200. }, {
  10201. "label": "勐海县",
  10202. "value": "532822"
  10203. }, {
  10204. "label": "勐腊县",
  10205. "value": "532823"
  10206. }], [{
  10207. "label": "大理市",
  10208. "value": "532901"
  10209. }, {
  10210. "label": "漾濞彝族自治县",
  10211. "value": "532922"
  10212. }, {
  10213. "label": "祥云县",
  10214. "value": "532923"
  10215. }, {
  10216. "label": "宾川县",
  10217. "value": "532924"
  10218. }, {
  10219. "label": "弥渡县",
  10220. "value": "532925"
  10221. }, {
  10222. "label": "南涧彝族自治县",
  10223. "value": "532926"
  10224. }, {
  10225. "label": "巍山彝族回族自治县",
  10226. "value": "532927"
  10227. }, {
  10228. "label": "永平县",
  10229. "value": "532928"
  10230. }, {
  10231. "label": "云龙县",
  10232. "value": "532929"
  10233. }, {
  10234. "label": "洱源县",
  10235. "value": "532930"
  10236. }, {
  10237. "label": "剑川县",
  10238. "value": "532931"
  10239. }, {
  10240. "label": "鹤庆县",
  10241. "value": "532932"
  10242. }], [{
  10243. "label": "瑞丽市",
  10244. "value": "533102"
  10245. }, {
  10246. "label": "芒市",
  10247. "value": "533103"
  10248. }, {
  10249. "label": "梁河县",
  10250. "value": "533122"
  10251. }, {
  10252. "label": "盈江县",
  10253. "value": "533123"
  10254. }, {
  10255. "label": "陇川县",
  10256. "value": "533124"
  10257. }], [{
  10258. "label": "泸水市",
  10259. "value": "533301"
  10260. }, {
  10261. "label": "福贡县",
  10262. "value": "533323"
  10263. }, {
  10264. "label": "贡山独龙族怒族自治县",
  10265. "value": "533324"
  10266. }, {
  10267. "label": "兰坪白族普米族自治县",
  10268. "value": "533325"
  10269. }], [{
  10270. "label": "香格里拉市",
  10271. "value": "533401"
  10272. }, {
  10273. "label": "德钦县",
  10274. "value": "533422"
  10275. }, {
  10276. "label": "维西傈僳族自治县",
  10277. "value": "533423"
  10278. }]], [[{
  10279. "label": "城关区",
  10280. "value": "540102"
  10281. }, {
  10282. "label": "堆龙德庆区",
  10283. "value": "540103"
  10284. }, {
  10285. "label": "林周县",
  10286. "value": "540121"
  10287. }, {
  10288. "label": "当雄县",
  10289. "value": "540122"
  10290. }, {
  10291. "label": "尼木县",
  10292. "value": "540123"
  10293. }, {
  10294. "label": "曲水县",
  10295. "value": "540124"
  10296. }, {
  10297. "label": "达孜县",
  10298. "value": "540126"
  10299. }, {
  10300. "label": "墨竹工卡县",
  10301. "value": "540127"
  10302. }, {
  10303. "label": "格尔木藏青工业园区",
  10304. "value": "540171"
  10305. }, {
  10306. "label": "拉萨经济技术开发区",
  10307. "value": "540172"
  10308. }, {
  10309. "label": "西藏文化旅游创意园区",
  10310. "value": "540173"
  10311. }, {
  10312. "label": "达孜工业园区",
  10313. "value": "540174"
  10314. }], [{
  10315. "label": "桑珠孜区",
  10316. "value": "540202"
  10317. }, {
  10318. "label": "南木林县",
  10319. "value": "540221"
  10320. }, {
  10321. "label": "江孜县",
  10322. "value": "540222"
  10323. }, {
  10324. "label": "定日县",
  10325. "value": "540223"
  10326. }, {
  10327. "label": "萨迦县",
  10328. "value": "540224"
  10329. }, {
  10330. "label": "拉孜县",
  10331. "value": "540225"
  10332. }, {
  10333. "label": "昂仁县",
  10334. "value": "540226"
  10335. }, {
  10336. "label": "谢通门县",
  10337. "value": "540227"
  10338. }, {
  10339. "label": "白朗县",
  10340. "value": "540228"
  10341. }, {
  10342. "label": "仁布县",
  10343. "value": "540229"
  10344. }, {
  10345. "label": "康马县",
  10346. "value": "540230"
  10347. }, {
  10348. "label": "定结县",
  10349. "value": "540231"
  10350. }, {
  10351. "label": "仲巴县",
  10352. "value": "540232"
  10353. }, {
  10354. "label": "亚东县",
  10355. "value": "540233"
  10356. }, {
  10357. "label": "吉隆县",
  10358. "value": "540234"
  10359. }, {
  10360. "label": "聂拉木县",
  10361. "value": "540235"
  10362. }, {
  10363. "label": "萨嘎县",
  10364. "value": "540236"
  10365. }, {
  10366. "label": "岗巴县",
  10367. "value": "540237"
  10368. }], [{
  10369. "label": "卡若区",
  10370. "value": "540302"
  10371. }, {
  10372. "label": "江达县",
  10373. "value": "540321"
  10374. }, {
  10375. "label": "贡觉县",
  10376. "value": "540322"
  10377. }, {
  10378. "label": "类乌齐县",
  10379. "value": "540323"
  10380. }, {
  10381. "label": "丁青县",
  10382. "value": "540324"
  10383. }, {
  10384. "label": "察雅县",
  10385. "value": "540325"
  10386. }, {
  10387. "label": "八宿县",
  10388. "value": "540326"
  10389. }, {
  10390. "label": "左贡县",
  10391. "value": "540327"
  10392. }, {
  10393. "label": "芒康县",
  10394. "value": "540328"
  10395. }, {
  10396. "label": "洛隆县",
  10397. "value": "540329"
  10398. }, {
  10399. "label": "边坝县",
  10400. "value": "540330"
  10401. }], [{
  10402. "label": "巴宜区",
  10403. "value": "540402"
  10404. }, {
  10405. "label": "工布江达县",
  10406. "value": "540421"
  10407. }, {
  10408. "label": "米林县",
  10409. "value": "540422"
  10410. }, {
  10411. "label": "墨脱县",
  10412. "value": "540423"
  10413. }, {
  10414. "label": "波密县",
  10415. "value": "540424"
  10416. }, {
  10417. "label": "察隅县",
  10418. "value": "540425"
  10419. }, {
  10420. "label": "朗县",
  10421. "value": "540426"
  10422. }], [{
  10423. "label": "乃东区",
  10424. "value": "540502"
  10425. }, {
  10426. "label": "扎囊县",
  10427. "value": "540521"
  10428. }, {
  10429. "label": "贡嘎县",
  10430. "value": "540522"
  10431. }, {
  10432. "label": "桑日县",
  10433. "value": "540523"
  10434. }, {
  10435. "label": "琼结县",
  10436. "value": "540524"
  10437. }, {
  10438. "label": "曲松县",
  10439. "value": "540525"
  10440. }, {
  10441. "label": "措美县",
  10442. "value": "540526"
  10443. }, {
  10444. "label": "洛扎县",
  10445. "value": "540527"
  10446. }, {
  10447. "label": "加查县",
  10448. "value": "540528"
  10449. }, {
  10450. "label": "隆子县",
  10451. "value": "540529"
  10452. }, {
  10453. "label": "错那县",
  10454. "value": "540530"
  10455. }, {
  10456. "label": "浪卡子县",
  10457. "value": "540531"
  10458. }], [{
  10459. "label": "那曲县",
  10460. "value": "542421"
  10461. }, {
  10462. "label": "嘉黎县",
  10463. "value": "542422"
  10464. }, {
  10465. "label": "比如县",
  10466. "value": "542423"
  10467. }, {
  10468. "label": "聂荣县",
  10469. "value": "542424"
  10470. }, {
  10471. "label": "安多县",
  10472. "value": "542425"
  10473. }, {
  10474. "label": "申扎县",
  10475. "value": "542426"
  10476. }, {
  10477. "label": "索县",
  10478. "value": "542427"
  10479. }, {
  10480. "label": "班戈县",
  10481. "value": "542428"
  10482. }, {
  10483. "label": "巴青县",
  10484. "value": "542429"
  10485. }, {
  10486. "label": "尼玛县",
  10487. "value": "542430"
  10488. }, {
  10489. "label": "双湖县",
  10490. "value": "542431"
  10491. }], [{
  10492. "label": "普兰县",
  10493. "value": "542521"
  10494. }, {
  10495. "label": "札达县",
  10496. "value": "542522"
  10497. }, {
  10498. "label": "噶尔县",
  10499. "value": "542523"
  10500. }, {
  10501. "label": "日土县",
  10502. "value": "542524"
  10503. }, {
  10504. "label": "革吉县",
  10505. "value": "542525"
  10506. }, {
  10507. "label": "改则县",
  10508. "value": "542526"
  10509. }, {
  10510. "label": "措勤县",
  10511. "value": "542527"
  10512. }]], [[{
  10513. "label": "新城区",
  10514. "value": "610102"
  10515. }, {
  10516. "label": "碑林区",
  10517. "value": "610103"
  10518. }, {
  10519. "label": "莲湖区",
  10520. "value": "610104"
  10521. }, {
  10522. "label": "灞桥区",
  10523. "value": "610111"
  10524. }, {
  10525. "label": "未央区",
  10526. "value": "610112"
  10527. }, {
  10528. "label": "雁塔区",
  10529. "value": "610113"
  10530. }, {
  10531. "label": "阎良区",
  10532. "value": "610114"
  10533. }, {
  10534. "label": "临潼区",
  10535. "value": "610115"
  10536. }, {
  10537. "label": "长安区",
  10538. "value": "610116"
  10539. }, {
  10540. "label": "高陵区",
  10541. "value": "610117"
  10542. }, {
  10543. "label": "鄠邑区",
  10544. "value": "610118"
  10545. }, {
  10546. "label": "蓝田县",
  10547. "value": "610122"
  10548. }, {
  10549. "label": "周至县",
  10550. "value": "610124"
  10551. }], [{
  10552. "label": "王益区",
  10553. "value": "610202"
  10554. }, {
  10555. "label": "印台区",
  10556. "value": "610203"
  10557. }, {
  10558. "label": "耀州区",
  10559. "value": "610204"
  10560. }, {
  10561. "label": "宜君县",
  10562. "value": "610222"
  10563. }], [{
  10564. "label": "渭滨区",
  10565. "value": "610302"
  10566. }, {
  10567. "label": "金台区",
  10568. "value": "610303"
  10569. }, {
  10570. "label": "陈仓区",
  10571. "value": "610304"
  10572. }, {
  10573. "label": "凤翔县",
  10574. "value": "610322"
  10575. }, {
  10576. "label": "岐山县",
  10577. "value": "610323"
  10578. }, {
  10579. "label": "扶风县",
  10580. "value": "610324"
  10581. }, {
  10582. "label": "眉县",
  10583. "value": "610326"
  10584. }, {
  10585. "label": "陇县",
  10586. "value": "610327"
  10587. }, {
  10588. "label": "千阳县",
  10589. "value": "610328"
  10590. }, {
  10591. "label": "麟游县",
  10592. "value": "610329"
  10593. }, {
  10594. "label": "凤县",
  10595. "value": "610330"
  10596. }, {
  10597. "label": "太白县",
  10598. "value": "610331"
  10599. }], [{
  10600. "label": "秦都区",
  10601. "value": "610402"
  10602. }, {
  10603. "label": "杨陵区",
  10604. "value": "610403"
  10605. }, {
  10606. "label": "渭城区",
  10607. "value": "610404"
  10608. }, {
  10609. "label": "三原县",
  10610. "value": "610422"
  10611. }, {
  10612. "label": "泾阳县",
  10613. "value": "610423"
  10614. }, {
  10615. "label": "乾县",
  10616. "value": "610424"
  10617. }, {
  10618. "label": "礼泉县",
  10619. "value": "610425"
  10620. }, {
  10621. "label": "永寿县",
  10622. "value": "610426"
  10623. }, {
  10624. "label": "彬县",
  10625. "value": "610427"
  10626. }, {
  10627. "label": "长武县",
  10628. "value": "610428"
  10629. }, {
  10630. "label": "旬邑县",
  10631. "value": "610429"
  10632. }, {
  10633. "label": "淳化县",
  10634. "value": "610430"
  10635. }, {
  10636. "label": "武功县",
  10637. "value": "610431"
  10638. }, {
  10639. "label": "兴平市",
  10640. "value": "610481"
  10641. }], [{
  10642. "label": "临渭区",
  10643. "value": "610502"
  10644. }, {
  10645. "label": "华州区",
  10646. "value": "610503"
  10647. }, {
  10648. "label": "潼关县",
  10649. "value": "610522"
  10650. }, {
  10651. "label": "大荔县",
  10652. "value": "610523"
  10653. }, {
  10654. "label": "合阳县",
  10655. "value": "610524"
  10656. }, {
  10657. "label": "澄城县",
  10658. "value": "610525"
  10659. }, {
  10660. "label": "蒲城县",
  10661. "value": "610526"
  10662. }, {
  10663. "label": "白水县",
  10664. "value": "610527"
  10665. }, {
  10666. "label": "富平县",
  10667. "value": "610528"
  10668. }, {
  10669. "label": "韩城市",
  10670. "value": "610581"
  10671. }, {
  10672. "label": "华阴市",
  10673. "value": "610582"
  10674. }], [{
  10675. "label": "宝塔区",
  10676. "value": "610602"
  10677. }, {
  10678. "label": "安塞区",
  10679. "value": "610603"
  10680. }, {
  10681. "label": "延长县",
  10682. "value": "610621"
  10683. }, {
  10684. "label": "延川县",
  10685. "value": "610622"
  10686. }, {
  10687. "label": "子长县",
  10688. "value": "610623"
  10689. }, {
  10690. "label": "志丹县",
  10691. "value": "610625"
  10692. }, {
  10693. "label": "吴起县",
  10694. "value": "610626"
  10695. }, {
  10696. "label": "甘泉县",
  10697. "value": "610627"
  10698. }, {
  10699. "label": "富县",
  10700. "value": "610628"
  10701. }, {
  10702. "label": "洛川县",
  10703. "value": "610629"
  10704. }, {
  10705. "label": "宜川县",
  10706. "value": "610630"
  10707. }, {
  10708. "label": "黄龙县",
  10709. "value": "610631"
  10710. }, {
  10711. "label": "黄陵县",
  10712. "value": "610632"
  10713. }], [{
  10714. "label": "汉台区",
  10715. "value": "610702"
  10716. }, {
  10717. "label": "南郑区",
  10718. "value": "610703"
  10719. }, {
  10720. "label": "城固县",
  10721. "value": "610722"
  10722. }, {
  10723. "label": "洋县",
  10724. "value": "610723"
  10725. }, {
  10726. "label": "西乡县",
  10727. "value": "610724"
  10728. }, {
  10729. "label": "勉县",
  10730. "value": "610725"
  10731. }, {
  10732. "label": "宁强县",
  10733. "value": "610726"
  10734. }, {
  10735. "label": "略阳县",
  10736. "value": "610727"
  10737. }, {
  10738. "label": "镇巴县",
  10739. "value": "610728"
  10740. }, {
  10741. "label": "留坝县",
  10742. "value": "610729"
  10743. }, {
  10744. "label": "佛坪县",
  10745. "value": "610730"
  10746. }], [{
  10747. "label": "榆阳区",
  10748. "value": "610802"
  10749. }, {
  10750. "label": "横山区",
  10751. "value": "610803"
  10752. }, {
  10753. "label": "府谷县",
  10754. "value": "610822"
  10755. }, {
  10756. "label": "靖边县",
  10757. "value": "610824"
  10758. }, {
  10759. "label": "定边县",
  10760. "value": "610825"
  10761. }, {
  10762. "label": "绥德县",
  10763. "value": "610826"
  10764. }, {
  10765. "label": "米脂县",
  10766. "value": "610827"
  10767. }, {
  10768. "label": "佳县",
  10769. "value": "610828"
  10770. }, {
  10771. "label": "吴堡县",
  10772. "value": "610829"
  10773. }, {
  10774. "label": "清涧县",
  10775. "value": "610830"
  10776. }, {
  10777. "label": "子洲县",
  10778. "value": "610831"
  10779. }, {
  10780. "label": "神木市",
  10781. "value": "610881"
  10782. }], [{
  10783. "label": "汉滨区",
  10784. "value": "610902"
  10785. }, {
  10786. "label": "汉阴县",
  10787. "value": "610921"
  10788. }, {
  10789. "label": "石泉县",
  10790. "value": "610922"
  10791. }, {
  10792. "label": "宁陕县",
  10793. "value": "610923"
  10794. }, {
  10795. "label": "紫阳县",
  10796. "value": "610924"
  10797. }, {
  10798. "label": "岚皋县",
  10799. "value": "610925"
  10800. }, {
  10801. "label": "平利县",
  10802. "value": "610926"
  10803. }, {
  10804. "label": "镇坪县",
  10805. "value": "610927"
  10806. }, {
  10807. "label": "旬阳县",
  10808. "value": "610928"
  10809. }, {
  10810. "label": "白河县",
  10811. "value": "610929"
  10812. }], [{
  10813. "label": "商州区",
  10814. "value": "611002"
  10815. }, {
  10816. "label": "洛南县",
  10817. "value": "611021"
  10818. }, {
  10819. "label": "丹凤县",
  10820. "value": "611022"
  10821. }, {
  10822. "label": "商南县",
  10823. "value": "611023"
  10824. }, {
  10825. "label": "山阳县",
  10826. "value": "611024"
  10827. }, {
  10828. "label": "镇安县",
  10829. "value": "611025"
  10830. }, {
  10831. "label": "柞水县",
  10832. "value": "611026"
  10833. }]], [[{
  10834. "label": "城关区",
  10835. "value": "620102"
  10836. }, {
  10837. "label": "七里河区",
  10838. "value": "620103"
  10839. }, {
  10840. "label": "西固区",
  10841. "value": "620104"
  10842. }, {
  10843. "label": "安宁区",
  10844. "value": "620105"
  10845. }, {
  10846. "label": "红古区",
  10847. "value": "620111"
  10848. }, {
  10849. "label": "永登县",
  10850. "value": "620121"
  10851. }, {
  10852. "label": "皋兰县",
  10853. "value": "620122"
  10854. }, {
  10855. "label": "榆中县",
  10856. "value": "620123"
  10857. }, {
  10858. "label": "兰州新区",
  10859. "value": "620171"
  10860. }], [{
  10861. "label": "嘉峪关市",
  10862. "value": "620201"
  10863. }], [{
  10864. "label": "金川区",
  10865. "value": "620302"
  10866. }, {
  10867. "label": "永昌县",
  10868. "value": "620321"
  10869. }], [{
  10870. "label": "白银区",
  10871. "value": "620402"
  10872. }, {
  10873. "label": "平川区",
  10874. "value": "620403"
  10875. }, {
  10876. "label": "靖远县",
  10877. "value": "620421"
  10878. }, {
  10879. "label": "会宁县",
  10880. "value": "620422"
  10881. }, {
  10882. "label": "景泰县",
  10883. "value": "620423"
  10884. }], [{
  10885. "label": "秦州区",
  10886. "value": "620502"
  10887. }, {
  10888. "label": "麦积区",
  10889. "value": "620503"
  10890. }, {
  10891. "label": "清水县",
  10892. "value": "620521"
  10893. }, {
  10894. "label": "秦安县",
  10895. "value": "620522"
  10896. }, {
  10897. "label": "甘谷县",
  10898. "value": "620523"
  10899. }, {
  10900. "label": "武山县",
  10901. "value": "620524"
  10902. }, {
  10903. "label": "张家川回族自治县",
  10904. "value": "620525"
  10905. }], [{
  10906. "label": "凉州区",
  10907. "value": "620602"
  10908. }, {
  10909. "label": "民勤县",
  10910. "value": "620621"
  10911. }, {
  10912. "label": "古浪县",
  10913. "value": "620622"
  10914. }, {
  10915. "label": "天祝藏族自治县",
  10916. "value": "620623"
  10917. }], [{
  10918. "label": "甘州区",
  10919. "value": "620702"
  10920. }, {
  10921. "label": "肃南裕固族自治县",
  10922. "value": "620721"
  10923. }, {
  10924. "label": "民乐县",
  10925. "value": "620722"
  10926. }, {
  10927. "label": "临泽县",
  10928. "value": "620723"
  10929. }, {
  10930. "label": "高台县",
  10931. "value": "620724"
  10932. }, {
  10933. "label": "山丹县",
  10934. "value": "620725"
  10935. }], [{
  10936. "label": "崆峒区",
  10937. "value": "620802"
  10938. }, {
  10939. "label": "泾川县",
  10940. "value": "620821"
  10941. }, {
  10942. "label": "灵台县",
  10943. "value": "620822"
  10944. }, {
  10945. "label": "崇信县",
  10946. "value": "620823"
  10947. }, {
  10948. "label": "华亭县",
  10949. "value": "620824"
  10950. }, {
  10951. "label": "庄浪县",
  10952. "value": "620825"
  10953. }, {
  10954. "label": "静宁县",
  10955. "value": "620826"
  10956. }, {
  10957. "label": "平凉工业园区",
  10958. "value": "620871"
  10959. }], [{
  10960. "label": "肃州区",
  10961. "value": "620902"
  10962. }, {
  10963. "label": "金塔县",
  10964. "value": "620921"
  10965. }, {
  10966. "label": "瓜州县",
  10967. "value": "620922"
  10968. }, {
  10969. "label": "肃北蒙古族自治县",
  10970. "value": "620923"
  10971. }, {
  10972. "label": "阿克塞哈萨克族自治县",
  10973. "value": "620924"
  10974. }, {
  10975. "label": "玉门市",
  10976. "value": "620981"
  10977. }, {
  10978. "label": "敦煌市",
  10979. "value": "620982"
  10980. }], [{
  10981. "label": "西峰区",
  10982. "value": "621002"
  10983. }, {
  10984. "label": "庆城县",
  10985. "value": "621021"
  10986. }, {
  10987. "label": "环县",
  10988. "value": "621022"
  10989. }, {
  10990. "label": "华池县",
  10991. "value": "621023"
  10992. }, {
  10993. "label": "合水县",
  10994. "value": "621024"
  10995. }, {
  10996. "label": "正宁县",
  10997. "value": "621025"
  10998. }, {
  10999. "label": "宁县",
  11000. "value": "621026"
  11001. }, {
  11002. "label": "镇原县",
  11003. "value": "621027"
  11004. }], [{
  11005. "label": "安定区",
  11006. "value": "621102"
  11007. }, {
  11008. "label": "通渭县",
  11009. "value": "621121"
  11010. }, {
  11011. "label": "陇西县",
  11012. "value": "621122"
  11013. }, {
  11014. "label": "渭源县",
  11015. "value": "621123"
  11016. }, {
  11017. "label": "临洮县",
  11018. "value": "621124"
  11019. }, {
  11020. "label": "漳县",
  11021. "value": "621125"
  11022. }, {
  11023. "label": "岷县",
  11024. "value": "621126"
  11025. }], [{
  11026. "label": "武都区",
  11027. "value": "621202"
  11028. }, {
  11029. "label": "成县",
  11030. "value": "621221"
  11031. }, {
  11032. "label": "文县",
  11033. "value": "621222"
  11034. }, {
  11035. "label": "宕昌县",
  11036. "value": "621223"
  11037. }, {
  11038. "label": "康县",
  11039. "value": "621224"
  11040. }, {
  11041. "label": "西和县",
  11042. "value": "621225"
  11043. }, {
  11044. "label": "礼县",
  11045. "value": "621226"
  11046. }, {
  11047. "label": "徽县",
  11048. "value": "621227"
  11049. }, {
  11050. "label": "两当县",
  11051. "value": "621228"
  11052. }], [{
  11053. "label": "临夏市",
  11054. "value": "622901"
  11055. }, {
  11056. "label": "临夏县",
  11057. "value": "622921"
  11058. }, {
  11059. "label": "康乐县",
  11060. "value": "622922"
  11061. }, {
  11062. "label": "永靖县",
  11063. "value": "622923"
  11064. }, {
  11065. "label": "广河县",
  11066. "value": "622924"
  11067. }, {
  11068. "label": "和政县",
  11069. "value": "622925"
  11070. }, {
  11071. "label": "东乡族自治县",
  11072. "value": "622926"
  11073. }, {
  11074. "label": "积石山保安族东乡族撒拉族自治县",
  11075. "value": "622927"
  11076. }], [{
  11077. "label": "合作市",
  11078. "value": "623001"
  11079. }, {
  11080. "label": "临潭县",
  11081. "value": "623021"
  11082. }, {
  11083. "label": "卓尼县",
  11084. "value": "623022"
  11085. }, {
  11086. "label": "舟曲县",
  11087. "value": "623023"
  11088. }, {
  11089. "label": "迭部县",
  11090. "value": "623024"
  11091. }, {
  11092. "label": "玛曲县",
  11093. "value": "623025"
  11094. }, {
  11095. "label": "碌曲县",
  11096. "value": "623026"
  11097. }, {
  11098. "label": "夏河县",
  11099. "value": "623027"
  11100. }]], [[{
  11101. "label": "城东区",
  11102. "value": "630102"
  11103. }, {
  11104. "label": "城中区",
  11105. "value": "630103"
  11106. }, {
  11107. "label": "城西区",
  11108. "value": "630104"
  11109. }, {
  11110. "label": "城北区",
  11111. "value": "630105"
  11112. }, {
  11113. "label": "大通回族土族自治县",
  11114. "value": "630121"
  11115. }, {
  11116. "label": "湟中县",
  11117. "value": "630122"
  11118. }, {
  11119. "label": "湟源县",
  11120. "value": "630123"
  11121. }], [{
  11122. "label": "乐都区",
  11123. "value": "630202"
  11124. }, {
  11125. "label": "平安区",
  11126. "value": "630203"
  11127. }, {
  11128. "label": "民和回族土族自治县",
  11129. "value": "630222"
  11130. }, {
  11131. "label": "互助土族自治县",
  11132. "value": "630223"
  11133. }, {
  11134. "label": "化隆回族自治县",
  11135. "value": "630224"
  11136. }, {
  11137. "label": "循化撒拉族自治县",
  11138. "value": "630225"
  11139. }], [{
  11140. "label": "门源回族自治县",
  11141. "value": "632221"
  11142. }, {
  11143. "label": "祁连县",
  11144. "value": "632222"
  11145. }, {
  11146. "label": "海晏县",
  11147. "value": "632223"
  11148. }, {
  11149. "label": "刚察县",
  11150. "value": "632224"
  11151. }], [{
  11152. "label": "同仁县",
  11153. "value": "632321"
  11154. }, {
  11155. "label": "尖扎县",
  11156. "value": "632322"
  11157. }, {
  11158. "label": "泽库县",
  11159. "value": "632323"
  11160. }, {
  11161. "label": "河南蒙古族自治县",
  11162. "value": "632324"
  11163. }], [{
  11164. "label": "共和县",
  11165. "value": "632521"
  11166. }, {
  11167. "label": "同德县",
  11168. "value": "632522"
  11169. }, {
  11170. "label": "贵德县",
  11171. "value": "632523"
  11172. }, {
  11173. "label": "兴海县",
  11174. "value": "632524"
  11175. }, {
  11176. "label": "贵南县",
  11177. "value": "632525"
  11178. }], [{
  11179. "label": "玛沁县",
  11180. "value": "632621"
  11181. }, {
  11182. "label": "班玛县",
  11183. "value": "632622"
  11184. }, {
  11185. "label": "甘德县",
  11186. "value": "632623"
  11187. }, {
  11188. "label": "达日县",
  11189. "value": "632624"
  11190. }, {
  11191. "label": "久治县",
  11192. "value": "632625"
  11193. }, {
  11194. "label": "玛多县",
  11195. "value": "632626"
  11196. }], [{
  11197. "label": "玉树市",
  11198. "value": "632701"
  11199. }, {
  11200. "label": "杂多县",
  11201. "value": "632722"
  11202. }, {
  11203. "label": "称多县",
  11204. "value": "632723"
  11205. }, {
  11206. "label": "治多县",
  11207. "value": "632724"
  11208. }, {
  11209. "label": "囊谦县",
  11210. "value": "632725"
  11211. }, {
  11212. "label": "曲麻莱县",
  11213. "value": "632726"
  11214. }], [{
  11215. "label": "格尔木市",
  11216. "value": "632801"
  11217. }, {
  11218. "label": "德令哈市",
  11219. "value": "632802"
  11220. }, {
  11221. "label": "乌兰县",
  11222. "value": "632821"
  11223. }, {
  11224. "label": "都兰县",
  11225. "value": "632822"
  11226. }, {
  11227. "label": "天峻县",
  11228. "value": "632823"
  11229. }, {
  11230. "label": "大柴旦行政委员会",
  11231. "value": "632857"
  11232. }, {
  11233. "label": "冷湖行政委员会",
  11234. "value": "632858"
  11235. }, {
  11236. "label": "茫崖行政委员会",
  11237. "value": "632859"
  11238. }]], [[{
  11239. "label": "兴庆区",
  11240. "value": "640104"
  11241. }, {
  11242. "label": "西夏区",
  11243. "value": "640105"
  11244. }, {
  11245. "label": "金凤区",
  11246. "value": "640106"
  11247. }, {
  11248. "label": "永宁县",
  11249. "value": "640121"
  11250. }, {
  11251. "label": "贺兰县",
  11252. "value": "640122"
  11253. }, {
  11254. "label": "灵武市",
  11255. "value": "640181"
  11256. }], [{
  11257. "label": "大武口区",
  11258. "value": "640202"
  11259. }, {
  11260. "label": "惠农区",
  11261. "value": "640205"
  11262. }, {
  11263. "label": "平罗县",
  11264. "value": "640221"
  11265. }], [{
  11266. "label": "利通区",
  11267. "value": "640302"
  11268. }, {
  11269. "label": "红寺堡区",
  11270. "value": "640303"
  11271. }, {
  11272. "label": "盐池县",
  11273. "value": "640323"
  11274. }, {
  11275. "label": "同心县",
  11276. "value": "640324"
  11277. }, {
  11278. "label": "青铜峡市",
  11279. "value": "640381"
  11280. }], [{
  11281. "label": "原州区",
  11282. "value": "640402"
  11283. }, {
  11284. "label": "西吉县",
  11285. "value": "640422"
  11286. }, {
  11287. "label": "隆德县",
  11288. "value": "640423"
  11289. }, {
  11290. "label": "泾源县",
  11291. "value": "640424"
  11292. }, {
  11293. "label": "彭阳县",
  11294. "value": "640425"
  11295. }], [{
  11296. "label": "沙坡头区",
  11297. "value": "640502"
  11298. }, {
  11299. "label": "中宁县",
  11300. "value": "640521"
  11301. }, {
  11302. "label": "海原县",
  11303. "value": "640522"
  11304. }]], [[{
  11305. "label": "天山区",
  11306. "value": "650102"
  11307. }, {
  11308. "label": "沙依巴克区",
  11309. "value": "650103"
  11310. }, {
  11311. "label": "新市区",
  11312. "value": "650104"
  11313. }, {
  11314. "label": "水磨沟区",
  11315. "value": "650105"
  11316. }, {
  11317. "label": "头屯河区",
  11318. "value": "650106"
  11319. }, {
  11320. "label": "达坂城区",
  11321. "value": "650107"
  11322. }, {
  11323. "label": "米东区",
  11324. "value": "650109"
  11325. }, {
  11326. "label": "乌鲁木齐县",
  11327. "value": "650121"
  11328. }, {
  11329. "label": "乌鲁木齐经济技术开发区",
  11330. "value": "650171"
  11331. }, {
  11332. "label": "乌鲁木齐高新技术产业开发区",
  11333. "value": "650172"
  11334. }], [{
  11335. "label": "独山子区",
  11336. "value": "650202"
  11337. }, {
  11338. "label": "克拉玛依区",
  11339. "value": "650203"
  11340. }, {
  11341. "label": "白碱滩区",
  11342. "value": "650204"
  11343. }, {
  11344. "label": "乌尔禾区",
  11345. "value": "650205"
  11346. }], [{
  11347. "label": "高昌区",
  11348. "value": "650402"
  11349. }, {
  11350. "label": "鄯善县",
  11351. "value": "650421"
  11352. }, {
  11353. "label": "托克逊县",
  11354. "value": "650422"
  11355. }], [{
  11356. "label": "伊州区",
  11357. "value": "650502"
  11358. }, {
  11359. "label": "巴里坤哈萨克自治县",
  11360. "value": "650521"
  11361. }, {
  11362. "label": "伊吾县",
  11363. "value": "650522"
  11364. }], [{
  11365. "label": "昌吉市",
  11366. "value": "652301"
  11367. }, {
  11368. "label": "阜康市",
  11369. "value": "652302"
  11370. }, {
  11371. "label": "呼图壁县",
  11372. "value": "652323"
  11373. }, {
  11374. "label": "玛纳斯县",
  11375. "value": "652324"
  11376. }, {
  11377. "label": "奇台县",
  11378. "value": "652325"
  11379. }, {
  11380. "label": "吉木萨尔县",
  11381. "value": "652327"
  11382. }, {
  11383. "label": "木垒哈萨克自治县",
  11384. "value": "652328"
  11385. }], [{
  11386. "label": "博乐市",
  11387. "value": "652701"
  11388. }, {
  11389. "label": "阿拉山口市",
  11390. "value": "652702"
  11391. }, {
  11392. "label": "精河县",
  11393. "value": "652722"
  11394. }, {
  11395. "label": "温泉县",
  11396. "value": "652723"
  11397. }], [{
  11398. "label": "库尔勒市",
  11399. "value": "652801"
  11400. }, {
  11401. "label": "轮台县",
  11402. "value": "652822"
  11403. }, {
  11404. "label": "尉犁县",
  11405. "value": "652823"
  11406. }, {
  11407. "label": "若羌县",
  11408. "value": "652824"
  11409. }, {
  11410. "label": "且末县",
  11411. "value": "652825"
  11412. }, {
  11413. "label": "焉耆回族自治县",
  11414. "value": "652826"
  11415. }, {
  11416. "label": "和静县",
  11417. "value": "652827"
  11418. }, {
  11419. "label": "和硕县",
  11420. "value": "652828"
  11421. }, {
  11422. "label": "博湖县",
  11423. "value": "652829"
  11424. }, {
  11425. "label": "库尔勒经济技术开发区",
  11426. "value": "652871"
  11427. }], [{
  11428. "label": "阿克苏市",
  11429. "value": "652901"
  11430. }, {
  11431. "label": "温宿县",
  11432. "value": "652922"
  11433. }, {
  11434. "label": "库车县",
  11435. "value": "652923"
  11436. }, {
  11437. "label": "沙雅县",
  11438. "value": "652924"
  11439. }, {
  11440. "label": "新和县",
  11441. "value": "652925"
  11442. }, {
  11443. "label": "拜城县",
  11444. "value": "652926"
  11445. }, {
  11446. "label": "乌什县",
  11447. "value": "652927"
  11448. }, {
  11449. "label": "阿瓦提县",
  11450. "value": "652928"
  11451. }, {
  11452. "label": "柯坪县",
  11453. "value": "652929"
  11454. }], [{
  11455. "label": "阿图什市",
  11456. "value": "653001"
  11457. }, {
  11458. "label": "阿克陶县",
  11459. "value": "653022"
  11460. }, {
  11461. "label": "阿合奇县",
  11462. "value": "653023"
  11463. }, {
  11464. "label": "乌恰县",
  11465. "value": "653024"
  11466. }], [{
  11467. "label": "喀什市",
  11468. "value": "653101"
  11469. }, {
  11470. "label": "疏附县",
  11471. "value": "653121"
  11472. }, {
  11473. "label": "疏勒县",
  11474. "value": "653122"
  11475. }, {
  11476. "label": "英吉沙县",
  11477. "value": "653123"
  11478. }, {
  11479. "label": "泽普县",
  11480. "value": "653124"
  11481. }, {
  11482. "label": "莎车县",
  11483. "value": "653125"
  11484. }, {
  11485. "label": "叶城县",
  11486. "value": "653126"
  11487. }, {
  11488. "label": "麦盖提县",
  11489. "value": "653127"
  11490. }, {
  11491. "label": "岳普湖县",
  11492. "value": "653128"
  11493. }, {
  11494. "label": "伽师县",
  11495. "value": "653129"
  11496. }, {
  11497. "label": "巴楚县",
  11498. "value": "653130"
  11499. }, {
  11500. "label": "塔什库尔干塔吉克自治县",
  11501. "value": "653131"
  11502. }], [{
  11503. "label": "和田市",
  11504. "value": "653201"
  11505. }, {
  11506. "label": "和田县",
  11507. "value": "653221"
  11508. }, {
  11509. "label": "墨玉县",
  11510. "value": "653222"
  11511. }, {
  11512. "label": "皮山县",
  11513. "value": "653223"
  11514. }, {
  11515. "label": "洛浦县",
  11516. "value": "653224"
  11517. }, {
  11518. "label": "策勒县",
  11519. "value": "653225"
  11520. }, {
  11521. "label": "于田县",
  11522. "value": "653226"
  11523. }, {
  11524. "label": "民丰县",
  11525. "value": "653227"
  11526. }], [{
  11527. "label": "伊宁市",
  11528. "value": "654002"
  11529. }, {
  11530. "label": "奎屯市",
  11531. "value": "654003"
  11532. }, {
  11533. "label": "霍尔果斯市",
  11534. "value": "654004"
  11535. }, {
  11536. "label": "伊宁县",
  11537. "value": "654021"
  11538. }, {
  11539. "label": "察布查尔锡伯自治县",
  11540. "value": "654022"
  11541. }, {
  11542. "label": "霍城县",
  11543. "value": "654023"
  11544. }, {
  11545. "label": "巩留县",
  11546. "value": "654024"
  11547. }, {
  11548. "label": "新源县",
  11549. "value": "654025"
  11550. }, {
  11551. "label": "昭苏县",
  11552. "value": "654026"
  11553. }, {
  11554. "label": "特克斯县",
  11555. "value": "654027"
  11556. }, {
  11557. "label": "尼勒克县",
  11558. "value": "654028"
  11559. }], [{
  11560. "label": "塔城市",
  11561. "value": "654201"
  11562. }, {
  11563. "label": "乌苏市",
  11564. "value": "654202"
  11565. }, {
  11566. "label": "额敏县",
  11567. "value": "654221"
  11568. }, {
  11569. "label": "沙湾县",
  11570. "value": "654223"
  11571. }, {
  11572. "label": "托里县",
  11573. "value": "654224"
  11574. }, {
  11575. "label": "裕民县",
  11576. "value": "654225"
  11577. }, {
  11578. "label": "和布克赛尔蒙古自治县",
  11579. "value": "654226"
  11580. }], [{
  11581. "label": "阿勒泰市",
  11582. "value": "654301"
  11583. }, {
  11584. "label": "布尔津县",
  11585. "value": "654321"
  11586. }, {
  11587. "label": "富蕴县",
  11588. "value": "654322"
  11589. }, {
  11590. "label": "福海县",
  11591. "value": "654323"
  11592. }, {
  11593. "label": "哈巴河县",
  11594. "value": "654324"
  11595. }, {
  11596. "label": "青河县",
  11597. "value": "654325"
  11598. }, {
  11599. "label": "吉木乃县",
  11600. "value": "654326"
  11601. }], [{
  11602. "label": "石河子市",
  11603. "value": "659001"
  11604. }, {
  11605. "label": "阿拉尔市",
  11606. "value": "659002"
  11607. }, {
  11608. "label": "图木舒克市",
  11609. "value": "659003"
  11610. }, {
  11611. "label": "五家渠市",
  11612. "value": "659004"
  11613. }, {
  11614. "label": "铁门关市",
  11615. "value": "659006"
  11616. }]], [[{
  11617. "label": "台北",
  11618. "value": "660101"
  11619. }], [{
  11620. "label": "高雄",
  11621. "value": "660201"
  11622. }], [{
  11623. "label": "基隆",
  11624. "value": "660301"
  11625. }], [{
  11626. "label": "台中",
  11627. "value": "660401"
  11628. }], [{
  11629. "label": "台南",
  11630. "value": "660501"
  11631. }], [{
  11632. "label": "新竹",
  11633. "value": "660601"
  11634. }], [{
  11635. "label": "嘉义",
  11636. "value": "660701"
  11637. }], [{
  11638. "label": "宜兰",
  11639. "value": "660801"
  11640. }], [{
  11641. "label": "桃园",
  11642. "value": "660901"
  11643. }], [{
  11644. "label": "苗栗",
  11645. "value": "661001"
  11646. }], [{
  11647. "label": "彰化",
  11648. "value": "661101"
  11649. }], [{
  11650. "label": "南投",
  11651. "value": "661201"
  11652. }], [{
  11653. "label": "云林",
  11654. "value": "661301"
  11655. }], [{
  11656. "label": "屏东",
  11657. "value": "661401"
  11658. }], [{
  11659. "label": "台东",
  11660. "value": "661501"
  11661. }], [{
  11662. "label": "花莲",
  11663. "value": "661601"
  11664. }], [{
  11665. "label": "澎湖",
  11666. "value": "661701"
  11667. }]], [[{
  11668. "label": "香港岛",
  11669. "value": "670101"
  11670. }], [{
  11671. "label": "九龙",
  11672. "value": "670201"
  11673. }], [{
  11674. "label": "新界",
  11675. "value": "670301"
  11676. }]], [[{
  11677. "label": "澳门半岛",
  11678. "value": "680101"
  11679. }], [{
  11680. "label": "氹仔岛",
  11681. "value": "680201"
  11682. }], [{
  11683. "label": "路环岛",
  11684. "value": "680301"
  11685. }], [{
  11686. "label": "路氹城",
  11687. "value": "680401"
  11688. }]]];
  11689. var _default = areaData;
  11690. exports.default = _default;
  11691. /***/ }),
  11692. /***/ 14:
  11693. /*!************************************************************!*\
  11694. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  11695. \************************************************************/
  11696. /*! no static exports found */
  11697. /***/ (function(module, exports, __webpack_require__) {
  11698. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  11699. function _toPrimitive(input, hint) {
  11700. if (_typeof(input) !== "object" || input === null) return input;
  11701. var prim = input[Symbol.toPrimitive];
  11702. if (prim !== undefined) {
  11703. var res = prim.call(input, hint || "default");
  11704. if (_typeof(res) !== "object") return res;
  11705. throw new TypeError("@@toPrimitive must return a primitive value.");
  11706. }
  11707. return (hint === "string" ? String : Number)(input);
  11708. }
  11709. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11710. /***/ }),
  11711. /***/ 1444:
  11712. /*!***************************************!*\
  11713. !*** D:/工作/项目2/华畦/xcw/utils/emoji.js ***!
  11714. \***************************************/
  11715. /*! no static exports found */
  11716. /***/ (function(module, exports, __webpack_require__) {
  11717. "use strict";
  11718. Object.defineProperty(exports, "__esModule", {
  11719. value: true
  11720. });
  11721. exports.default = void 0;
  11722. var _default = ['em-smile', 'em-laughing', 'em-blush', 'em-smiley', 'em-relaxed', 'em-smirk', 'em-heart_eyes', 'em-kissing_heart', 'em-kissing_closed_eyes', 'em-flushed', 'em-relieved', 'em-satisfied', 'em-grin', 'em-wink', 'em-stuck_out_tongue_winking_eye', 'em-stuck_out_tongue_closed_eyes', 'em-grinning', 'em-kissing', 'em-kissing_smiling_eyes', 'em-stuck_out_tongue', 'em-sleeping', 'em-worried', 'em-frowning', 'em-anguished', 'em-open_mouth', 'em-grimacing', 'em-confused', 'em-hushed', 'em-expressionless', 'em-unamused', 'em-sweat_smile', 'em-sweat', 'em-disappointed_relieved', 'em-weary', 'em-pensive', 'em-disappointed', 'em-confounded', 'em-fearful', 'em-cold_sweat', 'em-persevere', 'em-cry', 'em-sob', 'em-joy', 'em-astonished', 'em-scream', 'em-tired_face', 'em-angry', 'em-rage', 'em-triumph', 'em-sleepy', 'em-yum', 'em-mask', 'em-dizzy_face', 'em-sunglasses', 'em-imp', 'em-smiling_imp', 'em-neutral_face', 'em-no_mouth', 'em-innocent', 'em-alien', 'em-heart', 'em-broken_heart', 'em-hankey', 'em-thumbsup', 'em-thumbsdown', 'em-ok_hand', 'em-facepunch', 'em-fist', 'em-v', 'em-point_up', 'em-point_down', 'em-point_left', 'em-point_right', 'em-pray'];
  11723. exports.default = _default;
  11724. /***/ }),
  11725. /***/ 15:
  11726. /*!**********************************************************!*\
  11727. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  11728. \**********************************************************/
  11729. /*! no static exports found */
  11730. /***/ (function(module, exports, __webpack_require__) {
  11731. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  11732. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  11733. function _construct(Parent, args, Class) {
  11734. if (isNativeReflectConstruct()) {
  11735. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  11736. } else {
  11737. module.exports = _construct = function _construct(Parent, args, Class) {
  11738. var a = [null];
  11739. a.push.apply(a, args);
  11740. var Constructor = Function.bind.apply(Parent, a);
  11741. var instance = new Constructor();
  11742. if (Class) setPrototypeOf(instance, Class.prototype);
  11743. return instance;
  11744. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11745. }
  11746. return _construct.apply(null, arguments);
  11747. }
  11748. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11749. /***/ }),
  11750. /***/ 16:
  11751. /*!***************************************************************!*\
  11752. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  11753. \***************************************************************/
  11754. /*! no static exports found */
  11755. /***/ (function(module, exports) {
  11756. function _setPrototypeOf(o, p) {
  11757. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  11758. o.__proto__ = p;
  11759. return o;
  11760. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11761. return _setPrototypeOf(o, p);
  11762. }
  11763. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  11764. /***/ }),
  11765. /***/ 1642:
  11766. /*!******************************************************************************!*\
  11767. !*** D:/工作/项目2/华畦/xcw/components/lime-painter/components/l-painter/utils.js ***!
  11768. \******************************************************************************/
  11769. /*! no static exports found */
  11770. /***/ (function(module, exports, __webpack_require__) {
  11771. "use strict";
  11772. /* WEBPACK VAR INJECTION */(function(uni, wx) {
  11773. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  11774. Object.defineProperty(exports, "__esModule", {
  11775. value: true
  11776. });
  11777. exports.base64ToPath = base64ToPath;
  11778. exports.compareVersion = compareVersion;
  11779. exports.getImageInfo = getImageInfo;
  11780. exports.isBase64 = void 0;
  11781. exports.isNumber = isNumber;
  11782. exports.pathToBase64 = pathToBase64;
  11783. exports.prefix = void 0;
  11784. exports.sleep = sleep;
  11785. exports.toPx = toPx;
  11786. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
  11787. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  11788. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  11789. var networkReg = /^(http|\/\/)/;
  11790. var isBase64 = function isBase64(path) {
  11791. return /^data:image\/(\w+);base64/.test(path);
  11792. };
  11793. exports.isBase64 = isBase64;
  11794. function sleep(delay) {
  11795. return new Promise(function (resolve) {
  11796. return setTimeout(resolve, delay);
  11797. });
  11798. }
  11799. var isDev = ['devtools'].includes(uni.getSystemInfoSync().platform);
  11800. // 缓存图片
  11801. var cache = {};
  11802. function isNumber(value) {
  11803. return /^-?\d+(\.\d+)?$/.test(value);
  11804. }
  11805. function toPx(value, baseSize) {
  11806. var isDecimal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  11807. // 如果是数字
  11808. if (typeof value === 'number') {
  11809. return value;
  11810. }
  11811. // 如果是字符串数字
  11812. if (isNumber(value)) {
  11813. return value * 1;
  11814. }
  11815. // 如果有单位
  11816. if (typeof value === 'string') {
  11817. var reg = /^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|px|%)$/g;
  11818. var results = reg.exec(value);
  11819. if (!value || !results) {
  11820. return 0;
  11821. }
  11822. var unit = results[3];
  11823. value = parseFloat(value);
  11824. var res = 0;
  11825. if (unit === 'rpx') {
  11826. res = uni.upx2px(value);
  11827. } else if (unit === 'px') {
  11828. res = value * 1;
  11829. } else if (unit === '%') {
  11830. res = value * toPx(baseSize) / 100;
  11831. } else if (unit === 'em') {
  11832. res = value * toPx(baseSize || 14);
  11833. }
  11834. return isDecimal ? res.toFixed(2) * 1 : Math.round(res);
  11835. }
  11836. return 0;
  11837. }
  11838. // 计算版本
  11839. function compareVersion(v1, v2) {
  11840. v1 = v1.split('.');
  11841. v2 = v2.split('.');
  11842. var len = Math.max(v1.length, v2.length);
  11843. while (v1.length < len) {
  11844. v1.push('0');
  11845. }
  11846. while (v2.length < len) {
  11847. v2.push('0');
  11848. }
  11849. for (var i = 0; i < len; i++) {
  11850. var num1 = parseInt(v1[i], 10);
  11851. var num2 = parseInt(v2[i], 10);
  11852. if (num1 > num2) {
  11853. return 1;
  11854. } else if (num1 < num2) {
  11855. return -1;
  11856. }
  11857. }
  11858. return 0;
  11859. }
  11860. var prefix = function prefix() {
  11861. return wx;
  11862. };
  11863. exports.prefix = prefix;
  11864. var base64ToArrayBuffer = function base64ToArrayBuffer(data) {
  11865. return uni.base64ToArrayBuffer(data);
  11866. };
  11867. /**
  11868. * base64转路径
  11869. * @param {Object} base64
  11870. */
  11871. function base64ToPath(base64) {
  11872. var _ref = /data:image\/(\w+);base64,(.*)/.exec(base64) || [],
  11873. _ref2 = (0, _slicedToArray2.default)(_ref, 3),
  11874. format = _ref2[1],
  11875. bodyData = _ref2[2];
  11876. return new Promise(function (resolve, reject) {
  11877. var fs = uni.getFileSystemManager();
  11878. //自定义文件名
  11879. if (!format) {
  11880. console.error('ERROR_BASE64SRC_PARSE');
  11881. reject(new Error('ERROR_BASE64SRC_PARSE'));
  11882. }
  11883. var time = new Date().getTime();
  11884. var pre = prefix();
  11885. var filePath = "".concat(pre.env.USER_DATA_PATH, "/").concat(time, ".").concat(format);
  11886. //let buffer = base64ToArrayBuffer(bodyData)
  11887. console.log(filePath);
  11888. fs.writeFile({
  11889. filePath: filePath,
  11890. data: base64.replace(/^data:\S+\/\S+;base64,/, ''),
  11891. encoding: 'base64',
  11892. // data: buffer,
  11893. // encoding: 'binary',
  11894. success: function success() {
  11895. resolve(filePath);
  11896. },
  11897. fail: function fail(err) {
  11898. console.log(base64, '!!!!!!');
  11899. console.error('获取base64图片失败', JSON.stringify(err));
  11900. reject(err);
  11901. }
  11902. });
  11903. });
  11904. }
  11905. /**
  11906. * 路径转base64
  11907. * @param {Object} string
  11908. */
  11909. function pathToBase64(path) {
  11910. if (/^data:/.test(path)) return path;
  11911. return new Promise(function (resolve, reject) {
  11912. if (uni.canIUse('getFileSystemManager')) {
  11913. uni.getFileSystemManager().readFile({
  11914. filePath: path,
  11915. encoding: 'base64',
  11916. success: function success(res) {
  11917. resolve('data:image/png;base64,' + res.data);
  11918. },
  11919. fail: function fail(error) {
  11920. console.error('urlToBase64 error:', JSON.stringify(error));
  11921. reject(error);
  11922. }
  11923. });
  11924. }
  11925. });
  11926. }
  11927. function getImageInfo(img) {
  11928. var isH5PathToBase64 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  11929. return new Promise( /*#__PURE__*/function () {
  11930. var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(resolve, reject) {
  11931. var localReg, imgName;
  11932. return _regenerator.default.wrap(function _callee$(_context) {
  11933. while (1) {
  11934. switch (_context.prev = _context.next) {
  11935. case 0:
  11936. // const base64Reg = /^data:image\/(\w+);base64/
  11937. localReg = /^\.|^\/(?=[^\/])/;
  11938. if (!isBase64(img)) {
  11939. _context.next = 11;
  11940. break;
  11941. }
  11942. if (!(isDev || !cache[img])) {
  11943. _context.next = 10;
  11944. break;
  11945. }
  11946. imgName = img;
  11947. _context.next = 6;
  11948. return base64ToPath(img);
  11949. case 6:
  11950. img = _context.sent;
  11951. cache[imgName] = img;
  11952. _context.next = 11;
  11953. break;
  11954. case 10:
  11955. img = cache[img];
  11956. case 11:
  11957. if (cache[img] && cache[img].errMsg) {
  11958. resolve(cache[img]);
  11959. } else {
  11960. uni.getImageInfo({
  11961. src: img,
  11962. success: function success(image) {
  11963. image.path = localReg.test(img) ? "/".concat(image.path) : image.path;
  11964. image.naturalSrc = img;
  11965. if (isDev) {
  11966. resolve(image);
  11967. } else {
  11968. cache[img] = image;
  11969. resolve(cache[img]);
  11970. }
  11971. },
  11972. fail: function fail(err) {
  11973. resolve({
  11974. path: img
  11975. });
  11976. console.error("getImageInfo:fail ".concat(img, " failed ").concat(JSON.stringify(err)));
  11977. }
  11978. });
  11979. }
  11980. case 12:
  11981. case "end":
  11982. return _context.stop();
  11983. }
  11984. }
  11985. }, _callee);
  11986. }));
  11987. return function (_x, _x2) {
  11988. return _ref3.apply(this, arguments);
  11989. };
  11990. }());
  11991. }
  11992. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  11993. /***/ }),
  11994. /***/ 1643:
  11995. /*!******************************************************************************!*\
  11996. !*** D:/工作/项目2/华畦/xcw/components/lime-painter/components/common/relation.js ***!
  11997. \******************************************************************************/
  11998. /*! no static exports found */
  11999. /***/ (function(module, exports, __webpack_require__) {
  12000. "use strict";
  12001. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12002. Object.defineProperty(exports, "__esModule", {
  12003. value: true
  12004. });
  12005. exports.children = children;
  12006. exports.parent = parent;
  12007. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  12008. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12009. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  12010. var _utils = __webpack_require__(/*! ../l-painter/utils.js */ 1642);
  12011. var styles = function styles() {
  12012. var v = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  12013. return v.split(';').filter(function (v) {
  12014. return v && !/^[\n\s]+$/.test(v);
  12015. }).map(function (v) {
  12016. var _item$, _item$$replace;
  12017. var item = v.split(':');
  12018. return (0, _defineProperty2.default)({}, item[0].replace(/-([a-z])/g, function () {
  12019. return arguments[1].toUpperCase();
  12020. }).replace(/\s+/g, ''), (item === null || item === void 0 ? void 0 : (_item$ = item[1]) === null || _item$ === void 0 ? void 0 : (_item$$replace = _item$.replace(/^\s+/, '')) === null || _item$$replace === void 0 ? void 0 : _item$$replace.replace(/\s+$/, '')) || '');
  12021. });
  12022. };
  12023. function parent(parent) {
  12024. return {
  12025. provide: function provide() {
  12026. return (0, _defineProperty2.default)({}, parent, this);
  12027. },
  12028. data: function data() {
  12029. return {
  12030. el: {
  12031. css: {},
  12032. views: []
  12033. }
  12034. };
  12035. },
  12036. watch: {
  12037. css: {
  12038. handler: function handler(v) {
  12039. if (this.canvasId) {
  12040. var _this$el$css, _this$el$css2;
  12041. this.el.css = (0, _typeof2.default)(v) == 'object' ? v : v && Object.assign.apply(Object, (0, _toConsumableArray2.default)(styles(v))) || {};
  12042. this.canvasWidth = ((_this$el$css = this.el.css) === null || _this$el$css === void 0 ? void 0 : _this$el$css.width) || this.canvasWidth;
  12043. this.canvasHeight = ((_this$el$css2 = this.el.css) === null || _this$el$css2 === void 0 ? void 0 : _this$el$css2.height) || this.canvasHeight;
  12044. }
  12045. },
  12046. immediate: true
  12047. }
  12048. }
  12049. };
  12050. }
  12051. function children(parent) {
  12052. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  12053. var indexKey = options.indexKey || 'index';
  12054. return {
  12055. inject: (0, _defineProperty2.default)({}, parent, {
  12056. default: null
  12057. }),
  12058. watch: {
  12059. el: {
  12060. handler: function handler(v, o) {
  12061. if (JSON.stringify(v) != JSON.stringify(o)) this.bindRelation();
  12062. },
  12063. deep: true,
  12064. immediate: true
  12065. },
  12066. src: {
  12067. handler: function handler(v, o) {
  12068. if (v != o) this.bindRelation();
  12069. },
  12070. immediate: true
  12071. },
  12072. text: {
  12073. handler: function handler(v, o) {
  12074. if (v != o) this.bindRelation();
  12075. },
  12076. immediate: true
  12077. },
  12078. css: {
  12079. handler: function handler(v, o) {
  12080. if (v != o) this.el.css = (0, _typeof2.default)(v) == 'object' ? v : v && Object.assign.apply(Object, (0, _toConsumableArray2.default)(styles(v))) || {};
  12081. },
  12082. immediate: true
  12083. },
  12084. replace: {
  12085. handler: function handler(v, o) {
  12086. if (JSON.stringify(v) != JSON.stringify(o)) this.bindRelation();
  12087. },
  12088. deep: true,
  12089. immediate: true
  12090. }
  12091. },
  12092. created: function created() {
  12093. var _this = this;
  12094. Object.defineProperty(this, 'parent', {
  12095. get: function get() {
  12096. return _this[parent];
  12097. }
  12098. });
  12099. Object.defineProperty(this, 'index', {
  12100. get: function get() {
  12101. var _this$parent, _this$parent$el$views;
  12102. _this.bindRelation();
  12103. return (_this$parent = _this.parent) === null || _this$parent === void 0 ? void 0 : (_this$parent$el$views = _this$parent.el.views) === null || _this$parent$el$views === void 0 ? void 0 : _this$parent$el$views.indexOf(_this.el);
  12104. }
  12105. });
  12106. this.el.type = this.type;
  12107. },
  12108. beforeDestroy: function beforeDestroy() {
  12109. var _this2 = this;
  12110. if (this.parent) {
  12111. this.parent.el.views = this.parent.el.views.filter(function (item) {
  12112. return item._uid !== _this2._uid;
  12113. });
  12114. }
  12115. },
  12116. methods: {
  12117. bindRelation: function bindRelation() {
  12118. var _this3 = this;
  12119. if (!this.el._uid) {
  12120. this.el._uid = this._uid;
  12121. }
  12122. if (['text', 'qrcode'].includes(this.type)) {
  12123. var _this$$slots, _this$$slots$default, _this$$slots$default$, _this$text;
  12124. this.el.text = ((_this$$slots = this.$slots) === null || _this$$slots === void 0 ? void 0 : (_this$$slots$default = _this$$slots.default) === null || _this$$slots$default === void 0 ? void 0 : (_this$$slots$default$ = _this$$slots$default[0]) === null || _this$$slots$default$ === void 0 ? void 0 : _this$$slots$default$.text) || ((_this$text = this.text) === null || _this$text === void 0 ? void 0 : _this$text.replace(/\\n/g, '\n'));
  12125. }
  12126. if (this.type == 'text' && this.replace) {
  12127. this.el.replace = this.replace;
  12128. }
  12129. if (this.type == 'image') {
  12130. this.el.src = this.src;
  12131. }
  12132. // || this.parent.el.views.indexOf(this.el) !== -1
  12133. if (!this.parent) {
  12134. return;
  12135. }
  12136. var views = this.parent.el.views || [];
  12137. if (views.indexOf(this.el) !== -1) {
  12138. this.parent.el.views = views.map(function (v) {
  12139. return v._uid == _this3._uid ? _this3.el : v;
  12140. });
  12141. } else {
  12142. this.parent.el.views = [].concat((0, _toConsumableArray2.default)(views), [this.el]);
  12143. }
  12144. }
  12145. },
  12146. mounted: function mounted() {
  12147. this.bindRelation();
  12148. }
  12149. };
  12150. }
  12151. /***/ }),
  12152. /***/ 1644:
  12153. /*!********************************************************************************!*\
  12154. !*** D:/工作/项目2/华畦/xcw/components/lime-painter/components/l-painter/painter.js ***!
  12155. \********************************************************************************/
  12156. /*! no static exports found */
  12157. /***/ (function(module, exports, __webpack_require__) {
  12158. /* WEBPACK VAR INJECTION */(function(uni, wx) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  12159. !function (t, e) {
  12160. "object" == ( false ? undefined : _typeof(exports)) && "undefined" != typeof module ? e(exports) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (e),
  12161. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  12162. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  12163. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  12164. }(this, function (t) {
  12165. "use strict";
  12166. /*! *****************************************************************************
  12167. Copyright (c) Microsoft Corporation.
  12168. Permission to use, copy, modify, and/or distribute this software for any
  12169. purpose with or without fee is hereby granted.
  12170. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  12171. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  12172. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  12173. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  12174. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  12175. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  12176. PERFORMANCE OF THIS SOFTWARE.
  12177. ***************************************************************************** */
  12178. var e,
  12179. _i = function i() {
  12180. return (_i = Object.assign || function (t) {
  12181. for (var e, i = 1, o = arguments.length; i < o; i++) {
  12182. for (var r in e = arguments[i]) {
  12183. Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
  12184. }
  12185. }
  12186. return t;
  12187. }).apply(this, arguments);
  12188. };
  12189. function o(t, e, i, o) {
  12190. return new (i || (i = Promise))(function (r, n) {
  12191. function s(t) {
  12192. try {
  12193. h(o.next(t));
  12194. } catch (t) {
  12195. n(t);
  12196. }
  12197. }
  12198. function a(t) {
  12199. try {
  12200. h(o.throw(t));
  12201. } catch (t) {
  12202. n(t);
  12203. }
  12204. }
  12205. function h(t) {
  12206. var e;
  12207. t.done ? r(t.value) : (e = t.value, e instanceof i ? e : new i(function (t) {
  12208. t(e);
  12209. })).then(s, a);
  12210. }
  12211. h((o = o.apply(t, e || [])).next());
  12212. });
  12213. }
  12214. function r(t, e) {
  12215. var i,
  12216. o,
  12217. r,
  12218. n,
  12219. s = {
  12220. label: 0,
  12221. sent: function sent() {
  12222. if (1 & r[0]) throw r[1];
  12223. return r[1];
  12224. },
  12225. trys: [],
  12226. ops: []
  12227. };
  12228. return n = {
  12229. next: a(0),
  12230. throw: a(1),
  12231. return: a(2)
  12232. }, "function" == typeof Symbol && (n[Symbol.iterator] = function () {
  12233. return this;
  12234. }), n;
  12235. function a(n) {
  12236. return function (a) {
  12237. return function (n) {
  12238. if (i) throw new TypeError("Generator is already executing.");
  12239. for (; s;) {
  12240. try {
  12241. if (i = 1, o && (r = 2 & n[0] ? o.return : n[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, n[1])).done) return r;
  12242. switch (o = 0, r && (n = [2 & n[0], r.value]), n[0]) {
  12243. case 0:
  12244. case 1:
  12245. r = n;
  12246. break;
  12247. case 4:
  12248. return s.label++, {
  12249. value: n[1],
  12250. done: !1
  12251. };
  12252. case 5:
  12253. s.label++, o = n[1], n = [0];
  12254. continue;
  12255. case 7:
  12256. n = s.ops.pop(), s.trys.pop();
  12257. continue;
  12258. default:
  12259. if (!(r = s.trys, (r = r.length > 0 && r[r.length - 1]) || 6 !== n[0] && 2 !== n[0])) {
  12260. s = 0;
  12261. continue;
  12262. }
  12263. if (3 === n[0] && (!r || n[1] > r[0] && n[1] < r[3])) {
  12264. s.label = n[1];
  12265. break;
  12266. }
  12267. if (6 === n[0] && s.label < r[1]) {
  12268. s.label = r[1], r = n;
  12269. break;
  12270. }
  12271. if (r && s.label < r[2]) {
  12272. s.label = r[2], s.ops.push(n);
  12273. break;
  12274. }
  12275. r[2] && s.ops.pop(), s.trys.pop();
  12276. continue;
  12277. }
  12278. n = e.call(t, s);
  12279. } catch (t) {
  12280. n = [6, t], o = 0;
  12281. } finally {
  12282. i = r = 0;
  12283. }
  12284. }
  12285. if (5 & n[0]) throw n[1];
  12286. return {
  12287. value: n[0] ? n[1] : void 0,
  12288. done: !0
  12289. };
  12290. }([n, a]);
  12291. };
  12292. }
  12293. }
  12294. var n = {
  12295. upx2px: function upx2px(t) {
  12296. return window.innerWidth / 750 * t;
  12297. },
  12298. getSystemInfoSync: function getSystemInfoSync() {
  12299. return {
  12300. screenWidth: window.innerWidth
  12301. };
  12302. },
  12303. getImageInfo: function getImageInfo(t) {
  12304. var e = t.src,
  12305. i = t.success,
  12306. o = t.fail,
  12307. r = new Image();
  12308. r.onload = function () {
  12309. i({
  12310. width: this.naturalWidth,
  12311. height: this.naturalHeight,
  12312. path: this.src,
  12313. src: e
  12314. });
  12315. }, r.onerror = o, r.src = e;
  12316. }
  12317. },
  12318. s = "object" == (typeof swan === "undefined" ? "undefined" : _typeof(swan)) ? "mp-baidu" : "object" == (typeof tt === "undefined" ? "undefined" : _typeof(tt)) ? "mp-toutao" : "object" == (typeof plus === "undefined" ? "undefined" : _typeof(plus)) ? "plus" : "object" == (typeof window === "undefined" ? "undefined" : _typeof(window)) ? "undefined" == typeof uni || "undefined" != typeof uni && !(null === uni || void 0 === uni ? void 0 : uni.addInterceptor) ? "web" : "h5" : "mp-weixin",
  12319. a = "mp-weixin" == s ? wx : "mp-toutao" == s ? tt : "undefined" != typeof uni ? uni.upx2px ? uni : Object.assign(uni, n) : "undefined" != typeof window ? n : uni;
  12320. if (!a.upx2px) {
  12321. var h = (null !== (e = a.getSystemInfoSync().screenWidth) && void 0 !== e ? e : 375) / 750;
  12322. a.upx2px = function (t) {
  12323. return h * t;
  12324. };
  12325. }
  12326. function d(t) {
  12327. return /^-?\d+(\.\d+)?$/.test(t);
  12328. }
  12329. function l(t, e, i) {
  12330. if ("number" == typeof t) return t;
  12331. if (d(t)) return 1 * t;
  12332. if ("string" == typeof t) {
  12333. var o = /^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|px|%)$/g.exec(t);
  12334. if (!t || !o) return 0;
  12335. var r = o[3];
  12336. t = parseFloat(t);
  12337. var n = 0;
  12338. return "rpx" === r ? n = a.upx2px(t) : "px" === r ? n = 1 * t : "%" === r && e ? n = t * l(e) / 100 : "em" === r && e && (n = t * l(e || 14)), i ? 1 * n.toFixed(2) : Math.round(n);
  12339. }
  12340. return 0;
  12341. }
  12342. function c(t) {
  12343. var e = this;
  12344. return new Promise(function (i, n) {
  12345. return o(e, void 0, void 0, function () {
  12346. var e, o;
  12347. return r(this, function (r) {
  12348. switch (r.label) {
  12349. case 0:
  12350. if (e = t, "plus" != s && !/^mp/.test(s) || !/data:image\/(\w+);base64,(.*)/.test(t)) return [3, 4];
  12351. r.label = 1;
  12352. case 1:
  12353. return r.trys.push([1, 3,, 4]), [4, (h = t, new Promise(function (t, e) {
  12354. var i = /data:image\/(\w+);base64,(.*)/.exec(h) || [],
  12355. o = i[1];
  12356. if (i[2], /^mp/.test(s)) {
  12357. var r = a.getFileSystemManager();
  12358. o || (console.error("ERROR_BASE64SRC_PARSE"), e(new Error("ERROR_BASE64SRC_PARSE")));
  12359. var n = new Date().getTime(),
  12360. d = a.env.USER_DATA_PATH + "/" + n + "." + o;
  12361. r.writeFile({
  12362. filePath: d,
  12363. data: h.replace(/^data:\S+\/\S+;base64,/, ""),
  12364. encoding: "base64",
  12365. success: function success() {
  12366. t(d);
  12367. },
  12368. fail: function fail(t) {
  12369. console.error("获取base64图片失败", JSON.stringify(t)), e(t);
  12370. }
  12371. });
  12372. } else if ("plus" != s) e(new Error("not support"));else {
  12373. var l = h.split(",")[0].match(/data\:\S+\/(\S+);/);
  12374. l ? l = l[1] : e(new Error("base64 error"));
  12375. var c = Date.now() + "." + l,
  12376. u = "_doc",
  12377. f = "uniapp_temp",
  12378. g = "_doc/uniapp_temp/" + c;
  12379. if (!function (t, e) {
  12380. for (var i = t.split("."), o = e.split("."), r = !1, n = 0; n < o.length; n++) {
  12381. var s = i[n] - o[n];
  12382. if (0 !== s) {
  12383. r = s > 0;
  12384. break;
  12385. }
  12386. }
  12387. return r;
  12388. }("Android" === plus.os.name ? "1.9.9.80627" : "1.9.9.80472", plus.runtime.innerVersion)) return void plus.io.resolveLocalFileSystemURL(u, function (i) {
  12389. i.getDirectory(f, {
  12390. create: !0,
  12391. exclusive: !1
  12392. }, function (i) {
  12393. i.getFile(c, {
  12394. create: !0,
  12395. exclusive: !1
  12396. }, function (i) {
  12397. i.createWriter(function (i) {
  12398. var o;
  12399. i.onwrite = function () {
  12400. t(g);
  12401. }, i.onerror = e, i.seek(0), i.writeAsBinary((o = h.split(","))[o.length - 1]);
  12402. }, e);
  12403. }, e);
  12404. }, e);
  12405. }, e);
  12406. var v = new plus.nativeObj.Bitmap(c);
  12407. v.loadBase64Data(h, function () {
  12408. v.save(g, {}, function () {
  12409. v.clear(), t(g);
  12410. }, function (t) {
  12411. v.clear(), e(t);
  12412. });
  12413. }, function (t) {
  12414. v.clear(), e(t);
  12415. });
  12416. }
  12417. }))];
  12418. case 2:
  12419. return e = r.sent(), [3, 4];
  12420. case 3:
  12421. return o = r.sent(), console.log(o), [3, 4];
  12422. case 4:
  12423. return a.getImageInfo({
  12424. src: e,
  12425. success: function success(t) {
  12426. return i(t);
  12427. },
  12428. fail: function fail(t) {
  12429. return n(t);
  12430. }
  12431. }), [2];
  12432. }
  12433. var h;
  12434. });
  12435. });
  12436. });
  12437. }
  12438. var u = function u(t) {
  12439. return !(!t || !t.startsWith("linear") && !t.startsWith("radial"));
  12440. },
  12441. f = function f(t, e, i, o, r, n) {
  12442. t.startsWith("linear") ? function (t, e, i, o, r, n) {
  12443. for (var s = function (t, e, i, o, r) {
  12444. void 0 === o && (o = 0);
  12445. void 0 === r && (r = 0);
  12446. var n = t.match(/([-]?\d{1,3})deg/),
  12447. s = n && n[1] ? parseFloat(n[1]) : 0;
  12448. s >= 360 && (s -= 360);
  12449. s < 0 && (s += 360);
  12450. if (0 === (s = Math.round(s))) return {
  12451. x0: Math.round(e / 2) + o,
  12452. y0: i + r,
  12453. x1: Math.round(e / 2) + o,
  12454. y1: r
  12455. };
  12456. if (180 === s) return {
  12457. x0: Math.round(e / 2) + o,
  12458. y0: r,
  12459. x1: Math.round(e / 2) + o,
  12460. y1: i + r
  12461. };
  12462. if (90 === s) return {
  12463. x0: o,
  12464. y0: Math.round(i / 2) + r,
  12465. x1: e + o,
  12466. y1: Math.round(i / 2) + r
  12467. };
  12468. if (270 === s) return {
  12469. x0: e + o,
  12470. y0: Math.round(i / 2) + r,
  12471. x1: o,
  12472. y1: Math.round(i / 2) + r
  12473. };
  12474. var a = Math.round(180 * Math.asin(e / Math.sqrt(Math.pow(e, 2) + Math.pow(i, 2))) / Math.PI);
  12475. if (s === a) return {
  12476. x0: o,
  12477. y0: i + r,
  12478. x1: e + o,
  12479. y1: r
  12480. };
  12481. if (s === 180 - a) return {
  12482. x0: o,
  12483. y0: r,
  12484. x1: e + o,
  12485. y1: i + r
  12486. };
  12487. if (s === 180 + a) return {
  12488. x0: e + o,
  12489. y0: r,
  12490. x1: o,
  12491. y1: i + r
  12492. };
  12493. if (s === 360 - a) return {
  12494. x0: e + o,
  12495. y0: i + r,
  12496. x1: o,
  12497. y1: r
  12498. };
  12499. var h = 0,
  12500. d = 0,
  12501. l = 0,
  12502. c = 0;
  12503. if (s < a || s > 180 - a && s < 180 || s > 180 && s < 180 + a || s > 360 - a) {
  12504. var u = s * Math.PI / 180,
  12505. f = s < a || s > 360 - a ? i / 2 : -i / 2,
  12506. g = Math.tan(u) * f,
  12507. v = s < a || s > 180 - a && s < 180 ? e / 2 - g : -e / 2 - g;
  12508. h = -(l = g + (p = Math.pow(Math.sin(u), 2) * v)), d = -(c = f + p / Math.tan(u));
  12509. }
  12510. if (s > a && s < 90 || s > 90 && s < 90 + a || s > 180 + a && s < 270 || s > 270 && s < 360 - a) {
  12511. var p;
  12512. u = (90 - s) * Math.PI / 180, g = s > a && s < 90 || s > 90 && s < 90 + a ? e / 2 : -e / 2, f = Math.tan(u) * g, v = s > a && s < 90 || s > 270 && s < 360 - a ? i / 2 - f : -i / 2 - f;
  12513. h = -(l = g + (p = Math.pow(Math.sin(u), 2) * v) / Math.tan(u)), d = -(c = f + p);
  12514. }
  12515. return h = Math.round(h + e / 2) + o, d = Math.round(i / 2 - d) + r, l = Math.round(l + e / 2) + o, c = Math.round(i / 2 - c) + r, {
  12516. x0: h,
  12517. y0: d,
  12518. x1: l,
  12519. y1: c
  12520. };
  12521. }(r, t, e, i, o), a = s.x0, h = s.y0, d = s.x1, l = s.y1, c = n.createLinearGradient(a, h, d, l), u = r.match(/linear-gradient\((.+)\)/)[1], f = g(u.substring(u.indexOf(",") + 1)), v = 0; v < f.colors.length; v++) {
  12522. c.addColorStop(f.percents[v], f.colors[v]);
  12523. }
  12524. n.setFillStyle(c);
  12525. }(e, i, o, r, t, n) : t.startsWith("radial") && function (t, e, i, o, r, n) {
  12526. for (var s = g(r.match(/radial-gradient\((.+)\)/)[1]), a = Math.round(t / 2) + i, h = Math.round(e / 2) + o, d = n.createRadialGradient(a, h, 0, a, h, Math.max(t, e) / 2), l = 0; l < s.colors.length; l++) {
  12527. d.addColorStop(s.percents[l], s.colors[l]);
  12528. }
  12529. n.setFillStyle(d);
  12530. }(e, i, o, r, t, n);
  12531. };
  12532. function g(t) {
  12533. for (var e = [], i = [], o = 0, r = t.substring(0, t.length - 1).split("%,"); o < r.length; o++) {
  12534. var n = r[o];
  12535. e.push(n.substring(0, n.lastIndexOf(" ")).trim()), i.push(n.substring(n.lastIndexOf(" "), n.length) / 100);
  12536. }
  12537. return {
  12538. colors: e,
  12539. percents: i
  12540. };
  12541. }
  12542. function v(t, e, i) {
  12543. return e in t ? Object.defineProperty(t, e, {
  12544. value: i,
  12545. enumerable: !0,
  12546. configurable: !0,
  12547. writable: !0
  12548. }) : t[e] = i, t;
  12549. }
  12550. function p() {
  12551. return (p = Object.assign || function (t) {
  12552. for (var e = 1; e < arguments.length; e++) {
  12553. var i = arguments[e];
  12554. for (var o in i) {
  12555. Object.prototype.hasOwnProperty.call(i, o) && (t[o] = i[o]);
  12556. }
  12557. }
  12558. return t;
  12559. }).apply(this, arguments);
  12560. }
  12561. var b = 0,
  12562. m = {
  12563. left: null,
  12564. top: null,
  12565. width: null,
  12566. height: null
  12567. },
  12568. w = function () {
  12569. function t(t, e, i, o) {
  12570. var r = this;
  12571. v(this, "id", b++), v(this, "style", {
  12572. left: null,
  12573. top: null,
  12574. width: null,
  12575. height: null
  12576. }), v(this, "computedStyle", {}), v(this, "children", {}), v(this, "layoutBox", p({}, m)), v(this, "contentSize", p({}, m, {
  12577. maxLineHeight: 0
  12578. })), v(this, "clientSize", p({}, m)), v(this, "borderSize", p({}, m)), v(this, "offsetSize", p({}, m)), this.ctx = o, this.root = i, e && (this.parent = e), this.name = t.name || t.type, this.attributes = this.getAttributes(t);
  12579. var n = this.getComputedStyle(t, null == e ? void 0 : e.computedStyle);
  12580. this.isAbsolute = "absolute" == n.position, this.isFixed = "fixed" == n.position, Object.keys(n).forEach(function (t) {
  12581. Object.defineProperty(r.style, t, {
  12582. configurable: !0,
  12583. enumerable: !0,
  12584. get: function get() {
  12585. return n[t];
  12586. },
  12587. set: function set(e) {
  12588. n[t] = e;
  12589. }
  12590. });
  12591. });
  12592. var s = {
  12593. contentSize: p({}, this.contentSize),
  12594. clientSize: p({}, this.clientSize),
  12595. borderSize: p({}, this.borderSize),
  12596. offsetSize: p({}, this.offsetSize)
  12597. };
  12598. Object.keys(s).forEach(function (t) {
  12599. Object.keys(r[t]).forEach(function (e) {
  12600. Object.defineProperty(r[t], e, {
  12601. configurable: !0,
  12602. enumerable: !0,
  12603. get: function get() {
  12604. return s[t][e];
  12605. },
  12606. set: function set(i) {
  12607. s[t][e] = i;
  12608. }
  12609. });
  12610. });
  12611. }), this.computedStyle = this.style;
  12612. }
  12613. var e = t.prototype;
  12614. return e.add = function (t) {
  12615. t.parent = this, this.children[t.id] = t;
  12616. }, e.remove = function (t) {
  12617. var e = this;
  12618. t ? this.children[t.id] && (t.remove(), delete this.children[t.id]) : Object.keys(this.children).forEach(function (t) {
  12619. e.children[t].remove(), delete e.children[t];
  12620. });
  12621. }, e.getChildren = function () {
  12622. var t = this;
  12623. return Object.keys(this.children).map(function (e) {
  12624. return t.children[e];
  12625. });
  12626. }, e.getComputedStyle = function (t, e) {
  12627. var i = ["color", "fontSize", "lineHeight", "verticalAlign", "fontWeight", "textAlign"],
  12628. o = t.css,
  12629. r = void 0 === o ? {} : o,
  12630. n = t.type,
  12631. s = void 0 === n ? "view" : n,
  12632. a = {};
  12633. if (e) for (var h = 0; h < i.length; h++) {
  12634. var c = i[h];
  12635. (r[c] || e[c]) && (r[c] = r[c] || e[c]);
  12636. }
  12637. for (var u = function u() {
  12638. var t = g[f],
  12639. e = r[t];
  12640. if (/^(box)?shadow$/i.test(t)) {
  12641. var i = e.split(" ").map(function (t) {
  12642. return /^\d/.test(t) ? l(t) : t;
  12643. });
  12644. return a.boxShadow = i, "continue";
  12645. }
  12646. if (/^border/i.test(t) && !/radius$/i.test(t)) {
  12647. var o,
  12648. n = t.match(/^border([BTRLa-z]+)?/)[0],
  12649. h = t.match(/[W|S|C][a-z]+/),
  12650. c = e.replace(/([\(,])\s+|\s+([\),])/g, "$1$2").split(" ").map(function (t) {
  12651. return /^\d/.test(t) ? l(t, "", !0) : t;
  12652. });
  12653. return a[n] = ((o = {})[n + "Width"] = (d(c[0]) ? c[0] : 0) || 1, o[n + "Style"] = c[1] || "solid", o[n + "Color"] = c[2] || "black", o), 1 == c.length && h && (a[n][n + h[0]] = c[0]), "continue";
  12654. }
  12655. if (/^background(color)?$/i.test(t)) return a.backgroundColor = e, "continue";
  12656. if (/^objectPosition$/i.test(t)) return a[t] = e.split(" "), "continue";
  12657. if (/padding|margin|radius/i.test(t)) {
  12658. var u = /radius$/i.test(t),
  12659. v = u ? "borderRadius" : t.match(/[a-z]+/)[0],
  12660. p = [0, 0, 0, 0].map(function (t, e) {
  12661. return u ? ["borderTopLeftRadius", "borderTopRightRadius", "borderBottomRightRadius", "borderBottomLeftRadius"][e] : [v + "Top", v + "Right", v + "Bottom", v + "Left"][e];
  12662. });
  12663. if ("padding" === t || "margin" === t || /^(border)?radius$/i.test(t)) {
  12664. var b,
  12665. m = (null == e ? void 0 : e.split(" ").map(function (e) {
  12666. return /^\d+(rpx|px)?$/.test(e) ? l(e) : "margin" != t && /auto/.test(e) ? 0 : e;
  12667. }, [])) || [0],
  12668. w = u ? "borderRadius" : t,
  12669. x = m[0],
  12670. y = m[1],
  12671. S = m[2],
  12672. z = m[3];
  12673. a[w] = ((b = {})[p[0]] = "auto" == x ? 0 : x, b[p[1]] = d(y) ? y : x, b[p[2]] = "auto" == (d(S) ? S : x) ? 0 : d(S) ? S : x, b[p[3]] = d(z) ? z : y || x, b);
  12674. } else {
  12675. var B;
  12676. if ("object" == _typeof(a[v])) a[v][t] = "margin" == v && "auto" == e || /%$/.test(e) ? e : l(e);else a[v] = ((B = {})[p[0]] = a[v] || 0, B[p[1]] = a[v] || 0, B[p[2]] = a[v] || 0, B[p[3]] = a[v] || 0, B), a[v][t] = "margin" == v && "auto" == e || /%$/.test(e) ? e : l(e);
  12677. }
  12678. return "continue";
  12679. }
  12680. if (/^transform$/i.test(t)) return a[t] = {}, e.replace(/([a-zA-Z]+)\(([0-9,-\.%rpxdeg\s]+)\)/g, function (e, i, o) {
  12681. var n = o.split(",").map(function (t) {
  12682. return t.replace(/(^\s*)|(\s*$)/g, "");
  12683. }),
  12684. s = function s(t, e) {
  12685. return t.includes("deg") ? 1 * t : e && !/%$/.test(e) ? l(t, e) : t;
  12686. };
  12687. i.includes("matrix") ? a[t][i] = n.map(function (t) {
  12688. return 1 * t;
  12689. }) : i.includes("rotate") ? a[t][i] = 1 * o.match(/^-?\d+(\.\d+)?/)[0] : /[X, Y]/.test(i) ? a[t][i] = /[X]/.test(i) ? s(n[0], r.width) : s(n[0], r.height) : (a[t][i + "X"] = s(n[0], r.width), a[t][i + "Y"] = s(n[1] || n[0], r.height));
  12690. }), "continue";
  12691. /^left|top$/i.test(t) && !["absolute", "fixed"].includes(r.position) ? a[t] = 0 : a[t] = /^[\d\.]+(px|rpx)?$/.test(e) ? l(e) : /em$/.test(e) && "text" == s ? l(e, r.fontSize) : e;
  12692. }, f = 0, g = Object.keys(r); f < g.length; f++) {
  12693. u();
  12694. }
  12695. return a;
  12696. }, e.setPosition = function (t, e) {
  12697. var i = {
  12698. left: "width",
  12699. top: "height",
  12700. right: "width",
  12701. bottom: "height"
  12702. };
  12703. Object.keys(i).forEach(function (o) {
  12704. ["right", "bottom"].includes(o) && void 0 !== t.style[o] ? t.style["right" == o ? "left" : "top"] = e[i[o]] - t.offsetSize[i[o]] - l(t.style[o], e[i[o]]) : t.style[o] = l(t.style[o], e[i[o]]);
  12705. });
  12706. }, e.getAttributes = function (t) {
  12707. var e = t.attributes || {};
  12708. return (null != t && t.url || null != t && t.src) && (e.src = e.src || t.url || (null == t ? void 0 : t.src)), t.replace && (e.replace = t.replace), null != t && t.text && (e.text = t.text), e;
  12709. }, e.getOffsetSize = function (t, e, i) {
  12710. void 0 === i && (i = "offsetSize");
  12711. var o = e || {},
  12712. r = o.margin,
  12713. n = (r = void 0 === r ? {} : r).marginLeft,
  12714. s = void 0 === n ? 0 : n,
  12715. a = r.marginTop,
  12716. h = void 0 === a ? 0 : a,
  12717. d = r.marginRight,
  12718. l = void 0 === d ? 0 : d,
  12719. c = r.marginBottom,
  12720. u = void 0 === c ? 0 : c,
  12721. f = o.padding,
  12722. g = (f = void 0 === f ? {} : f).paddingLeft,
  12723. v = void 0 === g ? 0 : g,
  12724. p = f.paddingTop,
  12725. b = void 0 === p ? 0 : p,
  12726. m = f.paddingRight,
  12727. w = void 0 === m ? 0 : m,
  12728. x = f.paddingBottom,
  12729. y = void 0 === x ? 0 : x,
  12730. S = o.border,
  12731. z = (S = void 0 === S ? {} : S).borderWidth,
  12732. B = void 0 === z ? 0 : z,
  12733. R = o.borderTop,
  12734. M = (R = void 0 === R ? {} : R).borderTopWidth,
  12735. k = void 0 === M ? B : M,
  12736. P = o.borderBottom,
  12737. O = (P = void 0 === P ? {} : P).borderBottomWidth,
  12738. T = void 0 === O ? B : O,
  12739. L = o.borderRight,
  12740. W = (L = void 0 === L ? {} : L).borderRightWidth,
  12741. I = void 0 === W ? B : W,
  12742. j = o.borderLeft,
  12743. C = (j = void 0 === j ? {} : j).borderLeftWidth,
  12744. F = void 0 === C ? B : C;
  12745. return "contentSize" == i && (this[i].left = t.left + s + v + F, this[i].top = t.top + h + b + k, this[i].width = t.width, this[i].height = t.height), "clientSize" == i && (this[i].left = t.left + s + F, this[i].top = t.top + h + k, this[i].width = t.width + v + w, this[i].height = t.height + b + y), "borderSize" == i && (this[i].left = t.left + s + F / 2, this[i].top = t.top + h + k / 2, this[i].width = t.width + v + w + F / 2 + I / 2, this[i].height = t.height + b + y + T / 2 + k / 2), "offsetSize" == i && (this[i].left = t.left, this[i].top = t.top, this[i].width = t.width + v + w + F + I + s + l, this[i].height = t.height + b + y + T + k + u + h), this[i];
  12746. }, e.layoutBoxUpdate = function (t, e, i, o) {
  12747. if (void 0 === i && (i = ""), "border-box" == (null == e ? void 0 : e.boxSizing)) {
  12748. var r = e || {},
  12749. n = r.border,
  12750. s = (n = void 0 === n ? {} : n).borderWidth,
  12751. a = void 0 === s ? 0 : s,
  12752. h = r.borderTop,
  12753. d = (h = void 0 === h ? {} : h).borderTopWidth,
  12754. l = void 0 === d ? a : d,
  12755. c = r.borderBottom,
  12756. u = (c = void 0 === c ? {} : c).borderBottomWidth,
  12757. f = void 0 === u ? a : u,
  12758. g = r.borderRight,
  12759. v = (g = void 0 === g ? {} : g).borderRightWidth,
  12760. p = void 0 === v ? a : v,
  12761. b = r.borderLeft,
  12762. m = (b = void 0 === b ? {} : b).borderLeftWidth,
  12763. w = void 0 === m ? a : m,
  12764. x = r.padding,
  12765. y = (x = void 0 === x ? {} : x).paddingTop,
  12766. S = void 0 === y ? 0 : y,
  12767. z = x.paddingRight,
  12768. B = void 0 === z ? 0 : z,
  12769. R = x.paddingBottom,
  12770. M = void 0 === R ? 0 : R,
  12771. k = x.paddingLeft,
  12772. P = void 0 === k ? 0 : k;
  12773. "width" == i && (t.width -= P + B + p + w), "height" != i || o || (t.height -= S + M + l + f);
  12774. }
  12775. this.layoutBox.contentSize = this.getOffsetSize(t, e, "contentSize"), this.layoutBox.clientSize = this.getOffsetSize(t, e, "clientSize"), this.layoutBox.borderSize = this.getOffsetSize(t, e, "borderSize"), this.layoutBox.offsetSize = this.getOffsetSize(t, e, "offsetSize"), this.layoutBox = Object.assign({}, this.layoutBox, this.layoutBox.borderSize);
  12776. }, e.getBoxPosition = function (t) {
  12777. var e = this.computedStyle,
  12778. i = this.getChildren(),
  12779. o = e.verticalAlign,
  12780. r = e.left,
  12781. n = void 0 === r ? 0 : r,
  12782. s = e.top,
  12783. a = void 0 === s ? 0 : s,
  12784. h = p({}, this.contentSize, {
  12785. left: n,
  12786. top: a
  12787. }),
  12788. d = this.contentSize.top - this.offsetSize.top,
  12789. l = this.contentSize.left - this.offsetSize.left,
  12790. c = 0;
  12791. if ("bottom" == o && this.contentSize.maxLineHeight ? c = this.contentSize.maxLineHeight - this.contentSize.height : "middle" == o && this.contentSize.maxLineHeight && (c = (this.contentSize.maxLineHeight - this.contentSize.height) / 2), h.top += c, i.length) {
  12792. n += l, a += d;
  12793. for (var u = null, f = null, g = !1, v = 0; v < i.length; v++) {
  12794. var b = i[v];
  12795. if (b.isAbsolute || b.isFixed) b.isAbsolute ? (b.setPosition(b, h), b.style.left += n, b.style.top += a, b.getBoxPosition()) : (b.setPosition(b, this.root), b.getBoxPosition());else if (0 == v) b.style.left += n, b.style.top += a, b.getBoxPosition(), u = b, f = b;else {
  12796. var m, w, x, y;
  12797. (null == (m = f) ? void 0 : m.offsetSize.height) < (null == (w = u) ? void 0 : w.offsetSize.height) && (f = u);
  12798. var S = (null == (x = u) ? void 0 : x.offsetSize.left) + (null == (y = u) ? void 0 : y.offsetSize.width) + b.offsetSize.width > h.left + h.width + l;
  12799. if (this.getBoxState(u, b) || S) {
  12800. var z, B, R, M;
  12801. if (b.style.left += n, (null == (z = u) ? void 0 : z.offsetSize.height) >= (null == (B = f) ? void 0 : B.offsetSize.height)) b.style.top += u.offsetSize.top + u.offsetSize.height || 0;else b.style.top += (null == (R = f) ? void 0 : R.offsetSize.top) + (null == (M = f) ? void 0 : M.offsetSize.height) || 0;
  12802. b.getBoxPosition(), u = b, f = b, g = !0;
  12803. } else b.style.left += u.offsetSize.left + u.offsetSize.width, b.style.top += g ? u.offsetSize.top : a, b.getBoxPosition(), u = b;
  12804. }
  12805. }
  12806. this.layoutBoxUpdate(h, e);
  12807. } else this.layoutBoxUpdate(h, e);
  12808. return this.layoutBox;
  12809. }, e.setMaxLineHeight = function (t, e, i) {
  12810. for (var o = t; o >= 0 && !e[o].contentSize.maxLineHeight;) {
  12811. e[o].contentSize.maxLineHeight = i, o--;
  12812. }
  12813. }, e.getBoxState = function (t, e) {
  12814. return "view" == e.name && "inline-block" !== e.style.display || "view" == (null == t ? void 0 : t.name) && "inline-block" !== (null == t ? void 0 : t.style.display) || "block" == e.style.display || "block" == (null == t ? void 0 : t.style.display);
  12815. }, e.getBoxHieght = function () {
  12816. var t,
  12817. e = this,
  12818. i = this.name,
  12819. o = this.computedStyle,
  12820. r = this.attributes,
  12821. n = this.parent,
  12822. s = this.getChildren(),
  12823. a = o.top,
  12824. h = o.bottom,
  12825. d = o.height,
  12826. c = void 0 === d ? 0 : d,
  12827. u = o.fontSize,
  12828. f = void 0 === u ? 14 : u,
  12829. g = o.position,
  12830. v = o.lineHeight,
  12831. b = void 0 === v ? "1.4em" : v;
  12832. o.lineClamp;
  12833. var m = p({}, this.contentSize);
  12834. if ("image" == i && null == c) {
  12835. var w = r.width,
  12836. x = r.height;
  12837. r.mode, m.height = Math.round(m.width * x / w) || 0, this.layoutBoxUpdate(m, o, "height");
  12838. } else if (c) {
  12839. if (s.length) {
  12840. var y = null,
  12841. S = 0;
  12842. s.forEach(function (t, i) {
  12843. var o,
  12844. r,
  12845. n = i == s.length - 1;
  12846. t.getBoxHieght();
  12847. var a = (null == (o = y) ? void 0 : o.offsetSize.left) + (null == (r = y) ? void 0 : r.offsetSize.width) + t.offsetSize.width > m.left + m.width,
  12848. h = e.getBoxState(y, t);
  12849. if (a || h) {
  12850. if (a) {
  12851. for (var d = i - 1; d >= 0 && !s[d].contentSize.maxLineHeight;) {
  12852. S < s[d].contentSize.height && (S = s[d].contentSize.height), d--;
  12853. }
  12854. e.setMaxLineHeight(i - 1, s, S), S = 0;
  12855. }
  12856. } else if (n) {
  12857. for (var l = i; l >= 0 && !s[l].contentSize.maxLineHeight;) {
  12858. S < s[l].contentSize.height && (S = s[l].contentSize.height), l--;
  12859. }
  12860. e.setMaxLineHeight(i, s, S), S = 0;
  12861. }
  12862. y = t;
  12863. });
  12864. } else this.layoutBoxUpdate(m, o, "height");
  12865. } else {
  12866. var z = 0;
  12867. if (null !== a && (this.isAbsolute || this.isFixed && n.contentSize.height)) {
  12868. var B = "absolute" == g ? n.contentSize.height : this.root.height;
  12869. z = B - (/%$/.test(a) ? l(a, B) : a) - (/%$/.test(h) ? l(h, B) : h);
  12870. }
  12871. if ("text" == i) b = l(b, f), m.height = z || this.attributes.lines * b, this.layoutBoxUpdate(m, o, "height", !0);else if (s.length) {
  12872. var R = 0,
  12873. M = null,
  12874. k = 0;
  12875. m.height = s.reduce(function (t, i, o) {
  12876. var r = o == s.length - 1;
  12877. if (i.isAbsolute || i.isFixed) return r ? t + R : t;
  12878. i.getBoxHieght();
  12879. var n = e.getBoxState(M, i),
  12880. a = k + i.offsetSize.width > m.width;
  12881. if (a || n) {
  12882. var h,
  12883. d,
  12884. l = 0;
  12885. return a || M && ("view" !== (null == (h = M) ? void 0 : h.name) || "inline-block" == (null == (d = M) ? void 0 : d.style.display)) ? (r && (e.setMaxLineHeight(o - 1, s, R), R += i.offsetSize.height), l = t + R, R = i.offsetSize.height, k = i.offsetSize.width, M = i, l) : (k = 0, R = 0, t + i.offsetSize.height);
  12886. }
  12887. return k += i.offsetSize.width, R = Math.max(R, i.offsetSize.height) || 0, r ? (e.setMaxLineHeight(o, s, R), t + R) : (M = i, t);
  12888. }, 0), z && (m.height = z), this.layoutBoxUpdate(m, o);
  12889. } else z && (m.height = z), this.layoutBoxUpdate(m, o, "height");
  12890. }
  12891. if (o.borderRadius && null != (t = this.borderSize) && t.width) for (var P in o.borderRadius) {
  12892. Object.hasOwnProperty.call(o.borderRadius, P) && (o.borderRadius[P] = l(o.borderRadius[P], this.borderSize.width));
  12893. }
  12894. return this.layoutBox;
  12895. }, e.contrastSize = function (t, e, i) {
  12896. var o = t;
  12897. return i && (o = Math.min(o, i)), e && (o = Math.max(o, e)), o;
  12898. }, e.measureText = function (t, e) {
  12899. var i = this.ctx.measureText(t);
  12900. return {
  12901. width: i.width,
  12902. fontHeight: (i.actualBoundingBoxAscent || .7 * e) + 1
  12903. };
  12904. }, e.getBoxWidth = function () {
  12905. var t,
  12906. e = this,
  12907. i = this.name,
  12908. o = this.computedStyle,
  12909. r = this.attributes,
  12910. n = this.parent,
  12911. s = void 0 === n ? {} : n,
  12912. a = this.ctx,
  12913. h = this.getChildren(),
  12914. d = o.left,
  12915. c = void 0 === d ? 0 : d;
  12916. o.top;
  12917. var u = o.right,
  12918. f = o.width,
  12919. g = void 0 === f ? 0 : f,
  12920. v = o.minWidth,
  12921. p = o.maxWidth,
  12922. b = o.height,
  12923. m = void 0 === b ? 0 : b,
  12924. w = o.fontSize,
  12925. x = void 0 === w ? 14 : w,
  12926. y = o.fontWeight,
  12927. S = o.fontFamily,
  12928. z = o.textStyle,
  12929. B = o.position,
  12930. R = o.display,
  12931. M = o.lineClamp,
  12932. k = o.padding,
  12933. P = void 0 === k ? {} : k,
  12934. O = o.margin,
  12935. T = void 0 === O ? {} : O,
  12936. L = o.border,
  12937. W = (L = void 0 === L ? {} : L).borderWidth,
  12938. I = void 0 === W ? 0 : W,
  12939. j = o.borderRight,
  12940. C = (j = void 0 === j ? {} : j).borderRightWidth,
  12941. F = void 0 === C ? I : C,
  12942. A = o.borderLeft,
  12943. H = (A = void 0 === A ? {} : A).borderLeftWidth,
  12944. $ = void 0 === H ? I : H;
  12945. if (/%$/.test(g) && s.contentSize.width && (g = l(g, s.contentSize.width, !0)), /%$/.test(m) && s.contentSize.height && (m = l(m, s.contentSize.height)), /%$/.test(v) && s.contentSize.width && (v = l(v, s.contentSize.width, !0)), /%$/.test(p) && s.contentSize.width && (p = l(p, s.contentSize.width, !0)), o.padding && null != (t = s.contentSize) && t.width) for (var E in o.padding) {
  12946. Object.hasOwnProperty.call(o.padding, E) && (o.padding[E] = l(o.padding[E], s.contentSize.width));
  12947. }
  12948. var U = P.paddingRight,
  12949. _ = void 0 === U ? 0 : U,
  12950. D = P.paddingLeft,
  12951. N = void 0 === D ? 0 : D;
  12952. if (o.margin && [o.margin.marginLeft, o.margin.marginRight].includes("auto")) if (g) {
  12953. var V = s.contentSize.width - g - _ - N - $ - F || 0;
  12954. o.margin.marginLeft == o.margin.marginRight ? o.margin.marginLeft = o.margin.marginRight = V / 2 : "auto" == o.margin.marginLeft ? o.margin.marginLeft = V : o.margin.marginRight = V;
  12955. } else o.margin.marginLeft = o.margin.marginRight = 0;
  12956. var X = T.marginRight,
  12957. q = void 0 === X ? 0 : X,
  12958. G = T.marginLeft,
  12959. J = {
  12960. width: g,
  12961. height: m,
  12962. left: 0,
  12963. top: 0
  12964. },
  12965. Y = N + _ + $ + F + (void 0 === G ? 0 : G) + q;
  12966. if ("text" == i && !this.attributes.widths) {
  12967. var Q = r.text || "";
  12968. a.save(), a.setFonts({
  12969. fontFamily: S,
  12970. fontSize: x,
  12971. fontWeight: y,
  12972. textStyle: z
  12973. }), Q.split("\n").map(function (t) {
  12974. var i = t.split("").map(function (t) {
  12975. return e.measureText(t, x).width;
  12976. });
  12977. e.attributes.fontHeight = e.measureText(t, x).fontHeight, e.attributes.widths || (e.attributes.widths = []), e.attributes.widths.push({
  12978. widths: i,
  12979. total: i.reduce(function (t, e) {
  12980. return t + e;
  12981. }, 0)
  12982. });
  12983. }), a.restore();
  12984. }
  12985. if ("image" == i && null == g) {
  12986. var Z = r.width,
  12987. K = r.height;
  12988. J.width = this.contrastSize(Math.round(Z * m / K) || 0, v, p), this.layoutBoxUpdate(J, o, "width");
  12989. } else if (g) h.length ? (this.layoutBoxUpdate(J, o, "width"), h.forEach(function (t) {
  12990. t.getBoxWidth();
  12991. })) : this.layoutBoxUpdate(J, o, "width");else {
  12992. var tt = 0;
  12993. if ((this.isAbsolute || this.isFixed) && s.contentSize.width) {
  12994. var et = "absolute" == B ? s.contentSize.width : this.root.width;
  12995. tt = et - (/%$/.test(c) ? l(c, et) : c) - (/%$/.test(u) ? l(u, et) : u);
  12996. }
  12997. if ("text" == i) {
  12998. var it = this.attributes.widths,
  12999. ot = Math.max.apply(Math, it.map(function (t) {
  13000. return t.total;
  13001. }));
  13002. if (s && s.contentSize.width > 0 && (ot > s.contentSize.width || "block" == R) && !this.isAbsolute && !this.isFixed) ot = s.contentSize.width - Y;
  13003. J.width = tt || this.contrastSize(ot, v, p), this.layoutBoxUpdate(J, o, "width");
  13004. } else if ("view" != i || !s || "inline-block" === R || this.isAbsolute || this.isFixed) {
  13005. if (h.length) {
  13006. for (var rt = 0, nt = null, st = 0; h.length > st;) {
  13007. var at = h[st],
  13008. ht = st == h.length - 1,
  13009. dt = this.getBoxState(nt, at);
  13010. if (!at.isFixed && !at.isAbsolute) if (!nt || dt) {
  13011. var lt = at.getBoxWidth();
  13012. rt = Math.max(rt, lt.width) || 0, nt = at;
  13013. } else if (nt.offsetSize.left + nt.offsetSize.width + at.offsetSize.width < s.contentSize.width && st !== h.length - 1) {
  13014. rt += at.getBoxWidth().width, nt = at;
  13015. } else {
  13016. var ct = at.getBoxWidth();
  13017. ht ? rt += ct.width : rt = s.contentSize.width, nt = null;
  13018. }
  13019. st++;
  13020. }
  13021. J.width = tt || this.contrastSize(Math.ceil(rt), v, p), h.forEach(function (t) {
  13022. "block" != t.style.display || "text" != t.name || t.isFixed || t.isAbsolute || t.style.width || (t.style.width = J.width, t.getBoxWidth());
  13023. }), this.layoutBoxUpdate(J, o, "width");
  13024. } else J.width = tt, this.layoutBoxUpdate(J, o, "width");
  13025. } else J.width = this.contrastSize(s.contentSize.width - Y, v, p), this.layoutBoxUpdate(J, o), h.length && h.forEach(function (t) {
  13026. t.getBoxWidth();
  13027. });
  13028. }
  13029. if ("text" == i && !this.attributes.lines) {
  13030. var ut = this.attributes.widths.length;
  13031. this.attributes.widths.forEach(function (t) {
  13032. return t.widths.reduce(function (t, e, i) {
  13033. return t + e > J.width ? (ut++, e) : t + e;
  13034. }, 0);
  13035. }), ut = M && ut > M ? M : ut, this.attributes.lines = ut;
  13036. }
  13037. return this.layoutBox;
  13038. }, e.layout = function () {
  13039. return this.getBoxWidth(), this.getBoxHieght(), this.getBoxPosition(), this.offsetSize;
  13040. }, t;
  13041. }(),
  13042. x = function () {
  13043. var t,
  13044. e,
  13045. i,
  13046. o,
  13047. r,
  13048. n,
  13049. s = [0, 11, 15, 19, 23, 27, 31, 16, 18, 20, 22, 24, 26, 28, 20, 22, 24, 24, 26, 28, 28, 22, 24, 24, 26, 26, 28, 28, 24, 24, 26, 26, 26, 28, 28, 24, 26, 26, 26, 28, 28],
  13050. a = [3220, 1468, 2713, 1235, 3062, 1890, 2119, 1549, 2344, 2936, 1117, 2583, 1330, 2470, 1667, 2249, 2028, 3780, 481, 4011, 142, 3098, 831, 3445, 592, 2517, 1776, 2234, 1951, 2827, 1070, 2660, 1345, 3177],
  13051. h = [30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107],
  13052. d = [1, 0, 19, 7, 1, 0, 16, 10, 1, 0, 13, 13, 1, 0, 9, 17, 1, 0, 34, 10, 1, 0, 28, 16, 1, 0, 22, 22, 1, 0, 16, 28, 1, 0, 55, 15, 1, 0, 44, 26, 2, 0, 17, 18, 2, 0, 13, 22, 1, 0, 80, 20, 2, 0, 32, 18, 2, 0, 24, 26, 4, 0, 9, 16, 1, 0, 108, 26, 2, 0, 43, 24, 2, 2, 15, 18, 2, 2, 11, 22, 2, 0, 68, 18, 4, 0, 27, 16, 4, 0, 19, 24, 4, 0, 15, 28, 2, 0, 78, 20, 4, 0, 31, 18, 2, 4, 14, 18, 4, 1, 13, 26, 2, 0, 97, 24, 2, 2, 38, 22, 4, 2, 18, 22, 4, 2, 14, 26, 2, 0, 116, 30, 3, 2, 36, 22, 4, 4, 16, 20, 4, 4, 12, 24, 2, 2, 68, 18, 4, 1, 43, 26, 6, 2, 19, 24, 6, 2, 15, 28, 4, 0, 81, 20, 1, 4, 50, 30, 4, 4, 22, 28, 3, 8, 12, 24, 2, 2, 92, 24, 6, 2, 36, 22, 4, 6, 20, 26, 7, 4, 14, 28, 4, 0, 107, 26, 8, 1, 37, 22, 8, 4, 20, 24, 12, 4, 11, 22, 3, 1, 115, 30, 4, 5, 40, 24, 11, 5, 16, 20, 11, 5, 12, 24, 5, 1, 87, 22, 5, 5, 41, 24, 5, 7, 24, 30, 11, 7, 12, 24, 5, 1, 98, 24, 7, 3, 45, 28, 15, 2, 19, 24, 3, 13, 15, 30, 1, 5, 107, 28, 10, 1, 46, 28, 1, 15, 22, 28, 2, 17, 14, 28, 5, 1, 120, 30, 9, 4, 43, 26, 17, 1, 22, 28, 2, 19, 14, 28, 3, 4, 113, 28, 3, 11, 44, 26, 17, 4, 21, 26, 9, 16, 13, 26, 3, 5, 107, 28, 3, 13, 41, 26, 15, 5, 24, 30, 15, 10, 15, 28, 4, 4, 116, 28, 17, 0, 42, 26, 17, 6, 22, 28, 19, 6, 16, 30, 2, 7, 111, 28, 17, 0, 46, 28, 7, 16, 24, 30, 34, 0, 13, 24, 4, 5, 121, 30, 4, 14, 47, 28, 11, 14, 24, 30, 16, 14, 15, 30, 6, 4, 117, 30, 6, 14, 45, 28, 11, 16, 24, 30, 30, 2, 16, 30, 8, 4, 106, 26, 8, 13, 47, 28, 7, 22, 24, 30, 22, 13, 15, 30, 10, 2, 114, 28, 19, 4, 46, 28, 28, 6, 22, 28, 33, 4, 16, 30, 8, 4, 122, 30, 22, 3, 45, 28, 8, 26, 23, 30, 12, 28, 15, 30, 3, 10, 117, 30, 3, 23, 45, 28, 4, 31, 24, 30, 11, 31, 15, 30, 7, 7, 116, 30, 21, 7, 45, 28, 1, 37, 23, 30, 19, 26, 15, 30, 5, 10, 115, 30, 19, 10, 47, 28, 15, 25, 24, 30, 23, 25, 15, 30, 13, 3, 115, 30, 2, 29, 46, 28, 42, 1, 24, 30, 23, 28, 15, 30, 17, 0, 115, 30, 10, 23, 46, 28, 10, 35, 24, 30, 19, 35, 15, 30, 17, 1, 115, 30, 14, 21, 46, 28, 29, 19, 24, 30, 11, 46, 15, 30, 13, 6, 115, 30, 14, 23, 46, 28, 44, 7, 24, 30, 59, 1, 16, 30, 12, 7, 121, 30, 12, 26, 47, 28, 39, 14, 24, 30, 22, 41, 15, 30, 6, 14, 121, 30, 6, 34, 47, 28, 46, 10, 24, 30, 2, 64, 15, 30, 17, 4, 122, 30, 29, 14, 46, 28, 49, 10, 24, 30, 24, 46, 15, 30, 4, 18, 122, 30, 13, 32, 46, 28, 48, 14, 24, 30, 42, 32, 15, 30, 20, 4, 117, 30, 40, 7, 47, 28, 43, 22, 24, 30, 10, 67, 15, 30, 19, 6, 118, 30, 18, 31, 47, 28, 34, 34, 24, 30, 20, 61, 15, 30],
  13053. l = [255, 0, 1, 25, 2, 50, 26, 198, 3, 223, 51, 238, 27, 104, 199, 75, 4, 100, 224, 14, 52, 141, 239, 129, 28, 193, 105, 248, 200, 8, 76, 113, 5, 138, 101, 47, 225, 36, 15, 33, 53, 147, 142, 218, 240, 18, 130, 69, 29, 181, 194, 125, 106, 39, 249, 185, 201, 154, 9, 120, 77, 228, 114, 166, 6, 191, 139, 98, 102, 221, 48, 253, 226, 152, 37, 179, 16, 145, 34, 136, 54, 208, 148, 206, 143, 150, 219, 189, 241, 210, 19, 92, 131, 56, 70, 64, 30, 66, 182, 163, 195, 72, 126, 110, 107, 58, 40, 84, 250, 133, 186, 61, 202, 94, 155, 159, 10, 21, 121, 43, 78, 212, 229, 172, 115, 243, 167, 87, 7, 112, 192, 247, 140, 128, 99, 13, 103, 74, 222, 237, 49, 197, 254, 24, 227, 165, 153, 119, 38, 184, 180, 124, 17, 68, 146, 217, 35, 32, 137, 46, 55, 63, 209, 91, 149, 188, 207, 205, 144, 135, 151, 178, 220, 252, 190, 97, 242, 86, 211, 171, 20, 42, 93, 158, 132, 60, 57, 83, 71, 109, 65, 162, 31, 45, 67, 216, 183, 123, 164, 118, 196, 23, 73, 236, 127, 12, 111, 246, 108, 161, 59, 82, 41, 157, 85, 170, 251, 96, 134, 177, 187, 204, 62, 90, 203, 89, 95, 176, 156, 169, 160, 81, 11, 245, 22, 235, 122, 117, 44, 215, 79, 174, 213, 233, 230, 231, 173, 232, 116, 214, 244, 234, 168, 80, 88, 175],
  13054. c = [1, 2, 4, 8, 16, 32, 64, 128, 29, 58, 116, 232, 205, 135, 19, 38, 76, 152, 45, 90, 180, 117, 234, 201, 143, 3, 6, 12, 24, 48, 96, 192, 157, 39, 78, 156, 37, 74, 148, 53, 106, 212, 181, 119, 238, 193, 159, 35, 70, 140, 5, 10, 20, 40, 80, 160, 93, 186, 105, 210, 185, 111, 222, 161, 95, 190, 97, 194, 153, 47, 94, 188, 101, 202, 137, 15, 30, 60, 120, 240, 253, 231, 211, 187, 107, 214, 177, 127, 254, 225, 223, 163, 91, 182, 113, 226, 217, 175, 67, 134, 17, 34, 68, 136, 13, 26, 52, 104, 208, 189, 103, 206, 129, 31, 62, 124, 248, 237, 199, 147, 59, 118, 236, 197, 151, 51, 102, 204, 133, 23, 46, 92, 184, 109, 218, 169, 79, 158, 33, 66, 132, 21, 42, 84, 168, 77, 154, 41, 82, 164, 85, 170, 73, 146, 57, 114, 228, 213, 183, 115, 230, 209, 191, 99, 198, 145, 63, 126, 252, 229, 215, 179, 123, 246, 241, 255, 227, 219, 171, 75, 150, 49, 98, 196, 149, 55, 110, 220, 165, 87, 174, 65, 130, 25, 50, 100, 200, 141, 7, 14, 28, 56, 112, 224, 221, 167, 83, 166, 81, 162, 89, 178, 121, 242, 249, 239, 195, 155, 43, 86, 172, 69, 138, 9, 18, 36, 72, 144, 61, 122, 244, 245, 247, 243, 251, 235, 203, 139, 11, 22, 44, 88, 176, 125, 250, 233, 207, 131, 27, 54, 108, 216, 173, 71, 142, 0],
  13055. u = [],
  13056. f = [],
  13057. g = [],
  13058. v = [],
  13059. p = [],
  13060. b = 2;
  13061. function m(t, e) {
  13062. var i;
  13063. t > e && (i = t, t = e, e = i), i = e, i *= e, i += e, i >>= 1, v[i += t] = 1;
  13064. }
  13065. function w(t, i) {
  13066. var o;
  13067. for (g[t + e * i] = 1, o = -2; o < 2; o++) {
  13068. g[t + o + e * (i - 2)] = 1, g[t - 2 + e * (i + o + 1)] = 1, g[t + 2 + e * (i + o)] = 1, g[t + o + 1 + e * (i + 2)] = 1;
  13069. }
  13070. for (o = 0; o < 2; o++) {
  13071. m(t - 1, i + o), m(t + 1, i - o), m(t - o, i - 1), m(t + o, i + 1);
  13072. }
  13073. }
  13074. function x(t) {
  13075. for (; t >= 255;) {
  13076. t = ((t -= 255) >> 8) + (255 & t);
  13077. }
  13078. return t;
  13079. }
  13080. var y = [];
  13081. function S(t, e, i, o) {
  13082. var r, n, s;
  13083. for (r = 0; r < o; r++) {
  13084. u[i + r] = 0;
  13085. }
  13086. for (r = 0; r < e; r++) {
  13087. if (255 != (s = l[u[t + r] ^ u[i]])) for (n = 1; n < o; n++) {
  13088. u[i + n - 1] = u[i + n] ^ c[x(s + y[o - n])];
  13089. } else for (n = i; n < i + o; n++) {
  13090. u[n] = u[n + 1];
  13091. }
  13092. u[i + o - 1] = 255 == s ? 0 : c[x(s + y[0])];
  13093. }
  13094. }
  13095. function z(t, e) {
  13096. var i;
  13097. return t > e && (i = t, t = e, e = i), i = e, i += e * e, i >>= 1, v[i += t];
  13098. }
  13099. function B(t) {
  13100. var i, o, r, n;
  13101. switch (t) {
  13102. case 0:
  13103. for (o = 0; o < e; o++) {
  13104. for (i = 0; i < e; i++) {
  13105. i + o & 1 || z(i, o) || (g[i + o * e] ^= 1);
  13106. }
  13107. }
  13108. break;
  13109. case 1:
  13110. for (o = 0; o < e; o++) {
  13111. for (i = 0; i < e; i++) {
  13112. 1 & o || z(i, o) || (g[i + o * e] ^= 1);
  13113. }
  13114. }
  13115. break;
  13116. case 2:
  13117. for (o = 0; o < e; o++) {
  13118. for (r = 0, i = 0; i < e; i++, r++) {
  13119. 3 == r && (r = 0), r || z(i, o) || (g[i + o * e] ^= 1);
  13120. }
  13121. }
  13122. break;
  13123. case 3:
  13124. for (n = 0, o = 0; o < e; o++, n++) {
  13125. for (3 == n && (n = 0), r = n, i = 0; i < e; i++, r++) {
  13126. 3 == r && (r = 0), r || z(i, o) || (g[i + o * e] ^= 1);
  13127. }
  13128. }
  13129. break;
  13130. case 4:
  13131. for (o = 0; o < e; o++) {
  13132. for (r = 0, n = o >> 1 & 1, i = 0; i < e; i++, r++) {
  13133. 3 == r && (r = 0, n = !n), n || z(i, o) || (g[i + o * e] ^= 1);
  13134. }
  13135. }
  13136. break;
  13137. case 5:
  13138. for (n = 0, o = 0; o < e; o++, n++) {
  13139. for (3 == n && (n = 0), r = 0, i = 0; i < e; i++, r++) {
  13140. 3 == r && (r = 0), (i & o & 1) + !(!r | !n) || z(i, o) || (g[i + o * e] ^= 1);
  13141. }
  13142. }
  13143. break;
  13144. case 6:
  13145. for (n = 0, o = 0; o < e; o++, n++) {
  13146. for (3 == n && (n = 0), r = 0, i = 0; i < e; i++, r++) {
  13147. 3 == r && (r = 0), (i & o & 1) + (r && r == n) & 1 || z(i, o) || (g[i + o * e] ^= 1);
  13148. }
  13149. }
  13150. break;
  13151. case 7:
  13152. for (n = 0, o = 0; o < e; o++, n++) {
  13153. for (3 == n && (n = 0), r = 0, i = 0; i < e; i++, r++) {
  13154. 3 == r && (r = 0), (r && r == n) + (i + o & 1) & 1 || z(i, o) || (g[i + o * e] ^= 1);
  13155. }
  13156. }
  13157. }
  13158. }
  13159. function R(t) {
  13160. var e,
  13161. i = 0;
  13162. for (e = 0; e <= t; e++) {
  13163. p[e] >= 5 && (i += 3 + p[e] - 5);
  13164. }
  13165. for (e = 3; e < t - 1; e += 2) {
  13166. p[e - 2] == p[e + 2] && p[e + 2] == p[e - 1] && p[e - 1] == p[e + 1] && 3 * p[e - 1] == p[e] && (0 == p[e - 3] || e + 3 > t || 3 * p[e - 3] >= 4 * p[e] || 3 * p[e + 3] >= 4 * p[e]) && (i += 40);
  13167. }
  13168. return i;
  13169. }
  13170. function M() {
  13171. var t,
  13172. i,
  13173. o,
  13174. r,
  13175. n,
  13176. s = 0,
  13177. a = 0;
  13178. for (i = 0; i < e - 1; i++) {
  13179. for (t = 0; t < e - 1; t++) {
  13180. (g[t + e * i] && g[t + 1 + e * i] && g[t + e * (i + 1)] && g[t + 1 + e * (i + 1)] || !(g[t + e * i] || g[t + 1 + e * i] || g[t + e * (i + 1)] || g[t + 1 + e * (i + 1)])) && (s += 3);
  13181. }
  13182. }
  13183. for (i = 0; i < e; i++) {
  13184. for (p[0] = 0, o = r = t = 0; t < e; t++) {
  13185. (n = g[t + e * i]) == r ? p[o]++ : p[++o] = 1, a += (r = n) ? 1 : -1;
  13186. }
  13187. s += R(o);
  13188. }
  13189. a < 0 && (a = -a);
  13190. var h = a,
  13191. d = 0;
  13192. for (h += h << 2, h <<= 1; h > e * e;) {
  13193. h -= e * e, d++;
  13194. }
  13195. for (s += 10 * d, t = 0; t < e; t++) {
  13196. for (p[0] = 0, o = r = i = 0; i < e; i++) {
  13197. (n = g[t + e * i]) == r ? p[o]++ : p[++o] = 1, r = n;
  13198. }
  13199. s += R(o);
  13200. }
  13201. return s;
  13202. }
  13203. var k = null;
  13204. return {
  13205. api: {
  13206. get ecclevel() {
  13207. return b;
  13208. },
  13209. set ecclevel(t) {
  13210. b = t;
  13211. },
  13212. get size() {
  13213. return _size;
  13214. },
  13215. set size(t) {
  13216. _size = t;
  13217. },
  13218. get canvas() {
  13219. return k;
  13220. },
  13221. set canvas(t) {
  13222. k = t;
  13223. },
  13224. getFrame: function getFrame(p) {
  13225. return function (p) {
  13226. var R, k, P, O, T, L, W, I;
  13227. O = p.length, t = 0;
  13228. do {
  13229. if (t++, P = 4 * (b - 1) + 16 * (t - 1), i = d[P++], o = d[P++], r = d[P++], n = d[P], O <= (P = r * (i + o) + o - 3 + (t <= 9))) break;
  13230. } while (t < 40);
  13231. for (e = 17 + 4 * t, T = r + (r + n) * (i + o) + o, O = 0; O < T; O++) {
  13232. f[O] = 0;
  13233. }
  13234. for (u = p.slice(0), O = 0; O < e * e; O++) {
  13235. g[O] = 0;
  13236. }
  13237. for (O = 0; O < (e * (e + 1) + 1) / 2; O++) {
  13238. v[O] = 0;
  13239. }
  13240. for (O = 0; O < 3; O++) {
  13241. for (P = 0, k = 0, 1 == O && (P = e - 7), 2 == O && (k = e - 7), g[k + 3 + e * (P + 3)] = 1, R = 0; R < 6; R++) {
  13242. g[k + R + e * P] = 1, g[k + e * (P + R + 1)] = 1, g[k + 6 + e * (P + R)] = 1, g[k + R + 1 + e * (P + 6)] = 1;
  13243. }
  13244. for (R = 1; R < 5; R++) {
  13245. m(k + R, P + 1), m(k + 1, P + R + 1), m(k + 5, P + R), m(k + R + 1, P + 5);
  13246. }
  13247. for (R = 2; R < 4; R++) {
  13248. g[k + R + e * (P + 2)] = 1, g[k + 2 + e * (P + R + 1)] = 1, g[k + 4 + e * (P + R)] = 1, g[k + R + 1 + e * (P + 4)] = 1;
  13249. }
  13250. }
  13251. if (t > 1) for (O = s[t], k = e - 7;;) {
  13252. for (R = e - 7; R > O - 3 && (w(R, k), !(R < O));) {
  13253. R -= O;
  13254. }
  13255. if (k <= O + 9) break;
  13256. w(6, k -= O), w(k, 6);
  13257. }
  13258. for (g[8 + e * (e - 8)] = 1, k = 0; k < 7; k++) {
  13259. m(7, k), m(e - 8, k), m(7, k + e - 7);
  13260. }
  13261. for (R = 0; R < 8; R++) {
  13262. m(R, 7), m(R + e - 8, 7), m(R, e - 8);
  13263. }
  13264. for (R = 0; R < 9; R++) {
  13265. m(R, 8);
  13266. }
  13267. for (R = 0; R < 8; R++) {
  13268. m(R + e - 8, 8), m(8, R);
  13269. }
  13270. for (k = 0; k < 7; k++) {
  13271. m(8, k + e - 7);
  13272. }
  13273. for (R = 0; R < e - 14; R++) {
  13274. 1 & R ? (m(8 + R, 6), m(6, 8 + R)) : (g[8 + R + 6 * e] = 1, g[6 + e * (8 + R)] = 1);
  13275. }
  13276. if (t > 6) for (O = a[t - 7], P = 17, R = 0; R < 6; R++) {
  13277. for (k = 0; k < 3; k++, P--) {
  13278. 1 & (P > 11 ? t >> P - 12 : O >> P) ? (g[5 - R + e * (2 - k + e - 11)] = 1, g[2 - k + e - 11 + e * (5 - R)] = 1) : (m(5 - R, 2 - k + e - 11), m(2 - k + e - 11, 5 - R));
  13279. }
  13280. }
  13281. for (k = 0; k < e; k++) {
  13282. for (R = 0; R <= k; R++) {
  13283. g[R + e * k] && m(R, k);
  13284. }
  13285. }
  13286. for (T = u.length, L = 0; L < T; L++) {
  13287. f[L] = u.charCodeAt(L);
  13288. }
  13289. if (u = f.slice(0), T >= (R = r * (i + o) + o) - 2 && (T = R - 2, t > 9 && T--), L = T, t > 9) {
  13290. for (u[L + 2] = 0, u[L + 3] = 0; L--;) {
  13291. O = u[L], u[L + 3] |= 255 & O << 4, u[L + 2] = O >> 4;
  13292. }
  13293. u[2] |= 255 & T << 4, u[1] = T >> 4, u[0] = 64 | T >> 12;
  13294. } else {
  13295. for (u[L + 1] = 0, u[L + 2] = 0; L--;) {
  13296. O = u[L], u[L + 2] |= 255 & O << 4, u[L + 1] = O >> 4;
  13297. }
  13298. u[1] |= 255 & T << 4, u[0] = 64 | T >> 4;
  13299. }
  13300. for (L = T + 3 - (t < 10); L < R;) {
  13301. u[L++] = 236, u[L++] = 17;
  13302. }
  13303. for (y[0] = 1, L = 0; L < n; L++) {
  13304. for (y[L + 1] = 1, W = L; W > 0; W--) {
  13305. y[W] = y[W] ? y[W - 1] ^ c[x(l[y[W]] + L)] : y[W - 1];
  13306. }
  13307. y[0] = c[x(l[y[0]] + L)];
  13308. }
  13309. for (L = 0; L <= n; L++) {
  13310. y[L] = l[y[L]];
  13311. }
  13312. for (P = R, k = 0, L = 0; L < i; L++) {
  13313. S(k, r, P, n), k += r, P += n;
  13314. }
  13315. for (L = 0; L < o; L++) {
  13316. S(k, r + 1, P, n), k += r + 1, P += n;
  13317. }
  13318. for (k = 0, L = 0; L < r; L++) {
  13319. for (W = 0; W < i; W++) {
  13320. f[k++] = u[L + W * r];
  13321. }
  13322. for (W = 0; W < o; W++) {
  13323. f[k++] = u[i * r + L + W * (r + 1)];
  13324. }
  13325. }
  13326. for (W = 0; W < o; W++) {
  13327. f[k++] = u[i * r + L + W * (r + 1)];
  13328. }
  13329. for (L = 0; L < n; L++) {
  13330. for (W = 0; W < i + o; W++) {
  13331. f[k++] = u[R + L + W * n];
  13332. }
  13333. }
  13334. for (u = f, R = k = e - 1, P = T = 1, I = (r + n) * (i + o) + o, L = 0; L < I; L++) {
  13335. for (O = u[L], W = 0; W < 8; W++, O <<= 1) {
  13336. 128 & O && (g[R + e * k] = 1);
  13337. do {
  13338. T ? R-- : (R++, P ? 0 != k ? k-- : (P = !P, 6 == (R -= 2) && (R--, k = 9)) : k != e - 1 ? k++ : (P = !P, 6 == (R -= 2) && (R--, k -= 8))), T = !T;
  13339. } while (z(R, k));
  13340. }
  13341. }
  13342. for (u = g.slice(0), O = 0, k = 3e4, P = 0; P < 8 && (B(P), (R = M()) < k && (k = R, O = P), 7 != O); P++) {
  13343. g = u.slice(0);
  13344. }
  13345. for (O != P && B(O), k = h[O + (b - 1 << 3)], P = 0; P < 8; P++, k >>= 1) {
  13346. 1 & k && (g[e - 1 - P + 8 * e] = 1, P < 6 ? g[8 + e * P] = 1 : g[8 + e * (P + 1)] = 1);
  13347. }
  13348. for (P = 0; P < 7; P++, k >>= 1) {
  13349. 1 & k && (g[8 + e * (e - 7 + P)] = 1, P ? g[6 - P + 8 * e] = 1 : g[7 + 8 * e] = 1);
  13350. }
  13351. return g;
  13352. }(p);
  13353. },
  13354. utf16to8: function utf16to8(t) {
  13355. var e, i, o, r;
  13356. for (e = "", o = t.length, i = 0; i < o; i++) {
  13357. (r = t.charCodeAt(i)) >= 1 && r <= 127 ? e += t.charAt(i) : r > 2047 ? (e += String.fromCharCode(224 | r >> 12 & 15), e += String.fromCharCode(128 | r >> 6 & 63), e += String.fromCharCode(128 | r >> 0 & 63)) : (e += String.fromCharCode(192 | r >> 6 & 31), e += String.fromCharCode(128 | r >> 0 & 63));
  13358. }
  13359. return e;
  13360. },
  13361. draw: function draw(t, i, o, r, n) {
  13362. i.drawView(o, r);
  13363. var s = i.ctx,
  13364. a = o.contentSize,
  13365. h = a.width,
  13366. d = a.height;
  13367. r.borderRadius, r.backgroundColor;
  13368. var l = r.color,
  13369. c = void 0 === l ? "#000000" : l;
  13370. r.border;
  13371. var u = o.contentSize.left - o.borderSize.left,
  13372. f = o.contentSize.top - o.borderSize.top;
  13373. if (b = n || b, s) {
  13374. s.save(), i.setOpacity(r);
  13375. var g = i.setTransform(o, r),
  13376. v = g.x,
  13377. p = g.y;
  13378. v += u, p += f;
  13379. var m = Math.min(h, d);
  13380. t = this.utf16to8(t);
  13381. var w = this.getFrame(t),
  13382. x = m / e;
  13383. s.setFillStyle(c);
  13384. for (var y = 0; y < e; y++) {
  13385. for (var S = 0; S < e; S++) {
  13386. w[S * e + y] && s.fillRect(v + x * y, p + x * S, x, x);
  13387. }
  13388. }
  13389. s.restore(), i.setBorder(o, r);
  13390. } else console.warn("No canvas provided to draw QR code in!");
  13391. }
  13392. }
  13393. };
  13394. }(),
  13395. y = function () {
  13396. function t(t, e) {
  13397. var o,
  13398. r,
  13399. n = this,
  13400. a = t.id,
  13401. h = t.context,
  13402. d = t.canvas,
  13403. l = t.pixelRatio,
  13404. c = t.width,
  13405. u = t.height;
  13406. this.count = 0, this.isDraw = !0, this.id = a, this.canvas = d, this.pixelRatio = 1 * l.toFixed(2), this.width = c, this.height = u, this.platform = s, this.isRate = !1, this.component = e, this.ctx = (r = this, (o = h).setFonts = function (t) {
  13407. var e = t.fontFamily,
  13408. i = void 0 === e ? "sans-serif" : e,
  13409. n = t.fontSize,
  13410. s = void 0 === n ? 14 : n,
  13411. a = t.fontWeight,
  13412. h = void 0 === a ? "normal" : a,
  13413. d = t.textStyle,
  13414. l = void 0 === d ? "normal" : d;
  13415. "mp-toutao" == r.platform && (h = "bold" == h ? "bold" : "", l = "italic" == l ? "italic" : ""), o.font = l + " " + h + " " + s + "px " + i;
  13416. }, o.draw ? o : Object.assign(o, {
  13417. setStrokeStyle: function setStrokeStyle(t) {
  13418. o.strokeStyle = t;
  13419. },
  13420. setLineWidth: function setLineWidth(t) {
  13421. o.lineWidth = t;
  13422. },
  13423. setLineCap: function setLineCap(t) {
  13424. o.lineCap = t;
  13425. },
  13426. setFillStyle: function setFillStyle(t) {
  13427. o.fillStyle = t;
  13428. },
  13429. setFontSize: function setFontSize(t) {
  13430. o.font = String(t) + "px sans-serif";
  13431. },
  13432. setGlobalAlpha: function setGlobalAlpha(t) {
  13433. o.globalAlpha = t;
  13434. },
  13435. setLineJoin: function setLineJoin(t) {
  13436. o.lineJoin = t;
  13437. },
  13438. setTextAlign: function setTextAlign(t) {
  13439. o.textAlign = t;
  13440. },
  13441. setMiterLimit: function setMiterLimit(t) {
  13442. o.miterLimit = t;
  13443. },
  13444. setShadow: function setShadow(t, e, i, r) {
  13445. o.shadowOffsetX = t, o.shadowOffsetY = e, o.shadowBlur = i, o.shadowColor = r;
  13446. },
  13447. setTextBaseline: function setTextBaseline(t) {
  13448. o.textBaseline = t;
  13449. },
  13450. createCircularGradient: function createCircularGradient() {},
  13451. draw: function draw() {}
  13452. })), this.sleep = 1e3 / 30, this.progress = 0, this.root = {
  13453. width: c,
  13454. height: u,
  13455. fontSizeRate: 1
  13456. };
  13457. var f = _i({}, this.size);
  13458. Object.defineProperty(this, "size", {
  13459. configurable: !0,
  13460. set: function set(t) {
  13461. Object.keys(t).forEach(function (e) {
  13462. f[e] = t[e], n.root[e] = t[e];
  13463. });
  13464. },
  13465. get: function get() {
  13466. return f;
  13467. }
  13468. }), this.init();
  13469. }
  13470. return t.prototype.init = function () {
  13471. this.canvas.height && (this.canvas.height = this.root.height * this.pixelRatio, this.canvas.width = this.root.width * this.pixelRatio, this.ctx.scale(this.pixelRatio, this.pixelRatio));
  13472. }, t.prototype.clear = function () {
  13473. this.ctx.clearRect(0, 0, this.root.width, this.root.height);
  13474. }, t.prototype.roundRect = function (t, e, i, o, r, n, s) {
  13475. if (void 0 === n && (n = !1), void 0 === s && (s = !1), !(r < 0)) {
  13476. var a = this.ctx;
  13477. if (a.beginPath(), r) {
  13478. var h = r || {},
  13479. d = h.borderTopLeftRadius,
  13480. l = void 0 === d ? r || 0 : d,
  13481. c = h.borderTopRightRadius,
  13482. u = void 0 === c ? r || 0 : c,
  13483. f = h.borderBottomRightRadius,
  13484. g = void 0 === f ? r || 0 : f,
  13485. v = h.borderBottomLeftRadius,
  13486. p = void 0 === v ? r || 0 : v;
  13487. a.arc(t + i - g, e + o - g, g, 0, .5 * Math.PI), a.lineTo(t + p, e + o), a.arc(t + p, e + o - p, p, .5 * Math.PI, Math.PI), a.lineTo(t, e + l), a.arc(t + l, e + l, l, Math.PI, 1.5 * Math.PI), a.lineTo(t + i - u, e), a.arc(t + i - u, e + u, u, 1.5 * Math.PI, 2 * Math.PI), a.lineTo(t + i, e + o - g);
  13488. } else a.rect(t, e, i, o);
  13489. a.closePath(), s && a.stroke(), n && a.fill();
  13490. }
  13491. }, t.prototype.setTransform = function (t, e) {
  13492. var i = e.transform,
  13493. o = e.transformOrigin,
  13494. r = void 0 === o ? "center center" : o,
  13495. n = e.position,
  13496. s = this.ctx,
  13497. a = i || {},
  13498. h = a.scaleX,
  13499. c = void 0 === h ? 1 : h,
  13500. u = a.scaleY,
  13501. f = void 0 === u ? 1 : u,
  13502. g = a.translateX,
  13503. v = void 0 === g ? 0 : g,
  13504. p = a.translateY,
  13505. b = void 0 === p ? 0 : p,
  13506. m = a.rotate,
  13507. w = void 0 === m ? 0 : m,
  13508. x = a.skewX,
  13509. y = void 0 === x ? 0 : x,
  13510. S = a.skewY,
  13511. z = void 0 === S ? 0 : S,
  13512. B = t.left,
  13513. R = t.top,
  13514. M = t.width,
  13515. k = t.height;
  13516. if (!["absolute", "fixed"].includes(n)) return {
  13517. x: B,
  13518. y: R,
  13519. w: M,
  13520. h: k
  13521. };
  13522. v = l(v, M) || 0, b = l(b, k) || 0;
  13523. var P = {
  13524. top: l("0%", 1),
  13525. center: l("50%", 1, !0),
  13526. bottom: l("100%", 1)
  13527. },
  13528. O = {
  13529. left: l("0%", 1),
  13530. center: l("50%", 1, !0),
  13531. right: l("100%", 1)
  13532. };
  13533. r = r.split(" ").filter(function (t, e) {
  13534. return e < 2;
  13535. }).reduce(function (t, e) {
  13536. if (/\d+/.test(e)) {
  13537. var i = l(e, 1, !0) / (/px|rpx$/.test(e) ? d(t.x) ? k : M : 1);
  13538. return d(t.x) ? Object.assign(t, {
  13539. y: i
  13540. }) : Object.assign(t, {
  13541. x: i
  13542. });
  13543. }
  13544. return d(O[e]) && !d(t.x) ? Object.assign(t, {
  13545. x: O[e]
  13546. }) : Object.assign(t, {
  13547. y: P[e] || .5
  13548. });
  13549. }, {}), s.scale(c, f);
  13550. var T = {
  13551. x: M * (c > 0 ? 1 : -1) * r.x + (B + v) / c,
  13552. y: k * (f > 0 ? 1 : -1) * r.y + (R + b) / f
  13553. };
  13554. return s.translate(T.x, T.y), w && s.rotate(w * Math.PI / 180), (y || z) && s.transform(1, Math.tan(z * Math.PI / 180), Math.tan(y * Math.PI / 180), 1, 0, 0), {
  13555. x: -M * r.x,
  13556. y: -k * r.y,
  13557. w: M,
  13558. h: k
  13559. };
  13560. }, t.prototype.setBackground = function (t, e, i, o, r) {
  13561. var n = this.ctx;
  13562. t && "transparent" != t ? u(t) ? f(t, e, i, o, r, n) : n.setFillStyle(t) : ["mp-toutiao", "mp-baidu"].includes(this.platform) ? n.setFillStyle("transparent") : n.setFillStyle("rgba(0,0,0,0)");
  13563. }, t.prototype.setShadow = function (t) {
  13564. var e = t.boxShadow,
  13565. i = void 0 === e ? [] : e,
  13566. o = this.ctx;
  13567. if (i.length) {
  13568. var r = i[0],
  13569. n = i[1],
  13570. s = i[2],
  13571. a = i[3];
  13572. o.setShadow(r, n, s, a);
  13573. }
  13574. }, t.prototype.setBorder = function (t, e) {
  13575. var i = this,
  13576. o = this.ctx,
  13577. r = t.width,
  13578. n = t.height,
  13579. s = e.border,
  13580. a = e.borderBottom,
  13581. h = e.borderTop,
  13582. d = e.borderRight,
  13583. l = e.borderLeft,
  13584. c = e.borderRadius,
  13585. u = s || {},
  13586. f = u.borderWidth,
  13587. g = void 0 === f ? 0 : f,
  13588. v = u.borderStyle,
  13589. p = u.borderColor,
  13590. b = a || {},
  13591. m = b.borderBottomWidth,
  13592. w = void 0 === m ? g : m,
  13593. x = b.borderBottomStyle,
  13594. y = void 0 === x ? v : x,
  13595. S = b.borderBottomColor,
  13596. z = void 0 === S ? p : S,
  13597. B = h || {},
  13598. R = B.borderTopWidth,
  13599. M = void 0 === R ? g : R,
  13600. k = B.borderTopStyle,
  13601. P = void 0 === k ? v : k,
  13602. O = B.borderTopColor,
  13603. T = void 0 === O ? p : O,
  13604. L = d || {},
  13605. W = L.borderRightWidth,
  13606. I = void 0 === W ? g : W,
  13607. j = L.borderRightStyle,
  13608. C = void 0 === j ? v : j,
  13609. F = L.borderRightColor,
  13610. A = void 0 === F ? p : F,
  13611. H = l || {},
  13612. $ = H.borderLeftWidth,
  13613. E = void 0 === $ ? g : $,
  13614. U = H.borderLeftStyle,
  13615. _ = void 0 === U ? v : U,
  13616. D = H.borderLeftColor,
  13617. N = void 0 === D ? p : D,
  13618. V = c || {},
  13619. X = V.borderTopLeftRadius,
  13620. q = void 0 === X ? c || 0 : X,
  13621. G = V.borderTopRightRadius,
  13622. J = void 0 === G ? c || 0 : G,
  13623. Y = V.borderBottomRightRadius,
  13624. Q = void 0 === Y ? c || 0 : Y,
  13625. Z = V.borderBottomLeftRadius,
  13626. K = void 0 === Z ? c || 0 : Z;
  13627. if (a || l || h || d || s) {
  13628. var tt = function tt(t, e, r) {
  13629. "dashed" == e ? /mp/.test(i.platform) ? o.setLineDash([Math.ceil(4 * t / 3), Math.ceil(4 * t / 3)]) : o.setLineDash([Math.ceil(6 * t), Math.ceil(6 * t)]) : "dotted" == e && o.setLineDash([t, t]), o.setStrokeStyle(r);
  13630. },
  13631. et = function et(t, e, i, r, n, s, a, h, d, l, c, u, f, g) {
  13632. o.save(), o.setLineWidth(u), tt(u, f, g), o.beginPath(), o.arc(t, e, a, Math.PI * d, Math.PI * l), o.lineTo(i, r), o.arc(n, s, h, Math.PI * l, Math.PI * c), o.stroke(), o.restore();
  13633. };
  13634. o.save(), this.setOpacity(e);
  13635. var it = this.setTransform(t, e),
  13636. ot = it.x,
  13637. rt = it.y;
  13638. s && (o.setLineWidth(g), tt(g, v, p), this.roundRect(ot, rt, r, n, c, !1, !!p), o.restore()), a && et(ot + r - Q, rt + n - Q, ot + K, rt + n, ot + K, rt + n - K, Q, K, .25, .5, .75, w, y, z), l && et(ot + K, rt + n - K, ot, rt + q, ot + q, rt + q, K, q, .75, 1, 1.25, E, _, N), h && et(ot + q, rt + q, ot + r - J, rt, ot + r - J, rt + J, q, J, 1.25, 1.5, 1.75, M, P, T), d && et(ot + r - J, rt + J, ot + r, rt + n - Q, ot + r - Q, rt + n - Q, J, Q, 1.75, 2, .25, I, C, A);
  13639. }
  13640. }, t.prototype.setOpacity = function (t) {
  13641. var e = t.opacity,
  13642. i = void 0 === e ? 1 : e;
  13643. this.ctx.setGlobalAlpha(i);
  13644. }, t.prototype.drawPattern = function (t, e, i) {
  13645. return o(this, void 0, void 0, function () {
  13646. var n = this;
  13647. return r(this, function (s) {
  13648. return [2, new Promise(function (s, a) {
  13649. var h = n,
  13650. d = h.ctx,
  13651. l = h.canvas,
  13652. c = e.width,
  13653. u = e.height,
  13654. f = i || {},
  13655. g = f.borderRadius,
  13656. v = void 0 === g ? 0 : g,
  13657. p = f.backgroundColor,
  13658. b = void 0 === p ? "transparent" : p,
  13659. m = f.backgroundImage,
  13660. w = f.backgroundRepeat,
  13661. x = void 0 === w ? "repeat" : w;
  13662. d.save(), n.setOpacity(i);
  13663. var y = n.setTransform(e, i),
  13664. S = y.x,
  13665. z = y.y;
  13666. n.setShadow(i), n.setBackground(b, c, u, S, z), n.roundRect(S, z, c, u, v, !0, !1);
  13667. var B = function B(t) {
  13668. var o = d.createPattern(t.src, x);
  13669. d.setFillStyle(o), n.roundRect(S, z, c, u, v, !0, !1), n.setBorder(e, i), d.restore(), s();
  13670. };
  13671. if (m) if (l.createImage || "web" == n.platform) {
  13672. var R = null;
  13673. (R = l.createImage ? l.createImage() : new Image()).onload = function () {
  13674. t.src = R, B(t);
  13675. }, R.onerror = function () {
  13676. return o(n, void 0, void 0, function () {
  13677. return r(this, function (e) {
  13678. return console.log("createImage fail: " + JSON.stringify(t)), s(), [2];
  13679. });
  13680. });
  13681. }, R.src = t.path;
  13682. } else B(t);
  13683. })];
  13684. });
  13685. });
  13686. }, t.prototype.drawView = function (t, e, i, o, r) {
  13687. void 0 === i && (i = !0), void 0 === o && (o = !0), void 0 === r && (r = !0);
  13688. var n = this.ctx,
  13689. s = t.width,
  13690. a = t.height,
  13691. h = e || {},
  13692. d = h.borderRadius,
  13693. l = void 0 === d ? 0 : d,
  13694. c = h.backgroundColor,
  13695. u = void 0 === c ? "transparent" : c;
  13696. n.save(), this.setOpacity(e);
  13697. var f = this.setTransform(t, e),
  13698. g = f.x,
  13699. v = f.y;
  13700. r && this.setShadow(e), i && this.setBackground(u, s, a, g, v), this.roundRect(g, v, s, a, l, i, !1), n.restore(), o && this.setBorder(t, e);
  13701. }, t.prototype.drawImage = function (t, e, i, n) {
  13702. return void 0 === e && (e = {}), void 0 === i && (i = {}), void 0 === n && (n = !0), o(this, void 0, void 0, function () {
  13703. var s = this;
  13704. return r(this, function (a) {
  13705. switch (a.label) {
  13706. case 0:
  13707. return [4, new Promise(function (a, h) {
  13708. return o(s, void 0, void 0, function () {
  13709. var s,
  13710. h,
  13711. d,
  13712. u,
  13713. f,
  13714. g,
  13715. v,
  13716. p,
  13717. b,
  13718. m,
  13719. w,
  13720. x,
  13721. y,
  13722. S,
  13723. z,
  13724. B,
  13725. R,
  13726. M,
  13727. k,
  13728. P,
  13729. O,
  13730. T,
  13731. L,
  13732. W,
  13733. I,
  13734. j,
  13735. C,
  13736. F = this;
  13737. return r(this, function (A) {
  13738. switch (A.label) {
  13739. case 0:
  13740. return i.boxShadow && this.drawView(e, Object.assign(i, {
  13741. backgroundColor: i.backgroundColor || i.boxShadow && (i.backgroundColor || "#ffffff")
  13742. }), !0, !1, !0), h = (s = this).ctx, d = s.sleep, u = s.canvas, f = i.borderRadius, g = void 0 === f ? 0 : f, v = i.backgroundColor, p = void 0 === v ? "transparent" : v, b = i.objectFit, m = void 0 === b ? "fill" : b, w = i.objectPosition, x = e.width, y = e.height, S = e.left, z = e.top, h.save(), B = e.contentSize.left - e.borderSize.left, R = e.contentSize.top - e.borderSize.top, n || (this.setOpacity(i), M = this.setTransform(e, i), k = M.x, P = M.y, this.setBackground(p, x, y, S, z), S = k, z = P, this.roundRect(S, z, x, y, g, !!g, !1)), S += B, z += R, h.clip(), O = function O(t) {
  13743. if ("fill" !== m) {
  13744. var i = function (t, e, i) {
  13745. var o = t.objectFit,
  13746. r = t.objectPosition,
  13747. n = e.width / e.height,
  13748. s = i.width / i.height,
  13749. a = 1;
  13750. "contain" == o && n >= s || "cover" == o && n < s ? a = e.height / i.height : ("contain" == o && n < s || "cover" == o && n >= s) && (a = e.width / i.width);
  13751. var h = i.width * a,
  13752. d = i.height * a,
  13753. c = /^\d+px|rpx$/.test(null == r ? void 0 : r[0]) ? l(null == r ? void 0 : r[0], e.width) : (e.width - h) * (/%$/.test(null == r ? void 0 : r[0]) ? l(null == r ? void 0 : r[0], 1, !0) : {
  13754. left: 0,
  13755. center: .5,
  13756. right: 1
  13757. }[(null == r ? void 0 : r[0]) || "center"]),
  13758. u = /^\d+px|rpx$/.test(null == r ? void 0 : r[1]) ? l(null == r ? void 0 : r[1], e.height) : (e.height - d) * (/%$/.test(null == r ? void 0 : r[1]) ? l(null == r ? void 0 : r[1], 1, !0) : {
  13759. top: 0,
  13760. center: .5,
  13761. bottom: 1
  13762. }[(null == r ? void 0 : r[1]) || "center"]),
  13763. f = function f(t, e) {
  13764. return [(t - c) / a, (e - u) / a];
  13765. },
  13766. g = f(0, 0),
  13767. v = g[0],
  13768. p = g[1],
  13769. b = f(e.width, e.height),
  13770. m = b[0],
  13771. w = b[1];
  13772. return {
  13773. sx: Math.max(v, 0),
  13774. sy: Math.max(p, 0),
  13775. sw: Math.min(m - v, i.width),
  13776. sh: Math.min(w - p, i.height),
  13777. dx: Math.max(c, 0),
  13778. dy: Math.max(u, 0),
  13779. dw: Math.min(h, e.width),
  13780. dh: Math.min(d, e.height)
  13781. };
  13782. }({
  13783. objectFit: m,
  13784. objectPosition: w
  13785. }, e.contentSize, t),
  13786. o = i.sx,
  13787. r = i.sy,
  13788. n = i.sh,
  13789. s = i.sw,
  13790. a = i.dx,
  13791. d = i.dy,
  13792. c = i.dh,
  13793. u = i.dw;
  13794. "mp-baidu" == F.platform ? h.drawImage(t.src, a + S, d + z, u, c, o, r, s, n) : h.drawImage(t.src, o, r, s, n, a + S, d + z, u, c);
  13795. } else h.drawImage(t.src, S, z, x, y);
  13796. }, T = function T() {
  13797. h.restore(), F.drawView(e, i, !1, !0, !1), setTimeout(a, d);
  13798. }, L = function L(t) {
  13799. if (u.createImage || "web" == F.platform) {
  13800. var e = null;
  13801. (e = u.createImage ? u.createImage() : new Image()).onload = function () {
  13802. t.src = e, O(t), T();
  13803. }, e.onerror = function () {
  13804. return o(F, void 0, void 0, function () {
  13805. return r(this, function (e) {
  13806. return console.log("createImage fail: " + JSON.stringify(t)), a(!0), [2];
  13807. });
  13808. });
  13809. }, e.src = t.path;
  13810. } else O(t), T();
  13811. }, "string" != typeof t ? [3, 2] : [4, c(t)];
  13812. case 1:
  13813. return W = A.sent(), I = W.path, j = W.width, C = W.height, L({
  13814. path: I,
  13815. src: I,
  13816. width: j,
  13817. height: C
  13818. }), [3, 3];
  13819. case 2:
  13820. L(t), A.label = 3;
  13821. case 3:
  13822. return [2];
  13823. }
  13824. });
  13825. });
  13826. })];
  13827. case 1:
  13828. return a.sent(), [2];
  13829. }
  13830. });
  13831. });
  13832. }, t.prototype.drawText = function (t, e, i, o) {
  13833. this.drawView(e, i);
  13834. var r = this.ctx,
  13835. n = e.borderSize,
  13836. s = e.contentSize,
  13837. a = s.width,
  13838. h = s.height,
  13839. d = s.left - n.left,
  13840. c = s.top - n.top,
  13841. u = i.color,
  13842. f = void 0 === u ? "#000000" : u,
  13843. g = i.lineHeight,
  13844. v = void 0 === g ? "1.4em" : g,
  13845. p = i.fontSize,
  13846. b = void 0 === p ? 14 : p,
  13847. m = i.fontWeight,
  13848. w = i.fontFamily,
  13849. x = i.textStyle,
  13850. y = i.textAlign,
  13851. S = void 0 === y ? "left" : y,
  13852. z = i.verticalAlign,
  13853. B = void 0 === z ? "middle" : z;
  13854. i.backgroundColor;
  13855. var R = i.lineClamp,
  13856. M = i.textDecoration;
  13857. if (v = l(v, b), t) {
  13858. r.save(), this.setOpacity(i);
  13859. var k = this.setTransform(e, i),
  13860. P = k.x,
  13861. O = k.y;
  13862. switch (P += d, O += c, r.setFonts({
  13863. fontFamily: w,
  13864. fontSize: b,
  13865. fontWeight: m,
  13866. textStyle: x
  13867. }), r.setTextBaseline("middle"), r.setTextAlign(S), r.setFillStyle(f), O += b / 2, S) {
  13868. case "left":
  13869. break;
  13870. case "center":
  13871. P += .5 * a;
  13872. break;
  13873. case "right":
  13874. P += a;
  13875. }
  13876. var T = o.lines * v,
  13877. L = Math.ceil((h - T) / 2);
  13878. switch (L < 0 && (L = 0), B) {
  13879. case "top":
  13880. break;
  13881. case "middle":
  13882. O += L;
  13883. break;
  13884. case "bottom":
  13885. O += 2 * L;
  13886. }
  13887. var W = (v - o.fontHeight) / 2,
  13888. I = function I(t, e, i) {
  13889. var n = t;
  13890. switch (S) {
  13891. case "left":
  13892. t = t, n += i;
  13893. break;
  13894. case "center":
  13895. n = (t -= i / 2) + i;
  13896. break;
  13897. case "right":
  13898. n = t, t -= i;
  13899. }
  13900. M && (r.setLineWidth(b / 13), r.beginPath(), e -= W, /\bunderline\b/.test(M) && (r.moveTo(t, e - .5 * o.fontHeight), r.lineTo(n, e - .5 * o.fontHeight)), /\boverline\b/.test(M) && (r.moveTo(t, e - 1.5 * o.fontHeight), r.lineTo(n, e - 1.5 * o.fontHeight)), /\bline-through\b/.test(M) && (r.moveTo(t, e - o.fontHeight), r.lineTo(n, e - o.fontHeight)), r.closePath(), r.setStrokeStyle(f), r.stroke());
  13901. };
  13902. if (1 == o.widths.lenght && o.widths[0].total <= s.width) return r.fillText(t, P, O + W), I(P, O += v, o.widths[0].total), r.restore(), void this.setBorder(e, i);
  13903. for (var j = t.split(""), C = O, F = P, A = "", H = 0, $ = 0; $ <= j.length; $++) {
  13904. var E = j[$] || "",
  13905. U = "\n" === E,
  13906. _ = "" == E,
  13907. D = A + (E = U ? "" : E),
  13908. N = r.measureText(D).width;
  13909. if (H >= R) break;
  13910. if (F = P, (N = N) > s.width || U || _) {
  13911. if (H++, A = _ && N <= s.width ? D : A, H === R && N > a) {
  13912. for (; r.measureText(A + "...").width > s.width && !(A.length <= 1);) {
  13913. A = A.substring(0, A.length - 1);
  13914. }
  13915. A += "...";
  13916. }
  13917. if (r.fillText(A, F, O + W), I(F, O += v, N), A = E, O + v > C + h) break;
  13918. } else A = D;
  13919. }
  13920. r.restore();
  13921. }
  13922. }, t.prototype.source = function (t) {
  13923. var e;
  13924. return o(this, void 0, void 0, function () {
  13925. var i, o;
  13926. return r(this, function (r) {
  13927. switch (r.label) {
  13928. case 0:
  13929. if ("{}" == JSON.stringify(t)) return [2];
  13930. if (!t.type) for (i in t.type = "view", t.css = t.css || {}, t) {
  13931. ["views", "children", "type", "css"].includes(i) || (t.css[i] = t[i], delete t[i]);
  13932. }
  13933. return (null === (e = null == t ? void 0 : t.css) || void 0 === e ? void 0 : e.width) || (t.css ? t.css.width = this.root.width : t.css = {
  13934. width: this.root.width
  13935. }), [4, this.create(t)];
  13936. case 1:
  13937. return o = r.sent(), this.size = o.layout(), this.node = o, [2, this.size];
  13938. }
  13939. });
  13940. });
  13941. }, t.prototype.create = function (t, e) {
  13942. var i, n, s, a;
  13943. return o(this, void 0, void 0, function () {
  13944. var o, h, d, l, u, f, g, v, p, b, m, x;
  13945. return r(this, function (r) {
  13946. switch (r.label) {
  13947. case 0:
  13948. if ("image" == t.type && !t.src && !t.url || "qrcode" == t.type && !t.text) return [2];
  13949. if ("none" == (null === (i = null == t ? void 0 : t.css) || void 0 === i ? void 0 : i.display)) return console.error("element display none"), [2];
  13950. r.label = 1;
  13951. case 1:
  13952. return r.trys.push([1, 4,, 5]), "image" == t.type || "view" == t.type && (null === (n = t.css) || void 0 === n ? void 0 : n.backgroundImage) ? (o = null, h = /url\((.+)\)/, t.css.backgroundImage && (null === (s = h.exec(t.css.backgroundImage)) || void 0 === s ? void 0 : s[1]) && (o = null === (a = h.exec(t.css.backgroundImage)) || void 0 === a ? void 0 : a[1]), [4, c(t.src || o)]) : [3, 3];
  13953. case 2:
  13954. d = r.sent(), l = d.width, u = d.height, f = d.path, ["mp-weixin", "mp-baidu", "mp-qq", "mp-toutiao"].includes(this.platform) && (f = /^\.|^\/(?=[^\/])/.test(t.src || o) ? "/" + f : f), t.attributes = Object.assign(t.attributes || {}, {
  13955. width: l,
  13956. height: u,
  13957. path: f,
  13958. src: f,
  13959. naturalSrc: t.src || o
  13960. }), r.label = 3;
  13961. case 3:
  13962. return [3, 5];
  13963. case 4:
  13964. return g = r.sent(), console.log(g), [2];
  13965. case 5:
  13966. if (this.count += 1, v = new w(t, e, this.root, this.ctx), !(p = t.views || t.children)) return [3, 9];
  13967. b = 0, r.label = 6;
  13968. case 6:
  13969. return b < p.length ? (m = p[b], [4, this.create(m, v)]) : [3, 9];
  13970. case 7:
  13971. (x = r.sent()) && v.add(x), r.label = 8;
  13972. case 8:
  13973. return b++, [3, 6];
  13974. case 9:
  13975. return [2, v];
  13976. }
  13977. });
  13978. });
  13979. }, t.prototype.drawNode = function (t) {
  13980. return o(this, void 0, void 0, function () {
  13981. var e, i, o, n, s, a, h, d, l, c, u, f;
  13982. return r(this, function (r) {
  13983. switch (r.label) {
  13984. case 0:
  13985. return e = t.layoutBox, i = t.computedStyle, o = t.attributes, n = t.name, s = t.children, a = t.attributes, h = a.src, d = a.text, "view" !== n ? [3, 4] : h ? [4, this.drawPattern(o, e, i)] : [3, 2];
  13986. case 1:
  13987. return r.sent(), [3, 3];
  13988. case 2:
  13989. this.drawView(e, i), r.label = 3;
  13990. case 3:
  13991. return [3, 7];
  13992. case 4:
  13993. return "image" === n && h ? [4, this.drawImage(o, e, i, !1)] : [3, 6];
  13994. case 5:
  13995. return r.sent(), [3, 7];
  13996. case 6:
  13997. "text" === n ? this.drawText(d, e, i, o) : "qrcode" === n && (null == x ? void 0 : x.api) && x.api.draw(d, this, e, i), r.label = 7;
  13998. case 7:
  13999. if (this.progress += 1, !s) return [2];
  14000. l = Object.values ? Object.values(s) : Object.keys(s).map(function (t) {
  14001. return s[t];
  14002. }), c = 0, u = l, r.label = 8;
  14003. case 8:
  14004. return c < u.length ? (f = u[c], [4, this.drawNode(f)]) : [3, 11];
  14005. case 9:
  14006. r.sent(), r.label = 10;
  14007. case 10:
  14008. return c++, [3, 8];
  14009. case 11:
  14010. return [2];
  14011. }
  14012. });
  14013. });
  14014. }, t.prototype.render = function () {
  14015. return o(this, void 0, void 0, function () {
  14016. return r(this, function (t) {
  14017. switch (t.label) {
  14018. case 0:
  14019. return this.init(), [4, (e = 30, void 0 === e && (e = 0), new Promise(function (t) {
  14020. return setTimeout(t, e);
  14021. }))];
  14022. case 1:
  14023. return t.sent(), [4, this.drawNode(this.node)];
  14024. case 2:
  14025. return t.sent(), [2];
  14026. }
  14027. var e;
  14028. });
  14029. });
  14030. }, t.prototype.listen = function (t, e) {
  14031. var i = this;
  14032. if ("progressChange" == t) {
  14033. var o = 0;
  14034. Object.defineProperty(this, "progress", {
  14035. configurable: !0,
  14036. set: function set(t) {
  14037. o = t, e(t / i.count);
  14038. },
  14039. get: function get() {
  14040. return o || 0;
  14041. }
  14042. });
  14043. }
  14044. }, t.prototype.save = function (t) {
  14045. try {
  14046. var e = t || {},
  14047. i = e.fileType,
  14048. o = void 0 === i ? "png" : i,
  14049. r = e.quality,
  14050. n = void 0 === r ? 1 : r;
  14051. return this.canvas.toDataURL("image/" + o, n);
  14052. } catch (t) {
  14053. return console.log("image cross domain"), t;
  14054. }
  14055. }, t;
  14056. }();
  14057. "web" == s && (window.Painter = y), t.Painter = y, Object.defineProperty(t, "__esModule", {
  14058. value: !0
  14059. });
  14060. });
  14061. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
  14062. /***/ }),
  14063. /***/ 17:
  14064. /*!*************************************************************************!*\
  14065. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  14066. \*************************************************************************/
  14067. /*! no static exports found */
  14068. /***/ (function(module, exports) {
  14069. function _isNativeReflectConstruct() {
  14070. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  14071. if (Reflect.construct.sham) return false;
  14072. if (typeof Proxy === "function") return true;
  14073. try {
  14074. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  14075. return true;
  14076. } catch (e) {
  14077. return false;
  14078. }
  14079. }
  14080. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14081. /***/ }),
  14082. /***/ 18:
  14083. /*!******************************************************************!*\
  14084. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  14085. \******************************************************************/
  14086. /*! no static exports found */
  14087. /***/ (function(module, exports, __webpack_require__) {
  14088. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  14089. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14090. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14091. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  14092. function _toConsumableArray(arr) {
  14093. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  14094. }
  14095. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14096. /***/ }),
  14097. /***/ 19:
  14098. /*!******************************************************************!*\
  14099. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  14100. \******************************************************************/
  14101. /*! no static exports found */
  14102. /***/ (function(module, exports, __webpack_require__) {
  14103. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  14104. function _arrayWithoutHoles(arr) {
  14105. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  14106. }
  14107. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14108. /***/ }),
  14109. /***/ 2:
  14110. /*!************************************************************!*\
  14111. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  14112. \************************************************************/
  14113. /*! no static exports found */
  14114. /***/ (function(module, exports, __webpack_require__) {
  14115. "use strict";
  14116. /* WEBPACK VAR INJECTION */(function(wx, global) {
  14117. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14118. Object.defineProperty(exports, "__esModule", {
  14119. value: true
  14120. });
  14121. exports.createApp = createApp;
  14122. exports.createComponent = createComponent;
  14123. exports.createPage = createPage;
  14124. exports.createPlugin = createPlugin;
  14125. exports.createSubpackageApp = createSubpackageApp;
  14126. exports.default = void 0;
  14127. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  14128. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14129. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  14130. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  14131. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  14132. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  14133. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  14134. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  14135. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  14136. var realAtob;
  14137. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  14138. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  14139. if (typeof atob !== 'function') {
  14140. realAtob = function realAtob(str) {
  14141. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  14142. if (!b64re.test(str)) {
  14143. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  14144. }
  14145. // Adding the padding if missing, for semplicity
  14146. str += '=='.slice(2 - (str.length & 3));
  14147. var bitmap;
  14148. var result = '';
  14149. var r1;
  14150. var r2;
  14151. var i = 0;
  14152. for (; i < str.length;) {
  14153. bitmap = b64.indexOf(str.charAt(i++)) << 18 | b64.indexOf(str.charAt(i++)) << 12 | (r1 = b64.indexOf(str.charAt(i++))) << 6 | (r2 = b64.indexOf(str.charAt(i++)));
  14154. result += r1 === 64 ? String.fromCharCode(bitmap >> 16 & 255) : r2 === 64 ? String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255) : String.fromCharCode(bitmap >> 16 & 255, bitmap >> 8 & 255, bitmap & 255);
  14155. }
  14156. return result;
  14157. };
  14158. } else {
  14159. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  14160. realAtob = atob;
  14161. }
  14162. function b64DecodeUnicode(str) {
  14163. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  14164. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  14165. }).join(''));
  14166. }
  14167. function getCurrentUserInfo() {
  14168. var token = wx.getStorageSync('uni_id_token') || '';
  14169. var tokenArr = token.split('.');
  14170. if (!token || tokenArr.length !== 3) {
  14171. return {
  14172. uid: null,
  14173. role: [],
  14174. permission: [],
  14175. tokenExpired: 0
  14176. };
  14177. }
  14178. var userInfo;
  14179. try {
  14180. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  14181. } catch (error) {
  14182. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  14183. }
  14184. userInfo.tokenExpired = userInfo.exp * 1000;
  14185. delete userInfo.exp;
  14186. delete userInfo.iat;
  14187. return userInfo;
  14188. }
  14189. function uniIdMixin(Vue) {
  14190. Vue.prototype.uniIDHasRole = function (roleId) {
  14191. var _getCurrentUserInfo = getCurrentUserInfo(),
  14192. role = _getCurrentUserInfo.role;
  14193. return role.indexOf(roleId) > -1;
  14194. };
  14195. Vue.prototype.uniIDHasPermission = function (permissionId) {
  14196. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  14197. permission = _getCurrentUserInfo2.permission;
  14198. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  14199. };
  14200. Vue.prototype.uniIDTokenValid = function () {
  14201. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  14202. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  14203. return tokenExpired > Date.now();
  14204. };
  14205. }
  14206. var _toString = Object.prototype.toString;
  14207. var hasOwnProperty = Object.prototype.hasOwnProperty;
  14208. function isFn(fn) {
  14209. return typeof fn === 'function';
  14210. }
  14211. function isStr(str) {
  14212. return typeof str === 'string';
  14213. }
  14214. function isObject(obj) {
  14215. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  14216. }
  14217. function isPlainObject(obj) {
  14218. return _toString.call(obj) === '[object Object]';
  14219. }
  14220. function hasOwn(obj, key) {
  14221. return hasOwnProperty.call(obj, key);
  14222. }
  14223. function noop() {}
  14224. /**
  14225. * Create a cached version of a pure function.
  14226. */
  14227. function cached(fn) {
  14228. var cache = Object.create(null);
  14229. return function cachedFn(str) {
  14230. var hit = cache[str];
  14231. return hit || (cache[str] = fn(str));
  14232. };
  14233. }
  14234. /**
  14235. * Camelize a hyphen-delimited string.
  14236. */
  14237. var camelizeRE = /-(\w)/g;
  14238. var camelize = cached(function (str) {
  14239. return str.replace(camelizeRE, function (_, c) {
  14240. return c ? c.toUpperCase() : '';
  14241. });
  14242. });
  14243. function sortObject(obj) {
  14244. var sortObj = {};
  14245. if (isPlainObject(obj)) {
  14246. Object.keys(obj).sort().forEach(function (key) {
  14247. sortObj[key] = obj[key];
  14248. });
  14249. }
  14250. return !Object.keys(sortObj) ? obj : sortObj;
  14251. }
  14252. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  14253. var globalInterceptors = {};
  14254. var scopedInterceptors = {};
  14255. function mergeHook(parentVal, childVal) {
  14256. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  14257. return res ? dedupeHooks(res) : res;
  14258. }
  14259. function dedupeHooks(hooks) {
  14260. var res = [];
  14261. for (var i = 0; i < hooks.length; i++) {
  14262. if (res.indexOf(hooks[i]) === -1) {
  14263. res.push(hooks[i]);
  14264. }
  14265. }
  14266. return res;
  14267. }
  14268. function removeHook(hooks, hook) {
  14269. var index = hooks.indexOf(hook);
  14270. if (index !== -1) {
  14271. hooks.splice(index, 1);
  14272. }
  14273. }
  14274. function mergeInterceptorHook(interceptor, option) {
  14275. Object.keys(option).forEach(function (hook) {
  14276. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  14277. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  14278. }
  14279. });
  14280. }
  14281. function removeInterceptorHook(interceptor, option) {
  14282. if (!interceptor || !option) {
  14283. return;
  14284. }
  14285. Object.keys(option).forEach(function (hook) {
  14286. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  14287. removeHook(interceptor[hook], option[hook]);
  14288. }
  14289. });
  14290. }
  14291. function addInterceptor(method, option) {
  14292. if (typeof method === 'string' && isPlainObject(option)) {
  14293. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  14294. } else if (isPlainObject(method)) {
  14295. mergeInterceptorHook(globalInterceptors, method);
  14296. }
  14297. }
  14298. function removeInterceptor(method, option) {
  14299. if (typeof method === 'string') {
  14300. if (isPlainObject(option)) {
  14301. removeInterceptorHook(scopedInterceptors[method], option);
  14302. } else {
  14303. delete scopedInterceptors[method];
  14304. }
  14305. } else if (isPlainObject(method)) {
  14306. removeInterceptorHook(globalInterceptors, method);
  14307. }
  14308. }
  14309. function wrapperHook(hook, params) {
  14310. return function (data) {
  14311. return hook(data, params) || data;
  14312. };
  14313. }
  14314. function isPromise(obj) {
  14315. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  14316. }
  14317. function queue(hooks, data, params) {
  14318. var promise = false;
  14319. for (var i = 0; i < hooks.length; i++) {
  14320. var hook = hooks[i];
  14321. if (promise) {
  14322. promise = Promise.resolve(wrapperHook(hook, params));
  14323. } else {
  14324. var res = hook(data, params);
  14325. if (isPromise(res)) {
  14326. promise = Promise.resolve(res);
  14327. }
  14328. if (res === false) {
  14329. return {
  14330. then: function then() {}
  14331. };
  14332. }
  14333. }
  14334. }
  14335. return promise || {
  14336. then: function then(callback) {
  14337. return callback(data);
  14338. }
  14339. };
  14340. }
  14341. function wrapperOptions(interceptor) {
  14342. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  14343. ['success', 'fail', 'complete'].forEach(function (name) {
  14344. if (Array.isArray(interceptor[name])) {
  14345. var oldCallback = options[name];
  14346. options[name] = function callbackInterceptor(res) {
  14347. queue(interceptor[name], res, options).then(function (res) {
  14348. /* eslint-disable no-mixed-operators */
  14349. return isFn(oldCallback) && oldCallback(res) || res;
  14350. });
  14351. };
  14352. }
  14353. });
  14354. return options;
  14355. }
  14356. function wrapperReturnValue(method, returnValue) {
  14357. var returnValueHooks = [];
  14358. if (Array.isArray(globalInterceptors.returnValue)) {
  14359. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  14360. }
  14361. var interceptor = scopedInterceptors[method];
  14362. if (interceptor && Array.isArray(interceptor.returnValue)) {
  14363. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  14364. }
  14365. returnValueHooks.forEach(function (hook) {
  14366. returnValue = hook(returnValue) || returnValue;
  14367. });
  14368. return returnValue;
  14369. }
  14370. function getApiInterceptorHooks(method) {
  14371. var interceptor = Object.create(null);
  14372. Object.keys(globalInterceptors).forEach(function (hook) {
  14373. if (hook !== 'returnValue') {
  14374. interceptor[hook] = globalInterceptors[hook].slice();
  14375. }
  14376. });
  14377. var scopedInterceptor = scopedInterceptors[method];
  14378. if (scopedInterceptor) {
  14379. Object.keys(scopedInterceptor).forEach(function (hook) {
  14380. if (hook !== 'returnValue') {
  14381. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  14382. }
  14383. });
  14384. }
  14385. return interceptor;
  14386. }
  14387. function invokeApi(method, api, options) {
  14388. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  14389. params[_key - 3] = arguments[_key];
  14390. }
  14391. var interceptor = getApiInterceptorHooks(method);
  14392. if (interceptor && Object.keys(interceptor).length) {
  14393. if (Array.isArray(interceptor.invoke)) {
  14394. var res = queue(interceptor.invoke, options);
  14395. return res.then(function (options) {
  14396. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  14397. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  14398. });
  14399. } else {
  14400. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  14401. }
  14402. }
  14403. return api.apply(void 0, [options].concat(params));
  14404. }
  14405. var promiseInterceptor = {
  14406. returnValue: function returnValue(res) {
  14407. if (!isPromise(res)) {
  14408. return res;
  14409. }
  14410. return new Promise(function (resolve, reject) {
  14411. res.then(function (res) {
  14412. if (res[0]) {
  14413. reject(res[0]);
  14414. } else {
  14415. resolve(res[1]);
  14416. }
  14417. });
  14418. });
  14419. }
  14420. };
  14421. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  14422. var CONTEXT_API_RE = /^create|Manager$/;
  14423. // Context例外情况
  14424. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  14425. // 同步例外情况
  14426. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  14427. var CALLBACK_API_RE = /^on|^off/;
  14428. function isContextApi(name) {
  14429. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  14430. }
  14431. function isSyncApi(name) {
  14432. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  14433. }
  14434. function isCallbackApi(name) {
  14435. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  14436. }
  14437. function handlePromise(promise) {
  14438. return promise.then(function (data) {
  14439. return [null, data];
  14440. }).catch(function (err) {
  14441. return [err];
  14442. });
  14443. }
  14444. function shouldPromise(name) {
  14445. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  14446. return false;
  14447. }
  14448. return true;
  14449. }
  14450. /* eslint-disable no-extend-native */
  14451. if (!Promise.prototype.finally) {
  14452. Promise.prototype.finally = function (callback) {
  14453. var promise = this.constructor;
  14454. return this.then(function (value) {
  14455. return promise.resolve(callback()).then(function () {
  14456. return value;
  14457. });
  14458. }, function (reason) {
  14459. return promise.resolve(callback()).then(function () {
  14460. throw reason;
  14461. });
  14462. });
  14463. };
  14464. }
  14465. function promisify(name, api) {
  14466. if (!shouldPromise(name) || !isFn(api)) {
  14467. return api;
  14468. }
  14469. return function promiseApi() {
  14470. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  14471. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  14472. params[_key2 - 1] = arguments[_key2];
  14473. }
  14474. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  14475. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  14476. }
  14477. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  14478. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  14479. success: resolve,
  14480. fail: reject
  14481. })].concat(params));
  14482. })));
  14483. };
  14484. }
  14485. var EPS = 1e-4;
  14486. var BASE_DEVICE_WIDTH = 750;
  14487. var isIOS = false;
  14488. var deviceWidth = 0;
  14489. var deviceDPR = 0;
  14490. function checkDeviceWidth() {
  14491. var _wx$getSystemInfoSync = wx.getSystemInfoSync(),
  14492. platform = _wx$getSystemInfoSync.platform,
  14493. pixelRatio = _wx$getSystemInfoSync.pixelRatio,
  14494. windowWidth = _wx$getSystemInfoSync.windowWidth; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  14495. deviceWidth = windowWidth;
  14496. deviceDPR = pixelRatio;
  14497. isIOS = platform === 'ios';
  14498. }
  14499. function upx2px(number, newDeviceWidth) {
  14500. if (deviceWidth === 0) {
  14501. checkDeviceWidth();
  14502. }
  14503. number = Number(number);
  14504. if (number === 0) {
  14505. return 0;
  14506. }
  14507. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  14508. if (result < 0) {
  14509. result = -result;
  14510. }
  14511. result = Math.floor(result + EPS);
  14512. if (result === 0) {
  14513. if (deviceDPR === 1 || !isIOS) {
  14514. result = 1;
  14515. } else {
  14516. result = 0.5;
  14517. }
  14518. }
  14519. return number < 0 ? -result : result;
  14520. }
  14521. var LOCALE_ZH_HANS = 'zh-Hans';
  14522. var LOCALE_ZH_HANT = 'zh-Hant';
  14523. var LOCALE_EN = 'en';
  14524. var LOCALE_FR = 'fr';
  14525. var LOCALE_ES = 'es';
  14526. var messages = {};
  14527. var locale;
  14528. {
  14529. locale = normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  14530. }
  14531. function initI18nMessages() {
  14532. if (!isEnableLocale()) {
  14533. return;
  14534. }
  14535. var localeKeys = Object.keys(__uniConfig.locales);
  14536. if (localeKeys.length) {
  14537. localeKeys.forEach(function (locale) {
  14538. var curMessages = messages[locale];
  14539. var userMessages = __uniConfig.locales[locale];
  14540. if (curMessages) {
  14541. Object.assign(curMessages, userMessages);
  14542. } else {
  14543. messages[locale] = userMessages;
  14544. }
  14545. });
  14546. }
  14547. }
  14548. initI18nMessages();
  14549. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  14550. var t = i18n.t;
  14551. var i18nMixin = i18n.mixin = {
  14552. beforeCreate: function beforeCreate() {
  14553. var _this = this;
  14554. var unwatch = i18n.i18n.watchLocale(function () {
  14555. _this.$forceUpdate();
  14556. });
  14557. this.$once('hook:beforeDestroy', function () {
  14558. unwatch();
  14559. });
  14560. },
  14561. methods: {
  14562. $$t: function $$t(key, values) {
  14563. return t(key, values);
  14564. }
  14565. }
  14566. };
  14567. var setLocale = i18n.setLocale;
  14568. var getLocale = i18n.getLocale;
  14569. function initAppLocale(Vue, appVm, locale) {
  14570. var state = Vue.observable({
  14571. locale: locale || i18n.getLocale()
  14572. });
  14573. var localeWatchers = [];
  14574. appVm.$watchLocale = function (fn) {
  14575. localeWatchers.push(fn);
  14576. };
  14577. Object.defineProperty(appVm, '$locale', {
  14578. get: function get() {
  14579. return state.locale;
  14580. },
  14581. set: function set(v) {
  14582. state.locale = v;
  14583. localeWatchers.forEach(function (watch) {
  14584. return watch(v);
  14585. });
  14586. }
  14587. });
  14588. }
  14589. function isEnableLocale() {
  14590. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  14591. }
  14592. function include(str, parts) {
  14593. return !!parts.find(function (part) {
  14594. return str.indexOf(part) !== -1;
  14595. });
  14596. }
  14597. function startsWith(str, parts) {
  14598. return parts.find(function (part) {
  14599. return str.indexOf(part) === 0;
  14600. });
  14601. }
  14602. function normalizeLocale(locale, messages) {
  14603. if (!locale) {
  14604. return;
  14605. }
  14606. locale = locale.trim().replace(/_/g, '-');
  14607. if (messages && messages[locale]) {
  14608. return locale;
  14609. }
  14610. locale = locale.toLowerCase();
  14611. if (locale === 'chinese') {
  14612. // 支付宝
  14613. return LOCALE_ZH_HANS;
  14614. }
  14615. if (locale.indexOf('zh') === 0) {
  14616. if (locale.indexOf('-hans') > -1) {
  14617. return LOCALE_ZH_HANS;
  14618. }
  14619. if (locale.indexOf('-hant') > -1) {
  14620. return LOCALE_ZH_HANT;
  14621. }
  14622. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  14623. return LOCALE_ZH_HANT;
  14624. }
  14625. return LOCALE_ZH_HANS;
  14626. }
  14627. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  14628. if (lang) {
  14629. return lang;
  14630. }
  14631. }
  14632. // export function initI18n() {
  14633. // const localeKeys = Object.keys(__uniConfig.locales || {})
  14634. // if (localeKeys.length) {
  14635. // localeKeys.forEach((locale) =>
  14636. // i18n.add(locale, __uniConfig.locales[locale])
  14637. // )
  14638. // }
  14639. // }
  14640. function getLocale$1() {
  14641. // 优先使用 $locale
  14642. if (isFn(getApp)) {
  14643. var app = getApp({
  14644. allowDefault: true
  14645. });
  14646. if (app && app.$vm) {
  14647. return app.$vm.$locale;
  14648. }
  14649. }
  14650. return normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN;
  14651. }
  14652. function setLocale$1(locale) {
  14653. var app = isFn(getApp) ? getApp() : false;
  14654. if (!app) {
  14655. return false;
  14656. }
  14657. var oldLocale = app.$vm.$locale;
  14658. if (oldLocale !== locale) {
  14659. app.$vm.$locale = locale;
  14660. onLocaleChangeCallbacks.forEach(function (fn) {
  14661. return fn({
  14662. locale: locale
  14663. });
  14664. });
  14665. return true;
  14666. }
  14667. return false;
  14668. }
  14669. var onLocaleChangeCallbacks = [];
  14670. function onLocaleChange(fn) {
  14671. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  14672. onLocaleChangeCallbacks.push(fn);
  14673. }
  14674. }
  14675. if (typeof global !== 'undefined') {
  14676. global.getLocale = getLocale$1;
  14677. }
  14678. var interceptors = {
  14679. promiseInterceptor: promiseInterceptor
  14680. };
  14681. var baseApi = /*#__PURE__*/Object.freeze({
  14682. __proto__: null,
  14683. upx2px: upx2px,
  14684. getLocale: getLocale$1,
  14685. setLocale: setLocale$1,
  14686. onLocaleChange: onLocaleChange,
  14687. addInterceptor: addInterceptor,
  14688. removeInterceptor: removeInterceptor,
  14689. interceptors: interceptors
  14690. });
  14691. function findExistsPageIndex(url) {
  14692. var pages = getCurrentPages();
  14693. var len = pages.length;
  14694. while (len--) {
  14695. var page = pages[len];
  14696. if (page.$page && page.$page.fullPath === url) {
  14697. return len;
  14698. }
  14699. }
  14700. return -1;
  14701. }
  14702. var redirectTo = {
  14703. name: function name(fromArgs) {
  14704. if (fromArgs.exists === 'back' && fromArgs.delta) {
  14705. return 'navigateBack';
  14706. }
  14707. return 'redirectTo';
  14708. },
  14709. args: function args(fromArgs) {
  14710. if (fromArgs.exists === 'back' && fromArgs.url) {
  14711. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  14712. if (existsPageIndex !== -1) {
  14713. var delta = getCurrentPages().length - 1 - existsPageIndex;
  14714. if (delta > 0) {
  14715. fromArgs.delta = delta;
  14716. }
  14717. }
  14718. }
  14719. }
  14720. };
  14721. var previewImage = {
  14722. args: function args(fromArgs) {
  14723. var currentIndex = parseInt(fromArgs.current);
  14724. if (isNaN(currentIndex)) {
  14725. return;
  14726. }
  14727. var urls = fromArgs.urls;
  14728. if (!Array.isArray(urls)) {
  14729. return;
  14730. }
  14731. var len = urls.length;
  14732. if (!len) {
  14733. return;
  14734. }
  14735. if (currentIndex < 0) {
  14736. currentIndex = 0;
  14737. } else if (currentIndex >= len) {
  14738. currentIndex = len - 1;
  14739. }
  14740. if (currentIndex > 0) {
  14741. fromArgs.current = urls[currentIndex];
  14742. fromArgs.urls = urls.filter(function (item, index) {
  14743. return index < currentIndex ? item !== urls[currentIndex] : true;
  14744. });
  14745. } else {
  14746. fromArgs.current = urls[0];
  14747. }
  14748. return {
  14749. indicator: false,
  14750. loop: false
  14751. };
  14752. }
  14753. };
  14754. var UUID_KEY = '__DC_STAT_UUID';
  14755. var deviceId;
  14756. function useDeviceId(result) {
  14757. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  14758. if (!deviceId) {
  14759. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  14760. wx.setStorage({
  14761. key: UUID_KEY,
  14762. data: deviceId
  14763. });
  14764. }
  14765. result.deviceId = deviceId;
  14766. }
  14767. function addSafeAreaInsets(result) {
  14768. if (result.safeArea) {
  14769. var safeArea = result.safeArea;
  14770. result.safeAreaInsets = {
  14771. top: safeArea.top,
  14772. left: safeArea.left,
  14773. right: result.windowWidth - safeArea.right,
  14774. bottom: result.screenHeight - safeArea.bottom
  14775. };
  14776. }
  14777. }
  14778. function populateParameters(result) {
  14779. var _result$brand = result.brand,
  14780. brand = _result$brand === void 0 ? '' : _result$brand,
  14781. _result$model = result.model,
  14782. model = _result$model === void 0 ? '' : _result$model,
  14783. _result$system = result.system,
  14784. system = _result$system === void 0 ? '' : _result$system,
  14785. _result$language = result.language,
  14786. language = _result$language === void 0 ? '' : _result$language,
  14787. theme = result.theme,
  14788. version = result.version,
  14789. platform = result.platform,
  14790. fontSizeSetting = result.fontSizeSetting,
  14791. SDKVersion = result.SDKVersion,
  14792. pixelRatio = result.pixelRatio,
  14793. deviceOrientation = result.deviceOrientation;
  14794. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  14795. var extraParam = {};
  14796. // osName osVersion
  14797. var osName = '';
  14798. var osVersion = '';
  14799. {
  14800. osName = system.split(' ')[0] || '';
  14801. osVersion = system.split(' ')[1] || '';
  14802. }
  14803. var hostVersion = version;
  14804. // deviceType
  14805. var deviceType = getGetDeviceType(result, model);
  14806. // deviceModel
  14807. var deviceBrand = getDeviceBrand(brand);
  14808. // hostName
  14809. var _hostName = getHostName(result);
  14810. // deviceOrientation
  14811. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  14812. // devicePixelRatio
  14813. var _devicePixelRatio = pixelRatio;
  14814. // SDKVersion
  14815. var _SDKVersion = SDKVersion;
  14816. // hostLanguage
  14817. var hostLanguage = language.replace(/_/g, '-');
  14818. // wx.getAccountInfoSync
  14819. var parameters = {
  14820. appId: "__UNI__6C090A1",
  14821. appName: "香花畦",
  14822. appVersion: "2.4.6",
  14823. appVersionCode: "246",
  14824. appLanguage: getAppLanguage(hostLanguage),
  14825. uniCompileVersion: "3.8.7",
  14826. uniRuntimeVersion: "3.8.7",
  14827. uniPlatform: undefined || "mp-weixin",
  14828. deviceBrand: deviceBrand,
  14829. deviceModel: model,
  14830. deviceType: deviceType,
  14831. devicePixelRatio: _devicePixelRatio,
  14832. deviceOrientation: _deviceOrientation,
  14833. osName: osName.toLocaleLowerCase(),
  14834. osVersion: osVersion,
  14835. hostTheme: theme,
  14836. hostVersion: hostVersion,
  14837. hostLanguage: hostLanguage,
  14838. hostName: _hostName,
  14839. hostSDKVersion: _SDKVersion,
  14840. hostFontSizeSetting: fontSizeSetting,
  14841. windowTop: 0,
  14842. windowBottom: 0,
  14843. // TODO
  14844. osLanguage: undefined,
  14845. osTheme: undefined,
  14846. ua: undefined,
  14847. hostPackageName: undefined,
  14848. browserName: undefined,
  14849. browserVersion: undefined
  14850. };
  14851. Object.assign(result, parameters, extraParam);
  14852. }
  14853. function getGetDeviceType(result, model) {
  14854. var deviceType = result.deviceType || 'phone';
  14855. {
  14856. var deviceTypeMaps = {
  14857. ipad: 'pad',
  14858. windows: 'pc',
  14859. mac: 'pc'
  14860. };
  14861. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  14862. var _model = model.toLocaleLowerCase();
  14863. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  14864. var _m = deviceTypeMapsKeys[index];
  14865. if (_model.indexOf(_m) !== -1) {
  14866. deviceType = deviceTypeMaps[_m];
  14867. break;
  14868. }
  14869. }
  14870. }
  14871. return deviceType;
  14872. }
  14873. function getDeviceBrand(brand) {
  14874. var deviceBrand = brand;
  14875. if (deviceBrand) {
  14876. deviceBrand = brand.toLocaleLowerCase();
  14877. }
  14878. return deviceBrand;
  14879. }
  14880. function getAppLanguage(defaultLanguage) {
  14881. return getLocale$1 ? getLocale$1() : defaultLanguage;
  14882. }
  14883. function getHostName(result) {
  14884. var _platform = 'WeChat';
  14885. var _hostName = result.hostName || _platform; // mp-jd
  14886. {
  14887. if (result.environment) {
  14888. _hostName = result.environment;
  14889. } else if (result.host && result.host.env) {
  14890. _hostName = result.host.env;
  14891. }
  14892. }
  14893. return _hostName;
  14894. }
  14895. var getSystemInfo = {
  14896. returnValue: function returnValue(result) {
  14897. useDeviceId(result);
  14898. addSafeAreaInsets(result);
  14899. populateParameters(result);
  14900. }
  14901. };
  14902. var showActionSheet = {
  14903. args: function args(fromArgs) {
  14904. if ((0, _typeof2.default)(fromArgs) === 'object') {
  14905. fromArgs.alertText = fromArgs.title;
  14906. }
  14907. }
  14908. };
  14909. var getAppBaseInfo = {
  14910. returnValue: function returnValue(result) {
  14911. var _result = result,
  14912. version = _result.version,
  14913. language = _result.language,
  14914. SDKVersion = _result.SDKVersion,
  14915. theme = _result.theme;
  14916. var _hostName = getHostName(result);
  14917. var hostLanguage = language.replace('_', '-');
  14918. result = sortObject(Object.assign(result, {
  14919. appId: "__UNI__6C090A1",
  14920. appName: "香花畦",
  14921. appVersion: "2.4.6",
  14922. appVersionCode: "246",
  14923. appLanguage: getAppLanguage(hostLanguage),
  14924. hostVersion: version,
  14925. hostLanguage: hostLanguage,
  14926. hostName: _hostName,
  14927. hostSDKVersion: SDKVersion,
  14928. hostTheme: theme
  14929. }));
  14930. }
  14931. };
  14932. var getDeviceInfo = {
  14933. returnValue: function returnValue(result) {
  14934. var _result2 = result,
  14935. brand = _result2.brand,
  14936. model = _result2.model;
  14937. var deviceType = getGetDeviceType(result, model);
  14938. var deviceBrand = getDeviceBrand(brand);
  14939. useDeviceId(result);
  14940. result = sortObject(Object.assign(result, {
  14941. deviceType: deviceType,
  14942. deviceBrand: deviceBrand,
  14943. deviceModel: model
  14944. }));
  14945. }
  14946. };
  14947. var getWindowInfo = {
  14948. returnValue: function returnValue(result) {
  14949. addSafeAreaInsets(result);
  14950. result = sortObject(Object.assign(result, {
  14951. windowTop: 0,
  14952. windowBottom: 0
  14953. }));
  14954. }
  14955. };
  14956. var getAppAuthorizeSetting = {
  14957. returnValue: function returnValue(result) {
  14958. var locationReducedAccuracy = result.locationReducedAccuracy;
  14959. result.locationAccuracy = 'unsupported';
  14960. if (locationReducedAccuracy === true) {
  14961. result.locationAccuracy = 'reduced';
  14962. } else if (locationReducedAccuracy === false) {
  14963. result.locationAccuracy = 'full';
  14964. }
  14965. }
  14966. };
  14967. // import navigateTo from 'uni-helpers/navigate-to'
  14968. var compressImage = {
  14969. args: function args(fromArgs) {
  14970. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  14971. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  14972. fromArgs.compressHeight = fromArgs.compressedHeight;
  14973. }
  14974. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  14975. fromArgs.compressWidth = fromArgs.compressedWidth;
  14976. }
  14977. }
  14978. };
  14979. var protocols = {
  14980. redirectTo: redirectTo,
  14981. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  14982. previewImage: previewImage,
  14983. getSystemInfo: getSystemInfo,
  14984. getSystemInfoSync: getSystemInfo,
  14985. showActionSheet: showActionSheet,
  14986. getAppBaseInfo: getAppBaseInfo,
  14987. getDeviceInfo: getDeviceInfo,
  14988. getWindowInfo: getWindowInfo,
  14989. getAppAuthorizeSetting: getAppAuthorizeSetting,
  14990. compressImage: compressImage
  14991. };
  14992. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  14993. var canIUses = [];
  14994. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  14995. function processCallback(methodName, method, returnValue) {
  14996. return function (res) {
  14997. return method(processReturnValue(methodName, res, returnValue));
  14998. };
  14999. }
  15000. function processArgs(methodName, fromArgs) {
  15001. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  15002. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  15003. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  15004. if (isPlainObject(fromArgs)) {
  15005. // 一般 api 的参数解析
  15006. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  15007. if (isFn(argsOption)) {
  15008. argsOption = argsOption(fromArgs, toArgs) || {};
  15009. }
  15010. for (var key in fromArgs) {
  15011. if (hasOwn(argsOption, key)) {
  15012. var keyOption = argsOption[key];
  15013. if (isFn(keyOption)) {
  15014. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  15015. }
  15016. if (!keyOption) {
  15017. // 不支持的参数
  15018. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  15019. } else if (isStr(keyOption)) {
  15020. // 重写参数 key
  15021. toArgs[keyOption] = fromArgs[key];
  15022. } else if (isPlainObject(keyOption)) {
  15023. // {name:newName,value:value}可重新指定参数 key:value
  15024. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  15025. }
  15026. } else if (CALLBACKS.indexOf(key) !== -1) {
  15027. if (isFn(fromArgs[key])) {
  15028. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  15029. }
  15030. } else {
  15031. if (!keepFromArgs) {
  15032. toArgs[key] = fromArgs[key];
  15033. }
  15034. }
  15035. }
  15036. return toArgs;
  15037. } else if (isFn(fromArgs)) {
  15038. fromArgs = processCallback(methodName, fromArgs, returnValue);
  15039. }
  15040. return fromArgs;
  15041. }
  15042. function processReturnValue(methodName, res, returnValue) {
  15043. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  15044. if (isFn(protocols.returnValue)) {
  15045. // 处理通用 returnValue
  15046. res = protocols.returnValue(methodName, res);
  15047. }
  15048. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  15049. }
  15050. function wrapper(methodName, method) {
  15051. if (hasOwn(protocols, methodName)) {
  15052. var protocol = protocols[methodName];
  15053. if (!protocol) {
  15054. // 暂不支持的 api
  15055. return function () {
  15056. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  15057. };
  15058. }
  15059. return function (arg1, arg2) {
  15060. // 目前 api 最多两个参数
  15061. var options = protocol;
  15062. if (isFn(protocol)) {
  15063. options = protocol(arg1);
  15064. }
  15065. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  15066. var args = [arg1];
  15067. if (typeof arg2 !== 'undefined') {
  15068. args.push(arg2);
  15069. }
  15070. if (isFn(options.name)) {
  15071. methodName = options.name(arg1);
  15072. } else if (isStr(options.name)) {
  15073. methodName = options.name;
  15074. }
  15075. var returnValue = wx[methodName].apply(wx, args);
  15076. if (isSyncApi(methodName)) {
  15077. // 同步 api
  15078. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  15079. }
  15080. return returnValue;
  15081. };
  15082. }
  15083. return method;
  15084. }
  15085. var todoApis = Object.create(null);
  15086. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  15087. function createTodoApi(name) {
  15088. return function todoApi(_ref) {
  15089. var fail = _ref.fail,
  15090. complete = _ref.complete;
  15091. var res = {
  15092. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  15093. };
  15094. isFn(fail) && fail(res);
  15095. isFn(complete) && complete(res);
  15096. };
  15097. }
  15098. TODOS.forEach(function (name) {
  15099. todoApis[name] = createTodoApi(name);
  15100. });
  15101. var providers = {
  15102. oauth: ['weixin'],
  15103. share: ['weixin'],
  15104. payment: ['wxpay'],
  15105. push: ['weixin']
  15106. };
  15107. function getProvider(_ref2) {
  15108. var service = _ref2.service,
  15109. success = _ref2.success,
  15110. fail = _ref2.fail,
  15111. complete = _ref2.complete;
  15112. var res = false;
  15113. if (providers[service]) {
  15114. res = {
  15115. errMsg: 'getProvider:ok',
  15116. service: service,
  15117. provider: providers[service]
  15118. };
  15119. isFn(success) && success(res);
  15120. } else {
  15121. res = {
  15122. errMsg: 'getProvider:fail service not found'
  15123. };
  15124. isFn(fail) && fail(res);
  15125. }
  15126. isFn(complete) && complete(res);
  15127. }
  15128. var extraApi = /*#__PURE__*/Object.freeze({
  15129. __proto__: null,
  15130. getProvider: getProvider
  15131. });
  15132. var getEmitter = function () {
  15133. var Emitter;
  15134. return function getUniEmitter() {
  15135. if (!Emitter) {
  15136. Emitter = new _vue.default();
  15137. }
  15138. return Emitter;
  15139. };
  15140. }();
  15141. function apply(ctx, method, args) {
  15142. return ctx[method].apply(ctx, args);
  15143. }
  15144. function $on() {
  15145. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  15146. }
  15147. function $off() {
  15148. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  15149. }
  15150. function $once() {
  15151. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  15152. }
  15153. function $emit() {
  15154. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  15155. }
  15156. var eventApi = /*#__PURE__*/Object.freeze({
  15157. __proto__: null,
  15158. $on: $on,
  15159. $off: $off,
  15160. $once: $once,
  15161. $emit: $emit
  15162. });
  15163. /**
  15164. * 框架内 try-catch
  15165. */
  15166. /**
  15167. * 开发者 try-catch
  15168. */
  15169. function tryCatch(fn) {
  15170. return function () {
  15171. try {
  15172. return fn.apply(fn, arguments);
  15173. } catch (e) {
  15174. // TODO
  15175. console.error(e);
  15176. }
  15177. };
  15178. }
  15179. function getApiCallbacks(params) {
  15180. var apiCallbacks = {};
  15181. for (var name in params) {
  15182. var param = params[name];
  15183. if (isFn(param)) {
  15184. apiCallbacks[name] = tryCatch(param);
  15185. delete params[name];
  15186. }
  15187. }
  15188. return apiCallbacks;
  15189. }
  15190. var cid;
  15191. var cidErrMsg;
  15192. var enabled;
  15193. function normalizePushMessage(message) {
  15194. try {
  15195. return JSON.parse(message);
  15196. } catch (e) {}
  15197. return message;
  15198. }
  15199. function invokePushCallback(args) {
  15200. if (args.type === 'enabled') {
  15201. enabled = true;
  15202. } else if (args.type === 'clientId') {
  15203. cid = args.cid;
  15204. cidErrMsg = args.errMsg;
  15205. invokeGetPushCidCallbacks(cid, args.errMsg);
  15206. } else if (args.type === 'pushMsg') {
  15207. var message = {
  15208. type: 'receive',
  15209. data: normalizePushMessage(args.message)
  15210. };
  15211. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  15212. var callback = onPushMessageCallbacks[i];
  15213. callback(message);
  15214. // 该消息已被阻止
  15215. if (message.stopped) {
  15216. break;
  15217. }
  15218. }
  15219. } else if (args.type === 'click') {
  15220. onPushMessageCallbacks.forEach(function (callback) {
  15221. callback({
  15222. type: 'click',
  15223. data: normalizePushMessage(args.message)
  15224. });
  15225. });
  15226. }
  15227. }
  15228. var getPushCidCallbacks = [];
  15229. function invokeGetPushCidCallbacks(cid, errMsg) {
  15230. getPushCidCallbacks.forEach(function (callback) {
  15231. callback(cid, errMsg);
  15232. });
  15233. getPushCidCallbacks.length = 0;
  15234. }
  15235. function getPushClientId(args) {
  15236. if (!isPlainObject(args)) {
  15237. args = {};
  15238. }
  15239. var _getApiCallbacks = getApiCallbacks(args),
  15240. success = _getApiCallbacks.success,
  15241. fail = _getApiCallbacks.fail,
  15242. complete = _getApiCallbacks.complete;
  15243. var hasSuccess = isFn(success);
  15244. var hasFail = isFn(fail);
  15245. var hasComplete = isFn(complete);
  15246. Promise.resolve().then(function () {
  15247. if (typeof enabled === 'undefined') {
  15248. enabled = false;
  15249. cid = '';
  15250. cidErrMsg = 'uniPush is not enabled';
  15251. }
  15252. getPushCidCallbacks.push(function (cid, errMsg) {
  15253. var res;
  15254. if (cid) {
  15255. res = {
  15256. errMsg: 'getPushClientId:ok',
  15257. cid: cid
  15258. };
  15259. hasSuccess && success(res);
  15260. } else {
  15261. res = {
  15262. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  15263. };
  15264. hasFail && fail(res);
  15265. }
  15266. hasComplete && complete(res);
  15267. });
  15268. if (typeof cid !== 'undefined') {
  15269. invokeGetPushCidCallbacks(cid, cidErrMsg);
  15270. }
  15271. });
  15272. }
  15273. var onPushMessageCallbacks = [];
  15274. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  15275. var onPushMessage = function onPushMessage(fn) {
  15276. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  15277. onPushMessageCallbacks.push(fn);
  15278. }
  15279. };
  15280. var offPushMessage = function offPushMessage(fn) {
  15281. if (!fn) {
  15282. onPushMessageCallbacks.length = 0;
  15283. } else {
  15284. var index = onPushMessageCallbacks.indexOf(fn);
  15285. if (index > -1) {
  15286. onPushMessageCallbacks.splice(index, 1);
  15287. }
  15288. }
  15289. };
  15290. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  15291. if (!baseInfo) {
  15292. baseInfo = wx.getSystemInfoSync();
  15293. }
  15294. var host = baseInfo ? baseInfo.host : null;
  15295. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  15296. var api = /*#__PURE__*/Object.freeze({
  15297. __proto__: null,
  15298. shareVideoMessage: shareVideoMessage,
  15299. getPushClientId: getPushClientId,
  15300. onPushMessage: onPushMessage,
  15301. offPushMessage: offPushMessage,
  15302. invokePushCallback: invokePushCallback
  15303. });
  15304. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  15305. function findVmByVueId(vm, vuePid) {
  15306. var $children = vm.$children;
  15307. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  15308. for (var i = $children.length - 1; i >= 0; i--) {
  15309. var childVm = $children[i];
  15310. if (childVm.$scope._$vueId === vuePid) {
  15311. return childVm;
  15312. }
  15313. }
  15314. // 反向递归查找
  15315. var parentVm;
  15316. for (var _i = $children.length - 1; _i >= 0; _i--) {
  15317. parentVm = findVmByVueId($children[_i], vuePid);
  15318. if (parentVm) {
  15319. return parentVm;
  15320. }
  15321. }
  15322. }
  15323. function initBehavior(options) {
  15324. return Behavior(options);
  15325. }
  15326. function isPage() {
  15327. return !!this.route;
  15328. }
  15329. function initRelation(detail) {
  15330. this.triggerEvent('__l', detail);
  15331. }
  15332. function selectAllComponents(mpInstance, selector, $refs) {
  15333. var components = mpInstance.selectAllComponents(selector) || [];
  15334. components.forEach(function (component) {
  15335. var ref = component.dataset.ref;
  15336. $refs[ref] = component.$vm || toSkip(component);
  15337. {
  15338. if (component.dataset.vueGeneric === 'scoped') {
  15339. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  15340. selectAllComponents(scopedComponent, selector, $refs);
  15341. });
  15342. }
  15343. }
  15344. });
  15345. }
  15346. function syncRefs(refs, newRefs) {
  15347. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  15348. var newKeys = Object.keys(newRefs);
  15349. newKeys.forEach(function (key) {
  15350. var oldValue = refs[key];
  15351. var newValue = newRefs[key];
  15352. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  15353. return oldValue.includes(value);
  15354. })) {
  15355. return;
  15356. }
  15357. refs[key] = newValue;
  15358. oldKeys.delete(key);
  15359. });
  15360. oldKeys.forEach(function (key) {
  15361. delete refs[key];
  15362. });
  15363. return refs;
  15364. }
  15365. function initRefs(vm) {
  15366. var mpInstance = vm.$scope;
  15367. var refs = {};
  15368. Object.defineProperty(vm, '$refs', {
  15369. get: function get() {
  15370. var $refs = {};
  15371. selectAllComponents(mpInstance, '.vue-ref', $refs);
  15372. // TODO 暂不考虑 for 中的 scoped
  15373. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  15374. forComponents.forEach(function (component) {
  15375. var ref = component.dataset.ref;
  15376. if (!$refs[ref]) {
  15377. $refs[ref] = [];
  15378. }
  15379. $refs[ref].push(component.$vm || toSkip(component));
  15380. });
  15381. return syncRefs(refs, $refs);
  15382. }
  15383. });
  15384. }
  15385. function handleLink(event) {
  15386. var _ref3 = event.detail || event.value,
  15387. vuePid = _ref3.vuePid,
  15388. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  15389. var parentVm;
  15390. if (vuePid) {
  15391. parentVm = findVmByVueId(this.$vm, vuePid);
  15392. }
  15393. if (!parentVm) {
  15394. parentVm = this.$vm;
  15395. }
  15396. vueOptions.parent = parentVm;
  15397. }
  15398. function markMPComponent(component) {
  15399. // 在 Vue 中标记为小程序组件
  15400. var IS_MP = '__v_isMPComponent';
  15401. Object.defineProperty(component, IS_MP, {
  15402. configurable: true,
  15403. enumerable: false,
  15404. value: true
  15405. });
  15406. return component;
  15407. }
  15408. function toSkip(obj) {
  15409. var OB = '__ob__';
  15410. var SKIP = '__v_skip';
  15411. if (isObject(obj) && Object.isExtensible(obj)) {
  15412. // 避免被 @vue/composition-api 观测
  15413. Object.defineProperty(obj, OB, {
  15414. configurable: true,
  15415. enumerable: false,
  15416. value: (0, _defineProperty2.default)({}, SKIP, true)
  15417. });
  15418. }
  15419. return obj;
  15420. }
  15421. var WORKLET_RE = /_(.*)_worklet_factory_/;
  15422. function initWorkletMethods(mpMethods, vueMethods) {
  15423. if (vueMethods) {
  15424. Object.keys(vueMethods).forEach(function (name) {
  15425. var matches = name.match(WORKLET_RE);
  15426. if (matches) {
  15427. var workletName = matches[1];
  15428. mpMethods[name] = vueMethods[name];
  15429. mpMethods[workletName] = vueMethods[workletName];
  15430. }
  15431. });
  15432. }
  15433. }
  15434. var MPPage = Page;
  15435. var MPComponent = Component;
  15436. var customizeRE = /:/g;
  15437. var customize = cached(function (str) {
  15438. return camelize(str.replace(customizeRE, '-'));
  15439. });
  15440. function initTriggerEvent(mpInstance) {
  15441. var oldTriggerEvent = mpInstance.triggerEvent;
  15442. var newTriggerEvent = function newTriggerEvent(event) {
  15443. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  15444. args[_key3 - 1] = arguments[_key3];
  15445. }
  15446. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  15447. if (this.$vm || this.dataset && this.dataset.comType) {
  15448. event = customize(event);
  15449. } else {
  15450. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  15451. var newEvent = customize(event);
  15452. if (newEvent !== event) {
  15453. oldTriggerEvent.apply(this, [newEvent].concat(args));
  15454. }
  15455. }
  15456. return oldTriggerEvent.apply(this, [event].concat(args));
  15457. };
  15458. try {
  15459. // 京东小程序 triggerEvent 为只读
  15460. mpInstance.triggerEvent = newTriggerEvent;
  15461. } catch (error) {
  15462. mpInstance._triggerEvent = newTriggerEvent;
  15463. }
  15464. }
  15465. function initHook(name, options, isComponent) {
  15466. var oldHook = options[name];
  15467. options[name] = function () {
  15468. markMPComponent(this);
  15469. initTriggerEvent(this);
  15470. if (oldHook) {
  15471. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  15472. args[_key4] = arguments[_key4];
  15473. }
  15474. return oldHook.apply(this, args);
  15475. }
  15476. };
  15477. }
  15478. if (!MPPage.__$wrappered) {
  15479. MPPage.__$wrappered = true;
  15480. Page = function Page() {
  15481. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15482. initHook('onLoad', options);
  15483. return MPPage(options);
  15484. };
  15485. Page.after = MPPage.after;
  15486. Component = function Component() {
  15487. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  15488. initHook('created', options);
  15489. return MPComponent(options);
  15490. };
  15491. }
  15492. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  15493. function initMocks(vm, mocks) {
  15494. var mpInstance = vm.$mp[vm.mpType];
  15495. mocks.forEach(function (mock) {
  15496. if (hasOwn(mpInstance, mock)) {
  15497. vm[mock] = mpInstance[mock];
  15498. }
  15499. });
  15500. }
  15501. function hasHook(hook, vueOptions) {
  15502. if (!vueOptions) {
  15503. return true;
  15504. }
  15505. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  15506. return true;
  15507. }
  15508. vueOptions = vueOptions.default || vueOptions;
  15509. if (isFn(vueOptions)) {
  15510. if (isFn(vueOptions.extendOptions[hook])) {
  15511. return true;
  15512. }
  15513. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  15514. return true;
  15515. }
  15516. return false;
  15517. }
  15518. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  15519. return true;
  15520. }
  15521. var mixins = vueOptions.mixins;
  15522. if (Array.isArray(mixins)) {
  15523. return !!mixins.find(function (mixin) {
  15524. return hasHook(hook, mixin);
  15525. });
  15526. }
  15527. }
  15528. function initHooks(mpOptions, hooks, vueOptions) {
  15529. hooks.forEach(function (hook) {
  15530. if (hasHook(hook, vueOptions)) {
  15531. mpOptions[hook] = function (args) {
  15532. return this.$vm && this.$vm.__call_hook(hook, args);
  15533. };
  15534. }
  15535. });
  15536. }
  15537. function initUnknownHooks(mpOptions, vueOptions) {
  15538. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  15539. findHooks(vueOptions).forEach(function (hook) {
  15540. return initHook$1(mpOptions, hook, excludes);
  15541. });
  15542. }
  15543. function findHooks(vueOptions) {
  15544. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  15545. if (vueOptions) {
  15546. Object.keys(vueOptions).forEach(function (name) {
  15547. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  15548. hooks.push(name);
  15549. }
  15550. });
  15551. }
  15552. return hooks;
  15553. }
  15554. function initHook$1(mpOptions, hook, excludes) {
  15555. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  15556. mpOptions[hook] = function (args) {
  15557. return this.$vm && this.$vm.__call_hook(hook, args);
  15558. };
  15559. }
  15560. }
  15561. function initVueComponent(Vue, vueOptions) {
  15562. vueOptions = vueOptions.default || vueOptions;
  15563. var VueComponent;
  15564. if (isFn(vueOptions)) {
  15565. VueComponent = vueOptions;
  15566. } else {
  15567. VueComponent = Vue.extend(vueOptions);
  15568. }
  15569. vueOptions = VueComponent.options;
  15570. return [VueComponent, vueOptions];
  15571. }
  15572. function initSlots(vm, vueSlots) {
  15573. if (Array.isArray(vueSlots) && vueSlots.length) {
  15574. var $slots = Object.create(null);
  15575. vueSlots.forEach(function (slotName) {
  15576. $slots[slotName] = true;
  15577. });
  15578. vm.$scopedSlots = vm.$slots = $slots;
  15579. }
  15580. }
  15581. function initVueIds(vueIds, mpInstance) {
  15582. vueIds = (vueIds || '').split(',');
  15583. var len = vueIds.length;
  15584. if (len === 1) {
  15585. mpInstance._$vueId = vueIds[0];
  15586. } else if (len === 2) {
  15587. mpInstance._$vueId = vueIds[0];
  15588. mpInstance._$vuePid = vueIds[1];
  15589. }
  15590. }
  15591. function initData(vueOptions, context) {
  15592. var data = vueOptions.data || {};
  15593. var methods = vueOptions.methods || {};
  15594. if (typeof data === 'function') {
  15595. try {
  15596. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  15597. } catch (e) {
  15598. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"香花畦","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  15599. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  15600. }
  15601. }
  15602. } else {
  15603. try {
  15604. // 对 data 格式化
  15605. data = JSON.parse(JSON.stringify(data));
  15606. } catch (e) {}
  15607. }
  15608. if (!isPlainObject(data)) {
  15609. data = {};
  15610. }
  15611. Object.keys(methods).forEach(function (methodName) {
  15612. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  15613. data[methodName] = methods[methodName];
  15614. }
  15615. });
  15616. return data;
  15617. }
  15618. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  15619. function createObserver(name) {
  15620. return function observer(newVal, oldVal) {
  15621. if (this.$vm) {
  15622. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  15623. }
  15624. };
  15625. }
  15626. function initBehaviors(vueOptions, initBehavior) {
  15627. var vueBehaviors = vueOptions.behaviors;
  15628. var vueExtends = vueOptions.extends;
  15629. var vueMixins = vueOptions.mixins;
  15630. var vueProps = vueOptions.props;
  15631. if (!vueProps) {
  15632. vueOptions.props = vueProps = [];
  15633. }
  15634. var behaviors = [];
  15635. if (Array.isArray(vueBehaviors)) {
  15636. vueBehaviors.forEach(function (behavior) {
  15637. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  15638. if (behavior === 'uni://form-field') {
  15639. if (Array.isArray(vueProps)) {
  15640. vueProps.push('name');
  15641. vueProps.push('value');
  15642. } else {
  15643. vueProps.name = {
  15644. type: String,
  15645. default: ''
  15646. };
  15647. vueProps.value = {
  15648. type: [String, Number, Boolean, Array, Object, Date],
  15649. default: ''
  15650. };
  15651. }
  15652. }
  15653. });
  15654. }
  15655. if (isPlainObject(vueExtends) && vueExtends.props) {
  15656. behaviors.push(initBehavior({
  15657. properties: initProperties(vueExtends.props, true)
  15658. }));
  15659. }
  15660. if (Array.isArray(vueMixins)) {
  15661. vueMixins.forEach(function (vueMixin) {
  15662. if (isPlainObject(vueMixin) && vueMixin.props) {
  15663. behaviors.push(initBehavior({
  15664. properties: initProperties(vueMixin.props, true)
  15665. }));
  15666. }
  15667. });
  15668. }
  15669. return behaviors;
  15670. }
  15671. function parsePropType(key, type, defaultValue, file) {
  15672. // [String]=>String
  15673. if (Array.isArray(type) && type.length === 1) {
  15674. return type[0];
  15675. }
  15676. return type;
  15677. }
  15678. function initProperties(props) {
  15679. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  15680. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  15681. var options = arguments.length > 3 ? arguments[3] : undefined;
  15682. var properties = {};
  15683. if (!isBehavior) {
  15684. properties.vueId = {
  15685. type: String,
  15686. value: ''
  15687. };
  15688. {
  15689. if (options.virtualHost) {
  15690. properties.virtualHostStyle = {
  15691. type: null,
  15692. value: ''
  15693. };
  15694. properties.virtualHostClass = {
  15695. type: null,
  15696. value: ''
  15697. };
  15698. }
  15699. }
  15700. // scopedSlotsCompiler auto
  15701. properties.scopedSlotsCompiler = {
  15702. type: String,
  15703. value: ''
  15704. };
  15705. properties.vueSlots = {
  15706. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  15707. type: null,
  15708. value: [],
  15709. observer: function observer(newVal, oldVal) {
  15710. var $slots = Object.create(null);
  15711. newVal.forEach(function (slotName) {
  15712. $slots[slotName] = true;
  15713. });
  15714. this.setData({
  15715. $slots: $slots
  15716. });
  15717. }
  15718. };
  15719. }
  15720. if (Array.isArray(props)) {
  15721. // ['title']
  15722. props.forEach(function (key) {
  15723. properties[key] = {
  15724. type: null,
  15725. observer: createObserver(key)
  15726. };
  15727. });
  15728. } else if (isPlainObject(props)) {
  15729. // {title:{type:String,default:''},content:String}
  15730. Object.keys(props).forEach(function (key) {
  15731. var opts = props[key];
  15732. if (isPlainObject(opts)) {
  15733. // title:{type:String,default:''}
  15734. var value = opts.default;
  15735. if (isFn(value)) {
  15736. value = value();
  15737. }
  15738. opts.type = parsePropType(key, opts.type);
  15739. properties[key] = {
  15740. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  15741. value: value,
  15742. observer: createObserver(key)
  15743. };
  15744. } else {
  15745. // content:String
  15746. var type = parsePropType(key, opts);
  15747. properties[key] = {
  15748. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  15749. observer: createObserver(key)
  15750. };
  15751. }
  15752. });
  15753. }
  15754. return properties;
  15755. }
  15756. function wrapper$1(event) {
  15757. // TODO 又得兼容 mpvue 的 mp 对象
  15758. try {
  15759. event.mp = JSON.parse(JSON.stringify(event));
  15760. } catch (e) {}
  15761. event.stopPropagation = noop;
  15762. event.preventDefault = noop;
  15763. event.target = event.target || {};
  15764. if (!hasOwn(event, 'detail')) {
  15765. event.detail = {};
  15766. }
  15767. if (hasOwn(event, 'markerId')) {
  15768. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  15769. event.detail.markerId = event.markerId;
  15770. }
  15771. if (isPlainObject(event.detail)) {
  15772. event.target = Object.assign({}, event.target, event.detail);
  15773. }
  15774. return event;
  15775. }
  15776. function getExtraValue(vm, dataPathsArray) {
  15777. var context = vm;
  15778. dataPathsArray.forEach(function (dataPathArray) {
  15779. var dataPath = dataPathArray[0];
  15780. var value = dataPathArray[2];
  15781. if (dataPath || typeof value !== 'undefined') {
  15782. // ['','',index,'disable']
  15783. var propPath = dataPathArray[1];
  15784. var valuePath = dataPathArray[3];
  15785. var vFor;
  15786. if (Number.isInteger(dataPath)) {
  15787. vFor = dataPath;
  15788. } else if (!dataPath) {
  15789. vFor = context;
  15790. } else if (typeof dataPath === 'string' && dataPath) {
  15791. if (dataPath.indexOf('#s#') === 0) {
  15792. vFor = dataPath.substr(3);
  15793. } else {
  15794. vFor = vm.__get_value(dataPath, context);
  15795. }
  15796. }
  15797. if (Number.isInteger(vFor)) {
  15798. context = value;
  15799. } else if (!propPath) {
  15800. context = vFor[value];
  15801. } else {
  15802. if (Array.isArray(vFor)) {
  15803. context = vFor.find(function (vForItem) {
  15804. return vm.__get_value(propPath, vForItem) === value;
  15805. });
  15806. } else if (isPlainObject(vFor)) {
  15807. context = Object.keys(vFor).find(function (vForKey) {
  15808. return vm.__get_value(propPath, vFor[vForKey]) === value;
  15809. });
  15810. } else {
  15811. console.error('v-for 暂不支持循环数据:', vFor);
  15812. }
  15813. }
  15814. if (valuePath) {
  15815. context = vm.__get_value(valuePath, context);
  15816. }
  15817. }
  15818. });
  15819. return context;
  15820. }
  15821. function processEventExtra(vm, extra, event, __args__) {
  15822. var extraObj = {};
  15823. if (Array.isArray(extra) && extra.length) {
  15824. /**
  15825. *[
  15826. * ['data.items', 'data.id', item.data.id],
  15827. * ['metas', 'id', meta.id]
  15828. *],
  15829. *[
  15830. * ['data.items', 'data.id', item.data.id],
  15831. * ['metas', 'id', meta.id]
  15832. *],
  15833. *'test'
  15834. */
  15835. extra.forEach(function (dataPath, index) {
  15836. if (typeof dataPath === 'string') {
  15837. if (!dataPath) {
  15838. // model,prop.sync
  15839. extraObj['$' + index] = vm;
  15840. } else {
  15841. if (dataPath === '$event') {
  15842. // $event
  15843. extraObj['$' + index] = event;
  15844. } else if (dataPath === 'arguments') {
  15845. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  15846. } else if (dataPath.indexOf('$event.') === 0) {
  15847. // $event.target.value
  15848. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  15849. } else {
  15850. extraObj['$' + index] = vm.__get_value(dataPath);
  15851. }
  15852. }
  15853. } else {
  15854. extraObj['$' + index] = getExtraValue(vm, dataPath);
  15855. }
  15856. });
  15857. }
  15858. return extraObj;
  15859. }
  15860. function getObjByArray(arr) {
  15861. var obj = {};
  15862. for (var i = 1; i < arr.length; i++) {
  15863. var element = arr[i];
  15864. obj[element[0]] = element[1];
  15865. }
  15866. return obj;
  15867. }
  15868. function processEventArgs(vm, event) {
  15869. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  15870. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  15871. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  15872. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  15873. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  15874. // fixed 用户直接触发 mpInstance.triggerEvent
  15875. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  15876. if (isCustom) {
  15877. // 自定义事件
  15878. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  15879. if (!args.length) {
  15880. // 无参数,直接传入 event 或 detail 数组
  15881. if (isCustomMPEvent) {
  15882. return [event];
  15883. }
  15884. return __args__;
  15885. }
  15886. }
  15887. var extraObj = processEventExtra(vm, extra, event, __args__);
  15888. var ret = [];
  15889. args.forEach(function (arg) {
  15890. if (arg === '$event') {
  15891. if (methodName === '__set_model' && !isCustom) {
  15892. // input v-model value
  15893. ret.push(event.target.value);
  15894. } else {
  15895. if (isCustom && !isCustomMPEvent) {
  15896. ret.push(__args__[0]);
  15897. } else {
  15898. // wxcomponent 组件或内置组件
  15899. ret.push(event);
  15900. }
  15901. }
  15902. } else {
  15903. if (Array.isArray(arg) && arg[0] === 'o') {
  15904. ret.push(getObjByArray(arg));
  15905. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  15906. ret.push(extraObj[arg]);
  15907. } else {
  15908. ret.push(arg);
  15909. }
  15910. }
  15911. });
  15912. return ret;
  15913. }
  15914. var ONCE = '~';
  15915. var CUSTOM = '^';
  15916. function isMatchEventType(eventType, optType) {
  15917. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  15918. }
  15919. function getContextVm(vm) {
  15920. var $parent = vm.$parent;
  15921. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  15922. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  15923. $parent = $parent.$parent;
  15924. }
  15925. return $parent && $parent.$parent;
  15926. }
  15927. function handleEvent(event) {
  15928. var _this2 = this;
  15929. event = wrapper$1(event);
  15930. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  15931. var dataset = (event.currentTarget || event.target).dataset;
  15932. if (!dataset) {
  15933. return console.warn('事件信息不存在');
  15934. }
  15935. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  15936. if (!eventOpts) {
  15937. return console.warn('事件信息不存在');
  15938. }
  15939. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  15940. var eventType = event.type;
  15941. var ret = [];
  15942. eventOpts.forEach(function (eventOpt) {
  15943. var type = eventOpt[0];
  15944. var eventsArray = eventOpt[1];
  15945. var isCustom = type.charAt(0) === CUSTOM;
  15946. type = isCustom ? type.slice(1) : type;
  15947. var isOnce = type.charAt(0) === ONCE;
  15948. type = isOnce ? type.slice(1) : type;
  15949. if (eventsArray && isMatchEventType(eventType, type)) {
  15950. eventsArray.forEach(function (eventArray) {
  15951. var methodName = eventArray[0];
  15952. if (methodName) {
  15953. var handlerCtx = _this2.$vm;
  15954. if (handlerCtx.$options.generic) {
  15955. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  15956. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  15957. }
  15958. if (methodName === '$emit') {
  15959. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  15960. return;
  15961. }
  15962. var handler = handlerCtx[methodName];
  15963. if (!isFn(handler)) {
  15964. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  15965. var path = _this2.route || _this2.is;
  15966. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  15967. }
  15968. if (isOnce) {
  15969. if (handler.once) {
  15970. return;
  15971. }
  15972. handler.once = true;
  15973. }
  15974. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  15975. params = Array.isArray(params) ? params : [];
  15976. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  15977. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  15978. // eslint-disable-next-line no-sparse-arrays
  15979. params = params.concat([,,,,,,,,,, event]);
  15980. }
  15981. ret.push(handler.apply(handlerCtx, params));
  15982. }
  15983. });
  15984. }
  15985. });
  15986. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  15987. return ret[0];
  15988. }
  15989. }
  15990. var eventChannels = {};
  15991. function getEventChannel(id) {
  15992. var eventChannel = eventChannels[id];
  15993. delete eventChannels[id];
  15994. return eventChannel;
  15995. }
  15996. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  15997. function initEventChannel() {
  15998. _vue.default.prototype.getOpenerEventChannel = function () {
  15999. // 微信小程序使用自身getOpenerEventChannel
  16000. {
  16001. return this.$scope.getOpenerEventChannel();
  16002. }
  16003. };
  16004. var callHook = _vue.default.prototype.__call_hook;
  16005. _vue.default.prototype.__call_hook = function (hook, args) {
  16006. if (hook === 'onLoad' && args && args.__id__) {
  16007. this.__eventChannel__ = getEventChannel(args.__id__);
  16008. delete args.__id__;
  16009. }
  16010. return callHook.call(this, hook, args);
  16011. };
  16012. }
  16013. function initScopedSlotsParams() {
  16014. var center = {};
  16015. var parents = {};
  16016. function currentId(fn) {
  16017. var vueIds = this.$options.propsData.vueId;
  16018. if (vueIds) {
  16019. var vueId = vueIds.split(',')[0];
  16020. fn(vueId);
  16021. }
  16022. }
  16023. _vue.default.prototype.$hasSSP = function (vueId) {
  16024. var slot = center[vueId];
  16025. if (!slot) {
  16026. parents[vueId] = this;
  16027. this.$on('hook:destroyed', function () {
  16028. delete parents[vueId];
  16029. });
  16030. }
  16031. return slot;
  16032. };
  16033. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  16034. var slot = center[vueId];
  16035. if (slot) {
  16036. var params = slot[name] || [];
  16037. if (needAll) {
  16038. return params;
  16039. }
  16040. return params[0];
  16041. }
  16042. };
  16043. _vue.default.prototype.$setSSP = function (name, value) {
  16044. var index = 0;
  16045. currentId.call(this, function (vueId) {
  16046. var slot = center[vueId];
  16047. var params = slot[name] = slot[name] || [];
  16048. params.push(value);
  16049. index = params.length - 1;
  16050. });
  16051. return index;
  16052. };
  16053. _vue.default.prototype.$initSSP = function () {
  16054. currentId.call(this, function (vueId) {
  16055. center[vueId] = {};
  16056. });
  16057. };
  16058. _vue.default.prototype.$callSSP = function () {
  16059. currentId.call(this, function (vueId) {
  16060. if (parents[vueId]) {
  16061. parents[vueId].$forceUpdate();
  16062. }
  16063. });
  16064. };
  16065. _vue.default.mixin({
  16066. destroyed: function destroyed() {
  16067. var propsData = this.$options.propsData;
  16068. var vueId = propsData && propsData.vueId;
  16069. if (vueId) {
  16070. delete center[vueId];
  16071. delete parents[vueId];
  16072. }
  16073. }
  16074. });
  16075. }
  16076. function parseBaseApp(vm, _ref4) {
  16077. var mocks = _ref4.mocks,
  16078. initRefs = _ref4.initRefs;
  16079. initEventChannel();
  16080. {
  16081. initScopedSlotsParams();
  16082. }
  16083. if (vm.$options.store) {
  16084. _vue.default.prototype.$store = vm.$options.store;
  16085. }
  16086. uniIdMixin(_vue.default);
  16087. _vue.default.prototype.mpHost = "mp-weixin";
  16088. _vue.default.mixin({
  16089. beforeCreate: function beforeCreate() {
  16090. if (!this.$options.mpType) {
  16091. return;
  16092. }
  16093. this.mpType = this.$options.mpType;
  16094. this.$mp = (0, _defineProperty2.default)({
  16095. data: {}
  16096. }, this.mpType, this.$options.mpInstance);
  16097. this.$scope = this.$options.mpInstance;
  16098. delete this.$options.mpType;
  16099. delete this.$options.mpInstance;
  16100. if (this.mpType === 'page' && typeof getApp === 'function') {
  16101. // hack vue-i18n
  16102. var app = getApp();
  16103. if (app.$vm && app.$vm.$i18n) {
  16104. this._i18n = app.$vm.$i18n;
  16105. }
  16106. }
  16107. if (this.mpType !== 'app') {
  16108. initRefs(this);
  16109. initMocks(this, mocks);
  16110. }
  16111. }
  16112. });
  16113. var appOptions = {
  16114. onLaunch: function onLaunch(args) {
  16115. if (this.$vm) {
  16116. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  16117. return;
  16118. }
  16119. {
  16120. if (wx.canIUse && !wx.canIUse('nextTick')) {
  16121. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  16122. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  16123. }
  16124. }
  16125. this.$vm = vm;
  16126. this.$vm.$mp = {
  16127. app: this
  16128. };
  16129. this.$vm.$scope = this;
  16130. // vm 上也挂载 globalData
  16131. this.$vm.globalData = this.globalData;
  16132. this.$vm._isMounted = true;
  16133. this.$vm.__call_hook('mounted', args);
  16134. this.$vm.__call_hook('onLaunch', args);
  16135. }
  16136. };
  16137. // 兼容旧版本 globalData
  16138. appOptions.globalData = vm.$options.globalData || {};
  16139. // 将 methods 中的方法挂在 getApp() 中
  16140. var methods = vm.$options.methods;
  16141. if (methods) {
  16142. Object.keys(methods).forEach(function (name) {
  16143. appOptions[name] = methods[name];
  16144. });
  16145. }
  16146. initAppLocale(_vue.default, vm, normalizeLocale(wx.getSystemInfoSync().language) || LOCALE_EN);
  16147. initHooks(appOptions, hooks);
  16148. initUnknownHooks(appOptions, vm.$options);
  16149. return appOptions;
  16150. }
  16151. function parseApp(vm) {
  16152. return parseBaseApp(vm, {
  16153. mocks: mocks,
  16154. initRefs: initRefs
  16155. });
  16156. }
  16157. function createApp(vm) {
  16158. App(parseApp(vm));
  16159. return vm;
  16160. }
  16161. var encodeReserveRE = /[!'()*]/g;
  16162. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  16163. return '%' + c.charCodeAt(0).toString(16);
  16164. };
  16165. var commaRE = /%2C/g;
  16166. // fixed encodeURIComponent which is more conformant to RFC3986:
  16167. // - escapes [!'()*]
  16168. // - preserve commas
  16169. var encode = function encode(str) {
  16170. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  16171. };
  16172. function stringifyQuery(obj) {
  16173. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  16174. var res = obj ? Object.keys(obj).map(function (key) {
  16175. var val = obj[key];
  16176. if (val === undefined) {
  16177. return '';
  16178. }
  16179. if (val === null) {
  16180. return encodeStr(key);
  16181. }
  16182. if (Array.isArray(val)) {
  16183. var result = [];
  16184. val.forEach(function (val2) {
  16185. if (val2 === undefined) {
  16186. return;
  16187. }
  16188. if (val2 === null) {
  16189. result.push(encodeStr(key));
  16190. } else {
  16191. result.push(encodeStr(key) + '=' + encodeStr(val2));
  16192. }
  16193. });
  16194. return result.join('&');
  16195. }
  16196. return encodeStr(key) + '=' + encodeStr(val);
  16197. }).filter(function (x) {
  16198. return x.length > 0;
  16199. }).join('&') : null;
  16200. return res ? "?".concat(res) : '';
  16201. }
  16202. function parseBaseComponent(vueComponentOptions) {
  16203. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  16204. isPage = _ref5.isPage,
  16205. initRelation = _ref5.initRelation;
  16206. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  16207. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  16208. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  16209. VueComponent = _initVueComponent2[0],
  16210. vueOptions = _initVueComponent2[1];
  16211. var options = _objectSpread({
  16212. multipleSlots: true,
  16213. // styleIsolation: 'apply-shared',
  16214. addGlobalClass: true
  16215. }, vueOptions.options || {});
  16216. {
  16217. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  16218. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  16219. Object.assign(options, vueOptions['mp-weixin'].options);
  16220. }
  16221. }
  16222. var componentOptions = {
  16223. options: options,
  16224. data: initData(vueOptions, _vue.default.prototype),
  16225. behaviors: initBehaviors(vueOptions, initBehavior),
  16226. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  16227. lifetimes: {
  16228. attached: function attached() {
  16229. var properties = this.properties;
  16230. var options = {
  16231. mpType: isPage.call(this) ? 'page' : 'component',
  16232. mpInstance: this,
  16233. propsData: properties
  16234. };
  16235. initVueIds(properties.vueId, this);
  16236. // 处理父子关系
  16237. initRelation.call(this, {
  16238. vuePid: this._$vuePid,
  16239. vueOptions: options
  16240. });
  16241. // 初始化 vue 实例
  16242. this.$vm = new VueComponent(options);
  16243. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  16244. initSlots(this.$vm, properties.vueSlots);
  16245. // 触发首次 setData
  16246. this.$vm.$mount();
  16247. },
  16248. ready: function ready() {
  16249. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  16250. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  16251. if (this.$vm) {
  16252. this.$vm._isMounted = true;
  16253. this.$vm.__call_hook('mounted');
  16254. this.$vm.__call_hook('onReady');
  16255. }
  16256. },
  16257. detached: function detached() {
  16258. this.$vm && this.$vm.$destroy();
  16259. }
  16260. },
  16261. pageLifetimes: {
  16262. show: function show(args) {
  16263. this.$vm && this.$vm.__call_hook('onPageShow', args);
  16264. },
  16265. hide: function hide() {
  16266. this.$vm && this.$vm.__call_hook('onPageHide');
  16267. },
  16268. resize: function resize(size) {
  16269. this.$vm && this.$vm.__call_hook('onPageResize', size);
  16270. }
  16271. },
  16272. methods: {
  16273. __l: handleLink,
  16274. __e: handleEvent
  16275. }
  16276. };
  16277. // externalClasses
  16278. if (vueOptions.externalClasses) {
  16279. componentOptions.externalClasses = vueOptions.externalClasses;
  16280. }
  16281. if (Array.isArray(vueOptions.wxsCallMethods)) {
  16282. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  16283. componentOptions.methods[callMethod] = function (args) {
  16284. return this.$vm[callMethod](args);
  16285. };
  16286. });
  16287. }
  16288. if (needVueOptions) {
  16289. return [componentOptions, vueOptions, VueComponent];
  16290. }
  16291. if (isPage) {
  16292. return componentOptions;
  16293. }
  16294. return [componentOptions, VueComponent];
  16295. }
  16296. function parseComponent(vueComponentOptions, needVueOptions) {
  16297. return parseBaseComponent(vueComponentOptions, {
  16298. isPage: isPage,
  16299. initRelation: initRelation
  16300. }, needVueOptions);
  16301. }
  16302. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  16303. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  16304. function parseBasePage(vuePageOptions) {
  16305. var _parseComponent = parseComponent(vuePageOptions, true),
  16306. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  16307. pageOptions = _parseComponent2[0],
  16308. vueOptions = _parseComponent2[1];
  16309. initHooks(pageOptions.methods, hooks$1, vueOptions);
  16310. pageOptions.methods.onLoad = function (query) {
  16311. this.options = query;
  16312. var copyQuery = Object.assign({}, query);
  16313. delete copyQuery.__id__;
  16314. this.$page = {
  16315. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  16316. };
  16317. this.$vm.$mp.query = query; // 兼容 mpvue
  16318. this.$vm.__call_hook('onLoad', query);
  16319. };
  16320. {
  16321. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  16322. }
  16323. {
  16324. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  16325. }
  16326. return pageOptions;
  16327. }
  16328. function parsePage(vuePageOptions) {
  16329. return parseBasePage(vuePageOptions);
  16330. }
  16331. function createPage(vuePageOptions) {
  16332. {
  16333. return Component(parsePage(vuePageOptions));
  16334. }
  16335. }
  16336. function createComponent(vueOptions) {
  16337. {
  16338. return Component(parseComponent(vueOptions));
  16339. }
  16340. }
  16341. function createSubpackageApp(vm) {
  16342. var appOptions = parseApp(vm);
  16343. var app = getApp({
  16344. allowDefault: true
  16345. });
  16346. vm.$scope = app;
  16347. var globalData = app.globalData;
  16348. if (globalData) {
  16349. Object.keys(appOptions.globalData).forEach(function (name) {
  16350. if (!hasOwn(globalData, name)) {
  16351. globalData[name] = appOptions.globalData[name];
  16352. }
  16353. });
  16354. }
  16355. Object.keys(appOptions).forEach(function (name) {
  16356. if (!hasOwn(app, name)) {
  16357. app[name] = appOptions[name];
  16358. }
  16359. });
  16360. if (isFn(appOptions.onShow) && wx.onAppShow) {
  16361. wx.onAppShow(function () {
  16362. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  16363. args[_key5] = arguments[_key5];
  16364. }
  16365. vm.__call_hook('onShow', args);
  16366. });
  16367. }
  16368. if (isFn(appOptions.onHide) && wx.onAppHide) {
  16369. wx.onAppHide(function () {
  16370. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  16371. args[_key6] = arguments[_key6];
  16372. }
  16373. vm.__call_hook('onHide', args);
  16374. });
  16375. }
  16376. if (isFn(appOptions.onLaunch)) {
  16377. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  16378. vm.__call_hook('onLaunch', args);
  16379. }
  16380. return vm;
  16381. }
  16382. function createPlugin(vm) {
  16383. var appOptions = parseApp(vm);
  16384. if (isFn(appOptions.onShow) && wx.onAppShow) {
  16385. wx.onAppShow(function () {
  16386. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  16387. args[_key7] = arguments[_key7];
  16388. }
  16389. vm.__call_hook('onShow', args);
  16390. });
  16391. }
  16392. if (isFn(appOptions.onHide) && wx.onAppHide) {
  16393. wx.onAppHide(function () {
  16394. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  16395. args[_key8] = arguments[_key8];
  16396. }
  16397. vm.__call_hook('onHide', args);
  16398. });
  16399. }
  16400. if (isFn(appOptions.onLaunch)) {
  16401. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  16402. vm.__call_hook('onLaunch', args);
  16403. }
  16404. return vm;
  16405. }
  16406. todos.forEach(function (todoApi) {
  16407. protocols[todoApi] = false;
  16408. });
  16409. canIUses.forEach(function (canIUseApi) {
  16410. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  16411. if (!wx.canIUse(apiName)) {
  16412. protocols[canIUseApi] = false;
  16413. }
  16414. });
  16415. var uni = {};
  16416. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  16417. uni = new Proxy({}, {
  16418. get: function get(target, name) {
  16419. if (hasOwn(target, name)) {
  16420. return target[name];
  16421. }
  16422. if (baseApi[name]) {
  16423. return baseApi[name];
  16424. }
  16425. if (api[name]) {
  16426. return promisify(name, api[name]);
  16427. }
  16428. {
  16429. if (extraApi[name]) {
  16430. return promisify(name, extraApi[name]);
  16431. }
  16432. if (todoApis[name]) {
  16433. return promisify(name, todoApis[name]);
  16434. }
  16435. }
  16436. if (eventApi[name]) {
  16437. return eventApi[name];
  16438. }
  16439. return promisify(name, wrapper(name, wx[name]));
  16440. },
  16441. set: function set(target, name, value) {
  16442. target[name] = value;
  16443. return true;
  16444. }
  16445. });
  16446. } else {
  16447. Object.keys(baseApi).forEach(function (name) {
  16448. uni[name] = baseApi[name];
  16449. });
  16450. {
  16451. Object.keys(todoApis).forEach(function (name) {
  16452. uni[name] = promisify(name, todoApis[name]);
  16453. });
  16454. Object.keys(extraApi).forEach(function (name) {
  16455. uni[name] = promisify(name, extraApi[name]);
  16456. });
  16457. }
  16458. Object.keys(eventApi).forEach(function (name) {
  16459. uni[name] = eventApi[name];
  16460. });
  16461. Object.keys(api).forEach(function (name) {
  16462. uni[name] = promisify(name, api[name]);
  16463. });
  16464. Object.keys(wx).forEach(function (name) {
  16465. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  16466. uni[name] = promisify(name, wrapper(name, wx[name]));
  16467. }
  16468. });
  16469. }
  16470. wx.createApp = createApp;
  16471. wx.createPage = createPage;
  16472. wx.createComponent = createComponent;
  16473. wx.createSubpackageApp = createSubpackageApp;
  16474. wx.createPlugin = createPlugin;
  16475. var uni$1 = uni;
  16476. var _default = uni$1;
  16477. exports.default = _default;
  16478. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  16479. /***/ }),
  16480. /***/ 20:
  16481. /*!****************************************************************!*\
  16482. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  16483. \****************************************************************/
  16484. /*! no static exports found */
  16485. /***/ (function(module, exports) {
  16486. function _iterableToArray(iter) {
  16487. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  16488. }
  16489. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  16490. /***/ }),
  16491. /***/ 200:
  16492. /*!*************************************!*\
  16493. !*** D:/工作/项目2/华畦/xcw/api/order.js ***!
  16494. \*************************************/
  16495. /*! no static exports found */
  16496. /***/ (function(module, exports, __webpack_require__) {
  16497. "use strict";
  16498. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16499. Object.defineProperty(exports, "__esModule", {
  16500. value: true
  16501. });
  16502. exports.cancelOrder = cancelOrder;
  16503. exports.confirmOrder = confirmOrder;
  16504. exports.delOrder = delOrder;
  16505. exports.getOrderDetail = getOrderDetail;
  16506. exports.getOrderList = getOrderList;
  16507. exports.getPayResult = getPayResult;
  16508. exports.orderBuy = orderBuy;
  16509. exports.orderInfo = orderInfo;
  16510. exports.orderTraces = orderTraces;
  16511. var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 35));
  16512. var _tools = __webpack_require__(/*! @/utils/tools */ 41);
  16513. //订单结算页
  16514. function orderInfo(data) {
  16515. return _request.default.post("order/settlement", data);
  16516. }
  16517. // 下单
  16518. function orderBuy(data) {
  16519. return _request.default.post("order/submit_order", data);
  16520. }
  16521. //删除订单
  16522. function delOrder(id) {
  16523. return _request.default.post('order/del', {
  16524. id: id
  16525. });
  16526. }
  16527. //订单列表
  16528. function getOrderList(data) {
  16529. return _request.default.get('order/lists', {
  16530. params: data
  16531. });
  16532. }
  16533. //订单详情
  16534. function getOrderDetail(id) {
  16535. return _request.default.get('order/getOrderDetail', {
  16536. params: {
  16537. id: id
  16538. }
  16539. });
  16540. }
  16541. //取消订单
  16542. function cancelOrder(id) {
  16543. return _request.default.post('order/cancel', {
  16544. id: id
  16545. });
  16546. }
  16547. //物流
  16548. function orderTraces(id) {
  16549. return _request.default.get("order/orderTraces", {
  16550. params: {
  16551. id: id
  16552. }
  16553. });
  16554. }
  16555. //确认收货
  16556. function confirmOrder(id) {
  16557. return _request.default.post("order/confirm", {
  16558. id: id
  16559. });
  16560. }
  16561. // 支付结果
  16562. function getPayResult(params) {
  16563. return _request.default.get("order/pay_result", {
  16564. params: params
  16565. });
  16566. }
  16567. /***/ }),
  16568. /***/ 201:
  16569. /*!*************************************!*\
  16570. !*** D:/工作/项目2/华畦/xcw/utils/pay.js ***!
  16571. \*************************************/
  16572. /*! no static exports found */
  16573. /***/ (function(module, exports, __webpack_require__) {
  16574. "use strict";
  16575. /* WEBPACK VAR INJECTION */(function(uni) {
  16576. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16577. Object.defineProperty(exports, "__esModule", {
  16578. value: true
  16579. });
  16580. exports.alipay = alipay;
  16581. exports.wxpay = wxpay;
  16582. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  16583. var _wechath = _interopRequireDefault(__webpack_require__(/*! ./wechath5 */ 47));
  16584. var _tools = __webpack_require__(/*! ./tools */ 41);
  16585. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  16586. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  16587. function wxpay(opt) {
  16588. return new Promise(function (resolve, reject) {
  16589. var params = {
  16590. timeStamp: opt.timeStamp,
  16591. // 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符
  16592. nonceStr: opt.nonceStr,
  16593. // 支付签名随机串,不长于 32 位
  16594. package: opt.package,
  16595. // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=***)
  16596. signType: opt.signType,
  16597. // 签名方式,默认为'SHA1',使用新版支付需传入'MD5'
  16598. paySign: opt.paySign
  16599. };
  16600. console.log(params);
  16601. uni.requestPayment(_objectSpread(_objectSpread({
  16602. provider: 'wxpay'
  16603. }, params), {}, {
  16604. success: function success(res) {
  16605. resolve('success');
  16606. },
  16607. cancel: function cancel(res) {
  16608. resolve('fail');
  16609. },
  16610. fail: function fail(res) {
  16611. resolve('fail');
  16612. }
  16613. }));
  16614. });
  16615. }
  16616. function alipay(opt) {
  16617. // uni.switchTab({
  16618. // url: '/pages/index/index',
  16619. // })
  16620. }
  16621. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  16622. /***/ }),
  16623. /***/ 21:
  16624. /*!******************************************************************!*\
  16625. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  16626. \******************************************************************/
  16627. /*! no static exports found */
  16628. /***/ (function(module, exports) {
  16629. function _nonIterableSpread() {
  16630. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  16631. }
  16632. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  16633. /***/ }),
  16634. /***/ 22:
  16635. /*!*************************************************************!*\
  16636. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  16637. \*************************************************************/
  16638. /*! no static exports found */
  16639. /***/ (function(module, exports, __webpack_require__) {
  16640. "use strict";
  16641. /* WEBPACK VAR INJECTION */(function(uni, global) {
  16642. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  16643. Object.defineProperty(exports, "__esModule", {
  16644. value: true
  16645. });
  16646. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  16647. exports.compileI18nJsonStr = compileI18nJsonStr;
  16648. exports.hasI18nJson = hasI18nJson;
  16649. exports.initVueI18n = initVueI18n;
  16650. exports.isI18nStr = isI18nStr;
  16651. exports.isString = void 0;
  16652. exports.normalizeLocale = normalizeLocale;
  16653. exports.parseI18nJson = parseI18nJson;
  16654. exports.resolveLocale = resolveLocale;
  16655. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  16656. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  16657. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  16658. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  16659. var isObject = function isObject(val) {
  16660. return val !== null && (0, _typeof2.default)(val) === 'object';
  16661. };
  16662. var defaultDelimiters = ['{', '}'];
  16663. var BaseFormatter = /*#__PURE__*/function () {
  16664. function BaseFormatter() {
  16665. (0, _classCallCheck2.default)(this, BaseFormatter);
  16666. this._caches = Object.create(null);
  16667. }
  16668. (0, _createClass2.default)(BaseFormatter, [{
  16669. key: "interpolate",
  16670. value: function interpolate(message, values) {
  16671. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  16672. if (!values) {
  16673. return [message];
  16674. }
  16675. var tokens = this._caches[message];
  16676. if (!tokens) {
  16677. tokens = parse(message, delimiters);
  16678. this._caches[message] = tokens;
  16679. }
  16680. return compile(tokens, values);
  16681. }
  16682. }]);
  16683. return BaseFormatter;
  16684. }();
  16685. exports.Formatter = BaseFormatter;
  16686. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  16687. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  16688. function parse(format, _ref) {
  16689. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  16690. startDelimiter = _ref2[0],
  16691. endDelimiter = _ref2[1];
  16692. var tokens = [];
  16693. var position = 0;
  16694. var text = '';
  16695. while (position < format.length) {
  16696. var char = format[position++];
  16697. if (char === startDelimiter) {
  16698. if (text) {
  16699. tokens.push({
  16700. type: 'text',
  16701. value: text
  16702. });
  16703. }
  16704. text = '';
  16705. var sub = '';
  16706. char = format[position++];
  16707. while (char !== undefined && char !== endDelimiter) {
  16708. sub += char;
  16709. char = format[position++];
  16710. }
  16711. var isClosed = char === endDelimiter;
  16712. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  16713. tokens.push({
  16714. value: sub,
  16715. type: type
  16716. });
  16717. }
  16718. // else if (char === '%') {
  16719. // // when found rails i18n syntax, skip text capture
  16720. // if (format[position] !== '{') {
  16721. // text += char
  16722. // }
  16723. // }
  16724. else {
  16725. text += char;
  16726. }
  16727. }
  16728. text && tokens.push({
  16729. type: 'text',
  16730. value: text
  16731. });
  16732. return tokens;
  16733. }
  16734. function compile(tokens, values) {
  16735. var compiled = [];
  16736. var index = 0;
  16737. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  16738. if (mode === 'unknown') {
  16739. return compiled;
  16740. }
  16741. while (index < tokens.length) {
  16742. var token = tokens[index];
  16743. switch (token.type) {
  16744. case 'text':
  16745. compiled.push(token.value);
  16746. break;
  16747. case 'list':
  16748. compiled.push(values[parseInt(token.value, 10)]);
  16749. break;
  16750. case 'named':
  16751. if (mode === 'named') {
  16752. compiled.push(values[token.value]);
  16753. } else {
  16754. if (true) {
  16755. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  16756. }
  16757. }
  16758. break;
  16759. case 'unknown':
  16760. if (true) {
  16761. console.warn("Detect 'unknown' type of token!");
  16762. }
  16763. break;
  16764. }
  16765. index++;
  16766. }
  16767. return compiled;
  16768. }
  16769. var LOCALE_ZH_HANS = 'zh-Hans';
  16770. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  16771. var LOCALE_ZH_HANT = 'zh-Hant';
  16772. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  16773. var LOCALE_EN = 'en';
  16774. exports.LOCALE_EN = LOCALE_EN;
  16775. var LOCALE_FR = 'fr';
  16776. exports.LOCALE_FR = LOCALE_FR;
  16777. var LOCALE_ES = 'es';
  16778. exports.LOCALE_ES = LOCALE_ES;
  16779. var hasOwnProperty = Object.prototype.hasOwnProperty;
  16780. var hasOwn = function hasOwn(val, key) {
  16781. return hasOwnProperty.call(val, key);
  16782. };
  16783. var defaultFormatter = new BaseFormatter();
  16784. function include(str, parts) {
  16785. return !!parts.find(function (part) {
  16786. return str.indexOf(part) !== -1;
  16787. });
  16788. }
  16789. function startsWith(str, parts) {
  16790. return parts.find(function (part) {
  16791. return str.indexOf(part) === 0;
  16792. });
  16793. }
  16794. function normalizeLocale(locale, messages) {
  16795. if (!locale) {
  16796. return;
  16797. }
  16798. locale = locale.trim().replace(/_/g, '-');
  16799. if (messages && messages[locale]) {
  16800. return locale;
  16801. }
  16802. locale = locale.toLowerCase();
  16803. if (locale === 'chinese') {
  16804. // 支付宝
  16805. return LOCALE_ZH_HANS;
  16806. }
  16807. if (locale.indexOf('zh') === 0) {
  16808. if (locale.indexOf('-hans') > -1) {
  16809. return LOCALE_ZH_HANS;
  16810. }
  16811. if (locale.indexOf('-hant') > -1) {
  16812. return LOCALE_ZH_HANT;
  16813. }
  16814. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  16815. return LOCALE_ZH_HANT;
  16816. }
  16817. return LOCALE_ZH_HANS;
  16818. }
  16819. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  16820. if (messages && Object.keys(messages).length > 0) {
  16821. locales = Object.keys(messages);
  16822. }
  16823. var lang = startsWith(locale, locales);
  16824. if (lang) {
  16825. return lang;
  16826. }
  16827. }
  16828. var I18n = /*#__PURE__*/function () {
  16829. function I18n(_ref3) {
  16830. var locale = _ref3.locale,
  16831. fallbackLocale = _ref3.fallbackLocale,
  16832. messages = _ref3.messages,
  16833. watcher = _ref3.watcher,
  16834. formater = _ref3.formater;
  16835. (0, _classCallCheck2.default)(this, I18n);
  16836. this.locale = LOCALE_EN;
  16837. this.fallbackLocale = LOCALE_EN;
  16838. this.message = {};
  16839. this.messages = {};
  16840. this.watchers = [];
  16841. if (fallbackLocale) {
  16842. this.fallbackLocale = fallbackLocale;
  16843. }
  16844. this.formater = formater || defaultFormatter;
  16845. this.messages = messages || {};
  16846. this.setLocale(locale || LOCALE_EN);
  16847. if (watcher) {
  16848. this.watchLocale(watcher);
  16849. }
  16850. }
  16851. (0, _createClass2.default)(I18n, [{
  16852. key: "setLocale",
  16853. value: function setLocale(locale) {
  16854. var _this = this;
  16855. var oldLocale = this.locale;
  16856. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  16857. if (!this.messages[this.locale]) {
  16858. // 可能初始化时不存在
  16859. this.messages[this.locale] = {};
  16860. }
  16861. this.message = this.messages[this.locale];
  16862. // 仅发生变化时,通知
  16863. if (oldLocale !== this.locale) {
  16864. this.watchers.forEach(function (watcher) {
  16865. watcher(_this.locale, oldLocale);
  16866. });
  16867. }
  16868. }
  16869. }, {
  16870. key: "getLocale",
  16871. value: function getLocale() {
  16872. return this.locale;
  16873. }
  16874. }, {
  16875. key: "watchLocale",
  16876. value: function watchLocale(fn) {
  16877. var _this2 = this;
  16878. var index = this.watchers.push(fn) - 1;
  16879. return function () {
  16880. _this2.watchers.splice(index, 1);
  16881. };
  16882. }
  16883. }, {
  16884. key: "add",
  16885. value: function add(locale, message) {
  16886. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  16887. var curMessages = this.messages[locale];
  16888. if (curMessages) {
  16889. if (override) {
  16890. Object.assign(curMessages, message);
  16891. } else {
  16892. Object.keys(message).forEach(function (key) {
  16893. if (!hasOwn(curMessages, key)) {
  16894. curMessages[key] = message[key];
  16895. }
  16896. });
  16897. }
  16898. } else {
  16899. this.messages[locale] = message;
  16900. }
  16901. }
  16902. }, {
  16903. key: "f",
  16904. value: function f(message, values, delimiters) {
  16905. return this.formater.interpolate(message, values, delimiters).join('');
  16906. }
  16907. }, {
  16908. key: "t",
  16909. value: function t(key, locale, values) {
  16910. var message = this.message;
  16911. if (typeof locale === 'string') {
  16912. locale = normalizeLocale(locale, this.messages);
  16913. locale && (message = this.messages[locale]);
  16914. } else {
  16915. values = locale;
  16916. }
  16917. if (!hasOwn(message, key)) {
  16918. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  16919. return key;
  16920. }
  16921. return this.formater.interpolate(message[key], values).join('');
  16922. }
  16923. }]);
  16924. return I18n;
  16925. }();
  16926. exports.I18n = I18n;
  16927. function watchAppLocale(appVm, i18n) {
  16928. // 需要保证 watch 的触发在组件渲染之前
  16929. if (appVm.$watchLocale) {
  16930. // vue2
  16931. appVm.$watchLocale(function (newLocale) {
  16932. i18n.setLocale(newLocale);
  16933. });
  16934. } else {
  16935. appVm.$watch(function () {
  16936. return appVm.$locale;
  16937. }, function (newLocale) {
  16938. i18n.setLocale(newLocale);
  16939. });
  16940. }
  16941. }
  16942. function getDefaultLocale() {
  16943. if (typeof uni !== 'undefined' && uni.getLocale) {
  16944. return uni.getLocale();
  16945. }
  16946. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  16947. if (typeof global !== 'undefined' && global.getLocale) {
  16948. return global.getLocale();
  16949. }
  16950. return LOCALE_EN;
  16951. }
  16952. function initVueI18n(locale) {
  16953. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  16954. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  16955. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  16956. // 兼容旧版本入参
  16957. if (typeof locale !== 'string') {
  16958. var _ref4 = [messages, locale];
  16959. locale = _ref4[0];
  16960. messages = _ref4[1];
  16961. }
  16962. if (typeof locale !== 'string') {
  16963. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  16964. locale = getDefaultLocale();
  16965. }
  16966. if (typeof fallbackLocale !== 'string') {
  16967. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  16968. }
  16969. var i18n = new I18n({
  16970. locale: locale,
  16971. fallbackLocale: fallbackLocale,
  16972. messages: messages,
  16973. watcher: watcher
  16974. });
  16975. var _t = function t(key, values) {
  16976. if (typeof getApp !== 'function') {
  16977. // app view
  16978. /* eslint-disable no-func-assign */
  16979. _t = function t(key, values) {
  16980. return i18n.t(key, values);
  16981. };
  16982. } else {
  16983. var isWatchedAppLocale = false;
  16984. _t = function t(key, values) {
  16985. var appVm = getApp().$vm;
  16986. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  16987. // options: {
  16988. // type: Array,
  16989. // default () {
  16990. // return [{
  16991. // icon: 'shop',
  16992. // text: t("uni-goods-nav.options.shop"),
  16993. // }, {
  16994. // icon: 'cart',
  16995. // text: t("uni-goods-nav.options.cart")
  16996. // }]
  16997. // }
  16998. // },
  16999. if (appVm) {
  17000. // 触发响应式
  17001. appVm.$locale;
  17002. if (!isWatchedAppLocale) {
  17003. isWatchedAppLocale = true;
  17004. watchAppLocale(appVm, i18n);
  17005. }
  17006. }
  17007. return i18n.t(key, values);
  17008. };
  17009. }
  17010. return _t(key, values);
  17011. };
  17012. return {
  17013. i18n: i18n,
  17014. f: function f(message, values, delimiters) {
  17015. return i18n.f(message, values, delimiters);
  17016. },
  17017. t: function t(key, values) {
  17018. return _t(key, values);
  17019. },
  17020. add: function add(locale, message) {
  17021. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  17022. return i18n.add(locale, message, override);
  17023. },
  17024. watch: function watch(fn) {
  17025. return i18n.watchLocale(fn);
  17026. },
  17027. getLocale: function getLocale() {
  17028. return i18n.getLocale();
  17029. },
  17030. setLocale: function setLocale(newLocale) {
  17031. return i18n.setLocale(newLocale);
  17032. }
  17033. };
  17034. }
  17035. var isString = function isString(val) {
  17036. return typeof val === 'string';
  17037. };
  17038. exports.isString = isString;
  17039. var formater;
  17040. function hasI18nJson(jsonObj, delimiters) {
  17041. if (!formater) {
  17042. formater = new BaseFormatter();
  17043. }
  17044. return walkJsonObj(jsonObj, function (jsonObj, key) {
  17045. var value = jsonObj[key];
  17046. if (isString(value)) {
  17047. if (isI18nStr(value, delimiters)) {
  17048. return true;
  17049. }
  17050. } else {
  17051. return hasI18nJson(value, delimiters);
  17052. }
  17053. });
  17054. }
  17055. function parseI18nJson(jsonObj, values, delimiters) {
  17056. if (!formater) {
  17057. formater = new BaseFormatter();
  17058. }
  17059. walkJsonObj(jsonObj, function (jsonObj, key) {
  17060. var value = jsonObj[key];
  17061. if (isString(value)) {
  17062. if (isI18nStr(value, delimiters)) {
  17063. jsonObj[key] = compileStr(value, values, delimiters);
  17064. }
  17065. } else {
  17066. parseI18nJson(value, values, delimiters);
  17067. }
  17068. });
  17069. return jsonObj;
  17070. }
  17071. function compileI18nJsonStr(jsonStr, _ref5) {
  17072. var locale = _ref5.locale,
  17073. locales = _ref5.locales,
  17074. delimiters = _ref5.delimiters;
  17075. if (!isI18nStr(jsonStr, delimiters)) {
  17076. return jsonStr;
  17077. }
  17078. if (!formater) {
  17079. formater = new BaseFormatter();
  17080. }
  17081. var localeValues = [];
  17082. Object.keys(locales).forEach(function (name) {
  17083. if (name !== locale) {
  17084. localeValues.push({
  17085. locale: name,
  17086. values: locales[name]
  17087. });
  17088. }
  17089. });
  17090. localeValues.unshift({
  17091. locale: locale,
  17092. values: locales[locale]
  17093. });
  17094. try {
  17095. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  17096. } catch (e) {}
  17097. return jsonStr;
  17098. }
  17099. function isI18nStr(value, delimiters) {
  17100. return value.indexOf(delimiters[0]) > -1;
  17101. }
  17102. function compileStr(value, values, delimiters) {
  17103. return formater.interpolate(value, values, delimiters).join('');
  17104. }
  17105. function compileValue(jsonObj, key, localeValues, delimiters) {
  17106. var value = jsonObj[key];
  17107. if (isString(value)) {
  17108. // 存在国际化
  17109. if (isI18nStr(value, delimiters)) {
  17110. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  17111. if (localeValues.length > 1) {
  17112. // 格式化国际化语言
  17113. var valueLocales = jsonObj[key + 'Locales'] = {};
  17114. localeValues.forEach(function (localValue) {
  17115. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  17116. });
  17117. }
  17118. }
  17119. } else {
  17120. compileJsonObj(value, localeValues, delimiters);
  17121. }
  17122. }
  17123. function compileJsonObj(jsonObj, localeValues, delimiters) {
  17124. walkJsonObj(jsonObj, function (jsonObj, key) {
  17125. compileValue(jsonObj, key, localeValues, delimiters);
  17126. });
  17127. return jsonObj;
  17128. }
  17129. function walkJsonObj(jsonObj, walk) {
  17130. if (Array.isArray(jsonObj)) {
  17131. for (var i = 0; i < jsonObj.length; i++) {
  17132. if (walk(jsonObj, i)) {
  17133. return true;
  17134. }
  17135. }
  17136. } else if (isObject(jsonObj)) {
  17137. for (var key in jsonObj) {
  17138. if (walk(jsonObj, key)) {
  17139. return true;
  17140. }
  17141. }
  17142. }
  17143. return false;
  17144. }
  17145. function resolveLocale(locales) {
  17146. return function (locale) {
  17147. if (!locale) {
  17148. return locale;
  17149. }
  17150. locale = normalizeLocale(locale) || locale;
  17151. return resolveLocaleChain(locale).find(function (locale) {
  17152. return locales.indexOf(locale) > -1;
  17153. });
  17154. };
  17155. }
  17156. function resolveLocaleChain(locale) {
  17157. var chain = [];
  17158. var tokens = locale.split('-');
  17159. while (tokens.length) {
  17160. chain.push(tokens.join('-'));
  17161. tokens.pop();
  17162. }
  17163. return chain;
  17164. }
  17165. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 3)))
  17166. /***/ }),
  17167. /***/ 23:
  17168. /*!***************************************************************!*\
  17169. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  17170. \***************************************************************/
  17171. /*! no static exports found */
  17172. /***/ (function(module, exports) {
  17173. function _classCallCheck(instance, Constructor) {
  17174. if (!(instance instanceof Constructor)) {
  17175. throw new TypeError("Cannot call a class as a function");
  17176. }
  17177. }
  17178. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  17179. /***/ }),
  17180. /***/ 24:
  17181. /*!************************************************************!*\
  17182. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  17183. \************************************************************/
  17184. /*! no static exports found */
  17185. /***/ (function(module, exports, __webpack_require__) {
  17186. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  17187. function _defineProperties(target, props) {
  17188. for (var i = 0; i < props.length; i++) {
  17189. var descriptor = props[i];
  17190. descriptor.enumerable = descriptor.enumerable || false;
  17191. descriptor.configurable = true;
  17192. if ("value" in descriptor) descriptor.writable = true;
  17193. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  17194. }
  17195. }
  17196. function _createClass(Constructor, protoProps, staticProps) {
  17197. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  17198. if (staticProps) _defineProperties(Constructor, staticProps);
  17199. Object.defineProperty(Constructor, "prototype", {
  17200. writable: false
  17201. });
  17202. return Constructor;
  17203. }
  17204. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  17205. /***/ }),
  17206. /***/ 25:
  17207. /*!******************************************************************************************!*\
  17208. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  17209. \******************************************************************************************/
  17210. /*! exports provided: default */
  17211. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  17212. "use strict";
  17213. __webpack_require__.r(__webpack_exports__);
  17214. /* WEBPACK VAR INJECTION */(function(global) {/*!
  17215. * Vue.js v2.6.11
  17216. * (c) 2014-2023 Evan You
  17217. * Released under the MIT License.
  17218. */
  17219. /* */
  17220. var emptyObject = Object.freeze({});
  17221. // These helpers produce better VM code in JS engines due to their
  17222. // explicitness and function inlining.
  17223. function isUndef (v) {
  17224. return v === undefined || v === null
  17225. }
  17226. function isDef (v) {
  17227. return v !== undefined && v !== null
  17228. }
  17229. function isTrue (v) {
  17230. return v === true
  17231. }
  17232. function isFalse (v) {
  17233. return v === false
  17234. }
  17235. /**
  17236. * Check if value is primitive.
  17237. */
  17238. function isPrimitive (value) {
  17239. return (
  17240. typeof value === 'string' ||
  17241. typeof value === 'number' ||
  17242. // $flow-disable-line
  17243. typeof value === 'symbol' ||
  17244. typeof value === 'boolean'
  17245. )
  17246. }
  17247. /**
  17248. * Quick object check - this is primarily used to tell
  17249. * Objects from primitive values when we know the value
  17250. * is a JSON-compliant type.
  17251. */
  17252. function isObject (obj) {
  17253. return obj !== null && typeof obj === 'object'
  17254. }
  17255. /**
  17256. * Get the raw type string of a value, e.g., [object Object].
  17257. */
  17258. var _toString = Object.prototype.toString;
  17259. function toRawType (value) {
  17260. return _toString.call(value).slice(8, -1)
  17261. }
  17262. /**
  17263. * Strict object type check. Only returns true
  17264. * for plain JavaScript objects.
  17265. */
  17266. function isPlainObject (obj) {
  17267. return _toString.call(obj) === '[object Object]'
  17268. }
  17269. function isRegExp (v) {
  17270. return _toString.call(v) === '[object RegExp]'
  17271. }
  17272. /**
  17273. * Check if val is a valid array index.
  17274. */
  17275. function isValidArrayIndex (val) {
  17276. var n = parseFloat(String(val));
  17277. return n >= 0 && Math.floor(n) === n && isFinite(val)
  17278. }
  17279. function isPromise (val) {
  17280. return (
  17281. isDef(val) &&
  17282. typeof val.then === 'function' &&
  17283. typeof val.catch === 'function'
  17284. )
  17285. }
  17286. /**
  17287. * Convert a value to a string that is actually rendered.
  17288. */
  17289. function toString (val) {
  17290. return val == null
  17291. ? ''
  17292. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  17293. ? JSON.stringify(val, null, 2)
  17294. : String(val)
  17295. }
  17296. /**
  17297. * Convert an input value to a number for persistence.
  17298. * If the conversion fails, return original string.
  17299. */
  17300. function toNumber (val) {
  17301. var n = parseFloat(val);
  17302. return isNaN(n) ? val : n
  17303. }
  17304. /**
  17305. * Make a map and return a function for checking if a key
  17306. * is in that map.
  17307. */
  17308. function makeMap (
  17309. str,
  17310. expectsLowerCase
  17311. ) {
  17312. var map = Object.create(null);
  17313. var list = str.split(',');
  17314. for (var i = 0; i < list.length; i++) {
  17315. map[list[i]] = true;
  17316. }
  17317. return expectsLowerCase
  17318. ? function (val) { return map[val.toLowerCase()]; }
  17319. : function (val) { return map[val]; }
  17320. }
  17321. /**
  17322. * Check if a tag is a built-in tag.
  17323. */
  17324. var isBuiltInTag = makeMap('slot,component', true);
  17325. /**
  17326. * Check if an attribute is a reserved attribute.
  17327. */
  17328. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  17329. /**
  17330. * Remove an item from an array.
  17331. */
  17332. function remove (arr, item) {
  17333. if (arr.length) {
  17334. var index = arr.indexOf(item);
  17335. if (index > -1) {
  17336. return arr.splice(index, 1)
  17337. }
  17338. }
  17339. }
  17340. /**
  17341. * Check whether an object has the property.
  17342. */
  17343. var hasOwnProperty = Object.prototype.hasOwnProperty;
  17344. function hasOwn (obj, key) {
  17345. return hasOwnProperty.call(obj, key)
  17346. }
  17347. /**
  17348. * Create a cached version of a pure function.
  17349. */
  17350. function cached (fn) {
  17351. var cache = Object.create(null);
  17352. return (function cachedFn (str) {
  17353. var hit = cache[str];
  17354. return hit || (cache[str] = fn(str))
  17355. })
  17356. }
  17357. /**
  17358. * Camelize a hyphen-delimited string.
  17359. */
  17360. var camelizeRE = /-(\w)/g;
  17361. var camelize = cached(function (str) {
  17362. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  17363. });
  17364. /**
  17365. * Capitalize a string.
  17366. */
  17367. var capitalize = cached(function (str) {
  17368. return str.charAt(0).toUpperCase() + str.slice(1)
  17369. });
  17370. /**
  17371. * Hyphenate a camelCase string.
  17372. */
  17373. var hyphenateRE = /\B([A-Z])/g;
  17374. var hyphenate = cached(function (str) {
  17375. return str.replace(hyphenateRE, '-$1').toLowerCase()
  17376. });
  17377. /**
  17378. * Simple bind polyfill for environments that do not support it,
  17379. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  17380. * since native bind is now performant enough in most browsers.
  17381. * But removing it would mean breaking code that was able to run in
  17382. * PhantomJS 1.x, so this must be kept for backward compatibility.
  17383. */
  17384. /* istanbul ignore next */
  17385. function polyfillBind (fn, ctx) {
  17386. function boundFn (a) {
  17387. var l = arguments.length;
  17388. return l
  17389. ? l > 1
  17390. ? fn.apply(ctx, arguments)
  17391. : fn.call(ctx, a)
  17392. : fn.call(ctx)
  17393. }
  17394. boundFn._length = fn.length;
  17395. return boundFn
  17396. }
  17397. function nativeBind (fn, ctx) {
  17398. return fn.bind(ctx)
  17399. }
  17400. var bind = Function.prototype.bind
  17401. ? nativeBind
  17402. : polyfillBind;
  17403. /**
  17404. * Convert an Array-like object to a real Array.
  17405. */
  17406. function toArray (list, start) {
  17407. start = start || 0;
  17408. var i = list.length - start;
  17409. var ret = new Array(i);
  17410. while (i--) {
  17411. ret[i] = list[i + start];
  17412. }
  17413. return ret
  17414. }
  17415. /**
  17416. * Mix properties into target object.
  17417. */
  17418. function extend (to, _from) {
  17419. for (var key in _from) {
  17420. to[key] = _from[key];
  17421. }
  17422. return to
  17423. }
  17424. /**
  17425. * Merge an Array of Objects into a single Object.
  17426. */
  17427. function toObject (arr) {
  17428. var res = {};
  17429. for (var i = 0; i < arr.length; i++) {
  17430. if (arr[i]) {
  17431. extend(res, arr[i]);
  17432. }
  17433. }
  17434. return res
  17435. }
  17436. /* eslint-disable no-unused-vars */
  17437. /**
  17438. * Perform no operation.
  17439. * Stubbing args to make Flow happy without leaving useless transpiled code
  17440. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  17441. */
  17442. function noop (a, b, c) {}
  17443. /**
  17444. * Always return false.
  17445. */
  17446. var no = function (a, b, c) { return false; };
  17447. /* eslint-enable no-unused-vars */
  17448. /**
  17449. * Return the same value.
  17450. */
  17451. var identity = function (_) { return _; };
  17452. /**
  17453. * Check if two values are loosely equal - that is,
  17454. * if they are plain objects, do they have the same shape?
  17455. */
  17456. function looseEqual (a, b) {
  17457. if (a === b) { return true }
  17458. var isObjectA = isObject(a);
  17459. var isObjectB = isObject(b);
  17460. if (isObjectA && isObjectB) {
  17461. try {
  17462. var isArrayA = Array.isArray(a);
  17463. var isArrayB = Array.isArray(b);
  17464. if (isArrayA && isArrayB) {
  17465. return a.length === b.length && a.every(function (e, i) {
  17466. return looseEqual(e, b[i])
  17467. })
  17468. } else if (a instanceof Date && b instanceof Date) {
  17469. return a.getTime() === b.getTime()
  17470. } else if (!isArrayA && !isArrayB) {
  17471. var keysA = Object.keys(a);
  17472. var keysB = Object.keys(b);
  17473. return keysA.length === keysB.length && keysA.every(function (key) {
  17474. return looseEqual(a[key], b[key])
  17475. })
  17476. } else {
  17477. /* istanbul ignore next */
  17478. return false
  17479. }
  17480. } catch (e) {
  17481. /* istanbul ignore next */
  17482. return false
  17483. }
  17484. } else if (!isObjectA && !isObjectB) {
  17485. return String(a) === String(b)
  17486. } else {
  17487. return false
  17488. }
  17489. }
  17490. /**
  17491. * Return the first index at which a loosely equal value can be
  17492. * found in the array (if value is a plain object, the array must
  17493. * contain an object of the same shape), or -1 if it is not present.
  17494. */
  17495. function looseIndexOf (arr, val) {
  17496. for (var i = 0; i < arr.length; i++) {
  17497. if (looseEqual(arr[i], val)) { return i }
  17498. }
  17499. return -1
  17500. }
  17501. /**
  17502. * Ensure a function is called only once.
  17503. */
  17504. function once (fn) {
  17505. var called = false;
  17506. return function () {
  17507. if (!called) {
  17508. called = true;
  17509. fn.apply(this, arguments);
  17510. }
  17511. }
  17512. }
  17513. var ASSET_TYPES = [
  17514. 'component',
  17515. 'directive',
  17516. 'filter'
  17517. ];
  17518. var LIFECYCLE_HOOKS = [
  17519. 'beforeCreate',
  17520. 'created',
  17521. 'beforeMount',
  17522. 'mounted',
  17523. 'beforeUpdate',
  17524. 'updated',
  17525. 'beforeDestroy',
  17526. 'destroyed',
  17527. 'activated',
  17528. 'deactivated',
  17529. 'errorCaptured',
  17530. 'serverPrefetch'
  17531. ];
  17532. /* */
  17533. var config = ({
  17534. /**
  17535. * Option merge strategies (used in core/util/options)
  17536. */
  17537. // $flow-disable-line
  17538. optionMergeStrategies: Object.create(null),
  17539. /**
  17540. * Whether to suppress warnings.
  17541. */
  17542. silent: false,
  17543. /**
  17544. * Show production mode tip message on boot?
  17545. */
  17546. productionTip: "development" !== 'production',
  17547. /**
  17548. * Whether to enable devtools
  17549. */
  17550. devtools: "development" !== 'production',
  17551. /**
  17552. * Whether to record perf
  17553. */
  17554. performance: false,
  17555. /**
  17556. * Error handler for watcher errors
  17557. */
  17558. errorHandler: null,
  17559. /**
  17560. * Warn handler for watcher warns
  17561. */
  17562. warnHandler: null,
  17563. /**
  17564. * Ignore certain custom elements
  17565. */
  17566. ignoredElements: [],
  17567. /**
  17568. * Custom user key aliases for v-on
  17569. */
  17570. // $flow-disable-line
  17571. keyCodes: Object.create(null),
  17572. /**
  17573. * Check if a tag is reserved so that it cannot be registered as a
  17574. * component. This is platform-dependent and may be overwritten.
  17575. */
  17576. isReservedTag: no,
  17577. /**
  17578. * Check if an attribute is reserved so that it cannot be used as a component
  17579. * prop. This is platform-dependent and may be overwritten.
  17580. */
  17581. isReservedAttr: no,
  17582. /**
  17583. * Check if a tag is an unknown element.
  17584. * Platform-dependent.
  17585. */
  17586. isUnknownElement: no,
  17587. /**
  17588. * Get the namespace of an element
  17589. */
  17590. getTagNamespace: noop,
  17591. /**
  17592. * Parse the real tag name for the specific platform.
  17593. */
  17594. parsePlatformTagName: identity,
  17595. /**
  17596. * Check if an attribute must be bound using property, e.g. value
  17597. * Platform-dependent.
  17598. */
  17599. mustUseProp: no,
  17600. /**
  17601. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  17602. * This will significantly reduce performance if set to false.
  17603. */
  17604. async: true,
  17605. /**
  17606. * Exposed for legacy reasons
  17607. */
  17608. _lifecycleHooks: LIFECYCLE_HOOKS
  17609. });
  17610. /* */
  17611. /**
  17612. * unicode letters used for parsing html tags, component names and property paths.
  17613. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  17614. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  17615. */
  17616. 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/;
  17617. /**
  17618. * Check if a string starts with $ or _
  17619. */
  17620. function isReserved (str) {
  17621. var c = (str + '').charCodeAt(0);
  17622. return c === 0x24 || c === 0x5F
  17623. }
  17624. /**
  17625. * Define a property.
  17626. */
  17627. function def (obj, key, val, enumerable) {
  17628. Object.defineProperty(obj, key, {
  17629. value: val,
  17630. enumerable: !!enumerable,
  17631. writable: true,
  17632. configurable: true
  17633. });
  17634. }
  17635. /**
  17636. * Parse simple path.
  17637. */
  17638. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  17639. function parsePath (path) {
  17640. if (bailRE.test(path)) {
  17641. return
  17642. }
  17643. var segments = path.split('.');
  17644. return function (obj) {
  17645. for (var i = 0; i < segments.length; i++) {
  17646. if (!obj) { return }
  17647. obj = obj[segments[i]];
  17648. }
  17649. return obj
  17650. }
  17651. }
  17652. /* */
  17653. // can we use __proto__?
  17654. var hasProto = '__proto__' in {};
  17655. // Browser environment sniffing
  17656. var inBrowser = typeof window !== 'undefined';
  17657. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  17658. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  17659. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  17660. var isIE = UA && /msie|trident/.test(UA);
  17661. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  17662. var isEdge = UA && UA.indexOf('edge/') > 0;
  17663. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  17664. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  17665. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  17666. var isPhantomJS = UA && /phantomjs/.test(UA);
  17667. var isFF = UA && UA.match(/firefox\/(\d+)/);
  17668. // Firefox has a "watch" function on Object.prototype...
  17669. var nativeWatch = ({}).watch;
  17670. if (inBrowser) {
  17671. try {
  17672. var opts = {};
  17673. Object.defineProperty(opts, 'passive', ({
  17674. get: function get () {
  17675. }
  17676. })); // https://github.com/facebook/flow/issues/285
  17677. window.addEventListener('test-passive', null, opts);
  17678. } catch (e) {}
  17679. }
  17680. // this needs to be lazy-evaled because vue may be required before
  17681. // vue-server-renderer can set VUE_ENV
  17682. var _isServer;
  17683. var isServerRendering = function () {
  17684. if (_isServer === undefined) {
  17685. /* istanbul ignore if */
  17686. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  17687. // detect presence of vue-server-renderer and avoid
  17688. // Webpack shimming the process
  17689. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  17690. } else {
  17691. _isServer = false;
  17692. }
  17693. }
  17694. return _isServer
  17695. };
  17696. // detect devtools
  17697. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  17698. /* istanbul ignore next */
  17699. function isNative (Ctor) {
  17700. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  17701. }
  17702. var hasSymbol =
  17703. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  17704. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  17705. var _Set;
  17706. /* istanbul ignore if */ // $flow-disable-line
  17707. if (typeof Set !== 'undefined' && isNative(Set)) {
  17708. // use native Set when available.
  17709. _Set = Set;
  17710. } else {
  17711. // a non-standard Set polyfill that only works with primitive keys.
  17712. _Set = /*@__PURE__*/(function () {
  17713. function Set () {
  17714. this.set = Object.create(null);
  17715. }
  17716. Set.prototype.has = function has (key) {
  17717. return this.set[key] === true
  17718. };
  17719. Set.prototype.add = function add (key) {
  17720. this.set[key] = true;
  17721. };
  17722. Set.prototype.clear = function clear () {
  17723. this.set = Object.create(null);
  17724. };
  17725. return Set;
  17726. }());
  17727. }
  17728. /* */
  17729. var warn = noop;
  17730. var tip = noop;
  17731. var generateComponentTrace = (noop); // work around flow check
  17732. var formatComponentName = (noop);
  17733. if (true) {
  17734. var hasConsole = typeof console !== 'undefined';
  17735. var classifyRE = /(?:^|[-_])(\w)/g;
  17736. var classify = function (str) { return str
  17737. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  17738. .replace(/[-_]/g, ''); };
  17739. warn = function (msg, vm) {
  17740. var trace = vm ? generateComponentTrace(vm) : '';
  17741. if (config.warnHandler) {
  17742. config.warnHandler.call(null, msg, vm, trace);
  17743. } else if (hasConsole && (!config.silent)) {
  17744. console.error(("[Vue warn]: " + msg + trace));
  17745. }
  17746. };
  17747. tip = function (msg, vm) {
  17748. if (hasConsole && (!config.silent)) {
  17749. console.warn("[Vue tip]: " + msg + (
  17750. vm ? generateComponentTrace(vm) : ''
  17751. ));
  17752. }
  17753. };
  17754. formatComponentName = function (vm, includeFile) {
  17755. if (vm.$root === vm) {
  17756. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  17757. return ('') + vm.$options.__file
  17758. }
  17759. return '<Root>'
  17760. }
  17761. var options = typeof vm === 'function' && vm.cid != null
  17762. ? vm.options
  17763. : vm._isVue
  17764. ? vm.$options || vm.constructor.options
  17765. : vm;
  17766. var name = options.name || options._componentTag;
  17767. var file = options.__file;
  17768. if (!name && file) {
  17769. var match = file.match(/([^/\\]+)\.vue$/);
  17770. name = match && match[1];
  17771. }
  17772. return (
  17773. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  17774. (file && includeFile !== false ? (" at " + file) : '')
  17775. )
  17776. };
  17777. var repeat = function (str, n) {
  17778. var res = '';
  17779. while (n) {
  17780. if (n % 2 === 1) { res += str; }
  17781. if (n > 1) { str += str; }
  17782. n >>= 1;
  17783. }
  17784. return res
  17785. };
  17786. generateComponentTrace = function (vm) {
  17787. if (vm._isVue && vm.$parent) {
  17788. var tree = [];
  17789. var currentRecursiveSequence = 0;
  17790. while (vm && vm.$options.name !== 'PageBody') {
  17791. if (tree.length > 0) {
  17792. var last = tree[tree.length - 1];
  17793. if (last.constructor === vm.constructor) {
  17794. currentRecursiveSequence++;
  17795. vm = vm.$parent;
  17796. continue
  17797. } else if (currentRecursiveSequence > 0) {
  17798. tree[tree.length - 1] = [last, currentRecursiveSequence];
  17799. currentRecursiveSequence = 0;
  17800. }
  17801. }
  17802. !vm.$options.isReserved && tree.push(vm);
  17803. vm = vm.$parent;
  17804. }
  17805. return '\n\nfound in\n\n' + tree
  17806. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  17807. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  17808. : formatComponentName(vm))); })
  17809. .join('\n')
  17810. } else {
  17811. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  17812. }
  17813. };
  17814. }
  17815. /* */
  17816. var uid = 0;
  17817. /**
  17818. * A dep is an observable that can have multiple
  17819. * directives subscribing to it.
  17820. */
  17821. var Dep = function Dep () {
  17822. this.id = uid++;
  17823. this.subs = [];
  17824. };
  17825. Dep.prototype.addSub = function addSub (sub) {
  17826. this.subs.push(sub);
  17827. };
  17828. Dep.prototype.removeSub = function removeSub (sub) {
  17829. remove(this.subs, sub);
  17830. };
  17831. Dep.prototype.depend = function depend () {
  17832. if (Dep.SharedObject.target) {
  17833. Dep.SharedObject.target.addDep(this);
  17834. }
  17835. };
  17836. Dep.prototype.notify = function notify () {
  17837. // stabilize the subscriber list first
  17838. var subs = this.subs.slice();
  17839. if ( true && !config.async) {
  17840. // subs aren't sorted in scheduler if not running async
  17841. // we need to sort them now to make sure they fire in correct
  17842. // order
  17843. subs.sort(function (a, b) { return a.id - b.id; });
  17844. }
  17845. for (var i = 0, l = subs.length; i < l; i++) {
  17846. subs[i].update();
  17847. }
  17848. };
  17849. // The current target watcher being evaluated.
  17850. // This is globally unique because only one watcher
  17851. // can be evaluated at a time.
  17852. // fixed by xxxxxx (nvue shared vuex)
  17853. /* eslint-disable no-undef */
  17854. Dep.SharedObject = {};
  17855. Dep.SharedObject.target = null;
  17856. Dep.SharedObject.targetStack = [];
  17857. function pushTarget (target) {
  17858. Dep.SharedObject.targetStack.push(target);
  17859. Dep.SharedObject.target = target;
  17860. Dep.target = target;
  17861. }
  17862. function popTarget () {
  17863. Dep.SharedObject.targetStack.pop();
  17864. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  17865. Dep.target = Dep.SharedObject.target;
  17866. }
  17867. /* */
  17868. var VNode = function VNode (
  17869. tag,
  17870. data,
  17871. children,
  17872. text,
  17873. elm,
  17874. context,
  17875. componentOptions,
  17876. asyncFactory
  17877. ) {
  17878. this.tag = tag;
  17879. this.data = data;
  17880. this.children = children;
  17881. this.text = text;
  17882. this.elm = elm;
  17883. this.ns = undefined;
  17884. this.context = context;
  17885. this.fnContext = undefined;
  17886. this.fnOptions = undefined;
  17887. this.fnScopeId = undefined;
  17888. this.key = data && data.key;
  17889. this.componentOptions = componentOptions;
  17890. this.componentInstance = undefined;
  17891. this.parent = undefined;
  17892. this.raw = false;
  17893. this.isStatic = false;
  17894. this.isRootInsert = true;
  17895. this.isComment = false;
  17896. this.isCloned = false;
  17897. this.isOnce = false;
  17898. this.asyncFactory = asyncFactory;
  17899. this.asyncMeta = undefined;
  17900. this.isAsyncPlaceholder = false;
  17901. };
  17902. var prototypeAccessors = { child: { configurable: true } };
  17903. // DEPRECATED: alias for componentInstance for backwards compat.
  17904. /* istanbul ignore next */
  17905. prototypeAccessors.child.get = function () {
  17906. return this.componentInstance
  17907. };
  17908. Object.defineProperties( VNode.prototype, prototypeAccessors );
  17909. var createEmptyVNode = function (text) {
  17910. if ( text === void 0 ) text = '';
  17911. var node = new VNode();
  17912. node.text = text;
  17913. node.isComment = true;
  17914. return node
  17915. };
  17916. function createTextVNode (val) {
  17917. return new VNode(undefined, undefined, undefined, String(val))
  17918. }
  17919. // optimized shallow clone
  17920. // used for static nodes and slot nodes because they may be reused across
  17921. // multiple renders, cloning them avoids errors when DOM manipulations rely
  17922. // on their elm reference.
  17923. function cloneVNode (vnode) {
  17924. var cloned = new VNode(
  17925. vnode.tag,
  17926. vnode.data,
  17927. // #7975
  17928. // clone children array to avoid mutating original in case of cloning
  17929. // a child.
  17930. vnode.children && vnode.children.slice(),
  17931. vnode.text,
  17932. vnode.elm,
  17933. vnode.context,
  17934. vnode.componentOptions,
  17935. vnode.asyncFactory
  17936. );
  17937. cloned.ns = vnode.ns;
  17938. cloned.isStatic = vnode.isStatic;
  17939. cloned.key = vnode.key;
  17940. cloned.isComment = vnode.isComment;
  17941. cloned.fnContext = vnode.fnContext;
  17942. cloned.fnOptions = vnode.fnOptions;
  17943. cloned.fnScopeId = vnode.fnScopeId;
  17944. cloned.asyncMeta = vnode.asyncMeta;
  17945. cloned.isCloned = true;
  17946. return cloned
  17947. }
  17948. /*
  17949. * not type checking this file because flow doesn't play well with
  17950. * dynamically accessing methods on Array prototype
  17951. */
  17952. var arrayProto = Array.prototype;
  17953. var arrayMethods = Object.create(arrayProto);
  17954. var methodsToPatch = [
  17955. 'push',
  17956. 'pop',
  17957. 'shift',
  17958. 'unshift',
  17959. 'splice',
  17960. 'sort',
  17961. 'reverse'
  17962. ];
  17963. /**
  17964. * Intercept mutating methods and emit events
  17965. */
  17966. methodsToPatch.forEach(function (method) {
  17967. // cache original method
  17968. var original = arrayProto[method];
  17969. def(arrayMethods, method, function mutator () {
  17970. var args = [], len = arguments.length;
  17971. while ( len-- ) args[ len ] = arguments[ len ];
  17972. var result = original.apply(this, args);
  17973. var ob = this.__ob__;
  17974. var inserted;
  17975. switch (method) {
  17976. case 'push':
  17977. case 'unshift':
  17978. inserted = args;
  17979. break
  17980. case 'splice':
  17981. inserted = args.slice(2);
  17982. break
  17983. }
  17984. if (inserted) { ob.observeArray(inserted); }
  17985. // notify change
  17986. ob.dep.notify();
  17987. return result
  17988. });
  17989. });
  17990. /* */
  17991. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  17992. /**
  17993. * In some cases we may want to disable observation inside a component's
  17994. * update computation.
  17995. */
  17996. var shouldObserve = true;
  17997. function toggleObserving (value) {
  17998. shouldObserve = value;
  17999. }
  18000. /**
  18001. * Observer class that is attached to each observed
  18002. * object. Once attached, the observer converts the target
  18003. * object's property keys into getter/setters that
  18004. * collect dependencies and dispatch updates.
  18005. */
  18006. var Observer = function Observer (value) {
  18007. this.value = value;
  18008. this.dep = new Dep();
  18009. this.vmCount = 0;
  18010. def(value, '__ob__', this);
  18011. if (Array.isArray(value)) {
  18012. if (hasProto) {
  18013. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  18014. if(value.push !== value.__proto__.push){
  18015. copyAugment(value, arrayMethods, arrayKeys);
  18016. } else {
  18017. protoAugment(value, arrayMethods);
  18018. }
  18019. }
  18020. } else {
  18021. copyAugment(value, arrayMethods, arrayKeys);
  18022. }
  18023. this.observeArray(value);
  18024. } else {
  18025. this.walk(value);
  18026. }
  18027. };
  18028. /**
  18029. * Walk through all properties and convert them into
  18030. * getter/setters. This method should only be called when
  18031. * value type is Object.
  18032. */
  18033. Observer.prototype.walk = function walk (obj) {
  18034. var keys = Object.keys(obj);
  18035. for (var i = 0; i < keys.length; i++) {
  18036. defineReactive$$1(obj, keys[i]);
  18037. }
  18038. };
  18039. /**
  18040. * Observe a list of Array items.
  18041. */
  18042. Observer.prototype.observeArray = function observeArray (items) {
  18043. for (var i = 0, l = items.length; i < l; i++) {
  18044. observe(items[i]);
  18045. }
  18046. };
  18047. // helpers
  18048. /**
  18049. * Augment a target Object or Array by intercepting
  18050. * the prototype chain using __proto__
  18051. */
  18052. function protoAugment (target, src) {
  18053. /* eslint-disable no-proto */
  18054. target.__proto__ = src;
  18055. /* eslint-enable no-proto */
  18056. }
  18057. /**
  18058. * Augment a target Object or Array by defining
  18059. * hidden properties.
  18060. */
  18061. /* istanbul ignore next */
  18062. function copyAugment (target, src, keys) {
  18063. for (var i = 0, l = keys.length; i < l; i++) {
  18064. var key = keys[i];
  18065. def(target, key, src[key]);
  18066. }
  18067. }
  18068. /**
  18069. * Attempt to create an observer instance for a value,
  18070. * returns the new observer if successfully observed,
  18071. * or the existing observer if the value already has one.
  18072. */
  18073. function observe (value, asRootData) {
  18074. if (!isObject(value) || value instanceof VNode) {
  18075. return
  18076. }
  18077. var ob;
  18078. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  18079. ob = value.__ob__;
  18080. } else if (
  18081. shouldObserve &&
  18082. !isServerRendering() &&
  18083. (Array.isArray(value) || isPlainObject(value)) &&
  18084. Object.isExtensible(value) &&
  18085. !value._isVue &&
  18086. !value.__v_isMPComponent
  18087. ) {
  18088. ob = new Observer(value);
  18089. }
  18090. if (asRootData && ob) {
  18091. ob.vmCount++;
  18092. }
  18093. return ob
  18094. }
  18095. /**
  18096. * Define a reactive property on an Object.
  18097. */
  18098. function defineReactive$$1 (
  18099. obj,
  18100. key,
  18101. val,
  18102. customSetter,
  18103. shallow
  18104. ) {
  18105. var dep = new Dep();
  18106. var property = Object.getOwnPropertyDescriptor(obj, key);
  18107. if (property && property.configurable === false) {
  18108. return
  18109. }
  18110. // cater for pre-defined getter/setters
  18111. var getter = property && property.get;
  18112. var setter = property && property.set;
  18113. if ((!getter || setter) && arguments.length === 2) {
  18114. val = obj[key];
  18115. }
  18116. var childOb = !shallow && observe(val);
  18117. Object.defineProperty(obj, key, {
  18118. enumerable: true,
  18119. configurable: true,
  18120. get: function reactiveGetter () {
  18121. var value = getter ? getter.call(obj) : val;
  18122. if (Dep.SharedObject.target) { // fixed by xxxxxx
  18123. dep.depend();
  18124. if (childOb) {
  18125. childOb.dep.depend();
  18126. if (Array.isArray(value)) {
  18127. dependArray(value);
  18128. }
  18129. }
  18130. }
  18131. return value
  18132. },
  18133. set: function reactiveSetter (newVal) {
  18134. var value = getter ? getter.call(obj) : val;
  18135. /* eslint-disable no-self-compare */
  18136. if (newVal === value || (newVal !== newVal && value !== value)) {
  18137. return
  18138. }
  18139. /* eslint-enable no-self-compare */
  18140. if ( true && customSetter) {
  18141. customSetter();
  18142. }
  18143. // #7981: for accessor properties without setter
  18144. if (getter && !setter) { return }
  18145. if (setter) {
  18146. setter.call(obj, newVal);
  18147. } else {
  18148. val = newVal;
  18149. }
  18150. childOb = !shallow && observe(newVal);
  18151. dep.notify();
  18152. }
  18153. });
  18154. }
  18155. /**
  18156. * Set a property on an object. Adds the new property and
  18157. * triggers change notification if the property doesn't
  18158. * already exist.
  18159. */
  18160. function set (target, key, val) {
  18161. if ( true &&
  18162. (isUndef(target) || isPrimitive(target))
  18163. ) {
  18164. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  18165. }
  18166. if (Array.isArray(target) && isValidArrayIndex(key)) {
  18167. target.length = Math.max(target.length, key);
  18168. target.splice(key, 1, val);
  18169. return val
  18170. }
  18171. if (key in target && !(key in Object.prototype)) {
  18172. target[key] = val;
  18173. return val
  18174. }
  18175. var ob = (target).__ob__;
  18176. if (target._isVue || (ob && ob.vmCount)) {
  18177. true && warn(
  18178. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  18179. 'at runtime - declare it upfront in the data option.'
  18180. );
  18181. return val
  18182. }
  18183. if (!ob) {
  18184. target[key] = val;
  18185. return val
  18186. }
  18187. defineReactive$$1(ob.value, key, val);
  18188. ob.dep.notify();
  18189. return val
  18190. }
  18191. /**
  18192. * Delete a property and trigger change if necessary.
  18193. */
  18194. function del (target, key) {
  18195. if ( true &&
  18196. (isUndef(target) || isPrimitive(target))
  18197. ) {
  18198. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  18199. }
  18200. if (Array.isArray(target) && isValidArrayIndex(key)) {
  18201. target.splice(key, 1);
  18202. return
  18203. }
  18204. var ob = (target).__ob__;
  18205. if (target._isVue || (ob && ob.vmCount)) {
  18206. true && warn(
  18207. 'Avoid deleting properties on a Vue instance or its root $data ' +
  18208. '- just set it to null.'
  18209. );
  18210. return
  18211. }
  18212. if (!hasOwn(target, key)) {
  18213. return
  18214. }
  18215. delete target[key];
  18216. if (!ob) {
  18217. return
  18218. }
  18219. ob.dep.notify();
  18220. }
  18221. /**
  18222. * Collect dependencies on array elements when the array is touched, since
  18223. * we cannot intercept array element access like property getters.
  18224. */
  18225. function dependArray (value) {
  18226. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  18227. e = value[i];
  18228. e && e.__ob__ && e.__ob__.dep.depend();
  18229. if (Array.isArray(e)) {
  18230. dependArray(e);
  18231. }
  18232. }
  18233. }
  18234. /* */
  18235. /**
  18236. * Option overwriting strategies are functions that handle
  18237. * how to merge a parent option value and a child option
  18238. * value into the final value.
  18239. */
  18240. var strats = config.optionMergeStrategies;
  18241. /**
  18242. * Options with restrictions
  18243. */
  18244. if (true) {
  18245. strats.el = strats.propsData = function (parent, child, vm, key) {
  18246. if (!vm) {
  18247. warn(
  18248. "option \"" + key + "\" can only be used during instance " +
  18249. 'creation with the `new` keyword.'
  18250. );
  18251. }
  18252. return defaultStrat(parent, child)
  18253. };
  18254. }
  18255. /**
  18256. * Helper that recursively merges two data objects together.
  18257. */
  18258. function mergeData (to, from) {
  18259. if (!from) { return to }
  18260. var key, toVal, fromVal;
  18261. var keys = hasSymbol
  18262. ? Reflect.ownKeys(from)
  18263. : Object.keys(from);
  18264. for (var i = 0; i < keys.length; i++) {
  18265. key = keys[i];
  18266. // in case the object is already observed...
  18267. if (key === '__ob__') { continue }
  18268. toVal = to[key];
  18269. fromVal = from[key];
  18270. if (!hasOwn(to, key)) {
  18271. set(to, key, fromVal);
  18272. } else if (
  18273. toVal !== fromVal &&
  18274. isPlainObject(toVal) &&
  18275. isPlainObject(fromVal)
  18276. ) {
  18277. mergeData(toVal, fromVal);
  18278. }
  18279. }
  18280. return to
  18281. }
  18282. /**
  18283. * Data
  18284. */
  18285. function mergeDataOrFn (
  18286. parentVal,
  18287. childVal,
  18288. vm
  18289. ) {
  18290. if (!vm) {
  18291. // in a Vue.extend merge, both should be functions
  18292. if (!childVal) {
  18293. return parentVal
  18294. }
  18295. if (!parentVal) {
  18296. return childVal
  18297. }
  18298. // when parentVal & childVal are both present,
  18299. // we need to return a function that returns the
  18300. // merged result of both functions... no need to
  18301. // check if parentVal is a function here because
  18302. // it has to be a function to pass previous merges.
  18303. return function mergedDataFn () {
  18304. return mergeData(
  18305. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  18306. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  18307. )
  18308. }
  18309. } else {
  18310. return function mergedInstanceDataFn () {
  18311. // instance merge
  18312. var instanceData = typeof childVal === 'function'
  18313. ? childVal.call(vm, vm)
  18314. : childVal;
  18315. var defaultData = typeof parentVal === 'function'
  18316. ? parentVal.call(vm, vm)
  18317. : parentVal;
  18318. if (instanceData) {
  18319. return mergeData(instanceData, defaultData)
  18320. } else {
  18321. return defaultData
  18322. }
  18323. }
  18324. }
  18325. }
  18326. strats.data = function (
  18327. parentVal,
  18328. childVal,
  18329. vm
  18330. ) {
  18331. if (!vm) {
  18332. if (childVal && typeof childVal !== 'function') {
  18333. true && warn(
  18334. 'The "data" option should be a function ' +
  18335. 'that returns a per-instance value in component ' +
  18336. 'definitions.',
  18337. vm
  18338. );
  18339. return parentVal
  18340. }
  18341. return mergeDataOrFn(parentVal, childVal)
  18342. }
  18343. return mergeDataOrFn(parentVal, childVal, vm)
  18344. };
  18345. /**
  18346. * Hooks and props are merged as arrays.
  18347. */
  18348. function mergeHook (
  18349. parentVal,
  18350. childVal
  18351. ) {
  18352. var res = childVal
  18353. ? parentVal
  18354. ? parentVal.concat(childVal)
  18355. : Array.isArray(childVal)
  18356. ? childVal
  18357. : [childVal]
  18358. : parentVal;
  18359. return res
  18360. ? dedupeHooks(res)
  18361. : res
  18362. }
  18363. function dedupeHooks (hooks) {
  18364. var res = [];
  18365. for (var i = 0; i < hooks.length; i++) {
  18366. if (res.indexOf(hooks[i]) === -1) {
  18367. res.push(hooks[i]);
  18368. }
  18369. }
  18370. return res
  18371. }
  18372. LIFECYCLE_HOOKS.forEach(function (hook) {
  18373. strats[hook] = mergeHook;
  18374. });
  18375. /**
  18376. * Assets
  18377. *
  18378. * When a vm is present (instance creation), we need to do
  18379. * a three-way merge between constructor options, instance
  18380. * options and parent options.
  18381. */
  18382. function mergeAssets (
  18383. parentVal,
  18384. childVal,
  18385. vm,
  18386. key
  18387. ) {
  18388. var res = Object.create(parentVal || null);
  18389. if (childVal) {
  18390. true && assertObjectType(key, childVal, vm);
  18391. return extend(res, childVal)
  18392. } else {
  18393. return res
  18394. }
  18395. }
  18396. ASSET_TYPES.forEach(function (type) {
  18397. strats[type + 's'] = mergeAssets;
  18398. });
  18399. /**
  18400. * Watchers.
  18401. *
  18402. * Watchers hashes should not overwrite one
  18403. * another, so we merge them as arrays.
  18404. */
  18405. strats.watch = function (
  18406. parentVal,
  18407. childVal,
  18408. vm,
  18409. key
  18410. ) {
  18411. // work around Firefox's Object.prototype.watch...
  18412. if (parentVal === nativeWatch) { parentVal = undefined; }
  18413. if (childVal === nativeWatch) { childVal = undefined; }
  18414. /* istanbul ignore if */
  18415. if (!childVal) { return Object.create(parentVal || null) }
  18416. if (true) {
  18417. assertObjectType(key, childVal, vm);
  18418. }
  18419. if (!parentVal) { return childVal }
  18420. var ret = {};
  18421. extend(ret, parentVal);
  18422. for (var key$1 in childVal) {
  18423. var parent = ret[key$1];
  18424. var child = childVal[key$1];
  18425. if (parent && !Array.isArray(parent)) {
  18426. parent = [parent];
  18427. }
  18428. ret[key$1] = parent
  18429. ? parent.concat(child)
  18430. : Array.isArray(child) ? child : [child];
  18431. }
  18432. return ret
  18433. };
  18434. /**
  18435. * Other object hashes.
  18436. */
  18437. strats.props =
  18438. strats.methods =
  18439. strats.inject =
  18440. strats.computed = function (
  18441. parentVal,
  18442. childVal,
  18443. vm,
  18444. key
  18445. ) {
  18446. if (childVal && "development" !== 'production') {
  18447. assertObjectType(key, childVal, vm);
  18448. }
  18449. if (!parentVal) { return childVal }
  18450. var ret = Object.create(null);
  18451. extend(ret, parentVal);
  18452. if (childVal) { extend(ret, childVal); }
  18453. return ret
  18454. };
  18455. strats.provide = mergeDataOrFn;
  18456. /**
  18457. * Default strategy.
  18458. */
  18459. var defaultStrat = function (parentVal, childVal) {
  18460. return childVal === undefined
  18461. ? parentVal
  18462. : childVal
  18463. };
  18464. /**
  18465. * Validate component names
  18466. */
  18467. function checkComponents (options) {
  18468. for (var key in options.components) {
  18469. validateComponentName(key);
  18470. }
  18471. }
  18472. function validateComponentName (name) {
  18473. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  18474. warn(
  18475. 'Invalid component name: "' + name + '". Component names ' +
  18476. 'should conform to valid custom element name in html5 specification.'
  18477. );
  18478. }
  18479. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  18480. warn(
  18481. 'Do not use built-in or reserved HTML elements as component ' +
  18482. 'id: ' + name
  18483. );
  18484. }
  18485. }
  18486. /**
  18487. * Ensure all props option syntax are normalized into the
  18488. * Object-based format.
  18489. */
  18490. function normalizeProps (options, vm) {
  18491. var props = options.props;
  18492. if (!props) { return }
  18493. var res = {};
  18494. var i, val, name;
  18495. if (Array.isArray(props)) {
  18496. i = props.length;
  18497. while (i--) {
  18498. val = props[i];
  18499. if (typeof val === 'string') {
  18500. name = camelize(val);
  18501. res[name] = { type: null };
  18502. } else if (true) {
  18503. warn('props must be strings when using array syntax.');
  18504. }
  18505. }
  18506. } else if (isPlainObject(props)) {
  18507. for (var key in props) {
  18508. val = props[key];
  18509. name = camelize(key);
  18510. res[name] = isPlainObject(val)
  18511. ? val
  18512. : { type: val };
  18513. }
  18514. } else if (true) {
  18515. warn(
  18516. "Invalid value for option \"props\": expected an Array or an Object, " +
  18517. "but got " + (toRawType(props)) + ".",
  18518. vm
  18519. );
  18520. }
  18521. options.props = res;
  18522. }
  18523. /**
  18524. * Normalize all injections into Object-based format
  18525. */
  18526. function normalizeInject (options, vm) {
  18527. var inject = options.inject;
  18528. if (!inject) { return }
  18529. var normalized = options.inject = {};
  18530. if (Array.isArray(inject)) {
  18531. for (var i = 0; i < inject.length; i++) {
  18532. normalized[inject[i]] = { from: inject[i] };
  18533. }
  18534. } else if (isPlainObject(inject)) {
  18535. for (var key in inject) {
  18536. var val = inject[key];
  18537. normalized[key] = isPlainObject(val)
  18538. ? extend({ from: key }, val)
  18539. : { from: val };
  18540. }
  18541. } else if (true) {
  18542. warn(
  18543. "Invalid value for option \"inject\": expected an Array or an Object, " +
  18544. "but got " + (toRawType(inject)) + ".",
  18545. vm
  18546. );
  18547. }
  18548. }
  18549. /**
  18550. * Normalize raw function directives into object format.
  18551. */
  18552. function normalizeDirectives (options) {
  18553. var dirs = options.directives;
  18554. if (dirs) {
  18555. for (var key in dirs) {
  18556. var def$$1 = dirs[key];
  18557. if (typeof def$$1 === 'function') {
  18558. dirs[key] = { bind: def$$1, update: def$$1 };
  18559. }
  18560. }
  18561. }
  18562. }
  18563. function assertObjectType (name, value, vm) {
  18564. if (!isPlainObject(value)) {
  18565. warn(
  18566. "Invalid value for option \"" + name + "\": expected an Object, " +
  18567. "but got " + (toRawType(value)) + ".",
  18568. vm
  18569. );
  18570. }
  18571. }
  18572. /**
  18573. * Merge two option objects into a new one.
  18574. * Core utility used in both instantiation and inheritance.
  18575. */
  18576. function mergeOptions (
  18577. parent,
  18578. child,
  18579. vm
  18580. ) {
  18581. if (true) {
  18582. checkComponents(child);
  18583. }
  18584. if (typeof child === 'function') {
  18585. child = child.options;
  18586. }
  18587. normalizeProps(child, vm);
  18588. normalizeInject(child, vm);
  18589. normalizeDirectives(child);
  18590. // Apply extends and mixins on the child options,
  18591. // but only if it is a raw options object that isn't
  18592. // the result of another mergeOptions call.
  18593. // Only merged options has the _base property.
  18594. if (!child._base) {
  18595. if (child.extends) {
  18596. parent = mergeOptions(parent, child.extends, vm);
  18597. }
  18598. if (child.mixins) {
  18599. for (var i = 0, l = child.mixins.length; i < l; i++) {
  18600. parent = mergeOptions(parent, child.mixins[i], vm);
  18601. }
  18602. }
  18603. }
  18604. var options = {};
  18605. var key;
  18606. for (key in parent) {
  18607. mergeField(key);
  18608. }
  18609. for (key in child) {
  18610. if (!hasOwn(parent, key)) {
  18611. mergeField(key);
  18612. }
  18613. }
  18614. function mergeField (key) {
  18615. var strat = strats[key] || defaultStrat;
  18616. options[key] = strat(parent[key], child[key], vm, key);
  18617. }
  18618. return options
  18619. }
  18620. /**
  18621. * Resolve an asset.
  18622. * This function is used because child instances need access
  18623. * to assets defined in its ancestor chain.
  18624. */
  18625. function resolveAsset (
  18626. options,
  18627. type,
  18628. id,
  18629. warnMissing
  18630. ) {
  18631. /* istanbul ignore if */
  18632. if (typeof id !== 'string') {
  18633. return
  18634. }
  18635. var assets = options[type];
  18636. // check local registration variations first
  18637. if (hasOwn(assets, id)) { return assets[id] }
  18638. var camelizedId = camelize(id);
  18639. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  18640. var PascalCaseId = capitalize(camelizedId);
  18641. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  18642. // fallback to prototype chain
  18643. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  18644. if ( true && warnMissing && !res) {
  18645. warn(
  18646. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  18647. options
  18648. );
  18649. }
  18650. return res
  18651. }
  18652. /* */
  18653. function validateProp (
  18654. key,
  18655. propOptions,
  18656. propsData,
  18657. vm
  18658. ) {
  18659. var prop = propOptions[key];
  18660. var absent = !hasOwn(propsData, key);
  18661. var value = propsData[key];
  18662. // boolean casting
  18663. var booleanIndex = getTypeIndex(Boolean, prop.type);
  18664. if (booleanIndex > -1) {
  18665. if (absent && !hasOwn(prop, 'default')) {
  18666. value = false;
  18667. } else if (value === '' || value === hyphenate(key)) {
  18668. // only cast empty string / same name to boolean if
  18669. // boolean has higher priority
  18670. var stringIndex = getTypeIndex(String, prop.type);
  18671. if (stringIndex < 0 || booleanIndex < stringIndex) {
  18672. value = true;
  18673. }
  18674. }
  18675. }
  18676. // check default value
  18677. if (value === undefined) {
  18678. value = getPropDefaultValue(vm, prop, key);
  18679. // since the default value is a fresh copy,
  18680. // make sure to observe it.
  18681. var prevShouldObserve = shouldObserve;
  18682. toggleObserving(true);
  18683. observe(value);
  18684. toggleObserving(prevShouldObserve);
  18685. }
  18686. if (
  18687. true
  18688. ) {
  18689. assertProp(prop, key, value, vm, absent);
  18690. }
  18691. return value
  18692. }
  18693. /**
  18694. * Get the default value of a prop.
  18695. */
  18696. function getPropDefaultValue (vm, prop, key) {
  18697. // no default, return undefined
  18698. if (!hasOwn(prop, 'default')) {
  18699. return undefined
  18700. }
  18701. var def = prop.default;
  18702. // warn against non-factory defaults for Object & Array
  18703. if ( true && isObject(def)) {
  18704. warn(
  18705. 'Invalid default value for prop "' + key + '": ' +
  18706. 'Props with type Object/Array must use a factory function ' +
  18707. 'to return the default value.',
  18708. vm
  18709. );
  18710. }
  18711. // the raw prop value was also undefined from previous render,
  18712. // return previous default value to avoid unnecessary watcher trigger
  18713. if (vm && vm.$options.propsData &&
  18714. vm.$options.propsData[key] === undefined &&
  18715. vm._props[key] !== undefined
  18716. ) {
  18717. return vm._props[key]
  18718. }
  18719. // call factory function for non-Function types
  18720. // a value is Function if its prototype is function even across different execution context
  18721. return typeof def === 'function' && getType(prop.type) !== 'Function'
  18722. ? def.call(vm)
  18723. : def
  18724. }
  18725. /**
  18726. * Assert whether a prop is valid.
  18727. */
  18728. function assertProp (
  18729. prop,
  18730. name,
  18731. value,
  18732. vm,
  18733. absent
  18734. ) {
  18735. if (prop.required && absent) {
  18736. warn(
  18737. 'Missing required prop: "' + name + '"',
  18738. vm
  18739. );
  18740. return
  18741. }
  18742. if (value == null && !prop.required) {
  18743. return
  18744. }
  18745. var type = prop.type;
  18746. var valid = !type || type === true;
  18747. var expectedTypes = [];
  18748. if (type) {
  18749. if (!Array.isArray(type)) {
  18750. type = [type];
  18751. }
  18752. for (var i = 0; i < type.length && !valid; i++) {
  18753. var assertedType = assertType(value, type[i]);
  18754. expectedTypes.push(assertedType.expectedType || '');
  18755. valid = assertedType.valid;
  18756. }
  18757. }
  18758. if (!valid) {
  18759. warn(
  18760. getInvalidTypeMessage(name, value, expectedTypes),
  18761. vm
  18762. );
  18763. return
  18764. }
  18765. var validator = prop.validator;
  18766. if (validator) {
  18767. if (!validator(value)) {
  18768. warn(
  18769. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  18770. vm
  18771. );
  18772. }
  18773. }
  18774. }
  18775. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  18776. function assertType (value, type) {
  18777. var valid;
  18778. var expectedType = getType(type);
  18779. if (simpleCheckRE.test(expectedType)) {
  18780. var t = typeof value;
  18781. valid = t === expectedType.toLowerCase();
  18782. // for primitive wrapper objects
  18783. if (!valid && t === 'object') {
  18784. valid = value instanceof type;
  18785. }
  18786. } else if (expectedType === 'Object') {
  18787. valid = isPlainObject(value);
  18788. } else if (expectedType === 'Array') {
  18789. valid = Array.isArray(value);
  18790. } else {
  18791. valid = value instanceof type;
  18792. }
  18793. return {
  18794. valid: valid,
  18795. expectedType: expectedType
  18796. }
  18797. }
  18798. /**
  18799. * Use function string name to check built-in types,
  18800. * because a simple equality check will fail when running
  18801. * across different vms / iframes.
  18802. */
  18803. function getType (fn) {
  18804. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  18805. return match ? match[1] : ''
  18806. }
  18807. function isSameType (a, b) {
  18808. return getType(a) === getType(b)
  18809. }
  18810. function getTypeIndex (type, expectedTypes) {
  18811. if (!Array.isArray(expectedTypes)) {
  18812. return isSameType(expectedTypes, type) ? 0 : -1
  18813. }
  18814. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  18815. if (isSameType(expectedTypes[i], type)) {
  18816. return i
  18817. }
  18818. }
  18819. return -1
  18820. }
  18821. function getInvalidTypeMessage (name, value, expectedTypes) {
  18822. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  18823. " Expected " + (expectedTypes.map(capitalize).join(', '));
  18824. var expectedType = expectedTypes[0];
  18825. var receivedType = toRawType(value);
  18826. var expectedValue = styleValue(value, expectedType);
  18827. var receivedValue = styleValue(value, receivedType);
  18828. // check if we need to specify expected value
  18829. if (expectedTypes.length === 1 &&
  18830. isExplicable(expectedType) &&
  18831. !isBoolean(expectedType, receivedType)) {
  18832. message += " with value " + expectedValue;
  18833. }
  18834. message += ", got " + receivedType + " ";
  18835. // check if we need to specify received value
  18836. if (isExplicable(receivedType)) {
  18837. message += "with value " + receivedValue + ".";
  18838. }
  18839. return message
  18840. }
  18841. function styleValue (value, type) {
  18842. if (type === 'String') {
  18843. return ("\"" + value + "\"")
  18844. } else if (type === 'Number') {
  18845. return ("" + (Number(value)))
  18846. } else {
  18847. return ("" + value)
  18848. }
  18849. }
  18850. function isExplicable (value) {
  18851. var explicitTypes = ['string', 'number', 'boolean'];
  18852. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  18853. }
  18854. function isBoolean () {
  18855. var args = [], len = arguments.length;
  18856. while ( len-- ) args[ len ] = arguments[ len ];
  18857. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  18858. }
  18859. /* */
  18860. function handleError (err, vm, info) {
  18861. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  18862. // See: https://github.com/vuejs/vuex/issues/1505
  18863. pushTarget();
  18864. try {
  18865. if (vm) {
  18866. var cur = vm;
  18867. while ((cur = cur.$parent)) {
  18868. var hooks = cur.$options.errorCaptured;
  18869. if (hooks) {
  18870. for (var i = 0; i < hooks.length; i++) {
  18871. try {
  18872. var capture = hooks[i].call(cur, err, vm, info) === false;
  18873. if (capture) { return }
  18874. } catch (e) {
  18875. globalHandleError(e, cur, 'errorCaptured hook');
  18876. }
  18877. }
  18878. }
  18879. }
  18880. }
  18881. globalHandleError(err, vm, info);
  18882. } finally {
  18883. popTarget();
  18884. }
  18885. }
  18886. function invokeWithErrorHandling (
  18887. handler,
  18888. context,
  18889. args,
  18890. vm,
  18891. info
  18892. ) {
  18893. var res;
  18894. try {
  18895. res = args ? handler.apply(context, args) : handler.call(context);
  18896. if (res && !res._isVue && isPromise(res) && !res._handled) {
  18897. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  18898. // issue #9511
  18899. // avoid catch triggering multiple times when nested calls
  18900. res._handled = true;
  18901. }
  18902. } catch (e) {
  18903. handleError(e, vm, info);
  18904. }
  18905. return res
  18906. }
  18907. function globalHandleError (err, vm, info) {
  18908. if (config.errorHandler) {
  18909. try {
  18910. return config.errorHandler.call(null, err, vm, info)
  18911. } catch (e) {
  18912. // if the user intentionally throws the original error in the handler,
  18913. // do not log it twice
  18914. if (e !== err) {
  18915. logError(e, null, 'config.errorHandler');
  18916. }
  18917. }
  18918. }
  18919. logError(err, vm, info);
  18920. }
  18921. function logError (err, vm, info) {
  18922. if (true) {
  18923. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  18924. }
  18925. /* istanbul ignore else */
  18926. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  18927. console.error(err);
  18928. } else {
  18929. throw err
  18930. }
  18931. }
  18932. /* */
  18933. var callbacks = [];
  18934. var pending = false;
  18935. function flushCallbacks () {
  18936. pending = false;
  18937. var copies = callbacks.slice(0);
  18938. callbacks.length = 0;
  18939. for (var i = 0; i < copies.length; i++) {
  18940. copies[i]();
  18941. }
  18942. }
  18943. // Here we have async deferring wrappers using microtasks.
  18944. // In 2.5 we used (macro) tasks (in combination with microtasks).
  18945. // However, it has subtle problems when state is changed right before repaint
  18946. // (e.g. #6813, out-in transitions).
  18947. // Also, using (macro) tasks in event handler would cause some weird behaviors
  18948. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  18949. // So we now use microtasks everywhere, again.
  18950. // A major drawback of this tradeoff is that there are some scenarios
  18951. // where microtasks have too high a priority and fire in between supposedly
  18952. // sequential events (e.g. #4521, #6690, which have workarounds)
  18953. // or even between bubbling of the same event (#6566).
  18954. var timerFunc;
  18955. // The nextTick behavior leverages the microtask queue, which can be accessed
  18956. // via either native Promise.then or MutationObserver.
  18957. // MutationObserver has wider support, however it is seriously bugged in
  18958. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  18959. // completely stops working after triggering a few times... so, if native
  18960. // Promise is available, we will use it:
  18961. /* istanbul ignore next, $flow-disable-line */
  18962. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  18963. var p = Promise.resolve();
  18964. timerFunc = function () {
  18965. p.then(flushCallbacks);
  18966. // In problematic UIWebViews, Promise.then doesn't completely break, but
  18967. // it can get stuck in a weird state where callbacks are pushed into the
  18968. // microtask queue but the queue isn't being flushed, until the browser
  18969. // needs to do some other work, e.g. handle a timer. Therefore we can
  18970. // "force" the microtask queue to be flushed by adding an empty timer.
  18971. if (isIOS) { setTimeout(noop); }
  18972. };
  18973. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  18974. isNative(MutationObserver) ||
  18975. // PhantomJS and iOS 7.x
  18976. MutationObserver.toString() === '[object MutationObserverConstructor]'
  18977. )) {
  18978. // Use MutationObserver where native Promise is not available,
  18979. // e.g. PhantomJS, iOS7, Android 4.4
  18980. // (#6466 MutationObserver is unreliable in IE11)
  18981. var counter = 1;
  18982. var observer = new MutationObserver(flushCallbacks);
  18983. var textNode = document.createTextNode(String(counter));
  18984. observer.observe(textNode, {
  18985. characterData: true
  18986. });
  18987. timerFunc = function () {
  18988. counter = (counter + 1) % 2;
  18989. textNode.data = String(counter);
  18990. };
  18991. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  18992. // Fallback to setImmediate.
  18993. // Technically it leverages the (macro) task queue,
  18994. // but it is still a better choice than setTimeout.
  18995. timerFunc = function () {
  18996. setImmediate(flushCallbacks);
  18997. };
  18998. } else {
  18999. // Fallback to setTimeout.
  19000. timerFunc = function () {
  19001. setTimeout(flushCallbacks, 0);
  19002. };
  19003. }
  19004. function nextTick (cb, ctx) {
  19005. var _resolve;
  19006. callbacks.push(function () {
  19007. if (cb) {
  19008. try {
  19009. cb.call(ctx);
  19010. } catch (e) {
  19011. handleError(e, ctx, 'nextTick');
  19012. }
  19013. } else if (_resolve) {
  19014. _resolve(ctx);
  19015. }
  19016. });
  19017. if (!pending) {
  19018. pending = true;
  19019. timerFunc();
  19020. }
  19021. // $flow-disable-line
  19022. if (!cb && typeof Promise !== 'undefined') {
  19023. return new Promise(function (resolve) {
  19024. _resolve = resolve;
  19025. })
  19026. }
  19027. }
  19028. /* */
  19029. /* not type checking this file because flow doesn't play well with Proxy */
  19030. var initProxy;
  19031. if (true) {
  19032. var allowedGlobals = makeMap(
  19033. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  19034. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  19035. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  19036. 'require' // for Webpack/Browserify
  19037. );
  19038. var warnNonPresent = function (target, key) {
  19039. warn(
  19040. "Property or method \"" + key + "\" is not defined on the instance but " +
  19041. 'referenced during render. Make sure that this property is reactive, ' +
  19042. 'either in the data option, or for class-based components, by ' +
  19043. 'initializing the property. ' +
  19044. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  19045. target
  19046. );
  19047. };
  19048. var warnReservedPrefix = function (target, key) {
  19049. warn(
  19050. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  19051. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  19052. 'prevent conflicts with Vue internals. ' +
  19053. 'See: https://vuejs.org/v2/api/#data',
  19054. target
  19055. );
  19056. };
  19057. var hasProxy =
  19058. typeof Proxy !== 'undefined' && isNative(Proxy);
  19059. if (hasProxy) {
  19060. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  19061. config.keyCodes = new Proxy(config.keyCodes, {
  19062. set: function set (target, key, value) {
  19063. if (isBuiltInModifier(key)) {
  19064. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  19065. return false
  19066. } else {
  19067. target[key] = value;
  19068. return true
  19069. }
  19070. }
  19071. });
  19072. }
  19073. var hasHandler = {
  19074. has: function has (target, key) {
  19075. var has = key in target;
  19076. var isAllowed = allowedGlobals(key) ||
  19077. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  19078. if (!has && !isAllowed) {
  19079. if (key in target.$data) { warnReservedPrefix(target, key); }
  19080. else { warnNonPresent(target, key); }
  19081. }
  19082. return has || !isAllowed
  19083. }
  19084. };
  19085. var getHandler = {
  19086. get: function get (target, key) {
  19087. if (typeof key === 'string' && !(key in target)) {
  19088. if (key in target.$data) { warnReservedPrefix(target, key); }
  19089. else { warnNonPresent(target, key); }
  19090. }
  19091. return target[key]
  19092. }
  19093. };
  19094. initProxy = function initProxy (vm) {
  19095. if (hasProxy) {
  19096. // determine which proxy handler to use
  19097. var options = vm.$options;
  19098. var handlers = options.render && options.render._withStripped
  19099. ? getHandler
  19100. : hasHandler;
  19101. vm._renderProxy = new Proxy(vm, handlers);
  19102. } else {
  19103. vm._renderProxy = vm;
  19104. }
  19105. };
  19106. }
  19107. /* */
  19108. var seenObjects = new _Set();
  19109. /**
  19110. * Recursively traverse an object to evoke all converted
  19111. * getters, so that every nested property inside the object
  19112. * is collected as a "deep" dependency.
  19113. */
  19114. function traverse (val) {
  19115. _traverse(val, seenObjects);
  19116. seenObjects.clear();
  19117. }
  19118. function _traverse (val, seen) {
  19119. var i, keys;
  19120. var isA = Array.isArray(val);
  19121. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  19122. return
  19123. }
  19124. if (val.__ob__) {
  19125. var depId = val.__ob__.dep.id;
  19126. if (seen.has(depId)) {
  19127. return
  19128. }
  19129. seen.add(depId);
  19130. }
  19131. if (isA) {
  19132. i = val.length;
  19133. while (i--) { _traverse(val[i], seen); }
  19134. } else {
  19135. keys = Object.keys(val);
  19136. i = keys.length;
  19137. while (i--) { _traverse(val[keys[i]], seen); }
  19138. }
  19139. }
  19140. var mark;
  19141. var measure;
  19142. if (true) {
  19143. var perf = inBrowser && window.performance;
  19144. /* istanbul ignore if */
  19145. if (
  19146. perf &&
  19147. perf.mark &&
  19148. perf.measure &&
  19149. perf.clearMarks &&
  19150. perf.clearMeasures
  19151. ) {
  19152. mark = function (tag) { return perf.mark(tag); };
  19153. measure = function (name, startTag, endTag) {
  19154. perf.measure(name, startTag, endTag);
  19155. perf.clearMarks(startTag);
  19156. perf.clearMarks(endTag);
  19157. // perf.clearMeasures(name)
  19158. };
  19159. }
  19160. }
  19161. /* */
  19162. var normalizeEvent = cached(function (name) {
  19163. var passive = name.charAt(0) === '&';
  19164. name = passive ? name.slice(1) : name;
  19165. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  19166. name = once$$1 ? name.slice(1) : name;
  19167. var capture = name.charAt(0) === '!';
  19168. name = capture ? name.slice(1) : name;
  19169. return {
  19170. name: name,
  19171. once: once$$1,
  19172. capture: capture,
  19173. passive: passive
  19174. }
  19175. });
  19176. function createFnInvoker (fns, vm) {
  19177. function invoker () {
  19178. var arguments$1 = arguments;
  19179. var fns = invoker.fns;
  19180. if (Array.isArray(fns)) {
  19181. var cloned = fns.slice();
  19182. for (var i = 0; i < cloned.length; i++) {
  19183. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  19184. }
  19185. } else {
  19186. // return handler return value for single handlers
  19187. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  19188. }
  19189. }
  19190. invoker.fns = fns;
  19191. return invoker
  19192. }
  19193. function updateListeners (
  19194. on,
  19195. oldOn,
  19196. add,
  19197. remove$$1,
  19198. createOnceHandler,
  19199. vm
  19200. ) {
  19201. var name, def$$1, cur, old, event;
  19202. for (name in on) {
  19203. def$$1 = cur = on[name];
  19204. old = oldOn[name];
  19205. event = normalizeEvent(name);
  19206. if (isUndef(cur)) {
  19207. true && warn(
  19208. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  19209. vm
  19210. );
  19211. } else if (isUndef(old)) {
  19212. if (isUndef(cur.fns)) {
  19213. cur = on[name] = createFnInvoker(cur, vm);
  19214. }
  19215. if (isTrue(event.once)) {
  19216. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  19217. }
  19218. add(event.name, cur, event.capture, event.passive, event.params);
  19219. } else if (cur !== old) {
  19220. old.fns = cur;
  19221. on[name] = old;
  19222. }
  19223. }
  19224. for (name in oldOn) {
  19225. if (isUndef(on[name])) {
  19226. event = normalizeEvent(name);
  19227. remove$$1(event.name, oldOn[name], event.capture);
  19228. }
  19229. }
  19230. }
  19231. /* */
  19232. /* */
  19233. // fixed by xxxxxx (mp properties)
  19234. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  19235. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  19236. if (isUndef(propOptions)) {
  19237. return res
  19238. }
  19239. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  19240. var attrs = data.attrs;
  19241. var props = data.props;
  19242. if (isDef(attrs) || isDef(props)) {
  19243. for (var key in propOptions) {
  19244. var altKey = hyphenate(key);
  19245. var result = checkProp(res, props, key, altKey, true) ||
  19246. checkProp(res, attrs, key, altKey, false);
  19247. // externalClass
  19248. if (
  19249. result &&
  19250. res[key] &&
  19251. externalClasses.indexOf(altKey) !== -1 &&
  19252. context[camelize(res[key])]
  19253. ) {
  19254. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  19255. res[key] = context[camelize(res[key])];
  19256. }
  19257. }
  19258. }
  19259. return res
  19260. }
  19261. function extractPropsFromVNodeData (
  19262. data,
  19263. Ctor,
  19264. tag,
  19265. context// fixed by xxxxxx
  19266. ) {
  19267. // we are only extracting raw values here.
  19268. // validation and default values are handled in the child
  19269. // component itself.
  19270. var propOptions = Ctor.options.props;
  19271. if (isUndef(propOptions)) {
  19272. // fixed by xxxxxx
  19273. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  19274. }
  19275. var res = {};
  19276. var attrs = data.attrs;
  19277. var props = data.props;
  19278. if (isDef(attrs) || isDef(props)) {
  19279. for (var key in propOptions) {
  19280. var altKey = hyphenate(key);
  19281. if (true) {
  19282. var keyInLowerCase = key.toLowerCase();
  19283. if (
  19284. key !== keyInLowerCase &&
  19285. attrs && hasOwn(attrs, keyInLowerCase)
  19286. ) {
  19287. tip(
  19288. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  19289. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  19290. " \"" + key + "\". " +
  19291. "Note that HTML attributes are case-insensitive and camelCased " +
  19292. "props need to use their kebab-case equivalents when using in-DOM " +
  19293. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  19294. );
  19295. }
  19296. }
  19297. checkProp(res, props, key, altKey, true) ||
  19298. checkProp(res, attrs, key, altKey, false);
  19299. }
  19300. }
  19301. // fixed by xxxxxx
  19302. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  19303. }
  19304. function checkProp (
  19305. res,
  19306. hash,
  19307. key,
  19308. altKey,
  19309. preserve
  19310. ) {
  19311. if (isDef(hash)) {
  19312. if (hasOwn(hash, key)) {
  19313. res[key] = hash[key];
  19314. if (!preserve) {
  19315. delete hash[key];
  19316. }
  19317. return true
  19318. } else if (hasOwn(hash, altKey)) {
  19319. res[key] = hash[altKey];
  19320. if (!preserve) {
  19321. delete hash[altKey];
  19322. }
  19323. return true
  19324. }
  19325. }
  19326. return false
  19327. }
  19328. /* */
  19329. // The template compiler attempts to minimize the need for normalization by
  19330. // statically analyzing the template at compile time.
  19331. //
  19332. // For plain HTML markup, normalization can be completely skipped because the
  19333. // generated render function is guaranteed to return Array<VNode>. There are
  19334. // two cases where extra normalization is needed:
  19335. // 1. When the children contains components - because a functional component
  19336. // may return an Array instead of a single root. In this case, just a simple
  19337. // normalization is needed - if any child is an Array, we flatten the whole
  19338. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  19339. // because functional components already normalize their own children.
  19340. function simpleNormalizeChildren (children) {
  19341. for (var i = 0; i < children.length; i++) {
  19342. if (Array.isArray(children[i])) {
  19343. return Array.prototype.concat.apply([], children)
  19344. }
  19345. }
  19346. return children
  19347. }
  19348. // 2. When the children contains constructs that always generated nested Arrays,
  19349. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  19350. // with hand-written render functions / JSX. In such cases a full normalization
  19351. // is needed to cater to all possible types of children values.
  19352. function normalizeChildren (children) {
  19353. return isPrimitive(children)
  19354. ? [createTextVNode(children)]
  19355. : Array.isArray(children)
  19356. ? normalizeArrayChildren(children)
  19357. : undefined
  19358. }
  19359. function isTextNode (node) {
  19360. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  19361. }
  19362. function normalizeArrayChildren (children, nestedIndex) {
  19363. var res = [];
  19364. var i, c, lastIndex, last;
  19365. for (i = 0; i < children.length; i++) {
  19366. c = children[i];
  19367. if (isUndef(c) || typeof c === 'boolean') { continue }
  19368. lastIndex = res.length - 1;
  19369. last = res[lastIndex];
  19370. // nested
  19371. if (Array.isArray(c)) {
  19372. if (c.length > 0) {
  19373. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  19374. // merge adjacent text nodes
  19375. if (isTextNode(c[0]) && isTextNode(last)) {
  19376. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  19377. c.shift();
  19378. }
  19379. res.push.apply(res, c);
  19380. }
  19381. } else if (isPrimitive(c)) {
  19382. if (isTextNode(last)) {
  19383. // merge adjacent text nodes
  19384. // this is necessary for SSR hydration because text nodes are
  19385. // essentially merged when rendered to HTML strings
  19386. res[lastIndex] = createTextVNode(last.text + c);
  19387. } else if (c !== '') {
  19388. // convert primitive to vnode
  19389. res.push(createTextVNode(c));
  19390. }
  19391. } else {
  19392. if (isTextNode(c) && isTextNode(last)) {
  19393. // merge adjacent text nodes
  19394. res[lastIndex] = createTextVNode(last.text + c.text);
  19395. } else {
  19396. // default key for nested array children (likely generated by v-for)
  19397. if (isTrue(children._isVList) &&
  19398. isDef(c.tag) &&
  19399. isUndef(c.key) &&
  19400. isDef(nestedIndex)) {
  19401. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  19402. }
  19403. res.push(c);
  19404. }
  19405. }
  19406. }
  19407. return res
  19408. }
  19409. /* */
  19410. function initProvide (vm) {
  19411. var provide = vm.$options.provide;
  19412. if (provide) {
  19413. vm._provided = typeof provide === 'function'
  19414. ? provide.call(vm)
  19415. : provide;
  19416. }
  19417. }
  19418. function initInjections (vm) {
  19419. var result = resolveInject(vm.$options.inject, vm);
  19420. if (result) {
  19421. toggleObserving(false);
  19422. Object.keys(result).forEach(function (key) {
  19423. /* istanbul ignore else */
  19424. if (true) {
  19425. defineReactive$$1(vm, key, result[key], function () {
  19426. warn(
  19427. "Avoid mutating an injected value directly since the changes will be " +
  19428. "overwritten whenever the provided component re-renders. " +
  19429. "injection being mutated: \"" + key + "\"",
  19430. vm
  19431. );
  19432. });
  19433. } else {}
  19434. });
  19435. toggleObserving(true);
  19436. }
  19437. }
  19438. function resolveInject (inject, vm) {
  19439. if (inject) {
  19440. // inject is :any because flow is not smart enough to figure out cached
  19441. var result = Object.create(null);
  19442. var keys = hasSymbol
  19443. ? Reflect.ownKeys(inject)
  19444. : Object.keys(inject);
  19445. for (var i = 0; i < keys.length; i++) {
  19446. var key = keys[i];
  19447. // #6574 in case the inject object is observed...
  19448. if (key === '__ob__') { continue }
  19449. var provideKey = inject[key].from;
  19450. var source = vm;
  19451. while (source) {
  19452. if (source._provided && hasOwn(source._provided, provideKey)) {
  19453. result[key] = source._provided[provideKey];
  19454. break
  19455. }
  19456. source = source.$parent;
  19457. }
  19458. if (!source) {
  19459. if ('default' in inject[key]) {
  19460. var provideDefault = inject[key].default;
  19461. result[key] = typeof provideDefault === 'function'
  19462. ? provideDefault.call(vm)
  19463. : provideDefault;
  19464. } else if (true) {
  19465. warn(("Injection \"" + key + "\" not found"), vm);
  19466. }
  19467. }
  19468. }
  19469. return result
  19470. }
  19471. }
  19472. /* */
  19473. /**
  19474. * Runtime helper for resolving raw children VNodes into a slot object.
  19475. */
  19476. function resolveSlots (
  19477. children,
  19478. context
  19479. ) {
  19480. if (!children || !children.length) {
  19481. return {}
  19482. }
  19483. var slots = {};
  19484. for (var i = 0, l = children.length; i < l; i++) {
  19485. var child = children[i];
  19486. var data = child.data;
  19487. // remove slot attribute if the node is resolved as a Vue slot node
  19488. if (data && data.attrs && data.attrs.slot) {
  19489. delete data.attrs.slot;
  19490. }
  19491. // named slots should only be respected if the vnode was rendered in the
  19492. // same context.
  19493. if ((child.context === context || child.fnContext === context) &&
  19494. data && data.slot != null
  19495. ) {
  19496. var name = data.slot;
  19497. var slot = (slots[name] || (slots[name] = []));
  19498. if (child.tag === 'template') {
  19499. slot.push.apply(slot, child.children || []);
  19500. } else {
  19501. slot.push(child);
  19502. }
  19503. } else {
  19504. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  19505. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  19506. (slots['page'] || (slots['page'] = [])).push(child);
  19507. }else{
  19508. (slots.default || (slots.default = [])).push(child);
  19509. }
  19510. }
  19511. }
  19512. // ignore slots that contains only whitespace
  19513. for (var name$1 in slots) {
  19514. if (slots[name$1].every(isWhitespace)) {
  19515. delete slots[name$1];
  19516. }
  19517. }
  19518. return slots
  19519. }
  19520. function isWhitespace (node) {
  19521. return (node.isComment && !node.asyncFactory) || node.text === ' '
  19522. }
  19523. /* */
  19524. function normalizeScopedSlots (
  19525. slots,
  19526. normalSlots,
  19527. prevSlots
  19528. ) {
  19529. var res;
  19530. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  19531. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  19532. var key = slots && slots.$key;
  19533. if (!slots) {
  19534. res = {};
  19535. } else if (slots._normalized) {
  19536. // fast path 1: child component re-render only, parent did not change
  19537. return slots._normalized
  19538. } else if (
  19539. isStable &&
  19540. prevSlots &&
  19541. prevSlots !== emptyObject &&
  19542. key === prevSlots.$key &&
  19543. !hasNormalSlots &&
  19544. !prevSlots.$hasNormal
  19545. ) {
  19546. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  19547. // only need to normalize once
  19548. return prevSlots
  19549. } else {
  19550. res = {};
  19551. for (var key$1 in slots) {
  19552. if (slots[key$1] && key$1[0] !== '$') {
  19553. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  19554. }
  19555. }
  19556. }
  19557. // expose normal slots on scopedSlots
  19558. for (var key$2 in normalSlots) {
  19559. if (!(key$2 in res)) {
  19560. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  19561. }
  19562. }
  19563. // avoriaz seems to mock a non-extensible $scopedSlots object
  19564. // and when that is passed down this would cause an error
  19565. if (slots && Object.isExtensible(slots)) {
  19566. (slots)._normalized = res;
  19567. }
  19568. def(res, '$stable', isStable);
  19569. def(res, '$key', key);
  19570. def(res, '$hasNormal', hasNormalSlots);
  19571. return res
  19572. }
  19573. function normalizeScopedSlot(normalSlots, key, fn) {
  19574. var normalized = function () {
  19575. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  19576. res = res && typeof res === 'object' && !Array.isArray(res)
  19577. ? [res] // single vnode
  19578. : normalizeChildren(res);
  19579. return res && (
  19580. res.length === 0 ||
  19581. (res.length === 1 && res[0].isComment) // #9658
  19582. ) ? undefined
  19583. : res
  19584. };
  19585. // this is a slot using the new v-slot syntax without scope. although it is
  19586. // compiled as a scoped slot, render fn users would expect it to be present
  19587. // on this.$slots because the usage is semantically a normal slot.
  19588. if (fn.proxy) {
  19589. Object.defineProperty(normalSlots, key, {
  19590. get: normalized,
  19591. enumerable: true,
  19592. configurable: true
  19593. });
  19594. }
  19595. return normalized
  19596. }
  19597. function proxyNormalSlot(slots, key) {
  19598. return function () { return slots[key]; }
  19599. }
  19600. /* */
  19601. /**
  19602. * Runtime helper for rendering v-for lists.
  19603. */
  19604. function renderList (
  19605. val,
  19606. render
  19607. ) {
  19608. var ret, i, l, keys, key;
  19609. if (Array.isArray(val) || typeof val === 'string') {
  19610. ret = new Array(val.length);
  19611. for (i = 0, l = val.length; i < l; i++) {
  19612. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  19613. }
  19614. } else if (typeof val === 'number') {
  19615. ret = new Array(val);
  19616. for (i = 0; i < val; i++) {
  19617. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  19618. }
  19619. } else if (isObject(val)) {
  19620. if (hasSymbol && val[Symbol.iterator]) {
  19621. ret = [];
  19622. var iterator = val[Symbol.iterator]();
  19623. var result = iterator.next();
  19624. while (!result.done) {
  19625. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  19626. result = iterator.next();
  19627. }
  19628. } else {
  19629. keys = Object.keys(val);
  19630. ret = new Array(keys.length);
  19631. for (i = 0, l = keys.length; i < l; i++) {
  19632. key = keys[i];
  19633. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  19634. }
  19635. }
  19636. }
  19637. if (!isDef(ret)) {
  19638. ret = [];
  19639. }
  19640. (ret)._isVList = true;
  19641. return ret
  19642. }
  19643. /* */
  19644. /**
  19645. * Runtime helper for rendering <slot>
  19646. */
  19647. function renderSlot (
  19648. name,
  19649. fallback,
  19650. props,
  19651. bindObject
  19652. ) {
  19653. var scopedSlotFn = this.$scopedSlots[name];
  19654. var nodes;
  19655. if (scopedSlotFn) { // scoped slot
  19656. props = props || {};
  19657. if (bindObject) {
  19658. if ( true && !isObject(bindObject)) {
  19659. warn(
  19660. 'slot v-bind without argument expects an Object',
  19661. this
  19662. );
  19663. }
  19664. props = extend(extend({}, bindObject), props);
  19665. }
  19666. // fixed by xxxxxx app-plus scopedSlot
  19667. nodes = scopedSlotFn(props, this, props._i) || fallback;
  19668. } else {
  19669. nodes = this.$slots[name] || fallback;
  19670. }
  19671. var target = props && props.slot;
  19672. if (target) {
  19673. return this.$createElement('template', { slot: target }, nodes)
  19674. } else {
  19675. return nodes
  19676. }
  19677. }
  19678. /* */
  19679. /**
  19680. * Runtime helper for resolving filters
  19681. */
  19682. function resolveFilter (id) {
  19683. return resolveAsset(this.$options, 'filters', id, true) || identity
  19684. }
  19685. /* */
  19686. function isKeyNotMatch (expect, actual) {
  19687. if (Array.isArray(expect)) {
  19688. return expect.indexOf(actual) === -1
  19689. } else {
  19690. return expect !== actual
  19691. }
  19692. }
  19693. /**
  19694. * Runtime helper for checking keyCodes from config.
  19695. * exposed as Vue.prototype._k
  19696. * passing in eventKeyName as last argument separately for backwards compat
  19697. */
  19698. function checkKeyCodes (
  19699. eventKeyCode,
  19700. key,
  19701. builtInKeyCode,
  19702. eventKeyName,
  19703. builtInKeyName
  19704. ) {
  19705. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  19706. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  19707. return isKeyNotMatch(builtInKeyName, eventKeyName)
  19708. } else if (mappedKeyCode) {
  19709. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  19710. } else if (eventKeyName) {
  19711. return hyphenate(eventKeyName) !== key
  19712. }
  19713. }
  19714. /* */
  19715. /**
  19716. * Runtime helper for merging v-bind="object" into a VNode's data.
  19717. */
  19718. function bindObjectProps (
  19719. data,
  19720. tag,
  19721. value,
  19722. asProp,
  19723. isSync
  19724. ) {
  19725. if (value) {
  19726. if (!isObject(value)) {
  19727. true && warn(
  19728. 'v-bind without argument expects an Object or Array value',
  19729. this
  19730. );
  19731. } else {
  19732. if (Array.isArray(value)) {
  19733. value = toObject(value);
  19734. }
  19735. var hash;
  19736. var loop = function ( key ) {
  19737. if (
  19738. key === 'class' ||
  19739. key === 'style' ||
  19740. isReservedAttribute(key)
  19741. ) {
  19742. hash = data;
  19743. } else {
  19744. var type = data.attrs && data.attrs.type;
  19745. hash = asProp || config.mustUseProp(tag, type, key)
  19746. ? data.domProps || (data.domProps = {})
  19747. : data.attrs || (data.attrs = {});
  19748. }
  19749. var camelizedKey = camelize(key);
  19750. var hyphenatedKey = hyphenate(key);
  19751. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  19752. hash[key] = value[key];
  19753. if (isSync) {
  19754. var on = data.on || (data.on = {});
  19755. on[("update:" + key)] = function ($event) {
  19756. value[key] = $event;
  19757. };
  19758. }
  19759. }
  19760. };
  19761. for (var key in value) loop( key );
  19762. }
  19763. }
  19764. return data
  19765. }
  19766. /* */
  19767. /**
  19768. * Runtime helper for rendering static trees.
  19769. */
  19770. function renderStatic (
  19771. index,
  19772. isInFor
  19773. ) {
  19774. var cached = this._staticTrees || (this._staticTrees = []);
  19775. var tree = cached[index];
  19776. // if has already-rendered static tree and not inside v-for,
  19777. // we can reuse the same tree.
  19778. if (tree && !isInFor) {
  19779. return tree
  19780. }
  19781. // otherwise, render a fresh tree.
  19782. tree = cached[index] = this.$options.staticRenderFns[index].call(
  19783. this._renderProxy,
  19784. null,
  19785. this // for render fns generated for functional component templates
  19786. );
  19787. markStatic(tree, ("__static__" + index), false);
  19788. return tree
  19789. }
  19790. /**
  19791. * Runtime helper for v-once.
  19792. * Effectively it means marking the node as static with a unique key.
  19793. */
  19794. function markOnce (
  19795. tree,
  19796. index,
  19797. key
  19798. ) {
  19799. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  19800. return tree
  19801. }
  19802. function markStatic (
  19803. tree,
  19804. key,
  19805. isOnce
  19806. ) {
  19807. if (Array.isArray(tree)) {
  19808. for (var i = 0; i < tree.length; i++) {
  19809. if (tree[i] && typeof tree[i] !== 'string') {
  19810. markStaticNode(tree[i], (key + "_" + i), isOnce);
  19811. }
  19812. }
  19813. } else {
  19814. markStaticNode(tree, key, isOnce);
  19815. }
  19816. }
  19817. function markStaticNode (node, key, isOnce) {
  19818. node.isStatic = true;
  19819. node.key = key;
  19820. node.isOnce = isOnce;
  19821. }
  19822. /* */
  19823. function bindObjectListeners (data, value) {
  19824. if (value) {
  19825. if (!isPlainObject(value)) {
  19826. true && warn(
  19827. 'v-on without argument expects an Object value',
  19828. this
  19829. );
  19830. } else {
  19831. var on = data.on = data.on ? extend({}, data.on) : {};
  19832. for (var key in value) {
  19833. var existing = on[key];
  19834. var ours = value[key];
  19835. on[key] = existing ? [].concat(existing, ours) : ours;
  19836. }
  19837. }
  19838. }
  19839. return data
  19840. }
  19841. /* */
  19842. function resolveScopedSlots (
  19843. fns, // see flow/vnode
  19844. res,
  19845. // the following are added in 2.6
  19846. hasDynamicKeys,
  19847. contentHashKey
  19848. ) {
  19849. res = res || { $stable: !hasDynamicKeys };
  19850. for (var i = 0; i < fns.length; i++) {
  19851. var slot = fns[i];
  19852. if (Array.isArray(slot)) {
  19853. resolveScopedSlots(slot, res, hasDynamicKeys);
  19854. } else if (slot) {
  19855. // marker for reverse proxying v-slot without scope on this.$slots
  19856. if (slot.proxy) {
  19857. slot.fn.proxy = true;
  19858. }
  19859. res[slot.key] = slot.fn;
  19860. }
  19861. }
  19862. if (contentHashKey) {
  19863. (res).$key = contentHashKey;
  19864. }
  19865. return res
  19866. }
  19867. /* */
  19868. function bindDynamicKeys (baseObj, values) {
  19869. for (var i = 0; i < values.length; i += 2) {
  19870. var key = values[i];
  19871. if (typeof key === 'string' && key) {
  19872. baseObj[values[i]] = values[i + 1];
  19873. } else if ( true && key !== '' && key !== null) {
  19874. // null is a special value for explicitly removing a binding
  19875. warn(
  19876. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  19877. this
  19878. );
  19879. }
  19880. }
  19881. return baseObj
  19882. }
  19883. // helper to dynamically append modifier runtime markers to event names.
  19884. // ensure only append when value is already string, otherwise it will be cast
  19885. // to string and cause the type check to miss.
  19886. function prependModifier (value, symbol) {
  19887. return typeof value === 'string' ? symbol + value : value
  19888. }
  19889. /* */
  19890. function installRenderHelpers (target) {
  19891. target._o = markOnce;
  19892. target._n = toNumber;
  19893. target._s = toString;
  19894. target._l = renderList;
  19895. target._t = renderSlot;
  19896. target._q = looseEqual;
  19897. target._i = looseIndexOf;
  19898. target._m = renderStatic;
  19899. target._f = resolveFilter;
  19900. target._k = checkKeyCodes;
  19901. target._b = bindObjectProps;
  19902. target._v = createTextVNode;
  19903. target._e = createEmptyVNode;
  19904. target._u = resolveScopedSlots;
  19905. target._g = bindObjectListeners;
  19906. target._d = bindDynamicKeys;
  19907. target._p = prependModifier;
  19908. }
  19909. /* */
  19910. function FunctionalRenderContext (
  19911. data,
  19912. props,
  19913. children,
  19914. parent,
  19915. Ctor
  19916. ) {
  19917. var this$1 = this;
  19918. var options = Ctor.options;
  19919. // ensure the createElement function in functional components
  19920. // gets a unique context - this is necessary for correct named slot check
  19921. var contextVm;
  19922. if (hasOwn(parent, '_uid')) {
  19923. contextVm = Object.create(parent);
  19924. // $flow-disable-line
  19925. contextVm._original = parent;
  19926. } else {
  19927. // the context vm passed in is a functional context as well.
  19928. // in this case we want to make sure we are able to get a hold to the
  19929. // real context instance.
  19930. contextVm = parent;
  19931. // $flow-disable-line
  19932. parent = parent._original;
  19933. }
  19934. var isCompiled = isTrue(options._compiled);
  19935. var needNormalization = !isCompiled;
  19936. this.data = data;
  19937. this.props = props;
  19938. this.children = children;
  19939. this.parent = parent;
  19940. this.listeners = data.on || emptyObject;
  19941. this.injections = resolveInject(options.inject, parent);
  19942. this.slots = function () {
  19943. if (!this$1.$slots) {
  19944. normalizeScopedSlots(
  19945. data.scopedSlots,
  19946. this$1.$slots = resolveSlots(children, parent)
  19947. );
  19948. }
  19949. return this$1.$slots
  19950. };
  19951. Object.defineProperty(this, 'scopedSlots', ({
  19952. enumerable: true,
  19953. get: function get () {
  19954. return normalizeScopedSlots(data.scopedSlots, this.slots())
  19955. }
  19956. }));
  19957. // support for compiled functional template
  19958. if (isCompiled) {
  19959. // exposing $options for renderStatic()
  19960. this.$options = options;
  19961. // pre-resolve slots for renderSlot()
  19962. this.$slots = this.slots();
  19963. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  19964. }
  19965. if (options._scopeId) {
  19966. this._c = function (a, b, c, d) {
  19967. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  19968. if (vnode && !Array.isArray(vnode)) {
  19969. vnode.fnScopeId = options._scopeId;
  19970. vnode.fnContext = parent;
  19971. }
  19972. return vnode
  19973. };
  19974. } else {
  19975. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  19976. }
  19977. }
  19978. installRenderHelpers(FunctionalRenderContext.prototype);
  19979. function createFunctionalComponent (
  19980. Ctor,
  19981. propsData,
  19982. data,
  19983. contextVm,
  19984. children
  19985. ) {
  19986. var options = Ctor.options;
  19987. var props = {};
  19988. var propOptions = options.props;
  19989. if (isDef(propOptions)) {
  19990. for (var key in propOptions) {
  19991. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  19992. }
  19993. } else {
  19994. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  19995. if (isDef(data.props)) { mergeProps(props, data.props); }
  19996. }
  19997. var renderContext = new FunctionalRenderContext(
  19998. data,
  19999. props,
  20000. children,
  20001. contextVm,
  20002. Ctor
  20003. );
  20004. var vnode = options.render.call(null, renderContext._c, renderContext);
  20005. if (vnode instanceof VNode) {
  20006. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  20007. } else if (Array.isArray(vnode)) {
  20008. var vnodes = normalizeChildren(vnode) || [];
  20009. var res = new Array(vnodes.length);
  20010. for (var i = 0; i < vnodes.length; i++) {
  20011. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  20012. }
  20013. return res
  20014. }
  20015. }
  20016. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  20017. // #7817 clone node before setting fnContext, otherwise if the node is reused
  20018. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  20019. // that should not be matched to match.
  20020. var clone = cloneVNode(vnode);
  20021. clone.fnContext = contextVm;
  20022. clone.fnOptions = options;
  20023. if (true) {
  20024. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  20025. }
  20026. if (data.slot) {
  20027. (clone.data || (clone.data = {})).slot = data.slot;
  20028. }
  20029. return clone
  20030. }
  20031. function mergeProps (to, from) {
  20032. for (var key in from) {
  20033. to[camelize(key)] = from[key];
  20034. }
  20035. }
  20036. /* */
  20037. /* */
  20038. /* */
  20039. /* */
  20040. // inline hooks to be invoked on component VNodes during patch
  20041. var componentVNodeHooks = {
  20042. init: function init (vnode, hydrating) {
  20043. if (
  20044. vnode.componentInstance &&
  20045. !vnode.componentInstance._isDestroyed &&
  20046. vnode.data.keepAlive
  20047. ) {
  20048. // kept-alive components, treat as a patch
  20049. var mountedNode = vnode; // work around flow
  20050. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  20051. } else {
  20052. var child = vnode.componentInstance = createComponentInstanceForVnode(
  20053. vnode,
  20054. activeInstance
  20055. );
  20056. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  20057. }
  20058. },
  20059. prepatch: function prepatch (oldVnode, vnode) {
  20060. var options = vnode.componentOptions;
  20061. var child = vnode.componentInstance = oldVnode.componentInstance;
  20062. updateChildComponent(
  20063. child,
  20064. options.propsData, // updated props
  20065. options.listeners, // updated listeners
  20066. vnode, // new parent vnode
  20067. options.children // new children
  20068. );
  20069. },
  20070. insert: function insert (vnode) {
  20071. var context = vnode.context;
  20072. var componentInstance = vnode.componentInstance;
  20073. if (!componentInstance._isMounted) {
  20074. callHook(componentInstance, 'onServiceCreated');
  20075. callHook(componentInstance, 'onServiceAttached');
  20076. componentInstance._isMounted = true;
  20077. callHook(componentInstance, 'mounted');
  20078. }
  20079. if (vnode.data.keepAlive) {
  20080. if (context._isMounted) {
  20081. // vue-router#1212
  20082. // During updates, a kept-alive component's child components may
  20083. // change, so directly walking the tree here may call activated hooks
  20084. // on incorrect children. Instead we push them into a queue which will
  20085. // be processed after the whole patch process ended.
  20086. queueActivatedComponent(componentInstance);
  20087. } else {
  20088. activateChildComponent(componentInstance, true /* direct */);
  20089. }
  20090. }
  20091. },
  20092. destroy: function destroy (vnode) {
  20093. var componentInstance = vnode.componentInstance;
  20094. if (!componentInstance._isDestroyed) {
  20095. if (!vnode.data.keepAlive) {
  20096. componentInstance.$destroy();
  20097. } else {
  20098. deactivateChildComponent(componentInstance, true /* direct */);
  20099. }
  20100. }
  20101. }
  20102. };
  20103. var hooksToMerge = Object.keys(componentVNodeHooks);
  20104. function createComponent (
  20105. Ctor,
  20106. data,
  20107. context,
  20108. children,
  20109. tag
  20110. ) {
  20111. if (isUndef(Ctor)) {
  20112. return
  20113. }
  20114. var baseCtor = context.$options._base;
  20115. // plain options object: turn it into a constructor
  20116. if (isObject(Ctor)) {
  20117. Ctor = baseCtor.extend(Ctor);
  20118. }
  20119. // if at this stage it's not a constructor or an async component factory,
  20120. // reject.
  20121. if (typeof Ctor !== 'function') {
  20122. if (true) {
  20123. warn(("Invalid Component definition: " + (String(Ctor))), context);
  20124. }
  20125. return
  20126. }
  20127. // async component
  20128. var asyncFactory;
  20129. if (isUndef(Ctor.cid)) {
  20130. asyncFactory = Ctor;
  20131. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  20132. if (Ctor === undefined) {
  20133. // return a placeholder node for async component, which is rendered
  20134. // as a comment node but preserves all the raw information for the node.
  20135. // the information will be used for async server-rendering and hydration.
  20136. return createAsyncPlaceholder(
  20137. asyncFactory,
  20138. data,
  20139. context,
  20140. children,
  20141. tag
  20142. )
  20143. }
  20144. }
  20145. data = data || {};
  20146. // resolve constructor options in case global mixins are applied after
  20147. // component constructor creation
  20148. resolveConstructorOptions(Ctor);
  20149. // transform component v-model data into props & events
  20150. if (isDef(data.model)) {
  20151. transformModel(Ctor.options, data);
  20152. }
  20153. // extract props
  20154. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  20155. // functional component
  20156. if (isTrue(Ctor.options.functional)) {
  20157. return createFunctionalComponent(Ctor, propsData, data, context, children)
  20158. }
  20159. // extract listeners, since these needs to be treated as
  20160. // child component listeners instead of DOM listeners
  20161. var listeners = data.on;
  20162. // replace with listeners with .native modifier
  20163. // so it gets processed during parent component patch.
  20164. data.on = data.nativeOn;
  20165. if (isTrue(Ctor.options.abstract)) {
  20166. // abstract components do not keep anything
  20167. // other than props & listeners & slot
  20168. // work around flow
  20169. var slot = data.slot;
  20170. data = {};
  20171. if (slot) {
  20172. data.slot = slot;
  20173. }
  20174. }
  20175. // install component management hooks onto the placeholder node
  20176. installComponentHooks(data);
  20177. // return a placeholder vnode
  20178. var name = Ctor.options.name || tag;
  20179. var vnode = new VNode(
  20180. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  20181. data, undefined, undefined, undefined, context,
  20182. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  20183. asyncFactory
  20184. );
  20185. return vnode
  20186. }
  20187. function createComponentInstanceForVnode (
  20188. vnode, // we know it's MountedComponentVNode but flow doesn't
  20189. parent // activeInstance in lifecycle state
  20190. ) {
  20191. var options = {
  20192. _isComponent: true,
  20193. _parentVnode: vnode,
  20194. parent: parent
  20195. };
  20196. // check inline-template render functions
  20197. var inlineTemplate = vnode.data.inlineTemplate;
  20198. if (isDef(inlineTemplate)) {
  20199. options.render = inlineTemplate.render;
  20200. options.staticRenderFns = inlineTemplate.staticRenderFns;
  20201. }
  20202. return new vnode.componentOptions.Ctor(options)
  20203. }
  20204. function installComponentHooks (data) {
  20205. var hooks = data.hook || (data.hook = {});
  20206. for (var i = 0; i < hooksToMerge.length; i++) {
  20207. var key = hooksToMerge[i];
  20208. var existing = hooks[key];
  20209. var toMerge = componentVNodeHooks[key];
  20210. if (existing !== toMerge && !(existing && existing._merged)) {
  20211. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  20212. }
  20213. }
  20214. }
  20215. function mergeHook$1 (f1, f2) {
  20216. var merged = function (a, b) {
  20217. // flow complains about extra args which is why we use any
  20218. f1(a, b);
  20219. f2(a, b);
  20220. };
  20221. merged._merged = true;
  20222. return merged
  20223. }
  20224. // transform component v-model info (value and callback) into
  20225. // prop and event handler respectively.
  20226. function transformModel (options, data) {
  20227. var prop = (options.model && options.model.prop) || 'value';
  20228. var event = (options.model && options.model.event) || 'input'
  20229. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  20230. var on = data.on || (data.on = {});
  20231. var existing = on[event];
  20232. var callback = data.model.callback;
  20233. if (isDef(existing)) {
  20234. if (
  20235. Array.isArray(existing)
  20236. ? existing.indexOf(callback) === -1
  20237. : existing !== callback
  20238. ) {
  20239. on[event] = [callback].concat(existing);
  20240. }
  20241. } else {
  20242. on[event] = callback;
  20243. }
  20244. }
  20245. /* */
  20246. var SIMPLE_NORMALIZE = 1;
  20247. var ALWAYS_NORMALIZE = 2;
  20248. // wrapper function for providing a more flexible interface
  20249. // without getting yelled at by flow
  20250. function createElement (
  20251. context,
  20252. tag,
  20253. data,
  20254. children,
  20255. normalizationType,
  20256. alwaysNormalize
  20257. ) {
  20258. if (Array.isArray(data) || isPrimitive(data)) {
  20259. normalizationType = children;
  20260. children = data;
  20261. data = undefined;
  20262. }
  20263. if (isTrue(alwaysNormalize)) {
  20264. normalizationType = ALWAYS_NORMALIZE;
  20265. }
  20266. return _createElement(context, tag, data, children, normalizationType)
  20267. }
  20268. function _createElement (
  20269. context,
  20270. tag,
  20271. data,
  20272. children,
  20273. normalizationType
  20274. ) {
  20275. if (isDef(data) && isDef((data).__ob__)) {
  20276. true && warn(
  20277. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  20278. 'Always create fresh vnode data objects in each render!',
  20279. context
  20280. );
  20281. return createEmptyVNode()
  20282. }
  20283. // object syntax in v-bind
  20284. if (isDef(data) && isDef(data.is)) {
  20285. tag = data.is;
  20286. }
  20287. if (!tag) {
  20288. // in case of component :is set to falsy value
  20289. return createEmptyVNode()
  20290. }
  20291. // warn against non-primitive key
  20292. if ( true &&
  20293. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  20294. ) {
  20295. {
  20296. warn(
  20297. 'Avoid using non-primitive value as key, ' +
  20298. 'use string/number value instead.',
  20299. context
  20300. );
  20301. }
  20302. }
  20303. // support single function children as default scoped slot
  20304. if (Array.isArray(children) &&
  20305. typeof children[0] === 'function'
  20306. ) {
  20307. data = data || {};
  20308. data.scopedSlots = { default: children[0] };
  20309. children.length = 0;
  20310. }
  20311. if (normalizationType === ALWAYS_NORMALIZE) {
  20312. children = normalizeChildren(children);
  20313. } else if (normalizationType === SIMPLE_NORMALIZE) {
  20314. children = simpleNormalizeChildren(children);
  20315. }
  20316. var vnode, ns;
  20317. if (typeof tag === 'string') {
  20318. var Ctor;
  20319. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  20320. if (config.isReservedTag(tag)) {
  20321. // platform built-in elements
  20322. if ( true && isDef(data) && isDef(data.nativeOn)) {
  20323. warn(
  20324. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  20325. context
  20326. );
  20327. }
  20328. vnode = new VNode(
  20329. config.parsePlatformTagName(tag), data, children,
  20330. undefined, undefined, context
  20331. );
  20332. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  20333. // component
  20334. vnode = createComponent(Ctor, data, context, children, tag);
  20335. } else {
  20336. // unknown or unlisted namespaced elements
  20337. // check at runtime because it may get assigned a namespace when its
  20338. // parent normalizes children
  20339. vnode = new VNode(
  20340. tag, data, children,
  20341. undefined, undefined, context
  20342. );
  20343. }
  20344. } else {
  20345. // direct component options / constructor
  20346. vnode = createComponent(tag, data, context, children);
  20347. }
  20348. if (Array.isArray(vnode)) {
  20349. return vnode
  20350. } else if (isDef(vnode)) {
  20351. if (isDef(ns)) { applyNS(vnode, ns); }
  20352. if (isDef(data)) { registerDeepBindings(data); }
  20353. return vnode
  20354. } else {
  20355. return createEmptyVNode()
  20356. }
  20357. }
  20358. function applyNS (vnode, ns, force) {
  20359. vnode.ns = ns;
  20360. if (vnode.tag === 'foreignObject') {
  20361. // use default namespace inside foreignObject
  20362. ns = undefined;
  20363. force = true;
  20364. }
  20365. if (isDef(vnode.children)) {
  20366. for (var i = 0, l = vnode.children.length; i < l; i++) {
  20367. var child = vnode.children[i];
  20368. if (isDef(child.tag) && (
  20369. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  20370. applyNS(child, ns, force);
  20371. }
  20372. }
  20373. }
  20374. }
  20375. // ref #5318
  20376. // necessary to ensure parent re-render when deep bindings like :style and
  20377. // :class are used on slot nodes
  20378. function registerDeepBindings (data) {
  20379. if (isObject(data.style)) {
  20380. traverse(data.style);
  20381. }
  20382. if (isObject(data.class)) {
  20383. traverse(data.class);
  20384. }
  20385. }
  20386. /* */
  20387. function initRender (vm) {
  20388. vm._vnode = null; // the root of the child tree
  20389. vm._staticTrees = null; // v-once cached trees
  20390. var options = vm.$options;
  20391. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  20392. var renderContext = parentVnode && parentVnode.context;
  20393. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  20394. vm.$scopedSlots = emptyObject;
  20395. // bind the createElement fn to this instance
  20396. // so that we get proper render context inside it.
  20397. // args order: tag, data, children, normalizationType, alwaysNormalize
  20398. // internal version is used by render functions compiled from templates
  20399. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  20400. // normalization is always applied for the public version, used in
  20401. // user-written render functions.
  20402. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  20403. // $attrs & $listeners are exposed for easier HOC creation.
  20404. // they need to be reactive so that HOCs using them are always updated
  20405. var parentData = parentVnode && parentVnode.data;
  20406. /* istanbul ignore else */
  20407. if (true) {
  20408. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  20409. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  20410. }, true);
  20411. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  20412. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  20413. }, true);
  20414. } else {}
  20415. }
  20416. var currentRenderingInstance = null;
  20417. function renderMixin (Vue) {
  20418. // install runtime convenience helpers
  20419. installRenderHelpers(Vue.prototype);
  20420. Vue.prototype.$nextTick = function (fn) {
  20421. return nextTick(fn, this)
  20422. };
  20423. Vue.prototype._render = function () {
  20424. var vm = this;
  20425. var ref = vm.$options;
  20426. var render = ref.render;
  20427. var _parentVnode = ref._parentVnode;
  20428. if (_parentVnode) {
  20429. vm.$scopedSlots = normalizeScopedSlots(
  20430. _parentVnode.data.scopedSlots,
  20431. vm.$slots,
  20432. vm.$scopedSlots
  20433. );
  20434. }
  20435. // set parent vnode. this allows render functions to have access
  20436. // to the data on the placeholder node.
  20437. vm.$vnode = _parentVnode;
  20438. // render self
  20439. var vnode;
  20440. try {
  20441. // There's no need to maintain a stack because all render fns are called
  20442. // separately from one another. Nested component's render fns are called
  20443. // when parent component is patched.
  20444. currentRenderingInstance = vm;
  20445. vnode = render.call(vm._renderProxy, vm.$createElement);
  20446. } catch (e) {
  20447. handleError(e, vm, "render");
  20448. // return error render result,
  20449. // or previous vnode to prevent render error causing blank component
  20450. /* istanbul ignore else */
  20451. if ( true && vm.$options.renderError) {
  20452. try {
  20453. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  20454. } catch (e) {
  20455. handleError(e, vm, "renderError");
  20456. vnode = vm._vnode;
  20457. }
  20458. } else {
  20459. vnode = vm._vnode;
  20460. }
  20461. } finally {
  20462. currentRenderingInstance = null;
  20463. }
  20464. // if the returned array contains only a single node, allow it
  20465. if (Array.isArray(vnode) && vnode.length === 1) {
  20466. vnode = vnode[0];
  20467. }
  20468. // return empty vnode in case the render function errored out
  20469. if (!(vnode instanceof VNode)) {
  20470. if ( true && Array.isArray(vnode)) {
  20471. warn(
  20472. 'Multiple root nodes returned from render function. Render function ' +
  20473. 'should return a single root node.',
  20474. vm
  20475. );
  20476. }
  20477. vnode = createEmptyVNode();
  20478. }
  20479. // set parent
  20480. vnode.parent = _parentVnode;
  20481. return vnode
  20482. };
  20483. }
  20484. /* */
  20485. function ensureCtor (comp, base) {
  20486. if (
  20487. comp.__esModule ||
  20488. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  20489. ) {
  20490. comp = comp.default;
  20491. }
  20492. return isObject(comp)
  20493. ? base.extend(comp)
  20494. : comp
  20495. }
  20496. function createAsyncPlaceholder (
  20497. factory,
  20498. data,
  20499. context,
  20500. children,
  20501. tag
  20502. ) {
  20503. var node = createEmptyVNode();
  20504. node.asyncFactory = factory;
  20505. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  20506. return node
  20507. }
  20508. function resolveAsyncComponent (
  20509. factory,
  20510. baseCtor
  20511. ) {
  20512. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  20513. return factory.errorComp
  20514. }
  20515. if (isDef(factory.resolved)) {
  20516. return factory.resolved
  20517. }
  20518. var owner = currentRenderingInstance;
  20519. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  20520. // already pending
  20521. factory.owners.push(owner);
  20522. }
  20523. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  20524. return factory.loadingComp
  20525. }
  20526. if (owner && !isDef(factory.owners)) {
  20527. var owners = factory.owners = [owner];
  20528. var sync = true;
  20529. var timerLoading = null;
  20530. var timerTimeout = null
  20531. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  20532. var forceRender = function (renderCompleted) {
  20533. for (var i = 0, l = owners.length; i < l; i++) {
  20534. (owners[i]).$forceUpdate();
  20535. }
  20536. if (renderCompleted) {
  20537. owners.length = 0;
  20538. if (timerLoading !== null) {
  20539. clearTimeout(timerLoading);
  20540. timerLoading = null;
  20541. }
  20542. if (timerTimeout !== null) {
  20543. clearTimeout(timerTimeout);
  20544. timerTimeout = null;
  20545. }
  20546. }
  20547. };
  20548. var resolve = once(function (res) {
  20549. // cache resolved
  20550. factory.resolved = ensureCtor(res, baseCtor);
  20551. // invoke callbacks only if this is not a synchronous resolve
  20552. // (async resolves are shimmed as synchronous during SSR)
  20553. if (!sync) {
  20554. forceRender(true);
  20555. } else {
  20556. owners.length = 0;
  20557. }
  20558. });
  20559. var reject = once(function (reason) {
  20560. true && warn(
  20561. "Failed to resolve async component: " + (String(factory)) +
  20562. (reason ? ("\nReason: " + reason) : '')
  20563. );
  20564. if (isDef(factory.errorComp)) {
  20565. factory.error = true;
  20566. forceRender(true);
  20567. }
  20568. });
  20569. var res = factory(resolve, reject);
  20570. if (isObject(res)) {
  20571. if (isPromise(res)) {
  20572. // () => Promise
  20573. if (isUndef(factory.resolved)) {
  20574. res.then(resolve, reject);
  20575. }
  20576. } else if (isPromise(res.component)) {
  20577. res.component.then(resolve, reject);
  20578. if (isDef(res.error)) {
  20579. factory.errorComp = ensureCtor(res.error, baseCtor);
  20580. }
  20581. if (isDef(res.loading)) {
  20582. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  20583. if (res.delay === 0) {
  20584. factory.loading = true;
  20585. } else {
  20586. timerLoading = setTimeout(function () {
  20587. timerLoading = null;
  20588. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  20589. factory.loading = true;
  20590. forceRender(false);
  20591. }
  20592. }, res.delay || 200);
  20593. }
  20594. }
  20595. if (isDef(res.timeout)) {
  20596. timerTimeout = setTimeout(function () {
  20597. timerTimeout = null;
  20598. if (isUndef(factory.resolved)) {
  20599. reject(
  20600. true
  20601. ? ("timeout (" + (res.timeout) + "ms)")
  20602. : undefined
  20603. );
  20604. }
  20605. }, res.timeout);
  20606. }
  20607. }
  20608. }
  20609. sync = false;
  20610. // return in case resolved synchronously
  20611. return factory.loading
  20612. ? factory.loadingComp
  20613. : factory.resolved
  20614. }
  20615. }
  20616. /* */
  20617. function isAsyncPlaceholder (node) {
  20618. return node.isComment && node.asyncFactory
  20619. }
  20620. /* */
  20621. function getFirstComponentChild (children) {
  20622. if (Array.isArray(children)) {
  20623. for (var i = 0; i < children.length; i++) {
  20624. var c = children[i];
  20625. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  20626. return c
  20627. }
  20628. }
  20629. }
  20630. }
  20631. /* */
  20632. /* */
  20633. function initEvents (vm) {
  20634. vm._events = Object.create(null);
  20635. vm._hasHookEvent = false;
  20636. // init parent attached events
  20637. var listeners = vm.$options._parentListeners;
  20638. if (listeners) {
  20639. updateComponentListeners(vm, listeners);
  20640. }
  20641. }
  20642. var target;
  20643. function add (event, fn) {
  20644. target.$on(event, fn);
  20645. }
  20646. function remove$1 (event, fn) {
  20647. target.$off(event, fn);
  20648. }
  20649. function createOnceHandler (event, fn) {
  20650. var _target = target;
  20651. return function onceHandler () {
  20652. var res = fn.apply(null, arguments);
  20653. if (res !== null) {
  20654. _target.$off(event, onceHandler);
  20655. }
  20656. }
  20657. }
  20658. function updateComponentListeners (
  20659. vm,
  20660. listeners,
  20661. oldListeners
  20662. ) {
  20663. target = vm;
  20664. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  20665. target = undefined;
  20666. }
  20667. function eventsMixin (Vue) {
  20668. var hookRE = /^hook:/;
  20669. Vue.prototype.$on = function (event, fn) {
  20670. var vm = this;
  20671. if (Array.isArray(event)) {
  20672. for (var i = 0, l = event.length; i < l; i++) {
  20673. vm.$on(event[i], fn);
  20674. }
  20675. } else {
  20676. (vm._events[event] || (vm._events[event] = [])).push(fn);
  20677. // optimize hook:event cost by using a boolean flag marked at registration
  20678. // instead of a hash lookup
  20679. if (hookRE.test(event)) {
  20680. vm._hasHookEvent = true;
  20681. }
  20682. }
  20683. return vm
  20684. };
  20685. Vue.prototype.$once = function (event, fn) {
  20686. var vm = this;
  20687. function on () {
  20688. vm.$off(event, on);
  20689. fn.apply(vm, arguments);
  20690. }
  20691. on.fn = fn;
  20692. vm.$on(event, on);
  20693. return vm
  20694. };
  20695. Vue.prototype.$off = function (event, fn) {
  20696. var vm = this;
  20697. // all
  20698. if (!arguments.length) {
  20699. vm._events = Object.create(null);
  20700. return vm
  20701. }
  20702. // array of events
  20703. if (Array.isArray(event)) {
  20704. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  20705. vm.$off(event[i$1], fn);
  20706. }
  20707. return vm
  20708. }
  20709. // specific event
  20710. var cbs = vm._events[event];
  20711. if (!cbs) {
  20712. return vm
  20713. }
  20714. if (!fn) {
  20715. vm._events[event] = null;
  20716. return vm
  20717. }
  20718. // specific handler
  20719. var cb;
  20720. var i = cbs.length;
  20721. while (i--) {
  20722. cb = cbs[i];
  20723. if (cb === fn || cb.fn === fn) {
  20724. cbs.splice(i, 1);
  20725. break
  20726. }
  20727. }
  20728. return vm
  20729. };
  20730. Vue.prototype.$emit = function (event) {
  20731. var vm = this;
  20732. if (true) {
  20733. var lowerCaseEvent = event.toLowerCase();
  20734. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  20735. tip(
  20736. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  20737. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  20738. "Note that HTML attributes are case-insensitive and you cannot use " +
  20739. "v-on to listen to camelCase events when using in-DOM templates. " +
  20740. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  20741. );
  20742. }
  20743. }
  20744. var cbs = vm._events[event];
  20745. if (cbs) {
  20746. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  20747. var args = toArray(arguments, 1);
  20748. var info = "event handler for \"" + event + "\"";
  20749. for (var i = 0, l = cbs.length; i < l; i++) {
  20750. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  20751. }
  20752. }
  20753. return vm
  20754. };
  20755. }
  20756. /* */
  20757. var activeInstance = null;
  20758. var isUpdatingChildComponent = false;
  20759. function setActiveInstance(vm) {
  20760. var prevActiveInstance = activeInstance;
  20761. activeInstance = vm;
  20762. return function () {
  20763. activeInstance = prevActiveInstance;
  20764. }
  20765. }
  20766. function initLifecycle (vm) {
  20767. var options = vm.$options;
  20768. // locate first non-abstract parent
  20769. var parent = options.parent;
  20770. if (parent && !options.abstract) {
  20771. while (parent.$options.abstract && parent.$parent) {
  20772. parent = parent.$parent;
  20773. }
  20774. parent.$children.push(vm);
  20775. }
  20776. vm.$parent = parent;
  20777. vm.$root = parent ? parent.$root : vm;
  20778. vm.$children = [];
  20779. vm.$refs = {};
  20780. vm._watcher = null;
  20781. vm._inactive = null;
  20782. vm._directInactive = false;
  20783. vm._isMounted = false;
  20784. vm._isDestroyed = false;
  20785. vm._isBeingDestroyed = false;
  20786. }
  20787. function lifecycleMixin (Vue) {
  20788. Vue.prototype._update = function (vnode, hydrating) {
  20789. var vm = this;
  20790. var prevEl = vm.$el;
  20791. var prevVnode = vm._vnode;
  20792. var restoreActiveInstance = setActiveInstance(vm);
  20793. vm._vnode = vnode;
  20794. // Vue.prototype.__patch__ is injected in entry points
  20795. // based on the rendering backend used.
  20796. if (!prevVnode) {
  20797. // initial render
  20798. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  20799. } else {
  20800. // updates
  20801. vm.$el = vm.__patch__(prevVnode, vnode);
  20802. }
  20803. restoreActiveInstance();
  20804. // update __vue__ reference
  20805. if (prevEl) {
  20806. prevEl.__vue__ = null;
  20807. }
  20808. if (vm.$el) {
  20809. vm.$el.__vue__ = vm;
  20810. }
  20811. // if parent is an HOC, update its $el as well
  20812. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  20813. vm.$parent.$el = vm.$el;
  20814. }
  20815. // updated hook is called by the scheduler to ensure that children are
  20816. // updated in a parent's updated hook.
  20817. };
  20818. Vue.prototype.$forceUpdate = function () {
  20819. var vm = this;
  20820. if (vm._watcher) {
  20821. vm._watcher.update();
  20822. }
  20823. };
  20824. Vue.prototype.$destroy = function () {
  20825. var vm = this;
  20826. if (vm._isBeingDestroyed) {
  20827. return
  20828. }
  20829. callHook(vm, 'beforeDestroy');
  20830. vm._isBeingDestroyed = true;
  20831. // remove self from parent
  20832. var parent = vm.$parent;
  20833. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  20834. remove(parent.$children, vm);
  20835. }
  20836. // teardown watchers
  20837. if (vm._watcher) {
  20838. vm._watcher.teardown();
  20839. }
  20840. var i = vm._watchers.length;
  20841. while (i--) {
  20842. vm._watchers[i].teardown();
  20843. }
  20844. // remove reference from data ob
  20845. // frozen object may not have observer.
  20846. if (vm._data.__ob__) {
  20847. vm._data.__ob__.vmCount--;
  20848. }
  20849. // call the last hook...
  20850. vm._isDestroyed = true;
  20851. // invoke destroy hooks on current rendered tree
  20852. vm.__patch__(vm._vnode, null);
  20853. // fire destroyed hook
  20854. callHook(vm, 'destroyed');
  20855. // turn off all instance listeners.
  20856. vm.$off();
  20857. // remove __vue__ reference
  20858. if (vm.$el) {
  20859. vm.$el.__vue__ = null;
  20860. }
  20861. // release circular reference (#6759)
  20862. if (vm.$vnode) {
  20863. vm.$vnode.parent = null;
  20864. }
  20865. };
  20866. }
  20867. function updateChildComponent (
  20868. vm,
  20869. propsData,
  20870. listeners,
  20871. parentVnode,
  20872. renderChildren
  20873. ) {
  20874. if (true) {
  20875. isUpdatingChildComponent = true;
  20876. }
  20877. // determine whether component has slot children
  20878. // we need to do this before overwriting $options._renderChildren.
  20879. // check if there are dynamic scopedSlots (hand-written or compiled but with
  20880. // dynamic slot names). Static scoped slots compiled from template has the
  20881. // "$stable" marker.
  20882. var newScopedSlots = parentVnode.data.scopedSlots;
  20883. var oldScopedSlots = vm.$scopedSlots;
  20884. var hasDynamicScopedSlot = !!(
  20885. (newScopedSlots && !newScopedSlots.$stable) ||
  20886. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  20887. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  20888. );
  20889. // Any static slot children from the parent may have changed during parent's
  20890. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  20891. // update is necessary to ensure correctness.
  20892. var needsForceUpdate = !!(
  20893. renderChildren || // has new static slots
  20894. vm.$options._renderChildren || // has old static slots
  20895. hasDynamicScopedSlot
  20896. );
  20897. vm.$options._parentVnode = parentVnode;
  20898. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  20899. if (vm._vnode) { // update child tree's parent
  20900. vm._vnode.parent = parentVnode;
  20901. }
  20902. vm.$options._renderChildren = renderChildren;
  20903. // update $attrs and $listeners hash
  20904. // these are also reactive so they may trigger child update if the child
  20905. // used them during render
  20906. vm.$attrs = parentVnode.data.attrs || emptyObject;
  20907. vm.$listeners = listeners || emptyObject;
  20908. // update props
  20909. if (propsData && vm.$options.props) {
  20910. toggleObserving(false);
  20911. var props = vm._props;
  20912. var propKeys = vm.$options._propKeys || [];
  20913. for (var i = 0; i < propKeys.length; i++) {
  20914. var key = propKeys[i];
  20915. var propOptions = vm.$options.props; // wtf flow?
  20916. props[key] = validateProp(key, propOptions, propsData, vm);
  20917. }
  20918. toggleObserving(true);
  20919. // keep a copy of raw propsData
  20920. vm.$options.propsData = propsData;
  20921. }
  20922. // fixed by xxxxxx update properties(mp runtime)
  20923. vm._$updateProperties && vm._$updateProperties(vm);
  20924. // update listeners
  20925. listeners = listeners || emptyObject;
  20926. var oldListeners = vm.$options._parentListeners;
  20927. vm.$options._parentListeners = listeners;
  20928. updateComponentListeners(vm, listeners, oldListeners);
  20929. // resolve slots + force update if has children
  20930. if (needsForceUpdate) {
  20931. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  20932. vm.$forceUpdate();
  20933. }
  20934. if (true) {
  20935. isUpdatingChildComponent = false;
  20936. }
  20937. }
  20938. function isInInactiveTree (vm) {
  20939. while (vm && (vm = vm.$parent)) {
  20940. if (vm._inactive) { return true }
  20941. }
  20942. return false
  20943. }
  20944. function activateChildComponent (vm, direct) {
  20945. if (direct) {
  20946. vm._directInactive = false;
  20947. if (isInInactiveTree(vm)) {
  20948. return
  20949. }
  20950. } else if (vm._directInactive) {
  20951. return
  20952. }
  20953. if (vm._inactive || vm._inactive === null) {
  20954. vm._inactive = false;
  20955. for (var i = 0; i < vm.$children.length; i++) {
  20956. activateChildComponent(vm.$children[i]);
  20957. }
  20958. callHook(vm, 'activated');
  20959. }
  20960. }
  20961. function deactivateChildComponent (vm, direct) {
  20962. if (direct) {
  20963. vm._directInactive = true;
  20964. if (isInInactiveTree(vm)) {
  20965. return
  20966. }
  20967. }
  20968. if (!vm._inactive) {
  20969. vm._inactive = true;
  20970. for (var i = 0; i < vm.$children.length; i++) {
  20971. deactivateChildComponent(vm.$children[i]);
  20972. }
  20973. callHook(vm, 'deactivated');
  20974. }
  20975. }
  20976. function callHook (vm, hook) {
  20977. // #7573 disable dep collection when invoking lifecycle hooks
  20978. pushTarget();
  20979. var handlers = vm.$options[hook];
  20980. var info = hook + " hook";
  20981. if (handlers) {
  20982. for (var i = 0, j = handlers.length; i < j; i++) {
  20983. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  20984. }
  20985. }
  20986. if (vm._hasHookEvent) {
  20987. vm.$emit('hook:' + hook);
  20988. }
  20989. popTarget();
  20990. }
  20991. /* */
  20992. var MAX_UPDATE_COUNT = 100;
  20993. var queue = [];
  20994. var activatedChildren = [];
  20995. var has = {};
  20996. var circular = {};
  20997. var waiting = false;
  20998. var flushing = false;
  20999. var index = 0;
  21000. /**
  21001. * Reset the scheduler's state.
  21002. */
  21003. function resetSchedulerState () {
  21004. index = queue.length = activatedChildren.length = 0;
  21005. has = {};
  21006. if (true) {
  21007. circular = {};
  21008. }
  21009. waiting = flushing = false;
  21010. }
  21011. // Async edge case #6566 requires saving the timestamp when event listeners are
  21012. // attached. However, calling performance.now() has a perf overhead especially
  21013. // if the page has thousands of event listeners. Instead, we take a timestamp
  21014. // every time the scheduler flushes and use that for all event listeners
  21015. // attached during that flush.
  21016. var currentFlushTimestamp = 0;
  21017. // Async edge case fix requires storing an event listener's attach timestamp.
  21018. var getNow = Date.now;
  21019. // Determine what event timestamp the browser is using. Annoyingly, the
  21020. // timestamp can either be hi-res (relative to page load) or low-res
  21021. // (relative to UNIX epoch), so in order to compare time we have to use the
  21022. // same timestamp type when saving the flush timestamp.
  21023. // All IE versions use low-res event timestamps, and have problematic clock
  21024. // implementations (#9632)
  21025. if (inBrowser && !isIE) {
  21026. var performance = window.performance;
  21027. if (
  21028. performance &&
  21029. typeof performance.now === 'function' &&
  21030. getNow() > document.createEvent('Event').timeStamp
  21031. ) {
  21032. // if the event timestamp, although evaluated AFTER the Date.now(), is
  21033. // smaller than it, it means the event is using a hi-res timestamp,
  21034. // and we need to use the hi-res version for event listener timestamps as
  21035. // well.
  21036. getNow = function () { return performance.now(); };
  21037. }
  21038. }
  21039. /**
  21040. * Flush both queues and run the watchers.
  21041. */
  21042. function flushSchedulerQueue () {
  21043. currentFlushTimestamp = getNow();
  21044. flushing = true;
  21045. var watcher, id;
  21046. // Sort queue before flush.
  21047. // This ensures that:
  21048. // 1. Components are updated from parent to child. (because parent is always
  21049. // created before the child)
  21050. // 2. A component's user watchers are run before its render watcher (because
  21051. // user watchers are created before the render watcher)
  21052. // 3. If a component is destroyed during a parent component's watcher run,
  21053. // its watchers can be skipped.
  21054. queue.sort(function (a, b) { return a.id - b.id; });
  21055. // do not cache length because more watchers might be pushed
  21056. // as we run existing watchers
  21057. for (index = 0; index < queue.length; index++) {
  21058. watcher = queue[index];
  21059. if (watcher.before) {
  21060. watcher.before();
  21061. }
  21062. id = watcher.id;
  21063. has[id] = null;
  21064. watcher.run();
  21065. // in dev build, check and stop circular updates.
  21066. if ( true && has[id] != null) {
  21067. circular[id] = (circular[id] || 0) + 1;
  21068. if (circular[id] > MAX_UPDATE_COUNT) {
  21069. warn(
  21070. 'You may have an infinite update loop ' + (
  21071. watcher.user
  21072. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  21073. : "in a component render function."
  21074. ),
  21075. watcher.vm
  21076. );
  21077. break
  21078. }
  21079. }
  21080. }
  21081. // keep copies of post queues before resetting state
  21082. var activatedQueue = activatedChildren.slice();
  21083. var updatedQueue = queue.slice();
  21084. resetSchedulerState();
  21085. // call component updated and activated hooks
  21086. callActivatedHooks(activatedQueue);
  21087. callUpdatedHooks(updatedQueue);
  21088. // devtool hook
  21089. /* istanbul ignore if */
  21090. if (devtools && config.devtools) {
  21091. devtools.emit('flush');
  21092. }
  21093. }
  21094. function callUpdatedHooks (queue) {
  21095. var i = queue.length;
  21096. while (i--) {
  21097. var watcher = queue[i];
  21098. var vm = watcher.vm;
  21099. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  21100. callHook(vm, 'updated');
  21101. }
  21102. }
  21103. }
  21104. /**
  21105. * Queue a kept-alive component that was activated during patch.
  21106. * The queue will be processed after the entire tree has been patched.
  21107. */
  21108. function queueActivatedComponent (vm) {
  21109. // setting _inactive to false here so that a render function can
  21110. // rely on checking whether it's in an inactive tree (e.g. router-view)
  21111. vm._inactive = false;
  21112. activatedChildren.push(vm);
  21113. }
  21114. function callActivatedHooks (queue) {
  21115. for (var i = 0; i < queue.length; i++) {
  21116. queue[i]._inactive = true;
  21117. activateChildComponent(queue[i], true /* true */);
  21118. }
  21119. }
  21120. /**
  21121. * Push a watcher into the watcher queue.
  21122. * Jobs with duplicate IDs will be skipped unless it's
  21123. * pushed when the queue is being flushed.
  21124. */
  21125. function queueWatcher (watcher) {
  21126. var id = watcher.id;
  21127. if (has[id] == null) {
  21128. has[id] = true;
  21129. if (!flushing) {
  21130. queue.push(watcher);
  21131. } else {
  21132. // if already flushing, splice the watcher based on its id
  21133. // if already past its id, it will be run next immediately.
  21134. var i = queue.length - 1;
  21135. while (i > index && queue[i].id > watcher.id) {
  21136. i--;
  21137. }
  21138. queue.splice(i + 1, 0, watcher);
  21139. }
  21140. // queue the flush
  21141. if (!waiting) {
  21142. waiting = true;
  21143. if ( true && !config.async) {
  21144. flushSchedulerQueue();
  21145. return
  21146. }
  21147. nextTick(flushSchedulerQueue);
  21148. }
  21149. }
  21150. }
  21151. /* */
  21152. var uid$2 = 0;
  21153. /**
  21154. * A watcher parses an expression, collects dependencies,
  21155. * and fires callback when the expression value changes.
  21156. * This is used for both the $watch() api and directives.
  21157. */
  21158. var Watcher = function Watcher (
  21159. vm,
  21160. expOrFn,
  21161. cb,
  21162. options,
  21163. isRenderWatcher
  21164. ) {
  21165. this.vm = vm;
  21166. if (isRenderWatcher) {
  21167. vm._watcher = this;
  21168. }
  21169. vm._watchers.push(this);
  21170. // options
  21171. if (options) {
  21172. this.deep = !!options.deep;
  21173. this.user = !!options.user;
  21174. this.lazy = !!options.lazy;
  21175. this.sync = !!options.sync;
  21176. this.before = options.before;
  21177. } else {
  21178. this.deep = this.user = this.lazy = this.sync = false;
  21179. }
  21180. this.cb = cb;
  21181. this.id = ++uid$2; // uid for batching
  21182. this.active = true;
  21183. this.dirty = this.lazy; // for lazy watchers
  21184. this.deps = [];
  21185. this.newDeps = [];
  21186. this.depIds = new _Set();
  21187. this.newDepIds = new _Set();
  21188. this.expression = true
  21189. ? expOrFn.toString()
  21190. : undefined;
  21191. // parse expression for getter
  21192. if (typeof expOrFn === 'function') {
  21193. this.getter = expOrFn;
  21194. } else {
  21195. this.getter = parsePath(expOrFn);
  21196. if (!this.getter) {
  21197. this.getter = noop;
  21198. true && warn(
  21199. "Failed watching path: \"" + expOrFn + "\" " +
  21200. 'Watcher only accepts simple dot-delimited paths. ' +
  21201. 'For full control, use a function instead.',
  21202. vm
  21203. );
  21204. }
  21205. }
  21206. this.value = this.lazy
  21207. ? undefined
  21208. : this.get();
  21209. };
  21210. /**
  21211. * Evaluate the getter, and re-collect dependencies.
  21212. */
  21213. Watcher.prototype.get = function get () {
  21214. pushTarget(this);
  21215. var value;
  21216. var vm = this.vm;
  21217. try {
  21218. value = this.getter.call(vm, vm);
  21219. } catch (e) {
  21220. if (this.user) {
  21221. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  21222. } else {
  21223. throw e
  21224. }
  21225. } finally {
  21226. // "touch" every property so they are all tracked as
  21227. // dependencies for deep watching
  21228. if (this.deep) {
  21229. traverse(value);
  21230. }
  21231. popTarget();
  21232. this.cleanupDeps();
  21233. }
  21234. return value
  21235. };
  21236. /**
  21237. * Add a dependency to this directive.
  21238. */
  21239. Watcher.prototype.addDep = function addDep (dep) {
  21240. var id = dep.id;
  21241. if (!this.newDepIds.has(id)) {
  21242. this.newDepIds.add(id);
  21243. this.newDeps.push(dep);
  21244. if (!this.depIds.has(id)) {
  21245. dep.addSub(this);
  21246. }
  21247. }
  21248. };
  21249. /**
  21250. * Clean up for dependency collection.
  21251. */
  21252. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  21253. var i = this.deps.length;
  21254. while (i--) {
  21255. var dep = this.deps[i];
  21256. if (!this.newDepIds.has(dep.id)) {
  21257. dep.removeSub(this);
  21258. }
  21259. }
  21260. var tmp = this.depIds;
  21261. this.depIds = this.newDepIds;
  21262. this.newDepIds = tmp;
  21263. this.newDepIds.clear();
  21264. tmp = this.deps;
  21265. this.deps = this.newDeps;
  21266. this.newDeps = tmp;
  21267. this.newDeps.length = 0;
  21268. };
  21269. /**
  21270. * Subscriber interface.
  21271. * Will be called when a dependency changes.
  21272. */
  21273. Watcher.prototype.update = function update () {
  21274. /* istanbul ignore else */
  21275. if (this.lazy) {
  21276. this.dirty = true;
  21277. } else if (this.sync) {
  21278. this.run();
  21279. } else {
  21280. queueWatcher(this);
  21281. }
  21282. };
  21283. /**
  21284. * Scheduler job interface.
  21285. * Will be called by the scheduler.
  21286. */
  21287. Watcher.prototype.run = function run () {
  21288. if (this.active) {
  21289. var value = this.get();
  21290. if (
  21291. value !== this.value ||
  21292. // Deep watchers and watchers on Object/Arrays should fire even
  21293. // when the value is the same, because the value may
  21294. // have mutated.
  21295. isObject(value) ||
  21296. this.deep
  21297. ) {
  21298. // set new value
  21299. var oldValue = this.value;
  21300. this.value = value;
  21301. if (this.user) {
  21302. try {
  21303. this.cb.call(this.vm, value, oldValue);
  21304. } catch (e) {
  21305. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  21306. }
  21307. } else {
  21308. this.cb.call(this.vm, value, oldValue);
  21309. }
  21310. }
  21311. }
  21312. };
  21313. /**
  21314. * Evaluate the value of the watcher.
  21315. * This only gets called for lazy watchers.
  21316. */
  21317. Watcher.prototype.evaluate = function evaluate () {
  21318. this.value = this.get();
  21319. this.dirty = false;
  21320. };
  21321. /**
  21322. * Depend on all deps collected by this watcher.
  21323. */
  21324. Watcher.prototype.depend = function depend () {
  21325. var i = this.deps.length;
  21326. while (i--) {
  21327. this.deps[i].depend();
  21328. }
  21329. };
  21330. /**
  21331. * Remove self from all dependencies' subscriber list.
  21332. */
  21333. Watcher.prototype.teardown = function teardown () {
  21334. if (this.active) {
  21335. // remove self from vm's watcher list
  21336. // this is a somewhat expensive operation so we skip it
  21337. // if the vm is being destroyed.
  21338. if (!this.vm._isBeingDestroyed) {
  21339. remove(this.vm._watchers, this);
  21340. }
  21341. var i = this.deps.length;
  21342. while (i--) {
  21343. this.deps[i].removeSub(this);
  21344. }
  21345. this.active = false;
  21346. }
  21347. };
  21348. /* */
  21349. var sharedPropertyDefinition = {
  21350. enumerable: true,
  21351. configurable: true,
  21352. get: noop,
  21353. set: noop
  21354. };
  21355. function proxy (target, sourceKey, key) {
  21356. sharedPropertyDefinition.get = function proxyGetter () {
  21357. return this[sourceKey][key]
  21358. };
  21359. sharedPropertyDefinition.set = function proxySetter (val) {
  21360. this[sourceKey][key] = val;
  21361. };
  21362. Object.defineProperty(target, key, sharedPropertyDefinition);
  21363. }
  21364. function initState (vm) {
  21365. vm._watchers = [];
  21366. var opts = vm.$options;
  21367. if (opts.props) { initProps(vm, opts.props); }
  21368. if (opts.methods) { initMethods(vm, opts.methods); }
  21369. if (opts.data) {
  21370. initData(vm);
  21371. } else {
  21372. observe(vm._data = {}, true /* asRootData */);
  21373. }
  21374. if (opts.computed) { initComputed(vm, opts.computed); }
  21375. if (opts.watch && opts.watch !== nativeWatch) {
  21376. initWatch(vm, opts.watch);
  21377. }
  21378. }
  21379. function initProps (vm, propsOptions) {
  21380. var propsData = vm.$options.propsData || {};
  21381. var props = vm._props = {};
  21382. // cache prop keys so that future props updates can iterate using Array
  21383. // instead of dynamic object key enumeration.
  21384. var keys = vm.$options._propKeys = [];
  21385. var isRoot = !vm.$parent;
  21386. // root instance props should be converted
  21387. if (!isRoot) {
  21388. toggleObserving(false);
  21389. }
  21390. var loop = function ( key ) {
  21391. keys.push(key);
  21392. var value = validateProp(key, propsOptions, propsData, vm);
  21393. /* istanbul ignore else */
  21394. if (true) {
  21395. var hyphenatedKey = hyphenate(key);
  21396. if (isReservedAttribute(hyphenatedKey) ||
  21397. config.isReservedAttr(hyphenatedKey)) {
  21398. warn(
  21399. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  21400. vm
  21401. );
  21402. }
  21403. defineReactive$$1(props, key, value, function () {
  21404. if (!isRoot && !isUpdatingChildComponent) {
  21405. {
  21406. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  21407. return
  21408. }
  21409. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  21410. if(
  21411. key === 'value' &&
  21412. Array.isArray(vm.$options.behaviors) &&
  21413. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  21414. ){
  21415. return
  21416. }
  21417. if(vm._getFormData){
  21418. return
  21419. }
  21420. var $parent = vm.$parent;
  21421. while($parent){
  21422. if($parent.__next_tick_pending){
  21423. return
  21424. }
  21425. $parent = $parent.$parent;
  21426. }
  21427. }
  21428. warn(
  21429. "Avoid mutating a prop directly since the value will be " +
  21430. "overwritten whenever the parent component re-renders. " +
  21431. "Instead, use a data or computed property based on the prop's " +
  21432. "value. Prop being mutated: \"" + key + "\"",
  21433. vm
  21434. );
  21435. }
  21436. });
  21437. } else {}
  21438. // static props are already proxied on the component's prototype
  21439. // during Vue.extend(). We only need to proxy props defined at
  21440. // instantiation here.
  21441. if (!(key in vm)) {
  21442. proxy(vm, "_props", key);
  21443. }
  21444. };
  21445. for (var key in propsOptions) loop( key );
  21446. toggleObserving(true);
  21447. }
  21448. function initData (vm) {
  21449. var data = vm.$options.data;
  21450. data = vm._data = typeof data === 'function'
  21451. ? getData(data, vm)
  21452. : data || {};
  21453. if (!isPlainObject(data)) {
  21454. data = {};
  21455. true && warn(
  21456. 'data functions should return an object:\n' +
  21457. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  21458. vm
  21459. );
  21460. }
  21461. // proxy data on instance
  21462. var keys = Object.keys(data);
  21463. var props = vm.$options.props;
  21464. var methods = vm.$options.methods;
  21465. var i = keys.length;
  21466. while (i--) {
  21467. var key = keys[i];
  21468. if (true) {
  21469. if (methods && hasOwn(methods, key)) {
  21470. warn(
  21471. ("Method \"" + key + "\" has already been defined as a data property."),
  21472. vm
  21473. );
  21474. }
  21475. }
  21476. if (props && hasOwn(props, key)) {
  21477. true && warn(
  21478. "The data property \"" + key + "\" is already declared as a prop. " +
  21479. "Use prop default value instead.",
  21480. vm
  21481. );
  21482. } else if (!isReserved(key)) {
  21483. proxy(vm, "_data", key);
  21484. }
  21485. }
  21486. // observe data
  21487. observe(data, true /* asRootData */);
  21488. }
  21489. function getData (data, vm) {
  21490. // #7573 disable dep collection when invoking data getters
  21491. pushTarget();
  21492. try {
  21493. return data.call(vm, vm)
  21494. } catch (e) {
  21495. handleError(e, vm, "data()");
  21496. return {}
  21497. } finally {
  21498. popTarget();
  21499. }
  21500. }
  21501. var computedWatcherOptions = { lazy: true };
  21502. function initComputed (vm, computed) {
  21503. // $flow-disable-line
  21504. var watchers = vm._computedWatchers = Object.create(null);
  21505. // computed properties are just getters during SSR
  21506. var isSSR = isServerRendering();
  21507. for (var key in computed) {
  21508. var userDef = computed[key];
  21509. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  21510. if ( true && getter == null) {
  21511. warn(
  21512. ("Getter is missing for computed property \"" + key + "\"."),
  21513. vm
  21514. );
  21515. }
  21516. if (!isSSR) {
  21517. // create internal watcher for the computed property.
  21518. watchers[key] = new Watcher(
  21519. vm,
  21520. getter || noop,
  21521. noop,
  21522. computedWatcherOptions
  21523. );
  21524. }
  21525. // component-defined computed properties are already defined on the
  21526. // component prototype. We only need to define computed properties defined
  21527. // at instantiation here.
  21528. if (!(key in vm)) {
  21529. defineComputed(vm, key, userDef);
  21530. } else if (true) {
  21531. if (key in vm.$data) {
  21532. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  21533. } else if (vm.$options.props && key in vm.$options.props) {
  21534. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  21535. }
  21536. }
  21537. }
  21538. }
  21539. function defineComputed (
  21540. target,
  21541. key,
  21542. userDef
  21543. ) {
  21544. var shouldCache = !isServerRendering();
  21545. if (typeof userDef === 'function') {
  21546. sharedPropertyDefinition.get = shouldCache
  21547. ? createComputedGetter(key)
  21548. : createGetterInvoker(userDef);
  21549. sharedPropertyDefinition.set = noop;
  21550. } else {
  21551. sharedPropertyDefinition.get = userDef.get
  21552. ? shouldCache && userDef.cache !== false
  21553. ? createComputedGetter(key)
  21554. : createGetterInvoker(userDef.get)
  21555. : noop;
  21556. sharedPropertyDefinition.set = userDef.set || noop;
  21557. }
  21558. if ( true &&
  21559. sharedPropertyDefinition.set === noop) {
  21560. sharedPropertyDefinition.set = function () {
  21561. warn(
  21562. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  21563. this
  21564. );
  21565. };
  21566. }
  21567. Object.defineProperty(target, key, sharedPropertyDefinition);
  21568. }
  21569. function createComputedGetter (key) {
  21570. return function computedGetter () {
  21571. var watcher = this._computedWatchers && this._computedWatchers[key];
  21572. if (watcher) {
  21573. if (watcher.dirty) {
  21574. watcher.evaluate();
  21575. }
  21576. if (Dep.SharedObject.target) {// fixed by xxxxxx
  21577. watcher.depend();
  21578. }
  21579. return watcher.value
  21580. }
  21581. }
  21582. }
  21583. function createGetterInvoker(fn) {
  21584. return function computedGetter () {
  21585. return fn.call(this, this)
  21586. }
  21587. }
  21588. function initMethods (vm, methods) {
  21589. var props = vm.$options.props;
  21590. for (var key in methods) {
  21591. if (true) {
  21592. if (typeof methods[key] !== 'function') {
  21593. warn(
  21594. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  21595. "Did you reference the function correctly?",
  21596. vm
  21597. );
  21598. }
  21599. if (props && hasOwn(props, key)) {
  21600. warn(
  21601. ("Method \"" + key + "\" has already been defined as a prop."),
  21602. vm
  21603. );
  21604. }
  21605. if ((key in vm) && isReserved(key)) {
  21606. warn(
  21607. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  21608. "Avoid defining component methods that start with _ or $."
  21609. );
  21610. }
  21611. }
  21612. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  21613. }
  21614. }
  21615. function initWatch (vm, watch) {
  21616. for (var key in watch) {
  21617. var handler = watch[key];
  21618. if (Array.isArray(handler)) {
  21619. for (var i = 0; i < handler.length; i++) {
  21620. createWatcher(vm, key, handler[i]);
  21621. }
  21622. } else {
  21623. createWatcher(vm, key, handler);
  21624. }
  21625. }
  21626. }
  21627. function createWatcher (
  21628. vm,
  21629. expOrFn,
  21630. handler,
  21631. options
  21632. ) {
  21633. if (isPlainObject(handler)) {
  21634. options = handler;
  21635. handler = handler.handler;
  21636. }
  21637. if (typeof handler === 'string') {
  21638. handler = vm[handler];
  21639. }
  21640. return vm.$watch(expOrFn, handler, options)
  21641. }
  21642. function stateMixin (Vue) {
  21643. // flow somehow has problems with directly declared definition object
  21644. // when using Object.defineProperty, so we have to procedurally build up
  21645. // the object here.
  21646. var dataDef = {};
  21647. dataDef.get = function () { return this._data };
  21648. var propsDef = {};
  21649. propsDef.get = function () { return this._props };
  21650. if (true) {
  21651. dataDef.set = function () {
  21652. warn(
  21653. 'Avoid replacing instance root $data. ' +
  21654. 'Use nested data properties instead.',
  21655. this
  21656. );
  21657. };
  21658. propsDef.set = function () {
  21659. warn("$props is readonly.", this);
  21660. };
  21661. }
  21662. Object.defineProperty(Vue.prototype, '$data', dataDef);
  21663. Object.defineProperty(Vue.prototype, '$props', propsDef);
  21664. Vue.prototype.$set = set;
  21665. Vue.prototype.$delete = del;
  21666. Vue.prototype.$watch = function (
  21667. expOrFn,
  21668. cb,
  21669. options
  21670. ) {
  21671. var vm = this;
  21672. if (isPlainObject(cb)) {
  21673. return createWatcher(vm, expOrFn, cb, options)
  21674. }
  21675. options = options || {};
  21676. options.user = true;
  21677. var watcher = new Watcher(vm, expOrFn, cb, options);
  21678. if (options.immediate) {
  21679. try {
  21680. cb.call(vm, watcher.value);
  21681. } catch (error) {
  21682. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  21683. }
  21684. }
  21685. return function unwatchFn () {
  21686. watcher.teardown();
  21687. }
  21688. };
  21689. }
  21690. /* */
  21691. var uid$3 = 0;
  21692. function initMixin (Vue) {
  21693. Vue.prototype._init = function (options) {
  21694. var vm = this;
  21695. // a uid
  21696. vm._uid = uid$3++;
  21697. var startTag, endTag;
  21698. /* istanbul ignore if */
  21699. if ( true && config.performance && mark) {
  21700. startTag = "vue-perf-start:" + (vm._uid);
  21701. endTag = "vue-perf-end:" + (vm._uid);
  21702. mark(startTag);
  21703. }
  21704. // a flag to avoid this being observed
  21705. vm._isVue = true;
  21706. // merge options
  21707. if (options && options._isComponent) {
  21708. // optimize internal component instantiation
  21709. // since dynamic options merging is pretty slow, and none of the
  21710. // internal component options needs special treatment.
  21711. initInternalComponent(vm, options);
  21712. } else {
  21713. vm.$options = mergeOptions(
  21714. resolveConstructorOptions(vm.constructor),
  21715. options || {},
  21716. vm
  21717. );
  21718. }
  21719. /* istanbul ignore else */
  21720. if (true) {
  21721. initProxy(vm);
  21722. } else {}
  21723. // expose real self
  21724. vm._self = vm;
  21725. initLifecycle(vm);
  21726. initEvents(vm);
  21727. initRender(vm);
  21728. callHook(vm, 'beforeCreate');
  21729. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  21730. initState(vm);
  21731. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  21732. !vm._$fallback && callHook(vm, 'created');
  21733. /* istanbul ignore if */
  21734. if ( true && config.performance && mark) {
  21735. vm._name = formatComponentName(vm, false);
  21736. mark(endTag);
  21737. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  21738. }
  21739. if (vm.$options.el) {
  21740. vm.$mount(vm.$options.el);
  21741. }
  21742. };
  21743. }
  21744. function initInternalComponent (vm, options) {
  21745. var opts = vm.$options = Object.create(vm.constructor.options);
  21746. // doing this because it's faster than dynamic enumeration.
  21747. var parentVnode = options._parentVnode;
  21748. opts.parent = options.parent;
  21749. opts._parentVnode = parentVnode;
  21750. var vnodeComponentOptions = parentVnode.componentOptions;
  21751. opts.propsData = vnodeComponentOptions.propsData;
  21752. opts._parentListeners = vnodeComponentOptions.listeners;
  21753. opts._renderChildren = vnodeComponentOptions.children;
  21754. opts._componentTag = vnodeComponentOptions.tag;
  21755. if (options.render) {
  21756. opts.render = options.render;
  21757. opts.staticRenderFns = options.staticRenderFns;
  21758. }
  21759. }
  21760. function resolveConstructorOptions (Ctor) {
  21761. var options = Ctor.options;
  21762. if (Ctor.super) {
  21763. var superOptions = resolveConstructorOptions(Ctor.super);
  21764. var cachedSuperOptions = Ctor.superOptions;
  21765. if (superOptions !== cachedSuperOptions) {
  21766. // super option changed,
  21767. // need to resolve new options.
  21768. Ctor.superOptions = superOptions;
  21769. // check if there are any late-modified/attached options (#4976)
  21770. var modifiedOptions = resolveModifiedOptions(Ctor);
  21771. // update base extend options
  21772. if (modifiedOptions) {
  21773. extend(Ctor.extendOptions, modifiedOptions);
  21774. }
  21775. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  21776. if (options.name) {
  21777. options.components[options.name] = Ctor;
  21778. }
  21779. }
  21780. }
  21781. return options
  21782. }
  21783. function resolveModifiedOptions (Ctor) {
  21784. var modified;
  21785. var latest = Ctor.options;
  21786. var sealed = Ctor.sealedOptions;
  21787. for (var key in latest) {
  21788. if (latest[key] !== sealed[key]) {
  21789. if (!modified) { modified = {}; }
  21790. modified[key] = latest[key];
  21791. }
  21792. }
  21793. return modified
  21794. }
  21795. function Vue (options) {
  21796. if ( true &&
  21797. !(this instanceof Vue)
  21798. ) {
  21799. warn('Vue is a constructor and should be called with the `new` keyword');
  21800. }
  21801. this._init(options);
  21802. }
  21803. initMixin(Vue);
  21804. stateMixin(Vue);
  21805. eventsMixin(Vue);
  21806. lifecycleMixin(Vue);
  21807. renderMixin(Vue);
  21808. /* */
  21809. function initUse (Vue) {
  21810. Vue.use = function (plugin) {
  21811. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  21812. if (installedPlugins.indexOf(plugin) > -1) {
  21813. return this
  21814. }
  21815. // additional parameters
  21816. var args = toArray(arguments, 1);
  21817. args.unshift(this);
  21818. if (typeof plugin.install === 'function') {
  21819. plugin.install.apply(plugin, args);
  21820. } else if (typeof plugin === 'function') {
  21821. plugin.apply(null, args);
  21822. }
  21823. installedPlugins.push(plugin);
  21824. return this
  21825. };
  21826. }
  21827. /* */
  21828. function initMixin$1 (Vue) {
  21829. Vue.mixin = function (mixin) {
  21830. this.options = mergeOptions(this.options, mixin);
  21831. return this
  21832. };
  21833. }
  21834. /* */
  21835. function initExtend (Vue) {
  21836. /**
  21837. * Each instance constructor, including Vue, has a unique
  21838. * cid. This enables us to create wrapped "child
  21839. * constructors" for prototypal inheritance and cache them.
  21840. */
  21841. Vue.cid = 0;
  21842. var cid = 1;
  21843. /**
  21844. * Class inheritance
  21845. */
  21846. Vue.extend = function (extendOptions) {
  21847. extendOptions = extendOptions || {};
  21848. var Super = this;
  21849. var SuperId = Super.cid;
  21850. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  21851. if (cachedCtors[SuperId]) {
  21852. return cachedCtors[SuperId]
  21853. }
  21854. var name = extendOptions.name || Super.options.name;
  21855. if ( true && name) {
  21856. validateComponentName(name);
  21857. }
  21858. var Sub = function VueComponent (options) {
  21859. this._init(options);
  21860. };
  21861. Sub.prototype = Object.create(Super.prototype);
  21862. Sub.prototype.constructor = Sub;
  21863. Sub.cid = cid++;
  21864. Sub.options = mergeOptions(
  21865. Super.options,
  21866. extendOptions
  21867. );
  21868. Sub['super'] = Super;
  21869. // For props and computed properties, we define the proxy getters on
  21870. // the Vue instances at extension time, on the extended prototype. This
  21871. // avoids Object.defineProperty calls for each instance created.
  21872. if (Sub.options.props) {
  21873. initProps$1(Sub);
  21874. }
  21875. if (Sub.options.computed) {
  21876. initComputed$1(Sub);
  21877. }
  21878. // allow further extension/mixin/plugin usage
  21879. Sub.extend = Super.extend;
  21880. Sub.mixin = Super.mixin;
  21881. Sub.use = Super.use;
  21882. // create asset registers, so extended classes
  21883. // can have their private assets too.
  21884. ASSET_TYPES.forEach(function (type) {
  21885. Sub[type] = Super[type];
  21886. });
  21887. // enable recursive self-lookup
  21888. if (name) {
  21889. Sub.options.components[name] = Sub;
  21890. }
  21891. // keep a reference to the super options at extension time.
  21892. // later at instantiation we can check if Super's options have
  21893. // been updated.
  21894. Sub.superOptions = Super.options;
  21895. Sub.extendOptions = extendOptions;
  21896. Sub.sealedOptions = extend({}, Sub.options);
  21897. // cache constructor
  21898. cachedCtors[SuperId] = Sub;
  21899. return Sub
  21900. };
  21901. }
  21902. function initProps$1 (Comp) {
  21903. var props = Comp.options.props;
  21904. for (var key in props) {
  21905. proxy(Comp.prototype, "_props", key);
  21906. }
  21907. }
  21908. function initComputed$1 (Comp) {
  21909. var computed = Comp.options.computed;
  21910. for (var key in computed) {
  21911. defineComputed(Comp.prototype, key, computed[key]);
  21912. }
  21913. }
  21914. /* */
  21915. function initAssetRegisters (Vue) {
  21916. /**
  21917. * Create asset registration methods.
  21918. */
  21919. ASSET_TYPES.forEach(function (type) {
  21920. Vue[type] = function (
  21921. id,
  21922. definition
  21923. ) {
  21924. if (!definition) {
  21925. return this.options[type + 's'][id]
  21926. } else {
  21927. /* istanbul ignore if */
  21928. if ( true && type === 'component') {
  21929. validateComponentName(id);
  21930. }
  21931. if (type === 'component' && isPlainObject(definition)) {
  21932. definition.name = definition.name || id;
  21933. definition = this.options._base.extend(definition);
  21934. }
  21935. if (type === 'directive' && typeof definition === 'function') {
  21936. definition = { bind: definition, update: definition };
  21937. }
  21938. this.options[type + 's'][id] = definition;
  21939. return definition
  21940. }
  21941. };
  21942. });
  21943. }
  21944. /* */
  21945. function getComponentName (opts) {
  21946. return opts && (opts.Ctor.options.name || opts.tag)
  21947. }
  21948. function matches (pattern, name) {
  21949. if (Array.isArray(pattern)) {
  21950. return pattern.indexOf(name) > -1
  21951. } else if (typeof pattern === 'string') {
  21952. return pattern.split(',').indexOf(name) > -1
  21953. } else if (isRegExp(pattern)) {
  21954. return pattern.test(name)
  21955. }
  21956. /* istanbul ignore next */
  21957. return false
  21958. }
  21959. function pruneCache (keepAliveInstance, filter) {
  21960. var cache = keepAliveInstance.cache;
  21961. var keys = keepAliveInstance.keys;
  21962. var _vnode = keepAliveInstance._vnode;
  21963. for (var key in cache) {
  21964. var cachedNode = cache[key];
  21965. if (cachedNode) {
  21966. var name = getComponentName(cachedNode.componentOptions);
  21967. if (name && !filter(name)) {
  21968. pruneCacheEntry(cache, key, keys, _vnode);
  21969. }
  21970. }
  21971. }
  21972. }
  21973. function pruneCacheEntry (
  21974. cache,
  21975. key,
  21976. keys,
  21977. current
  21978. ) {
  21979. var cached$$1 = cache[key];
  21980. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  21981. cached$$1.componentInstance.$destroy();
  21982. }
  21983. cache[key] = null;
  21984. remove(keys, key);
  21985. }
  21986. var patternTypes = [String, RegExp, Array];
  21987. var KeepAlive = {
  21988. name: 'keep-alive',
  21989. abstract: true,
  21990. props: {
  21991. include: patternTypes,
  21992. exclude: patternTypes,
  21993. max: [String, Number]
  21994. },
  21995. created: function created () {
  21996. this.cache = Object.create(null);
  21997. this.keys = [];
  21998. },
  21999. destroyed: function destroyed () {
  22000. for (var key in this.cache) {
  22001. pruneCacheEntry(this.cache, key, this.keys);
  22002. }
  22003. },
  22004. mounted: function mounted () {
  22005. var this$1 = this;
  22006. this.$watch('include', function (val) {
  22007. pruneCache(this$1, function (name) { return matches(val, name); });
  22008. });
  22009. this.$watch('exclude', function (val) {
  22010. pruneCache(this$1, function (name) { return !matches(val, name); });
  22011. });
  22012. },
  22013. render: function render () {
  22014. var slot = this.$slots.default;
  22015. var vnode = getFirstComponentChild(slot);
  22016. var componentOptions = vnode && vnode.componentOptions;
  22017. if (componentOptions) {
  22018. // check pattern
  22019. var name = getComponentName(componentOptions);
  22020. var ref = this;
  22021. var include = ref.include;
  22022. var exclude = ref.exclude;
  22023. if (
  22024. // not included
  22025. (include && (!name || !matches(include, name))) ||
  22026. // excluded
  22027. (exclude && name && matches(exclude, name))
  22028. ) {
  22029. return vnode
  22030. }
  22031. var ref$1 = this;
  22032. var cache = ref$1.cache;
  22033. var keys = ref$1.keys;
  22034. var key = vnode.key == null
  22035. // same constructor may get registered as different local components
  22036. // so cid alone is not enough (#3269)
  22037. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  22038. : vnode.key;
  22039. if (cache[key]) {
  22040. vnode.componentInstance = cache[key].componentInstance;
  22041. // make current key freshest
  22042. remove(keys, key);
  22043. keys.push(key);
  22044. } else {
  22045. cache[key] = vnode;
  22046. keys.push(key);
  22047. // prune oldest entry
  22048. if (this.max && keys.length > parseInt(this.max)) {
  22049. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  22050. }
  22051. }
  22052. vnode.data.keepAlive = true;
  22053. }
  22054. return vnode || (slot && slot[0])
  22055. }
  22056. };
  22057. var builtInComponents = {
  22058. KeepAlive: KeepAlive
  22059. };
  22060. /* */
  22061. function initGlobalAPI (Vue) {
  22062. // config
  22063. var configDef = {};
  22064. configDef.get = function () { return config; };
  22065. if (true) {
  22066. configDef.set = function () {
  22067. warn(
  22068. 'Do not replace the Vue.config object, set individual fields instead.'
  22069. );
  22070. };
  22071. }
  22072. Object.defineProperty(Vue, 'config', configDef);
  22073. // exposed util methods.
  22074. // NOTE: these are not considered part of the public API - avoid relying on
  22075. // them unless you are aware of the risk.
  22076. Vue.util = {
  22077. warn: warn,
  22078. extend: extend,
  22079. mergeOptions: mergeOptions,
  22080. defineReactive: defineReactive$$1
  22081. };
  22082. Vue.set = set;
  22083. Vue.delete = del;
  22084. Vue.nextTick = nextTick;
  22085. // 2.6 explicit observable API
  22086. Vue.observable = function (obj) {
  22087. observe(obj);
  22088. return obj
  22089. };
  22090. Vue.options = Object.create(null);
  22091. ASSET_TYPES.forEach(function (type) {
  22092. Vue.options[type + 's'] = Object.create(null);
  22093. });
  22094. // this is used to identify the "base" constructor to extend all plain-object
  22095. // components with in Weex's multi-instance scenarios.
  22096. Vue.options._base = Vue;
  22097. extend(Vue.options.components, builtInComponents);
  22098. initUse(Vue);
  22099. initMixin$1(Vue);
  22100. initExtend(Vue);
  22101. initAssetRegisters(Vue);
  22102. }
  22103. initGlobalAPI(Vue);
  22104. Object.defineProperty(Vue.prototype, '$isServer', {
  22105. get: isServerRendering
  22106. });
  22107. Object.defineProperty(Vue.prototype, '$ssrContext', {
  22108. get: function get () {
  22109. /* istanbul ignore next */
  22110. return this.$vnode && this.$vnode.ssrContext
  22111. }
  22112. });
  22113. // expose FunctionalRenderContext for ssr runtime helper installation
  22114. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  22115. value: FunctionalRenderContext
  22116. });
  22117. Vue.version = '2.6.11';
  22118. /**
  22119. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  22120. */
  22121. var ARRAYTYPE = '[object Array]';
  22122. var OBJECTTYPE = '[object Object]';
  22123. var NULLTYPE = '[object Null]';
  22124. var UNDEFINEDTYPE = '[object Undefined]';
  22125. // const FUNCTIONTYPE = '[object Function]'
  22126. function diff(current, pre) {
  22127. var result = {};
  22128. syncKeys(current, pre);
  22129. _diff(current, pre, '', result);
  22130. return result
  22131. }
  22132. function syncKeys(current, pre) {
  22133. if (current === pre) { return }
  22134. var rootCurrentType = type(current);
  22135. var rootPreType = type(pre);
  22136. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  22137. if(Object.keys(current).length >= Object.keys(pre).length){
  22138. for (var key in pre) {
  22139. var currentValue = current[key];
  22140. if (currentValue === undefined) {
  22141. current[key] = null;
  22142. } else {
  22143. syncKeys(currentValue, pre[key]);
  22144. }
  22145. }
  22146. }
  22147. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  22148. if (current.length >= pre.length) {
  22149. pre.forEach(function (item, index) {
  22150. syncKeys(current[index], item);
  22151. });
  22152. }
  22153. }
  22154. }
  22155. function nullOrUndefined(currentType, preType) {
  22156. if(
  22157. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  22158. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  22159. ) {
  22160. return false
  22161. }
  22162. return true
  22163. }
  22164. function _diff(current, pre, path, result) {
  22165. if (current === pre) { return }
  22166. var rootCurrentType = type(current);
  22167. var rootPreType = type(pre);
  22168. if (rootCurrentType == OBJECTTYPE) {
  22169. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  22170. setResult(result, path, current);
  22171. } else {
  22172. var loop = function ( key ) {
  22173. var currentValue = current[key];
  22174. var preValue = pre[key];
  22175. var currentType = type(currentValue);
  22176. var preType = type(preValue);
  22177. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  22178. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  22179. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  22180. }
  22181. } else if (currentType == ARRAYTYPE) {
  22182. if (preType != ARRAYTYPE) {
  22183. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  22184. } else {
  22185. if (currentValue.length < preValue.length) {
  22186. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  22187. } else {
  22188. currentValue.forEach(function (item, index) {
  22189. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  22190. });
  22191. }
  22192. }
  22193. } else if (currentType == OBJECTTYPE) {
  22194. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  22195. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  22196. } else {
  22197. for (var subKey in currentValue) {
  22198. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  22199. }
  22200. }
  22201. }
  22202. };
  22203. for (var key in current) loop( key );
  22204. }
  22205. } else if (rootCurrentType == ARRAYTYPE) {
  22206. if (rootPreType != ARRAYTYPE) {
  22207. setResult(result, path, current);
  22208. } else {
  22209. if (current.length < pre.length) {
  22210. setResult(result, path, current);
  22211. } else {
  22212. current.forEach(function (item, index) {
  22213. _diff(item, pre[index], path + '[' + index + ']', result);
  22214. });
  22215. }
  22216. }
  22217. } else {
  22218. setResult(result, path, current);
  22219. }
  22220. }
  22221. function setResult(result, k, v) {
  22222. // if (type(v) != FUNCTIONTYPE) {
  22223. result[k] = v;
  22224. // }
  22225. }
  22226. function type(obj) {
  22227. return Object.prototype.toString.call(obj)
  22228. }
  22229. /* */
  22230. function flushCallbacks$1(vm) {
  22231. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  22232. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"香花畦","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  22233. var mpInstance = vm.$scope;
  22234. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  22235. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  22236. }
  22237. var copies = vm.__next_tick_callbacks.slice(0);
  22238. vm.__next_tick_callbacks.length = 0;
  22239. for (var i = 0; i < copies.length; i++) {
  22240. copies[i]();
  22241. }
  22242. }
  22243. }
  22244. function hasRenderWatcher(vm) {
  22245. return queue.find(function (watcher) { return vm._watcher === watcher; })
  22246. }
  22247. function nextTick$1(vm, cb) {
  22248. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  22249. //2.nextTick 之前存在 render watcher
  22250. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  22251. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"香花畦","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  22252. var mpInstance = vm.$scope;
  22253. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  22254. ']:nextVueTick');
  22255. }
  22256. return nextTick(cb, vm)
  22257. }else{
  22258. if(Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"香花畦","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG){
  22259. var mpInstance$1 = vm.$scope;
  22260. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  22261. ']:nextMPTick');
  22262. }
  22263. }
  22264. var _resolve;
  22265. if (!vm.__next_tick_callbacks) {
  22266. vm.__next_tick_callbacks = [];
  22267. }
  22268. vm.__next_tick_callbacks.push(function () {
  22269. if (cb) {
  22270. try {
  22271. cb.call(vm);
  22272. } catch (e) {
  22273. handleError(e, vm, 'nextTick');
  22274. }
  22275. } else if (_resolve) {
  22276. _resolve(vm);
  22277. }
  22278. });
  22279. // $flow-disable-line
  22280. if (!cb && typeof Promise !== 'undefined') {
  22281. return new Promise(function (resolve) {
  22282. _resolve = resolve;
  22283. })
  22284. }
  22285. }
  22286. /* */
  22287. function clearInstance(key, value) {
  22288. // 简易去除 Vue 和小程序组件实例
  22289. if (value) {
  22290. if (value._isVue || value.__v_isMPComponent) {
  22291. return {}
  22292. }
  22293. }
  22294. return value
  22295. }
  22296. function cloneWithData(vm) {
  22297. // 确保当前 vm 所有数据被同步
  22298. var ret = Object.create(null);
  22299. var dataKeys = [].concat(
  22300. Object.keys(vm._data || {}),
  22301. Object.keys(vm._computedWatchers || {}));
  22302. dataKeys.reduce(function(ret, key) {
  22303. ret[key] = vm[key];
  22304. return ret
  22305. }, ret);
  22306. // vue-composition-api
  22307. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  22308. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  22309. if (rawBindings) {
  22310. Object.keys(rawBindings).forEach(function (key) {
  22311. ret[key] = vm[key];
  22312. });
  22313. }
  22314. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  22315. Object.assign(ret, vm.$mp.data || {});
  22316. if (
  22317. Array.isArray(vm.$options.behaviors) &&
  22318. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  22319. ) { //form-field
  22320. ret['name'] = vm.name;
  22321. ret['value'] = vm.value;
  22322. }
  22323. return JSON.parse(JSON.stringify(ret, clearInstance))
  22324. }
  22325. var patch = function(oldVnode, vnode) {
  22326. var this$1 = this;
  22327. if (vnode === null) { //destroy
  22328. return
  22329. }
  22330. if (this.mpType === 'page' || this.mpType === 'component') {
  22331. var mpInstance = this.$scope;
  22332. var data = Object.create(null);
  22333. try {
  22334. data = cloneWithData(this);
  22335. } catch (err) {
  22336. console.error(err);
  22337. }
  22338. data.__webviewId__ = mpInstance.data.__webviewId__;
  22339. var mpData = Object.create(null);
  22340. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  22341. mpData[key] = mpInstance.data[key];
  22342. });
  22343. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  22344. if (Object.keys(diffData).length) {
  22345. if (Object({"VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"香花畦","VUE_APP_PLATFORM":"mp-weixin","NODE_ENV":"development","BASE_URL":"/"}).VUE_APP_DEBUG) {
  22346. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  22347. ']差量更新',
  22348. JSON.stringify(diffData));
  22349. }
  22350. this.__next_tick_pending = true;
  22351. mpInstance.setData(diffData, function () {
  22352. this$1.__next_tick_pending = false;
  22353. flushCallbacks$1(this$1);
  22354. });
  22355. } else {
  22356. flushCallbacks$1(this);
  22357. }
  22358. }
  22359. };
  22360. /* */
  22361. function createEmptyRender() {
  22362. }
  22363. function mountComponent$1(
  22364. vm,
  22365. el,
  22366. hydrating
  22367. ) {
  22368. if (!vm.mpType) {//main.js 中的 new Vue
  22369. return vm
  22370. }
  22371. if (vm.mpType === 'app') {
  22372. vm.$options.render = createEmptyRender;
  22373. }
  22374. if (!vm.$options.render) {
  22375. vm.$options.render = createEmptyRender;
  22376. if (true) {
  22377. /* istanbul ignore if */
  22378. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  22379. vm.$options.el || el) {
  22380. warn(
  22381. 'You are using the runtime-only build of Vue where the template ' +
  22382. 'compiler is not available. Either pre-compile the templates into ' +
  22383. 'render functions, or use the compiler-included build.',
  22384. vm
  22385. );
  22386. } else {
  22387. warn(
  22388. 'Failed to mount component: template or render function not defined.',
  22389. vm
  22390. );
  22391. }
  22392. }
  22393. }
  22394. !vm._$fallback && callHook(vm, 'beforeMount');
  22395. var updateComponent = function () {
  22396. vm._update(vm._render(), hydrating);
  22397. };
  22398. // we set this to vm._watcher inside the watcher's constructor
  22399. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  22400. // component's mounted hook), which relies on vm._watcher being already defined
  22401. new Watcher(vm, updateComponent, noop, {
  22402. before: function before() {
  22403. if (vm._isMounted && !vm._isDestroyed) {
  22404. callHook(vm, 'beforeUpdate');
  22405. }
  22406. }
  22407. }, true /* isRenderWatcher */);
  22408. hydrating = false;
  22409. return vm
  22410. }
  22411. /* */
  22412. function renderClass (
  22413. staticClass,
  22414. dynamicClass
  22415. ) {
  22416. if (isDef(staticClass) || isDef(dynamicClass)) {
  22417. return concat(staticClass, stringifyClass(dynamicClass))
  22418. }
  22419. /* istanbul ignore next */
  22420. return ''
  22421. }
  22422. function concat (a, b) {
  22423. return a ? b ? (a + ' ' + b) : a : (b || '')
  22424. }
  22425. function stringifyClass (value) {
  22426. if (Array.isArray(value)) {
  22427. return stringifyArray(value)
  22428. }
  22429. if (isObject(value)) {
  22430. return stringifyObject(value)
  22431. }
  22432. if (typeof value === 'string') {
  22433. return value
  22434. }
  22435. /* istanbul ignore next */
  22436. return ''
  22437. }
  22438. function stringifyArray (value) {
  22439. var res = '';
  22440. var stringified;
  22441. for (var i = 0, l = value.length; i < l; i++) {
  22442. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  22443. if (res) { res += ' '; }
  22444. res += stringified;
  22445. }
  22446. }
  22447. return res
  22448. }
  22449. function stringifyObject (value) {
  22450. var res = '';
  22451. for (var key in value) {
  22452. if (value[key]) {
  22453. if (res) { res += ' '; }
  22454. res += key;
  22455. }
  22456. }
  22457. return res
  22458. }
  22459. /* */
  22460. var parseStyleText = cached(function (cssText) {
  22461. var res = {};
  22462. var listDelimiter = /;(?![^(]*\))/g;
  22463. var propertyDelimiter = /:(.+)/;
  22464. cssText.split(listDelimiter).forEach(function (item) {
  22465. if (item) {
  22466. var tmp = item.split(propertyDelimiter);
  22467. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  22468. }
  22469. });
  22470. return res
  22471. });
  22472. // normalize possible array / string values into Object
  22473. function normalizeStyleBinding (bindingStyle) {
  22474. if (Array.isArray(bindingStyle)) {
  22475. return toObject(bindingStyle)
  22476. }
  22477. if (typeof bindingStyle === 'string') {
  22478. return parseStyleText(bindingStyle)
  22479. }
  22480. return bindingStyle
  22481. }
  22482. /* */
  22483. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  22484. function getTarget(obj, path) {
  22485. var parts = path.split('.');
  22486. var key = parts[0];
  22487. if (key.indexOf('__$n') === 0) { //number index
  22488. key = parseInt(key.replace('__$n', ''));
  22489. }
  22490. if (parts.length === 1) {
  22491. return obj[key]
  22492. }
  22493. return getTarget(obj[key], parts.slice(1).join('.'))
  22494. }
  22495. function internalMixin(Vue) {
  22496. Vue.config.errorHandler = function(err, vm, info) {
  22497. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  22498. console.error(err);
  22499. /* eslint-disable no-undef */
  22500. var app = typeof getApp === 'function' && getApp();
  22501. if (app && app.onError) {
  22502. app.onError(err);
  22503. }
  22504. };
  22505. var oldEmit = Vue.prototype.$emit;
  22506. Vue.prototype.$emit = function(event) {
  22507. if (this.$scope && event) {
  22508. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  22509. if (triggerEvent) {
  22510. try {
  22511. triggerEvent.call(this.$scope, event, {
  22512. __args__: toArray(arguments, 1)
  22513. });
  22514. } catch (error) {
  22515. }
  22516. }
  22517. }
  22518. return oldEmit.apply(this, arguments)
  22519. };
  22520. Vue.prototype.$nextTick = function(fn) {
  22521. return nextTick$1(this, fn)
  22522. };
  22523. MP_METHODS.forEach(function (method) {
  22524. Vue.prototype[method] = function(args) {
  22525. if (this.$scope && this.$scope[method]) {
  22526. return this.$scope[method](args)
  22527. }
  22528. // mp-alipay
  22529. if (typeof my === 'undefined') {
  22530. return
  22531. }
  22532. if (method === 'createSelectorQuery') {
  22533. /* eslint-disable no-undef */
  22534. return my.createSelectorQuery(args)
  22535. } else if (method === 'createIntersectionObserver') {
  22536. /* eslint-disable no-undef */
  22537. return my.createIntersectionObserver(args)
  22538. }
  22539. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  22540. };
  22541. });
  22542. Vue.prototype.__init_provide = initProvide;
  22543. Vue.prototype.__init_injections = initInjections;
  22544. Vue.prototype.__call_hook = function(hook, args) {
  22545. var vm = this;
  22546. // #7573 disable dep collection when invoking lifecycle hooks
  22547. pushTarget();
  22548. var handlers = vm.$options[hook];
  22549. var info = hook + " hook";
  22550. var ret;
  22551. if (handlers) {
  22552. for (var i = 0, j = handlers.length; i < j; i++) {
  22553. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  22554. }
  22555. }
  22556. if (vm._hasHookEvent) {
  22557. vm.$emit('hook:' + hook, args);
  22558. }
  22559. popTarget();
  22560. return ret
  22561. };
  22562. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  22563. if (Array.isArray(modifiers)) {
  22564. if (modifiers.indexOf('trim') !== -1) {
  22565. value = value.trim();
  22566. }
  22567. if (modifiers.indexOf('number') !== -1) {
  22568. value = this._n(value);
  22569. }
  22570. }
  22571. if (!target) {
  22572. target = this;
  22573. }
  22574. // 解决动态属性添加
  22575. Vue.set(target, key, value);
  22576. };
  22577. Vue.prototype.__set_sync = function(target, key, value) {
  22578. if (!target) {
  22579. target = this;
  22580. }
  22581. // 解决动态属性添加
  22582. Vue.set(target, key, value);
  22583. };
  22584. Vue.prototype.__get_orig = function(item) {
  22585. if (isPlainObject(item)) {
  22586. return item['$orig'] || item
  22587. }
  22588. return item
  22589. };
  22590. Vue.prototype.__get_value = function(dataPath, target) {
  22591. return getTarget(target || this, dataPath)
  22592. };
  22593. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  22594. return renderClass(staticClass, dynamicClass)
  22595. };
  22596. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  22597. if (!dynamicStyle && !staticStyle) {
  22598. return ''
  22599. }
  22600. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  22601. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  22602. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  22603. };
  22604. Vue.prototype.__map = function(val, iteratee) {
  22605. //TODO 暂不考虑 string
  22606. var ret, i, l, keys, key;
  22607. if (Array.isArray(val)) {
  22608. ret = new Array(val.length);
  22609. for (i = 0, l = val.length; i < l; i++) {
  22610. ret[i] = iteratee(val[i], i);
  22611. }
  22612. return ret
  22613. } else if (isObject(val)) {
  22614. keys = Object.keys(val);
  22615. ret = Object.create(null);
  22616. for (i = 0, l = keys.length; i < l; i++) {
  22617. key = keys[i];
  22618. ret[key] = iteratee(val[key], key, i);
  22619. }
  22620. return ret
  22621. } else if (typeof val === 'number') {
  22622. ret = new Array(val);
  22623. for (i = 0, l = val; i < l; i++) {
  22624. // 第一个参数暂时仍和小程序一致
  22625. ret[i] = iteratee(i, i);
  22626. }
  22627. return ret
  22628. }
  22629. return []
  22630. };
  22631. }
  22632. /* */
  22633. var LIFECYCLE_HOOKS$1 = [
  22634. //App
  22635. 'onLaunch',
  22636. 'onShow',
  22637. 'onHide',
  22638. 'onUniNViewMessage',
  22639. 'onPageNotFound',
  22640. 'onThemeChange',
  22641. 'onError',
  22642. 'onUnhandledRejection',
  22643. //Page
  22644. 'onInit',
  22645. 'onLoad',
  22646. // 'onShow',
  22647. 'onReady',
  22648. // 'onHide',
  22649. 'onUnload',
  22650. 'onPullDownRefresh',
  22651. 'onReachBottom',
  22652. 'onTabItemTap',
  22653. 'onAddToFavorites',
  22654. 'onShareTimeline',
  22655. 'onShareAppMessage',
  22656. 'onResize',
  22657. 'onPageScroll',
  22658. 'onNavigationBarButtonTap',
  22659. 'onBackPress',
  22660. 'onNavigationBarSearchInputChanged',
  22661. 'onNavigationBarSearchInputConfirmed',
  22662. 'onNavigationBarSearchInputClicked',
  22663. 'onUploadDouyinVideo',
  22664. 'onNFCReadMessage',
  22665. //Component
  22666. // 'onReady', // 兼容旧版本,应该移除该事件
  22667. 'onPageShow',
  22668. 'onPageHide',
  22669. 'onPageResize'
  22670. ];
  22671. function lifecycleMixin$1(Vue) {
  22672. //fixed vue-class-component
  22673. var oldExtend = Vue.extend;
  22674. Vue.extend = function(extendOptions) {
  22675. extendOptions = extendOptions || {};
  22676. var methods = extendOptions.methods;
  22677. if (methods) {
  22678. Object.keys(methods).forEach(function (methodName) {
  22679. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  22680. extendOptions[methodName] = methods[methodName];
  22681. delete methods[methodName];
  22682. }
  22683. });
  22684. }
  22685. return oldExtend.call(this, extendOptions)
  22686. };
  22687. var strategies = Vue.config.optionMergeStrategies;
  22688. var mergeHook = strategies.created;
  22689. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  22690. strategies[hook] = mergeHook;
  22691. });
  22692. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  22693. }
  22694. /* */
  22695. // install platform patch function
  22696. Vue.prototype.__patch__ = patch;
  22697. // public mount method
  22698. Vue.prototype.$mount = function(
  22699. el ,
  22700. hydrating
  22701. ) {
  22702. return mountComponent$1(this, el, hydrating)
  22703. };
  22704. lifecycleMixin$1(Vue);
  22705. internalMixin(Vue);
  22706. /* */
  22707. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  22708. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  22709. /***/ }),
  22710. /***/ 26:
  22711. /*!***********************************!*\
  22712. !*** D:/工作/项目2/华畦/xcw/pages.json ***!
  22713. \***********************************/
  22714. /*! no static exports found */
  22715. /***/ (function(module, exports) {
  22716. /***/ }),
  22717. /***/ 3:
  22718. /*!***********************************!*\
  22719. !*** (webpack)/buildin/global.js ***!
  22720. \***********************************/
  22721. /*! no static exports found */
  22722. /***/ (function(module, exports) {
  22723. var g;
  22724. // This works in non-strict mode
  22725. g = (function() {
  22726. return this;
  22727. })();
  22728. try {
  22729. // This works if eval is allowed (see CSP)
  22730. g = g || new Function("return this")();
  22731. } catch (e) {
  22732. // This works if the window reference is available
  22733. if (typeof window === "object") g = window;
  22734. }
  22735. // g can still be undefined, but nothing to do about it...
  22736. // We return undefined, instead of nothing here, so it's
  22737. // easier to handle this case. if(!global) { ...}
  22738. module.exports = g;
  22739. /***/ }),
  22740. /***/ 30:
  22741. /*!************************************************************************************************!*\
  22742. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  22743. \************************************************************************************************/
  22744. /*! no static exports found */
  22745. /***/ (function(module, exports, __webpack_require__) {
  22746. // TODO(Babel 8): Remove this file.
  22747. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 31)();
  22748. module.exports = runtime;
  22749. /***/ }),
  22750. /***/ 31:
  22751. /*!*******************************************************************!*\
  22752. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  22753. \*******************************************************************/
  22754. /*! no static exports found */
  22755. /***/ (function(module, exports, __webpack_require__) {
  22756. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  22757. function _regeneratorRuntime() {
  22758. "use strict";
  22759. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  22760. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  22761. return exports;
  22762. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  22763. var exports = {},
  22764. Op = Object.prototype,
  22765. hasOwn = Op.hasOwnProperty,
  22766. defineProperty = Object.defineProperty || function (obj, key, desc) {
  22767. obj[key] = desc.value;
  22768. },
  22769. $Symbol = "function" == typeof Symbol ? Symbol : {},
  22770. iteratorSymbol = $Symbol.iterator || "@@iterator",
  22771. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  22772. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  22773. function define(obj, key, value) {
  22774. return Object.defineProperty(obj, key, {
  22775. value: value,
  22776. enumerable: !0,
  22777. configurable: !0,
  22778. writable: !0
  22779. }), obj[key];
  22780. }
  22781. try {
  22782. define({}, "");
  22783. } catch (err) {
  22784. define = function define(obj, key, value) {
  22785. return obj[key] = value;
  22786. };
  22787. }
  22788. function wrap(innerFn, outerFn, self, tryLocsList) {
  22789. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  22790. generator = Object.create(protoGenerator.prototype),
  22791. context = new Context(tryLocsList || []);
  22792. return defineProperty(generator, "_invoke", {
  22793. value: makeInvokeMethod(innerFn, self, context)
  22794. }), generator;
  22795. }
  22796. function tryCatch(fn, obj, arg) {
  22797. try {
  22798. return {
  22799. type: "normal",
  22800. arg: fn.call(obj, arg)
  22801. };
  22802. } catch (err) {
  22803. return {
  22804. type: "throw",
  22805. arg: err
  22806. };
  22807. }
  22808. }
  22809. exports.wrap = wrap;
  22810. var ContinueSentinel = {};
  22811. function Generator() {}
  22812. function GeneratorFunction() {}
  22813. function GeneratorFunctionPrototype() {}
  22814. var IteratorPrototype = {};
  22815. define(IteratorPrototype, iteratorSymbol, function () {
  22816. return this;
  22817. });
  22818. var getProto = Object.getPrototypeOf,
  22819. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  22820. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  22821. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  22822. function defineIteratorMethods(prototype) {
  22823. ["next", "throw", "return"].forEach(function (method) {
  22824. define(prototype, method, function (arg) {
  22825. return this._invoke(method, arg);
  22826. });
  22827. });
  22828. }
  22829. function AsyncIterator(generator, PromiseImpl) {
  22830. function invoke(method, arg, resolve, reject) {
  22831. var record = tryCatch(generator[method], generator, arg);
  22832. if ("throw" !== record.type) {
  22833. var result = record.arg,
  22834. value = result.value;
  22835. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  22836. invoke("next", value, resolve, reject);
  22837. }, function (err) {
  22838. invoke("throw", err, resolve, reject);
  22839. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  22840. result.value = unwrapped, resolve(result);
  22841. }, function (error) {
  22842. return invoke("throw", error, resolve, reject);
  22843. });
  22844. }
  22845. reject(record.arg);
  22846. }
  22847. var previousPromise;
  22848. defineProperty(this, "_invoke", {
  22849. value: function value(method, arg) {
  22850. function callInvokeWithMethodAndArg() {
  22851. return new PromiseImpl(function (resolve, reject) {
  22852. invoke(method, arg, resolve, reject);
  22853. });
  22854. }
  22855. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  22856. }
  22857. });
  22858. }
  22859. function makeInvokeMethod(innerFn, self, context) {
  22860. var state = "suspendedStart";
  22861. return function (method, arg) {
  22862. if ("executing" === state) throw new Error("Generator is already running");
  22863. if ("completed" === state) {
  22864. if ("throw" === method) throw arg;
  22865. return doneResult();
  22866. }
  22867. for (context.method = method, context.arg = arg;;) {
  22868. var delegate = context.delegate;
  22869. if (delegate) {
  22870. var delegateResult = maybeInvokeDelegate(delegate, context);
  22871. if (delegateResult) {
  22872. if (delegateResult === ContinueSentinel) continue;
  22873. return delegateResult;
  22874. }
  22875. }
  22876. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  22877. if ("suspendedStart" === state) throw state = "completed", context.arg;
  22878. context.dispatchException(context.arg);
  22879. } else "return" === context.method && context.abrupt("return", context.arg);
  22880. state = "executing";
  22881. var record = tryCatch(innerFn, self, context);
  22882. if ("normal" === record.type) {
  22883. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  22884. return {
  22885. value: record.arg,
  22886. done: context.done
  22887. };
  22888. }
  22889. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  22890. }
  22891. };
  22892. }
  22893. function maybeInvokeDelegate(delegate, context) {
  22894. var methodName = context.method,
  22895. method = delegate.iterator[methodName];
  22896. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  22897. var record = tryCatch(method, delegate.iterator, context.arg);
  22898. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  22899. var info = record.arg;
  22900. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  22901. }
  22902. function pushTryEntry(locs) {
  22903. var entry = {
  22904. tryLoc: locs[0]
  22905. };
  22906. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  22907. }
  22908. function resetTryEntry(entry) {
  22909. var record = entry.completion || {};
  22910. record.type = "normal", delete record.arg, entry.completion = record;
  22911. }
  22912. function Context(tryLocsList) {
  22913. this.tryEntries = [{
  22914. tryLoc: "root"
  22915. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  22916. }
  22917. function values(iterable) {
  22918. if (iterable) {
  22919. var iteratorMethod = iterable[iteratorSymbol];
  22920. if (iteratorMethod) return iteratorMethod.call(iterable);
  22921. if ("function" == typeof iterable.next) return iterable;
  22922. if (!isNaN(iterable.length)) {
  22923. var i = -1,
  22924. next = function next() {
  22925. for (; ++i < iterable.length;) {
  22926. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  22927. }
  22928. return next.value = undefined, next.done = !0, next;
  22929. };
  22930. return next.next = next;
  22931. }
  22932. }
  22933. return {
  22934. next: doneResult
  22935. };
  22936. }
  22937. function doneResult() {
  22938. return {
  22939. value: undefined,
  22940. done: !0
  22941. };
  22942. }
  22943. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  22944. value: GeneratorFunctionPrototype,
  22945. configurable: !0
  22946. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  22947. value: GeneratorFunction,
  22948. configurable: !0
  22949. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  22950. var ctor = "function" == typeof genFun && genFun.constructor;
  22951. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  22952. }, exports.mark = function (genFun) {
  22953. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  22954. }, exports.awrap = function (arg) {
  22955. return {
  22956. __await: arg
  22957. };
  22958. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  22959. return this;
  22960. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  22961. void 0 === PromiseImpl && (PromiseImpl = Promise);
  22962. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  22963. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  22964. return result.done ? result.value : iter.next();
  22965. });
  22966. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  22967. return this;
  22968. }), define(Gp, "toString", function () {
  22969. return "[object Generator]";
  22970. }), exports.keys = function (val) {
  22971. var object = Object(val),
  22972. keys = [];
  22973. for (var key in object) {
  22974. keys.push(key);
  22975. }
  22976. return keys.reverse(), function next() {
  22977. for (; keys.length;) {
  22978. var key = keys.pop();
  22979. if (key in object) return next.value = key, next.done = !1, next;
  22980. }
  22981. return next.done = !0, next;
  22982. };
  22983. }, exports.values = values, Context.prototype = {
  22984. constructor: Context,
  22985. reset: function reset(skipTempReset) {
  22986. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  22987. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  22988. }
  22989. },
  22990. stop: function stop() {
  22991. this.done = !0;
  22992. var rootRecord = this.tryEntries[0].completion;
  22993. if ("throw" === rootRecord.type) throw rootRecord.arg;
  22994. return this.rval;
  22995. },
  22996. dispatchException: function dispatchException(exception) {
  22997. if (this.done) throw exception;
  22998. var context = this;
  22999. function handle(loc, caught) {
  23000. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  23001. }
  23002. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  23003. var entry = this.tryEntries[i],
  23004. record = entry.completion;
  23005. if ("root" === entry.tryLoc) return handle("end");
  23006. if (entry.tryLoc <= this.prev) {
  23007. var hasCatch = hasOwn.call(entry, "catchLoc"),
  23008. hasFinally = hasOwn.call(entry, "finallyLoc");
  23009. if (hasCatch && hasFinally) {
  23010. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  23011. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  23012. } else if (hasCatch) {
  23013. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  23014. } else {
  23015. if (!hasFinally) throw new Error("try statement without catch or finally");
  23016. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  23017. }
  23018. }
  23019. }
  23020. },
  23021. abrupt: function abrupt(type, arg) {
  23022. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  23023. var entry = this.tryEntries[i];
  23024. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  23025. var finallyEntry = entry;
  23026. break;
  23027. }
  23028. }
  23029. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  23030. var record = finallyEntry ? finallyEntry.completion : {};
  23031. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  23032. },
  23033. complete: function complete(record, afterLoc) {
  23034. if ("throw" === record.type) throw record.arg;
  23035. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  23036. },
  23037. finish: function finish(finallyLoc) {
  23038. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  23039. var entry = this.tryEntries[i];
  23040. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  23041. }
  23042. },
  23043. "catch": function _catch(tryLoc) {
  23044. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  23045. var entry = this.tryEntries[i];
  23046. if (entry.tryLoc === tryLoc) {
  23047. var record = entry.completion;
  23048. if ("throw" === record.type) {
  23049. var thrown = record.arg;
  23050. resetTryEntry(entry);
  23051. }
  23052. return thrown;
  23053. }
  23054. }
  23055. throw new Error("illegal catch attempt");
  23056. },
  23057. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  23058. return this.delegate = {
  23059. iterator: values(iterable),
  23060. resultName: resultName,
  23061. nextLoc: nextLoc
  23062. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  23063. }
  23064. }, exports;
  23065. }
  23066. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  23067. /***/ }),
  23068. /***/ 32:
  23069. /*!*****************************************************************!*\
  23070. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  23071. \*****************************************************************/
  23072. /*! no static exports found */
  23073. /***/ (function(module, exports) {
  23074. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  23075. try {
  23076. var info = gen[key](arg);
  23077. var value = info.value;
  23078. } catch (error) {
  23079. reject(error);
  23080. return;
  23081. }
  23082. if (info.done) {
  23083. resolve(value);
  23084. } else {
  23085. Promise.resolve(value).then(_next, _throw);
  23086. }
  23087. }
  23088. function _asyncToGenerator(fn) {
  23089. return function () {
  23090. var self = this,
  23091. args = arguments;
  23092. return new Promise(function (resolve, reject) {
  23093. var gen = fn.apply(self, args);
  23094. function _next(value) {
  23095. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  23096. }
  23097. function _throw(err) {
  23098. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  23099. }
  23100. _next(undefined);
  23101. });
  23102. };
  23103. }
  23104. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  23105. /***/ }),
  23106. /***/ 33:
  23107. /*!**************************************************************************************!*\
  23108. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vuex3/dist/vuex.common.js ***!
  23109. \**************************************************************************************/
  23110. /*! no static exports found */
  23111. /***/ (function(module, exports, __webpack_require__) {
  23112. "use strict";
  23113. /* WEBPACK VAR INJECTION */(function(global) {/*!
  23114. * vuex v3.6.2
  23115. * (c) 2021 Evan You
  23116. * @license MIT
  23117. */
  23118. function applyMixin (Vue) {
  23119. var version = Number(Vue.version.split('.')[0]);
  23120. if (version >= 2) {
  23121. Vue.mixin({ beforeCreate: vuexInit });
  23122. } else {
  23123. // override init and inject vuex init procedure
  23124. // for 1.x backwards compatibility.
  23125. var _init = Vue.prototype._init;
  23126. Vue.prototype._init = function (options) {
  23127. if ( options === void 0 ) options = {};
  23128. options.init = options.init
  23129. ? [vuexInit].concat(options.init)
  23130. : vuexInit;
  23131. _init.call(this, options);
  23132. };
  23133. }
  23134. /**
  23135. * Vuex init hook, injected into each instances init hooks list.
  23136. */
  23137. function vuexInit () {
  23138. var options = this.$options;
  23139. // store injection
  23140. if (options.store) {
  23141. this.$store = typeof options.store === 'function'
  23142. ? options.store()
  23143. : options.store;
  23144. } else if (options.parent && options.parent.$store) {
  23145. this.$store = options.parent.$store;
  23146. }
  23147. }
  23148. }
  23149. var target = typeof window !== 'undefined'
  23150. ? window
  23151. : typeof global !== 'undefined'
  23152. ? global
  23153. : {};
  23154. var devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  23155. function devtoolPlugin (store) {
  23156. if (!devtoolHook) { return }
  23157. store._devtoolHook = devtoolHook;
  23158. devtoolHook.emit('vuex:init', store);
  23159. devtoolHook.on('vuex:travel-to-state', function (targetState) {
  23160. store.replaceState(targetState);
  23161. });
  23162. store.subscribe(function (mutation, state) {
  23163. devtoolHook.emit('vuex:mutation', mutation, state);
  23164. }, { prepend: true });
  23165. store.subscribeAction(function (action, state) {
  23166. devtoolHook.emit('vuex:action', action, state);
  23167. }, { prepend: true });
  23168. }
  23169. /**
  23170. * Get the first item that pass the test
  23171. * by second argument function
  23172. *
  23173. * @param {Array} list
  23174. * @param {Function} f
  23175. * @return {*}
  23176. */
  23177. function find (list, f) {
  23178. return list.filter(f)[0]
  23179. }
  23180. /**
  23181. * Deep copy the given object considering circular structure.
  23182. * This function caches all nested objects and its copies.
  23183. * If it detects circular structure, use cached copy to avoid infinite loop.
  23184. *
  23185. * @param {*} obj
  23186. * @param {Array<Object>} cache
  23187. * @return {*}
  23188. */
  23189. function deepCopy (obj, cache) {
  23190. if ( cache === void 0 ) cache = [];
  23191. // just return if obj is immutable value
  23192. if (obj === null || typeof obj !== 'object') {
  23193. return obj
  23194. }
  23195. // if obj is hit, it is in circular structure
  23196. var hit = find(cache, function (c) { return c.original === obj; });
  23197. if (hit) {
  23198. return hit.copy
  23199. }
  23200. var copy = Array.isArray(obj) ? [] : {};
  23201. // put the copy into cache at first
  23202. // because we want to refer it in recursive deepCopy
  23203. cache.push({
  23204. original: obj,
  23205. copy: copy
  23206. });
  23207. Object.keys(obj).forEach(function (key) {
  23208. copy[key] = deepCopy(obj[key], cache);
  23209. });
  23210. return copy
  23211. }
  23212. /**
  23213. * forEach for object
  23214. */
  23215. function forEachValue (obj, fn) {
  23216. Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });
  23217. }
  23218. function isObject (obj) {
  23219. return obj !== null && typeof obj === 'object'
  23220. }
  23221. function isPromise (val) {
  23222. return val && typeof val.then === 'function'
  23223. }
  23224. function assert (condition, msg) {
  23225. if (!condition) { throw new Error(("[vuex] " + msg)) }
  23226. }
  23227. function partial (fn, arg) {
  23228. return function () {
  23229. return fn(arg)
  23230. }
  23231. }
  23232. // Base data struct for store's module, package with some attribute and method
  23233. var Module = function Module (rawModule, runtime) {
  23234. this.runtime = runtime;
  23235. // Store some children item
  23236. this._children = Object.create(null);
  23237. // Store the origin module object which passed by programmer
  23238. this._rawModule = rawModule;
  23239. var rawState = rawModule.state;
  23240. // Store the origin module's state
  23241. this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};
  23242. };
  23243. var prototypeAccessors = { namespaced: { configurable: true } };
  23244. prototypeAccessors.namespaced.get = function () {
  23245. return !!this._rawModule.namespaced
  23246. };
  23247. Module.prototype.addChild = function addChild (key, module) {
  23248. this._children[key] = module;
  23249. };
  23250. Module.prototype.removeChild = function removeChild (key) {
  23251. delete this._children[key];
  23252. };
  23253. Module.prototype.getChild = function getChild (key) {
  23254. return this._children[key]
  23255. };
  23256. Module.prototype.hasChild = function hasChild (key) {
  23257. return key in this._children
  23258. };
  23259. Module.prototype.update = function update (rawModule) {
  23260. this._rawModule.namespaced = rawModule.namespaced;
  23261. if (rawModule.actions) {
  23262. this._rawModule.actions = rawModule.actions;
  23263. }
  23264. if (rawModule.mutations) {
  23265. this._rawModule.mutations = rawModule.mutations;
  23266. }
  23267. if (rawModule.getters) {
  23268. this._rawModule.getters = rawModule.getters;
  23269. }
  23270. };
  23271. Module.prototype.forEachChild = function forEachChild (fn) {
  23272. forEachValue(this._children, fn);
  23273. };
  23274. Module.prototype.forEachGetter = function forEachGetter (fn) {
  23275. if (this._rawModule.getters) {
  23276. forEachValue(this._rawModule.getters, fn);
  23277. }
  23278. };
  23279. Module.prototype.forEachAction = function forEachAction (fn) {
  23280. if (this._rawModule.actions) {
  23281. forEachValue(this._rawModule.actions, fn);
  23282. }
  23283. };
  23284. Module.prototype.forEachMutation = function forEachMutation (fn) {
  23285. if (this._rawModule.mutations) {
  23286. forEachValue(this._rawModule.mutations, fn);
  23287. }
  23288. };
  23289. Object.defineProperties( Module.prototype, prototypeAccessors );
  23290. var ModuleCollection = function ModuleCollection (rawRootModule) {
  23291. // register root module (Vuex.Store options)
  23292. this.register([], rawRootModule, false);
  23293. };
  23294. ModuleCollection.prototype.get = function get (path) {
  23295. return path.reduce(function (module, key) {
  23296. return module.getChild(key)
  23297. }, this.root)
  23298. };
  23299. ModuleCollection.prototype.getNamespace = function getNamespace (path) {
  23300. var module = this.root;
  23301. return path.reduce(function (namespace, key) {
  23302. module = module.getChild(key);
  23303. return namespace + (module.namespaced ? key + '/' : '')
  23304. }, '')
  23305. };
  23306. ModuleCollection.prototype.update = function update$1 (rawRootModule) {
  23307. update([], this.root, rawRootModule);
  23308. };
  23309. ModuleCollection.prototype.register = function register (path, rawModule, runtime) {
  23310. var this$1 = this;
  23311. if ( runtime === void 0 ) runtime = true;
  23312. if ((true)) {
  23313. assertRawModule(path, rawModule);
  23314. }
  23315. var newModule = new Module(rawModule, runtime);
  23316. if (path.length === 0) {
  23317. this.root = newModule;
  23318. } else {
  23319. var parent = this.get(path.slice(0, -1));
  23320. parent.addChild(path[path.length - 1], newModule);
  23321. }
  23322. // register nested modules
  23323. if (rawModule.modules) {
  23324. forEachValue(rawModule.modules, function (rawChildModule, key) {
  23325. this$1.register(path.concat(key), rawChildModule, runtime);
  23326. });
  23327. }
  23328. };
  23329. ModuleCollection.prototype.unregister = function unregister (path) {
  23330. var parent = this.get(path.slice(0, -1));
  23331. var key = path[path.length - 1];
  23332. var child = parent.getChild(key);
  23333. if (!child) {
  23334. if ((true)) {
  23335. console.warn(
  23336. "[vuex] trying to unregister module '" + key + "', which is " +
  23337. "not registered"
  23338. );
  23339. }
  23340. return
  23341. }
  23342. if (!child.runtime) {
  23343. return
  23344. }
  23345. parent.removeChild(key);
  23346. };
  23347. ModuleCollection.prototype.isRegistered = function isRegistered (path) {
  23348. var parent = this.get(path.slice(0, -1));
  23349. var key = path[path.length - 1];
  23350. if (parent) {
  23351. return parent.hasChild(key)
  23352. }
  23353. return false
  23354. };
  23355. function update (path, targetModule, newModule) {
  23356. if ((true)) {
  23357. assertRawModule(path, newModule);
  23358. }
  23359. // update target module
  23360. targetModule.update(newModule);
  23361. // update nested modules
  23362. if (newModule.modules) {
  23363. for (var key in newModule.modules) {
  23364. if (!targetModule.getChild(key)) {
  23365. if ((true)) {
  23366. console.warn(
  23367. "[vuex] trying to add a new module '" + key + "' on hot reloading, " +
  23368. 'manual reload is needed'
  23369. );
  23370. }
  23371. return
  23372. }
  23373. update(
  23374. path.concat(key),
  23375. targetModule.getChild(key),
  23376. newModule.modules[key]
  23377. );
  23378. }
  23379. }
  23380. }
  23381. var functionAssert = {
  23382. assert: function (value) { return typeof value === 'function'; },
  23383. expected: 'function'
  23384. };
  23385. var objectAssert = {
  23386. assert: function (value) { return typeof value === 'function' ||
  23387. (typeof value === 'object' && typeof value.handler === 'function'); },
  23388. expected: 'function or object with "handler" function'
  23389. };
  23390. var assertTypes = {
  23391. getters: functionAssert,
  23392. mutations: functionAssert,
  23393. actions: objectAssert
  23394. };
  23395. function assertRawModule (path, rawModule) {
  23396. Object.keys(assertTypes).forEach(function (key) {
  23397. if (!rawModule[key]) { return }
  23398. var assertOptions = assertTypes[key];
  23399. forEachValue(rawModule[key], function (value, type) {
  23400. assert(
  23401. assertOptions.assert(value),
  23402. makeAssertionMessage(path, key, type, value, assertOptions.expected)
  23403. );
  23404. });
  23405. });
  23406. }
  23407. function makeAssertionMessage (path, key, type, value, expected) {
  23408. var buf = key + " should be " + expected + " but \"" + key + "." + type + "\"";
  23409. if (path.length > 0) {
  23410. buf += " in module \"" + (path.join('.')) + "\"";
  23411. }
  23412. buf += " is " + (JSON.stringify(value)) + ".";
  23413. return buf
  23414. }
  23415. var Vue; // bind on install
  23416. var Store = function Store (options) {
  23417. var this$1 = this;
  23418. if ( options === void 0 ) options = {};
  23419. // Auto install if it is not done yet and `window` has `Vue`.
  23420. // To allow users to avoid auto-installation in some cases,
  23421. // this code should be placed here. See #731
  23422. if (!Vue && typeof window !== 'undefined' && window.Vue) {
  23423. install(window.Vue);
  23424. }
  23425. if ((true)) {
  23426. assert(Vue, "must call Vue.use(Vuex) before creating a store instance.");
  23427. assert(typeof Promise !== 'undefined', "vuex requires a Promise polyfill in this browser.");
  23428. assert(this instanceof Store, "store must be called with the new operator.");
  23429. }
  23430. var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];
  23431. var strict = options.strict; if ( strict === void 0 ) strict = false;
  23432. // store internal state
  23433. this._committing = false;
  23434. this._actions = Object.create(null);
  23435. this._actionSubscribers = [];
  23436. this._mutations = Object.create(null);
  23437. this._wrappedGetters = Object.create(null);
  23438. this._modules = new ModuleCollection(options);
  23439. this._modulesNamespaceMap = Object.create(null);
  23440. this._subscribers = [];
  23441. this._watcherVM = new Vue();
  23442. this._makeLocalGettersCache = Object.create(null);
  23443. // bind commit and dispatch to self
  23444. var store = this;
  23445. var ref = this;
  23446. var dispatch = ref.dispatch;
  23447. var commit = ref.commit;
  23448. this.dispatch = function boundDispatch (type, payload) {
  23449. return dispatch.call(store, type, payload)
  23450. };
  23451. this.commit = function boundCommit (type, payload, options) {
  23452. return commit.call(store, type, payload, options)
  23453. };
  23454. // strict mode
  23455. this.strict = strict;
  23456. var state = this._modules.root.state;
  23457. // init root module.
  23458. // this also recursively registers all sub-modules
  23459. // and collects all module getters inside this._wrappedGetters
  23460. installModule(this, state, [], this._modules.root);
  23461. // initialize the store vm, which is responsible for the reactivity
  23462. // (also registers _wrappedGetters as computed properties)
  23463. resetStoreVM(this, state);
  23464. // apply plugins
  23465. plugins.forEach(function (plugin) { return plugin(this$1); });
  23466. var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;
  23467. if (useDevtools) {
  23468. devtoolPlugin(this);
  23469. }
  23470. };
  23471. var prototypeAccessors$1 = { state: { configurable: true } };
  23472. prototypeAccessors$1.state.get = function () {
  23473. return this._vm._data.$$state
  23474. };
  23475. prototypeAccessors$1.state.set = function (v) {
  23476. if ((true)) {
  23477. assert(false, "use store.replaceState() to explicit replace store state.");
  23478. }
  23479. };
  23480. Store.prototype.commit = function commit (_type, _payload, _options) {
  23481. var this$1 = this;
  23482. // check object-style commit
  23483. var ref = unifyObjectStyle(_type, _payload, _options);
  23484. var type = ref.type;
  23485. var payload = ref.payload;
  23486. var options = ref.options;
  23487. var mutation = { type: type, payload: payload };
  23488. var entry = this._mutations[type];
  23489. if (!entry) {
  23490. if ((true)) {
  23491. console.error(("[vuex] unknown mutation type: " + type));
  23492. }
  23493. return
  23494. }
  23495. this._withCommit(function () {
  23496. entry.forEach(function commitIterator (handler) {
  23497. handler(payload);
  23498. });
  23499. });
  23500. this._subscribers
  23501. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  23502. .forEach(function (sub) { return sub(mutation, this$1.state); });
  23503. if (
  23504. ( true) &&
  23505. options && options.silent
  23506. ) {
  23507. console.warn(
  23508. "[vuex] mutation type: " + type + ". Silent option has been removed. " +
  23509. 'Use the filter functionality in the vue-devtools'
  23510. );
  23511. }
  23512. };
  23513. Store.prototype.dispatch = function dispatch (_type, _payload) {
  23514. var this$1 = this;
  23515. // check object-style dispatch
  23516. var ref = unifyObjectStyle(_type, _payload);
  23517. var type = ref.type;
  23518. var payload = ref.payload;
  23519. var action = { type: type, payload: payload };
  23520. var entry = this._actions[type];
  23521. if (!entry) {
  23522. if ((true)) {
  23523. console.error(("[vuex] unknown action type: " + type));
  23524. }
  23525. return
  23526. }
  23527. try {
  23528. this._actionSubscribers
  23529. .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe
  23530. .filter(function (sub) { return sub.before; })
  23531. .forEach(function (sub) { return sub.before(action, this$1.state); });
  23532. } catch (e) {
  23533. if ((true)) {
  23534. console.warn("[vuex] error in before action subscribers: ");
  23535. console.error(e);
  23536. }
  23537. }
  23538. var result = entry.length > 1
  23539. ? Promise.all(entry.map(function (handler) { return handler(payload); }))
  23540. : entry[0](payload);
  23541. return new Promise(function (resolve, reject) {
  23542. result.then(function (res) {
  23543. try {
  23544. this$1._actionSubscribers
  23545. .filter(function (sub) { return sub.after; })
  23546. .forEach(function (sub) { return sub.after(action, this$1.state); });
  23547. } catch (e) {
  23548. if ((true)) {
  23549. console.warn("[vuex] error in after action subscribers: ");
  23550. console.error(e);
  23551. }
  23552. }
  23553. resolve(res);
  23554. }, function (error) {
  23555. try {
  23556. this$1._actionSubscribers
  23557. .filter(function (sub) { return sub.error; })
  23558. .forEach(function (sub) { return sub.error(action, this$1.state, error); });
  23559. } catch (e) {
  23560. if ((true)) {
  23561. console.warn("[vuex] error in error action subscribers: ");
  23562. console.error(e);
  23563. }
  23564. }
  23565. reject(error);
  23566. });
  23567. })
  23568. };
  23569. Store.prototype.subscribe = function subscribe (fn, options) {
  23570. return genericSubscribe(fn, this._subscribers, options)
  23571. };
  23572. Store.prototype.subscribeAction = function subscribeAction (fn, options) {
  23573. var subs = typeof fn === 'function' ? { before: fn } : fn;
  23574. return genericSubscribe(subs, this._actionSubscribers, options)
  23575. };
  23576. Store.prototype.watch = function watch (getter, cb, options) {
  23577. var this$1 = this;
  23578. if ((true)) {
  23579. assert(typeof getter === 'function', "store.watch only accepts a function.");
  23580. }
  23581. return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)
  23582. };
  23583. Store.prototype.replaceState = function replaceState (state) {
  23584. var this$1 = this;
  23585. this._withCommit(function () {
  23586. this$1._vm._data.$$state = state;
  23587. });
  23588. };
  23589. Store.prototype.registerModule = function registerModule (path, rawModule, options) {
  23590. if ( options === void 0 ) options = {};
  23591. if (typeof path === 'string') { path = [path]; }
  23592. if ((true)) {
  23593. assert(Array.isArray(path), "module path must be a string or an Array.");
  23594. assert(path.length > 0, 'cannot register the root module by using registerModule.');
  23595. }
  23596. this._modules.register(path, rawModule);
  23597. installModule(this, this.state, path, this._modules.get(path), options.preserveState);
  23598. // reset store to update getters...
  23599. resetStoreVM(this, this.state);
  23600. };
  23601. Store.prototype.unregisterModule = function unregisterModule (path) {
  23602. var this$1 = this;
  23603. if (typeof path === 'string') { path = [path]; }
  23604. if ((true)) {
  23605. assert(Array.isArray(path), "module path must be a string or an Array.");
  23606. }
  23607. this._modules.unregister(path);
  23608. this._withCommit(function () {
  23609. var parentState = getNestedState(this$1.state, path.slice(0, -1));
  23610. Vue.delete(parentState, path[path.length - 1]);
  23611. });
  23612. resetStore(this);
  23613. };
  23614. Store.prototype.hasModule = function hasModule (path) {
  23615. if (typeof path === 'string') { path = [path]; }
  23616. if ((true)) {
  23617. assert(Array.isArray(path), "module path must be a string or an Array.");
  23618. }
  23619. return this._modules.isRegistered(path)
  23620. };
  23621. Store.prototype[[104,111,116,85,112,100,97,116,101].map(function (item) {return String.fromCharCode(item)}).join('')] = function (newOptions) {
  23622. this._modules.update(newOptions);
  23623. resetStore(this, true);
  23624. };
  23625. Store.prototype._withCommit = function _withCommit (fn) {
  23626. var committing = this._committing;
  23627. this._committing = true;
  23628. fn();
  23629. this._committing = committing;
  23630. };
  23631. Object.defineProperties( Store.prototype, prototypeAccessors$1 );
  23632. function genericSubscribe (fn, subs, options) {
  23633. if (subs.indexOf(fn) < 0) {
  23634. options && options.prepend
  23635. ? subs.unshift(fn)
  23636. : subs.push(fn);
  23637. }
  23638. return function () {
  23639. var i = subs.indexOf(fn);
  23640. if (i > -1) {
  23641. subs.splice(i, 1);
  23642. }
  23643. }
  23644. }
  23645. function resetStore (store, hot) {
  23646. store._actions = Object.create(null);
  23647. store._mutations = Object.create(null);
  23648. store._wrappedGetters = Object.create(null);
  23649. store._modulesNamespaceMap = Object.create(null);
  23650. var state = store.state;
  23651. // init all modules
  23652. installModule(store, state, [], store._modules.root, true);
  23653. // reset vm
  23654. resetStoreVM(store, state, hot);
  23655. }
  23656. function resetStoreVM (store, state, hot) {
  23657. var oldVm = store._vm;
  23658. // bind store public getters
  23659. store.getters = {};
  23660. // reset local getters cache
  23661. store._makeLocalGettersCache = Object.create(null);
  23662. var wrappedGetters = store._wrappedGetters;
  23663. var computed = {};
  23664. forEachValue(wrappedGetters, function (fn, key) {
  23665. // use computed to leverage its lazy-caching mechanism
  23666. // direct inline function use will lead to closure preserving oldVm.
  23667. // using partial to return function with only arguments preserved in closure environment.
  23668. computed[key] = partial(fn, store);
  23669. Object.defineProperty(store.getters, key, {
  23670. get: function () { return store._vm[key]; },
  23671. enumerable: true // for local getters
  23672. });
  23673. });
  23674. // use a Vue instance to store the state tree
  23675. // suppress warnings just in case the user has added
  23676. // some funky global mixins
  23677. var silent = Vue.config.silent;
  23678. Vue.config.silent = true;
  23679. store._vm = new Vue({
  23680. data: {
  23681. $$state: state
  23682. },
  23683. computed: computed
  23684. });
  23685. Vue.config.silent = silent;
  23686. // enable strict mode for new vm
  23687. if (store.strict) {
  23688. enableStrictMode(store);
  23689. }
  23690. if (oldVm) {
  23691. if (hot) {
  23692. // dispatch changes in all subscribed watchers
  23693. // to force getter re-evaluation for hot reloading.
  23694. store._withCommit(function () {
  23695. oldVm._data.$$state = null;
  23696. });
  23697. }
  23698. Vue.nextTick(function () { return oldVm.$destroy(); });
  23699. }
  23700. }
  23701. function installModule (store, rootState, path, module, hot) {
  23702. var isRoot = !path.length;
  23703. var namespace = store._modules.getNamespace(path);
  23704. // register in namespace map
  23705. if (module.namespaced) {
  23706. if (store._modulesNamespaceMap[namespace] && ("development" !== 'production')) {
  23707. console.error(("[vuex] duplicate namespace " + namespace + " for the namespaced module " + (path.join('/'))));
  23708. }
  23709. store._modulesNamespaceMap[namespace] = module;
  23710. }
  23711. // set state
  23712. if (!isRoot && !hot) {
  23713. var parentState = getNestedState(rootState, path.slice(0, -1));
  23714. var moduleName = path[path.length - 1];
  23715. store._withCommit(function () {
  23716. if ((true)) {
  23717. if (moduleName in parentState) {
  23718. console.warn(
  23719. ("[vuex] state field \"" + moduleName + "\" was overridden by a module with the same name at \"" + (path.join('.')) + "\"")
  23720. );
  23721. }
  23722. }
  23723. Vue.set(parentState, moduleName, module.state);
  23724. });
  23725. }
  23726. var local = module.context = makeLocalContext(store, namespace, path);
  23727. module.forEachMutation(function (mutation, key) {
  23728. var namespacedType = namespace + key;
  23729. registerMutation(store, namespacedType, mutation, local);
  23730. });
  23731. module.forEachAction(function (action, key) {
  23732. var type = action.root ? key : namespace + key;
  23733. var handler = action.handler || action;
  23734. registerAction(store, type, handler, local);
  23735. });
  23736. module.forEachGetter(function (getter, key) {
  23737. var namespacedType = namespace + key;
  23738. registerGetter(store, namespacedType, getter, local);
  23739. });
  23740. module.forEachChild(function (child, key) {
  23741. installModule(store, rootState, path.concat(key), child, hot);
  23742. });
  23743. }
  23744. /**
  23745. * make localized dispatch, commit, getters and state
  23746. * if there is no namespace, just use root ones
  23747. */
  23748. function makeLocalContext (store, namespace, path) {
  23749. var noNamespace = namespace === '';
  23750. var local = {
  23751. dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {
  23752. var args = unifyObjectStyle(_type, _payload, _options);
  23753. var payload = args.payload;
  23754. var options = args.options;
  23755. var type = args.type;
  23756. if (!options || !options.root) {
  23757. type = namespace + type;
  23758. if (( true) && !store._actions[type]) {
  23759. console.error(("[vuex] unknown local action type: " + (args.type) + ", global type: " + type));
  23760. return
  23761. }
  23762. }
  23763. return store.dispatch(type, payload)
  23764. },
  23765. commit: noNamespace ? store.commit : function (_type, _payload, _options) {
  23766. var args = unifyObjectStyle(_type, _payload, _options);
  23767. var payload = args.payload;
  23768. var options = args.options;
  23769. var type = args.type;
  23770. if (!options || !options.root) {
  23771. type = namespace + type;
  23772. if (( true) && !store._mutations[type]) {
  23773. console.error(("[vuex] unknown local mutation type: " + (args.type) + ", global type: " + type));
  23774. return
  23775. }
  23776. }
  23777. store.commit(type, payload, options);
  23778. }
  23779. };
  23780. // getters and state object must be gotten lazily
  23781. // because they will be changed by vm update
  23782. Object.defineProperties(local, {
  23783. getters: {
  23784. get: noNamespace
  23785. ? function () { return store.getters; }
  23786. : function () { return makeLocalGetters(store, namespace); }
  23787. },
  23788. state: {
  23789. get: function () { return getNestedState(store.state, path); }
  23790. }
  23791. });
  23792. return local
  23793. }
  23794. function makeLocalGetters (store, namespace) {
  23795. if (!store._makeLocalGettersCache[namespace]) {
  23796. var gettersProxy = {};
  23797. var splitPos = namespace.length;
  23798. Object.keys(store.getters).forEach(function (type) {
  23799. // skip if the target getter is not match this namespace
  23800. if (type.slice(0, splitPos) !== namespace) { return }
  23801. // extract local getter type
  23802. var localType = type.slice(splitPos);
  23803. // Add a port to the getters proxy.
  23804. // Define as getter property because
  23805. // we do not want to evaluate the getters in this time.
  23806. Object.defineProperty(gettersProxy, localType, {
  23807. get: function () { return store.getters[type]; },
  23808. enumerable: true
  23809. });
  23810. });
  23811. store._makeLocalGettersCache[namespace] = gettersProxy;
  23812. }
  23813. return store._makeLocalGettersCache[namespace]
  23814. }
  23815. function registerMutation (store, type, handler, local) {
  23816. var entry = store._mutations[type] || (store._mutations[type] = []);
  23817. entry.push(function wrappedMutationHandler (payload) {
  23818. handler.call(store, local.state, payload);
  23819. });
  23820. }
  23821. function registerAction (store, type, handler, local) {
  23822. var entry = store._actions[type] || (store._actions[type] = []);
  23823. entry.push(function wrappedActionHandler (payload) {
  23824. var res = handler.call(store, {
  23825. dispatch: local.dispatch,
  23826. commit: local.commit,
  23827. getters: local.getters,
  23828. state: local.state,
  23829. rootGetters: store.getters,
  23830. rootState: store.state
  23831. }, payload);
  23832. if (!isPromise(res)) {
  23833. res = Promise.resolve(res);
  23834. }
  23835. if (store._devtoolHook) {
  23836. return res.catch(function (err) {
  23837. store._devtoolHook.emit('vuex:error', err);
  23838. throw err
  23839. })
  23840. } else {
  23841. return res
  23842. }
  23843. });
  23844. }
  23845. function registerGetter (store, type, rawGetter, local) {
  23846. if (store._wrappedGetters[type]) {
  23847. if ((true)) {
  23848. console.error(("[vuex] duplicate getter key: " + type));
  23849. }
  23850. return
  23851. }
  23852. store._wrappedGetters[type] = function wrappedGetter (store) {
  23853. return rawGetter(
  23854. local.state, // local state
  23855. local.getters, // local getters
  23856. store.state, // root state
  23857. store.getters // root getters
  23858. )
  23859. };
  23860. }
  23861. function enableStrictMode (store) {
  23862. store._vm.$watch(function () { return this._data.$$state }, function () {
  23863. if ((true)) {
  23864. assert(store._committing, "do not mutate vuex store state outside mutation handlers.");
  23865. }
  23866. }, { deep: true, sync: true });
  23867. }
  23868. function getNestedState (state, path) {
  23869. return path.reduce(function (state, key) { return state[key]; }, state)
  23870. }
  23871. function unifyObjectStyle (type, payload, options) {
  23872. if (isObject(type) && type.type) {
  23873. options = payload;
  23874. payload = type;
  23875. type = type.type;
  23876. }
  23877. if ((true)) {
  23878. assert(typeof type === 'string', ("expects string as the type, but found " + (typeof type) + "."));
  23879. }
  23880. return { type: type, payload: payload, options: options }
  23881. }
  23882. function install (_Vue) {
  23883. if (Vue && _Vue === Vue) {
  23884. if ((true)) {
  23885. console.error(
  23886. '[vuex] already installed. Vue.use(Vuex) should be called only once.'
  23887. );
  23888. }
  23889. return
  23890. }
  23891. Vue = _Vue;
  23892. applyMixin(Vue);
  23893. }
  23894. /**
  23895. * Reduce the code which written in Vue.js for getting the state.
  23896. * @param {String} [namespace] - Module's namespace
  23897. * @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.
  23898. * @param {Object}
  23899. */
  23900. var mapState = normalizeNamespace(function (namespace, states) {
  23901. var res = {};
  23902. if (( true) && !isValidMap(states)) {
  23903. console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');
  23904. }
  23905. normalizeMap(states).forEach(function (ref) {
  23906. var key = ref.key;
  23907. var val = ref.val;
  23908. res[key] = function mappedState () {
  23909. var state = this.$store.state;
  23910. var getters = this.$store.getters;
  23911. if (namespace) {
  23912. var module = getModuleByNamespace(this.$store, 'mapState', namespace);
  23913. if (!module) {
  23914. return
  23915. }
  23916. state = module.context.state;
  23917. getters = module.context.getters;
  23918. }
  23919. return typeof val === 'function'
  23920. ? val.call(this, state, getters)
  23921. : state[val]
  23922. };
  23923. // mark vuex getter for devtools
  23924. res[key].vuex = true;
  23925. });
  23926. return res
  23927. });
  23928. /**
  23929. * Reduce the code which written in Vue.js for committing the mutation
  23930. * @param {String} [namespace] - Module's namespace
  23931. * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.
  23932. * @return {Object}
  23933. */
  23934. var mapMutations = normalizeNamespace(function (namespace, mutations) {
  23935. var res = {};
  23936. if (( true) && !isValidMap(mutations)) {
  23937. console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');
  23938. }
  23939. normalizeMap(mutations).forEach(function (ref) {
  23940. var key = ref.key;
  23941. var val = ref.val;
  23942. res[key] = function mappedMutation () {
  23943. var args = [], len = arguments.length;
  23944. while ( len-- ) args[ len ] = arguments[ len ];
  23945. // Get the commit method from store
  23946. var commit = this.$store.commit;
  23947. if (namespace) {
  23948. var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);
  23949. if (!module) {
  23950. return
  23951. }
  23952. commit = module.context.commit;
  23953. }
  23954. return typeof val === 'function'
  23955. ? val.apply(this, [commit].concat(args))
  23956. : commit.apply(this.$store, [val].concat(args))
  23957. };
  23958. });
  23959. return res
  23960. });
  23961. /**
  23962. * Reduce the code which written in Vue.js for getting the getters
  23963. * @param {String} [namespace] - Module's namespace
  23964. * @param {Object|Array} getters
  23965. * @return {Object}
  23966. */
  23967. var mapGetters = normalizeNamespace(function (namespace, getters) {
  23968. var res = {};
  23969. if (( true) && !isValidMap(getters)) {
  23970. console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');
  23971. }
  23972. normalizeMap(getters).forEach(function (ref) {
  23973. var key = ref.key;
  23974. var val = ref.val;
  23975. // The namespace has been mutated by normalizeNamespace
  23976. val = namespace + val;
  23977. res[key] = function mappedGetter () {
  23978. if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {
  23979. return
  23980. }
  23981. if (( true) && !(val in this.$store.getters)) {
  23982. console.error(("[vuex] unknown getter: " + val));
  23983. return
  23984. }
  23985. return this.$store.getters[val]
  23986. };
  23987. // mark vuex getter for devtools
  23988. res[key].vuex = true;
  23989. });
  23990. return res
  23991. });
  23992. /**
  23993. * Reduce the code which written in Vue.js for dispatch the action
  23994. * @param {String} [namespace] - Module's namespace
  23995. * @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.
  23996. * @return {Object}
  23997. */
  23998. var mapActions = normalizeNamespace(function (namespace, actions) {
  23999. var res = {};
  24000. if (( true) && !isValidMap(actions)) {
  24001. console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');
  24002. }
  24003. normalizeMap(actions).forEach(function (ref) {
  24004. var key = ref.key;
  24005. var val = ref.val;
  24006. res[key] = function mappedAction () {
  24007. var args = [], len = arguments.length;
  24008. while ( len-- ) args[ len ] = arguments[ len ];
  24009. // get dispatch function from store
  24010. var dispatch = this.$store.dispatch;
  24011. if (namespace) {
  24012. var module = getModuleByNamespace(this.$store, 'mapActions', namespace);
  24013. if (!module) {
  24014. return
  24015. }
  24016. dispatch = module.context.dispatch;
  24017. }
  24018. return typeof val === 'function'
  24019. ? val.apply(this, [dispatch].concat(args))
  24020. : dispatch.apply(this.$store, [val].concat(args))
  24021. };
  24022. });
  24023. return res
  24024. });
  24025. /**
  24026. * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object
  24027. * @param {String} namespace
  24028. * @return {Object}
  24029. */
  24030. var createNamespacedHelpers = function (namespace) { return ({
  24031. mapState: mapState.bind(null, namespace),
  24032. mapGetters: mapGetters.bind(null, namespace),
  24033. mapMutations: mapMutations.bind(null, namespace),
  24034. mapActions: mapActions.bind(null, namespace)
  24035. }); };
  24036. /**
  24037. * Normalize the map
  24038. * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]
  24039. * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]
  24040. * @param {Array|Object} map
  24041. * @return {Object}
  24042. */
  24043. function normalizeMap (map) {
  24044. if (!isValidMap(map)) {
  24045. return []
  24046. }
  24047. return Array.isArray(map)
  24048. ? map.map(function (key) { return ({ key: key, val: key }); })
  24049. : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })
  24050. }
  24051. /**
  24052. * Validate whether given map is valid or not
  24053. * @param {*} map
  24054. * @return {Boolean}
  24055. */
  24056. function isValidMap (map) {
  24057. return Array.isArray(map) || isObject(map)
  24058. }
  24059. /**
  24060. * 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.
  24061. * @param {Function} fn
  24062. * @return {Function}
  24063. */
  24064. function normalizeNamespace (fn) {
  24065. return function (namespace, map) {
  24066. if (typeof namespace !== 'string') {
  24067. map = namespace;
  24068. namespace = '';
  24069. } else if (namespace.charAt(namespace.length - 1) !== '/') {
  24070. namespace += '/';
  24071. }
  24072. return fn(namespace, map)
  24073. }
  24074. }
  24075. /**
  24076. * Search a special module from store by namespace. if module not exist, print error message.
  24077. * @param {Object} store
  24078. * @param {String} helper
  24079. * @param {String} namespace
  24080. * @return {Object}
  24081. */
  24082. function getModuleByNamespace (store, helper, namespace) {
  24083. var module = store._modulesNamespaceMap[namespace];
  24084. if (( true) && !module) {
  24085. console.error(("[vuex] module namespace not found in " + helper + "(): " + namespace));
  24086. }
  24087. return module
  24088. }
  24089. // Credits: borrowed code from fcomb/redux-logger
  24090. function createLogger (ref) {
  24091. if ( ref === void 0 ) ref = {};
  24092. var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;
  24093. var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };
  24094. var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };
  24095. var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };
  24096. var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };
  24097. var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };
  24098. var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;
  24099. var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;
  24100. var logger = ref.logger; if ( logger === void 0 ) logger = console;
  24101. return function (store) {
  24102. var prevState = deepCopy(store.state);
  24103. if (typeof logger === 'undefined') {
  24104. return
  24105. }
  24106. if (logMutations) {
  24107. store.subscribe(function (mutation, state) {
  24108. var nextState = deepCopy(state);
  24109. if (filter(mutation, prevState, nextState)) {
  24110. var formattedTime = getFormattedTime();
  24111. var formattedMutation = mutationTransformer(mutation);
  24112. var message = "mutation " + (mutation.type) + formattedTime;
  24113. startMessage(logger, message, collapsed);
  24114. logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));
  24115. logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);
  24116. logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));
  24117. endMessage(logger);
  24118. }
  24119. prevState = nextState;
  24120. });
  24121. }
  24122. if (logActions) {
  24123. store.subscribeAction(function (action, state) {
  24124. if (actionFilter(action, state)) {
  24125. var formattedTime = getFormattedTime();
  24126. var formattedAction = actionTransformer(action);
  24127. var message = "action " + (action.type) + formattedTime;
  24128. startMessage(logger, message, collapsed);
  24129. logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);
  24130. endMessage(logger);
  24131. }
  24132. });
  24133. }
  24134. }
  24135. }
  24136. function startMessage (logger, message, collapsed) {
  24137. var startMessage = collapsed
  24138. ? logger.groupCollapsed
  24139. : logger.group;
  24140. // render
  24141. try {
  24142. startMessage.call(logger, message);
  24143. } catch (e) {
  24144. logger.log(message);
  24145. }
  24146. }
  24147. function endMessage (logger) {
  24148. try {
  24149. logger.groupEnd();
  24150. } catch (e) {
  24151. logger.log('—— log end ——');
  24152. }
  24153. }
  24154. function getFormattedTime () {
  24155. var time = new Date();
  24156. return (" @ " + (pad(time.getHours(), 2)) + ":" + (pad(time.getMinutes(), 2)) + ":" + (pad(time.getSeconds(), 2)) + "." + (pad(time.getMilliseconds(), 3)))
  24157. }
  24158. function repeat (str, times) {
  24159. return (new Array(times + 1)).join(str)
  24160. }
  24161. function pad (num, maxLength) {
  24162. return repeat('0', maxLength - num.toString().length) + num
  24163. }
  24164. var index_cjs = {
  24165. Store: Store,
  24166. install: install,
  24167. version: '3.6.2',
  24168. mapState: mapState,
  24169. mapMutations: mapMutations,
  24170. mapGetters: mapGetters,
  24171. mapActions: mapActions,
  24172. createNamespacedHelpers: createNamespacedHelpers,
  24173. createLogger: createLogger
  24174. };
  24175. module.exports = index_cjs;
  24176. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  24177. /***/ }),
  24178. /***/ 34:
  24179. /*!***********************************!*\
  24180. !*** D:/工作/项目2/华畦/xcw/api/app.js ***!
  24181. \***********************************/
  24182. /*! no static exports found */
  24183. /***/ (function(module, exports, __webpack_require__) {
  24184. "use strict";
  24185. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24186. Object.defineProperty(exports, "__esModule", {
  24187. value: true
  24188. });
  24189. exports.accountLogin = accountLogin;
  24190. exports.apiMnpQrCode = apiMnpQrCode;
  24191. exports.authLogin = authLogin;
  24192. exports.forgetPwd = forgetPwd;
  24193. exports.getAfterSaleGuar = getAfterSaleGuar;
  24194. exports.getBubbleLists = getBubbleLists;
  24195. exports.getChatConfig = getChatConfig;
  24196. exports.getCodeUrl = getCodeUrl;
  24197. exports.getConfig = getConfig;
  24198. exports.getJsconfig = getJsconfig;
  24199. exports.getMnpNotice = getMnpNotice;
  24200. exports.getPayway = getPayway;
  24201. exports.getPrivatePolicy = getPrivatePolicy;
  24202. exports.getRegisterCoupon = getRegisterCoupon;
  24203. exports.getServerProto = getServerProto;
  24204. exports.getService = getService;
  24205. exports.opLogin = opLogin;
  24206. exports.prepay = prepay;
  24207. exports.register = register;
  24208. exports.sendSms = sendSms;
  24209. exports.silentLogin = silentLogin;
  24210. exports.smsCodeLogin = smsCodeLogin;
  24211. exports.version = version;
  24212. exports.wechatLogin = wechatLogin;
  24213. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  24214. var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 35));
  24215. var _wechath = _interopRequireDefault(__webpack_require__(/*! @/utils/wechath5 */ 47));
  24216. var _tools = __webpack_require__(/*! @/utils/tools */ 41);
  24217. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  24218. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  24219. //获取app版本号
  24220. function version(data) {
  24221. return _request.default.post('index/version');
  24222. }
  24223. //小程序授权登录
  24224. function authLogin(data) {
  24225. return _request.default.post('account/authLogin', data);
  24226. }
  24227. //小程序静默登录
  24228. function silentLogin(data) {
  24229. return _request.default.post('account/silentLogin', data);
  24230. }
  24231. // app登录
  24232. function opLogin(data) {
  24233. return _request.default.post('account/uinAppLogin', _objectSpread(_objectSpread({}, data), {}, {
  24234. client: _tools.client
  24235. }));
  24236. }
  24237. //预支付接口
  24238. function prepay(data) {
  24239. return _request.default.post('pay/unifiedpay', _objectSpread({}, data));
  24240. }
  24241. //小程序订阅
  24242. function getMnpNotice(data) {
  24243. return _request.default.get("subscribe/lists", {
  24244. params: data
  24245. });
  24246. }
  24247. //账号登录
  24248. function accountLogin(data) {
  24249. return _request.default.post("account/login", _objectSpread(_objectSpread({}, data), {}, {
  24250. client: _tools.client
  24251. }));
  24252. }
  24253. // 登录
  24254. function wechatLogin(data) {
  24255. return _request.default.post('account/oalogin', data);
  24256. }
  24257. // 向微信请求code的链接
  24258. function getCodeUrl(params) {
  24259. return _request.default.get('account/codeurl', {
  24260. params: {
  24261. url: encodeURIComponent(location.href)
  24262. }
  24263. });
  24264. }
  24265. //微信sdk配置
  24266. function getJsconfig() {
  24267. return _request.default.get('wechat/jsconfig', {
  24268. params: {
  24269. url: encodeURIComponent(_wechath.default.signLink())
  24270. }
  24271. });
  24272. }
  24273. // 忘记密码
  24274. function forgetPwd(data) {
  24275. return _request.default.post('login_password/forget', _objectSpread(_objectSpread({}, data), {}, {
  24276. client: _tools.client
  24277. }));
  24278. }
  24279. // 发送短信
  24280. function sendSms(data) {
  24281. return _request.default.post('sms/send', _objectSpread(_objectSpread({}, data), {}, {
  24282. client: _tools.client
  24283. }));
  24284. }
  24285. // Html5 注册账号
  24286. function register(data) {
  24287. return _request.default.post('account/register', _objectSpread(_objectSpread({}, data), {}, {
  24288. client: _tools.client
  24289. }));
  24290. }
  24291. // 获取服务协议
  24292. function getServerProto() {
  24293. return _request.default.get("policy/service");
  24294. }
  24295. // 获取隐私政策
  24296. function getPrivatePolicy() {
  24297. return _request.default.get("policy/privacy");
  24298. }
  24299. // 获取售后保障
  24300. function getAfterSaleGuar() {
  24301. return _request.default.get("policy/afterSale");
  24302. }
  24303. //客服
  24304. function getService() {
  24305. return _request.default.get("setting/getPlatformCustomerService");
  24306. }
  24307. //客服配置
  24308. function getChatConfig(params) {
  24309. return _request.default.get("index/chatConfig", {
  24310. params: params
  24311. });
  24312. }
  24313. // 足迹气泡
  24314. function getBubbleLists() {
  24315. return _request.default.get("footprint/lists");
  24316. }
  24317. // 验证码登录
  24318. function smsCodeLogin(data) {
  24319. return _request.default.post('account/smsLogin', _objectSpread(_objectSpread({}, data), {}, {
  24320. client: _tools.client
  24321. }));
  24322. }
  24323. function getConfig() {
  24324. return _request.default.get("index/config");
  24325. }
  24326. // 注册赠送优惠券
  24327. function getRegisterCoupon() {
  24328. return _request.default.get('coupon/registerSendCoupon');
  24329. }
  24330. // 获取支付配置
  24331. function getPayway(params) {
  24332. return _request.default.get('order/getPayWay', {
  24333. params: params
  24334. });
  24335. }
  24336. // 小程序码
  24337. function apiMnpQrCode(params) {
  24338. return _request.default.get('share/getMnQrcode', {
  24339. params: params
  24340. });
  24341. }
  24342. /***/ }),
  24343. /***/ 35:
  24344. /*!*****************************************!*\
  24345. !*** D:/工作/项目2/华畦/xcw/utils/request.js ***!
  24346. \*****************************************/
  24347. /*! no static exports found */
  24348. /***/ (function(module, exports, __webpack_require__) {
  24349. "use strict";
  24350. /* WEBPACK VAR INJECTION */(function(uni) {
  24351. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24352. Object.defineProperty(exports, "__esModule", {
  24353. value: true
  24354. });
  24355. exports.default = void 0;
  24356. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
  24357. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  24358. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  24359. var _axios = _interopRequireDefault(__webpack_require__(/*! ../js_sdk/xtshadow-axios/axios.min */ 36));
  24360. var _store = _interopRequireDefault(__webpack_require__(/*! ../store */ 37));
  24361. var _tools = __webpack_require__(/*! ./tools */ 41);
  24362. var _cache = _interopRequireDefault(__webpack_require__(/*! ./cache */ 46));
  24363. var _cachekey = __webpack_require__(/*! ../config/cachekey */ 45);
  24364. var _app = __webpack_require__(/*! ../config/app */ 43);
  24365. var _login = __webpack_require__(/*! ./login */ 51);
  24366. var _router = __webpack_require__(/*! ../router */ 52);
  24367. // +----------------------------------------------------------------------
  24368. // | likeshop开源商城系统
  24369. // +----------------------------------------------------------------------
  24370. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  24371. // | gitee下载:https://gitee.com/likeshop_gitee
  24372. // | github下载:https://github.com/likeshop-github
  24373. // | 访问官网:https://www.likeshop.cn
  24374. // | 访问社区:https://home.likeshop.cn
  24375. // | 访问手册:http://doc.likeshop.cn
  24376. // | 微信公众号:likeshop技术社区
  24377. // | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
  24378. // | likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
  24379. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  24380. // | likeshop团队版权所有并拥有最终解释权
  24381. // +----------------------------------------------------------------------
  24382. // | author: likeshop.cn.team
  24383. // +----------------------------------------------------------------------
  24384. var index = 0;
  24385. function checkParams(params) {
  24386. if ((0, _typeof2.default)(params) != 'object') return params;
  24387. for (var key in params) {
  24388. var value = params[key];
  24389. if (value === null || value === undefined || value === "") {
  24390. delete params[key];
  24391. }
  24392. }
  24393. return params;
  24394. }
  24395. var service = _axios.default.create({
  24396. baseURL: _app.baseURL + '/api/',
  24397. timeout: 10000,
  24398. header: {
  24399. 'content-type': 'application/json'
  24400. }
  24401. });
  24402. // request拦截器
  24403. service.interceptors.request.use(function (config) {
  24404. config.data = checkParams(config.data);
  24405. config.params = checkParams(config.params);
  24406. if (config.method == 'GET') {
  24407. config.url += (0, _tools.paramsToStr)(config.params);
  24408. }
  24409. // config.header.token = store.getters.token
  24410. if (!config.header) {
  24411. config.header = {
  24412. "token": _store.default.getters.token,
  24413. "version": '3.3.3'
  24414. };
  24415. } else {
  24416. // 添加key请求头
  24417. config.header["token"] = _store.default.getters.token;
  24418. config.header["version"] = '3.3.3';
  24419. }
  24420. return config;
  24421. }, function (error) {
  24422. // Do something with request error
  24423. console.log(error); // for debug
  24424. Promise.reject(error);
  24425. });
  24426. // response 拦截器
  24427. service.interceptors.response.use( /*#__PURE__*/function () {
  24428. var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(response) {
  24429. var _response$data, code, show, msg;
  24430. return _regenerator.default.wrap(function _callee$(_context) {
  24431. while (1) {
  24432. switch (_context.prev = _context.next) {
  24433. case 0:
  24434. if (response.data) {
  24435. _response$data = response.data, code = _response$data.code, show = _response$data.show, msg = _response$data.msg;
  24436. if (code == 0 && show) {
  24437. (0, _tools.toast)({
  24438. title: msg
  24439. });
  24440. } else if (code == -1) {
  24441. _store.default.commit('logout');
  24442. (0, _login.toLogin)();
  24443. } else if (code == 301) {
  24444. // 返回上一页
  24445. (0, _tools.toast)({
  24446. title: msg
  24447. }, {
  24448. tab: 3,
  24449. url: 1
  24450. });
  24451. }
  24452. }
  24453. return _context.abrupt("return", Promise.resolve(response.data));
  24454. case 2:
  24455. case "end":
  24456. return _context.stop();
  24457. }
  24458. }
  24459. }, _callee);
  24460. }));
  24461. return function (_x) {
  24462. return _ref.apply(this, arguments);
  24463. };
  24464. }(), function (error) {
  24465. uni.showToast({
  24466. title: "系统错误",
  24467. icon: "none"
  24468. });
  24469. console.log(error);
  24470. console.log('err' + error); // for debug
  24471. return Promise.reject(error);
  24472. });
  24473. var _default = service;
  24474. exports.default = _default;
  24475. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24476. /***/ }),
  24477. /***/ 352:
  24478. /*!*****************************************************************************!*\
  24479. !*** D:/工作/项目2/华畦/xcw/components/mescroll-uni/mixins/mescroll-more-item.js ***!
  24480. \*****************************************************************************/
  24481. /*! no static exports found */
  24482. /***/ (function(module, exports, __webpack_require__) {
  24483. "use strict";
  24484. Object.defineProperty(exports, "__esModule", {
  24485. value: true
  24486. });
  24487. exports.default = void 0;
  24488. /**
  24489. * mescroll-more-item的mixins, 仅在多个 mescroll-body 写在子组件时使用 (参考 mescroll-more 案例)
  24490. */
  24491. var MescrollMoreItemMixin = {
  24492. // 支付宝小程序不支持props的mixin,需写在具体的页面中
  24493. props: {
  24494. i: Number,
  24495. // 每个tab页的专属下标
  24496. index: {
  24497. // 当前tab的下标
  24498. type: Number,
  24499. default: function _default() {
  24500. return 0;
  24501. }
  24502. }
  24503. },
  24504. data: function data() {
  24505. return {
  24506. downOption: {
  24507. auto: false // 不自动加载
  24508. },
  24509. upOption: {
  24510. auto: false // 不自动加载
  24511. },
  24512. isInit: false // 当前tab是否已初始化
  24513. };
  24514. },
  24515. watch: {
  24516. // 监听下标的变化
  24517. index: function index(val) {
  24518. if (this.i === val && !this.isInit) {
  24519. this.isInit = true; // 标记为true
  24520. this.mescroll && this.mescroll.triggerDownScroll();
  24521. }
  24522. }
  24523. },
  24524. methods: {
  24525. // 以ref的方式初始化mescroll对象 (兼容字节跳动小程序)
  24526. mescrollInitByRef: function mescrollInitByRef() {
  24527. if (!this.mescroll || !this.mescroll.resetUpScroll) {
  24528. // 字节跳动小程序编辑器不支持一个页面存在相同的ref, 多mescroll的ref需动态生成, 格式为'mescrollRef下标'
  24529. var mescrollRef = this.$refs.mescrollRef || this.$refs['mescrollRef' + this.i];
  24530. if (mescrollRef) this.mescroll = mescrollRef.mescroll;
  24531. }
  24532. },
  24533. // mescroll组件初始化的回调,可获取到mescroll对象 (覆盖mescroll-mixins.js的mescrollInit, 为了标记isInit)
  24534. mescrollInit: function mescrollInit(mescroll) {
  24535. this.mescroll = mescroll;
  24536. this.mescrollInitByRef && this.mescrollInitByRef(); // 兼容字节跳动小程序
  24537. // 自动加载当前tab的数据
  24538. if (this.i === this.index) {
  24539. this.isInit = true; // 标记为true
  24540. this.mescroll.triggerDownScroll();
  24541. }
  24542. }
  24543. }
  24544. };
  24545. var _default2 = MescrollMoreItemMixin;
  24546. exports.default = _default2;
  24547. /***/ }),
  24548. /***/ 36:
  24549. /*!***********************************************************!*\
  24550. !*** D:/工作/项目2/华畦/xcw/js_sdk/xtshadow-axios/axios.min.js ***!
  24551. \***********************************************************/
  24552. /*! no static exports found */
  24553. /***/ (function(module, exports, __webpack_require__) {
  24554. /* WEBPACK VAR INJECTION */(function(uni) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  24555. !function (t, e) {
  24556. "object" == ( false ? undefined : _typeof(exports)) && "undefined" != typeof module ? module.exports = e() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (e),
  24557. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  24558. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  24559. __WEBPACK_AMD_DEFINE_FACTORY__),
  24560. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  24561. }(this, function () {
  24562. "use strict";
  24563. var h, t, r, e;
  24564. (t = h = h || {}).GET = "GET", t.POST = "POST", t.PUT = "PUT", t.HEAD = "HEAD", t.DELETE = "DELETE", t.TRACE = "TRACE", t.CONNECT = "CONNECT", t.OPTIONS = "OPTIONS", (e = r = r || {}).TEXT = "text", e.ARRAYBUFFER = "arraybuffer";
  24565. var a = function (a) {
  24566. function u(t, e, o, r, n) {
  24567. a.call(this, t), this.config = o, this.statusCode = e, this.request = r, this.response = n, Object.setPrototypeOf(this, u.prototype);
  24568. }
  24569. return a && (u.__proto__ = a), (u.prototype = Object.create(a && a.prototype)).constructor = u;
  24570. }(Error);
  24571. function p(t, e, o, r, n) {
  24572. return new a(t, e, o, r, n);
  24573. }
  24574. function u(t) {
  24575. return (u = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (t) {
  24576. return _typeof(t);
  24577. } : function (t) {
  24578. return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : _typeof(t);
  24579. })(t);
  24580. }
  24581. var s = Object.prototype.toString;
  24582. function i(t) {
  24583. return null !== t && "object" === u(t);
  24584. }
  24585. function n(e, o) {
  24586. if (null != e) if ("object" !== u(e) && (e = [e]), n = e, "[object Array]" === s.call(n)) for (var t = 0, r = e.length; t < r; t++) {
  24587. o.call(null, e[t], t, e);
  24588. } else Object.getOwnPropertyNames(e).forEach(function (t) {
  24589. Object.prototype.hasOwnProperty.call(e, t) && "constructor" !== t && o.call(null, e[t], t, e);
  24590. });
  24591. var n;
  24592. }
  24593. function c(o, t, r) {
  24594. return n(t, function (t, e) {
  24595. o[e] = r && "function" == typeof t ? t.bind(r) : t;
  24596. }), o;
  24597. }
  24598. function f() {
  24599. for (var t = [], e = arguments.length; e--;) {
  24600. t[e] = arguments[e];
  24601. }
  24602. var o,
  24603. r,
  24604. n = Object.create(null);
  24605. for (var a = 0; a < t.length; a++) {
  24606. var u = t[a];
  24607. for (var s in u) {
  24608. o = u[s], i(n[r = s] && i(o)) ? n[r] = f(n[r], o) : i(o) ? n[r] = f({}, o) : n[r] = o;
  24609. }
  24610. }
  24611. return n;
  24612. }
  24613. function d(e, o) {
  24614. Object.keys(e).forEach(function (t) {
  24615. t !== o && t.toUpperCase() === o.toUpperCase() && (e[o] = e[t], delete e[t]);
  24616. });
  24617. }
  24618. function l(t) {
  24619. var e = t.header;
  24620. void 0 === e && (e = {});
  24621. var o,
  24622. r,
  24623. n,
  24624. a = t.method;
  24625. return void 0 === a && (a = h.GET), d(o = e, "Content-Type"), d(o, "appId"), d(o, "sessionId"), n = a, (r = e = o) && (r = f(r.common || {}, r[n.toLocaleLowerCase()] || {}, r), ["delete", "get", "head", "options", "post", "put", "patch", "common"].forEach(function (t) {
  24626. delete r[t];
  24627. })), r;
  24628. }
  24629. function y(t) {
  24630. var e = t.url;
  24631. void 0 === e && (e = "");
  24632. var o,
  24633. r,
  24634. n = t.baseURL;
  24635. return void 0 === n && (n = ""), n && !/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e) && (o = n, e = (r = e) ? o.replace(/\/+$/, "") + "/" + r.replace(/^\/+/, "") : o), e;
  24636. }
  24637. function v(t) {
  24638. var e, o;
  24639. return (e = t).cancelToken && e.cancelToken.throwIfRequested(), (o = t).header = l(o), o.url = y(o), function (a) {
  24640. var t = a.url,
  24641. e = a.method;
  24642. void 0 === e && (e = h.GET);
  24643. var u = a.data;
  24644. void 0 === u && (u = {});
  24645. var s = a.header;
  24646. void 0 === s && (s = {});
  24647. var i = a.responseType;
  24648. void 0 === i && (i = r.TEXT);
  24649. var c = a.cancelToken,
  24650. f = a.validateStatus;
  24651. return new Promise(function (o, r) {
  24652. var n = uni.request({
  24653. url: t,
  24654. header: s,
  24655. method: e,
  24656. data: u,
  24657. responseType: i,
  24658. success: function success(t) {
  24659. var e = {
  24660. data: t.data,
  24661. statusCode: t.statusCode,
  24662. header: t.header
  24663. };
  24664. !f || f(t.statusCode) ? o(e) : r(p("Request failed with status code " + e.statusCode, e.statusCode, a, n, e));
  24665. },
  24666. fail: function fail() {
  24667. r(p("Net Error", 1001, a, n));
  24668. }
  24669. });
  24670. c && c.promise.then(function (t) {
  24671. n.abort(), r(t);
  24672. });
  24673. });
  24674. }(t);
  24675. }
  24676. function o() {
  24677. this.handlers = [];
  24678. }
  24679. function E(e, o) {
  24680. var r = Object.create(null);
  24681. ["baseURL", "transformRequest", "transformResponse", "paramsSerializer", "timeout", "withCredentials", "adapter", "responseType", "xsrfCookieName", "xsrfHeaderName", "onUploadProgress", "onDownloadProgress", "maxContentLength", "validateStatus", "maxRedirects", "httpAgent", "httpsAgent", "cancelToken", "socketPath"].forEach(function (t) {
  24682. void 0 !== (o = o || {})[t] ? r[t] = o[t] : void 0 !== e[t] && (r[t] = e[t]);
  24683. });
  24684. ["url", "method", "params", "data"].forEach(function (t) {
  24685. void 0 !== (o = o || {})[t] && (r[t] = o[t]);
  24686. });
  24687. return ["header", "auth", "proxy"].forEach(function (t) {
  24688. i((o = o || {})[t]) ? r[t] = f(e[t], o[t]) : void 0 !== o[t] ? r[t] = o[t] : i(e[t]) ? r[t] = f(e[t]) : void 0 !== e[t] && (r[t] = e[t]);
  24689. }), r;
  24690. }
  24691. o.prototype.use = function (t, e) {
  24692. return this.handlers.push({
  24693. resolved: t,
  24694. rejected: e
  24695. }), this.handlers.length - 1;
  24696. }, o.prototype.eject = function (t) {
  24697. this.handlers[t] && (this.handlers[t] = null);
  24698. }, o.prototype.forEach = function (e) {
  24699. this.handlers.forEach(function (t) {
  24700. null !== t && e(t);
  24701. });
  24702. };
  24703. function T(t) {
  24704. this.defaults = t, this.interceptors = {
  24705. request: new o(),
  24706. response: new o()
  24707. };
  24708. }
  24709. T.prototype.request = function (t) {
  24710. t = E(this.defaults, t);
  24711. var e = Promise.resolve(t),
  24712. o = [{
  24713. resolved: v,
  24714. rejected: void 0
  24715. }];
  24716. for (this.interceptors.request.forEach(function (t) {
  24717. o.unshift(t);
  24718. }), this.interceptors.response.forEach(function (t) {
  24719. o.push(t);
  24720. }); 0 < o.length;) {
  24721. var r = o.shift(),
  24722. n = r.resolved,
  24723. a = r.rejected;
  24724. e = e.then(n, a);
  24725. }
  24726. return e;
  24727. }, T.prototype.get = function (t, e) {
  24728. return this._requestMethodWithoutData(h.GET, t, e);
  24729. }, T.prototype.post = function (t, e, o) {
  24730. return this._requestMethodWithData(h.POST, t, e, o);
  24731. }, T.prototype.put = function (t, e, o) {
  24732. return this._requestMethodWithData(h.PUT, t, e, o);
  24733. }, T.prototype.delete = function (t, e) {
  24734. return this._requestMethodWithoutData(h.DELETE, t, e);
  24735. }, T.prototype.connect = function (t, e) {
  24736. return this._requestMethodWithoutData(h.CONNECT, t, e);
  24737. }, T.prototype.head = function (t, e) {
  24738. return this._requestMethodWithoutData(h.HEAD, t, e);
  24739. }, T.prototype.options = function (t, e) {
  24740. return this._requestMethodWithoutData(h.OPTIONS, t, e);
  24741. }, T.prototype.trace = function (t, e) {
  24742. return this._requestMethodWithoutData(h.TRACE, t, e);
  24743. }, T.prototype._requestMethodWithData = function (t, e, o, r) {
  24744. return this.request(Object.assign(r || {}, {
  24745. method: t,
  24746. url: e,
  24747. data: o
  24748. }));
  24749. }, T.prototype._requestMethodWithoutData = function (t, e, o) {
  24750. return this.request(Object.assign(o || {}, {
  24751. method: t,
  24752. url: e
  24753. }));
  24754. }, T.prototype.getUri = function (t) {
  24755. return y(t = E(this.defaults, t));
  24756. };
  24757. function m(t) {
  24758. void 0 === t && (t = ""), this.message = t;
  24759. }
  24760. function b(t) {
  24761. var e,
  24762. o = this;
  24763. this.promise = new Promise(function (t) {
  24764. e = t;
  24765. }), t(function (t) {
  24766. o.reason || (o.reason = new m(t), e(o.reason));
  24767. });
  24768. }
  24769. var C = {
  24770. baseURL: "",
  24771. header: {},
  24772. method: h.GET,
  24773. responseType: r.TEXT,
  24774. validateStatus: function validateStatus(t) {
  24775. return 200 <= t && t < 300;
  24776. }
  24777. };
  24778. function O(t) {
  24779. var e = new T(t),
  24780. o = T.prototype.request.bind(e);
  24781. return c(o, T.prototype, e), c(o, e), o;
  24782. }
  24783. b.source = function () {
  24784. var e,
  24785. t = new b(function (t) {
  24786. e = t;
  24787. });
  24788. return {
  24789. cancel: e,
  24790. token: t
  24791. };
  24792. }, b.prototype.throwIfRequested = function () {
  24793. if (this.reason) throw this.reason;
  24794. };
  24795. var q = O(C);
  24796. return q.create = function (t) {
  24797. return O(E(C, t));
  24798. }, q.CancelToken = b, q.Cancel = m, q.isCancel = function (t) {
  24799. return t instanceof m;
  24800. }, q.all = function (t) {
  24801. return Promise.all(t);
  24802. }, q.spread = function (e) {
  24803. return function (t) {
  24804. return e.apply(null, t);
  24805. };
  24806. }, q;
  24807. });
  24808. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24809. /***/ }),
  24810. /***/ 37:
  24811. /*!***************************************!*\
  24812. !*** D:/工作/项目2/华畦/xcw/store/index.js ***!
  24813. \***************************************/
  24814. /*! no static exports found */
  24815. /***/ (function(module, exports, __webpack_require__) {
  24816. "use strict";
  24817. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24818. Object.defineProperty(exports, "__esModule", {
  24819. value: true
  24820. });
  24821. exports.default = void 0;
  24822. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  24823. var _vuex = _interopRequireDefault(__webpack_require__(/*! vuex */ 33));
  24824. var _modules = _interopRequireDefault(__webpack_require__(/*! ./modules */ 38));
  24825. var _getters = _interopRequireDefault(__webpack_require__(/*! ./getters */ 50));
  24826. _vue.default.use(_vuex.default);
  24827. var debug = "development" !== "production";
  24828. var _default = new _vuex.default.Store({
  24829. modules: _modules.default,
  24830. getters: _getters.default,
  24831. strict: debug
  24832. });
  24833. exports.default = _default;
  24834. /***/ }),
  24835. /***/ 38:
  24836. /*!***********************************************!*\
  24837. !*** D:/工作/项目2/华畦/xcw/store/modules/index.js ***!
  24838. \***********************************************/
  24839. /*! no static exports found */
  24840. /***/ (function(module, exports, __webpack_require__) {
  24841. "use strict";
  24842. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24843. Object.defineProperty(exports, "__esModule", {
  24844. value: true
  24845. });
  24846. exports.default = void 0;
  24847. var _app = _interopRequireDefault(__webpack_require__(/*! ./app */ 39));
  24848. var _city = _interopRequireDefault(__webpack_require__(/*! ./city */ 48));
  24849. var _community = _interopRequireDefault(__webpack_require__(/*! ./community */ 49));
  24850. var _default = {
  24851. app: _app.default,
  24852. city: _city.default,
  24853. community: _community.default
  24854. };
  24855. exports.default = _default;
  24856. /***/ }),
  24857. /***/ 39:
  24858. /*!*********************************************!*\
  24859. !*** D:/工作/项目2/华畦/xcw/store/modules/app.js ***!
  24860. \*********************************************/
  24861. /*! no static exports found */
  24862. /***/ (function(module, exports, __webpack_require__) {
  24863. "use strict";
  24864. /* WEBPACK VAR INJECTION */(function(uni) {
  24865. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  24866. Object.defineProperty(exports, "__esModule", {
  24867. value: true
  24868. });
  24869. exports.default = void 0;
  24870. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  24871. var _user = __webpack_require__(/*! @/api/user */ 40);
  24872. var _store = __webpack_require__(/*! @/api/store */ 44);
  24873. var _cachekey = __webpack_require__(/*! @/config/cachekey */ 45);
  24874. var _cache = _interopRequireDefault(__webpack_require__(/*! @/utils/cache */ 46));
  24875. var _wechath = _interopRequireDefault(__webpack_require__(/*! @/utils/wechath5 */ 47));
  24876. var _tools = __webpack_require__(/*! @/utils/tools */ 41);
  24877. var _app = __webpack_require__(/*! @/config/app */ 43);
  24878. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  24879. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  24880. var state = {
  24881. config: _cache.default.get(_cachekey.CONFIG) || {
  24882. center_setting: {},
  24883. index_setting: {},
  24884. navigation_menu: [],
  24885. navigation_setting: {},
  24886. share: {}
  24887. },
  24888. userInfo: {
  24889. user_money: 0,
  24890. user_integral: 0,
  24891. coupon: 0
  24892. },
  24893. token: _cache.default.get(_cachekey.TOKEN) || null,
  24894. cartNum: "",
  24895. sysInfo: {}
  24896. };
  24897. var mutations = {
  24898. login: function login(state, opt) {
  24899. state.token = opt.token;
  24900. _cache.default.set(_cachekey.TOKEN, opt.token, 59 * 24 * 60 * 60);
  24901. this.dispatch('getUser');
  24902. },
  24903. logout: function logout(state) {
  24904. state.token = undefined;
  24905. state.userInfo = {
  24906. user_money: 0,
  24907. user_integral: 0,
  24908. coupon: 0
  24909. };
  24910. _cache.default.remove(_cachekey.TOKEN);
  24911. },
  24912. setCartNum: function setCartNum(state, num) {
  24913. state.cartNum = num;
  24914. },
  24915. setUserInfo: function setUserInfo(state, user) {
  24916. state.userInfo = user;
  24917. },
  24918. setConfig: function setConfig(state, data) {
  24919. state.config = Object.assign(state.config, data);
  24920. _cache.default.set(_cachekey.CONFIG, state.config);
  24921. },
  24922. setSystemInfo: function setSystemInfo(state, data) {
  24923. state.sysInfo = data;
  24924. }
  24925. };
  24926. var actions = {
  24927. getCartNum: function getCartNum(_ref) {
  24928. var state = _ref.state,
  24929. commit = _ref.commit;
  24930. return new Promise(function (resolve) {
  24931. if (!state.token) return uni.removeTabBarBadge({
  24932. index: 3
  24933. });
  24934. (0, _store.getCartNum)().then(function (res) {
  24935. if (res.code == 1) {
  24936. commit('setCartNum', res.data.num);
  24937. if (!res.data.num) return uni.removeTabBarBadge({
  24938. index: 3
  24939. });
  24940. uni.setTabBarBadge({
  24941. index: 3,
  24942. text: String(res.data.num)
  24943. });
  24944. resolve();
  24945. }
  24946. });
  24947. });
  24948. },
  24949. getUser: function getUser(_ref2) {
  24950. var state = _ref2.state,
  24951. commit = _ref2.commit;
  24952. return new Promise(function (resolve) {
  24953. (0, _user.getUser)().then(function (res) {
  24954. if (res.code == 1) {
  24955. commit('setUserInfo', res.data);
  24956. }
  24957. resolve();
  24958. });
  24959. });
  24960. },
  24961. getSystemInfo: function getSystemInfo(_ref3) {
  24962. var state = _ref3.state,
  24963. commit = _ref3.commit;
  24964. uni.getSystemInfo({
  24965. success: function success(res) {
  24966. var statusBarHeight = res.statusBarHeight,
  24967. platform = res.platform;
  24968. var navHeight;
  24969. if (platform == 'ios' || platform == 'devtools') {
  24970. navHeight = statusBarHeight + 44;
  24971. } else {
  24972. navHeight = statusBarHeight + 48;
  24973. }
  24974. commit('setSystemInfo', _objectSpread(_objectSpread({}, res), {}, {
  24975. navHeight: navHeight
  24976. }));
  24977. console.log(state);
  24978. },
  24979. fail: function fail(err) {
  24980. console.log(err);
  24981. }
  24982. });
  24983. },
  24984. wxShare: function wxShare(_ref4, opt) {
  24985. var state = _ref4.state;
  24986. }
  24987. };
  24988. var _default = {
  24989. state: state,
  24990. mutations: mutations,
  24991. actions: actions
  24992. };
  24993. exports.default = _default;
  24994. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  24995. /***/ }),
  24996. /***/ 4:
  24997. /*!**********************************************************************!*\
  24998. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  24999. \**********************************************************************/
  25000. /*! no static exports found */
  25001. /***/ (function(module, exports) {
  25002. function _interopRequireDefault(obj) {
  25003. return obj && obj.__esModule ? obj : {
  25004. "default": obj
  25005. };
  25006. }
  25007. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  25008. /***/ }),
  25009. /***/ 40:
  25010. /*!************************************!*\
  25011. !*** D:/工作/项目2/华畦/xcw/api/user.js ***!
  25012. \************************************/
  25013. /*! no static exports found */
  25014. /***/ (function(module, exports, __webpack_require__) {
  25015. "use strict";
  25016. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25017. Object.defineProperty(exports, "__esModule", {
  25018. value: true
  25019. });
  25020. exports.addAddress = addAddress;
  25021. exports.afterSaleDetail = afterSaleDetail;
  25022. exports.apiDistributionPoster = apiDistributionPoster;
  25023. exports.applyAfterSale = applyAfterSale;
  25024. exports.applyAgain = applyAgain;
  25025. exports.applyDetail = applyDetail;
  25026. exports.applyDistribute = applyDistribute;
  25027. exports.applyWithdraw = applyWithdraw;
  25028. exports.bindSuperior = bindSuperior;
  25029. exports.cancelApply = cancelApply;
  25030. exports.changeUserMobile = changeUserMobile;
  25031. exports.chatRecord = chatRecord;
  25032. exports.collectGoods = collectGoods;
  25033. exports.delAddress = delAddress;
  25034. exports.editAddress = editAddress;
  25035. exports.getAccountLog = getAccountLog;
  25036. exports.getAddressLists = getAddressLists;
  25037. exports.getAfterSaleList = getAfterSaleList;
  25038. exports.getCollectGoods = getCollectGoods;
  25039. exports.getCollectShop = getCollectShop;
  25040. exports.getComment = getComment;
  25041. exports.getCommentInfo = getCommentInfo;
  25042. exports.getCommission = getCommission;
  25043. exports.getCopyright = getCopyright;
  25044. exports.getDefaultAddress = getDefaultAddress;
  25045. exports.getDistribution = getDistribution;
  25046. exports.getDistributionOrder = getDistributionOrder;
  25047. exports.getGoodsInfo = getGoodsInfo;
  25048. exports.getLevelList = getLevelList;
  25049. exports.getMonthBill = getMonthBill;
  25050. exports.getMonthOrderDetail = getMonthOrderDetail;
  25051. exports.getOneAddress = getOneAddress;
  25052. exports.getPrize = getPrize;
  25053. exports.getRechargeRecord = getRechargeRecord;
  25054. exports.getSuperiorInfo = getSuperiorInfo;
  25055. exports.getUnComment = getUnComment;
  25056. exports.getUser = getUser;
  25057. exports.getUserFans = getUserFans;
  25058. exports.getUserInfo = getUserInfo;
  25059. exports.getUserPoster = getUserPoster;
  25060. exports.getUserRecord = getUserRecord;
  25061. exports.getWallet = getWallet;
  25062. exports.getWithdrawConfig = getWithdrawConfig;
  25063. exports.getWithdrawDetail = getWithdrawDetail;
  25064. exports.getWithdrawRecords = getWithdrawRecords;
  25065. exports.getWxMnpMobile = getWxMnpMobile;
  25066. exports.goodsComment = goodsComment;
  25067. exports.hasRegionCode = hasRegionCode;
  25068. exports.inputExpressInfo = inputExpressInfo;
  25069. exports.nickname = nickname;
  25070. exports.recharge = recharge;
  25071. exports.rechargeTemplate = rechargeTemplate;
  25072. exports.setDefaultAddress = setDefaultAddress;
  25073. exports.setUserInfo = setUserInfo;
  25074. exports.setWechatInfo = setWechatInfo;
  25075. exports.userLogout = userLogout;
  25076. exports.veryfiyDistribute = veryfiyDistribute;
  25077. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  25078. var _request = _interopRequireDefault(__webpack_require__(/*! ../utils/request */ 35));
  25079. var _tools = __webpack_require__(/*! @/utils/tools */ 41);
  25080. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  25081. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  25082. //个人中心
  25083. function getUser() {
  25084. return _request.default.get('user/center');
  25085. }
  25086. // 地址列表
  25087. function getAddressLists() {
  25088. return _request.default.get('user_address/lists');
  25089. }
  25090. // 商品的增添取消收藏
  25091. function collectGoods(data) {
  25092. return _request.default.post('goods_collect/changeStatus', data);
  25093. }
  25094. // 添加编辑地址
  25095. function editAddress(data) {
  25096. return _request.default.post('user_address/update', data);
  25097. }
  25098. function addAddress(data) {
  25099. return _request.default.post('user_address/add', data);
  25100. }
  25101. // 删除地址
  25102. function delAddress(id) {
  25103. return _request.default.post('user_address/del', {
  25104. id: id
  25105. });
  25106. }
  25107. // 获取单个地址
  25108. function getOneAddress(id) {
  25109. return _request.default.get('user_address/detail', {
  25110. params: {
  25111. id: id
  25112. }
  25113. });
  25114. }
  25115. // 获取默认地址
  25116. function getDefaultAddress(id) {
  25117. return _request.default.get('user_address/getDefault', {
  25118. params: {
  25119. id: id
  25120. }
  25121. });
  25122. }
  25123. // 设置默认地址
  25124. function setDefaultAddress(id) {
  25125. return _request.default.post('user_address/setDefault', {
  25126. id: id
  25127. });
  25128. }
  25129. //传省市区字符串判读是否有code
  25130. function hasRegionCode(data) {
  25131. return _request.default.post('user_address/handleRegion', data);
  25132. }
  25133. // 获取评价信息
  25134. function getCommentInfo(params) {
  25135. return _request.default.get("goods_comment/getCommentPage", {
  25136. params: params
  25137. });
  25138. }
  25139. // 未评价列表
  25140. function getUnComment(params) {
  25141. return _request.default.get("goods_comment/getUnCommentOrder", {
  25142. params: params
  25143. });
  25144. }
  25145. // 已评价列表
  25146. function getComment(params) {
  25147. return _request.default.get("goods_comment/getCommentOrder", {
  25148. params: params
  25149. });
  25150. }
  25151. //商品评价
  25152. function goodsComment(data) {
  25153. return _request.default.post("goods_comment/addGoodsComment", data);
  25154. }
  25155. // 获取抽奖配置
  25156. function getPrize(data) {
  25157. return _request.default.get("Luckdraw/prize", data);
  25158. }
  25159. // 抽奖记录
  25160. function getUserRecord(data) {
  25161. return _request.default.get("Luckdraw/record", data);
  25162. }
  25163. // 获取个人详情
  25164. function getUserInfo() {
  25165. return _request.default.get('user/info');
  25166. }
  25167. // 获取资质信息
  25168. function getCopyright(data) {
  25169. return _request.default.get('index/copyright', {
  25170. data: data
  25171. });
  25172. }
  25173. // 设置个人信息
  25174. function setUserInfo(data) {
  25175. return _request.default.post('user/setInfo', data);
  25176. }
  25177. // 获取手机号
  25178. function getWxMnpMobile(data) {
  25179. return _request.default.post('user/getMobile', data);
  25180. }
  25181. //更新微信信息
  25182. function setWechatInfo(data) {
  25183. return _request.default.post('user/setWechatInfo', data);
  25184. }
  25185. // 更换手机号
  25186. function changeUserMobile(data) {
  25187. return _request.default.post("user/changeMobile", _objectSpread(_objectSpread({}, data), {}, {
  25188. client: _tools.client
  25189. }));
  25190. }
  25191. //会员中心
  25192. function getLevelList() {
  25193. return _request.default.get('user/getUserLevelInfo');
  25194. }
  25195. // 用户钱包
  25196. function getWallet() {
  25197. return _request.default.get("user/myWallet");
  25198. }
  25199. // 账户流水
  25200. function getAccountLog(params) {
  25201. return _request.default.get("user/accountLog", {
  25202. params: params
  25203. });
  25204. }
  25205. // 充值模板
  25206. function rechargeTemplate() {
  25207. return _request.default.get("recharge/rechargeTemplate");
  25208. }
  25209. //充值
  25210. function recharge(data) {
  25211. return _request.default.post("recharge/recharge", data);
  25212. }
  25213. //充值记录
  25214. function getRechargeRecord(params) {
  25215. return _request.default.post("recharge/rechargeRecord", {
  25216. params: params
  25217. });
  25218. }
  25219. // 填写邀请码(绑定上级)
  25220. function bindSuperior(data) {
  25221. return _request.default.post("distribution/code", data);
  25222. }
  25223. // 分销会员申请
  25224. function applyDistribute(data) {
  25225. return _request.default.post("distribution/apply", data);
  25226. }
  25227. // 分销入口验证
  25228. function veryfiyDistribute() {
  25229. return _request.default.post('distribution/check');
  25230. }
  25231. // 最新分销会员申请详情
  25232. function applyDetail() {
  25233. return _request.default.post("distribution/applydetail");
  25234. }
  25235. // 邀请人信息
  25236. function getSuperiorInfo() {
  25237. return _request.default.get("distribution/myLeader");
  25238. }
  25239. // 分销主页
  25240. function getDistribution() {
  25241. return _request.default.get("distribution/index");
  25242. }
  25243. // 分销订单列表
  25244. function getDistributionOrder(params) {
  25245. return _request.default.get("distribution/order", {
  25246. params: params
  25247. });
  25248. }
  25249. // 我的粉丝
  25250. function getUserFans(data) {
  25251. return _request.default.get("user/fans", {
  25252. params: data
  25253. });
  25254. }
  25255. // 佣金明细
  25256. function getCommission(params) {
  25257. return _request.default.get("distribution/commission", {
  25258. params: params
  25259. });
  25260. }
  25261. // 月度账单
  25262. function getMonthBill(params) {
  25263. return _request.default.get("distribution/monthbill", {
  25264. params: params
  25265. });
  25266. }
  25267. // 月度账单明细
  25268. function getMonthOrderDetail(params) {
  25269. return _request.default.get("distribution/monthDetail", {
  25270. params: params
  25271. });
  25272. }
  25273. // 获取商品的收藏列表
  25274. function getCollectGoods(params) {
  25275. return _request.default.get('goods_collect/lists', {
  25276. params: params
  25277. });
  25278. }
  25279. // 获取店铺的收藏列表
  25280. function getCollectShop(params) {
  25281. return _request.default.get('shop_follow/lists', {
  25282. params: params
  25283. });
  25284. }
  25285. // 获取售后列表
  25286. function getAfterSaleList(params) {
  25287. return _request.default.get("after_sale/lists", {
  25288. params: params
  25289. });
  25290. }
  25291. // 申请售后
  25292. function applyAfterSale(data) {
  25293. return _request.default.post("after_sale/add", data);
  25294. }
  25295. // 获取商品信息
  25296. function getGoodsInfo(params) {
  25297. return _request.default.get("after_sale/goodsInfo", {
  25298. params: params
  25299. });
  25300. }
  25301. // 填写快递信息
  25302. function inputExpressInfo(data) {
  25303. return _request.default.post("after_sale/express", data);
  25304. }
  25305. // 撤销申请
  25306. function cancelApply(data) {
  25307. return _request.default.post("after_sale/cancel", data);
  25308. }
  25309. // 售后详情
  25310. function afterSaleDetail(params) {
  25311. return _request.default.get("after_sale/detail", {
  25312. params: params
  25313. });
  25314. }
  25315. // 重新申请
  25316. function applyAgain(data) {
  25317. return _request.default.post("after_sale/again", data);
  25318. }
  25319. // 佣金提现
  25320. function applyWithdraw(data) {
  25321. return _request.default.post("withdraw/apply", data);
  25322. }
  25323. // 提现记录列表
  25324. function getWithdrawRecords(params) {
  25325. return _request.default.get("withdraw/records", {
  25326. params: params
  25327. });
  25328. }
  25329. // 提现详情
  25330. function getWithdrawDetail(params) {
  25331. return _request.default.get("withdraw/info", {
  25332. params: params
  25333. });
  25334. }
  25335. // 提现页信息
  25336. function getWithdrawConfig() {
  25337. return _request.default.get("withdraw/config");
  25338. }
  25339. // 邀请海报
  25340. function getUserPoster(data) {
  25341. return _request.default.get("share/userPoster", {
  25342. params: data
  25343. });
  25344. }
  25345. // 退出登录
  25346. function userLogout(data) {
  25347. return _request.default.post('account/logout', data);
  25348. }
  25349. // 海报背景
  25350. function apiDistributionPoster(data) {
  25351. return _request.default.get("distribution/getPoster", {
  25352. params: data
  25353. });
  25354. }
  25355. // 聊天记录
  25356. function chatRecord(data) {
  25357. return _request.default.get('user/chatRecord', {
  25358. params: data
  25359. });
  25360. }
  25361. // 获取昵称
  25362. function nickname(data) {
  25363. return _request.default.get('user/nickname', {
  25364. params: data
  25365. });
  25366. }
  25367. /***/ }),
  25368. /***/ 41:
  25369. /*!***************************************!*\
  25370. !*** D:/工作/项目2/华畦/xcw/utils/tools.js ***!
  25371. \***************************************/
  25372. /*! no static exports found */
  25373. /***/ (function(module, exports, __webpack_require__) {
  25374. "use strict";
  25375. /* WEBPACK VAR INJECTION */(function(uni) {
  25376. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25377. Object.defineProperty(exports, "__esModule", {
  25378. value: true
  25379. });
  25380. exports.arraySlice = arraySlice;
  25381. exports.client = void 0;
  25382. exports.copy = copy;
  25383. exports.currentPage = currentPage;
  25384. exports.debounce = void 0;
  25385. exports.getRect = getRect;
  25386. exports.isAndroid = isAndroid;
  25387. exports.isWeixinClient = isWeixinClient;
  25388. exports.menuJump = menuJump;
  25389. exports.paramsToStr = paramsToStr;
  25390. exports.setTabbar = setTabbar;
  25391. exports.strToParams = strToParams;
  25392. exports.toast = toast;
  25393. exports.trottle = void 0;
  25394. exports.uploadFile = uploadFile;
  25395. exports.urlencode = urlencode;
  25396. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  25397. var _type = __webpack_require__(/*! ./type */ 42);
  25398. var _app = __webpack_require__(/*! @/config/app.js */ 43);
  25399. var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 37));
  25400. function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
  25401. 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); }
  25402. 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; }
  25403. //所在环境
  25404. var client = null;
  25405. exports.client = client;
  25406. exports.client = client = 1;
  25407. //节流
  25408. var trottle = function trottle(func) {
  25409. var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;
  25410. var context = arguments.length > 2 ? arguments[2] : undefined;
  25411. var previous = new Date(0).getTime();
  25412. return function () {
  25413. var now = new Date().getTime();
  25414. if (now - previous > time) {
  25415. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  25416. args[_key] = arguments[_key];
  25417. }
  25418. func.apply(context, args);
  25419. previous = now;
  25420. }
  25421. };
  25422. };
  25423. //节流
  25424. exports.trottle = trottle;
  25425. var debounce = function debounce(func) {
  25426. var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;
  25427. var context = arguments.length > 2 ? arguments[2] : undefined;
  25428. var timer = null;
  25429. return function () {
  25430. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  25431. args[_key2] = arguments[_key2];
  25432. }
  25433. if (timer) {
  25434. clearTimeout(timer);
  25435. }
  25436. timer = setTimeout(function () {
  25437. timer = null;
  25438. func.apply(context, args);
  25439. }, time);
  25440. };
  25441. };
  25442. //判断是否为微信环境
  25443. exports.debounce = debounce;
  25444. function isWeixinClient() {
  25445. return false;
  25446. }
  25447. //判断是否为安卓环境
  25448. function isAndroid() {
  25449. var u = navigator.userAgent;
  25450. return u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
  25451. }
  25452. //获取url后的参数 以对象返回
  25453. function strToParams(str) {
  25454. var newparams = {};
  25455. var _iterator = _createForOfIteratorHelper(str.split('&')),
  25456. _step;
  25457. try {
  25458. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  25459. var item = _step.value;
  25460. newparams[item.split('=')[0]] = item.split('=')[1];
  25461. }
  25462. } catch (err) {
  25463. _iterator.e(err);
  25464. } finally {
  25465. _iterator.f();
  25466. }
  25467. return newparams;
  25468. }
  25469. //重写encodeURL函数
  25470. function urlencode(str) {
  25471. str = (str + '').toString();
  25472. return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+');
  25473. }
  25474. //一维数组截取为二维数组
  25475. function arraySlice(data) {
  25476. var array = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  25477. var optNum = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  25478. data = JSON.parse(JSON.stringify(data));
  25479. if (data.length <= optNum) {
  25480. data.length > 0 && array.push(data);
  25481. return array;
  25482. }
  25483. array.push(data.splice(0, optNum));
  25484. return arraySlice(data, array, optNum);
  25485. }
  25486. //对象参数转为以?&拼接的字符
  25487. function paramsToStr(params) {
  25488. var p = '';
  25489. if ((0, _typeof2.default)(params) == 'object') {
  25490. p = '?';
  25491. for (var props in params) {
  25492. p += "".concat(props, "=").concat(params[props], "&");
  25493. }
  25494. p = p.slice(0, -1);
  25495. }
  25496. return p;
  25497. }
  25498. // 获取wxml元素
  25499. function getRect(selector, all, context) {
  25500. return new Promise(function (resolve) {
  25501. var qurey = uni.createSelectorQuery();
  25502. if (context) {
  25503. qurey = uni.createSelectorQuery().in(context);
  25504. }
  25505. qurey[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  25506. if (all && Array.isArray(rect) && rect.length) {
  25507. resolve(rect);
  25508. }
  25509. if (!all && rect) {
  25510. resolve(rect);
  25511. }
  25512. }).exec();
  25513. });
  25514. }
  25515. // 轻提示
  25516. function toast() {
  25517. var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  25518. var navigateOpt = arguments.length > 1 ? arguments[1] : undefined;
  25519. var title = info.title || '';
  25520. var icon = info.icon || 'none';
  25521. var endtime = info.endtime || 2000;
  25522. if (title) uni.showToast({
  25523. title: title,
  25524. icon: icon,
  25525. duration: endtime
  25526. });
  25527. if (navigateOpt != undefined) {
  25528. if ((0, _typeof2.default)(navigateOpt) == 'object') {
  25529. var tab = navigateOpt.tab || 1,
  25530. url = navigateOpt.url || '';
  25531. switch (tab) {
  25532. case 1:
  25533. //跳转至 table
  25534. setTimeout(function () {
  25535. uni.switchTab({
  25536. url: url
  25537. });
  25538. }, endtime);
  25539. break;
  25540. case 2:
  25541. //跳转至非table页面
  25542. setTimeout(function () {
  25543. uni.navigateTo({
  25544. url: url
  25545. });
  25546. }, endtime);
  25547. break;
  25548. case 3:
  25549. //返回上页面
  25550. setTimeout(function () {
  25551. uni.navigateBack({
  25552. delta: parseInt(url)
  25553. });
  25554. }, endtime);
  25555. break;
  25556. case 4:
  25557. //关闭当前所有页面跳转至非table页面
  25558. setTimeout(function () {
  25559. uni.reLaunch({
  25560. url: url
  25561. });
  25562. }, endtime);
  25563. break;
  25564. case 5:
  25565. //关闭当前页面跳转至非table页面
  25566. setTimeout(function () {
  25567. uni.redirectTo({
  25568. url: url
  25569. });
  25570. }, endtime);
  25571. break;
  25572. }
  25573. } else if (typeof navigateOpt == 'function') {
  25574. setTimeout(function () {
  25575. navigateOpt && navigateOpt();
  25576. }, endtime);
  25577. }
  25578. }
  25579. }
  25580. //菜单跳转
  25581. function menuJump(item) {
  25582. var is_tab = item.is_tab,
  25583. link = item.link,
  25584. link_type = item.link_type;
  25585. switch (link_type) {
  25586. case 1:
  25587. console.log(is_tab);
  25588. // 本地跳转
  25589. if (is_tab) {
  25590. uni.switchTab({
  25591. url: link
  25592. });
  25593. return;
  25594. }
  25595. console.log(link);
  25596. uni.navigateTo({
  25597. url: link
  25598. });
  25599. break;
  25600. case 2:
  25601. // webview
  25602. uni.navigateTo({
  25603. url: "/pages/webview/webview?url=" + link
  25604. });
  25605. break;
  25606. case 3:
  25607. console.log('111');
  25608. uni.navigateTo({
  25609. url: "/pages/goods_cate/goods_cate?id=" + link
  25610. });
  25611. // tabbar
  25612. }
  25613. }
  25614. function uploadFile(path) {
  25615. return new Promise(function (resolve, reject) {
  25616. uni.uploadFile({
  25617. url: _app.baseURL + '/api/file/formimage',
  25618. filePath: path,
  25619. name: 'file',
  25620. header: {
  25621. token: _store.default.getters.token
  25622. // version: '1.2.1.20210717'
  25623. },
  25624. fileType: 'image',
  25625. cloudPath: '',
  25626. success: function success(res) {
  25627. try {
  25628. console.log(path);
  25629. console.log('uploadFile res ==> ', res);
  25630. var data = JSON.parse(res.data);
  25631. if (data.code == 1) {
  25632. resolve(data.data);
  25633. } else {
  25634. reject();
  25635. }
  25636. } catch (e) {
  25637. console.log(e);
  25638. reject();
  25639. }
  25640. },
  25641. fail: function fail(err) {
  25642. console.log(err);
  25643. reject();
  25644. }
  25645. });
  25646. });
  25647. }
  25648. //当前页面
  25649. function currentPage() {
  25650. var pages = getCurrentPages();
  25651. var currentPage = pages[pages.length - 1];
  25652. return currentPage || {};
  25653. }
  25654. // H5复制方法
  25655. function copy(str) {
  25656. uni.setClipboardData({
  25657. data: str.toString()
  25658. });
  25659. }
  25660. function setTabbar() {
  25661. var config = _store.default.getters.appConfig;
  25662. uni.setTabBarStyle({
  25663. color: config.navigation_setting.ust_color,
  25664. selectedColor: config.navigation_setting.st_color
  25665. });
  25666. config.navigation_menu.forEach(function (item, index) {
  25667. uni.setTabBarItem({
  25668. index: index,
  25669. text: item.name,
  25670. iconPath: item.un_selected_icon,
  25671. selectedIconPath: item.selected_icon,
  25672. fail: function fail(res) {},
  25673. success: function success(res) {}
  25674. });
  25675. });
  25676. }
  25677. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  25678. /***/ }),
  25679. /***/ 42:
  25680. /*!**************************************!*\
  25681. !*** D:/工作/项目2/华畦/xcw/utils/type.js ***!
  25682. \**************************************/
  25683. /*! no static exports found */
  25684. /***/ (function(module, exports, __webpack_require__) {
  25685. "use strict";
  25686. Object.defineProperty(exports, "__esModule", {
  25687. value: true
  25688. });
  25689. exports.sortType = exports.refundOptType = exports.payWay = exports.orderType = exports.loadingType = exports.invoiceType = exports.groupType = exports.distributionOrder = exports.bargainType = exports.afterSaleType = exports.SMSType = void 0;
  25690. // +----------------------------------------------------------------------
  25691. // | likeshop开源商城系统
  25692. // +----------------------------------------------------------------------
  25693. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  25694. // | gitee下载:https://gitee.com/likeshop_gitee
  25695. // | github下载:https://github.com/likeshop-github
  25696. // | 访问官网:https://www.likeshop.cn
  25697. // | 访问社区:https://home.likeshop.cn
  25698. // | 访问手册:http://doc.likeshop.cn
  25699. // | 微信公众号:likeshop技术社区
  25700. // | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
  25701. // | likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
  25702. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  25703. // | likeshop团队版权所有并拥有最终解释权
  25704. // +----------------------------------------------------------------------
  25705. // | author: likeshop.cn.team
  25706. // +----------------------------------------------------------------------
  25707. //分页状态
  25708. var loadingType = {
  25709. LOADING: 'loading',
  25710. FINISHED: 'finished',
  25711. ERROR: 'error',
  25712. EMPTY: 'empty'
  25713. };
  25714. //支付方式
  25715. exports.loadingType = loadingType;
  25716. var payWay = {
  25717. WECHAT: 1,
  25718. BALANCE: 3
  25719. };
  25720. exports.payWay = payWay;
  25721. var orderType = {
  25722. ALL: 'all',
  25723. //全部
  25724. PAY: 'pay',
  25725. //待付款
  25726. DELIVERY: 'delivery',
  25727. //待收货
  25728. FINISH: 'finish',
  25729. //待收货
  25730. CLOSE: 'close' //待收货
  25731. };
  25732. // 售后状态
  25733. exports.orderType = orderType;
  25734. var afterSaleType = {
  25735. // 售后申请
  25736. NORMAL: 'normal',
  25737. // 处理中
  25738. HANDLING: 'apply',
  25739. // 已处理
  25740. FINISH: 'finish'
  25741. };
  25742. // 售后退款操作
  25743. exports.afterSaleType = afterSaleType;
  25744. var refundOptType = {
  25745. // 仅退款
  25746. ONLY_REFUND: 0,
  25747. // 退货退款
  25748. REFUNDS: 1
  25749. };
  25750. // 短信发送
  25751. exports.refundOptType = refundOptType;
  25752. var SMSType = {
  25753. // 注册
  25754. REGISTER: 'ZCYZ',
  25755. // 找回密码
  25756. FINDPWD: 'ZHMM',
  25757. // 登陆
  25758. LOGIN: 'YZMDL',
  25759. // 更换手机号
  25760. CHANGE_MOBILE: 'BGSJHM',
  25761. // 绑定手机号
  25762. BIND: 'BDSJHM',
  25763. // 商家入驻申请验证
  25764. SJSQYZ: 'SJSQYZ'
  25765. };
  25766. // 分销订单状态
  25767. exports.SMSType = SMSType;
  25768. var distributionOrder = {
  25769. ALL: 0,
  25770. WAIT_RETURN: 1,
  25771. HANDLED: 2,
  25772. INVALED: 3
  25773. };
  25774. // 排序类型
  25775. exports.distributionOrder = distributionOrder;
  25776. var sortType = {
  25777. NONE: '',
  25778. ASC: 'asc',
  25779. DESC: 'desc'
  25780. };
  25781. exports.sortType = sortType;
  25782. var groupType = {
  25783. ALL: -1,
  25784. PROGESS: 0,
  25785. SUCCESS: 1,
  25786. FAIL: 2
  25787. };
  25788. exports.groupType = groupType;
  25789. var bargainType = {
  25790. ALL: -1,
  25791. BARGINNING: 0,
  25792. SUCCESS: 1,
  25793. FAIL: 2
  25794. };
  25795. // 发票类型
  25796. exports.bargainType = bargainType;
  25797. var invoiceType = {
  25798. SETTLEMENT: 0,
  25799. ORDERDETAILEdit: 1,
  25800. ORDERDETAILADD: 2
  25801. };
  25802. exports.invoiceType = invoiceType;
  25803. /***/ }),
  25804. /***/ 43:
  25805. /*!**************************************!*\
  25806. !*** D:/工作/项目2/华畦/xcw/config/app.js ***!
  25807. \**************************************/
  25808. /*! no static exports found */
  25809. /***/ (function(module, exports) {
  25810. // 开发者环境:开|关 【注:方便微信小程序发行测试】
  25811. var SWITCH_DEVELOPMENT = false;
  25812. /** S 是否H5端 **/
  25813. var IS_H5 = false;
  25814. /** E 是否H5端 **/
  25815. /** S API BaseURL **/
  25816. var baseURLMap = {
  25817. // 开发环境
  25818. development: 'https://shop.xianghuaqi.net.cn',
  25819. // 生产环境
  25820. production: IS_H5 ? location.origin : 'https://shop.xianghuaqi.net.cn'
  25821. };
  25822. var baseURL = SWITCH_DEVELOPMENT ? baseURLMap['development'] : baseURLMap["development"];
  25823. /** E API BaseURL **/
  25824. module.exports = {
  25825. version: '2.0.1.20220929',
  25826. // 版本号
  25827. baseURL: baseURL,
  25828. // API Base URL
  25829. basePath: '/mobile'
  25830. };
  25831. /***/ }),
  25832. /***/ 44:
  25833. /*!*************************************!*\
  25834. !*** D:/工作/项目2/华畦/xcw/api/store.js ***!
  25835. \*************************************/
  25836. /*! no static exports found */
  25837. /***/ (function(module, exports, __webpack_require__) {
  25838. "use strict";
  25839. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  25840. Object.defineProperty(exports, "__esModule", {
  25841. value: true
  25842. });
  25843. exports.addCart = addCart;
  25844. exports.changeCartSelect = changeCartSelect;
  25845. exports.changeGoodsCount = changeGoodsCount;
  25846. exports.clearSearch = clearSearch;
  25847. exports.deleteGoods = deleteGoods;
  25848. exports.getAdList = getAdList;
  25849. exports.getArticleDetail = getArticleDetail;
  25850. exports.getArticleList = getArticleList;
  25851. exports.getBrandList = getBrandList;
  25852. exports.getCartList = getCartList;
  25853. exports.getCartNum = getCartNum;
  25854. exports.getCategoryList = getCategoryList;
  25855. exports.getCatrgory = getCatrgory;
  25856. exports.getCityLists = getCityLists;
  25857. exports.getCommentCategory = getCommentCategory;
  25858. exports.getCommentList = getCommentList;
  25859. exports.getGeocoder = getGeocoder;
  25860. exports.getGoodsColumn = getGoodsColumn;
  25861. exports.getGoodsDetail = getGoodsDetail;
  25862. exports.getGoodsList = getGoodsList;
  25863. exports.getGoodsListColumn = getGoodsListColumn;
  25864. exports.getHome = getHome;
  25865. exports.getIndexCategory = getIndexCategory;
  25866. exports.getLevelOneList = getLevelOneList;
  25867. exports.getListByLevelOne = getListByLevelOne;
  25868. exports.getMenu = getMenu;
  25869. exports.getMessageLists = getMessageLists;
  25870. exports.getNoticeLists = getNoticeLists;
  25871. exports.getPoster = getPoster;
  25872. exports.getSearchpage = getSearchpage;
  25873. exports.selectedOpt = selectedOpt;
  25874. var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 35));
  25875. var _tools = __webpack_require__(/*! @/utils/tools */ 41);
  25876. //获取首页数据接口
  25877. function getHome(params) {
  25878. return _request.default.get('index/index', {
  25879. params: params
  25880. });
  25881. }
  25882. // 通过首页分类id获取数据
  25883. function getIndexCategory(params) {
  25884. return _request.default.get('index/indexCategory', {
  25885. params: params
  25886. });
  25887. }
  25888. //获取菜单
  25889. function getMenu(data) {
  25890. return _request.default.get('menu/lists', {
  25891. params: data
  25892. });
  25893. }
  25894. //商品栏目
  25895. function getGoodsColumn() {
  25896. return _request.default.get('goods_column/getGoodsColumnList');
  25897. }
  25898. //栏目商品
  25899. function getGoodsListColumn(params) {
  25900. return _request.default.get('goods/getGoodsListByColumnId', {
  25901. params: params
  25902. });
  25903. }
  25904. //平台一级分类
  25905. function getLevelOneList() {
  25906. return _request.default.get('goods_category/getLevelOneList');
  25907. }
  25908. // 一级分类的后代分类
  25909. function getListByLevelOne(params) {
  25910. return _request.default.get('goods_category/getListByLevelOne', {
  25911. params: params
  25912. });
  25913. }
  25914. //品牌列表
  25915. function getBrandList() {
  25916. return _request.default.get('goods_brand/getGoodsBrandList');
  25917. }
  25918. //文章分类
  25919. function getCategoryList(data) {
  25920. var type = data.type;
  25921. var url = type ? 'help/category' : 'article/category';
  25922. delete data.type;
  25923. return _request.default.get(url);
  25924. }
  25925. //文章列表
  25926. function getArticleList(data) {
  25927. var type = data.type;
  25928. var url = type ? 'help/lists' : 'article/lists';
  25929. delete data.type;
  25930. return _request.default.get(url, {
  25931. params: data
  25932. });
  25933. }
  25934. // 文章详情
  25935. function getArticleDetail(data) {
  25936. var type = data.type;
  25937. var url = type ? 'help/detail' : 'article/detail';
  25938. delete data.type;
  25939. return _request.default.get(url, {
  25940. params: {
  25941. id: data.id
  25942. }
  25943. });
  25944. }
  25945. //购物车
  25946. function getCartList() {
  25947. return _request.default.get('cart/lists');
  25948. }
  25949. //商品详情
  25950. function getGoodsDetail(data) {
  25951. return _request.default.get('goods/getGoodsDetail', {
  25952. params: data
  25953. });
  25954. }
  25955. //加入购物车
  25956. function addCart(data) {
  25957. return _request.default.post('cart/add', data);
  25958. }
  25959. //购物车数量
  25960. function getCartNum(params) {
  25961. return _request.default.get("cart/num", {
  25962. params: params
  25963. });
  25964. }
  25965. // 购物车数量更改
  25966. function changeGoodsCount(data) {
  25967. return _request.default.post("cart/change", data);
  25968. }
  25969. // 单选/全选/店铺选择
  25970. function selectedOpt(data) {
  25971. return _request.default.post("cart/selected", data);
  25972. }
  25973. // 删除商品
  25974. function deleteGoods(data) {
  25975. return _request.default.post("cart/del", data);
  25976. }
  25977. //购物车选中状态
  25978. function changeCartSelect(data) {
  25979. return _request.default.post('cart/selected', data);
  25980. }
  25981. //广告位
  25982. function getAdList(data) {
  25983. return _request.default.get('ad_content/lists', {
  25984. params: data
  25985. });
  25986. }
  25987. // 商品分类
  25988. function getCatrgory() {
  25989. return _request.default.get('goods_category/lists');
  25990. }
  25991. // 商品搜索
  25992. function getGoodsList(data) {
  25993. return _request.default.get('goods/getGoodsList', {
  25994. params: data
  25995. });
  25996. }
  25997. //评价列表
  25998. function getCommentList(data) {
  25999. return _request.default.get("goods_comment/lists", {
  26000. params: data
  26001. });
  26002. }
  26003. //评价分类
  26004. function getCommentCategory(id) {
  26005. return _request.default.get("goods_comment/category", {
  26006. params: {
  26007. goods_id: id
  26008. }
  26009. });
  26010. }
  26011. //搜索页,热门搜索列表,和历史搜索列表
  26012. function getSearchpage() {
  26013. return _request.default.get('search_record/lists');
  26014. }
  26015. // 清空历史搜索
  26016. function clearSearch() {
  26017. return _request.default.post('search_record/clear');
  26018. }
  26019. //商品海报
  26020. function getPoster(data) {
  26021. return _request.default.get("share/sharegoods", {
  26022. params: data
  26023. });
  26024. }
  26025. // 消息中心首页
  26026. function getMessageLists() {
  26027. return _request.default.get("notice/index");
  26028. }
  26029. // 消息通知
  26030. function getNoticeLists(params) {
  26031. return _request.default.get("notice/lists", {
  26032. params: params
  26033. });
  26034. }
  26035. // 城市列表
  26036. function getCityLists() {
  26037. return _request.default.get("index/city");
  26038. }
  26039. // 逆解析定位地址
  26040. function getGeocoder(params) {
  26041. return _request.default.get("index/geocoder", {
  26042. params: params
  26043. });
  26044. }
  26045. /***/ }),
  26046. /***/ 45:
  26047. /*!*******************************************!*\
  26048. !*** D:/工作/项目2/华畦/xcw/config/cachekey.js ***!
  26049. \*******************************************/
  26050. /*! no static exports found */
  26051. /***/ (function(module, exports) {
  26052. module.exports = {
  26053. USER_INFO: 'USER_INFO',
  26054. TOKEN: 'TOKEN',
  26055. BACK_URL: 'BACK_URL',
  26056. CONFIG: 'CONFIG',
  26057. INVITE_CODE: 'INVITE_CODE'
  26058. };
  26059. /***/ }),
  26060. /***/ 46:
  26061. /*!***************************************!*\
  26062. !*** D:/工作/项目2/华畦/xcw/utils/cache.js ***!
  26063. \***************************************/
  26064. /*! no static exports found */
  26065. /***/ (function(module, exports, __webpack_require__) {
  26066. "use strict";
  26067. /* WEBPACK VAR INJECTION */(function(uni) {
  26068. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26069. Object.defineProperty(exports, "__esModule", {
  26070. value: true
  26071. });
  26072. exports.default = void 0;
  26073. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  26074. // +----------------------------------------------------------------------
  26075. // | likeshop开源商城系统
  26076. // +----------------------------------------------------------------------
  26077. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  26078. // | gitee下载:https://gitee.com/likeshop_gitee
  26079. // | github下载:https://github.com/likeshop-github
  26080. // | 访问官网:https://www.likeshop.cn
  26081. // | 访问社区:https://home.likeshop.cn
  26082. // | 访问手册:http://doc.likeshop.cn
  26083. // | 微信公众号:likeshop技术社区
  26084. // | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
  26085. // | likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
  26086. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  26087. // | likeshop团队版权所有并拥有最终解释权
  26088. // +----------------------------------------------------------------------
  26089. // | author: likeshop.cn.team
  26090. // +----------------------------------------------------------------------
  26091. var Cache = {
  26092. //设置缓存(expire为缓存时效)
  26093. set: function set(key, value, expire) {
  26094. var data = {
  26095. expire: expire ? this.time() + expire : "",
  26096. value: value
  26097. };
  26098. if ((0, _typeof2.default)(data) === 'object') data = JSON.stringify(data);
  26099. try {
  26100. uni.setStorageSync(key, data);
  26101. } catch (e) {
  26102. return false;
  26103. }
  26104. },
  26105. get: function get(key) {
  26106. try {
  26107. var data = uni.getStorageSync(key);
  26108. var _JSON$parse = JSON.parse(data),
  26109. value = _JSON$parse.value,
  26110. expire = _JSON$parse.expire;
  26111. if (expire && expire < this.time()) {
  26112. uni.removeStorageSync(key);
  26113. return false;
  26114. } else {
  26115. return value;
  26116. }
  26117. } catch (e) {
  26118. return false;
  26119. }
  26120. },
  26121. //获取当前时间
  26122. time: function time() {
  26123. return Math.round(new Date() / 1000);
  26124. },
  26125. remove: function remove(key) {
  26126. if (key) uni.removeStorageSync(key);
  26127. }
  26128. };
  26129. var _default = Cache;
  26130. exports.default = _default;
  26131. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26132. /***/ }),
  26133. /***/ 47:
  26134. /*!******************************************!*\
  26135. !*** D:/工作/项目2/华畦/xcw/utils/wechath5.js ***!
  26136. \******************************************/
  26137. /*! no static exports found */
  26138. /***/ (function(module, exports) {
  26139. // +----------------------------------------------------------------------
  26140. // | likeshop开源商城系统
  26141. // +----------------------------------------------------------------------
  26142. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  26143. // | gitee下载:https://gitee.com/likeshop_gitee
  26144. // | github下载:https://github.com/likeshop-github
  26145. // | 访问官网:https://www.likeshop.cn
  26146. // | 访问社区:https://home.likeshop.cn
  26147. // | 访问手册:http://doc.likeshop.cn
  26148. // | 微信公众号:likeshop技术社区
  26149. // | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
  26150. // | likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
  26151. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  26152. // | likeshop团队版权所有并拥有最终解释权
  26153. // +----------------------------------------------------------------------
  26154. // | author: likeshop.cn.team
  26155. // +----------------------------------------------------------------------
  26156. /***/ }),
  26157. /***/ 48:
  26158. /*!**********************************************!*\
  26159. !*** D:/工作/项目2/华畦/xcw/store/modules/city.js ***!
  26160. \**********************************************/
  26161. /*! no static exports found */
  26162. /***/ (function(module, exports, __webpack_require__) {
  26163. "use strict";
  26164. /* WEBPACK VAR INJECTION */(function(uni) {
  26165. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26166. Object.defineProperty(exports, "__esModule", {
  26167. value: true
  26168. });
  26169. exports.default = void 0;
  26170. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
  26171. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  26172. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  26173. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  26174. var _wechath = _interopRequireDefault(__webpack_require__(/*! @/utils/wechath5 */ 47));
  26175. var _tools = __webpack_require__(/*! @/utils/tools */ 41);
  26176. var _app = __webpack_require__(/*! @/config/app */ 43);
  26177. var _store = __webpack_require__(/*! @/api/store.js */ 44);
  26178. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  26179. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  26180. var state = {
  26181. cityInfo: {
  26182. // id: city_id,
  26183. // name: result.ad_info.city,
  26184. // gcj02_lat: result.location.lat,
  26185. // gcj02_lng: result.location.lng
  26186. }
  26187. };
  26188. var mutations = {
  26189. setCityInfo: function setCityInfo(state, data) {
  26190. state.cityInfo = data;
  26191. uni.$emit('refreshhome');
  26192. }
  26193. };
  26194. var actions = {
  26195. // 位置授权
  26196. getAuthorize: function getAuthorize(_ref) {
  26197. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  26198. var dispatch, _yield$uni$showModal, _yield$uni$showModal2, error, data, _yield$uni$openSettin, _yield$uni$openSettin2, _error, _data;
  26199. return _regenerator.default.wrap(function _callee$(_context) {
  26200. while (1) {
  26201. switch (_context.prev = _context.next) {
  26202. case 0:
  26203. dispatch = _ref.dispatch;
  26204. _context.next = 3;
  26205. return uni.showModal({
  26206. title: '您已拒绝地理位置权限',
  26207. content: '是否进入权限管理,调整授权?'
  26208. });
  26209. case 3:
  26210. _yield$uni$showModal = _context.sent;
  26211. _yield$uni$showModal2 = (0, _slicedToArray2.default)(_yield$uni$showModal, 2);
  26212. error = _yield$uni$showModal2[0];
  26213. data = _yield$uni$showModal2[1];
  26214. if (!data.confirm) {
  26215. _context.next = 15;
  26216. break;
  26217. }
  26218. _context.next = 10;
  26219. return uni.openSetting();
  26220. case 10:
  26221. _yield$uni$openSettin = _context.sent;
  26222. _yield$uni$openSettin2 = (0, _slicedToArray2.default)(_yield$uni$openSettin, 2);
  26223. _error = _yield$uni$openSettin2[0];
  26224. _data = _yield$uni$openSettin2[1];
  26225. if (_data.authSetting['scope.userLocation']) dispatch('initLocationFunc');
  26226. case 15:
  26227. case "end":
  26228. return _context.stop();
  26229. }
  26230. }
  26231. }, _callee);
  26232. }))();
  26233. },
  26234. // 获取当前定位
  26235. initLocationFunc: function initLocationFunc(_ref2) {
  26236. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
  26237. var dispatch, rootState, _yield$uni$getLocatio, _yield$uni$getLocatio2, error, res;
  26238. return _regenerator.default.wrap(function _callee2$(_context2) {
  26239. while (1) {
  26240. switch (_context2.prev = _context2.next) {
  26241. case 0:
  26242. dispatch = _ref2.dispatch, rootState = _ref2.rootState;
  26243. console.log('获取地址');
  26244. _context2.prev = 2;
  26245. _context2.next = 5;
  26246. return uni.getLocation({
  26247. type: 'gcj02'
  26248. });
  26249. case 5:
  26250. _yield$uni$getLocatio = _context2.sent;
  26251. _yield$uni$getLocatio2 = (0, _slicedToArray2.default)(_yield$uni$getLocatio, 2);
  26252. error = _yield$uni$getLocatio2[0];
  26253. res = _yield$uni$getLocatio2[1];
  26254. console.log(error, res);
  26255. if (!((error === null || error === void 0 ? void 0 : error.errMsg) == 'getLocation:fail 频繁调用会增加电量损耗,可考虑使用 wx.onLocationChange 监听地理位置变化')) {
  26256. _context2.next = 12;
  26257. break;
  26258. }
  26259. return _context2.abrupt("return", (0, _tools.toast)({
  26260. title: '频繁定位,请稍后'
  26261. }));
  26262. case 12:
  26263. dispatch('getSystemInfo');
  26264. if (rootState.app.sysInfo.locationEnabled) {
  26265. _context2.next = 16;
  26266. break;
  26267. }
  26268. uni.showModal({
  26269. title: '温馨提示',
  26270. content: '您的手机定位还未开启'
  26271. });
  26272. return _context2.abrupt("return");
  26273. case 16:
  26274. if (res) {
  26275. _context2.next = 18;
  26276. break;
  26277. }
  26278. return _context2.abrupt("return", dispatch('getAuthorize'));
  26279. case 18:
  26280. if (!error) {
  26281. _context2.next = 21;
  26282. break;
  26283. }
  26284. uni.showModal({
  26285. title: '提示',
  26286. content: JSON.stringify(error.errMsg)
  26287. });
  26288. return _context2.abrupt("return");
  26289. case 21:
  26290. dispatch('getGeocoderFunc', {
  26291. location: "".concat(res.latitude, ",").concat(res.longitude)
  26292. });
  26293. _context2.next = 27;
  26294. break;
  26295. case 24:
  26296. _context2.prev = 24;
  26297. _context2.t0 = _context2["catch"](2);
  26298. console.log(_context2.t0);
  26299. // toast({ title: err.errMsg })
  26300. // throw new Error(err + '获取位置')
  26301. case 27:
  26302. case "end":
  26303. return _context2.stop();
  26304. }
  26305. }
  26306. }, _callee2, null, [[2, 24]]);
  26307. }))();
  26308. },
  26309. // 逆解析地址
  26310. getGeocoderFunc: function getGeocoderFunc(_ref3, location) {
  26311. var commit = _ref3.commit;
  26312. console.log(location);
  26313. (0, _store.getGeocoder)(_objectSpread({}, location)).then(function (res) {
  26314. console.log(res);
  26315. if (res.code == 1) {
  26316. var result = res.data.result;
  26317. var city_id = res.data.city_id;
  26318. commit('setCityInfo', {
  26319. id: city_id,
  26320. name: result.ad_info.city,
  26321. gcj02_lat: result.location.lat,
  26322. gcj02_lng: result.location.lng
  26323. });
  26324. } else {
  26325. (0, _tools.toast)({
  26326. title: res.msg
  26327. });
  26328. }
  26329. });
  26330. }
  26331. };
  26332. var _default = {
  26333. state: state,
  26334. mutations: mutations,
  26335. actions: actions
  26336. };
  26337. exports.default = _default;
  26338. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26339. /***/ }),
  26340. /***/ 49:
  26341. /*!***************************************************!*\
  26342. !*** D:/工作/项目2/华畦/xcw/store/modules/community.js ***!
  26343. \***************************************************/
  26344. /*! no static exports found */
  26345. /***/ (function(module, exports, __webpack_require__) {
  26346. "use strict";
  26347. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26348. Object.defineProperty(exports, "__esModule", {
  26349. value: true
  26350. });
  26351. exports.default = void 0;
  26352. var _wechath = _interopRequireDefault(__webpack_require__(/*! @/utils/wechath5 */ 47));
  26353. var _tools = __webpack_require__(/*! @/utils/tools */ 41);
  26354. var _app = __webpack_require__(/*! @/config/app */ 43);
  26355. var state = {
  26356. communityItem: {}
  26357. };
  26358. var mutations = {
  26359. setCommunity: function setCommunity(state, data) {
  26360. state.communityItem = data;
  26361. }
  26362. };
  26363. var actions = {
  26364. // 分享种草文章
  26365. communityShare: function communityShare(_ref) {
  26366. var state = _ref.state,
  26367. commit = _ref.commit;
  26368. var item = state.communityItem;
  26369. console.log(item);
  26370. }
  26371. };
  26372. var _default = {
  26373. state: state,
  26374. mutations: mutations,
  26375. actions: actions
  26376. };
  26377. exports.default = _default;
  26378. /***/ }),
  26379. /***/ 5:
  26380. /*!**************************************************************!*\
  26381. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  26382. \**************************************************************/
  26383. /*! no static exports found */
  26384. /***/ (function(module, exports, __webpack_require__) {
  26385. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  26386. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  26387. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  26388. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  26389. function _slicedToArray(arr, i) {
  26390. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  26391. }
  26392. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  26393. /***/ }),
  26394. /***/ 50:
  26395. /*!*****************************************!*\
  26396. !*** D:/工作/项目2/华畦/xcw/store/getters.js ***!
  26397. \*****************************************/
  26398. /*! no static exports found */
  26399. /***/ (function(module, exports, __webpack_require__) {
  26400. "use strict";
  26401. Object.defineProperty(exports, "__esModule", {
  26402. value: true
  26403. });
  26404. exports.default = void 0;
  26405. var _default = {
  26406. userInfo: function userInfo(state) {
  26407. return state.app.userInfo || {};
  26408. },
  26409. token: function token(state) {
  26410. return state.app.token;
  26411. },
  26412. isLogin: function isLogin(state) {
  26413. return !!state.app.token;
  26414. },
  26415. cartNum: function cartNum(state) {
  26416. return state.app.cartNum;
  26417. },
  26418. inviteCode: function inviteCode(state) {
  26419. return state.app.userInfo.distribution_code || "";
  26420. },
  26421. appConfig: function appConfig(state) {
  26422. return state.app.config;
  26423. },
  26424. sysInfo: function sysInfo(state) {
  26425. return state.app.sysInfo;
  26426. },
  26427. cityInfo: function cityInfo(state) {
  26428. return state.city.cityInfo;
  26429. }
  26430. };
  26431. exports.default = _default;
  26432. /***/ }),
  26433. /***/ 51:
  26434. /*!***************************************!*\
  26435. !*** D:/工作/项目2/华畦/xcw/utils/login.js ***!
  26436. \***************************************/
  26437. /*! no static exports found */
  26438. /***/ (function(module, exports, __webpack_require__) {
  26439. "use strict";
  26440. /* WEBPACK VAR INJECTION */(function(uni) {
  26441. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26442. Object.defineProperty(exports, "__esModule", {
  26443. value: true
  26444. });
  26445. exports.getUserProfile = getUserProfile;
  26446. exports.getWxCode = getWxCode;
  26447. exports.toLogin = void 0;
  26448. exports.wxMnpLogin = wxMnpLogin;
  26449. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
  26450. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  26451. var _app = __webpack_require__(/*! @/api/app */ 34);
  26452. var _tools = __webpack_require__(/*! ./tools */ 41);
  26453. var _store = _interopRequireDefault(__webpack_require__(/*! @/store */ 37));
  26454. var _cache = _interopRequireDefault(__webpack_require__(/*! ./cache */ 46));
  26455. var _cachekey = __webpack_require__(/*! @/config/cachekey */ 45);
  26456. var _user = __webpack_require__(/*! @/api/user */ 40);
  26457. var _wechath = _interopRequireDefault(__webpack_require__(/*! ./wechath5 */ 47));
  26458. var _router = __webpack_require__(/*! @/router */ 52);
  26459. // +----------------------------------------------------------------------
  26460. // | likeshop开源商城系统
  26461. // +----------------------------------------------------------------------
  26462. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  26463. // | gitee下载:https://gitee.com/likeshop_gitee
  26464. // | github下载:https://github.com/likeshop-github
  26465. // | 访问官网:https://www.likeshop.cn
  26466. // | 访问社区:https://home.likeshop.cn
  26467. // | 访问手册:http://doc.likeshop.cn
  26468. // | 微信公众号:likeshop技术社区
  26469. // | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用,未经许可不能去除前后端官方版权标识
  26470. // | likeshop系列产品收费版本务必购买商业授权,购买去版权授权后,方可去除前后端官方版权标识
  26471. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  26472. // | likeshop团队版权所有并拥有最终解释权
  26473. // +----------------------------------------------------------------------
  26474. // | author: likeshop.cn.team
  26475. // +----------------------------------------------------------------------
  26476. // 获取登录凭证(code)
  26477. function getWxCode() {
  26478. return new Promise(function (resolve, reject) {
  26479. uni.login({
  26480. success: function success(res) {
  26481. resolve(res.code);
  26482. },
  26483. fail: function fail(res) {
  26484. reject(res);
  26485. }
  26486. });
  26487. });
  26488. }
  26489. //小程序获取用户信息
  26490. function getUserProfile() {
  26491. return new Promise(function (resolve, reject) {
  26492. uni.getUserProfile({
  26493. desc: '获取用户信息,完善用户资料 ',
  26494. success: function success(res) {
  26495. resolve(res);
  26496. },
  26497. fail: function fail(res) {}
  26498. });
  26499. });
  26500. }
  26501. //小程序静默授权
  26502. function wxMnpLogin() {
  26503. return _wxMnpLogin.apply(this, arguments);
  26504. }
  26505. function _wxMnpLogin() {
  26506. _wxMnpLogin = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  26507. var code, _yield$silentLogin, loginCode, loginData, _currentPage, options, onLoad, onShow, route, inviteCode;
  26508. return _regenerator.default.wrap(function _callee$(_context) {
  26509. while (1) {
  26510. switch (_context.prev = _context.next) {
  26511. case 0:
  26512. _context.next = 2;
  26513. return getWxCode();
  26514. case 2:
  26515. code = _context.sent;
  26516. _context.next = 5;
  26517. return (0, _app.silentLogin)({
  26518. code: code
  26519. });
  26520. case 5:
  26521. _yield$silentLogin = _context.sent;
  26522. loginCode = _yield$silentLogin.code;
  26523. loginData = _yield$silentLogin.data;
  26524. _currentPage = (0, _tools.currentPage)(), options = _currentPage.options, onLoad = _currentPage.onLoad, onShow = _currentPage.onShow, route = _currentPage.route;
  26525. if (!(loginCode != 1)) {
  26526. _context.next = 11;
  26527. break;
  26528. }
  26529. return _context.abrupt("return");
  26530. case 11:
  26531. if (loginData.token) {
  26532. _store.default.commit('login', loginData);
  26533. // 绑定邀请码
  26534. inviteCode = _cache.default.get(_cachekey.INVITE_CODE);
  26535. if (inviteCode) {
  26536. (0, _user.bindSuperior)({
  26537. code: inviteCode
  26538. });
  26539. _cache.default.remove(_cachekey.INVITE_CODE);
  26540. }
  26541. // 刷新页面
  26542. onLoad && onLoad(options);
  26543. onShow && onShow();
  26544. }
  26545. case 12:
  26546. case "end":
  26547. return _context.stop();
  26548. }
  26549. }
  26550. }, _callee);
  26551. }));
  26552. return _wxMnpLogin.apply(this, arguments);
  26553. }
  26554. var toLogin = (0, _tools.trottle)(_toLogin, 1000);
  26555. exports.toLogin = toLogin;
  26556. function _toLogin() {
  26557. wxMnpLogin();
  26558. }
  26559. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  26560. /***/ }),
  26561. /***/ 52:
  26562. /*!**********************************!*\
  26563. !*** D:/工作/项目2/华畦/xcw/router.js ***!
  26564. \**********************************/
  26565. /*! no static exports found */
  26566. /***/ (function(module, exports, __webpack_require__) {
  26567. "use strict";
  26568. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  26569. Object.defineProperty(exports, "__esModule", {
  26570. value: true
  26571. });
  26572. Object.defineProperty(exports, "RouterMount", {
  26573. enumerable: true,
  26574. get: function get() {
  26575. return _uniSimpleRouter.RouterMount;
  26576. }
  26577. });
  26578. exports.router = void 0;
  26579. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  26580. var _uniSimpleRouter = __webpack_require__(/*! ./js_sdk/uni-simple-router */ 53);
  26581. var _cachekey = __webpack_require__(/*! ./config/cachekey */ 45);
  26582. var _store = _interopRequireDefault(__webpack_require__(/*! ./store */ 37));
  26583. var _app = __webpack_require__(/*! @/api/app */ 34);
  26584. var _login = __webpack_require__(/*! ./utils/login */ 51);
  26585. var _cache = _interopRequireDefault(__webpack_require__(/*! ./utils/cache */ 46));
  26586. var _wechath = _interopRequireDefault(__webpack_require__(/*! ./utils/wechath5 */ 47));
  26587. var _tools = __webpack_require__(/*! ./utils/tools */ 41);
  26588. var scrollInfo = {};
  26589. var first = null;
  26590. var whiteList = ['register', 'login', 'forget_pwd'];
  26591. var router = (0, _uniSimpleRouter.createRouter)({
  26592. platform: "mp-weixin",
  26593. APP: {
  26594. animation: {}
  26595. },
  26596. h5: {
  26597. scrollBehavior: function scrollBehavior(to, from, savedPosition) {
  26598. var XY = scrollInfo[to.name];
  26599. if (XY) return XY;
  26600. return {
  26601. x: 0,
  26602. y: 0
  26603. };
  26604. }
  26605. },
  26606. routerErrorEach: function routerErrorEach(_ref) {
  26607. var type = _ref.type,
  26608. msg = _ref.msg;
  26609. router.$lockStatus = false;
  26610. },
  26611. debugger: false,
  26612. routes: [].concat((0, _toConsumableArray2.default)([{"path":"/pages/index/index","name":"index","aliasPath":"/","meta":{"auth":false,"keepScroll":true}},{"path":"/pages/index/downLoad"},{"path":"/pages/index/living"},{"path":"/pages/goods_cate/goods_cate","name":"goods_cate","meta":{"auth":false,"keepScroll":true}},{"path":"/pages/shop_street/shop_street","name":"shop_street","meta":{"auth":false,"keepScroll":true}},{"path":"/pages/community/community","name":"community","meta":{"auth":false,"keepScroll":true}},{"path":"/pages/integral/integral","name":"integral","meta":{"auth":false,"keepScroll":true}},{"path":"/pages/shop_cart/shop_cart","name":"shop_cart","meta":{"auth":false,"keepScroll":true}},{"path":"/pages/user/user","name":"user","meta":{"auth":false,"keepScroll":true}},{"path":"/pages/login/login","meta":{"auth":false}},{"path":"/pages/register/register","meta":{"auth":false}},{"path":"/pages/goods_details/goods_details","meta":{"auth":false}},{"path":"/pages/forget_pwd/forget_pwd","meta":{"auth":false}},{"path":"/pages/confirm_order/confirm_order","meta":{"auth":true}},{"path":"/pages/payment/payment","meta":{"auth":true}},{"path":"/pages/pay_result/pay_result","meta":{"auth":true}},{"path":"/pages/goods_search/goods_search","meta":{"auth":false}},{"path":"/pages/store_index/store_index","meta":{"auth":false}},{"path":"/pages/news_list/news_list","meta":{"auth":false}},{"path":"/pages/news_details/news_details","meta":{"auth":false}},{"path":"/pages/get_coupon/get_coupon","meta":{"auth":true}},{"path":"/pages/active_list/active_list","meta":{"auth":false}},{"path":"/pages/message_center/message_center","meta":{"auth":true}},{"path":"/pages/store_detail/store_detail","meta":{"auth":false}},{"path":"/pages/notice/notice","meta":{"auth":true}},{"path":"/pages/brand_list/brand_list","meta":{"auth":false}},{"path":"/pages/webview/webview","meta":{"auth":false}},{"path":"/pages/integral/rules"},{"path":"/pages/integral/details"},{"path":"/pages/user/treasure"},{"path":"/pages/user/energy-detials"},{"path":"/pages/user/energy-transfer"},{"path":"/pages/goods_explosive/goods_explosive"},{"path":"/pages/videos/videos"},{"path":"/pages/ad-video/ad-video"},{"path":"/pages/video-details/video-details"},{"path":"/bundle/pages/all_comments/all_comments","meta":{"auth":false}},{"path":"/bundle/pages/activity_detail/activity_detail","meta":{"auth":false}},{"path":"/bundle/pages/goods_seckill/goods_seckill","meta":{"auth":false}},{"path":"/bundle/pages/user_vip/user_vip","meta":{"auth":true}},{"path":"/bundle/pages/user_order/user_order","meta":{"auth":true}},{"path":"/bundle/pages/order_details/order_details","meta":{"auth":true}},{"path":"/bundle/pages/user_address/user_address","meta":{"auth":true}},{"path":"/bundle/pages/address_edit/address_edit","meta":{"auth":true}},{"path":"/bundle/pages/user_coupon/user_coupon","meta":{"auth":true}},{"path":"/bundle/pages/user_collection/user_collection","meta":{"auth":true}},{"path":"/bundle/pages/after_sales/after_sales","meta":{"auth":true}},{"path":"/bundle/pages/apply_refund/apply_refund","meta":{"auth":true}},{"path":"/bundle/pages/after_sales_detail/after_sales_detail","meta":{"auth":true}},{"path":"/bundle/pages/input_express_info/input_express_info","meta":{"auth":true}},{"path":"/bundle/pages/user_profile/user_profile","meta":{"auth":true}},{"path":"/bundle/pages/user_wallet/user_wallet","meta":{"auth":true}},{"path":"/bundle/pages/user_payment/user_payment","meta":{"auth":true}},{"path":"/bundle/pages/contact_offical/contact_offical","meta":{"auth":false}},{"path":"/bundle/pages/server_explan/server_explan","meta":{"auth":false}},{"path":"/bundle/pages/store_settled/store_settled","meta":{"auth":true}},{"path":"/bundle/pages/xxstore_settled/xxstore_settled","meta":{"auth":true}},{"path":"/bundle/pages/settled_result/settled_result","meta":{"auth":true}},{"path":"/bundle/pages/settled_recode/settled_recode","meta":{"auth":true}},{"path":"/bundle/pages/goods_reviews/goods_reviews","meta":{"auth":true}},{"path":"/bundle/pages/user_comment/user_comment","meta":{"auth":true}},{"path":"/bundle/pages/goods_logistics/goods_logistics","meta":{"auth":true}},{"path":"/bundle/pages/user_spread/user_spread","meta":{"auth":true}},{"path":"/bundle/pages/monthly_bill/monthly_bill","meta":{"auth":true}},{"path":"/bundle/pages/monthly_bill_detail/monthly_bill_detail","meta":{"auth":true}},{"path":"/bundle/pages/user_spread_order/user_spread_order","meta":{"auth":true}},{"path":"/bundle/pages/user_withdraw/user_withdraw","meta":{"auth":true}},{"path":"/bundle/pages/user_withdraw_code/user_withdraw_code","meta":{"auth":true}},{"path":"/bundle/pages/widthdraw_result/widthdraw_result","meta":{"auth":true}},{"path":"/bundle/pages/invite_fans/invite_fans","meta":{"auth":true}},{"path":"/bundle/pages/user_bill/user_bill","meta":{"auth":true}},{"path":"/bundle/pages/user_growth/user_growth","meta":{"auth":true}},{"path":"/bundle/pages/recharge_record/recharge_record","meta":{"auth":true}},{"path":"/bundle/pages/user_fans/user_fans","meta":{"auth":true}},{"path":"/bundle/pages/commission_details/commission_details","meta":{"auth":true}},{"path":"/bundle/pages/bargain/bargain"},{"path":"/bundle/pages/bargain_process/bargain_process"},{"path":"/bundle/pages/bargain_code/bargain_code","meta":{"auth":true}},{"path":"/bundle/pages/goods_combination/goods_combination"},{"path":"/bundle/pages/user_group/user_group","meta":{"auth":true}},{"path":"/bundle/pages/chat/chat","meta":{"auth":true}},{"path":"/bundle/pages/integral_sign/integral_sign","meta":{"auth":true}},{"path":"/bundle/pages/sign_rule/sign_rule","meta":{"auth":true}},{"path":"/bundle/pages/integral_details/integral_details","meta":{"auth":true}},{"path":"/bundle/pages/license/license"},{"path":"/bundle/pages/integral_mall/integral_mall","meta":{"auth":true}},{"path":"/bundle/pages/integral_goods_details/integral_goods_details","meta":{"auth":true}},{"path":"/bundle/pages/integral_settlement/integral_settlement","meta":{"auth":true}},{"path":"/bundle/pages/exchange_order/exchange_order","meta":{"auth":true}},{"path":"/bundle/pages/exchange_order_details/exchange_order_details","meta":{"auth":true}},{"path":"/bundle/pages/invoice/invoice","meta":{"auth":true}},{"path":"/bundle/pages/invoice_detail/invoice_detail","meta":{"auth":true}},{"path":"/bundle_b/pages/published_works/published_works","meta":{"auth":true}},{"path":"/bundle_b/pages/community_detail/community_detail","meta":{"auth":false}},{"path":"/bundle_b/pages/community_user/community_user","meta":{"auth":true}},{"path":"/bundle_b/pages/community_user_profile/community_user_profile","meta":{"auth":true}},{"path":"/bundle_b/pages/community_topic/community_topic","meta":{"auth":false}},{"path":"/bundle_b/pages/community_search/community_search","meta":{"auth":false}},{"path":"/bundle_b/pages/nearby_shops/nearby_shops","meta":{"auth":false}},{"path":"/bundle_b/pages/nearby_shops/neardetail","meta":{"auth":false}},{"path":"/bundle_b/pages/city/city","meta":{"auth":false}}]), [{
  26613. path: '*',
  26614. redirect: function redirect(to) {
  26615. return {
  26616. name: '404'
  26617. };
  26618. }
  26619. }])
  26620. });
  26621. exports.router = router;
  26622. console.log(router);
  26623. var count = 0;
  26624. router.beforeEach(function (to, from, next) {
  26625. console.log(to, from, 'beforeEach---开始跳转');
  26626. var index = whiteList.findIndex(function (item) {
  26627. return from.path.includes(item);
  26628. });
  26629. if (index == -1 && !_store.default.getters.token) {
  26630. _cache.default.set(_cachekey.BACK_URL, from.fullPath);
  26631. }
  26632. if (to.meta.auth && !_store.default.getters.token) {
  26633. next('/pages/login/login');
  26634. return;
  26635. } else {
  26636. next();
  26637. }
  26638. });
  26639. router.afterEach(function (to, from, next) {
  26640. console.log('跳转完成');
  26641. });
  26642. /***/ }),
  26643. /***/ 53:
  26644. /*!**********************************************************!*\
  26645. !*** D:/工作/项目2/华畦/xcw/js_sdk/uni-simple-router/index.js ***!
  26646. \**********************************************************/
  26647. /*! no static exports found */
  26648. /***/ (function(module, exports, __webpack_require__) {
  26649. /* WEBPACK VAR INJECTION */(function(uni, module) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  26650. !function (e, t) {
  26651. "object" == ( false ? undefined : _typeof(exports)) && "object" == ( false ? undefined : _typeof(module)) ? module.exports = t() : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (t),
  26652. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  26653. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  26654. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined;
  26655. }(self, function () {
  26656. return e = {
  26657. 779: function _(e, t, r) {
  26658. var o = r(173);
  26659. e.exports = function e(t, r, n) {
  26660. return o(r) || (n = r || n, r = []), n = n || {}, t instanceof RegExp ? function (e, t) {
  26661. var r = e.source.match(/\((?!\?)/g);
  26662. if (r) for (var o = 0; o < r.length; o++) {
  26663. t.push({
  26664. name: o,
  26665. prefix: null,
  26666. delimiter: null,
  26667. optional: !1,
  26668. repeat: !1,
  26669. partial: !1,
  26670. asterisk: !1,
  26671. pattern: null
  26672. });
  26673. }
  26674. return c(e, t);
  26675. }(t, r) : o(t) ? function (t, r, o) {
  26676. for (var n = [], a = 0; a < t.length; a++) {
  26677. n.push(e(t[a], r, o).source);
  26678. }
  26679. return c(new RegExp("(?:" + n.join("|") + ")", s(o)), r);
  26680. }(t, r, n) : function (e, t, r) {
  26681. return f(a(e, r), t, r);
  26682. }(t, r, n);
  26683. }, e.exports.parse = a, e.exports.compile = function (e, t) {
  26684. return u(a(e, t), t);
  26685. }, e.exports.tokensToFunction = u, e.exports.tokensToRegExp = f;
  26686. var n = new RegExp(["(\\\\.)", "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"), "g");
  26687. function a(e, t) {
  26688. for (var r, o = [], a = 0, i = 0, u = "", c = t && t.delimiter || "/"; null != (r = n.exec(e));) {
  26689. var s = r[0],
  26690. f = r[1],
  26691. h = r.index;
  26692. if (u += e.slice(i, h), i = h + s.length, f) u += f[1];else {
  26693. var v = e[i],
  26694. y = r[2],
  26695. g = r[3],
  26696. d = r[4],
  26697. m = r[5],
  26698. b = r[6],
  26699. O = r[7];
  26700. u && (o.push(u), u = "");
  26701. var P = null != y && null != v && v !== y,
  26702. k = "+" === b || "*" === b,
  26703. j = "?" === b || "*" === b,
  26704. w = r[2] || c,
  26705. R = d || m;
  26706. o.push({
  26707. name: g || a++,
  26708. prefix: y || "",
  26709. delimiter: w,
  26710. optional: j,
  26711. repeat: k,
  26712. partial: P,
  26713. asterisk: !!O,
  26714. pattern: R ? p(R) : O ? ".*" : "[^" + l(w) + "]+?"
  26715. });
  26716. }
  26717. }
  26718. return i < e.length && (u += e.substr(i)), u && o.push(u), o;
  26719. }
  26720. function i(e) {
  26721. return encodeURI(e).replace(/[\/?#]/g, function (e) {
  26722. return "%" + e.charCodeAt(0).toString(16).toUpperCase();
  26723. });
  26724. }
  26725. function u(e, t) {
  26726. for (var r = new Array(e.length), n = 0; n < e.length; n++) {
  26727. "object" == _typeof(e[n]) && (r[n] = new RegExp("^(?:" + e[n].pattern + ")$", s(t)));
  26728. }
  26729. return function (t, n) {
  26730. for (var a = "", u = t || {}, l = (n || {}).pretty ? i : encodeURIComponent, p = 0; p < e.length; p++) {
  26731. var c = e[p];
  26732. if ("string" != typeof c) {
  26733. var s,
  26734. f = u[c.name];
  26735. if (null == f) {
  26736. if (c.optional) {
  26737. c.partial && (a += c.prefix);
  26738. continue;
  26739. }
  26740. throw new TypeError('Expected "' + c.name + '" to be defined');
  26741. }
  26742. if (o(f)) {
  26743. if (!c.repeat) throw new TypeError('Expected "' + c.name + '" to not repeat, but received `' + JSON.stringify(f) + "`");
  26744. if (0 === f.length) {
  26745. if (c.optional) continue;
  26746. throw new TypeError('Expected "' + c.name + '" to not be empty');
  26747. }
  26748. for (var h = 0; h < f.length; h++) {
  26749. if (s = l(f[h]), !r[p].test(s)) throw new TypeError('Expected all "' + c.name + '" to match "' + c.pattern + '", but received `' + JSON.stringify(s) + "`");
  26750. a += (0 === h ? c.prefix : c.delimiter) + s;
  26751. }
  26752. } else {
  26753. if (s = c.asterisk ? encodeURI(f).replace(/[?#]/g, function (e) {
  26754. return "%" + e.charCodeAt(0).toString(16).toUpperCase();
  26755. }) : l(f), !r[p].test(s)) throw new TypeError('Expected "' + c.name + '" to match "' + c.pattern + '", but received "' + s + '"');
  26756. a += c.prefix + s;
  26757. }
  26758. } else a += c;
  26759. }
  26760. return a;
  26761. };
  26762. }
  26763. function l(e) {
  26764. return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
  26765. }
  26766. function p(e) {
  26767. return e.replace(/([=!:$\/()])/g, "\\$1");
  26768. }
  26769. function c(e, t) {
  26770. return e.keys = t, e;
  26771. }
  26772. function s(e) {
  26773. return e && e.sensitive ? "" : "i";
  26774. }
  26775. function f(e, t, r) {
  26776. o(t) || (r = t || r, t = []);
  26777. for (var n = (r = r || {}).strict, a = !1 !== r.end, i = "", u = 0; u < e.length; u++) {
  26778. var p = e[u];
  26779. if ("string" == typeof p) i += l(p);else {
  26780. var f = l(p.prefix),
  26781. h = "(?:" + p.pattern + ")";
  26782. t.push(p), p.repeat && (h += "(?:" + f + h + ")*"), i += h = p.optional ? p.partial ? f + "(" + h + ")?" : "(?:" + f + "(" + h + "))?" : f + "(" + h + ")";
  26783. }
  26784. }
  26785. var v = l(r.delimiter || "/"),
  26786. y = i.slice(-v.length) === v;
  26787. return n || (i = (y ? i.slice(0, -v.length) : i) + "(?:" + v + "(?=$))?"), i += a ? "$" : n && y ? "" : "(?=" + v + "|$)", c(new RegExp("^" + i, s(r)), t);
  26788. }
  26789. },
  26790. 173: function _(e) {
  26791. e.exports = Array.isArray || function (e) {
  26792. return "[object Array]" == Object.prototype.toString.call(e);
  26793. };
  26794. },
  26795. 844: function _(e, t, r) {
  26796. "use strict";
  26797. var o = this && this.__assign || function () {
  26798. return (o = Object.assign || function (e) {
  26799. for (var t, r = 1, o = arguments.length; r < o; r++) {
  26800. for (var n in t = arguments[r]) {
  26801. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  26802. }
  26803. }
  26804. return e;
  26805. }).apply(this, arguments);
  26806. };
  26807. Object.defineProperty(t, "__esModule", {
  26808. value: !0
  26809. }), t.buildVueRouter = t.buildVueRoutes = void 0;
  26810. var n = r(366),
  26811. a = r(883),
  26812. i = r(789),
  26813. u = r(169);
  26814. t.buildVueRoutes = function (e, t) {
  26815. for (var r = e.routesMap, o = r.pathMap, l = r.finallyPathList, p = Object.keys(t), c = 0; c < p.length; c++) {
  26816. var s = p[c],
  26817. f = o[s],
  26818. h = t[s];
  26819. if (f) {
  26820. var v = i.getRoutePath(f, e).finallyPath;
  26821. if (v instanceof Array) throw new Error("非 vueRouterDev 模式下,alias、aliasPath、path 无法提供数组类型! " + JSON.stringify(f));
  26822. null != f.name && (h.name = f.name);
  26823. var y = h.path,
  26824. g = h.alias;
  26825. delete h.alias, h.path = v, "/" === y && null != g && (h.alias = g, h.path = y), f.beforeEnter && (h.beforeEnter = function (t, r, o) {
  26826. u.onTriggerEachHook(t, r, e, n.hookToggle.enterHooks, o);
  26827. });
  26828. } else a.warn(s + " 路由地址在路由表中未找到,确定是否传递漏啦", e, !0);
  26829. }
  26830. return l.includes("*") && (t["*"] = o["*"]), t;
  26831. }, t.buildVueRouter = function (e, t, r) {
  26832. var n;
  26833. n = "[object Array]" === i.getDataType(r) ? r : Object.values(r);
  26834. var a = e.options.h5,
  26835. u = a.scrollBehavior,
  26836. l = a.fallback,
  26837. p = t.options.scrollBehavior;
  26838. t.options.scrollBehavior = function (e, t, r) {
  26839. return p && p(e, t, r), u(e, t, r);
  26840. }, t.fallback = l;
  26841. var c = new t.constructor(o(o({}, e.options.h5), {
  26842. base: t.options.base,
  26843. mode: t.options.mode,
  26844. routes: n
  26845. }));
  26846. t.matcher = c.matcher;
  26847. };
  26848. },
  26849. 147: function _(e, t) {
  26850. "use strict";
  26851. var _r,
  26852. o = this && this.__extends || (_r = function r(e, t) {
  26853. return (_r = Object.setPrototypeOf || {
  26854. __proto__: []
  26855. } instanceof Array && function (e, t) {
  26856. e.__proto__ = t;
  26857. } || function (e, t) {
  26858. for (var r in t) {
  26859. Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
  26860. }
  26861. })(e, t);
  26862. }, function (e, t) {
  26863. function o() {
  26864. this.constructor = e;
  26865. }
  26866. _r(e, t), e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, new o());
  26867. });
  26868. Object.defineProperty(t, "__esModule", {
  26869. value: !0
  26870. }), t.proxyH5Mount = t.proxyEachHook = t.MyArray = void 0;
  26871. var n = function (e) {
  26872. function t(r, o, n, a) {
  26873. var i = e.call(this) || this;
  26874. return i.router = r, i.vueEachArray = o, i.myEachHook = n, i.hookName = a, Object.setPrototypeOf(i, t.prototype), i;
  26875. }
  26876. return o(t, e), t.prototype.push = function (e) {
  26877. var t = this;
  26878. this.vueEachArray.push(e);
  26879. var r = this.length;
  26880. this[this.length] = function (e, o, n) {
  26881. r > 0 ? t.vueEachArray[r](e, o, function () {
  26882. n && n();
  26883. }) : t.myEachHook(e, o, function (a) {
  26884. !1 === a ? n(!1) : t.vueEachArray[r](e, o, function (e) {
  26885. n(a);
  26886. });
  26887. }, t.router, !0);
  26888. };
  26889. }, t;
  26890. }(Array);
  26891. t.MyArray = n, t.proxyEachHook = function (e, t) {
  26892. for (var r = ["beforeHooks", "afterHooks"], o = 0; o < r.length; o++) {
  26893. var a = r[o],
  26894. i = e.lifeCycle[a][0];
  26895. if (i) {
  26896. var u = t[a];
  26897. t[a] = new n(e, u, i, a);
  26898. }
  26899. }
  26900. }, t.proxyH5Mount = function (e) {
  26901. var t;
  26902. if (0 === e.mount.length) {
  26903. if (null === (t = e.options.h5) || void 0 === t ? void 0 : t.vueRouterDev) return;
  26904. navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) && setTimeout(function () {
  26905. if (document.getElementsByTagName("uni-page").length > 0) return !1;
  26906. window.location.reload();
  26907. }, 0);
  26908. } else e.mount[0].app.$mount(), e.mount = [];
  26909. };
  26910. },
  26911. 814: function _(e, t) {
  26912. "use strict";
  26913. var r = this && this.__assign || function () {
  26914. return (r = Object.assign || function (e) {
  26915. for (var t, r = 1, o = arguments.length; r < o; r++) {
  26916. for (var n in t = arguments[r]) {
  26917. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  26918. }
  26919. }
  26920. return e;
  26921. }).apply(this, arguments);
  26922. };
  26923. Object.defineProperty(t, "__esModule", {
  26924. value: !0
  26925. }), t.runtimeQuit = t.registerLoddingPage = void 0;
  26926. var o = null;
  26927. t.registerLoddingPage = function (e) {
  26928. if (e.options.registerLoadingPage) {
  26929. var t = e.options.APP,
  26930. o = t.loadingPageHook,
  26931. n = t.loadingPageStyle;
  26932. o(new plus.nativeObj.View("router-loadding", r({
  26933. top: "0px",
  26934. left: "0px",
  26935. height: "100%",
  26936. width: "100%"
  26937. }, n())));
  26938. }
  26939. }, t.runtimeQuit = function (e) {
  26940. void 0 === e && (e = "再按一次退出应用");
  26941. var t = +new Date();
  26942. o ? t - o < 1e3 && plus.runtime.quit() : (o = t, uni.showToast({
  26943. title: e,
  26944. icon: "none",
  26945. position: "bottom",
  26946. duration: 1e3
  26947. }), setTimeout(function () {
  26948. o = null;
  26949. }, 1e3));
  26950. };
  26951. },
  26952. 334: function _(e, t) {
  26953. "use strict";
  26954. Object.defineProperty(t, "__esModule", {
  26955. value: !0
  26956. }), t.getEnterPath = void 0, t.getEnterPath = function (e, t) {
  26957. switch (t.options.platform) {
  26958. case "mp-alipay":
  26959. case "mp-weixin":
  26960. case "mp-toutiao":
  26961. case "mp-qq":
  26962. return e.$options.mpInstance.route;
  26963. case "mp-baidu":
  26964. return e.$options.mpInstance.is || e.$options.mpInstance.pageinstance.route;
  26965. }
  26966. return e.$options.mpInstance.route;
  26967. };
  26968. },
  26969. 282: function _(e, t, r) {
  26970. "use strict";
  26971. var o = this && this.__assign || function () {
  26972. return (o = Object.assign || function (e) {
  26973. for (var t, r = 1, o = arguments.length; r < o; r++) {
  26974. for (var n in t = arguments[r]) {
  26975. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  26976. }
  26977. }
  26978. return e;
  26979. }).apply(this, arguments);
  26980. },
  26981. n = this && this.__rest || function (e, t) {
  26982. var r = {};
  26983. for (var o in e) {
  26984. Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
  26985. }
  26986. if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
  26987. var n = 0;
  26988. for (o = Object.getOwnPropertySymbols(e); n < o.length; n++) {
  26989. t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
  26990. }
  26991. }
  26992. return r;
  26993. };
  26994. Object.defineProperty(t, "__esModule", {
  26995. value: !0
  26996. }), t.notCallProxyHook = t.proxyVueSortHookName = t.indexProxyHook = t.appProxyHook = t.lifeCycle = t.baseConfig = t.mpPlatformReg = t.keyword = void 0;
  26997. var a = r(883),
  26998. i = r(789);
  26999. t.keyword = ["query"], t.mpPlatformReg = "(^mp-weixin$)|(^mp-baidu$)|(^mp-alipay$)|(^mp-toutiao$)|(^mp-qq$)|(^mp-360$)", t.baseConfig = {
  27000. h5: {
  27001. paramsToQuery: !1,
  27002. vueRouterDev: !1,
  27003. vueNext: !1,
  27004. mode: "hash",
  27005. base: "/",
  27006. linkActiveClass: "router-link-active",
  27007. linkExactActiveClass: "router-link-exact-active",
  27008. scrollBehavior: function scrollBehavior(e, t, r) {
  27009. return {
  27010. x: 0,
  27011. y: 0
  27012. };
  27013. },
  27014. fallback: !0
  27015. },
  27016. APP: {
  27017. registerLoadingPage: !0,
  27018. loadingPageStyle: function loadingPageStyle() {
  27019. return JSON.parse('{"backgroundColor":"#FFF"}');
  27020. },
  27021. loadingPageHook: function loadingPageHook(e) {
  27022. e.show();
  27023. },
  27024. launchedHook: function launchedHook() {
  27025. plus.navigator.closeSplashscreen();
  27026. },
  27027. animation: {}
  27028. },
  27029. applet: {
  27030. animationDuration: 300
  27031. },
  27032. platform: "h5",
  27033. keepUniOriginNav: !1,
  27034. debugger: !1,
  27035. routerBeforeEach: function routerBeforeEach(e, t, r) {
  27036. r();
  27037. },
  27038. routerAfterEach: function routerAfterEach(e, t) {},
  27039. routerErrorEach: function routerErrorEach(e, t) {
  27040. t.$lockStatus = !1, a.err(e, t, !0);
  27041. },
  27042. detectBeforeLock: function detectBeforeLock(e, t, r) {},
  27043. routes: [{
  27044. path: "/choose-location"
  27045. }, {
  27046. path: "/open-location"
  27047. }, {
  27048. path: "/preview-image"
  27049. }]
  27050. }, t.lifeCycle = {
  27051. beforeHooks: [],
  27052. afterHooks: [],
  27053. routerBeforeHooks: [],
  27054. routerAfterHooks: [],
  27055. routerErrorHooks: []
  27056. }, t.appProxyHook = {
  27057. app: {
  27058. created: [],
  27059. beforeMount: [],
  27060. mounted: [],
  27061. onLaunch: [],
  27062. onShow: [],
  27063. onHide: [],
  27064. beforeDestroy: [],
  27065. destroyed: []
  27066. }
  27067. }, t.indexProxyHook = {
  27068. app: t.appProxyHook.app,
  27069. page: function (e) {
  27070. e.onLaunch;
  27071. var t = n(e, ["onLaunch"]);
  27072. return o(o({}, t), {
  27073. onLoad: [],
  27074. onReady: [],
  27075. onUnload: [],
  27076. onResize: []
  27077. });
  27078. }(i.copyData(t.appProxyHook.app)),
  27079. component: []
  27080. }, t.proxyVueSortHookName = {
  27081. app: ["created", "beforeMount", "mounted", "onLaunch", "onShow", "onHide", "beforeDestroy", "destroyed"],
  27082. page: ["created", "beforeMount", "mounted", "onLoad", "onReady", "onShow", "onResize", "onHide", "beforeDestroy", "destroyed", "onUnload"],
  27083. component: ["created", "beforeMount", "mounted", "beforeDestroy", "destroyed"]
  27084. }, t.notCallProxyHook = ["onHide", "beforeDestroy", "destroyed", "destroyed", "onUnload", "onResize"];
  27085. },
  27086. 801: function _(e, t, r) {
  27087. "use strict";
  27088. Object.defineProperty(t, "__esModule", {
  27089. value: !0
  27090. }), t.createRouteMap = void 0;
  27091. var o = r(883),
  27092. n = r(789);
  27093. t.createRouteMap = function (e, t) {
  27094. var r = {
  27095. finallyPathList: [],
  27096. finallyPathMap: Object.create(null),
  27097. aliasPathMap: Object.create(null),
  27098. pathMap: Object.create(null),
  27099. vueRouteMap: Object.create(null),
  27100. nameMap: Object.create(null)
  27101. };
  27102. return t.forEach(function (t) {
  27103. var a = n.getRoutePath(t, e),
  27104. i = a.finallyPath,
  27105. u = a.aliasPath,
  27106. l = a.path;
  27107. if (null == l) throw new Error("请提供一个完整的路由对象,包括以绝对路径开始的 ‘path’ 字符串 " + JSON.stringify(t));
  27108. if (i instanceof Array && !e.options.h5.vueRouterDev && "h5" === e.options.platform) throw new Error("非 vueRouterDev 模式下,route.alias 目前无法提供数组类型! " + JSON.stringify(t));
  27109. var p = i,
  27110. c = u;
  27111. "h5" !== e.options.platform && 0 !== p.indexOf("/") && "*" !== l && o.warn("当前路由对象下,route:" + JSON.stringify(t) + " 是否缺少了前缀 ‘/’", e, !0), r.finallyPathMap[p] || (r.finallyPathMap[p] = t, r.aliasPathMap[c] = t, r.pathMap[l] = t, r.finallyPathList.push(p), null != t.name && (r.nameMap[t.name] = t));
  27112. }), r;
  27113. };
  27114. },
  27115. 662: function _(e, t, r) {
  27116. "use strict";
  27117. Object.defineProperty(t, "__esModule", {
  27118. value: !0
  27119. }), t.registerEachHooks = t.registerRouterHooks = t.registerHook = void 0;
  27120. var o = r(366),
  27121. n = r(169);
  27122. function a(e, t) {
  27123. e[0] = t;
  27124. }
  27125. t.registerHook = a, t.registerRouterHooks = function (e, t) {
  27126. return a(e.routerBeforeHooks, function (e, r, o) {
  27127. t.routerBeforeEach(e, r, o);
  27128. }), a(e.routerAfterHooks, function (e, r) {
  27129. t.routerAfterEach(e, r);
  27130. }), a(e.routerErrorHooks, function (e, r) {
  27131. t.routerErrorEach(e, r);
  27132. }), e;
  27133. }, t.registerEachHooks = function (e, t, r) {
  27134. a(e.lifeCycle[t], function (e, a, i, u, l) {
  27135. l ? n.onTriggerEachHook(e, a, u, o.hookToggle[t], i) : r(e, a, i);
  27136. });
  27137. };
  27138. },
  27139. 460: function _(e, t, r) {
  27140. "use strict";
  27141. var o = this && this.__assign || function () {
  27142. return (o = Object.assign || function (e) {
  27143. for (var t, r = 1, o = arguments.length; r < o; r++) {
  27144. for (var n in t = arguments[r]) {
  27145. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  27146. }
  27147. }
  27148. return e;
  27149. }).apply(this, arguments);
  27150. };
  27151. Object.defineProperty(t, "__esModule", {
  27152. value: !0
  27153. }), t.initMixins = t.getMixins = void 0;
  27154. var n = r(801),
  27155. a = r(844),
  27156. i = r(147),
  27157. u = r(814),
  27158. l = r(845),
  27159. p = r(890),
  27160. c = r(789),
  27161. s = r(334),
  27162. f = r(282),
  27163. h = !1,
  27164. v = !1,
  27165. y = {
  27166. app: !1,
  27167. page: ""
  27168. };
  27169. function g(e, t) {
  27170. var r = t.options.platform;
  27171. return new RegExp(f.mpPlatformReg, "g").test(r) && (r = "app-lets"), {
  27172. h5: {
  27173. beforeCreate: function beforeCreate() {
  27174. var e;
  27175. if (this.$options.router) {
  27176. t.$route = this.$options.router;
  27177. var r = [];
  27178. (null === (e = t.options.h5) || void 0 === e ? void 0 : e.vueRouterDev) ? r = t.options.routes : (r = n.createRouteMap(t, this.$options.router.options.routes).finallyPathMap, t.routesMap.vueRouteMap = r, a.buildVueRoutes(t, r)), a.buildVueRouter(t, this.$options.router, r), i.proxyEachHook(t, this.$options.router);
  27179. }
  27180. }
  27181. },
  27182. "app-plus": {
  27183. beforeCreate: function beforeCreate() {
  27184. h || (h = !0, l.proxyPageHook(this, t, "appProxyHook", "app"), u.registerLoddingPage(t));
  27185. }
  27186. },
  27187. "app-lets": {
  27188. beforeCreate: function beforeCreate() {
  27189. var e = this.$options.mpType;
  27190. "component" !== e || v ? "component" !== e && (y[e] || ("page" === e ? (y[e] = s.getEnterPath(this, t), t.enterPath = y[e]) : y[e] = !0, l.proxyPageHook(this, t, "appletsProxyHook", e))) : c.assertParentChild(y.page, this) && l.proxyPageHook(this, t, "appletsProxyHook", e);
  27191. },
  27192. onLoad: function onLoad() {
  27193. !v && c.assertParentChild(y.page, this) && (v = !0, p.forceGuardEach(t));
  27194. }
  27195. }
  27196. }[r];
  27197. }
  27198. t.getMixins = g, t.initMixins = function (e, t) {
  27199. var r = n.createRouteMap(t, t.options.routes);
  27200. t.routesMap = r, e.mixin(o({}, g(0, t)));
  27201. };
  27202. },
  27203. 789: function _(e, t, r) {
  27204. "use strict";
  27205. var o = this && this.__assign || function () {
  27206. return (o = Object.assign || function (e) {
  27207. for (var t, r = 1, o = arguments.length; r < o; r++) {
  27208. for (var n in t = arguments[r]) {
  27209. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  27210. }
  27211. }
  27212. return e;
  27213. }).apply(this, arguments);
  27214. },
  27215. n = this && this.__rest || function (e, t) {
  27216. var r = {};
  27217. for (var o in e) {
  27218. Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
  27219. }
  27220. if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
  27221. var n = 0;
  27222. for (o = Object.getOwnPropertySymbols(e); n < o.length; n++) {
  27223. t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
  27224. }
  27225. }
  27226. return r;
  27227. },
  27228. a = this && this.__spreadArrays || function () {
  27229. for (var e = 0, t = 0, r = arguments.length; t < r; t++) {
  27230. e += arguments[t].length;
  27231. }
  27232. var o = Array(e),
  27233. n = 0;
  27234. for (t = 0; t < r; t++) {
  27235. for (var a = arguments[t], i = 0, u = a.length; i < u; i++, n++) {
  27236. o[n] = a[i];
  27237. }
  27238. }
  27239. return o;
  27240. };
  27241. Object.defineProperty(t, "__esModule", {
  27242. value: !0
  27243. }), t.resolveAbsolutePath = t.assertParentChild = t.reservedWord = t.resetPageHook = t.callHook = t.replaceHook = t.lockDetectWarn = t.deepClone = t.baseClone = t.assertDeepObject = t.paramsToQuery = t.forMatNextToFrom = t.urlToJson = t.getUniCachePage = t.copyData = t.getDataType = t.routesForMapRoute = t.notRouteTo404 = t.getWildcardRule = t.assertNewOptions = t.getRoutePath = t.notDeepClearNull = t.mergeConfig = t.timeOut = t.def = t.voidFun = void 0;
  27244. var i = r(282),
  27245. u = r(169),
  27246. l = r(883),
  27247. p = r(890),
  27248. c = r(779);
  27249. function s(e, t) {
  27250. for (var r = Object.create(null), n = Object.keys(e).concat(["resolveQuery", "parseQuery"]), i = 0; i < n.length; i += 1) {
  27251. var u = n[i];
  27252. null != t[u] ? t[u].constructor === Object ? r[u] = o(o({}, e[u]), t[u]) : r[u] = "routes" === u ? a(e[u], t[u]) : t[u] : r[u] = e[u];
  27253. }
  27254. return r;
  27255. }
  27256. function f(e, t) {
  27257. var r = e.aliasPath || e.alias || e.path;
  27258. return "h5" !== t.options.platform && (r = e.path), {
  27259. finallyPath: r,
  27260. aliasPath: e.aliasPath || e.path,
  27261. path: e.path,
  27262. alias: e.alias
  27263. };
  27264. }
  27265. function h(e, t) {
  27266. var r = e.routesMap.finallyPathMap["*"];
  27267. if (r) return r;
  27268. throw t && u.ERRORHOOK[0](t, e), new Error("当前路由表匹配规则已全部匹配完成,未找到满足的匹配规则。你可以使用 '*' 通配符捕捉最后的异常");
  27269. }
  27270. function v(e) {
  27271. return Object.prototype.toString.call(e);
  27272. }
  27273. function y(e) {
  27274. return JSON.parse(JSON.stringify(e));
  27275. }
  27276. function g(e, t) {
  27277. for (var r = 0, o = Object.keys(e); r < o.length; r++) {
  27278. var n = o[r],
  27279. a = n;
  27280. e[n] !== e && ("object" == _typeof(e[n]) ? (t[a] = "[object Array]" === v(e[n]) ? [] : {}, g(e[n], t[a])) : t[a] = e[n]);
  27281. }
  27282. }
  27283. function d(e) {
  27284. var t = "[object Array]" === v(e) ? [] : {};
  27285. return g(e, t), t;
  27286. }
  27287. function m(e, t) {
  27288. for (var r = [], o = 0, n = Object.entries(e); o < n.length; o++) {
  27289. var a = n[o][1][0];
  27290. a && a.hook && r.push(a.hook(t));
  27291. }
  27292. return r;
  27293. }
  27294. t.voidFun = function () {}, t.def = function (e, t, r) {
  27295. Object.defineProperty(e, t, {
  27296. get: function get() {
  27297. return r();
  27298. }
  27299. });
  27300. }, t.timeOut = function (e) {
  27301. return new Promise(function (t) {
  27302. setTimeout(function () {
  27303. t();
  27304. }, e);
  27305. });
  27306. }, t.mergeConfig = s, t.notDeepClearNull = function (e) {
  27307. for (var t in e) {
  27308. null == e[t] && delete e[t];
  27309. }
  27310. return e;
  27311. }, t.getRoutePath = f, t.assertNewOptions = function (e) {
  27312. var t,
  27313. r = e.platform,
  27314. o = e.routes;
  27315. if (null == r) throw new Error("你在实例化路由时必须传递 'platform'");
  27316. if (null == o || 0 === o.length) throw new Error("你在实例化路由时必须传递 routes 为空,这是无意义的。");
  27317. return "h5" === e.platform && (null === (t = e.h5) || void 0 === t ? void 0 : t.vueRouterDev) && (i.baseConfig.routes = []), s(i.baseConfig, e);
  27318. }, t.getWildcardRule = h, t.notRouteTo404 = function (e, t, r, o) {
  27319. if ("*" !== t.path) return t;
  27320. var n = t.redirect;
  27321. if (void 0 === n) throw new Error(" * 通配符必须配合 redirect 使用。redirect: string | Location | Function");
  27322. var a = n;
  27323. return "function" == typeof a && (a = a(r)), p.navjump(a, e, o, void 0, void 0, void 0, !1);
  27324. }, t.routesForMapRoute = function (e, t, r) {
  27325. var o;
  27326. if (null === (o = e.options.h5) || void 0 === o ? void 0 : o.vueRouterDev) return {
  27327. path: t
  27328. };
  27329. for (var n = t.split("?")[0], a = "", i = e.routesMap, u = 0; u < r.length; u++) {
  27330. for (var l = i[r[u]], p = 0, s = Object.entries(l); p < s.length; p++) {
  27331. var f = s[p],
  27332. y = f[0],
  27333. g = f[1];
  27334. if ("*" !== y) {
  27335. var d = g,
  27336. m = y;
  27337. if ("[object Array]" === v(l) && (m = d), null != c(m).exec(n)) return "[object String]" === v(d) ? i.finallyPathMap[d] : d;
  27338. } else "" === a && (a = "*");
  27339. }
  27340. }
  27341. if ("" !== a) return h(e);
  27342. throw new Error(t + " 路径无法在路由表中找到!检查跳转路径及路由表");
  27343. }, t.getDataType = v, t.copyData = y, t.getUniCachePage = function (e) {
  27344. var t = getCurrentPages();
  27345. if (null == e) return t;
  27346. if (0 === t.length) return t;
  27347. var r = t.reverse()[e];
  27348. return null == r ? [] : r;
  27349. }, t.urlToJson = function (e) {
  27350. var t = {},
  27351. r = e.split("?"),
  27352. o = r[0],
  27353. n = r[1];
  27354. if (null != n) for (var a = 0, i = n.split("&"); a < i.length; a++) {
  27355. var u = i[a].split("=");
  27356. t[u[0]] = u[1];
  27357. }
  27358. return {
  27359. path: o,
  27360. query: t
  27361. };
  27362. }, t.forMatNextToFrom = function (e, t, r) {
  27363. var o = [t, r],
  27364. n = o[0],
  27365. a = o[1];
  27366. if ("h5" === e.options.platform) {
  27367. var i = e.options.h5,
  27368. u = i.vueNext,
  27369. l = i.vueRouterDev;
  27370. u || l || (n = p.createRoute(e, void 0, n), a = p.createRoute(e, void 0, a));
  27371. } else n = p.createRoute(e, void 0, d(n)), a = p.createRoute(e, void 0, d(a));
  27372. return {
  27373. matTo: n,
  27374. matFrom: a
  27375. };
  27376. }, t.paramsToQuery = function (e, t) {
  27377. var r;
  27378. if ("h5" === e.options.platform && !(null === (r = e.options.h5) || void 0 === r ? void 0 : r.paramsToQuery)) return t;
  27379. if ("[object Object]" === v(t)) {
  27380. var a = t,
  27381. i = a.name,
  27382. l = a.params,
  27383. p = n(a, ["name", "params"]),
  27384. c = l;
  27385. if ("h5" !== e.options.platform && null == c && (c = {}), null != i && null != c) {
  27386. var s = e.routesMap.nameMap[i];
  27387. null == s && (s = h(e, {
  27388. type: 2,
  27389. msg: "命名路由为:" + i + " 的路由,无法在路由表中找到!",
  27390. toRule: t
  27391. }));
  27392. var y = f(s, e).finallyPath;
  27393. if (!y.includes(":")) return o(o({}, p), {
  27394. path: y,
  27395. query: c
  27396. });
  27397. u.ERRORHOOK[0]({
  27398. type: 2,
  27399. msg: "动态路由:" + y + " 无法使用 paramsToQuery!",
  27400. toRule: t
  27401. }, e);
  27402. }
  27403. }
  27404. return t;
  27405. }, t.assertDeepObject = function (e) {
  27406. var t = null;
  27407. try {
  27408. t = JSON.stringify(e).match(/\{|\[|\}|\]/g);
  27409. } catch (e) {
  27410. l.warnLock("传递的参数解析对象失败。" + e);
  27411. }
  27412. return null != t && t.length > 3;
  27413. }, t.baseClone = g, t.deepClone = d, t.lockDetectWarn = function (e, t, r, o, n) {
  27414. if ("afterHooks" === n) o();else {
  27415. var a = e.options.detectBeforeLock;
  27416. a && a(e, t, r), e.$lockStatus ? e.options.routerErrorEach({
  27417. type: 2,
  27418. msg: "当前页面正在处于跳转状态,请稍后再进行跳转...."
  27419. }, e) : o();
  27420. }
  27421. }, t.replaceHook = function (e, t, r, o) {
  27422. var n = t.$options,
  27423. a = e[r][o],
  27424. u = {};
  27425. if ("[object Array]" === v(a) && (u = {
  27426. beforeCreate: [],
  27427. created: [],
  27428. beforeMount: [],
  27429. mounted: [],
  27430. beforeDestroy: [],
  27431. destroyed: []
  27432. }), null != a) {
  27433. for (var l = i.proxyVueSortHookName[o], p = function p(r) {
  27434. var p = l[r],
  27435. c = n[p];
  27436. if ("[object Array]" === v(c)) {
  27437. var s = {
  27438. options: [],
  27439. hook: Function
  27440. },
  27441. f = c.splice(c.length - 1, 1, function () {
  27442. for (var e = [], t = 0; t < arguments.length; t++) {
  27443. e[t] = arguments[t];
  27444. }
  27445. return s.options = e;
  27446. })[0];
  27447. s.hook = function (r) {
  27448. return e.enterPath.replace(/^\//, "") !== r.replace(/^\//, "") && "app" !== o ? function () {} : (i.notCallProxyHook.includes(p) || f.apply(t, s.options), function () {
  27449. c.splice(c.length - 1, 1, f);
  27450. });
  27451. }, Object.keys(u).length > 0 ? u[p] = [s] : a[p] = [s];
  27452. }
  27453. }, c = 0; c < l.length; c++) {
  27454. p(c);
  27455. }
  27456. Object.keys(u).length > 0 && a.push(u);
  27457. }
  27458. }, t.callHook = m, t.resetPageHook = function (e, t) {
  27459. var r = t.trim().match(/^(\/?[^\?\s]+)(\?[\s\S]*$)?$/);
  27460. if (null == r) throw new Error("还原hook失败。请检查 【" + t + "】 路径是否正确。");
  27461. t = r[1];
  27462. var o = "appletsProxyHook";
  27463. "app-plus" === e.options.platform && (o = "appProxyHook");
  27464. for (var n = [], a = 0, i = Object.entries(e[o]); a < i.length; a++) {
  27465. var u = i[a][1];
  27466. if ("[object Array]" === v(u)) for (var l = 0; l < u.length; l++) {
  27467. n = n.concat(m(u[l], t));
  27468. } else n = n.concat(m(u, t));
  27469. }
  27470. setTimeout(function () {
  27471. for (var e = 0; e < n.length; e++) {
  27472. n[e]();
  27473. }
  27474. }, 500);
  27475. }, t.reservedWord = function (e) {
  27476. if ("string" == typeof e) return e;
  27477. for (var t = o(o({}, y(e.params || {})), y(e.query || {})), r = 0; r < i.keyword.length; r++) {
  27478. var n = i.keyword[r];
  27479. Reflect.has(t, n) && ("[object Object]" === v(e.query) && delete e.query[n], "[object Object]" === v(e.params) && delete e.params[n], l.warnLock(JSON.stringify(i.keyword) + " 作为插件的保留字,在参数传递中不允许使用。已自动被过滤掉!换个参数名试试吧! "));
  27480. }
  27481. return e;
  27482. }, t.assertParentChild = function (e, t) {
  27483. for (; null != t.$parent;) {
  27484. var r = t.$parent.$mp;
  27485. if (r.page && r.page.is === e) return !0;
  27486. t = t.$parent;
  27487. }
  27488. try {
  27489. if (t.$mp.page.is === e || t.$mp.page.route === e) return !0;
  27490. } catch (e) {
  27491. return !1;
  27492. }
  27493. return !1;
  27494. }, t.resolveAbsolutePath = function (e, t) {
  27495. var r = /^\/?([^\?\s]+)(\?.+)?$/,
  27496. o = e.trim();
  27497. if (!r.test(o)) throw new Error("【" + e + "】 路径错误,请提供完整的路径(10001)。");
  27498. var n = o.match(r);
  27499. if (null == n) throw new Error("【" + e + "】 路径错误,请提供完整的路径(10002)。");
  27500. var a = n[2] || "";
  27501. if (/^\.\/[^\.]+/.test(o)) return (t.currentRoute.path + e).replace(/[^\/]+\.\//, "");
  27502. var i = n[1].replace(/\//g, "\\/").replace(/\.\./g, "[^\\/]+").replace(/\./g, "\\."),
  27503. u = new RegExp("^\\/" + i + "$"),
  27504. l = t.options.routes.filter(function (e) {
  27505. return u.test(e.path);
  27506. });
  27507. if (1 !== l.length) throw new Error("【" + e + "】 路径错误,尝试转成绝对路径失败,请手动转成绝对路径(10003)。");
  27508. return l[0].path + a;
  27509. };
  27510. },
  27511. 883: function _(e, t) {
  27512. "use strict";
  27513. function r(e, t, r, o) {
  27514. if (void 0 === o && (o = !1), !o) {
  27515. var n = "[object Object]" === t.toString();
  27516. if (!1 === t) return !1;
  27517. if (n && !1 === t[e]) return !1;
  27518. }
  27519. return console[e](r), !0;
  27520. }
  27521. Object.defineProperty(t, "__esModule", {
  27522. value: !0
  27523. }), t.warnLock = t.log = t.warn = t.err = t.isLog = void 0, t.isLog = r, t.err = function (e, t, o) {
  27524. r("error", t.options.debugger, e, o);
  27525. }, t.warn = function (e, t, o) {
  27526. r("warn", t.options.debugger, e, o);
  27527. }, t.log = function (e, t, o) {
  27528. r("log", t.options.debugger, e, o);
  27529. }, t.warnLock = function (e) {
  27530. console.warn(e);
  27531. };
  27532. },
  27533. 607: function _(e, t, r) {
  27534. "use strict";
  27535. var o = this && this.__createBinding || (Object.create ? function (e, t, r, o) {
  27536. void 0 === o && (o = r), Object.defineProperty(e, o, {
  27537. enumerable: !0,
  27538. get: function get() {
  27539. return t[r];
  27540. }
  27541. });
  27542. } : function (e, t, r, o) {
  27543. void 0 === o && (o = r), e[o] = t[r];
  27544. }),
  27545. n = this && this.__exportStar || function (e, t) {
  27546. for (var r in e) {
  27547. "default" === r || Object.prototype.hasOwnProperty.call(t, r) || o(t, e, r);
  27548. }
  27549. };
  27550. Object.defineProperty(t, "__esModule", {
  27551. value: !0
  27552. }), t.createRouter = t.RouterMount = t.runtimeQuit = void 0, n(r(366), t), n(r(309), t);
  27553. var a = r(814);
  27554. Object.defineProperty(t, "runtimeQuit", {
  27555. enumerable: !0,
  27556. get: function get() {
  27557. return a.runtimeQuit;
  27558. }
  27559. });
  27560. var i = r(963);
  27561. Object.defineProperty(t, "RouterMount", {
  27562. enumerable: !0,
  27563. get: function get() {
  27564. return i.RouterMount;
  27565. }
  27566. }), Object.defineProperty(t, "createRouter", {
  27567. enumerable: !0,
  27568. get: function get() {
  27569. return i.createRouter;
  27570. }
  27571. });
  27572. },
  27573. 366: function _(e, t) {
  27574. "use strict";
  27575. var r, o, n;
  27576. Object.defineProperty(t, "__esModule", {
  27577. value: !0
  27578. }), t.rewriteMethodToggle = t.navtypeToggle = t.hookToggle = void 0, (n = t.hookToggle || (t.hookToggle = {})).beforeHooks = "beforeEach", n.afterHooks = "afterEach", n.enterHooks = "beforeEnter", (o = t.navtypeToggle || (t.navtypeToggle = {})).push = "navigateTo", o.replace = "redirectTo", o.replaceAll = "reLaunch", o.pushTab = "switchTab", o.back = "navigateBack", (r = t.rewriteMethodToggle || (t.rewriteMethodToggle = {})).navigateTo = "push", r.navigate = "push", r.redirectTo = "replace", r.reLaunch = "replaceAll", r.switchTab = "pushTab", r.navigateBack = "back";
  27579. },
  27580. 309: function _(e, t) {
  27581. "use strict";
  27582. Object.defineProperty(t, "__esModule", {
  27583. value: !0
  27584. });
  27585. },
  27586. 169: function _(e, t, r) {
  27587. "use strict";
  27588. var o = this && this.__rest || function (e, t) {
  27589. var r = {};
  27590. for (var o in e) {
  27591. Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
  27592. }
  27593. if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
  27594. var n = 0;
  27595. for (o = Object.getOwnPropertySymbols(e); n < o.length; n++) {
  27596. t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
  27597. }
  27598. }
  27599. return r;
  27600. };
  27601. Object.defineProperty(t, "__esModule", {
  27602. value: !0
  27603. }), t.loopCallHook = t.transitionTo = t.onTriggerEachHook = t.callHook = t.callBeforeRouteLeave = t.HOOKLIST = t.ERRORHOOK = void 0;
  27604. var n = r(789),
  27605. a = r(890),
  27606. i = r(147);
  27607. function u(e, t, r, o) {
  27608. var a,
  27609. i = n.getUniCachePage(0);
  27610. if (Object.keys(i).length > 0) {
  27611. var u = void 0;
  27612. switch ("h5" === e.options.platform ? u = i.$options.beforeRouteLeave : null != i.$vm && (u = i.$vm.$options.beforeRouteLeave), n.getDataType(u)) {
  27613. case "[object Array]":
  27614. a = (a = u[0]).bind(i);
  27615. break;
  27616. case "[object Function]":
  27617. a = u.bind(i.$vm);
  27618. }
  27619. }
  27620. return l(a, t, r, e, o);
  27621. }
  27622. function l(e, t, r, o, n, a) {
  27623. void 0 === a && (a = !0), null != e && e instanceof Function ? !0 === a ? e(t, r, n, o, !1) : (e(t, r, function () {}, o, !1), n()) : n();
  27624. }
  27625. function p(e, t, r, o, a, i) {
  27626. var u = n.forMatNextToFrom(e, t, r),
  27627. l = u.matTo,
  27628. p = u.matFrom;
  27629. "h5" === e.options.platform ? c(a, 0, i, e, l, p, o) : c(a.slice(0, 4), 0, function () {
  27630. i(function () {
  27631. c(a.slice(4), 0, n.voidFun, e, l, p, o);
  27632. });
  27633. }, e, l, p, o);
  27634. }
  27635. function c(e, r, i, u, l, p, s) {
  27636. var f = n.routesForMapRoute(u, l.path, ["finallyPathMap", "pathMap"]);
  27637. if (e.length - 1 < r) return i();
  27638. var h = e[r],
  27639. v = t.ERRORHOOK[0];
  27640. h(u, l, p, f, function (t) {
  27641. if (!1 === t) "h5" === u.options.platform && i(!1), v({
  27642. type: 0,
  27643. msg: "管道函数传递 false 导航被终止!",
  27644. matTo: l,
  27645. matFrom: p,
  27646. nextTo: t
  27647. }, u);else if ("string" == typeof t || "object" == _typeof(t)) {
  27648. var n = s,
  27649. f = t;
  27650. if ("object" == _typeof(t)) {
  27651. var h = t.NAVTYPE;
  27652. f = o(t, ["NAVTYPE"]), null != h && (n = h);
  27653. }
  27654. a.navjump(f, u, n, {
  27655. from: p,
  27656. next: i
  27657. });
  27658. } else null == t ? (r++, c(e, r, i, u, l, p, s)) : v({
  27659. type: 1,
  27660. msg: "管道函数传递未知类型,无法被识别。导航被终止!",
  27661. matTo: l,
  27662. matFrom: p,
  27663. nextTo: t
  27664. }, u);
  27665. });
  27666. }
  27667. t.ERRORHOOK = [function (e, t) {
  27668. return t.lifeCycle.routerErrorHooks[0](e, t);
  27669. }], t.HOOKLIST = [function (e, t, r, o, n) {
  27670. return l(e.lifeCycle.routerBeforeHooks[0], t, r, e, n);
  27671. }, function (e, t, r, o, n) {
  27672. return u(e, t, r, n);
  27673. }, function (e, t, r, o, n) {
  27674. return l(e.lifeCycle.beforeHooks[0], t, r, e, n);
  27675. }, function (e, t, r, o, n) {
  27676. return l(o.beforeEnter, t, r, e, n);
  27677. }, function (e, t, r, o, n) {
  27678. return l(e.lifeCycle.afterHooks[0], t, r, e, n, !1);
  27679. }, function (e, t, r, o, n) {
  27680. return e.$lockStatus = !1, "h5" === e.options.platform && i.proxyH5Mount(e), l(e.lifeCycle.routerAfterHooks[0], t, r, e, n, !1);
  27681. }], t.callBeforeRouteLeave = u, t.callHook = l, t.onTriggerEachHook = function (e, r, o, n, a) {
  27682. var i = [];
  27683. switch (n) {
  27684. case "beforeEach":
  27685. i = t.HOOKLIST.slice(0, 3);
  27686. break;
  27687. case "afterEach":
  27688. i = t.HOOKLIST.slice(4);
  27689. break;
  27690. case "beforeEnter":
  27691. i = t.HOOKLIST.slice(3, 4);
  27692. }
  27693. p(o, e, r, "push", i, a);
  27694. }, t.transitionTo = p, t.loopCallHook = c;
  27695. },
  27696. 890: function _(e, t, r) {
  27697. "use strict";
  27698. var o = this && this.__assign || function () {
  27699. return (o = Object.assign || function (e) {
  27700. for (var t, r = 1, o = arguments.length; r < o; r++) {
  27701. for (var n in t = arguments[r]) {
  27702. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  27703. }
  27704. }
  27705. return e;
  27706. }).apply(this, arguments);
  27707. };
  27708. Object.defineProperty(t, "__esModule", {
  27709. value: !0
  27710. }), t.createRoute = t.forceGuardEach = t.backOptionsBuild = t.navjump = t.lockNavjump = void 0;
  27711. var n = r(366),
  27712. a = r(99),
  27713. i = r(789),
  27714. u = r(169),
  27715. l = r(845),
  27716. p = r(169);
  27717. function c(e, t, r, o, n) {
  27718. i.lockDetectWarn(t, e, r, function () {
  27719. "h5" !== t.options.platform && (t.$lockStatus = !0), s(e, t, r, void 0, o, n);
  27720. });
  27721. }
  27722. function s(e, t, r, c, s, h, v) {
  27723. if (void 0 === v && (v = !0), "back" === r) {
  27724. var y;
  27725. if (y = "string" == typeof e ? +e : e.delta || 1, "h5" === t.options.platform) {
  27726. t.$route.go(-y);
  27727. var g = (h || {
  27728. success: i.voidFun
  27729. }).success || i.voidFun,
  27730. d = (h || {
  27731. complete: i.voidFun
  27732. }).complete || i.voidFun;
  27733. return g({
  27734. errMsg: "navigateBack:ok"
  27735. }), void d({
  27736. errMsg: "navigateBack:ok"
  27737. });
  27738. }
  27739. e = f(t, y, h);
  27740. }
  27741. e = i.reservedWord(e);
  27742. var m = a.queryPageToMap(e, t).rule;
  27743. m.type = n.navtypeToggle[r];
  27744. var b = i.paramsToQuery(t, m),
  27745. O = a.resolveQuery(b, t);
  27746. if ("h5" === t.options.platform) {
  27747. if ("push" !== r && (r = "replace"), null != c) c.next(o({
  27748. replace: "push" !== r
  27749. }, O));else if ("push" === r && Reflect.has(O, "events")) {
  27750. if (Reflect.has(O, "name")) throw new Error("在h5端上使用 'push'、'navigateTo' 跳转时,如果包含 events 不允许使用 name 跳转,因为 name 实现了动态路由。请更换为 path 或者 url 跳转!");
  27751. uni.navigateTo(O, !0, i.voidFun, s);
  27752. } else t.$route[r](O, O.success || i.voidFun, O.fail || i.voidFun);
  27753. } else {
  27754. var P = {
  27755. path: ""
  27756. };
  27757. if (null == c) {
  27758. var k = i.routesForMapRoute(t, O.path, ["finallyPathMap", "pathMap"]);
  27759. k = i.notRouteTo404(t, k, O, r), O = o(o(o(o({}, k), {
  27760. params: {}
  27761. }), O), {
  27762. path: k.path
  27763. }), P = l.createToFrom(O, t);
  27764. } else P = c.from;
  27765. if (l.createFullPath(O, P), !1 === v) return O;
  27766. u.transitionTo(t, O, P, r, p.HOOKLIST, function (e) {
  27767. uni[n.navtypeToggle[r]](O, !0, e, s);
  27768. });
  27769. }
  27770. }
  27771. function f(e, t, r) {
  27772. var n = h(e, t),
  27773. a = o(o({}, r || {}), {
  27774. path: n.path,
  27775. query: n.query,
  27776. delta: t
  27777. });
  27778. if ("[object Object]" === i.getDataType(r)) {
  27779. var u = r,
  27780. l = u.animationDuration,
  27781. p = u.animationType;
  27782. null != l && (a.animationDuration = l), null != p && (a.animationType = p);
  27783. var c = r.from;
  27784. null != c && (a.BACKTYPE = c);
  27785. }
  27786. return a;
  27787. }
  27788. function h(e, t, r) {
  27789. void 0 === t && (t = 0);
  27790. var u = {
  27791. name: "",
  27792. meta: {},
  27793. path: "",
  27794. fullPath: "",
  27795. NAVTYPE: "",
  27796. query: {},
  27797. params: {},
  27798. BACKTYPE: (r || {
  27799. BACKTYPE: ""
  27800. }).BACKTYPE || ""
  27801. };
  27802. if (19970806 === t) return u;
  27803. if ("h5" === e.options.platform) {
  27804. var l = {
  27805. path: ""
  27806. };
  27807. l = null != r ? r : e.$route.currentRoute;
  27808. var p = i.copyData(l.params);
  27809. delete p.__id__;
  27810. var c = a.parseQuery(o(o({}, p), i.copyData(l.query)), e);
  27811. l = o(o({}, l), {
  27812. query: c
  27813. }), u.path = l.path, u.fullPath = l.fullPath || "", u.query = l.query || {}, u.NAVTYPE = n.rewriteMethodToggle[l.type || "reLaunch"];
  27814. } else {
  27815. var s = {};
  27816. if (null != r) s = o(o({}, r), {
  27817. openType: r.type
  27818. });else {
  27819. var f = i.getUniCachePage(t);
  27820. if (0 === Object.keys(f).length) throw e.options.routerErrorEach({
  27821. type: 3,
  27822. msg: "不存在的页面栈,请确保有足够的页面可用,当前 level:" + t
  27823. }, e), new Error("不存在的页面栈,请确保有足够的页面可用,当前 level:" + t);
  27824. var h = f.options || {},
  27825. v = h.query;
  27826. null != v && 1 === Object.keys(h).length && (h = JSON.parse(decodeURIComponent(v)));
  27827. var y = JSON.parse(decodeURIComponent(JSON.stringify(h)));
  27828. s = o(o({}, f.$page || {}), {
  27829. query: y,
  27830. fullPath: decodeURIComponent((f.$page || {}).fullPath || "/" + f.route)
  27831. }), "app-plus" !== e.options.platform && (s.path = "/" + f.route);
  27832. }
  27833. var g = s.openType;
  27834. u.query = s.query, u.path = s.path, u.fullPath = s.fullPath, u.NAVTYPE = n.rewriteMethodToggle[g || "reLaunch"];
  27835. }
  27836. var d = i.routesForMapRoute(e, u.path, ["finallyPathMap", "pathMap"]),
  27837. m = o(o({}, u), d);
  27838. return m.query = a.parseQuery(m.query, e), m;
  27839. }
  27840. t.lockNavjump = c, t.navjump = s, t.backOptionsBuild = f, t.forceGuardEach = function (e, t, r) {
  27841. if (void 0 === t && (t = "replaceAll"), void 0 === r && (r = !1), "h5" === e.options.platform) throw new Error("在h5端上使用:forceGuardEach 是无意义的,目前 forceGuardEach 仅支持在非h5端上使用");
  27842. var o = i.getUniCachePage(0);
  27843. 0 === Object.keys(o).length && e.options.routerErrorEach({
  27844. type: 3,
  27845. msg: "不存在的页面栈,请确保有足够的页面可用,当前 level:0"
  27846. }, e);
  27847. var n = o;
  27848. c({
  27849. path: "/" + n.route,
  27850. query: n.options
  27851. }, e, t, r);
  27852. }, t.createRoute = h;
  27853. },
  27854. 845: function _(e, t, r) {
  27855. "use strict";
  27856. Object.defineProperty(t, "__esModule", {
  27857. value: !0
  27858. }), t.proxyPageHook = t.createFullPath = t.createToFrom = void 0;
  27859. var o = r(789),
  27860. n = r(890),
  27861. a = r(99);
  27862. t.createToFrom = function (e, t) {
  27863. var r = o.getUniCachePage(0);
  27864. return "[object Array]" === o.getDataType(r) ? o.deepClone(e) : n.createRoute(t);
  27865. }, t.createFullPath = function (e, t) {
  27866. if (null == e.fullPath) {
  27867. var r = a.stringifyQuery(e.query);
  27868. e.fullPath = e.path + r;
  27869. }
  27870. null == t.fullPath && (r = a.stringifyQuery(t.query), t.fullPath = t.path + r);
  27871. }, t.proxyPageHook = function (e, t, r, n) {
  27872. o.replaceHook(t, e, r, n);
  27873. };
  27874. },
  27875. 99: function _(e, t, r) {
  27876. "use strict";
  27877. var o = this && this.__assign || function () {
  27878. return (o = Object.assign || function (e) {
  27879. for (var t, r = 1, o = arguments.length; r < o; r++) {
  27880. for (var n in t = arguments[r]) {
  27881. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  27882. }
  27883. }
  27884. return e;
  27885. }).apply(this, arguments);
  27886. };
  27887. Object.defineProperty(t, "__esModule", {
  27888. value: !0
  27889. }), t.stringifyQuery = t.parseQuery = t.resolveQuery = t.queryPageToMap = void 0;
  27890. var n = r(789),
  27891. a = r(169),
  27892. i = r(883),
  27893. u = /[!'()*]/g,
  27894. l = function l(e) {
  27895. return "%" + e.charCodeAt(0).toString(16);
  27896. },
  27897. p = /%2C/g,
  27898. c = function c(e) {
  27899. return encodeURIComponent(e).replace(u, l).replace(p, ",");
  27900. };
  27901. t.queryPageToMap = function (e, t) {
  27902. var r = {},
  27903. i = "",
  27904. u = e.success,
  27905. l = e.fail;
  27906. if ("[object Object]" === n.getDataType(e)) {
  27907. var p = e;
  27908. if (null != p.path) {
  27909. var c = n.urlToJson(p.path),
  27910. s = c.path,
  27911. f = c.query;
  27912. i = n.routesForMapRoute(t, s, ["finallyPathList", "pathMap"]), r = o(o({}, f), e.query || {}), p.path = s, p.query = r, delete e.params;
  27913. } else null != p.name ? null == (i = t.routesMap.nameMap[p.name]) ? i = n.getWildcardRule(t, {
  27914. type: 2,
  27915. msg: "命名路由为:" + p.name + " 的路由,无法在路由表中找到!",
  27916. toRule: e
  27917. }) : (r = e.params || {}, delete e.query) : i = n.getWildcardRule(t, {
  27918. type: 2,
  27919. msg: e + " 解析失败,请检测当前路由表下是否有包含。",
  27920. toRule: e
  27921. });
  27922. } else e = n.urlToJson(e), i = n.routesForMapRoute(t, e.path, ["finallyPathList", "pathMap"]), r = e.query;
  27923. if ("h5" === t.options.platform) {
  27924. n.getRoutePath(i, t).finallyPath.includes(":") && null == e.name && a.ERRORHOOK[0]({
  27925. type: 2,
  27926. msg: "当有设置 alias或者aliasPath 为动态路由时,不允许使用 path 跳转。请使用 name 跳转!",
  27927. route: i
  27928. }, t);
  27929. var h = e.complete,
  27930. v = e.success,
  27931. y = e.fail;
  27932. if ("[object Function]" === n.getDataType(h)) {
  27933. var g = function g(e, t) {
  27934. "[object Function]" === n.getDataType(t) && t.apply(this, e), h.apply(this, e);
  27935. };
  27936. u = function u() {
  27937. for (var e = [], t = 0; t < arguments.length; t++) {
  27938. e[t] = arguments[t];
  27939. }
  27940. g.call(this, e, v);
  27941. }, l = function l() {
  27942. for (var e = [], t = 0; t < arguments.length; t++) {
  27943. e[t] = arguments[t];
  27944. }
  27945. g.call(this, e, y);
  27946. };
  27947. }
  27948. }
  27949. var d = e;
  27950. return "[object Function]" === n.getDataType(d.success) && (d.success = u), "[object Function]" === n.getDataType(d.fail) && (d.fail = l), {
  27951. rule: d,
  27952. route: i,
  27953. query: r
  27954. };
  27955. }, t.resolveQuery = function (e, t) {
  27956. var r = "query";
  27957. null != e.params && (r = "params"), null != e.query && (r = "query");
  27958. var o = n.copyData(e[r] || {}),
  27959. a = t.options.resolveQuery;
  27960. if (a) {
  27961. var u = a(o);
  27962. "[object Object]" !== n.getDataType(u) ? i.warn("请按格式返回参数: resolveQuery?:(jsonQuery:{[propName: string]: any;})=>{[propName: string]: any;}", t) : e[r] = u;
  27963. } else {
  27964. if (!n.assertDeepObject(o)) return e;
  27965. var l = JSON.stringify(o);
  27966. e[r] = {
  27967. query: l
  27968. };
  27969. }
  27970. return e;
  27971. }, t.parseQuery = function (e, t) {
  27972. var r = t.options.parseQuery;
  27973. if (r) e = r(n.copyData(e)), "[object Object]" !== n.getDataType(e) && i.warn("请按格式返回参数: parseQuery?:(jsonQuery:{[propName: string]: any;})=>{[propName: string]: any;}", t);else if (Reflect.get(e, "query")) {
  27974. var o = Reflect.get(e, "query"),
  27975. a = {
  27976. query: decodeURIComponent(o)
  27977. };
  27978. try {
  27979. if ("object" == _typeof(a = JSON.parse(a.query))) return a;
  27980. } catch (e) {
  27981. i.warn("尝试解析深度对象失败,按原样输出。" + e, t);
  27982. }
  27983. }
  27984. return e;
  27985. }, t.stringifyQuery = function (e) {
  27986. var t = e ? Object.keys(e).map(function (t) {
  27987. var r = e[t];
  27988. if (void 0 === r) return "";
  27989. if (null === r) return c(t);
  27990. if (Array.isArray(r)) {
  27991. var o = [];
  27992. return r.forEach(function (e) {
  27993. void 0 !== e && (null === e ? o.push(c(t)) : o.push(c(t) + "=" + c(e)));
  27994. }), o.join("&");
  27995. }
  27996. return c(t) + "=" + c(r);
  27997. }).filter(function (e) {
  27998. return e.length > 0;
  27999. }).join("&") : null;
  28000. return t ? "?" + t : "";
  28001. };
  28002. },
  28003. 314: function _(e, t, r) {
  28004. "use strict";
  28005. Object.defineProperty(t, "__esModule", {
  28006. value: !0
  28007. }), t.rewriteMethod = void 0;
  28008. var o = r(366),
  28009. n = r(789),
  28010. a = r(883),
  28011. i = r(809),
  28012. u = ["navigateTo", "redirectTo", "reLaunch", "switchTab", "navigateBack"];
  28013. t.rewriteMethod = function (e) {
  28014. !1 === e.options.keepUniOriginNav && u.forEach(function (t) {
  28015. var r = uni[t];
  28016. uni[t] = function (u, l, p, c) {
  28017. void 0 === l && (l = !1), l ? i.uniOriginJump(e, r, t, u, p, c) : ("app-plus" === e.options.platform && 0 === Object.keys(e.appMain).length && (e.appMain = {
  28018. NAVTYPE: t,
  28019. path: u.url
  28020. }), function (e, t, r) {
  28021. if ("app-plus" === r.options.platform) {
  28022. var i = null;
  28023. e && (i = e.openType), null != i && "appLaunch" === i && (t = "reLaunch");
  28024. }
  28025. if ("reLaunch" === t && '{"url":"/"}' === JSON.stringify(e) && (a.warn("uni-app 原生方法:reLaunch({url:'/'}) 默认被重写啦!你可以使用 this.$Router.replaceAll() 或者 uni.reLaunch({url:'/?xxx=xxx'})", r, !0), t = "navigateBack", e = {
  28026. from: "backbutton"
  28027. }), "navigateBack" === t) {
  28028. var u = 1;
  28029. null == e && (e = {
  28030. delta: 1
  28031. }), "[object Number]" === n.getDataType(e.delta) && (u = e.delta), r.back(u, e);
  28032. } else {
  28033. var l = o.rewriteMethodToggle[t],
  28034. p = e.url;
  28035. if (!p.startsWith("/")) {
  28036. var c = n.resolveAbsolutePath(p, r);
  28037. p = c, e.url = c;
  28038. }
  28039. if ("switchTab" === t) {
  28040. var s = n.routesForMapRoute(r, p, ["pathMap", "finallyPathList"]),
  28041. f = n.getRoutePath(s, r).finallyPath;
  28042. if ("[object Array]" === n.getDataType(f) && a.warn("uni-app 原生方法跳转路径为:" + p + "。此路为是tab页面时,不允许设置 alias 为数组的情况,并且不能为动态路由!当然你可以通过通配符*解决!", r, !0), "*" === f && a.warn("uni-app 原生方法跳转路径为:" + p + "。在路由表中找不到相关路由表!当然你可以通过通配符*解决!", r, !0), "h5" === r.options.platform) {
  28043. var h = e.success;
  28044. e.success = function () {
  28045. for (var t = [], r = 0; r < arguments.length; r++) {
  28046. t[r] = arguments[r];
  28047. }
  28048. null == h || h.apply(null, t), n.timeOut(150).then(function () {
  28049. var t = e.detail || {};
  28050. if (Object.keys(t).length > 0 && Reflect.has(t, "index")) {
  28051. var r = n.getUniCachePage(0);
  28052. if (0 === Object.keys(r).length) return !1;
  28053. var o = r,
  28054. a = o.$options.onTabItemTap;
  28055. if (a) for (var i = 0; i < a.length; i++) {
  28056. a[i].call(o, t);
  28057. }
  28058. }
  28059. });
  28060. };
  28061. }
  28062. p = f;
  28063. }
  28064. var v = e,
  28065. y = v.events,
  28066. g = v.success,
  28067. d = v.fail,
  28068. m = v.complete,
  28069. b = v.animationType,
  28070. O = {
  28071. path: p,
  28072. events: y,
  28073. success: g,
  28074. fail: d,
  28075. complete: m,
  28076. animationDuration: v.animationDuration,
  28077. animationType: b
  28078. };
  28079. r[l](n.notDeepClearNull(O));
  28080. }
  28081. }(u, t, e));
  28082. };
  28083. });
  28084. };
  28085. },
  28086. 963: function _(e, t, r) {
  28087. "use strict";
  28088. var o = this && this.__assign || function () {
  28089. return (o = Object.assign || function (e) {
  28090. for (var t, r = 1, o = arguments.length; r < o; r++) {
  28091. for (var n in t = arguments[r]) {
  28092. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  28093. }
  28094. }
  28095. return e;
  28096. }).apply(this, arguments);
  28097. };
  28098. Object.defineProperty(t, "__esModule", {
  28099. value: !0
  28100. }), t.createRouter = t.RouterMount = void 0;
  28101. var n = r(282),
  28102. a = r(789),
  28103. i = r(662),
  28104. u = r(460),
  28105. l = r(890),
  28106. p = r(314),
  28107. c = function c() {},
  28108. s = new Promise(function (e) {
  28109. return c = e;
  28110. });
  28111. t.createRouter = function (e) {
  28112. var t = a.assertNewOptions(e),
  28113. r = {
  28114. options: t,
  28115. mount: [],
  28116. Vue: null,
  28117. appProxyHook: n.appProxyHook,
  28118. appletsProxyHook: n.indexProxyHook,
  28119. appMain: {},
  28120. enterPath: "",
  28121. $route: null,
  28122. $lockStatus: !1,
  28123. routesMap: {},
  28124. lifeCycle: i.registerRouterHooks(n.lifeCycle, t),
  28125. push: function push(e) {
  28126. l.lockNavjump(e, r, "push");
  28127. },
  28128. replace: function replace(e) {
  28129. l.lockNavjump(e, r, "replace");
  28130. },
  28131. replaceAll: function replaceAll(e) {
  28132. l.lockNavjump(e, r, "replaceAll");
  28133. },
  28134. pushTab: function pushTab(e) {
  28135. l.lockNavjump(e, r, "pushTab");
  28136. },
  28137. back: function back(e, t) {
  28138. void 0 === e && (e = 1), "[object Object]" !== a.getDataType(t) ? t = {
  28139. from: "navigateBack"
  28140. } : Reflect.has(t, "from") || (t = o(o({}, t), {
  28141. from: "navigateBack"
  28142. })), l.lockNavjump(e + "", r, "back", void 0, t);
  28143. },
  28144. forceGuardEach: function forceGuardEach(e, t) {
  28145. l.forceGuardEach(r, e, t);
  28146. },
  28147. beforeEach: function beforeEach(e) {
  28148. i.registerEachHooks(r, "beforeHooks", e);
  28149. },
  28150. afterEach: function afterEach(e) {
  28151. i.registerEachHooks(r, "afterHooks", e);
  28152. },
  28153. install: function install(e) {
  28154. r.Vue = e, p.rewriteMethod(this), u.initMixins(e, this), Object.defineProperty(e.prototype, "$Router", {
  28155. get: function get() {
  28156. return r;
  28157. }
  28158. }), Object.defineProperty(e.prototype, "$Route", {
  28159. get: function get() {
  28160. return l.createRoute(r);
  28161. }
  28162. }), Object.defineProperty(e.prototype, "$AppReady", {
  28163. get: function get() {
  28164. return "h5" === r.options.platform ? Promise.resolve() : s;
  28165. },
  28166. set: function set(e) {
  28167. !0 === e && c();
  28168. }
  28169. });
  28170. }
  28171. };
  28172. return a.def(r, "keyword", function () {
  28173. return n.keyword;
  28174. }), a.def(r, "currentRoute", function () {
  28175. return l.createRoute(r);
  28176. }), r.beforeEach(function (e, t, r) {
  28177. return r();
  28178. }), r.afterEach(function () {}), r;
  28179. }, t.RouterMount = function (e, t, r) {
  28180. if (void 0 === r && (r = "#app"), "[object Array]" !== a.getDataType(t.mount)) throw new Error("挂载路由失败,router.app 应该为数组类型。当前类型:" + _typeof(t.mount));
  28181. if (t.mount.push({
  28182. app: e,
  28183. el: r
  28184. }), "h5" === t.options.platform) {
  28185. var o = t.$route;
  28186. o.replace({
  28187. path: o.currentRoute.fullPath
  28188. });
  28189. }
  28190. };
  28191. },
  28192. 809: function _(e, t, r) {
  28193. "use strict";
  28194. var o = this && this.__assign || function () {
  28195. return (o = Object.assign || function (e) {
  28196. for (var t, r = 1, o = arguments.length; r < o; r++) {
  28197. for (var n in t = arguments[r]) {
  28198. Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
  28199. }
  28200. }
  28201. return e;
  28202. }).apply(this, arguments);
  28203. },
  28204. n = this && this.__awaiter || function (e, t, r, o) {
  28205. return new (r || (r = Promise))(function (n, a) {
  28206. function i(e) {
  28207. try {
  28208. l(o.next(e));
  28209. } catch (e) {
  28210. a(e);
  28211. }
  28212. }
  28213. function u(e) {
  28214. try {
  28215. l(o.throw(e));
  28216. } catch (e) {
  28217. a(e);
  28218. }
  28219. }
  28220. function l(e) {
  28221. var t;
  28222. e.done ? n(e.value) : (t = e.value, t instanceof r ? t : new r(function (e) {
  28223. e(t);
  28224. })).then(i, u);
  28225. }
  28226. l((o = o.apply(e, t || [])).next());
  28227. });
  28228. },
  28229. a = this && this.__generator || function (e, t) {
  28230. var r,
  28231. o,
  28232. n,
  28233. a,
  28234. i = {
  28235. label: 0,
  28236. sent: function sent() {
  28237. if (1 & n[0]) throw n[1];
  28238. return n[1];
  28239. },
  28240. trys: [],
  28241. ops: []
  28242. };
  28243. return a = {
  28244. next: u(0),
  28245. throw: u(1),
  28246. return: u(2)
  28247. }, "function" == typeof Symbol && (a[Symbol.iterator] = function () {
  28248. return this;
  28249. }), a;
  28250. function u(a) {
  28251. return function (u) {
  28252. return function (a) {
  28253. if (r) throw new TypeError("Generator is already executing.");
  28254. for (; i;) {
  28255. try {
  28256. if (r = 1, o && (n = 2 & a[0] ? o.return : a[0] ? o.throw || ((n = o.return) && n.call(o), 0) : o.next) && !(n = n.call(o, a[1])).done) return n;
  28257. switch (o = 0, n && (a = [2 & a[0], n.value]), a[0]) {
  28258. case 0:
  28259. case 1:
  28260. n = a;
  28261. break;
  28262. case 4:
  28263. return i.label++, {
  28264. value: a[1],
  28265. done: !1
  28266. };
  28267. case 5:
  28268. i.label++, o = a[1], a = [0];
  28269. continue;
  28270. case 7:
  28271. a = i.ops.pop(), i.trys.pop();
  28272. continue;
  28273. default:
  28274. if (!((n = (n = i.trys).length > 0 && n[n.length - 1]) || 6 !== a[0] && 2 !== a[0])) {
  28275. i = 0;
  28276. continue;
  28277. }
  28278. if (3 === a[0] && (!n || a[1] > n[0] && a[1] < n[3])) {
  28279. i.label = a[1];
  28280. break;
  28281. }
  28282. if (6 === a[0] && i.label < n[1]) {
  28283. i.label = n[1], n = a;
  28284. break;
  28285. }
  28286. if (n && i.label < n[2]) {
  28287. i.label = n[2], i.ops.push(a);
  28288. break;
  28289. }
  28290. n[2] && i.ops.pop(), i.trys.pop();
  28291. continue;
  28292. }
  28293. a = t.call(e, i);
  28294. } catch (e) {
  28295. a = [6, e], o = 0;
  28296. } finally {
  28297. r = n = 0;
  28298. }
  28299. }
  28300. if (5 & a[0]) throw a[1];
  28301. return {
  28302. value: a[0] ? a[1] : void 0,
  28303. done: !0
  28304. };
  28305. }([a, u]);
  28306. };
  28307. }
  28308. },
  28309. i = this && this.__rest || function (e, t) {
  28310. var r = {};
  28311. for (var o in e) {
  28312. Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
  28313. }
  28314. if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
  28315. var n = 0;
  28316. for (o = Object.getOwnPropertySymbols(e); n < o.length; n++) {
  28317. t.indexOf(o[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[n]) && (r[o[n]] = e[o[n]]);
  28318. }
  28319. }
  28320. return r;
  28321. };
  28322. Object.defineProperty(t, "__esModule", {
  28323. value: !0
  28324. }), t.formatOriginURLQuery = t.uniOriginJump = void 0;
  28325. var u = r(99),
  28326. l = r(789),
  28327. p = r(282),
  28328. c = 0,
  28329. s = "reLaunch";
  28330. function f(e, t, r) {
  28331. var n,
  28332. a = t.url,
  28333. i = t.path,
  28334. p = t.query,
  28335. c = t.animationType,
  28336. s = t.animationDuration,
  28337. f = t.events,
  28338. h = t.success,
  28339. v = t.fail,
  28340. y = t.complete,
  28341. g = t.delta,
  28342. d = t.animation,
  28343. m = u.stringifyQuery(p || {}),
  28344. b = "" === m ? i || a : (i || a) + m,
  28345. O = {};
  28346. return "app-plus" === e.options.platform && "navigateBack" !== r && (O = (null === (n = e.options.APP) || void 0 === n ? void 0 : n.animation) || {}, O = o(o({}, O), d || {})), l.notDeepClearNull({
  28347. delta: g,
  28348. url: b,
  28349. animationType: c || O.animationType,
  28350. animationDuration: s || O.animationDuration,
  28351. events: f,
  28352. success: h,
  28353. fail: v,
  28354. complete: y
  28355. });
  28356. }
  28357. t.uniOriginJump = function (e, t, r, u, h, v) {
  28358. var y = f(e, u, r),
  28359. g = y.complete,
  28360. d = i(y, ["complete"]),
  28361. m = e.options.platform.trim();
  28362. 0 === c && "h5" !== m && l.resetPageHook(e, d.url), null != v && !1 === v ? (0 === c && (c++, "h5" !== m && (e.Vue.prototype.$AppReady = !0)), g && g.apply(null, {
  28363. msg: "forceGuardEach强制触发并且不执行跳转"
  28364. }), h && h.apply(null, {
  28365. msg: "forceGuardEach强制触发并且不执行跳转"
  28366. })) : t(o(o({}, d), {
  28367. from: u.BACKTYPE,
  28368. complete: function complete() {
  28369. for (var t, o, i, u, f = [], v = 0; v < arguments.length; v++) {
  28370. f[v] = arguments[v];
  28371. }
  28372. return n(this, void 0, void 0, function () {
  28373. var n, v, y;
  28374. return a(this, function (a) {
  28375. switch (a.label) {
  28376. case 0:
  28377. return 0 === c && (c++, "h5" !== m && (e.Vue.prototype.$AppReady = !0), "app-plus" === m && ((n = plus.nativeObj.View.getViewById("router-loadding")) && n.close(), (v = null === (t = e.options.APP) || void 0 === t ? void 0 : t.launchedHook) && v())), y = 0, new RegExp(p.mpPlatformReg, "g").test(m) ? y = null === (o = e.options.applet) || void 0 === o ? void 0 : o.animationDuration : "app-plus" === m && "navigateBack" === r && "navigateTo" === s && (y = null === (u = null === (i = e.options.APP) || void 0 === i ? void 0 : i.animation) || void 0 === u ? void 0 : u.animationDuration), "navigateTo" !== r && "navigateBack" !== r || 0 === y ? [3, 2] : [4, l.timeOut(y)];
  28378. case 1:
  28379. a.sent(), a.label = 2;
  28380. case 2:
  28381. return s = r, g && g.apply(null, f), h && h.apply(null, f), [2];
  28382. }
  28383. });
  28384. });
  28385. }
  28386. }));
  28387. }, t.formatOriginURLQuery = f;
  28388. }
  28389. }, t = {}, function r(o) {
  28390. if (t[o]) return t[o].exports;
  28391. var n = t[o] = {
  28392. exports: {}
  28393. };
  28394. return e[o].call(n.exports, n, n.exports, r), n.exports;
  28395. }(607);
  28396. var e, t;
  28397. });
  28398. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./../../../../../工具/HBuilderX/plugins/uniapp-cli/node_modules/webpack/buildin/module.js */ 54)(module)))
  28399. /***/ }),
  28400. /***/ 54:
  28401. /*!***********************************!*\
  28402. !*** (webpack)/buildin/module.js ***!
  28403. \***********************************/
  28404. /*! no static exports found */
  28405. /***/ (function(module, exports) {
  28406. module.exports = function(module) {
  28407. if (!module.webpackPolyfill) {
  28408. module.deprecate = function() {};
  28409. module.paths = [];
  28410. // module.parent = undefined by default
  28411. if (!module.children) module.children = [];
  28412. Object.defineProperty(module, "loaded", {
  28413. enumerable: true,
  28414. get: function() {
  28415. return module.l;
  28416. }
  28417. });
  28418. Object.defineProperty(module, "id", {
  28419. enumerable: true,
  28420. get: function() {
  28421. return module.i;
  28422. }
  28423. });
  28424. module.webpackPolyfill = 1;
  28425. }
  28426. return module;
  28427. };
  28428. /***/ }),
  28429. /***/ 57:
  28430. /*!**********************************************************************************************************!*\
  28431. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  28432. \**********************************************************************************************************/
  28433. /*! exports provided: default */
  28434. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  28435. "use strict";
  28436. __webpack_require__.r(__webpack_exports__);
  28437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  28438. /* globals __VUE_SSR_CONTEXT__ */
  28439. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  28440. // This module is a runtime utility for cleaner component module output and will
  28441. // be included in the final webpack user bundle.
  28442. function normalizeComponent (
  28443. scriptExports,
  28444. render,
  28445. staticRenderFns,
  28446. functionalTemplate,
  28447. injectStyles,
  28448. scopeId,
  28449. moduleIdentifier, /* server only */
  28450. shadowMode, /* vue-cli only */
  28451. components, // fixed by xxxxxx auto components
  28452. renderjs // fixed by xxxxxx renderjs
  28453. ) {
  28454. // Vue.extend constructor export interop
  28455. var options = typeof scriptExports === 'function'
  28456. ? scriptExports.options
  28457. : scriptExports
  28458. // fixed by xxxxxx auto components
  28459. if (components) {
  28460. if (!options.components) {
  28461. options.components = {}
  28462. }
  28463. var hasOwn = Object.prototype.hasOwnProperty
  28464. for (var name in components) {
  28465. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  28466. options.components[name] = components[name]
  28467. }
  28468. }
  28469. }
  28470. // fixed by xxxxxx renderjs
  28471. if (renderjs) {
  28472. if(typeof renderjs.beforeCreate === 'function'){
  28473. renderjs.beforeCreate = [renderjs.beforeCreate]
  28474. }
  28475. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  28476. this[renderjs.__module] = this
  28477. });
  28478. (options.mixins || (options.mixins = [])).push(renderjs)
  28479. }
  28480. // render functions
  28481. if (render) {
  28482. options.render = render
  28483. options.staticRenderFns = staticRenderFns
  28484. options._compiled = true
  28485. }
  28486. // functional template
  28487. if (functionalTemplate) {
  28488. options.functional = true
  28489. }
  28490. // scopedId
  28491. if (scopeId) {
  28492. options._scopeId = 'data-v-' + scopeId
  28493. }
  28494. var hook
  28495. if (moduleIdentifier) { // server build
  28496. hook = function (context) {
  28497. // 2.3 injection
  28498. context =
  28499. context || // cached call
  28500. (this.$vnode && this.$vnode.ssrContext) || // stateful
  28501. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  28502. // 2.2 with runInNewContext: true
  28503. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  28504. context = __VUE_SSR_CONTEXT__
  28505. }
  28506. // inject component styles
  28507. if (injectStyles) {
  28508. injectStyles.call(this, context)
  28509. }
  28510. // register component module identifier for async chunk inferrence
  28511. if (context && context._registeredComponents) {
  28512. context._registeredComponents.add(moduleIdentifier)
  28513. }
  28514. }
  28515. // used by ssr in case component is cached and beforeCreate
  28516. // never gets called
  28517. options._ssrRegister = hook
  28518. } else if (injectStyles) {
  28519. hook = shadowMode
  28520. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  28521. : injectStyles
  28522. }
  28523. if (hook) {
  28524. if (options.functional) {
  28525. // for template-only hot-reload because in that case the render fn doesn't
  28526. // go through the normalizer
  28527. options._injectStyles = hook
  28528. // register for functioal component in vue file
  28529. var originalRender = options.render
  28530. options.render = function renderWithStyleInjection (h, context) {
  28531. hook.call(context)
  28532. return originalRender(h, context)
  28533. }
  28534. } else {
  28535. // inject component registration as beforeCreate hook
  28536. var existing = options.beforeCreate
  28537. options.beforeCreate = existing
  28538. ? [].concat(existing, hook)
  28539. : [hook]
  28540. }
  28541. }
  28542. return {
  28543. exports: scriptExports,
  28544. options: options
  28545. }
  28546. }
  28547. /***/ }),
  28548. /***/ 58:
  28549. /*!*****************************************************!*\
  28550. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/index.js ***!
  28551. \*****************************************************/
  28552. /*! no static exports found */
  28553. /***/ (function(module, exports, __webpack_require__) {
  28554. "use strict";
  28555. /* WEBPACK VAR INJECTION */(function(uni) {
  28556. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28557. Object.defineProperty(exports, "__esModule", {
  28558. value: true
  28559. });
  28560. exports.default = void 0;
  28561. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 59));
  28562. var _request = _interopRequireDefault(__webpack_require__(/*! ./libs/request */ 60));
  28563. var _queryParams = _interopRequireDefault(__webpack_require__(/*! ./libs/function/queryParams.js */ 64));
  28564. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/function/route.js */ 65));
  28565. var _timeFormat = _interopRequireDefault(__webpack_require__(/*! ./libs/function/timeFormat.js */ 66));
  28566. var _timeFrom = _interopRequireDefault(__webpack_require__(/*! ./libs/function/timeFrom.js */ 67));
  28567. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 68));
  28568. var _guid = _interopRequireDefault(__webpack_require__(/*! ./libs/function/guid.js */ 69));
  28569. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/function/color.js */ 70));
  28570. var _type2icon = _interopRequireDefault(__webpack_require__(/*! ./libs/function/type2icon.js */ 71));
  28571. var _randomArray = _interopRequireDefault(__webpack_require__(/*! ./libs/function/randomArray.js */ 72));
  28572. var _deepClone = _interopRequireDefault(__webpack_require__(/*! ./libs/function/deepClone.js */ 62));
  28573. var _deepMerge = _interopRequireDefault(__webpack_require__(/*! ./libs/function/deepMerge.js */ 61));
  28574. var _addUnit = _interopRequireDefault(__webpack_require__(/*! ./libs/function/addUnit.js */ 73));
  28575. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 63));
  28576. var _random = _interopRequireDefault(__webpack_require__(/*! ./libs/function/random.js */ 74));
  28577. var _trim = _interopRequireDefault(__webpack_require__(/*! ./libs/function/trim.js */ 75));
  28578. var _toast = _interopRequireDefault(__webpack_require__(/*! ./libs/function/toast.js */ 76));
  28579. var _getParent = _interopRequireDefault(__webpack_require__(/*! ./libs/function/getParent.js */ 77));
  28580. var _$parent = _interopRequireDefault(__webpack_require__(/*! ./libs/function/$parent.js */ 78));
  28581. var _sys = __webpack_require__(/*! ./libs/function/sys.js */ 79);
  28582. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 80));
  28583. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 81));
  28584. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 82));
  28585. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 83));
  28586. // 引入全局mixin
  28587. // 引入关于是否mixin集成小程序分享的配置
  28588. // import wxshare from './libs/mixin/mpShare.js'
  28589. // 全局挂载引入http相关请求拦截插件
  28590. function wranning(str) {
  28591. // 开发环境进行信息输出,主要是一些报错信息
  28592. // 这个环境的来由是在程序编写时候,点击hx编辑器运行调试代码的时候,详见:
  28593. // https://uniapp.dcloud.io/frame?id=%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%e5%92%8c%e7%94%9f%e4%ba%a7%e7%8e%af%e5%a2%83
  28594. if (true) {
  28595. console.warn(str);
  28596. }
  28597. }
  28598. // 尝试判断在根目录的/store中是否有$u.mixin.js,此文件uView默认为需要挂在到全局的vuex的state变量
  28599. // HX2.6.11版本,放到try中,控制台依然会警告,暂时不用此方式,
  28600. // let vuexStore = {};
  28601. // try {
  28602. // vuexStore = require("@/store/$u.mixin.js");
  28603. // } catch (e) {
  28604. // //TODO handle the exception
  28605. // }
  28606. // post类型对象参数转为get类型url参数
  28607. var $u = {
  28608. queryParams: _queryParams.default,
  28609. route: _route.default,
  28610. timeFormat: _timeFormat.default,
  28611. date: _timeFormat.default,
  28612. // 另名date
  28613. timeFrom: _timeFrom.default,
  28614. colorGradient: _colorGradient.default.colorGradient,
  28615. colorToRgba: _colorGradient.default.colorToRgba,
  28616. guid: _guid.default,
  28617. color: _color.default,
  28618. sys: _sys.sys,
  28619. os: _sys.os,
  28620. type2icon: _type2icon.default,
  28621. randomArray: _randomArray.default,
  28622. wranning: wranning,
  28623. get: _request.default.get,
  28624. post: _request.default.post,
  28625. put: _request.default.put,
  28626. 'delete': _request.default.delete,
  28627. hexToRgb: _colorGradient.default.hexToRgb,
  28628. rgbToHex: _colorGradient.default.rgbToHex,
  28629. test: _test.default,
  28630. random: _random.default,
  28631. deepClone: _deepClone.default,
  28632. deepMerge: _deepMerge.default,
  28633. getParent: _getParent.default,
  28634. $parent: _$parent.default,
  28635. addUnit: _addUnit.default,
  28636. trim: _trim.default,
  28637. type: ['primary', 'success', 'error', 'warning', 'info'],
  28638. http: _request.default,
  28639. toast: _toast.default,
  28640. config: _config.default,
  28641. // uView配置信息相关,比如版本号
  28642. zIndex: _zIndex.default,
  28643. debounce: _debounce.default,
  28644. throttle: _throttle.default
  28645. };
  28646. // $u挂载到uni对象上
  28647. uni.$u = $u;
  28648. var install = function install(Vue) {
  28649. Vue.mixin(_mixin.default);
  28650. if (Vue.prototype.openShare) {
  28651. Vue.mixin(mpShare);
  28652. }
  28653. // Vue.mixin(vuexStore);
  28654. // 时间格式化,同时两个名称,date和timeFormat
  28655. Vue.filter('timeFormat', function (timestamp, format) {
  28656. return (0, _timeFormat.default)(timestamp, format);
  28657. });
  28658. Vue.filter('date', function (timestamp, format) {
  28659. return (0, _timeFormat.default)(timestamp, format);
  28660. });
  28661. // 将多久以前的方法,注入到全局过滤器
  28662. Vue.filter('timeFrom', function (timestamp, format) {
  28663. return (0, _timeFrom.default)(timestamp, format);
  28664. });
  28665. Vue.prototype.$u = $u;
  28666. };
  28667. var _default = {
  28668. install: install
  28669. };
  28670. exports.default = _default;
  28671. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28672. /***/ }),
  28673. /***/ 59:
  28674. /*!****************************************************************!*\
  28675. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/mixin/mixin.js ***!
  28676. \****************************************************************/
  28677. /*! no static exports found */
  28678. /***/ (function(module, exports, __webpack_require__) {
  28679. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  28680. data: function data() {
  28681. return {};
  28682. },
  28683. onLoad: function onLoad() {
  28684. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  28685. this.$u.getRect = this.$uGetRect;
  28686. },
  28687. methods: {
  28688. // 查询节点信息
  28689. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  28690. // 解决办法为在组件根部再套一个没有任何作用的view元素
  28691. $uGetRect: function $uGetRect(selector, all) {
  28692. var _this = this;
  28693. return new Promise(function (resolve) {
  28694. uni.createSelectorQuery().in(_this)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  28695. if (all && Array.isArray(rect) && rect.length) {
  28696. resolve(rect);
  28697. }
  28698. if (!all && rect) {
  28699. resolve(rect);
  28700. }
  28701. }).exec();
  28702. });
  28703. },
  28704. getParentData: function getParentData() {
  28705. var _this2 = this;
  28706. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  28707. // 避免在created中去定义parent变量
  28708. if (!this.parent) this.parent = false;
  28709. // 这里的本质原理是,通过获取父组件实例(也即u-radio-group的this)
  28710. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  28711. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  28712. this.parent = this.$u.$parent.call(this, parentName);
  28713. if (this.parent) {
  28714. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  28715. Object.keys(this.parentData).map(function (key) {
  28716. _this2.parentData[key] = _this2.parent[key];
  28717. });
  28718. }
  28719. },
  28720. // 阻止事件冒泡
  28721. preventEvent: function preventEvent(e) {
  28722. e && e.stopPropagation && e.stopPropagation();
  28723. }
  28724. },
  28725. onReachBottom: function onReachBottom() {
  28726. uni.$emit('uOnReachBottom');
  28727. },
  28728. beforeDestroy: function beforeDestroy() {
  28729. var _this3 = this;
  28730. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  28731. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  28732. if (this.parent && uni.$u.test.array(this.parent.children)) {
  28733. // 组件销毁时,移除父组件中的children数组中对应的实例
  28734. var childrenList = this.parent.children;
  28735. childrenList.map(function (child, index) {
  28736. // 如果相等,则移除
  28737. if (child === _this3) {
  28738. childrenList.splice(index, 1);
  28739. }
  28740. });
  28741. }
  28742. }
  28743. };
  28744. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28745. /***/ }),
  28746. /***/ 6:
  28747. /*!***************************************************************!*\
  28748. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  28749. \***************************************************************/
  28750. /*! no static exports found */
  28751. /***/ (function(module, exports) {
  28752. function _arrayWithHoles(arr) {
  28753. if (Array.isArray(arr)) return arr;
  28754. }
  28755. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  28756. /***/ }),
  28757. /***/ 60:
  28758. /*!******************************************************************!*\
  28759. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/request/index.js ***!
  28760. \******************************************************************/
  28761. /*! no static exports found */
  28762. /***/ (function(module, exports, __webpack_require__) {
  28763. "use strict";
  28764. /* WEBPACK VAR INJECTION */(function(uni) {
  28765. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28766. Object.defineProperty(exports, "__esModule", {
  28767. value: true
  28768. });
  28769. exports.default = void 0;
  28770. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  28771. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  28772. var _deepMerge = _interopRequireDefault(__webpack_require__(/*! ../function/deepMerge */ 61));
  28773. var _test = _interopRequireDefault(__webpack_require__(/*! ../function/test */ 63));
  28774. var Request = /*#__PURE__*/function () {
  28775. function Request() {
  28776. var _this = this;
  28777. (0, _classCallCheck2.default)(this, Request);
  28778. this.config = {
  28779. baseUrl: '',
  28780. // 请求的根域名
  28781. // 默认的请求头
  28782. header: {},
  28783. method: 'POST',
  28784. // 设置为json,返回后uni.request会对数据进行一次JSON.parse
  28785. dataType: 'json',
  28786. // 此参数无需处理,因为5+和支付宝小程序不支持,默认为text即可
  28787. responseType: 'text',
  28788. showLoading: true,
  28789. // 是否显示请求中的loading
  28790. loadingText: '请求中...',
  28791. loadingTime: 800,
  28792. // 在此时间内,请求还没回来的话,就显示加载中动画,单位ms
  28793. timer: null,
  28794. // 定时器
  28795. originalData: false,
  28796. // 是否在拦截器中返回服务端的原始数据,见文档说明
  28797. loadingMask: true // 展示loading的时候,是否给一个透明的蒙层,防止触摸穿透
  28798. };
  28799. // 拦截器
  28800. this.interceptor = {
  28801. // 请求前的拦截
  28802. request: null,
  28803. // 请求后的拦截
  28804. response: null
  28805. };
  28806. // get请求
  28807. this.get = function (url) {
  28808. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28809. var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  28810. return _this.request({
  28811. method: 'GET',
  28812. url: url,
  28813. header: header,
  28814. data: data
  28815. });
  28816. };
  28817. // post请求
  28818. this.post = function (url) {
  28819. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28820. var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  28821. return _this.request({
  28822. url: url,
  28823. method: 'POST',
  28824. header: header,
  28825. data: data
  28826. });
  28827. };
  28828. // put请求,不支持支付宝小程序(HX2.6.15)
  28829. this.put = function (url) {
  28830. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28831. var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  28832. return _this.request({
  28833. url: url,
  28834. method: 'PUT',
  28835. header: header,
  28836. data: data
  28837. });
  28838. };
  28839. // delete请求,不支持支付宝和头条小程序(HX2.6.15)
  28840. this.delete = function (url) {
  28841. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28842. var header = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  28843. return _this.request({
  28844. url: url,
  28845. method: 'DELETE',
  28846. header: header,
  28847. data: data
  28848. });
  28849. };
  28850. }
  28851. (0, _createClass2.default)(Request, [{
  28852. key: "setConfig",
  28853. value:
  28854. // 设置全局默认配置
  28855. function setConfig(customConfig) {
  28856. // 深度合并对象,否则会造成对象深层属性丢失
  28857. this.config = (0, _deepMerge.default)(this.config, customConfig);
  28858. }
  28859. // 主要请求部分
  28860. }, {
  28861. key: "request",
  28862. value: function request() {
  28863. var _this2 = this;
  28864. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  28865. // 检查请求拦截
  28866. if (this.interceptor.request && typeof this.interceptor.request === 'function') {
  28867. var tmpConfig = {};
  28868. var interceptorRequest = this.interceptor.request(options);
  28869. if (interceptorRequest === false) {
  28870. // 返回一个处于pending状态中的Promise,来取消原promise,避免进入then()回调
  28871. return new Promise(function () {});
  28872. }
  28873. this.options = interceptorRequest;
  28874. }
  28875. options.dataType = options.dataType || this.config.dataType;
  28876. options.responseType = options.responseType || this.config.responseType;
  28877. options.url = options.url || '';
  28878. options.params = options.params || {};
  28879. options.header = Object.assign({}, this.config.header, options.header);
  28880. options.method = options.method || this.config.method;
  28881. return new Promise(function (resolve, reject) {
  28882. options.complete = function (response) {
  28883. // 请求返回后,隐藏loading(如果请求返回快的话,可能会没有loading)
  28884. uni.hideLoading();
  28885. // 清除定时器,如果请求回来了,就无需loading
  28886. clearTimeout(_this2.config.timer);
  28887. _this2.config.timer = null;
  28888. // 判断用户对拦截返回数据的要求,如果originalData为true,返回所有的数据(response)到拦截器,否则只返回response.data
  28889. if (_this2.config.originalData) {
  28890. // 判断是否存在拦截器
  28891. if (_this2.interceptor.response && typeof _this2.interceptor.response === 'function') {
  28892. var resInterceptors = _this2.interceptor.response(response);
  28893. // 如果拦截器不返回false,就将拦截器返回的内容给this.$u.post的then回调
  28894. if (resInterceptors !== false) {
  28895. resolve(resInterceptors);
  28896. } else {
  28897. // 如果拦截器返回false,意味着拦截器定义者认为返回有问题,直接接入catch回调
  28898. reject(response);
  28899. }
  28900. } else {
  28901. // 如果要求返回原始数据,就算没有拦截器,也返回最原始的数据
  28902. resolve(response);
  28903. }
  28904. } else {
  28905. if (response.statusCode == 200) {
  28906. if (_this2.interceptor.response && typeof _this2.interceptor.response === 'function') {
  28907. var _resInterceptors = _this2.interceptor.response(response.data);
  28908. if (_resInterceptors !== false) {
  28909. resolve(_resInterceptors);
  28910. } else {
  28911. reject(response.data);
  28912. }
  28913. } else {
  28914. // 如果不是返回原始数据(originalData=false),且没有拦截器的情况下,返回纯数据给then回调
  28915. resolve(response.data);
  28916. }
  28917. } else {
  28918. // 不返回原始数据的情况下,服务器状态码不为200,modal弹框提示
  28919. // if(response.errMsg) {
  28920. // uni.showModal({
  28921. // title: response.errMsg
  28922. // });
  28923. // }
  28924. reject(response);
  28925. }
  28926. }
  28927. };
  28928. // 判断用户传递的URL是否/开头,如果不是,加上/,这里使用了uView的test.js验证库的url()方法
  28929. options.url = _test.default.url(options.url) ? options.url : _this2.config.baseUrl + (options.url.indexOf('/') == 0 ? options.url : '/' + options.url);
  28930. // 是否显示loading
  28931. // 加一个是否已有timer定时器的判断,否则有两个同时请求的时候,后者会清除前者的定时器id
  28932. // 而没有清除前者的定时器,导致前者超时,一直显示loading
  28933. if (_this2.config.showLoading && !_this2.config.timer) {
  28934. _this2.config.timer = setTimeout(function () {
  28935. uni.showLoading({
  28936. title: _this2.config.loadingText,
  28937. mask: _this2.config.loadingMask
  28938. });
  28939. _this2.config.timer = null;
  28940. }, _this2.config.loadingTime);
  28941. }
  28942. uni.request(options);
  28943. });
  28944. // .catch(res => {
  28945. // // 如果返回reject(),不让其进入this.$u.post().then().catch()后面的catct()
  28946. // // 因为很多人都会忘了写后面的catch(),导致报错捕获不到catch
  28947. // return new Promise(()=>{});
  28948. // })
  28949. }
  28950. }]);
  28951. return Request;
  28952. }();
  28953. var _default = new Request();
  28954. exports.default = _default;
  28955. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  28956. /***/ }),
  28957. /***/ 61:
  28958. /*!***********************************************************************!*\
  28959. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/deepMerge.js ***!
  28960. \***********************************************************************/
  28961. /*! no static exports found */
  28962. /***/ (function(module, exports, __webpack_require__) {
  28963. "use strict";
  28964. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  28965. Object.defineProperty(exports, "__esModule", {
  28966. value: true
  28967. });
  28968. exports.default = void 0;
  28969. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  28970. var _deepClone = _interopRequireDefault(__webpack_require__(/*! ./deepClone */ 62));
  28971. // JS对象深度合并
  28972. function deepMerge() {
  28973. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  28974. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  28975. target = (0, _deepClone.default)(target);
  28976. if ((0, _typeof2.default)(target) !== 'object' || (0, _typeof2.default)(source) !== 'object') return false;
  28977. for (var prop in source) {
  28978. if (!source.hasOwnProperty(prop)) continue;
  28979. if (prop in target) {
  28980. if ((0, _typeof2.default)(target[prop]) !== 'object') {
  28981. target[prop] = source[prop];
  28982. } else {
  28983. if ((0, _typeof2.default)(source[prop]) !== 'object') {
  28984. target[prop] = source[prop];
  28985. } else {
  28986. if (target[prop].concat && source[prop].concat) {
  28987. target[prop] = target[prop].concat(source[prop]);
  28988. } else {
  28989. target[prop] = deepMerge(target[prop], source[prop]);
  28990. }
  28991. }
  28992. }
  28993. } else {
  28994. target[prop] = source[prop];
  28995. }
  28996. }
  28997. return target;
  28998. }
  28999. var _default = deepMerge;
  29000. exports.default = _default;
  29001. /***/ }),
  29002. /***/ 62:
  29003. /*!***********************************************************************!*\
  29004. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/deepClone.js ***!
  29005. \***********************************************************************/
  29006. /*! no static exports found */
  29007. /***/ (function(module, exports, __webpack_require__) {
  29008. "use strict";
  29009. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29010. Object.defineProperty(exports, "__esModule", {
  29011. value: true
  29012. });
  29013. exports.default = void 0;
  29014. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  29015. // 判断arr是否为一个数组,返回一个bool值
  29016. function isArray(arr) {
  29017. return Object.prototype.toString.call(arr) === '[object Array]';
  29018. }
  29019. // 深度克隆
  29020. function deepClone(obj) {
  29021. // 对常见的“非”值,直接返回原来值
  29022. if ([null, undefined, NaN, false].includes(obj)) return obj;
  29023. if ((0, _typeof2.default)(obj) !== "object" && typeof obj !== 'function') {
  29024. //原始类型直接返回
  29025. return obj;
  29026. }
  29027. var o = isArray(obj) ? [] : {};
  29028. for (var i in obj) {
  29029. if (obj.hasOwnProperty(i)) {
  29030. o[i] = (0, _typeof2.default)(obj[i]) === "object" ? deepClone(obj[i]) : obj[i];
  29031. }
  29032. }
  29033. return o;
  29034. }
  29035. var _default = deepClone;
  29036. exports.default = _default;
  29037. /***/ }),
  29038. /***/ 63:
  29039. /*!******************************************************************!*\
  29040. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/test.js ***!
  29041. \******************************************************************/
  29042. /*! no static exports found */
  29043. /***/ (function(module, exports, __webpack_require__) {
  29044. "use strict";
  29045. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29046. Object.defineProperty(exports, "__esModule", {
  29047. value: true
  29048. });
  29049. exports.default = void 0;
  29050. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  29051. /**
  29052. * 验证电子邮箱格式
  29053. */
  29054. function email(value) {
  29055. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  29056. }
  29057. /**
  29058. * 验证手机格式
  29059. */
  29060. function mobile(value) {
  29061. return /^1[23456789]\d{9}$/.test(value);
  29062. }
  29063. /**
  29064. * 验证URL格式
  29065. */
  29066. function url(value) {
  29067. return /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(value);
  29068. }
  29069. /**
  29070. * 验证日期格式
  29071. */
  29072. function date(value) {
  29073. return !/Invalid|NaN/.test(new Date(value).toString());
  29074. }
  29075. /**
  29076. * 验证ISO类型的日期格式
  29077. */
  29078. function dateISO(value) {
  29079. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  29080. }
  29081. /**
  29082. * 验证十进制数字
  29083. */
  29084. function number(value) {
  29085. return /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value);
  29086. }
  29087. /**
  29088. * 验证整数
  29089. */
  29090. function digits(value) {
  29091. return /^\d+$/.test(value);
  29092. }
  29093. /**
  29094. * 验证身份证号码
  29095. */
  29096. function idCard(value) {
  29097. return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(value);
  29098. }
  29099. /**
  29100. * 是否车牌号
  29101. */
  29102. function carNo(value) {
  29103. // 新能源车牌
  29104. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  29105. // 旧车牌
  29106. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  29107. if (value.length === 7) {
  29108. return creg.test(value);
  29109. } else if (value.length === 8) {
  29110. return xreg.test(value);
  29111. } else {
  29112. return false;
  29113. }
  29114. }
  29115. /**
  29116. * 金额,只允许2位小数
  29117. */
  29118. function amount(value) {
  29119. //金额,只允许保留两位小数
  29120. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  29121. }
  29122. /**
  29123. * 中文
  29124. */
  29125. function chinese(value) {
  29126. var reg = /^[\u4e00-\u9fa5]+$/gi;
  29127. return reg.test(value);
  29128. }
  29129. /**
  29130. * 只能输入字母
  29131. */
  29132. function letter(value) {
  29133. return /^[a-zA-Z]*$/.test(value);
  29134. }
  29135. /**
  29136. * 只能是字母或者数字
  29137. */
  29138. function enOrNum(value) {
  29139. //英文或者数字
  29140. var reg = /^[0-9a-zA-Z]*$/g;
  29141. return reg.test(value);
  29142. }
  29143. /**
  29144. * 验证是否包含某个值
  29145. */
  29146. function contains(value, param) {
  29147. return value.indexOf(param) >= 0;
  29148. }
  29149. /**
  29150. * 验证一个值范围[min, max]
  29151. */
  29152. function range(value, param) {
  29153. return value >= param[0] && value <= param[1];
  29154. }
  29155. /**
  29156. * 验证一个长度范围[min, max]
  29157. */
  29158. function rangeLength(value, param) {
  29159. return value.length >= param[0] && value.length <= param[1];
  29160. }
  29161. /**
  29162. * 是否固定电话
  29163. */
  29164. function landline(value) {
  29165. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  29166. return reg.test(value);
  29167. }
  29168. /**
  29169. * 判断是否为空
  29170. */
  29171. function empty(value) {
  29172. switch ((0, _typeof2.default)(value)) {
  29173. case 'undefined':
  29174. return true;
  29175. case 'string':
  29176. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  29177. break;
  29178. case 'boolean':
  29179. if (!value) return true;
  29180. break;
  29181. case 'number':
  29182. if (0 === value || isNaN(value)) return true;
  29183. break;
  29184. case 'object':
  29185. if (null === value || value.length === 0) return true;
  29186. for (var i in value) {
  29187. return false;
  29188. }
  29189. return true;
  29190. }
  29191. return false;
  29192. }
  29193. /**
  29194. * 是否json字符串
  29195. */
  29196. function jsonString(value) {
  29197. if (typeof value == 'string') {
  29198. try {
  29199. var obj = JSON.parse(value);
  29200. if ((0, _typeof2.default)(obj) == 'object' && obj) {
  29201. return true;
  29202. } else {
  29203. return false;
  29204. }
  29205. } catch (e) {
  29206. return false;
  29207. }
  29208. }
  29209. return false;
  29210. }
  29211. /**
  29212. * 是否数组
  29213. */
  29214. function array(value) {
  29215. if (typeof Array.isArray === "function") {
  29216. return Array.isArray(value);
  29217. } else {
  29218. return Object.prototype.toString.call(value) === "[object Array]";
  29219. }
  29220. }
  29221. /**
  29222. * 是否对象
  29223. */
  29224. function object(value) {
  29225. return Object.prototype.toString.call(value) === '[object Object]';
  29226. }
  29227. /**
  29228. * 是否短信验证码
  29229. */
  29230. function code(value) {
  29231. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  29232. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  29233. }
  29234. var _default = {
  29235. email: email,
  29236. mobile: mobile,
  29237. url: url,
  29238. date: date,
  29239. dateISO: dateISO,
  29240. number: number,
  29241. digits: digits,
  29242. idCard: idCard,
  29243. carNo: carNo,
  29244. amount: amount,
  29245. chinese: chinese,
  29246. letter: letter,
  29247. enOrNum: enOrNum,
  29248. contains: contains,
  29249. range: range,
  29250. rangeLength: rangeLength,
  29251. empty: empty,
  29252. isEmpty: empty,
  29253. jsonString: jsonString,
  29254. landline: landline,
  29255. object: object,
  29256. array: array,
  29257. code: code
  29258. };
  29259. exports.default = _default;
  29260. /***/ }),
  29261. /***/ 64:
  29262. /*!*************************************************************************!*\
  29263. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/queryParams.js ***!
  29264. \*************************************************************************/
  29265. /*! no static exports found */
  29266. /***/ (function(module, exports, __webpack_require__) {
  29267. "use strict";
  29268. Object.defineProperty(exports, "__esModule", {
  29269. value: true
  29270. });
  29271. exports.default = void 0;
  29272. /**
  29273. * 对象转url参数
  29274. * @param {*} data,对象
  29275. * @param {*} isPrefix,是否自动加上"?"
  29276. */
  29277. function queryParams() {
  29278. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  29279. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  29280. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  29281. var prefix = isPrefix ? '?' : '';
  29282. var _result = [];
  29283. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  29284. var _loop = function _loop(key) {
  29285. var value = data[key];
  29286. // 去掉为空的参数
  29287. if (['', undefined, null].indexOf(value) >= 0) {
  29288. return "continue";
  29289. }
  29290. // 如果值为数组,另行处理
  29291. if (value.constructor === Array) {
  29292. // e.g. {ids: [1, 2, 3]}
  29293. switch (arrayFormat) {
  29294. case 'indices':
  29295. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  29296. for (var i = 0; i < value.length; i++) {
  29297. _result.push(key + '[' + i + ']=' + value[i]);
  29298. }
  29299. break;
  29300. case 'brackets':
  29301. // 结果: ids[]=1&ids[]=2&ids[]=3
  29302. value.forEach(function (_value) {
  29303. _result.push(key + '[]=' + _value);
  29304. });
  29305. break;
  29306. case 'repeat':
  29307. // 结果: ids=1&ids=2&ids=3
  29308. value.forEach(function (_value) {
  29309. _result.push(key + '=' + _value);
  29310. });
  29311. break;
  29312. case 'comma':
  29313. // 结果: ids=1,2,3
  29314. var commaStr = "";
  29315. value.forEach(function (_value) {
  29316. commaStr += (commaStr ? "," : "") + _value;
  29317. });
  29318. _result.push(key + '=' + commaStr);
  29319. break;
  29320. default:
  29321. value.forEach(function (_value) {
  29322. _result.push(key + '[]=' + _value);
  29323. });
  29324. }
  29325. } else {
  29326. _result.push(key + '=' + value);
  29327. }
  29328. };
  29329. for (var key in data) {
  29330. var _ret = _loop(key);
  29331. if (_ret === "continue") continue;
  29332. }
  29333. return _result.length ? prefix + _result.join('&') : '';
  29334. }
  29335. var _default = queryParams;
  29336. exports.default = _default;
  29337. /***/ }),
  29338. /***/ 65:
  29339. /*!*******************************************************************!*\
  29340. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/route.js ***!
  29341. \*******************************************************************/
  29342. /*! no static exports found */
  29343. /***/ (function(module, exports, __webpack_require__) {
  29344. "use strict";
  29345. /* WEBPACK VAR INJECTION */(function(uni) {
  29346. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29347. Object.defineProperty(exports, "__esModule", {
  29348. value: true
  29349. });
  29350. exports.default = void 0;
  29351. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
  29352. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  29353. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  29354. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  29355. /**
  29356. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  29357. * 并且带有路由拦截功能
  29358. */
  29359. var Router = /*#__PURE__*/function () {
  29360. function Router() {
  29361. (0, _classCallCheck2.default)(this, Router);
  29362. // 原始属性定义
  29363. this.config = {
  29364. type: 'navigateTo',
  29365. url: '',
  29366. delta: 1,
  29367. // navigateBack页面后退时,回退的层数
  29368. params: {},
  29369. // 传递的参数
  29370. animationType: 'pop-in',
  29371. // 窗口动画,只在APP有效
  29372. animationDuration: 300,
  29373. // 窗口动画持续时间,单位毫秒,只在APP有效
  29374. intercept: false // 是否需要拦截
  29375. };
  29376. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  29377. // 这里在构造函数中进行this绑定
  29378. this.route = this.route.bind(this);
  29379. }
  29380. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  29381. (0, _createClass2.default)(Router, [{
  29382. key: "addRootPath",
  29383. value: function addRootPath(url) {
  29384. return url[0] === '/' ? url : "/".concat(url);
  29385. }
  29386. // 整合路由参数
  29387. }, {
  29388. key: "mixinParam",
  29389. value: function mixinParam(url, params) {
  29390. url = url && this.addRootPath(url);
  29391. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  29392. // 如果有url中有get参数,转换后无需带上"?"
  29393. var query = '';
  29394. if (/.*\/.*\?.*=.*/.test(url)) {
  29395. // object对象转为get类型的参数
  29396. query = uni.$u.queryParams(params, false);
  29397. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  29398. return url += "&" + query;
  29399. } else {
  29400. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  29401. query = uni.$u.queryParams(params);
  29402. return url += query;
  29403. }
  29404. }
  29405. // 对外的方法名称
  29406. }, {
  29407. key: "route",
  29408. value: function () {
  29409. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  29410. var options,
  29411. params,
  29412. mergeConfig,
  29413. isNext,
  29414. _args = arguments;
  29415. return _regenerator.default.wrap(function _callee$(_context) {
  29416. while (1) {
  29417. switch (_context.prev = _context.next) {
  29418. case 0:
  29419. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  29420. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  29421. // 合并用户的配置和内部的默认配置
  29422. mergeConfig = {};
  29423. if (typeof options === 'string') {
  29424. // 如果options为字符串,则为route(url, params)的形式
  29425. mergeConfig.url = this.mixinParam(options, params);
  29426. mergeConfig.type = 'navigateTo';
  29427. } else {
  29428. mergeConfig = uni.$u.deepClone(options, this.config);
  29429. // 否则正常使用mergeConfig中的url和params进行拼接
  29430. mergeConfig.url = this.mixinParam(options.url, options.params);
  29431. }
  29432. if (params.intercept) {
  29433. this.config.intercept = params.intercept;
  29434. }
  29435. // params参数也带给拦截器
  29436. mergeConfig.params = params;
  29437. // 合并内外部参数
  29438. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  29439. // 判断用户是否定义了拦截器
  29440. if (!(typeof uni.$u.routeIntercept === 'function')) {
  29441. _context.next = 14;
  29442. break;
  29443. }
  29444. _context.next = 10;
  29445. return new Promise(function (resolve, reject) {
  29446. uni.$u.routeIntercept(mergeConfig, resolve);
  29447. });
  29448. case 10:
  29449. isNext = _context.sent;
  29450. // 如果isNext为true,则执行路由跳转
  29451. isNext && this.openPage(mergeConfig);
  29452. _context.next = 15;
  29453. break;
  29454. case 14:
  29455. this.openPage(mergeConfig);
  29456. case 15:
  29457. case "end":
  29458. return _context.stop();
  29459. }
  29460. }
  29461. }, _callee, this);
  29462. }));
  29463. function route() {
  29464. return _route.apply(this, arguments);
  29465. }
  29466. return route;
  29467. }() // 执行路由跳转
  29468. }, {
  29469. key: "openPage",
  29470. value: function openPage(config) {
  29471. // 解构参数
  29472. var url = config.url,
  29473. type = config.type,
  29474. delta = config.delta,
  29475. animationType = config.animationType,
  29476. animationDuration = config.animationDuration;
  29477. if (config.type == 'navigateTo' || config.type == 'to') {
  29478. uni.navigateTo({
  29479. url: url,
  29480. animationType: animationType,
  29481. animationDuration: animationDuration
  29482. });
  29483. }
  29484. if (config.type == 'redirectTo' || config.type == 'redirect') {
  29485. uni.redirectTo({
  29486. url: url
  29487. });
  29488. }
  29489. if (config.type == 'switchTab' || config.type == 'tab') {
  29490. uni.switchTab({
  29491. url: url
  29492. });
  29493. }
  29494. if (config.type == 'reLaunch' || config.type == 'launch') {
  29495. uni.reLaunch({
  29496. url: url
  29497. });
  29498. }
  29499. if (config.type == 'navigateBack' || config.type == 'back') {
  29500. uni.navigateBack({
  29501. delta: delta
  29502. });
  29503. }
  29504. }
  29505. }]);
  29506. return Router;
  29507. }();
  29508. var _default = new Router().route;
  29509. exports.default = _default;
  29510. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  29511. /***/ }),
  29512. /***/ 66:
  29513. /*!************************************************************************!*\
  29514. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/timeFormat.js ***!
  29515. \************************************************************************/
  29516. /*! no static exports found */
  29517. /***/ (function(module, exports, __webpack_require__) {
  29518. "use strict";
  29519. Object.defineProperty(exports, "__esModule", {
  29520. value: true
  29521. });
  29522. exports.default = void 0;
  29523. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  29524. // 所以这里做一个兼容polyfill的兼容处理
  29525. if (!String.prototype.padStart) {
  29526. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  29527. String.prototype.padStart = function (maxLength) {
  29528. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  29529. if (Object.prototype.toString.call(fillString) !== "[object String]") throw new TypeError('fillString must be String');
  29530. var str = this;
  29531. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  29532. if (str.length >= maxLength) return String(str);
  29533. var fillLength = maxLength - str.length,
  29534. times = Math.ceil(fillLength / fillString.length);
  29535. while (times >>= 1) {
  29536. fillString += fillString;
  29537. if (times === 1) {
  29538. fillString += fillString;
  29539. }
  29540. }
  29541. return fillString.slice(0, fillLength) + str;
  29542. };
  29543. }
  29544. // 其他更多是格式化有如下:
  29545. // yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合
  29546. function timeFormat() {
  29547. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  29548. var fmt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  29549. // 如果为null,则格式化当前时间
  29550. if (!dateTime) dateTime = Number(new Date());
  29551. // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式
  29552. if (dateTime.toString().length == 10) dateTime *= 1000;
  29553. var date = new Date(dateTime);
  29554. var ret;
  29555. var opt = {
  29556. "y+": date.getFullYear().toString(),
  29557. // 年
  29558. "m+": (date.getMonth() + 1).toString(),
  29559. // 月
  29560. "d+": date.getDate().toString(),
  29561. // 日
  29562. "h+": date.getHours().toString(),
  29563. // 时
  29564. "M+": date.getMinutes().toString(),
  29565. // 分
  29566. "s+": date.getSeconds().toString() // 秒
  29567. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  29568. };
  29569. for (var k in opt) {
  29570. ret = new RegExp("(" + k + ")").exec(fmt);
  29571. if (ret) {
  29572. fmt = fmt.replace(ret[1], ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, "0"));
  29573. }
  29574. ;
  29575. }
  29576. ;
  29577. return fmt;
  29578. }
  29579. var _default = timeFormat;
  29580. exports.default = _default;
  29581. /***/ }),
  29582. /***/ 67:
  29583. /*!**********************************************************************!*\
  29584. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/timeFrom.js ***!
  29585. \**********************************************************************/
  29586. /*! no static exports found */
  29587. /***/ (function(module, exports, __webpack_require__) {
  29588. "use strict";
  29589. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  29590. Object.defineProperty(exports, "__esModule", {
  29591. value: true
  29592. });
  29593. exports.default = void 0;
  29594. var _timeFormat = _interopRequireDefault(__webpack_require__(/*! ../../libs/function/timeFormat.js */ 66));
  29595. /**
  29596. * 时间戳转为多久之前
  29597. * @param String timestamp 时间戳
  29598. * @param String | Boolean format 如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  29599. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  29600. */
  29601. function timeFrom() {
  29602. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  29603. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  29604. // 如果为null,则格式化当前时间
  29605. if (!dateTime) dateTime = Number(new Date());
  29606. // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式
  29607. if (dateTime.toString().length == 10) dateTime *= 1000;
  29608. var timestamp = +new Date(Number(dateTime));
  29609. var timer = (Number(new Date()) - timestamp) / 1000;
  29610. // 如果小于5分钟,则返回"刚刚",其他以此类推
  29611. var tips = '';
  29612. switch (true) {
  29613. case timer < 300:
  29614. tips = '刚刚';
  29615. break;
  29616. case timer >= 300 && timer < 3600:
  29617. tips = parseInt(timer / 60) + '分钟前';
  29618. break;
  29619. case timer >= 3600 && timer < 86400:
  29620. tips = parseInt(timer / 3600) + '小时前';
  29621. break;
  29622. case timer >= 86400 && timer < 2592000:
  29623. tips = parseInt(timer / 86400) + '天前';
  29624. break;
  29625. default:
  29626. // 如果format为false,则无论什么时间戳,都显示xx之前
  29627. if (format === false) {
  29628. if (timer >= 2592000 && timer < 365 * 86400) {
  29629. tips = parseInt(timer / (86400 * 30)) + '个月前';
  29630. } else {
  29631. tips = parseInt(timer / (86400 * 365)) + '年前';
  29632. }
  29633. } else {
  29634. tips = (0, _timeFormat.default)(timestamp, format);
  29635. }
  29636. }
  29637. return tips;
  29638. }
  29639. var _default = timeFrom;
  29640. exports.default = _default;
  29641. /***/ }),
  29642. /***/ 68:
  29643. /*!***************************************************************************!*\
  29644. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/colorGradient.js ***!
  29645. \***************************************************************************/
  29646. /*! no static exports found */
  29647. /***/ (function(module, exports, __webpack_require__) {
  29648. "use strict";
  29649. Object.defineProperty(exports, "__esModule", {
  29650. value: true
  29651. });
  29652. exports.default = void 0;
  29653. /**
  29654. * 求两个颜色之间的渐变值
  29655. * @param {string} startColor 开始的颜色
  29656. * @param {string} endColor 结束的颜色
  29657. * @param {number} step 颜色等分的份额
  29658. * */
  29659. function colorGradient() {
  29660. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  29661. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  29662. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  29663. var startRGB = hexToRgb(startColor, false); //转换为rgb数组模式
  29664. var startR = startRGB[0];
  29665. var startG = startRGB[1];
  29666. var startB = startRGB[2];
  29667. var endRGB = hexToRgb(endColor, false);
  29668. var endR = endRGB[0];
  29669. var endG = endRGB[1];
  29670. var endB = endRGB[2];
  29671. var sR = (endR - startR) / step; //总差值
  29672. var sG = (endG - startG) / step;
  29673. var sB = (endB - startB) / step;
  29674. var colorArr = [];
  29675. for (var i = 0; i < step; i++) {
  29676. //计算每一步的hex值
  29677. var hex = rgbToHex('rgb(' + Math.round(sR * i + startR) + ',' + Math.round(sG * i + startG) + ',' + Math.round(sB * i + startB) + ')');
  29678. colorArr.push(hex);
  29679. }
  29680. return colorArr;
  29681. }
  29682. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  29683. function hexToRgb(sColor) {
  29684. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  29685. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  29686. sColor = sColor.toLowerCase();
  29687. if (sColor && reg.test(sColor)) {
  29688. if (sColor.length === 4) {
  29689. var sColorNew = "#";
  29690. for (var i = 1; i < 4; i += 1) {
  29691. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  29692. }
  29693. sColor = sColorNew;
  29694. }
  29695. //处理六位的颜色值
  29696. var sColorChange = [];
  29697. for (var _i = 1; _i < 7; _i += 2) {
  29698. sColorChange.push(parseInt("0x" + sColor.slice(_i, _i + 2)));
  29699. }
  29700. if (!str) {
  29701. return sColorChange;
  29702. } else {
  29703. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  29704. }
  29705. } else if (/^(rgb|RGB)/.test(sColor)) {
  29706. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
  29707. return arr.map(function (val) {
  29708. return Number(val);
  29709. });
  29710. } else {
  29711. return sColor;
  29712. }
  29713. }
  29714. ;
  29715. // 将rgb表示方式转换为hex表示方式
  29716. function rgbToHex(rgb) {
  29717. var _this = rgb;
  29718. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  29719. if (/^(rgb|RGB)/.test(_this)) {
  29720. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(",");
  29721. var strHex = "#";
  29722. for (var i = 0; i < aColor.length; i++) {
  29723. var hex = Number(aColor[i]).toString(16);
  29724. hex = String(hex).length == 1 ? 0 + '' + hex : hex; // 保证每个rgb的值为2位
  29725. if (hex === "0") {
  29726. hex += hex;
  29727. }
  29728. strHex += hex;
  29729. }
  29730. if (strHex.length !== 7) {
  29731. strHex = _this;
  29732. }
  29733. return strHex;
  29734. } else if (reg.test(_this)) {
  29735. var aNum = _this.replace(/#/, "").split("");
  29736. if (aNum.length === 6) {
  29737. return _this;
  29738. } else if (aNum.length === 3) {
  29739. var numHex = "#";
  29740. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  29741. numHex += aNum[_i2] + aNum[_i2];
  29742. }
  29743. return numHex;
  29744. }
  29745. } else {
  29746. return _this;
  29747. }
  29748. }
  29749. /**
  29750. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  29751. * sHex为传入的十六进制的色值
  29752. * alpha为rgba的透明度
  29753. */
  29754. function colorToRgba(color) {
  29755. var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.3;
  29756. color = rgbToHex(color);
  29757. // 十六进制颜色值的正则表达式
  29758. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  29759. /* 16进制颜色转为RGB格式 */
  29760. var sColor = color.toLowerCase();
  29761. if (sColor && reg.test(sColor)) {
  29762. if (sColor.length === 4) {
  29763. var sColorNew = '#';
  29764. for (var i = 1; i < 4; i += 1) {
  29765. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  29766. }
  29767. sColor = sColorNew;
  29768. }
  29769. // 处理六位的颜色值
  29770. var sColorChange = [];
  29771. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  29772. sColorChange.push(parseInt('0x' + sColor.slice(_i3, _i3 + 2)));
  29773. }
  29774. // return sColorChange.join(',')
  29775. return 'rgba(' + sColorChange.join(',') + ',' + alpha + ')';
  29776. } else {
  29777. return sColor;
  29778. }
  29779. }
  29780. var _default = {
  29781. colorGradient: colorGradient,
  29782. hexToRgb: hexToRgb,
  29783. rgbToHex: rgbToHex,
  29784. colorToRgba: colorToRgba
  29785. };
  29786. exports.default = _default;
  29787. /***/ }),
  29788. /***/ 69:
  29789. /*!******************************************************************!*\
  29790. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/guid.js ***!
  29791. \******************************************************************/
  29792. /*! no static exports found */
  29793. /***/ (function(module, exports, __webpack_require__) {
  29794. "use strict";
  29795. Object.defineProperty(exports, "__esModule", {
  29796. value: true
  29797. });
  29798. exports.default = void 0;
  29799. /**
  29800. * 本算法来源于简书开源代码,详见:https://www.jianshu.com/p/fdbf293d0a85
  29801. * 全局唯一标识符(uuid,Globally Unique Identifier),也称作 uuid(Universally Unique IDentifier)
  29802. * 一般用于多个组件之间,给它一个唯一的标识符,或者v-for循环的时候,如果使用数组的index可能会导致更新列表出现问题
  29803. * 最可能的情况是左滑删除item或者对某条信息流"不喜欢"并去掉它的时候,会导致组件内的数据可能出现错乱
  29804. * v-for的时候,推荐使用后端返回的id而不是循环的index
  29805. * @param {Number} len uuid的长度
  29806. * @param {Boolean} firstU 将返回的首字母置为"u"
  29807. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  29808. */
  29809. function guid() {
  29810. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  29811. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  29812. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  29813. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  29814. var uuid = [];
  29815. radix = radix || chars.length;
  29816. if (len) {
  29817. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  29818. for (var i = 0; i < len; i++) {
  29819. uuid[i] = chars[0 | Math.random() * radix];
  29820. }
  29821. } else {
  29822. var r;
  29823. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  29824. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  29825. uuid[14] = '4';
  29826. for (var _i = 0; _i < 36; _i++) {
  29827. if (!uuid[_i]) {
  29828. r = 0 | Math.random() * 16;
  29829. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  29830. }
  29831. }
  29832. }
  29833. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  29834. if (firstU) {
  29835. uuid.shift();
  29836. return 'u' + uuid.join('');
  29837. } else {
  29838. return uuid.join('');
  29839. }
  29840. }
  29841. var _default = guid;
  29842. exports.default = _default;
  29843. /***/ }),
  29844. /***/ 7:
  29845. /*!*********************************************************************!*\
  29846. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  29847. \*********************************************************************/
  29848. /*! no static exports found */
  29849. /***/ (function(module, exports) {
  29850. function _iterableToArrayLimit(arr, i) {
  29851. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  29852. if (null != _i) {
  29853. var _s,
  29854. _e,
  29855. _x,
  29856. _r,
  29857. _arr = [],
  29858. _n = !0,
  29859. _d = !1;
  29860. try {
  29861. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  29862. if (Object(_i) !== _i) return;
  29863. _n = !1;
  29864. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  29865. ;
  29866. }
  29867. } catch (err) {
  29868. _d = !0, _e = err;
  29869. } finally {
  29870. try {
  29871. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  29872. } finally {
  29873. if (_d) throw _e;
  29874. }
  29875. }
  29876. return _arr;
  29877. }
  29878. }
  29879. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  29880. /***/ }),
  29881. /***/ 70:
  29882. /*!*******************************************************************!*\
  29883. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/color.js ***!
  29884. \*******************************************************************/
  29885. /*! no static exports found */
  29886. /***/ (function(module, exports, __webpack_require__) {
  29887. "use strict";
  29888. Object.defineProperty(exports, "__esModule", {
  29889. value: true
  29890. });
  29891. exports.default = void 0;
  29892. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  29893. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  29894. var color = {
  29895. primary: "#2979ff",
  29896. primaryDark: "#2b85e4",
  29897. primaryDisabled: "#a0cfff",
  29898. primaryLight: "#ecf5ff",
  29899. bgColor: "#f3f4f6",
  29900. info: "#909399",
  29901. infoDark: "#82848a",
  29902. infoDisabled: "#c8c9cc",
  29903. infoLight: "#f4f4f5",
  29904. warning: "#ff9900",
  29905. warningDark: "#f29100",
  29906. warningDisabled: "#fcbd71",
  29907. warningLight: "#fdf6ec",
  29908. error: "#fa3534",
  29909. errorDark: "#dd6161",
  29910. errorDisabled: "#fab6b6",
  29911. errorLight: "#fef0f0",
  29912. success: "#19be6b",
  29913. successDark: "#18b566",
  29914. successDisabled: "#71d5a1",
  29915. successLight: "#dbf1e1",
  29916. mainColor: "#303133",
  29917. contentColor: "#606266",
  29918. tipsColor: "#909399",
  29919. lightColor: "#c0c4cc",
  29920. borderColor: "#e4e7ed"
  29921. };
  29922. var _default = color;
  29923. exports.default = _default;
  29924. /***/ }),
  29925. /***/ 71:
  29926. /*!***********************************************************************!*\
  29927. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/type2icon.js ***!
  29928. \***********************************************************************/
  29929. /*! no static exports found */
  29930. /***/ (function(module, exports, __webpack_require__) {
  29931. "use strict";
  29932. Object.defineProperty(exports, "__esModule", {
  29933. value: true
  29934. });
  29935. exports.default = void 0;
  29936. /**
  29937. * 根据主题type值,获取对应的图标
  29938. * @param String type 主题名称,primary|info|error|warning|success
  29939. * @param String fill 是否使用fill填充实体的图标
  29940. */
  29941. function type2icon() {
  29942. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  29943. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  29944. // 如果非预置值,默认为success
  29945. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  29946. var iconName = '';
  29947. // 目前(2019-12-12),info和primary使用同一个图标
  29948. switch (type) {
  29949. case 'primary':
  29950. iconName = 'info-circle';
  29951. break;
  29952. case 'info':
  29953. iconName = 'info-circle';
  29954. break;
  29955. case 'error':
  29956. iconName = 'close-circle';
  29957. break;
  29958. case 'warning':
  29959. iconName = 'error-circle';
  29960. break;
  29961. case 'success':
  29962. iconName = 'checkmark-circle';
  29963. break;
  29964. default:
  29965. iconName = 'checkmark-circle';
  29966. }
  29967. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  29968. if (fill) iconName += '-fill';
  29969. return iconName;
  29970. }
  29971. var _default = type2icon;
  29972. exports.default = _default;
  29973. /***/ }),
  29974. /***/ 72:
  29975. /*!*************************************************************************!*\
  29976. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/randomArray.js ***!
  29977. \*************************************************************************/
  29978. /*! no static exports found */
  29979. /***/ (function(module, exports, __webpack_require__) {
  29980. "use strict";
  29981. Object.defineProperty(exports, "__esModule", {
  29982. value: true
  29983. });
  29984. exports.default = void 0;
  29985. // 打乱数组
  29986. function randomArray() {
  29987. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  29988. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  29989. return array.sort(function () {
  29990. return Math.random() - 0.5;
  29991. });
  29992. }
  29993. var _default = randomArray;
  29994. exports.default = _default;
  29995. /***/ }),
  29996. /***/ 73:
  29997. /*!*********************************************************************!*\
  29998. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/addUnit.js ***!
  29999. \*********************************************************************/
  30000. /*! no static exports found */
  30001. /***/ (function(module, exports, __webpack_require__) {
  30002. "use strict";
  30003. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30004. Object.defineProperty(exports, "__esModule", {
  30005. value: true
  30006. });
  30007. exports.default = addUnit;
  30008. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 63));
  30009. // 添加单位,如果有rpx,%,px等单位结尾或者值为auto,直接返回,否则加上rpx单位结尾
  30010. function addUnit() {
  30011. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  30012. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rpx';
  30013. value = String(value);
  30014. // 用uView内置验证规则中的number判断是否为数值
  30015. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  30016. }
  30017. /***/ }),
  30018. /***/ 74:
  30019. /*!********************************************************************!*\
  30020. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/random.js ***!
  30021. \********************************************************************/
  30022. /*! no static exports found */
  30023. /***/ (function(module, exports, __webpack_require__) {
  30024. "use strict";
  30025. Object.defineProperty(exports, "__esModule", {
  30026. value: true
  30027. });
  30028. exports.default = void 0;
  30029. function random(min, max) {
  30030. if (min >= 0 && max > 0 && max >= min) {
  30031. var gab = max - min + 1;
  30032. return Math.floor(Math.random() * gab + min);
  30033. } else {
  30034. return 0;
  30035. }
  30036. }
  30037. var _default = random;
  30038. exports.default = _default;
  30039. /***/ }),
  30040. /***/ 75:
  30041. /*!******************************************************************!*\
  30042. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/trim.js ***!
  30043. \******************************************************************/
  30044. /*! no static exports found */
  30045. /***/ (function(module, exports, __webpack_require__) {
  30046. "use strict";
  30047. Object.defineProperty(exports, "__esModule", {
  30048. value: true
  30049. });
  30050. exports.default = void 0;
  30051. function trim(str) {
  30052. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  30053. if (pos == 'both') {
  30054. return str.replace(/^\s+|\s+$/g, "");
  30055. } else if (pos == "left") {
  30056. return str.replace(/^\s*/, '');
  30057. } else if (pos == 'right') {
  30058. return str.replace(/(\s*$)/g, "");
  30059. } else if (pos == 'all') {
  30060. return str.replace(/\s+/g, "");
  30061. } else {
  30062. return str;
  30063. }
  30064. }
  30065. var _default = trim;
  30066. exports.default = _default;
  30067. /***/ }),
  30068. /***/ 76:
  30069. /*!*******************************************************************!*\
  30070. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/toast.js ***!
  30071. \*******************************************************************/
  30072. /*! no static exports found */
  30073. /***/ (function(module, exports, __webpack_require__) {
  30074. "use strict";
  30075. /* WEBPACK VAR INJECTION */(function(uni) {
  30076. Object.defineProperty(exports, "__esModule", {
  30077. value: true
  30078. });
  30079. exports.default = void 0;
  30080. function toast(title) {
  30081. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1500;
  30082. uni.showToast({
  30083. title: title,
  30084. icon: 'none',
  30085. duration: duration
  30086. });
  30087. }
  30088. var _default = toast;
  30089. exports.default = _default;
  30090. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  30091. /***/ }),
  30092. /***/ 77:
  30093. /*!***********************************************************************!*\
  30094. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/getParent.js ***!
  30095. \***********************************************************************/
  30096. /*! no static exports found */
  30097. /***/ (function(module, exports, __webpack_require__) {
  30098. "use strict";
  30099. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30100. Object.defineProperty(exports, "__esModule", {
  30101. value: true
  30102. });
  30103. exports.default = getParent;
  30104. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  30105. // 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  30106. // this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  30107. function getParent(name, keys) {
  30108. var parent = this.$parent;
  30109. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  30110. while (parent) {
  30111. // 父组件
  30112. if (parent.$options.name !== name) {
  30113. // 如果组件的name不相等,继续上一级寻找
  30114. parent = parent.$parent;
  30115. } else {
  30116. var _ret = function () {
  30117. var data = {};
  30118. // 判断keys是否数组,如果传过来的是一个数组,那么直接使用数组元素值当做键值去父组件寻找
  30119. if (Array.isArray(keys)) {
  30120. keys.map(function (val) {
  30121. data[val] = parent[val] ? parent[val] : '';
  30122. });
  30123. } else {
  30124. // 历遍传过来的对象参数
  30125. for (var i in keys) {
  30126. // 如果子组件有此值则用,无此值则用父组件的值
  30127. // 判断是否空数组,如果是,则用父组件的值,否则用子组件的值
  30128. if (Array.isArray(keys[i])) {
  30129. if (keys[i].length) {
  30130. data[i] = keys[i];
  30131. } else {
  30132. data[i] = parent[i];
  30133. }
  30134. } else if (keys[i].constructor === Object) {
  30135. // 判断是否对象,如果是对象,且有属性,那么使用子组件的值,否则使用父组件的值
  30136. if (Object.keys(keys[i]).length) {
  30137. data[i] = keys[i];
  30138. } else {
  30139. data[i] = parent[i];
  30140. }
  30141. } else {
  30142. // 只要子组件有传值,即使是false值,也是“传值”了,也需要覆盖父组件的同名参数
  30143. data[i] = keys[i] || keys[i] === false ? keys[i] : parent[i];
  30144. }
  30145. }
  30146. }
  30147. return {
  30148. v: data
  30149. };
  30150. }();
  30151. if ((0, _typeof2.default)(_ret) === "object") return _ret.v;
  30152. }
  30153. }
  30154. return {};
  30155. }
  30156. /***/ }),
  30157. /***/ 78:
  30158. /*!*********************************************************************!*\
  30159. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/$parent.js ***!
  30160. \*********************************************************************/
  30161. /*! no static exports found */
  30162. /***/ (function(module, exports, __webpack_require__) {
  30163. "use strict";
  30164. Object.defineProperty(exports, "__esModule", {
  30165. value: true
  30166. });
  30167. exports.default = $parent;
  30168. // 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  30169. // this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  30170. // 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  30171. // 值(默认为undefined),就是查找最顶层的$parent
  30172. function $parent() {
  30173. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  30174. var parent = this.$parent;
  30175. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  30176. while (parent) {
  30177. // 父组件
  30178. if (parent.$options && parent.$options.name !== name) {
  30179. // 如果组件的name不相等,继续上一级寻找
  30180. parent = parent.$parent;
  30181. } else {
  30182. return parent;
  30183. }
  30184. }
  30185. return false;
  30186. }
  30187. /***/ }),
  30188. /***/ 79:
  30189. /*!*****************************************************************!*\
  30190. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/sys.js ***!
  30191. \*****************************************************************/
  30192. /*! no static exports found */
  30193. /***/ (function(module, exports, __webpack_require__) {
  30194. "use strict";
  30195. /* WEBPACK VAR INJECTION */(function(uni) {
  30196. Object.defineProperty(exports, "__esModule", {
  30197. value: true
  30198. });
  30199. exports.os = os;
  30200. exports.sys = sys;
  30201. function os() {
  30202. return uni.getSystemInfoSync().platform;
  30203. }
  30204. ;
  30205. function sys() {
  30206. return uni.getSystemInfoSync();
  30207. }
  30208. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  30209. /***/ }),
  30210. /***/ 8:
  30211. /*!***************************************************************************!*\
  30212. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  30213. \***************************************************************************/
  30214. /*! no static exports found */
  30215. /***/ (function(module, exports, __webpack_require__) {
  30216. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  30217. function _unsupportedIterableToArray(o, minLen) {
  30218. if (!o) return;
  30219. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  30220. var n = Object.prototype.toString.call(o).slice(8, -1);
  30221. if (n === "Object" && o.constructor) n = o.constructor.name;
  30222. if (n === "Map" || n === "Set") return Array.from(o);
  30223. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  30224. }
  30225. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  30226. /***/ }),
  30227. /***/ 80:
  30228. /*!**********************************************************************!*\
  30229. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/debounce.js ***!
  30230. \**********************************************************************/
  30231. /*! no static exports found */
  30232. /***/ (function(module, exports, __webpack_require__) {
  30233. "use strict";
  30234. Object.defineProperty(exports, "__esModule", {
  30235. value: true
  30236. });
  30237. exports.default = void 0;
  30238. var timeout = null;
  30239. /**
  30240. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  30241. *
  30242. * @param {Function} func 要执行的回调函数
  30243. * @param {Number} wait 延时的时间
  30244. * @param {Boolean} immediate 是否立即执行
  30245. * @return null
  30246. */
  30247. function debounce(func) {
  30248. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  30249. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  30250. // 清除定时器
  30251. if (timeout !== null) clearTimeout(timeout);
  30252. // 立即执行,此类情况一般用不到
  30253. if (immediate) {
  30254. var callNow = !timeout;
  30255. timeout = setTimeout(function () {
  30256. timeout = null;
  30257. }, wait);
  30258. if (callNow) typeof func === 'function' && func();
  30259. } else {
  30260. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  30261. timeout = setTimeout(function () {
  30262. typeof func === 'function' && func();
  30263. }, wait);
  30264. }
  30265. }
  30266. var _default = debounce;
  30267. exports.default = _default;
  30268. /***/ }),
  30269. /***/ 81:
  30270. /*!**********************************************************************!*\
  30271. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/function/throttle.js ***!
  30272. \**********************************************************************/
  30273. /*! no static exports found */
  30274. /***/ (function(module, exports, __webpack_require__) {
  30275. "use strict";
  30276. Object.defineProperty(exports, "__esModule", {
  30277. value: true
  30278. });
  30279. exports.default = void 0;
  30280. var timer, flag;
  30281. /**
  30282. * 节流原理:在一定时间内,只能触发一次
  30283. *
  30284. * @param {Function} func 要执行的回调函数
  30285. * @param {Number} wait 延时的时间
  30286. * @param {Boolean} immediate 是否立即执行
  30287. * @return null
  30288. */
  30289. function throttle(func) {
  30290. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  30291. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  30292. if (immediate) {
  30293. if (!flag) {
  30294. flag = true;
  30295. // 如果是立即执行,则在wait毫秒内开始时执行
  30296. typeof func === 'function' && func();
  30297. timer = setTimeout(function () {
  30298. flag = false;
  30299. }, wait);
  30300. }
  30301. } else {
  30302. if (!flag) {
  30303. flag = true;
  30304. // 如果是非立即执行,则在wait毫秒内的结束处执行
  30305. timer = setTimeout(function () {
  30306. flag = false;
  30307. typeof func === 'function' && func();
  30308. }, wait);
  30309. }
  30310. }
  30311. }
  30312. ;
  30313. var _default = throttle;
  30314. exports.default = _default;
  30315. /***/ }),
  30316. /***/ 815:
  30317. /*!*****************************************!*\
  30318. !*** D:/工作/项目2/华畦/xcw/api/community.js ***!
  30319. \*****************************************/
  30320. /*! no static exports found */
  30321. /***/ (function(module, exports, __webpack_require__) {
  30322. "use strict";
  30323. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30324. Object.defineProperty(exports, "__esModule", {
  30325. value: true
  30326. });
  30327. exports.apiCommunityAdd = apiCommunityAdd;
  30328. exports.apiCommunityClearSearchHistory = apiCommunityClearSearchHistory;
  30329. exports.apiCommunityCommentAdd = apiCommunityCommentAdd;
  30330. exports.apiCommunityCommentLike = apiCommunityCommentLike;
  30331. exports.apiCommunityDel = apiCommunityDel;
  30332. exports.apiCommunityEdit = apiCommunityEdit;
  30333. exports.apiCommunityFollow = apiCommunityFollow;
  30334. exports.apiCommunitySetSetting = apiCommunitySetSetting;
  30335. exports.getCommunityArticleLists = getCommunityArticleLists;
  30336. exports.getCommunityCate = getCommunityCate;
  30337. exports.getCommunityCommentChildLists = getCommunityCommentChildLists;
  30338. exports.getCommunityCommentLists = getCommunityCommentLists;
  30339. exports.getCommunityDetail = getCommunityDetail;
  30340. exports.getCommunityFollow = getCommunityFollow;
  30341. exports.getCommunityGoods = getCommunityGoods;
  30342. exports.getCommunityGoodsLists = getCommunityGoodsLists;
  30343. exports.getCommunityLikeLists = getCommunityLikeLists;
  30344. exports.getCommunityRecommendTopic = getCommunityRecommendTopic;
  30345. exports.getCommunitySearchHistory = getCommunitySearchHistory;
  30346. exports.getCommunitySetting = getCommunitySetting;
  30347. exports.getCommunityShop = getCommunityShop;
  30348. exports.getCommunityShopLists = getCommunityShopLists;
  30349. exports.getCommunityTopicArticle = getCommunityTopicArticle;
  30350. exports.getCommunityTopicLists = getCommunityTopicLists;
  30351. exports.getCommunityUserCenter = getCommunityUserCenter;
  30352. exports.getCommunityWorksLists = getCommunityWorksLists;
  30353. var _request = _interopRequireDefault(__webpack_require__(/*! @/utils/request */ 35));
  30354. // 关联商品
  30355. function getCommunityGoods(params) {
  30356. return _request.default.get("community/goods", {
  30357. params: params
  30358. });
  30359. }
  30360. // 关联店铺
  30361. function getCommunityShop(params) {
  30362. return _request.default.get("community/shop", {
  30363. params: params
  30364. });
  30365. }
  30366. // 推荐话题
  30367. function getCommunityRecommendTopic() {
  30368. return _request.default.get("community/recommendTopic");
  30369. }
  30370. // 话题列表
  30371. function getCommunityTopicLists(params) {
  30372. return _request.default.get("community/topicLists", {
  30373. params: params
  30374. });
  30375. }
  30376. // 发布文章
  30377. function apiCommunityAdd(params) {
  30378. return _request.default.post("community/addArticle", params);
  30379. }
  30380. // 编辑文章
  30381. function apiCommunityEdit(params) {
  30382. return _request.default.post("community/editArticle", params);
  30383. }
  30384. // 个人中心
  30385. function getCommunityUserCenter(params) {
  30386. return _request.default.get("community_user/center", {
  30387. params: params
  30388. });
  30389. }
  30390. // 分类
  30391. function getCommunityCate() {
  30392. return _request.default.get("community/cate");
  30393. }
  30394. // 发现页文章列表
  30395. function getCommunityArticleLists(params) {
  30396. return _request.default.get("community/articleLists", {
  30397. params: params
  30398. });
  30399. }
  30400. // 关注/取消
  30401. function apiCommunityFollow(params) {
  30402. return _request.default.post("community/follow", params);
  30403. }
  30404. // 获取设置
  30405. function getCommunitySetting() {
  30406. return _request.default.get("community_user/getSetting");
  30407. }
  30408. // 提交设置
  30409. function apiCommunitySetSetting(params) {
  30410. return _request.default.post("community_user/setSetting", params);
  30411. }
  30412. // 关注页-数据
  30413. function getCommunityFollow(params) {
  30414. return _request.default.get("community/followArticle", {
  30415. params: params
  30416. });
  30417. }
  30418. // 个人页-作品列表
  30419. function getCommunityWorksLists(params) {
  30420. return _request.default.get("community/worksLists", {
  30421. params: params
  30422. });
  30423. }
  30424. // 个人页-点赞列表
  30425. function getCommunityLikeLists(params) {
  30426. return _request.default.get("community/likeLists", {
  30427. params: params
  30428. });
  30429. }
  30430. // 相关话题
  30431. function getCommunityTopicArticle(params) {
  30432. return _request.default.get("community/topicArticle", {
  30433. params: params
  30434. });
  30435. }
  30436. // 文章详情
  30437. function getCommunityDetail(params) {
  30438. return _request.default.get("community/detail", {
  30439. params: params
  30440. });
  30441. }
  30442. // 文章中的关联商品
  30443. function getCommunityGoodsLists(params) {
  30444. return _request.default.get("community/relationGoods", {
  30445. params: params
  30446. });
  30447. }
  30448. // 文章中的关联店铺
  30449. function getCommunityShopLists(params) {
  30450. return _request.default.get("community/relationShop", {
  30451. params: params
  30452. });
  30453. }
  30454. // 删除文章
  30455. function apiCommunityDel(params) {
  30456. return _request.default.post("community/delArticle", params);
  30457. }
  30458. // 添加评论
  30459. function apiCommunityCommentAdd(params) {
  30460. return _request.default.post("community_comment/add", params);
  30461. }
  30462. // 文章评论
  30463. function getCommunityCommentLists(params) {
  30464. return _request.default.get("community_comment/lists", {
  30465. params: params
  30466. });
  30467. }
  30468. // 文章子级评论
  30469. function getCommunityCommentChildLists(params) {
  30470. return _request.default.get("community_comment/commentChild", {
  30471. params: params
  30472. });
  30473. }
  30474. // 点赞 | 取消 | 作品点赞 | 评论点赞
  30475. function apiCommunityCommentLike(params) {
  30476. return _request.default.post("community/giveLike", params);
  30477. }
  30478. // 搜索记录
  30479. function getCommunitySearchHistory() {
  30480. return _request.default.get("community_search/lists");
  30481. }
  30482. // 清空搜索记录
  30483. function apiCommunityClearSearchHistory() {
  30484. return _request.default.post("community_search/clear");
  30485. }
  30486. /***/ }),
  30487. /***/ 82:
  30488. /*!******************************************************************!*\
  30489. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/config/config.js ***!
  30490. \******************************************************************/
  30491. /*! no static exports found */
  30492. /***/ (function(module, exports, __webpack_require__) {
  30493. "use strict";
  30494. Object.defineProperty(exports, "__esModule", {
  30495. value: true
  30496. });
  30497. exports.default = void 0;
  30498. // 此版本发布于2020-12-17
  30499. var version = '1.8.3';
  30500. var _default = {
  30501. v: version,
  30502. version: version,
  30503. // 主题名称
  30504. type: ['primary', 'success', 'info', 'error', 'warning']
  30505. };
  30506. exports.default = _default;
  30507. /***/ }),
  30508. /***/ 83:
  30509. /*!******************************************************************!*\
  30510. !*** D:/工作/项目2/华畦/xcw/components/uview-ui/libs/config/zIndex.js ***!
  30511. \******************************************************************/
  30512. /*! no static exports found */
  30513. /***/ (function(module, exports, __webpack_require__) {
  30514. "use strict";
  30515. Object.defineProperty(exports, "__esModule", {
  30516. value: true
  30517. });
  30518. exports.default = void 0;
  30519. // uniapp在H5中各API的z-index值如下:
  30520. /**
  30521. * actionsheet: 999
  30522. * modal: 999
  30523. * navigate: 998
  30524. * tabbar: 998
  30525. * toast: 999
  30526. */
  30527. var _default = {
  30528. toast: 999,
  30529. noNetwork: 10080,
  30530. // popup包含popup,actionsheet,keyboard,picker的值
  30531. popup: 901,
  30532. mask: 900,
  30533. navbar: 880,
  30534. topTips: 975,
  30535. sticky: 870,
  30536. indexListSticky: 965
  30537. };
  30538. exports.default = _default;
  30539. /***/ }),
  30540. /***/ 84:
  30541. /*!**************************************!*\
  30542. !*** D:/工作/项目2/华畦/xcw/mixins/app.js ***!
  30543. \**************************************/
  30544. /*! no static exports found */
  30545. /***/ (function(module, exports, __webpack_require__) {
  30546. "use strict";
  30547. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30548. Object.defineProperty(exports, "__esModule", {
  30549. value: true
  30550. });
  30551. exports.default = void 0;
  30552. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30));
  30553. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  30554. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32));
  30555. var _vuex = __webpack_require__(/*! vuex */ 33);
  30556. var _wechath = _interopRequireDefault(__webpack_require__(/*! @/utils/wechath5 */ 47));
  30557. var _tools = __webpack_require__(/*! @/utils/tools */ 41);
  30558. var _cache = _interopRequireDefault(__webpack_require__(/*! @/utils/cache */ 46));
  30559. var _color = _interopRequireDefault(__webpack_require__(/*! @/config/color */ 85));
  30560. function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
  30561. function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
  30562. var _default = {
  30563. data: function data() {
  30564. return {
  30565. colorConfig: _color.default
  30566. };
  30567. },
  30568. onLoad: function onLoad(option) {
  30569. return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  30570. return _regenerator.default.wrap(function _callee$(_context) {
  30571. while (1) {
  30572. switch (_context.prev = _context.next) {
  30573. case 0:
  30574. case "end":
  30575. return _context.stop();
  30576. }
  30577. }
  30578. }, _callee);
  30579. }))();
  30580. },
  30581. methods: {},
  30582. computed: _objectSpread({}, (0, _vuex.mapGetters)(['isLogin', 'inviteCode', 'appConfig'])),
  30583. // 全局配置分享
  30584. onShareAppMessage: function onShareAppMessage() {
  30585. var _this$appConfig$share = this.appConfig.share,
  30586. h5_share_image = _this$appConfig$share.h5_share_image,
  30587. share_intro = _this$appConfig$share.share_intro,
  30588. share_title = _this$appConfig$share.share_title,
  30589. mnp_share_title = _this$appConfig$share.mnp_share_title,
  30590. mnp_share_image = _this$appConfig$share.mnp_share_image;
  30591. var share = {
  30592. title: mnp_share_title,
  30593. path: "/pages/index/index?invite_code=".concat(this.inviteCode),
  30594. imageUrl: mnp_share_image
  30595. };
  30596. return share;
  30597. },
  30598. onShareTimeline: function onShareTimeline() {
  30599. var _this$appConfig$share2 = this.appConfig.share,
  30600. h5_share_image = _this$appConfig$share2.h5_share_image,
  30601. share_intro = _this$appConfig$share2.share_intro,
  30602. share_title = _this$appConfig$share2.share_title;
  30603. var share = {
  30604. title: mnp_share_title,
  30605. imageUrl: mnp_share_image
  30606. };
  30607. return share;
  30608. }
  30609. };
  30610. exports.default = _default;
  30611. /***/ }),
  30612. /***/ 85:
  30613. /*!****************************************!*\
  30614. !*** D:/工作/项目2/华畦/xcw/config/color.js ***!
  30615. \****************************************/
  30616. /*! no static exports found */
  30617. /***/ (function(module, exports, __webpack_require__) {
  30618. "use strict";
  30619. Object.defineProperty(exports, "__esModule", {
  30620. value: true
  30621. });
  30622. exports.default = void 0;
  30623. var color = {
  30624. //主题色
  30625. primary: '#FF2C3C',
  30626. //主要边框颜色
  30627. border: '#E5E5E5',
  30628. //黑色
  30629. black: '#101010',
  30630. //字体主色
  30631. normal: '#333333',
  30632. //白色
  30633. white: '#ffffff',
  30634. //字体浅色
  30635. lighter: '#666666',
  30636. //字体更浅色
  30637. muted: '#999999',
  30638. //背景色
  30639. body: '#F6F6F6'
  30640. };
  30641. var _default = color;
  30642. exports.default = _default;
  30643. /***/ }),
  30644. /***/ 887:
  30645. /*!****************************************************************!*\
  30646. !*** D:/工作/项目2/华畦/xcw/components/mescroll-uni/mescroll-uni.js ***!
  30647. \****************************************************************/
  30648. /*! no static exports found */
  30649. /***/ (function(module, exports, __webpack_require__) {
  30650. "use strict";
  30651. /* WEBPACK VAR INJECTION */(function(uni) {
  30652. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  30653. Object.defineProperty(exports, "__esModule", {
  30654. value: true
  30655. });
  30656. exports.default = MeScroll;
  30657. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  30658. /* mescroll
  30659. * version 1.3.3
  30660. * 2020-09-15 wenju
  30661. * https://www.mescroll.com
  30662. */
  30663. function MeScroll(options, isScrollBody) {
  30664. var me = this;
  30665. me.version = '1.3.3'; // mescroll版本号
  30666. me.options = options || {}; // 配置
  30667. me.isScrollBody = isScrollBody || false; // 滚动区域是否为原生页面滚动; 默认为scroll-view
  30668. me.isDownScrolling = false; // 是否在执行下拉刷新的回调
  30669. me.isUpScrolling = false; // 是否在执行上拉加载的回调
  30670. var hasDownCallback = me.options.down && me.options.down.callback; // 是否配置了down的callback
  30671. // 初始化下拉刷新
  30672. me.initDownScroll();
  30673. // 初始化上拉加载,则初始化
  30674. me.initUpScroll();
  30675. // 自动加载
  30676. setTimeout(function () {
  30677. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  30678. // 自动触发下拉刷新 (只有配置了down的callback才自动触发下拉刷新)
  30679. if ((me.optDown.use || me.optDown.native) && me.optDown.auto && hasDownCallback) {
  30680. if (me.optDown.autoShowLoading) {
  30681. me.triggerDownScroll(); // 显示下拉进度,执行下拉回调
  30682. } else {
  30683. me.optDown.callback && me.optDown.callback(me); // 不显示下拉进度,直接执行下拉回调
  30684. }
  30685. }
  30686. // 自动触发上拉加载
  30687. if (!me.isUpAutoLoad) {
  30688. // 部分小程序(头条小程序)emit是异步, 会导致isUpAutoLoad判断有误, 先延时确保先执行down的callback,再执行up的callback
  30689. setTimeout(function () {
  30690. me.optUp.use && me.optUp.auto && !me.isUpAutoLoad && me.triggerUpScroll();
  30691. }, 100);
  30692. }
  30693. }, 30); // 需让me.optDown.inited和me.optUp.inited先执行
  30694. }
  30695. /* 配置参数:下拉刷新 */
  30696. MeScroll.prototype.extendDownScroll = function (optDown) {
  30697. // 下拉刷新的配置
  30698. MeScroll.extend(optDown, {
  30699. use: true,
  30700. // 是否启用下拉刷新; 默认true
  30701. auto: true,
  30702. // 是否在初始化完毕之后自动执行下拉刷新的回调; 默认true
  30703. native: false,
  30704. // 是否使用系统自带的下拉刷新; 默认false; 仅mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  30705. autoShowLoading: false,
  30706. // 如果设置auto=true(在初始化完毕之后自动执行下拉刷新的回调),那么是否显示下拉刷新的进度; 默认false
  30707. isLock: false,
  30708. // 是否锁定下拉刷新,默认false;
  30709. offset: 80,
  30710. // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
  30711. startTop: 100,
  30712. // scroll-view快速滚动到顶部时,此时的scroll-top可能大于0, 此值用于控制最大的误差
  30713. inOffsetRate: 1,
  30714. // 在列表顶部,下拉的距离小于offset时,改变下拉区域高度比例;值小于1且越接近0,高度变化越小,表现为越往下越难拉
  30715. outOffsetRate: 0.2,
  30716. // 在列表顶部,下拉的距离大于offset时,改变下拉区域高度比例;值小于1且越接近0,高度变化越小,表现为越往下越难拉
  30717. bottomOffset: 20,
  30718. // 当手指touchmove位置在距离body底部20px范围内的时候结束上拉刷新,避免Webview嵌套导致touchend事件不执行
  30719. minAngle: 45,
  30720. // 向下滑动最少偏移的角度,取值区间 [0,90];默认45度,即向下滑动的角度大于45度则触发下拉;而小于45度,将不触发下拉,避免与左右滑动的轮播等组件冲突;
  30721. textInOffset: '下拉刷新',
  30722. // 下拉的距离在offset范围内的提示文本
  30723. textOutOffset: '释放更新',
  30724. // 下拉的距离大于offset范围的提示文本
  30725. textLoading: '加载中 ...',
  30726. // 加载中的提示文本
  30727. textSuccess: '加载成功',
  30728. // 加载成功的文本
  30729. textErr: '加载失败',
  30730. // 加载失败的文本
  30731. beforeEndDelay: 100,
  30732. // 延时结束的时长 (显示加载成功/失败的时长)
  30733. bgColor: "transparent",
  30734. // 背景颜色 (建议在pages.json中再设置一下backgroundColorTop)
  30735. textColor: "gray",
  30736. // 文本颜色 (当bgColor配置了颜色,而textColor未配置时,则textColor会默认为白色)
  30737. inited: null,
  30738. // 下拉刷新初始化完毕的回调
  30739. inOffset: null,
  30740. // 下拉的距离进入offset范围内那一刻的回调
  30741. outOffset: null,
  30742. // 下拉的距离大于offset那一刻的回调
  30743. onMoving: null,
  30744. // 下拉过程中的回调,滑动过程一直在执行; rate下拉区域当前高度与指定距离的比值(inOffset: rate<1; outOffset: rate>=1); downHight当前下拉区域的高度
  30745. beforeLoading: null,
  30746. // 准备触发下拉刷新的回调: 如果return true,将不触发showLoading和callback回调; 常用来完全自定义下拉刷新, 参考案例【淘宝 v6.8.0】
  30747. showLoading: null,
  30748. // 显示下拉刷新进度的回调
  30749. afterLoading: null,
  30750. // 显示下拉刷新进度的回调之后,马上要执行的代码 (如: 在wxs中使用)
  30751. beforeEndDownScroll: null,
  30752. // 准备结束下拉的回调. 返回结束下拉的延时执行时间,默认0ms; 常用于结束下拉之前再显示另外一小段动画,才去隐藏下拉刷新的场景, 参考案例【dotJump】
  30753. endDownScroll: null,
  30754. // 结束下拉刷新的回调
  30755. afterEndDownScroll: null,
  30756. // 结束下拉刷新的回调,马上要执行的代码 (如: 在wxs中使用)
  30757. callback: function callback(mescroll) {
  30758. // 下拉刷新的回调;默认重置上拉加载列表为第一页
  30759. mescroll.resetUpScroll();
  30760. }
  30761. });
  30762. };
  30763. /* 配置参数:上拉加载 */
  30764. MeScroll.prototype.extendUpScroll = function (optUp) {
  30765. // 上拉加载的配置
  30766. MeScroll.extend(optUp, {
  30767. use: true,
  30768. // 是否启用上拉加载; 默认true
  30769. auto: true,
  30770. // 是否在初始化完毕之后自动执行上拉加载的回调; 默认true
  30771. isLock: false,
  30772. // 是否锁定上拉加载,默认false;
  30773. isBoth: true,
  30774. // 上拉加载时,如果滑动到列表顶部是否可以同时触发下拉刷新;默认true,两者可同时触发;
  30775. callback: null,
  30776. // 上拉加载的回调;function(page,mescroll){ }
  30777. page: {
  30778. num: 0,
  30779. // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
  30780. size: 10,
  30781. // 每页数据的数量
  30782. time: null // 加载第一页数据服务器返回的时间; 防止用户翻页时,后台新增了数据从而导致下一页数据重复;
  30783. },
  30784. noMoreSize: 4,
  30785. // 如果列表已无数据,可设置列表的总数量要大于等于5条才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看
  30786. offset: 150,
  30787. // 距底部多远时,触发upCallback,仅mescroll-uni生效 ( mescroll-body配置的是pages.json的 onReachBottomDistance )
  30788. textLoading: '加载中 ...',
  30789. // 加载中的提示文本
  30790. textNoMore: '-- END --',
  30791. // 没有更多数据的提示文本
  30792. bgColor: "transparent",
  30793. // 背景颜色 (建议在pages.json中再设置一下backgroundColorBottom)
  30794. textColor: "gray",
  30795. // 文本颜色 (当bgColor配置了颜色,而textColor未配置时,则textColor会默认为白色)
  30796. inited: null,
  30797. // 初始化完毕的回调
  30798. showLoading: null,
  30799. // 显示加载中的回调
  30800. showNoMore: null,
  30801. // 显示无更多数据的回调
  30802. hideUpScroll: null,
  30803. // 隐藏上拉加载的回调
  30804. errDistance: 60,
  30805. // endErr的时候需往上滑动一段距离,使其往下滑动时再次触发onReachBottom,仅mescroll-body生效
  30806. toTop: {
  30807. // 回到顶部按钮,需配置src才显示
  30808. src: null,
  30809. // 图片路径,默认null (绝对路径或网络图)
  30810. offset: 1000,
  30811. // 列表滚动多少距离才显示回到顶部按钮,默认1000
  30812. duration: 300,
  30813. // 回到顶部的动画时长,默认300ms (当值为0或300则使用系统自带回到顶部,更流畅; 其他值则通过step模拟,部分机型可能不够流畅,所以非特殊情况不建议修改此项)
  30814. btnClick: null,
  30815. // 点击按钮的回调
  30816. onShow: null,
  30817. // 是否显示的回调
  30818. zIndex: 9990,
  30819. // fixed定位z-index值
  30820. left: null,
  30821. // 到左边的距离, 默认null. 此项有值时,right不生效. (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  30822. right: 20,
  30823. // 到右边的距离, 默认20 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  30824. bottom: 120,
  30825. // 到底部的距离, 默认120 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  30826. safearea: false,
  30827. // bottom的偏移量是否加上底部安全区的距离, 默认false, 需要适配iPhoneX时使用 (具体的界面如果不配置此项,则取本vue的safearea值)
  30828. width: 72,
  30829. // 回到顶部图标的宽度, 默认72 (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  30830. radius: "50%" // 圆角, 默认"50%" (支持20, "20rpx", "20px", "20%"格式的值, 其中纯数字则默认单位rpx)
  30831. },
  30832. empty: {
  30833. use: true,
  30834. // 是否显示空布局
  30835. icon: null,
  30836. // 图标路径
  30837. tip: '~ 暂无相关数据 ~',
  30838. // 提示
  30839. btnText: '',
  30840. // 按钮
  30841. btnClick: null,
  30842. // 点击按钮的回调
  30843. onShow: null,
  30844. // 是否显示的回调
  30845. fixed: false,
  30846. // 是否使用fixed定位,默认false; 配置fixed为true,以下的top和zIndex才生效 (transform会使fixed失效,最终会降级为absolute)
  30847. top: "100rpx",
  30848. // fixed定位的top值 (完整的单位值,如 "10%"; "100rpx")
  30849. zIndex: 99 // fixed定位z-index值
  30850. },
  30851. onScroll: false // 是否监听滚动事件
  30852. });
  30853. };
  30854. /* 配置参数 */
  30855. MeScroll.extend = function (userOption, defaultOption) {
  30856. if (!userOption) return defaultOption;
  30857. for (var key in defaultOption) {
  30858. if (userOption[key] == null) {
  30859. var def = defaultOption[key];
  30860. if (def != null && (0, _typeof2.default)(def) === 'object') {
  30861. userOption[key] = MeScroll.extend({}, def); // 深度匹配
  30862. } else {
  30863. userOption[key] = def;
  30864. }
  30865. } else if ((0, _typeof2.default)(userOption[key]) === 'object') {
  30866. MeScroll.extend(userOption[key], defaultOption[key]); // 深度匹配
  30867. }
  30868. }
  30869. return userOption;
  30870. };
  30871. /* 简单判断是否配置了颜色 (非透明,非白色) */
  30872. MeScroll.prototype.hasColor = function (color) {
  30873. if (!color) return false;
  30874. var c = color.toLowerCase();
  30875. return c != "#fff" && c != "#ffffff" && c != "transparent" && c != "white";
  30876. };
  30877. /* -------初始化下拉刷新------- */
  30878. MeScroll.prototype.initDownScroll = function () {
  30879. var me = this;
  30880. // 配置参数
  30881. me.optDown = me.options.down || {};
  30882. if (!me.optDown.textColor && me.hasColor(me.optDown.bgColor)) me.optDown.textColor = "#fff"; // 当bgColor有值且textColor未设置,则textColor默认白色
  30883. me.extendDownScroll(me.optDown);
  30884. // 如果是mescroll-body且配置了native,则禁止自定义的下拉刷新
  30885. if (me.isScrollBody && me.optDown.native) {
  30886. me.optDown.use = false;
  30887. } else {
  30888. me.optDown.native = false; // 仅mescroll-body支持,mescroll-uni不支持
  30889. }
  30890. me.downHight = 0; // 下拉区域的高度
  30891. // 在页面中加入下拉布局
  30892. if (me.optDown.use && me.optDown.inited) {
  30893. // 初始化完毕的回调
  30894. setTimeout(function () {
  30895. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  30896. me.optDown.inited(me);
  30897. }, 0);
  30898. }
  30899. };
  30900. /* 列表touchstart事件 */
  30901. MeScroll.prototype.touchstartEvent = function (e) {
  30902. if (!this.optDown.use) return;
  30903. this.startPoint = this.getPoint(e); // 记录起点
  30904. this.startTop = this.getScrollTop(); // 记录此时的滚动条位置
  30905. this.startAngle = 0; // 初始角度
  30906. this.lastPoint = this.startPoint; // 重置上次move的点
  30907. this.maxTouchmoveY = this.getBodyHeight() - this.optDown.bottomOffset; // 手指触摸的最大范围(写在touchstart避免body获取高度为0的情况)
  30908. this.inTouchend = false; // 标记不是touchend
  30909. };
  30910. /* 列表touchmove事件 */
  30911. MeScroll.prototype.touchmoveEvent = function (e) {
  30912. if (!this.optDown.use) return;
  30913. var me = this;
  30914. var scrollTop = me.getScrollTop(); // 当前滚动条的距离
  30915. var curPoint = me.getPoint(e); // 当前点
  30916. var moveY = curPoint.y - me.startPoint.y; // 和起点比,移动的距离,大于0向下拉,小于0向上拉
  30917. // 向下拉 && 在顶部
  30918. // mescroll-body,直接判定在顶部即可
  30919. // scroll-view在滚动时不会触发touchmove,当触顶/底/左/右时,才会触发touchmove
  30920. // scroll-view滚动到顶部时,scrollTop不一定为0,也有可能大于0; 在iOS的APP中scrollTop可能为负数,不一定和startTop相等
  30921. if (moveY > 0 && (me.isScrollBody && scrollTop <= 0 || !me.isScrollBody && (scrollTop <= 0 || scrollTop <= me.optDown.startTop && scrollTop === me.startTop))) {
  30922. // 可下拉的条件
  30923. if (!me.inTouchend && !me.isDownScrolling && !me.optDown.isLock && (!me.isUpScrolling || me.isUpScrolling && me.optUp.isBoth)) {
  30924. // 下拉的初始角度是否在配置的范围内
  30925. if (!me.startAngle) me.startAngle = me.getAngle(me.lastPoint, curPoint); // 两点之间的角度,区间 [0,90]
  30926. if (me.startAngle < me.optDown.minAngle) return; // 如果小于配置的角度,则不往下执行下拉刷新
  30927. // 如果手指的位置超过配置的距离,则提前结束下拉,避免Webview嵌套导致touchend无法触发
  30928. if (me.maxTouchmoveY > 0 && curPoint.y >= me.maxTouchmoveY) {
  30929. me.inTouchend = true; // 标记执行touchend
  30930. me.touchendEvent(); // 提前触发touchend
  30931. return;
  30932. }
  30933. me.preventDefault(e); // 阻止默认事件
  30934. var diff = curPoint.y - me.lastPoint.y; // 和上次比,移动的距离 (大于0向下,小于0向上)
  30935. // 下拉距离 < 指定距离
  30936. if (me.downHight < me.optDown.offset) {
  30937. if (me.movetype !== 1) {
  30938. me.movetype = 1; // 加入标记,保证只执行一次
  30939. me.isDownEndSuccess = null; // 重置是否加载成功的状态 (wxs执行的是wxs.wxs)
  30940. me.optDown.inOffset && me.optDown.inOffset(me); // 进入指定距离范围内那一刻的回调,只执行一次
  30941. me.isMoveDown = true; // 标记下拉区域高度改变,在touchend重置回来
  30942. }
  30943. me.downHight += diff * me.optDown.inOffsetRate; // 越往下,高度变化越小
  30944. // 指定距离 <= 下拉距离
  30945. } else {
  30946. if (me.movetype !== 2) {
  30947. me.movetype = 2; // 加入标记,保证只执行一次
  30948. me.optDown.outOffset && me.optDown.outOffset(me); // 下拉超过指定距离那一刻的回调,只执行一次
  30949. me.isMoveDown = true; // 标记下拉区域高度改变,在touchend重置回来
  30950. }
  30951. if (diff > 0) {
  30952. // 向下拉
  30953. me.downHight += diff * me.optDown.outOffsetRate; // 越往下,高度变化越小
  30954. } else {
  30955. // 向上收
  30956. me.downHight += diff; // 向上收回高度,则向上滑多少收多少高度
  30957. }
  30958. }
  30959. me.downHight = Math.round(me.downHight); // 取整
  30960. var rate = me.downHight / me.optDown.offset; // 下拉区域当前高度与指定距离的比值
  30961. me.optDown.onMoving && me.optDown.onMoving(me, rate, me.downHight); // 下拉过程中的回调,一直在执行
  30962. }
  30963. }
  30964. me.lastPoint = curPoint; // 记录本次移动的点
  30965. };
  30966. /* 列表touchend事件 */
  30967. MeScroll.prototype.touchendEvent = function (e) {
  30968. if (!this.optDown.use) return;
  30969. // 如果下拉区域高度已改变,则需重置回来
  30970. if (this.isMoveDown) {
  30971. if (this.downHight >= this.optDown.offset) {
  30972. // 符合触发刷新的条件
  30973. this.triggerDownScroll();
  30974. } else {
  30975. // 不符合的话 则重置
  30976. this.downHight = 0;
  30977. this.endDownScrollCall(this);
  30978. }
  30979. this.movetype = 0;
  30980. this.isMoveDown = false;
  30981. } else if (!this.isScrollBody && this.getScrollTop() === this.startTop) {
  30982. // scroll-view到顶/左/右/底的滑动事件
  30983. var isScrollUp = this.getPoint(e).y - this.startPoint.y < 0; // 和起点比,移动的距离,大于0向下拉,小于0向上拉
  30984. // 上滑
  30985. if (isScrollUp) {
  30986. // 需检查滑动的角度
  30987. var angle = this.getAngle(this.getPoint(e), this.startPoint); // 两点之间的角度,区间 [0,90]
  30988. if (angle > 80) {
  30989. // 检查并触发上拉
  30990. this.triggerUpScroll(true);
  30991. }
  30992. }
  30993. }
  30994. };
  30995. /* 根据点击滑动事件获取第一个手指的坐标 */
  30996. MeScroll.prototype.getPoint = function (e) {
  30997. if (!e) {
  30998. return {
  30999. x: 0,
  31000. y: 0
  31001. };
  31002. }
  31003. if (e.touches && e.touches[0]) {
  31004. return {
  31005. x: e.touches[0].pageX,
  31006. y: e.touches[0].pageY
  31007. };
  31008. } else if (e.changedTouches && e.changedTouches[0]) {
  31009. return {
  31010. x: e.changedTouches[0].pageX,
  31011. y: e.changedTouches[0].pageY
  31012. };
  31013. } else {
  31014. return {
  31015. x: e.clientX,
  31016. y: e.clientY
  31017. };
  31018. }
  31019. };
  31020. /* 计算两点之间的角度: 区间 [0,90]*/
  31021. MeScroll.prototype.getAngle = function (p1, p2) {
  31022. var x = Math.abs(p1.x - p2.x);
  31023. var y = Math.abs(p1.y - p2.y);
  31024. var z = Math.sqrt(x * x + y * y);
  31025. var angle = 0;
  31026. if (z !== 0) {
  31027. angle = Math.asin(y / z) / Math.PI * 180;
  31028. }
  31029. return angle;
  31030. };
  31031. /* 触发下拉刷新 */
  31032. MeScroll.prototype.triggerDownScroll = function () {
  31033. if (this.optDown.beforeLoading && this.optDown.beforeLoading(this)) {
  31034. //return true则处于完全自定义状态
  31035. } else {
  31036. this.showDownScroll(); // 下拉刷新中...
  31037. !this.optDown.native && this.optDown.callback && this.optDown.callback(this); // 执行回调,联网加载数据
  31038. }
  31039. };
  31040. /* 显示下拉进度布局 */
  31041. MeScroll.prototype.showDownScroll = function () {
  31042. this.isDownScrolling = true; // 标记下拉中
  31043. if (this.optDown.native) {
  31044. uni.startPullDownRefresh(); // 系统自带的下拉刷新
  31045. this.showDownLoadingCall(0); // 仍触发showLoading,因为上拉加载用到
  31046. } else {
  31047. this.downHight = this.optDown.offset; // 更新下拉区域高度
  31048. this.showDownLoadingCall(this.downHight); // 下拉刷新中...
  31049. }
  31050. };
  31051. MeScroll.prototype.showDownLoadingCall = function (downHight) {
  31052. this.optDown.showLoading && this.optDown.showLoading(this, downHight); // 下拉刷新中...
  31053. this.optDown.afterLoading && this.optDown.afterLoading(this, downHight); // 下拉刷新中...触发之后马上要执行的代码
  31054. };
  31055. /* 显示系统自带的下拉刷新时需要处理的业务 */
  31056. MeScroll.prototype.onPullDownRefresh = function () {
  31057. this.isDownScrolling = true; // 标记下拉中
  31058. this.showDownLoadingCall(0); // 仍触发showLoading,因为上拉加载用到
  31059. this.optDown.callback && this.optDown.callback(this); // 执行回调,联网加载数据
  31060. };
  31061. /* 结束下拉刷新 */
  31062. MeScroll.prototype.endDownScroll = function () {
  31063. if (this.optDown.native) {
  31064. // 结束原生下拉刷新
  31065. this.isDownScrolling = false;
  31066. this.endDownScrollCall(this);
  31067. uni.stopPullDownRefresh();
  31068. return;
  31069. }
  31070. var me = this;
  31071. // 结束下拉刷新的方法
  31072. var endScroll = function endScroll() {
  31073. me.downHight = 0;
  31074. me.isDownScrolling = false;
  31075. me.endDownScrollCall(me);
  31076. if (!me.isScrollBody) {
  31077. me.setScrollHeight(0); // scroll-view重置滚动区域,使数据不满屏时仍可检查触发翻页
  31078. me.scrollTo(0, 0); // scroll-view需重置滚动条到顶部,避免startTop大于0时,对下拉刷新的影响
  31079. }
  31080. };
  31081. // 结束下拉刷新时的回调
  31082. var delay = 0;
  31083. if (me.optDown.beforeEndDownScroll) {
  31084. delay = me.optDown.beforeEndDownScroll(me); // 结束下拉刷新的延时,单位ms
  31085. if (me.isDownEndSuccess == null) delay = 0; // 没有执行加载中,则不延时
  31086. }
  31087. if (typeof delay === 'number' && delay > 0) {
  31088. setTimeout(endScroll, delay);
  31089. } else {
  31090. endScroll();
  31091. }
  31092. };
  31093. MeScroll.prototype.endDownScrollCall = function () {
  31094. this.optDown.endDownScroll && this.optDown.endDownScroll(this);
  31095. this.optDown.afterEndDownScroll && this.optDown.afterEndDownScroll(this);
  31096. };
  31097. /* 锁定下拉刷新:isLock=ture,null锁定;isLock=false解锁 */
  31098. MeScroll.prototype.lockDownScroll = function (isLock) {
  31099. if (isLock == null) isLock = true;
  31100. this.optDown.isLock = isLock;
  31101. };
  31102. /* 锁定上拉加载:isLock=ture,null锁定;isLock=false解锁 */
  31103. MeScroll.prototype.lockUpScroll = function (isLock) {
  31104. if (isLock == null) isLock = true;
  31105. this.optUp.isLock = isLock;
  31106. };
  31107. /* -------初始化上拉加载------- */
  31108. MeScroll.prototype.initUpScroll = function () {
  31109. var me = this;
  31110. // 配置参数
  31111. me.optUp = me.options.up || {
  31112. use: false
  31113. };
  31114. if (!me.optUp.textColor && me.hasColor(me.optUp.bgColor)) me.optUp.textColor = "#fff"; // 当bgColor有值且textColor未设置,则textColor默认白色
  31115. me.extendUpScroll(me.optUp);
  31116. if (me.optUp.use === false) return; // 配置不使用上拉加载时,则不初始化上拉布局
  31117. me.optUp.hasNext = true; // 如果使用上拉,则默认有下一页
  31118. me.startNum = me.optUp.page.num + 1; // 记录page开始的页码
  31119. // 初始化完毕的回调
  31120. if (me.optUp.inited) {
  31121. setTimeout(function () {
  31122. // 待主线程执行完毕再执行,避免new MeScroll未初始化,在回调获取不到mescroll的实例
  31123. me.optUp.inited(me);
  31124. }, 0);
  31125. }
  31126. };
  31127. /*滚动到底部的事件 (仅mescroll-body生效)*/
  31128. MeScroll.prototype.onReachBottom = function () {
  31129. if (this.isScrollBody && !this.isUpScrolling) {
  31130. // 只能支持下拉刷新的时候同时可以触发上拉加载,否则滚动到底部就需要上滑一点才能触发onReachBottom
  31131. if (!this.optUp.isLock && this.optUp.hasNext) {
  31132. this.triggerUpScroll();
  31133. }
  31134. }
  31135. };
  31136. /*列表滚动事件 (仅mescroll-body生效)*/
  31137. MeScroll.prototype.onPageScroll = function (e) {
  31138. if (!this.isScrollBody) return;
  31139. // 更新滚动条的位置 (主要用于判断下拉刷新时,滚动条是否在顶部)
  31140. this.setScrollTop(e.scrollTop);
  31141. // 顶部按钮的显示隐藏
  31142. if (e.scrollTop >= this.optUp.toTop.offset) {
  31143. this.showTopBtn();
  31144. } else {
  31145. this.hideTopBtn();
  31146. }
  31147. };
  31148. /*列表滚动事件*/
  31149. MeScroll.prototype.scroll = function (e, onScroll) {
  31150. // 更新滚动条的位置
  31151. this.setScrollTop(e.scrollTop);
  31152. // 更新滚动内容高度
  31153. this.setScrollHeight(e.scrollHeight);
  31154. // 向上滑还是向下滑动
  31155. if (this.preScrollY == null) this.preScrollY = 0;
  31156. this.isScrollUp = e.scrollTop - this.preScrollY > 0;
  31157. this.preScrollY = e.scrollTop;
  31158. // 上滑 && 检查并触发上拉
  31159. this.isScrollUp && this.triggerUpScroll(true);
  31160. // 顶部按钮的显示隐藏
  31161. if (e.scrollTop >= this.optUp.toTop.offset) {
  31162. this.showTopBtn();
  31163. } else {
  31164. this.hideTopBtn();
  31165. }
  31166. // 滑动监听
  31167. this.optUp.onScroll && onScroll && onScroll();
  31168. };
  31169. /* 触发上拉加载 */
  31170. MeScroll.prototype.triggerUpScroll = function (isCheck) {
  31171. if (!this.isUpScrolling && this.optUp.use && this.optUp.callback) {
  31172. // 是否校验在底部; 默认不校验
  31173. if (isCheck === true) {
  31174. var canUp = false;
  31175. // 还有下一页 && 没有锁定 && 不在下拉中
  31176. if (this.optUp.hasNext && !this.optUp.isLock && !this.isDownScrolling) {
  31177. if (this.getScrollBottom() <= this.optUp.offset) {
  31178. // 到底部
  31179. canUp = true; // 标记可上拉
  31180. }
  31181. }
  31182. if (canUp === false) return;
  31183. }
  31184. this.showUpScroll(); // 上拉加载中...
  31185. this.optUp.page.num++; // 预先加一页,如果失败则减回
  31186. this.isUpAutoLoad = true; // 标记上拉已经自动执行过,避免初始化时多次触发上拉回调
  31187. this.num = this.optUp.page.num; // 把最新的页数赋值在mescroll上,避免对page的影响
  31188. this.size = this.optUp.page.size; // 把最新的页码赋值在mescroll上,避免对page的影响
  31189. this.time = this.optUp.page.time; // 把最新的页码赋值在mescroll上,避免对page的影响
  31190. this.optUp.callback(this); // 执行回调,联网加载数据
  31191. }
  31192. };
  31193. /* 显示上拉加载中 */
  31194. MeScroll.prototype.showUpScroll = function () {
  31195. this.isUpScrolling = true; // 标记上拉加载中
  31196. this.optUp.showLoading && this.optUp.showLoading(this); // 回调
  31197. };
  31198. /* 显示上拉无更多数据 */
  31199. MeScroll.prototype.showNoMore = function () {
  31200. this.optUp.hasNext = false; // 标记无更多数据
  31201. this.optUp.showNoMore && this.optUp.showNoMore(this); // 回调
  31202. };
  31203. /* 隐藏上拉区域**/
  31204. MeScroll.prototype.hideUpScroll = function () {
  31205. this.optUp.hideUpScroll && this.optUp.hideUpScroll(this); // 回调
  31206. };
  31207. /* 结束上拉加载 */
  31208. MeScroll.prototype.endUpScroll = function (isShowNoMore) {
  31209. if (isShowNoMore != null) {
  31210. // isShowNoMore=null,不处理下拉状态,下拉刷新的时候调用
  31211. if (isShowNoMore) {
  31212. this.showNoMore(); // isShowNoMore=true,显示无更多数据
  31213. } else {
  31214. this.hideUpScroll(); // isShowNoMore=false,隐藏上拉加载
  31215. }
  31216. }
  31217. this.isUpScrolling = false; // 标记结束上拉加载
  31218. };
  31219. /* 重置上拉加载列表为第一页
  31220. *isShowLoading 是否显示进度布局;
  31221. * 1.默认null,不传参,则显示上拉加载的进度布局
  31222. * 2.传参true, 则显示下拉刷新的进度布局
  31223. * 3.传参false,则不显示上拉和下拉的进度 (常用于静默更新列表数据)
  31224. */
  31225. MeScroll.prototype.resetUpScroll = function (isShowLoading) {
  31226. if (this.optUp && this.optUp.use) {
  31227. var page = this.optUp.page;
  31228. this.prePageNum = page.num; // 缓存重置前的页码,加载失败可退回
  31229. this.prePageTime = page.time; // 缓存重置前的时间,加载失败可退回
  31230. page.num = this.startNum; // 重置为第一页
  31231. page.time = null; // 重置时间为空
  31232. if (!this.isDownScrolling && isShowLoading !== false) {
  31233. // 如果不是下拉刷新触发的resetUpScroll并且不配置列表静默更新,则显示进度;
  31234. if (isShowLoading == null) {
  31235. this.removeEmpty(); // 移除空布局
  31236. this.showUpScroll(); // 不传参,默认显示上拉加载的进度布局
  31237. } else {
  31238. this.showDownScroll(); // 传true,显示下拉刷新的进度布局,不清空列表
  31239. }
  31240. }
  31241. this.isUpAutoLoad = true; // 标记上拉已经自动执行过,避免初始化时多次触发上拉回调
  31242. this.num = page.num; // 把最新的页数赋值在mescroll上,避免对page的影响
  31243. this.size = page.size; // 把最新的页码赋值在mescroll上,避免对page的影响
  31244. this.time = page.time; // 把最新的页码赋值在mescroll上,避免对page的影响
  31245. this.optUp.callback && this.optUp.callback(this); // 执行上拉回调
  31246. }
  31247. };
  31248. /* 设置page.num的值 */
  31249. MeScroll.prototype.setPageNum = function (num) {
  31250. this.optUp.page.num = num - 1;
  31251. };
  31252. /* 设置page.size的值 */
  31253. MeScroll.prototype.setPageSize = function (size) {
  31254. this.optUp.page.size = size;
  31255. };
  31256. /* 联网回调成功,结束下拉刷新和上拉加载
  31257. * dataSize: 当前页的数据量(必传)
  31258. * totalPage: 总页数(必传)
  31259. * systime: 服务器时间 (可空)
  31260. */
  31261. MeScroll.prototype.endByPage = function (dataSize, totalPage, systime) {
  31262. var hasNext;
  31263. if (this.optUp.use && totalPage != null) hasNext = this.optUp.page.num < totalPage; // 是否还有下一页
  31264. this.endSuccess(dataSize, hasNext, systime);
  31265. };
  31266. /* 联网回调成功,结束下拉刷新和上拉加载
  31267. * dataSize: 当前页的数据量(必传)
  31268. * totalSize: 列表所有数据总数量(必传)
  31269. * systime: 服务器时间 (可空)
  31270. */
  31271. MeScroll.prototype.endBySize = function (dataSize, totalSize, systime) {
  31272. var hasNext;
  31273. if (this.optUp.use && totalSize != null) {
  31274. var loadSize = (this.optUp.page.num - 1) * this.optUp.page.size + dataSize; // 已加载的数据总数
  31275. hasNext = loadSize < totalSize; // 是否还有下一页
  31276. }
  31277. this.endSuccess(dataSize, hasNext, systime);
  31278. };
  31279. /* 联网回调成功,结束下拉刷新和上拉加载
  31280. * dataSize: 当前页的数据个数(不是所有页的数据总和),用于上拉加载判断是否还有下一页.如果不传,则会判断还有下一页
  31281. * hasNext: 是否还有下一页,布尔类型;用来解决这个小问题:比如列表共有20条数据,每页加载10条,共2页.如果只根据dataSize判断,则需翻到第三页才会知道无更多数据,如果传了hasNext,则翻到第二页即可显示无更多数据.
  31282. * systime: 服务器时间(可空);用来解决这个小问题:当准备翻下一页时,数据库新增了几条记录,此时翻下一页,前面的几条数据会和上一页的重复;这里传入了systime,那么upCallback的page.time就会有值,把page.time传给服务器,让后台过滤新加入的那几条记录
  31283. */
  31284. MeScroll.prototype.endSuccess = function (dataSize, hasNext, systime) {
  31285. var me = this;
  31286. // 结束下拉刷新
  31287. if (me.isDownScrolling) {
  31288. me.isDownEndSuccess = true;
  31289. me.endDownScroll();
  31290. }
  31291. // 结束上拉加载
  31292. if (me.optUp.use) {
  31293. var isShowNoMore; // 是否已无更多数据
  31294. if (dataSize != null) {
  31295. var pageNum = me.optUp.page.num; // 当前页码
  31296. var pageSize = me.optUp.page.size; // 每页长度
  31297. // 如果是第一页
  31298. if (pageNum === 1) {
  31299. if (systime) me.optUp.page.time = systime; // 设置加载列表数据第一页的时间
  31300. }
  31301. if (dataSize < pageSize || hasNext === false) {
  31302. // 返回的数据不满一页时,则说明已无更多数据
  31303. me.optUp.hasNext = false;
  31304. if (dataSize === 0 && pageNum === 1) {
  31305. // 如果第一页无任何数据且配置了空布局
  31306. isShowNoMore = false;
  31307. me.showEmpty();
  31308. } else {
  31309. // 总列表数少于配置的数量,则不显示无更多数据
  31310. var allDataSize = (pageNum - 1) * pageSize + dataSize;
  31311. if (allDataSize < me.optUp.noMoreSize) {
  31312. isShowNoMore = false;
  31313. } else {
  31314. isShowNoMore = true;
  31315. }
  31316. me.removeEmpty(); // 移除空布局
  31317. }
  31318. } else {
  31319. // 还有下一页
  31320. isShowNoMore = false;
  31321. me.optUp.hasNext = true;
  31322. me.removeEmpty(); // 移除空布局
  31323. }
  31324. }
  31325. // 隐藏上拉
  31326. me.endUpScroll(isShowNoMore);
  31327. }
  31328. };
  31329. /* 回调失败,结束下拉刷新和上拉加载 */
  31330. MeScroll.prototype.endErr = function (errDistance) {
  31331. // 结束下拉,回调失败重置回原来的页码和时间
  31332. if (this.isDownScrolling) {
  31333. this.isDownEndSuccess = false;
  31334. var page = this.optUp.page;
  31335. if (page && this.prePageNum) {
  31336. page.num = this.prePageNum;
  31337. page.time = this.prePageTime;
  31338. }
  31339. this.endDownScroll();
  31340. }
  31341. // 结束上拉,回调失败重置回原来的页码
  31342. if (this.isUpScrolling) {
  31343. this.optUp.page.num--;
  31344. this.endUpScroll(false);
  31345. // 如果是mescroll-body,则需往回滚一定距离
  31346. if (this.isScrollBody && errDistance !== 0) {
  31347. // 不处理0
  31348. if (!errDistance) errDistance = this.optUp.errDistance; // 不传,则取默认
  31349. this.scrollTo(this.getScrollTop() - errDistance, 0); // 往上回滚的距离
  31350. }
  31351. }
  31352. };
  31353. /* 显示空布局 */
  31354. MeScroll.prototype.showEmpty = function () {
  31355. this.optUp.empty.use && this.optUp.empty.onShow && this.optUp.empty.onShow(true);
  31356. };
  31357. /* 移除空布局 */
  31358. MeScroll.prototype.removeEmpty = function () {
  31359. this.optUp.empty.use && this.optUp.empty.onShow && this.optUp.empty.onShow(false);
  31360. };
  31361. /* 显示回到顶部的按钮 */
  31362. MeScroll.prototype.showTopBtn = function () {
  31363. if (!this.topBtnShow) {
  31364. this.topBtnShow = true;
  31365. this.optUp.toTop.onShow && this.optUp.toTop.onShow(true);
  31366. }
  31367. };
  31368. /* 隐藏回到顶部的按钮 */
  31369. MeScroll.prototype.hideTopBtn = function () {
  31370. if (this.topBtnShow) {
  31371. this.topBtnShow = false;
  31372. this.optUp.toTop.onShow && this.optUp.toTop.onShow(false);
  31373. }
  31374. };
  31375. /* 获取滚动条的位置 */
  31376. MeScroll.prototype.getScrollTop = function () {
  31377. return this.scrollTop || 0;
  31378. };
  31379. /* 记录滚动条的位置 */
  31380. MeScroll.prototype.setScrollTop = function (y) {
  31381. this.scrollTop = y;
  31382. };
  31383. /* 滚动到指定位置 */
  31384. MeScroll.prototype.scrollTo = function (y, t) {
  31385. this.myScrollTo && this.myScrollTo(y, t); // scrollview需自定义回到顶部方法
  31386. };
  31387. /* 自定义scrollTo */
  31388. MeScroll.prototype.resetScrollTo = function (myScrollTo) {
  31389. this.myScrollTo = myScrollTo;
  31390. };
  31391. /* 滚动条到底部的距离 */
  31392. MeScroll.prototype.getScrollBottom = function () {
  31393. return this.getScrollHeight() - this.getClientHeight() - this.getScrollTop();
  31394. };
  31395. /* 计步器
  31396. star: 开始值
  31397. end: 结束值
  31398. callback(step,timer): 回调step值,计步器timer,可自行通过window.clearInterval(timer)结束计步器;
  31399. t: 计步时长,传0则直接回调end值;不传则默认300ms
  31400. rate: 周期;不传则默认30ms计步一次
  31401. * */
  31402. MeScroll.prototype.getStep = function (star, end, callback, t, rate) {
  31403. var diff = end - star; // 差值
  31404. if (t === 0 || diff === 0) {
  31405. callback && callback(end);
  31406. return;
  31407. }
  31408. t = t || 300; // 时长 300ms
  31409. rate = rate || 30; // 周期 30ms
  31410. var count = t / rate; // 次数
  31411. var step = diff / count; // 步长
  31412. var i = 0; // 计数
  31413. var timer = setInterval(function () {
  31414. if (i < count - 1) {
  31415. star += step;
  31416. callback && callback(star, timer);
  31417. i++;
  31418. } else {
  31419. callback && callback(end, timer); // 最后一次直接设置end,避免计算误差
  31420. clearInterval(timer);
  31421. }
  31422. }, rate);
  31423. };
  31424. /* 滚动容器的高度 */
  31425. MeScroll.prototype.getClientHeight = function (isReal) {
  31426. var h = this.clientHeight || 0;
  31427. if (h === 0 && isReal !== true) {
  31428. // 未获取到容器的高度,可临时取body的高度 (可能会有误差)
  31429. h = this.getBodyHeight();
  31430. }
  31431. return h;
  31432. };
  31433. MeScroll.prototype.setClientHeight = function (h) {
  31434. this.clientHeight = h;
  31435. };
  31436. /* 滚动内容的高度 */
  31437. MeScroll.prototype.getScrollHeight = function () {
  31438. return this.scrollHeight || 0;
  31439. };
  31440. MeScroll.prototype.setScrollHeight = function (h) {
  31441. this.scrollHeight = h;
  31442. };
  31443. /* body的高度 */
  31444. MeScroll.prototype.getBodyHeight = function () {
  31445. return this.bodyHeight || 0;
  31446. };
  31447. MeScroll.prototype.setBodyHeight = function (h) {
  31448. this.bodyHeight = h;
  31449. };
  31450. /* 阻止浏览器默认滚动事件 */
  31451. MeScroll.prototype.preventDefault = function (e) {
  31452. // 小程序不支持e.preventDefault, 已在wxs中禁止
  31453. // app的bounce只能通过配置pages.json的style.app-plus.bounce为"none"来禁止, 或使用renderjs禁止
  31454. // cancelable:是否可以被禁用; defaultPrevented:是否已经被禁用
  31455. if (e && e.cancelable && !e.defaultPrevented) e.preventDefault();
  31456. };
  31457. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  31458. /***/ }),
  31459. /***/ 888:
  31460. /*!***********************************************************************!*\
  31461. !*** D:/工作/项目2/华畦/xcw/components/mescroll-uni/mescroll-uni-option.js ***!
  31462. \***********************************************************************/
  31463. /*! no static exports found */
  31464. /***/ (function(module, exports, __webpack_require__) {
  31465. "use strict";
  31466. Object.defineProperty(exports, "__esModule", {
  31467. value: true
  31468. });
  31469. exports.default = void 0;
  31470. // 全局配置
  31471. // mescroll-body 和 mescroll-uni 通用
  31472. var GlobalOption = {
  31473. down: {
  31474. // 其他down的配置参数也可以写,这里只展示了常用的配置:
  31475. textInOffset: '下拉刷新',
  31476. // 下拉的距离在offset范围内的提示文本
  31477. textOutOffset: '释放更新',
  31478. // 下拉的距离大于offset范围的提示文本
  31479. textLoading: '加载中 ...',
  31480. // 加载中的提示文本
  31481. textSuccess: '加载成功',
  31482. // 加载成功的文本
  31483. textErr: '加载失败',
  31484. // 加载失败的文本
  31485. beforeEndDelay: 100,
  31486. // 延时结束的时长 (显示加载成功/失败的时长)
  31487. offset: 80,
  31488. // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
  31489. native: false // 是否使用系统自带的下拉刷新; 默认false; 仅在mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  31490. },
  31491. up: {
  31492. // 其他up的配置参数也可以写,这里只展示了常用的配置:
  31493. textLoading: '加载中 ...',
  31494. // 加载中的提示文本
  31495. textNoMore: '没有更多了~',
  31496. // 没有更多数据的提示文本
  31497. offset: 150,
  31498. // 距底部多远时,触发upCallback,仅mescroll-uni生效 ( mescroll-body配置的是pages.json的 onReachBottomDistance )
  31499. toTop: {
  31500. // 回到顶部按钮,需配置src才显示
  31501. src: "https://www.mescroll.com/img/mescroll-totop.png",
  31502. // 图片路径 (建议放入static目录, 如 /static/img/mescroll-totop.png )
  31503. offset: 1000,
  31504. // 列表滚动多少距离才显示回到顶部按钮,默认1000px
  31505. right: 20,
  31506. // 到右边的距离, 默认20 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  31507. bottom: 100,
  31508. // 到底部的距离, 默认120 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  31509. width: 84 // 回到顶部图标的宽度, 默认72 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
  31510. },
  31511. empty: {
  31512. use: true,
  31513. // 是否显示空布局
  31514. icon: "https://www.mescroll.com/img/mescroll-empty.png",
  31515. // 图标路径 (建议放入static目录, 如 /static/img/mescroll-empty.png )
  31516. tip: '空空如也' // 提示
  31517. }
  31518. }
  31519. };
  31520. var _default = GlobalOption;
  31521. exports.default = _default;
  31522. /***/ }),
  31523. /***/ 889:
  31524. /*!**************************************************************!*\
  31525. !*** D:/工作/项目2/华畦/xcw/components/mescroll-uni/wxs/mixins.js ***!
  31526. \**************************************************************/
  31527. /*! no static exports found */
  31528. /***/ (function(module, exports, __webpack_require__) {
  31529. "use strict";
  31530. Object.defineProperty(exports, "__esModule", {
  31531. value: true
  31532. });
  31533. exports.default = void 0;
  31534. // 定义在wxs (含renderjs) 逻辑层的数据和方法, 与视图层相互通信
  31535. var WxsMixin = {
  31536. data: function data() {
  31537. return {
  31538. // 传入wxs视图层的数据 (响应式)
  31539. wxsProp: {
  31540. optDown: {},
  31541. // 下拉刷新的配置
  31542. scrollTop: 0,
  31543. // 滚动条的距离
  31544. bodyHeight: 0,
  31545. // body的高度
  31546. isDownScrolling: false,
  31547. // 是否正在下拉刷新中
  31548. isUpScrolling: false,
  31549. // 是否正在上拉加载中
  31550. isScrollBody: true,
  31551. // 是否为mescroll-body滚动
  31552. isUpBoth: true,
  31553. // 上拉加载时,是否同时可以下拉刷新
  31554. t: 0 // 数据更新的标记 (只有数据更新了,才会触发wxs的Observer)
  31555. },
  31556. // 标记调用wxs视图层的方法
  31557. callProp: {
  31558. callType: '',
  31559. // 方法名
  31560. t: 0 // 数据更新的标记 (只有数据更新了,才会触发wxs的Observer)
  31561. },
  31562. // 不用wxs的平台使用此处的wxsBiz对象,抹平wxs的写法 (微信小程序和APP使用的wxsBiz对象是./wxs/wxs.wxs)
  31563. // 不用renderjs的平台使用此处的renderBiz对象,抹平renderjs的写法 (app 和 h5 使用的renderBiz对象是./wxs/renderjs.js)
  31564. renderBiz: {
  31565. propObserver: function propObserver() {} // 抹平renderjs的写法
  31566. }
  31567. };
  31568. },
  31569. methods: {
  31570. // wxs视图层调用逻辑层的回调
  31571. wxsCall: function wxsCall(msg) {
  31572. if (msg.type === 'setWxsProp') {
  31573. // 更新wxsProp数据 (值改变才触发更新)
  31574. this.wxsProp = {
  31575. optDown: this.mescroll.optDown,
  31576. scrollTop: this.mescroll.getScrollTop(),
  31577. bodyHeight: this.mescroll.getBodyHeight(),
  31578. isDownScrolling: this.mescroll.isDownScrolling,
  31579. isUpScrolling: this.mescroll.isUpScrolling,
  31580. isUpBoth: this.mescroll.optUp.isBoth,
  31581. isScrollBody: this.mescroll.isScrollBody,
  31582. t: Date.now()
  31583. };
  31584. } else if (msg.type === 'setLoadType') {
  31585. // 设置inOffset,outOffset的状态
  31586. this.downLoadType = msg.downLoadType;
  31587. // 状态挂载到mescroll对象, 以便在其他组件中使用, 比如<me-video>中
  31588. this.$set(this.mescroll, 'downLoadType', this.downLoadType);
  31589. // 重置是否加载成功的状态
  31590. this.$set(this.mescroll, 'isDownEndSuccess', null);
  31591. } else if (msg.type === 'triggerDownScroll') {
  31592. // 主动触发下拉刷新
  31593. this.mescroll.triggerDownScroll();
  31594. } else if (msg.type === 'endDownScroll') {
  31595. // 结束下拉刷新
  31596. this.mescroll.endDownScroll();
  31597. } else if (msg.type === 'triggerUpScroll') {
  31598. // 主动触发上拉加载
  31599. this.mescroll.triggerUpScroll(true);
  31600. }
  31601. }
  31602. },
  31603. mounted: function mounted() {
  31604. var _this = this;
  31605. // 配置主动触发wxs显示加载进度的回调
  31606. this.mescroll.optDown.afterLoading = function () {
  31607. _this.callProp = {
  31608. callType: "showLoading",
  31609. t: Date.now()
  31610. }; // 触发wxs的方法 (值改变才触发更新)
  31611. };
  31612. // 配置主动触发wxs隐藏加载进度的回调
  31613. this.mescroll.optDown.afterEndDownScroll = function () {
  31614. _this.callProp = {
  31615. callType: "endDownScroll",
  31616. t: Date.now()
  31617. }; // 触发wxs的方法 (值改变才触发更新)
  31618. var delay = 300 + (_this.mescroll.optDown.beforeEndDelay || 0);
  31619. setTimeout(function () {
  31620. if (_this.downLoadType === 4 || _this.downLoadType === 0) {
  31621. _this.callProp = {
  31622. callType: "clearTransform",
  31623. t: Date.now()
  31624. }; // 触发wxs的方法 (值改变才触发更新)
  31625. }
  31626. // 状态挂载到mescroll对象, 以便在其他组件中使用, 比如<me-video>中
  31627. _this.$set(_this.mescroll, 'downLoadType', _this.downLoadType);
  31628. }, delay);
  31629. };
  31630. // 初始化wxs的数据
  31631. this.wxsCall({
  31632. type: 'setWxsProp'
  31633. });
  31634. }
  31635. };
  31636. var _default = WxsMixin;
  31637. exports.default = _default;
  31638. /***/ }),
  31639. /***/ 9:
  31640. /*!*****************************************************************!*\
  31641. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  31642. \*****************************************************************/
  31643. /*! no static exports found */
  31644. /***/ (function(module, exports) {
  31645. function _arrayLikeToArray(arr, len) {
  31646. if (len == null || len > arr.length) len = arr.length;
  31647. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  31648. arr2[i] = arr[i];
  31649. }
  31650. return arr2;
  31651. }
  31652. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  31653. /***/ }),
  31654. /***/ 92:
  31655. /*!************************************************************************!*\
  31656. !*** D:/工作/项目2/华畦/xcw/components/mescroll-uni/mixins/mescroll-comp.js ***!
  31657. \************************************************************************/
  31658. /*! no static exports found */
  31659. /***/ (function(module, exports, __webpack_require__) {
  31660. "use strict";
  31661. Object.defineProperty(exports, "__esModule", {
  31662. value: true
  31663. });
  31664. exports.default = void 0;
  31665. /**
  31666. * mescroll-body写在子组件时,需通过mescroll的mixins补充子组件缺少的生命周期
  31667. */
  31668. var MescrollCompMixin = {
  31669. // 因为子组件无onPageScroll和onReachBottom的页面生命周期,需在页面传递进到子组件 (一级)
  31670. onPageScroll: function onPageScroll(e) {
  31671. this.handlePageScroll(e);
  31672. },
  31673. onReachBottom: function onReachBottom() {
  31674. this.handleReachBottom();
  31675. },
  31676. // 当down的native: true时, 还需传递此方法进到子组件
  31677. onPullDownRefresh: function onPullDownRefresh() {
  31678. this.handlePullDownRefresh();
  31679. },
  31680. // mescroll-body写在子子子...组件的情况 (多级)
  31681. data: function data() {
  31682. var _this = this;
  31683. return {
  31684. mescroll: {
  31685. onPageScroll: function onPageScroll(e) {
  31686. _this.handlePageScroll(e);
  31687. },
  31688. onReachBottom: function onReachBottom() {
  31689. _this.handleReachBottom();
  31690. },
  31691. onPullDownRefresh: function onPullDownRefresh() {
  31692. _this.handlePullDownRefresh();
  31693. }
  31694. }
  31695. };
  31696. },
  31697. methods: {
  31698. handlePageScroll: function handlePageScroll(e) {
  31699. var item = this.$refs["mescrollItem"];
  31700. if (item && item.mescroll) item.mescroll.onPageScroll(e);
  31701. },
  31702. handleReachBottom: function handleReachBottom() {
  31703. var item = this.$refs["mescrollItem"];
  31704. if (item && item.mescroll) item.mescroll.onReachBottom();
  31705. },
  31706. handlePullDownRefresh: function handlePullDownRefresh() {
  31707. var item = this.$refs["mescrollItem"];
  31708. if (item && item.mescroll) item.mescroll.onPullDownRefresh();
  31709. }
  31710. }
  31711. };
  31712. var _default = MescrollCompMixin;
  31713. exports.default = _default;
  31714. /***/ }),
  31715. /***/ 93:
  31716. /*!*******************************************************************!*\
  31717. !*** D:/工作/项目2/华畦/xcw/components/mescroll-uni/mescroll-mixins.js ***!
  31718. \*******************************************************************/
  31719. /*! no static exports found */
  31720. /***/ (function(module, exports, __webpack_require__) {
  31721. "use strict";
  31722. Object.defineProperty(exports, "__esModule", {
  31723. value: true
  31724. });
  31725. exports.default = void 0;
  31726. // mescroll-body 和 mescroll-uni 通用
  31727. // import MescrollUni from "./mescroll-uni.vue";
  31728. // import MescrollBody from "./mescroll-body.vue";
  31729. var MescrollMixin = {
  31730. // components: { // 非H5端无法通过mixin注册组件, 只能在main.js中注册全局组件或具体界面中注册
  31731. // MescrollUni,
  31732. // MescrollBody
  31733. // },
  31734. data: function data() {
  31735. return {
  31736. mescroll: null //mescroll实例对象
  31737. };
  31738. },
  31739. // 注册系统自带的下拉刷新 (配置down.native为true时生效, 还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
  31740. onPullDownRefresh: function onPullDownRefresh() {
  31741. this.mescroll && this.mescroll.onPullDownRefresh();
  31742. },
  31743. // 注册列表滚动事件,用于判定在顶部可下拉刷新,在指定位置可显示隐藏回到顶部按钮 (此方法为页面生命周期,无法在子组件中触发, 仅在mescroll-body生效)
  31744. onPageScroll: function onPageScroll(e) {
  31745. this.mescroll && this.mescroll.onPageScroll(e);
  31746. },
  31747. // 注册滚动到底部的事件,用于上拉加载 (此方法为页面生命周期,无法在子组件中触发, 仅在mescroll-body生效)
  31748. onReachBottom: function onReachBottom() {
  31749. this.mescroll && this.mescroll.onReachBottom();
  31750. },
  31751. methods: {
  31752. // mescroll组件初始化的回调,可获取到mescroll对象
  31753. mescrollInit: function mescrollInit(mescroll) {
  31754. console.log(mescroll);
  31755. this.mescroll = mescroll;
  31756. this.mescrollInitByRef(); // 兼容字节跳动小程序
  31757. },
  31758. // 以ref的方式初始化mescroll对象 (兼容字节跳动小程序)
  31759. mescrollInitByRef: function mescrollInitByRef() {
  31760. if (!this.mescroll || !this.mescroll.resetUpScroll) {
  31761. var mescrollRef = this.$refs.mescrollRef;
  31762. if (mescrollRef) this.mescroll = mescrollRef.mescroll;
  31763. }
  31764. },
  31765. // 下拉刷新的回调 (mixin默认resetUpScroll)
  31766. downCallback: function downCallback() {
  31767. var _this = this;
  31768. if (this.mescroll.optUp.use) {
  31769. this.mescroll.resetUpScroll();
  31770. } else {
  31771. setTimeout(function () {
  31772. _this.mescroll.endSuccess();
  31773. }, 500);
  31774. }
  31775. },
  31776. // 上拉加载的回调
  31777. upCallback: function upCallback() {
  31778. var _this2 = this;
  31779. // mixin默认延时500自动结束加载
  31780. setTimeout(function () {
  31781. _this2.mescroll.endErr();
  31782. }, 500);
  31783. }
  31784. },
  31785. mounted: function mounted() {
  31786. this.mescrollInitByRef(); // 兼容字节跳动小程序, 避免未设置@init或@init此时未能取到ref的情况
  31787. }
  31788. };
  31789. var _default = MescrollMixin;
  31790. exports.default = _default;
  31791. /***/ })
  31792. }]);
  31793. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map