vendor.js 677 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*********************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js ***!
  6. \*********************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", {
  11. value: true
  12. });
  13. exports.default = void 0;
  14. var objectKeys = ['qy', 'env', 'error', 'version', 'lanDebug', 'cloud', 'serviceMarket', 'router', 'worklet', '__webpack_require_UNI_MP_PLUGIN__'];
  15. var singlePageDisableKey = ['lanDebug', 'router', 'worklet'];
  16. var target = typeof globalThis !== 'undefined' ? globalThis : function () {
  17. return this;
  18. }();
  19. var key = ['w', 'x'].join('');
  20. var oldWx = target[key];
  21. var launchOption = oldWx.getLaunchOptionsSync ? oldWx.getLaunchOptionsSync() : null;
  22. function isWxKey(key) {
  23. if (launchOption && launchOption.scene === 1154 && singlePageDisableKey.includes(key)) {
  24. return false;
  25. }
  26. return objectKeys.indexOf(key) > -1 || typeof oldWx[key] === 'function';
  27. }
  28. function initWx() {
  29. var newWx = {};
  30. for (var _key in oldWx) {
  31. if (isWxKey(_key)) {
  32. // TODO wrapper function
  33. newWx[_key] = oldWx[_key];
  34. }
  35. }
  36. return newWx;
  37. }
  38. target[key] = initWx();
  39. var _default = target[key];
  40. exports.default = _default;
  41. /***/ }),
  42. /* 2 */
  43. /*!************************************************************!*\
  44. !*** ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js ***!
  45. \************************************************************/
  46. /*! no static exports found */
  47. /***/ (function(module, exports, __webpack_require__) {
  48. "use strict";
  49. /* WEBPACK VAR INJECTION */(function(wx, global) {
  50. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  51. Object.defineProperty(exports, "__esModule", {
  52. value: true
  53. });
  54. exports.createApp = createApp;
  55. exports.createComponent = createComponent;
  56. exports.createPage = createPage;
  57. exports.createPlugin = createPlugin;
  58. exports.createSubpackageApp = createSubpackageApp;
  59. exports.default = void 0;
  60. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  61. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  62. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 15));
  63. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18));
  64. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  65. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 22);
  66. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
  67. 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; }
  68. 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; }
  69. var realAtob;
  70. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  71. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  72. if (typeof atob !== 'function') {
  73. realAtob = function realAtob(str) {
  74. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  75. if (!b64re.test(str)) {
  76. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  77. }
  78. // Adding the padding if missing, for semplicity
  79. str += '=='.slice(2 - (str.length & 3));
  80. var bitmap;
  81. var result = '';
  82. var r1;
  83. var r2;
  84. var i = 0;
  85. for (; i < str.length;) {
  86. 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++)));
  87. 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);
  88. }
  89. return result;
  90. };
  91. } else {
  92. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  93. realAtob = atob;
  94. }
  95. function b64DecodeUnicode(str) {
  96. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  97. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  98. }).join(''));
  99. }
  100. function getCurrentUserInfo() {
  101. var token = wx.getStorageSync('uni_id_token') || '';
  102. var tokenArr = token.split('.');
  103. if (!token || tokenArr.length !== 3) {
  104. return {
  105. uid: null,
  106. role: [],
  107. permission: [],
  108. tokenExpired: 0
  109. };
  110. }
  111. var userInfo;
  112. try {
  113. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  114. } catch (error) {
  115. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  116. }
  117. userInfo.tokenExpired = userInfo.exp * 1000;
  118. delete userInfo.exp;
  119. delete userInfo.iat;
  120. return userInfo;
  121. }
  122. function uniIdMixin(Vue) {
  123. Vue.prototype.uniIDHasRole = function (roleId) {
  124. var _getCurrentUserInfo = getCurrentUserInfo(),
  125. role = _getCurrentUserInfo.role;
  126. return role.indexOf(roleId) > -1;
  127. };
  128. Vue.prototype.uniIDHasPermission = function (permissionId) {
  129. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  130. permission = _getCurrentUserInfo2.permission;
  131. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  132. };
  133. Vue.prototype.uniIDTokenValid = function () {
  134. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  135. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  136. return tokenExpired > Date.now();
  137. };
  138. }
  139. var _toString = Object.prototype.toString;
  140. var hasOwnProperty = Object.prototype.hasOwnProperty;
  141. function isFn(fn) {
  142. return typeof fn === 'function';
  143. }
  144. function isStr(str) {
  145. return typeof str === 'string';
  146. }
  147. function isObject(obj) {
  148. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  149. }
  150. function isPlainObject(obj) {
  151. return _toString.call(obj) === '[object Object]';
  152. }
  153. function hasOwn(obj, key) {
  154. return hasOwnProperty.call(obj, key);
  155. }
  156. function noop() {}
  157. /**
  158. * Create a cached version of a pure function.
  159. */
  160. function cached(fn) {
  161. var cache = Object.create(null);
  162. return function cachedFn(str) {
  163. var hit = cache[str];
  164. return hit || (cache[str] = fn(str));
  165. };
  166. }
  167. /**
  168. * Camelize a hyphen-delimited string.
  169. */
  170. var camelizeRE = /-(\w)/g;
  171. var camelize = cached(function (str) {
  172. return str.replace(camelizeRE, function (_, c) {
  173. return c ? c.toUpperCase() : '';
  174. });
  175. });
  176. function sortObject(obj) {
  177. var sortObj = {};
  178. if (isPlainObject(obj)) {
  179. Object.keys(obj).sort().forEach(function (key) {
  180. sortObj[key] = obj[key];
  181. });
  182. }
  183. return !Object.keys(sortObj) ? obj : sortObj;
  184. }
  185. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  186. var globalInterceptors = {};
  187. var scopedInterceptors = {};
  188. function mergeHook(parentVal, childVal) {
  189. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  190. return res ? dedupeHooks(res) : res;
  191. }
  192. function dedupeHooks(hooks) {
  193. var res = [];
  194. for (var i = 0; i < hooks.length; i++) {
  195. if (res.indexOf(hooks[i]) === -1) {
  196. res.push(hooks[i]);
  197. }
  198. }
  199. return res;
  200. }
  201. function removeHook(hooks, hook) {
  202. var index = hooks.indexOf(hook);
  203. if (index !== -1) {
  204. hooks.splice(index, 1);
  205. }
  206. }
  207. function mergeInterceptorHook(interceptor, option) {
  208. Object.keys(option).forEach(function (hook) {
  209. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  210. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  211. }
  212. });
  213. }
  214. function removeInterceptorHook(interceptor, option) {
  215. if (!interceptor || !option) {
  216. return;
  217. }
  218. Object.keys(option).forEach(function (hook) {
  219. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  220. removeHook(interceptor[hook], option[hook]);
  221. }
  222. });
  223. }
  224. function addInterceptor(method, option) {
  225. if (typeof method === 'string' && isPlainObject(option)) {
  226. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  227. } else if (isPlainObject(method)) {
  228. mergeInterceptorHook(globalInterceptors, method);
  229. }
  230. }
  231. function removeInterceptor(method, option) {
  232. if (typeof method === 'string') {
  233. if (isPlainObject(option)) {
  234. removeInterceptorHook(scopedInterceptors[method], option);
  235. } else {
  236. delete scopedInterceptors[method];
  237. }
  238. } else if (isPlainObject(method)) {
  239. removeInterceptorHook(globalInterceptors, method);
  240. }
  241. }
  242. function wrapperHook(hook, params) {
  243. return function (data) {
  244. return hook(data, params) || data;
  245. };
  246. }
  247. function isPromise(obj) {
  248. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  249. }
  250. function queue(hooks, data, params) {
  251. var promise = false;
  252. for (var i = 0; i < hooks.length; i++) {
  253. var hook = hooks[i];
  254. if (promise) {
  255. promise = Promise.resolve(wrapperHook(hook, params));
  256. } else {
  257. var res = hook(data, params);
  258. if (isPromise(res)) {
  259. promise = Promise.resolve(res);
  260. }
  261. if (res === false) {
  262. return {
  263. then: function then() {}
  264. };
  265. }
  266. }
  267. }
  268. return promise || {
  269. then: function then(callback) {
  270. return callback(data);
  271. }
  272. };
  273. }
  274. function wrapperOptions(interceptor) {
  275. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  276. ['success', 'fail', 'complete'].forEach(function (name) {
  277. if (Array.isArray(interceptor[name])) {
  278. var oldCallback = options[name];
  279. options[name] = function callbackInterceptor(res) {
  280. queue(interceptor[name], res, options).then(function (res) {
  281. /* eslint-disable no-mixed-operators */
  282. return isFn(oldCallback) && oldCallback(res) || res;
  283. });
  284. };
  285. }
  286. });
  287. return options;
  288. }
  289. function wrapperReturnValue(method, returnValue) {
  290. var returnValueHooks = [];
  291. if (Array.isArray(globalInterceptors.returnValue)) {
  292. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  293. }
  294. var interceptor = scopedInterceptors[method];
  295. if (interceptor && Array.isArray(interceptor.returnValue)) {
  296. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  297. }
  298. returnValueHooks.forEach(function (hook) {
  299. returnValue = hook(returnValue) || returnValue;
  300. });
  301. return returnValue;
  302. }
  303. function getApiInterceptorHooks(method) {
  304. var interceptor = Object.create(null);
  305. Object.keys(globalInterceptors).forEach(function (hook) {
  306. if (hook !== 'returnValue') {
  307. interceptor[hook] = globalInterceptors[hook].slice();
  308. }
  309. });
  310. var scopedInterceptor = scopedInterceptors[method];
  311. if (scopedInterceptor) {
  312. Object.keys(scopedInterceptor).forEach(function (hook) {
  313. if (hook !== 'returnValue') {
  314. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  315. }
  316. });
  317. }
  318. return interceptor;
  319. }
  320. function invokeApi(method, api, options) {
  321. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  322. params[_key - 3] = arguments[_key];
  323. }
  324. var interceptor = getApiInterceptorHooks(method);
  325. if (interceptor && Object.keys(interceptor).length) {
  326. if (Array.isArray(interceptor.invoke)) {
  327. var res = queue(interceptor.invoke, options);
  328. return res.then(function (options) {
  329. // 重新访问 getApiInterceptorHooks, 允许 invoke 中再次调用 addInterceptor,removeInterceptor
  330. return api.apply(void 0, [wrapperOptions(getApiInterceptorHooks(method), options)].concat(params));
  331. });
  332. } else {
  333. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  334. }
  335. }
  336. return api.apply(void 0, [options].concat(params));
  337. }
  338. var promiseInterceptor = {
  339. returnValue: function returnValue(res) {
  340. if (!isPromise(res)) {
  341. return res;
  342. }
  343. return new Promise(function (resolve, reject) {
  344. res.then(function (res) {
  345. if (!res) {
  346. resolve(res);
  347. return;
  348. }
  349. if (res[0]) {
  350. reject(res[0]);
  351. } else {
  352. resolve(res[1]);
  353. }
  354. });
  355. });
  356. }
  357. };
  358. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|rpx2px|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  359. var CONTEXT_API_RE = /^create|Manager$/;
  360. // Context例外情况
  361. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  362. // 同步例外情况
  363. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  364. var CALLBACK_API_RE = /^on|^off/;
  365. function isContextApi(name) {
  366. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  367. }
  368. function isSyncApi(name) {
  369. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  370. }
  371. function isCallbackApi(name) {
  372. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  373. }
  374. function handlePromise(promise) {
  375. return promise.then(function (data) {
  376. return [null, data];
  377. }).catch(function (err) {
  378. return [err];
  379. });
  380. }
  381. function shouldPromise(name) {
  382. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  383. return false;
  384. }
  385. return true;
  386. }
  387. /* eslint-disable no-extend-native */
  388. if (!Promise.prototype.finally) {
  389. Promise.prototype.finally = function (callback) {
  390. var promise = this.constructor;
  391. return this.then(function (value) {
  392. return promise.resolve(callback()).then(function () {
  393. return value;
  394. });
  395. }, function (reason) {
  396. return promise.resolve(callback()).then(function () {
  397. throw reason;
  398. });
  399. });
  400. };
  401. }
  402. function promisify(name, api) {
  403. if (!shouldPromise(name) || !isFn(api)) {
  404. return api;
  405. }
  406. return function promiseApi() {
  407. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  408. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  409. params[_key2 - 1] = arguments[_key2];
  410. }
  411. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  412. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  413. }
  414. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  415. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  416. success: resolve,
  417. fail: reject
  418. })].concat(params));
  419. })));
  420. };
  421. }
  422. var EPS = 1e-4;
  423. var BASE_DEVICE_WIDTH = 750;
  424. var isIOS = false;
  425. var deviceWidth = 0;
  426. var deviceDPR = 0;
  427. function checkDeviceWidth() {
  428. var _Object$assign = Object.assign({}, wx.getWindowInfo(), {
  429. platform: wx.getDeviceInfo().platform
  430. }),
  431. windowWidth = _Object$assign.windowWidth,
  432. pixelRatio = _Object$assign.pixelRatio,
  433. platform = _Object$assign.platform; // uni=>wx runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  434. deviceWidth = windowWidth;
  435. deviceDPR = pixelRatio;
  436. isIOS = platform === 'ios';
  437. }
  438. function upx2px(number, newDeviceWidth) {
  439. if (deviceWidth === 0) {
  440. checkDeviceWidth();
  441. }
  442. number = Number(number);
  443. if (number === 0) {
  444. return 0;
  445. }
  446. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  447. if (result < 0) {
  448. result = -result;
  449. }
  450. result = Math.floor(result + EPS);
  451. if (result === 0) {
  452. if (deviceDPR === 1 || !isIOS) {
  453. result = 1;
  454. } else {
  455. result = 0.5;
  456. }
  457. }
  458. return number < 0 ? -result : result;
  459. }
  460. var LOCALE_ZH_HANS = 'zh-Hans';
  461. var LOCALE_ZH_HANT = 'zh-Hant';
  462. var LOCALE_EN = 'en';
  463. var LOCALE_FR = 'fr';
  464. var LOCALE_ES = 'es';
  465. var messages = {};
  466. var locale;
  467. {
  468. locale = normalizeLocale(wx.getAppBaseInfo().language) || LOCALE_EN;
  469. }
  470. function initI18nMessages() {
  471. if (!isEnableLocale()) {
  472. return;
  473. }
  474. var localeKeys = Object.keys(__uniConfig.locales);
  475. if (localeKeys.length) {
  476. localeKeys.forEach(function (locale) {
  477. var curMessages = messages[locale];
  478. var userMessages = __uniConfig.locales[locale];
  479. if (curMessages) {
  480. Object.assign(curMessages, userMessages);
  481. } else {
  482. messages[locale] = userMessages;
  483. }
  484. });
  485. }
  486. }
  487. initI18nMessages();
  488. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  489. var t = i18n.t;
  490. var i18nMixin = i18n.mixin = {
  491. beforeCreate: function beforeCreate() {
  492. var _this = this;
  493. var unwatch = i18n.i18n.watchLocale(function () {
  494. _this.$forceUpdate();
  495. });
  496. this.$once('hook:beforeDestroy', function () {
  497. unwatch();
  498. });
  499. },
  500. methods: {
  501. $$t: function $$t(key, values) {
  502. return t(key, values);
  503. }
  504. }
  505. };
  506. var setLocale = i18n.setLocale;
  507. var getLocale = i18n.getLocale;
  508. function initAppLocale(Vue, appVm, locale) {
  509. var state = Vue.observable({
  510. locale: locale || i18n.getLocale()
  511. });
  512. var localeWatchers = [];
  513. appVm.$watchLocale = function (fn) {
  514. localeWatchers.push(fn);
  515. };
  516. Object.defineProperty(appVm, '$locale', {
  517. get: function get() {
  518. return state.locale;
  519. },
  520. set: function set(v) {
  521. state.locale = v;
  522. localeWatchers.forEach(function (watch) {
  523. return watch(v);
  524. });
  525. }
  526. });
  527. }
  528. function isEnableLocale() {
  529. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  530. }
  531. function include(str, parts) {
  532. return !!parts.find(function (part) {
  533. return str.indexOf(part) !== -1;
  534. });
  535. }
  536. function startsWith(str, parts) {
  537. return parts.find(function (part) {
  538. return str.indexOf(part) === 0;
  539. });
  540. }
  541. function normalizeLocale(locale, messages) {
  542. if (!locale) {
  543. return;
  544. }
  545. locale = locale.trim().replace(/_/g, '-');
  546. if (messages && messages[locale]) {
  547. return locale;
  548. }
  549. locale = locale.toLowerCase();
  550. if (locale === 'chinese') {
  551. // 支付宝
  552. return LOCALE_ZH_HANS;
  553. }
  554. if (locale.indexOf('zh') === 0) {
  555. if (locale.indexOf('-hans') > -1) {
  556. return LOCALE_ZH_HANS;
  557. }
  558. if (locale.indexOf('-hant') > -1) {
  559. return LOCALE_ZH_HANT;
  560. }
  561. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  562. return LOCALE_ZH_HANT;
  563. }
  564. return LOCALE_ZH_HANS;
  565. }
  566. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  567. if (lang) {
  568. return lang;
  569. }
  570. }
  571. // export function initI18n() {
  572. // const localeKeys = Object.keys(__uniConfig.locales || {})
  573. // if (localeKeys.length) {
  574. // localeKeys.forEach((locale) =>
  575. // i18n.add(locale, __uniConfig.locales[locale])
  576. // )
  577. // }
  578. // }
  579. function getLocale$1() {
  580. // 优先使用 $locale
  581. if (isFn(getApp)) {
  582. var app = getApp({
  583. allowDefault: true
  584. });
  585. if (app && app.$vm) {
  586. return app.$vm.$locale;
  587. }
  588. }
  589. return normalizeLocale(wx.getAppBaseInfo().language) || LOCALE_EN;
  590. }
  591. function setLocale$1(locale) {
  592. var app = isFn(getApp) ? getApp() : false;
  593. if (!app) {
  594. return false;
  595. }
  596. var oldLocale = app.$vm.$locale;
  597. if (oldLocale !== locale) {
  598. app.$vm.$locale = locale;
  599. onLocaleChangeCallbacks.forEach(function (fn) {
  600. return fn({
  601. locale: locale
  602. });
  603. });
  604. return true;
  605. }
  606. return false;
  607. }
  608. var onLocaleChangeCallbacks = [];
  609. function onLocaleChange(fn) {
  610. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  611. onLocaleChangeCallbacks.push(fn);
  612. }
  613. }
  614. if (typeof global !== 'undefined') {
  615. global.getLocale = getLocale$1;
  616. }
  617. var interceptors = {
  618. promiseInterceptor: promiseInterceptor
  619. };
  620. var baseApi = /*#__PURE__*/Object.freeze({
  621. __proto__: null,
  622. upx2px: upx2px,
  623. rpx2px: upx2px,
  624. getLocale: getLocale$1,
  625. setLocale: setLocale$1,
  626. onLocaleChange: onLocaleChange,
  627. addInterceptor: addInterceptor,
  628. removeInterceptor: removeInterceptor,
  629. interceptors: interceptors
  630. });
  631. function findExistsPageIndex(url) {
  632. var pages = getCurrentPages();
  633. var len = pages.length;
  634. while (len--) {
  635. var page = pages[len];
  636. if (page.$page && page.$page.fullPath === url) {
  637. return len;
  638. }
  639. }
  640. return -1;
  641. }
  642. var redirectTo = {
  643. name: function name(fromArgs) {
  644. if (fromArgs.exists === 'back' && fromArgs.delta) {
  645. return 'navigateBack';
  646. }
  647. return 'redirectTo';
  648. },
  649. args: function args(fromArgs) {
  650. if (fromArgs.exists === 'back' && fromArgs.url) {
  651. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  652. if (existsPageIndex !== -1) {
  653. var delta = getCurrentPages().length - 1 - existsPageIndex;
  654. if (delta > 0) {
  655. fromArgs.delta = delta;
  656. }
  657. }
  658. }
  659. }
  660. };
  661. var previewImage = {
  662. args: function args(fromArgs) {
  663. var currentIndex = parseInt(fromArgs.current);
  664. if (isNaN(currentIndex)) {
  665. return;
  666. }
  667. var urls = fromArgs.urls;
  668. if (!Array.isArray(urls)) {
  669. return;
  670. }
  671. var len = urls.length;
  672. if (!len) {
  673. return;
  674. }
  675. if (currentIndex < 0) {
  676. currentIndex = 0;
  677. } else if (currentIndex >= len) {
  678. currentIndex = len - 1;
  679. }
  680. if (currentIndex > 0) {
  681. fromArgs.current = urls[currentIndex];
  682. fromArgs.urls = urls.filter(function (item, index) {
  683. return index < currentIndex ? item !== urls[currentIndex] : true;
  684. });
  685. } else {
  686. fromArgs.current = urls[0];
  687. }
  688. return {
  689. indicator: false,
  690. loop: false
  691. };
  692. }
  693. };
  694. var UUID_KEY = '__DC_STAT_UUID';
  695. var deviceId;
  696. function useDeviceId(result) {
  697. deviceId = deviceId || wx.getStorageSync(UUID_KEY);
  698. if (!deviceId) {
  699. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  700. wx.setStorage({
  701. key: UUID_KEY,
  702. data: deviceId
  703. });
  704. }
  705. result.deviceId = deviceId;
  706. }
  707. function addSafeAreaInsets(result) {
  708. if (result.safeArea) {
  709. var safeArea = result.safeArea;
  710. result.safeAreaInsets = {
  711. top: safeArea.top,
  712. left: safeArea.left,
  713. right: result.windowWidth - safeArea.right,
  714. bottom: result.screenHeight - safeArea.bottom
  715. };
  716. }
  717. }
  718. function populateParameters(result) {
  719. var _result$brand = result.brand,
  720. brand = _result$brand === void 0 ? '' : _result$brand,
  721. _result$model = result.model,
  722. model = _result$model === void 0 ? '' : _result$model,
  723. _result$system = result.system,
  724. system = _result$system === void 0 ? '' : _result$system,
  725. _result$language = result.language,
  726. language = _result$language === void 0 ? '' : _result$language,
  727. theme = result.theme,
  728. version = result.version,
  729. platform = result.platform,
  730. fontSizeSetting = result.fontSizeSetting,
  731. SDKVersion = result.SDKVersion,
  732. pixelRatio = result.pixelRatio,
  733. deviceOrientation = result.deviceOrientation;
  734. // const isQuickApp = "mp-weixin".indexOf('quickapp-webview') !== -1
  735. var extraParam = {};
  736. // osName osVersion
  737. var osName = '';
  738. var osVersion = '';
  739. {
  740. osName = system.split(' ')[0] || '';
  741. osVersion = system.split(' ')[1] || '';
  742. }
  743. var hostVersion = version;
  744. // deviceType
  745. var deviceType = getGetDeviceType(result, model);
  746. // deviceModel
  747. var deviceBrand = getDeviceBrand(brand);
  748. // hostName
  749. var _hostName = getHostName(result);
  750. // deviceOrientation
  751. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  752. // devicePixelRatio
  753. var _devicePixelRatio = pixelRatio;
  754. // SDKVersion
  755. var _SDKVersion = SDKVersion;
  756. // hostLanguage
  757. var hostLanguage = (language || '').replace(/_/g, '-');
  758. // wx.getAccountInfoSync
  759. var parameters = {
  760. appId: "__UNI__BAF5082",
  761. appName: "baozhida-mall-applet",
  762. appVersion: "1.0.0",
  763. appVersionCode: "100",
  764. appLanguage: getAppLanguage(hostLanguage),
  765. uniCompileVersion: "4.45",
  766. uniCompilerVersion: "4.45",
  767. uniRuntimeVersion: "4.45",
  768. uniPlatform: undefined || "mp-weixin",
  769. deviceBrand: deviceBrand,
  770. deviceModel: model,
  771. deviceType: deviceType,
  772. devicePixelRatio: _devicePixelRatio,
  773. deviceOrientation: _deviceOrientation,
  774. osName: osName.toLocaleLowerCase(),
  775. osVersion: osVersion,
  776. hostTheme: theme,
  777. hostVersion: hostVersion,
  778. hostLanguage: hostLanguage,
  779. hostName: _hostName,
  780. hostSDKVersion: _SDKVersion,
  781. hostFontSizeSetting: fontSizeSetting,
  782. windowTop: 0,
  783. windowBottom: 0,
  784. // TODO
  785. osLanguage: undefined,
  786. osTheme: undefined,
  787. ua: undefined,
  788. hostPackageName: undefined,
  789. browserName: undefined,
  790. browserVersion: undefined,
  791. isUniAppX: false
  792. };
  793. Object.assign(result, parameters, extraParam);
  794. }
  795. function getGetDeviceType(result, model) {
  796. var deviceType = result.deviceType || 'phone';
  797. {
  798. var deviceTypeMaps = {
  799. ipad: 'pad',
  800. windows: 'pc',
  801. mac: 'pc'
  802. };
  803. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  804. var _model = model.toLocaleLowerCase();
  805. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  806. var _m = deviceTypeMapsKeys[index];
  807. if (_model.indexOf(_m) !== -1) {
  808. deviceType = deviceTypeMaps[_m];
  809. break;
  810. }
  811. }
  812. }
  813. return deviceType;
  814. }
  815. function getDeviceBrand(brand) {
  816. var deviceBrand = brand;
  817. if (deviceBrand) {
  818. deviceBrand = brand.toLocaleLowerCase();
  819. }
  820. return deviceBrand;
  821. }
  822. function getAppLanguage(defaultLanguage) {
  823. return getLocale$1 ? getLocale$1() : defaultLanguage;
  824. }
  825. function getHostName(result) {
  826. var _platform = 'WeChat';
  827. var _hostName = result.hostName || _platform; // mp-jd
  828. {
  829. if (result.environment) {
  830. _hostName = result.environment;
  831. } else if (result.host && result.host.env) {
  832. _hostName = result.host.env;
  833. }
  834. }
  835. return _hostName;
  836. }
  837. var getSystemInfo = {
  838. returnValue: function returnValue(result) {
  839. useDeviceId(result);
  840. addSafeAreaInsets(result);
  841. populateParameters(result);
  842. }
  843. };
  844. var showActionSheet = {
  845. args: function args(fromArgs) {
  846. if ((0, _typeof2.default)(fromArgs) === 'object') {
  847. fromArgs.alertText = fromArgs.title;
  848. }
  849. }
  850. };
  851. var getAppBaseInfo = {
  852. returnValue: function returnValue(result) {
  853. var _result = result,
  854. version = _result.version,
  855. language = _result.language,
  856. SDKVersion = _result.SDKVersion,
  857. theme = _result.theme;
  858. var _hostName = getHostName(result);
  859. var hostLanguage = (language || '').replace('_', '-');
  860. result = sortObject(Object.assign(result, {
  861. appId: "__UNI__BAF5082",
  862. appName: "baozhida-mall-applet",
  863. appVersion: "1.0.0",
  864. appVersionCode: "100",
  865. appLanguage: getAppLanguage(hostLanguage),
  866. hostVersion: version,
  867. hostLanguage: hostLanguage,
  868. hostName: _hostName,
  869. hostSDKVersion: SDKVersion,
  870. hostTheme: theme,
  871. isUniAppX: false,
  872. uniPlatform: undefined || "mp-weixin",
  873. uniCompileVersion: "4.45",
  874. uniCompilerVersion: "4.45",
  875. uniRuntimeVersion: "4.45"
  876. }));
  877. }
  878. };
  879. var getDeviceInfo = {
  880. returnValue: function returnValue(result) {
  881. var _result2 = result,
  882. brand = _result2.brand,
  883. model = _result2.model;
  884. var deviceType = getGetDeviceType(result, model);
  885. var deviceBrand = getDeviceBrand(brand);
  886. useDeviceId(result);
  887. result = sortObject(Object.assign(result, {
  888. deviceType: deviceType,
  889. deviceBrand: deviceBrand,
  890. deviceModel: model
  891. }));
  892. }
  893. };
  894. var getWindowInfo = {
  895. returnValue: function returnValue(result) {
  896. addSafeAreaInsets(result);
  897. result = sortObject(Object.assign(result, {
  898. windowTop: 0,
  899. windowBottom: 0
  900. }));
  901. }
  902. };
  903. var getAppAuthorizeSetting = {
  904. returnValue: function returnValue(result) {
  905. var locationReducedAccuracy = result.locationReducedAccuracy;
  906. result.locationAccuracy = 'unsupported';
  907. if (locationReducedAccuracy === true) {
  908. result.locationAccuracy = 'reduced';
  909. } else if (locationReducedAccuracy === false) {
  910. result.locationAccuracy = 'full';
  911. }
  912. }
  913. };
  914. // import navigateTo from 'uni-helpers/navigate-to'
  915. var compressImage = {
  916. args: function args(fromArgs) {
  917. // https://developers.weixin.qq.com/community/develop/doc/000c08940c865011298e0a43256800?highLine=compressHeight
  918. if (fromArgs.compressedHeight && !fromArgs.compressHeight) {
  919. fromArgs.compressHeight = fromArgs.compressedHeight;
  920. }
  921. if (fromArgs.compressedWidth && !fromArgs.compressWidth) {
  922. fromArgs.compressWidth = fromArgs.compressedWidth;
  923. }
  924. }
  925. };
  926. var protocols = {
  927. redirectTo: redirectTo,
  928. // navigateTo, // 由于在微信开发者工具的页面参数,会显示__id__参数,因此暂时关闭mp-weixin对于navigateTo的AOP
  929. previewImage: previewImage,
  930. getSystemInfo: getSystemInfo,
  931. getSystemInfoSync: getSystemInfo,
  932. showActionSheet: showActionSheet,
  933. getAppBaseInfo: getAppBaseInfo,
  934. getDeviceInfo: getDeviceInfo,
  935. getWindowInfo: getWindowInfo,
  936. getAppAuthorizeSetting: getAppAuthorizeSetting,
  937. compressImage: compressImage
  938. };
  939. var todos = ['vibrate', 'preloadPage', 'unPreloadPage', 'loadSubPackage'];
  940. var canIUses = [];
  941. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  942. function processCallback(methodName, method, returnValue) {
  943. return function (res) {
  944. return method(processReturnValue(methodName, res, returnValue));
  945. };
  946. }
  947. function processArgs(methodName, fromArgs) {
  948. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  949. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  950. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  951. if (isPlainObject(fromArgs)) {
  952. // 一般 api 的参数解析
  953. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  954. if (isFn(argsOption)) {
  955. argsOption = argsOption(fromArgs, toArgs) || {};
  956. }
  957. for (var key in fromArgs) {
  958. if (hasOwn(argsOption, key)) {
  959. var keyOption = argsOption[key];
  960. if (isFn(keyOption)) {
  961. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  962. }
  963. if (!keyOption) {
  964. // 不支持的参数
  965. console.warn("The '".concat(methodName, "' method of platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  966. } else if (isStr(keyOption)) {
  967. // 重写参数 key
  968. toArgs[keyOption] = fromArgs[key];
  969. } else if (isPlainObject(keyOption)) {
  970. // {name:newName,value:value}可重新指定参数 key:value
  971. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  972. }
  973. } else if (CALLBACKS.indexOf(key) !== -1) {
  974. if (isFn(fromArgs[key])) {
  975. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  976. }
  977. } else {
  978. if (!keepFromArgs) {
  979. toArgs[key] = fromArgs[key];
  980. }
  981. }
  982. }
  983. return toArgs;
  984. } else if (isFn(fromArgs)) {
  985. fromArgs = processCallback(methodName, fromArgs, returnValue);
  986. }
  987. return fromArgs;
  988. }
  989. function processReturnValue(methodName, res, returnValue) {
  990. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  991. if (isFn(protocols.returnValue)) {
  992. // 处理通用 returnValue
  993. res = protocols.returnValue(methodName, res);
  994. }
  995. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  996. }
  997. function wrapper(methodName, method) {
  998. if (hasOwn(protocols, methodName)) {
  999. var protocol = protocols[methodName];
  1000. if (!protocol) {
  1001. // 暂不支持的 api
  1002. return function () {
  1003. console.error("Platform '\u5FAE\u4FE1\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1004. };
  1005. }
  1006. return function (arg1, arg2) {
  1007. // 目前 api 最多两个参数
  1008. var options = protocol;
  1009. if (isFn(protocol)) {
  1010. options = protocol(arg1);
  1011. }
  1012. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1013. var args = [arg1];
  1014. if (typeof arg2 !== 'undefined') {
  1015. args.push(arg2);
  1016. }
  1017. if (isFn(options.name)) {
  1018. methodName = options.name(arg1);
  1019. } else if (isStr(options.name)) {
  1020. methodName = options.name;
  1021. }
  1022. var returnValue = wx[methodName].apply(wx, args);
  1023. if (isSyncApi(methodName)) {
  1024. // 同步 api
  1025. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1026. }
  1027. return returnValue;
  1028. };
  1029. }
  1030. return method;
  1031. }
  1032. var todoApis = Object.create(null);
  1033. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1034. function createTodoApi(name) {
  1035. return function todoApi(_ref) {
  1036. var fail = _ref.fail,
  1037. complete = _ref.complete;
  1038. var res = {
  1039. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1040. };
  1041. isFn(fail) && fail(res);
  1042. isFn(complete) && complete(res);
  1043. };
  1044. }
  1045. TODOS.forEach(function (name) {
  1046. todoApis[name] = createTodoApi(name);
  1047. });
  1048. var providers = {
  1049. oauth: ['weixin'],
  1050. share: ['weixin'],
  1051. payment: ['wxpay'],
  1052. push: ['weixin']
  1053. };
  1054. function getProvider(_ref2) {
  1055. var service = _ref2.service,
  1056. success = _ref2.success,
  1057. fail = _ref2.fail,
  1058. complete = _ref2.complete;
  1059. var res = false;
  1060. if (providers[service]) {
  1061. res = {
  1062. errMsg: 'getProvider:ok',
  1063. service: service,
  1064. provider: providers[service]
  1065. };
  1066. isFn(success) && success(res);
  1067. } else {
  1068. res = {
  1069. errMsg: 'getProvider:fail service not found'
  1070. };
  1071. isFn(fail) && fail(res);
  1072. }
  1073. isFn(complete) && complete(res);
  1074. }
  1075. var extraApi = /*#__PURE__*/Object.freeze({
  1076. __proto__: null,
  1077. getProvider: getProvider
  1078. });
  1079. var getEmitter = function () {
  1080. var Emitter;
  1081. return function getUniEmitter() {
  1082. if (!Emitter) {
  1083. Emitter = new _vue.default();
  1084. }
  1085. return Emitter;
  1086. };
  1087. }();
  1088. function apply(ctx, method, args) {
  1089. return ctx[method].apply(ctx, args);
  1090. }
  1091. function $on() {
  1092. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1093. }
  1094. function $off() {
  1095. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1096. }
  1097. function $once() {
  1098. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1099. }
  1100. function $emit() {
  1101. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1102. }
  1103. var eventApi = /*#__PURE__*/Object.freeze({
  1104. __proto__: null,
  1105. $on: $on,
  1106. $off: $off,
  1107. $once: $once,
  1108. $emit: $emit
  1109. });
  1110. /**
  1111. * 框架内 try-catch
  1112. */
  1113. /**
  1114. * 开发者 try-catch
  1115. */
  1116. function tryCatch(fn) {
  1117. return function () {
  1118. try {
  1119. return fn.apply(fn, arguments);
  1120. } catch (e) {
  1121. // TODO
  1122. console.error(e);
  1123. }
  1124. };
  1125. }
  1126. function getApiCallbacks(params) {
  1127. var apiCallbacks = {};
  1128. for (var name in params) {
  1129. var param = params[name];
  1130. if (isFn(param)) {
  1131. apiCallbacks[name] = tryCatch(param);
  1132. delete params[name];
  1133. }
  1134. }
  1135. return apiCallbacks;
  1136. }
  1137. var cid;
  1138. var cidErrMsg;
  1139. var enabled;
  1140. function normalizePushMessage(message) {
  1141. try {
  1142. return JSON.parse(message);
  1143. } catch (e) {}
  1144. return message;
  1145. }
  1146. function invokePushCallback(args) {
  1147. if (args.type === 'enabled') {
  1148. enabled = true;
  1149. } else if (args.type === 'clientId') {
  1150. cid = args.cid;
  1151. cidErrMsg = args.errMsg;
  1152. invokeGetPushCidCallbacks(cid, args.errMsg);
  1153. } else if (args.type === 'pushMsg') {
  1154. var message = {
  1155. type: 'receive',
  1156. data: normalizePushMessage(args.message)
  1157. };
  1158. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1159. var callback = onPushMessageCallbacks[i];
  1160. callback(message);
  1161. // 该消息已被阻止
  1162. if (message.stopped) {
  1163. break;
  1164. }
  1165. }
  1166. } else if (args.type === 'click') {
  1167. onPushMessageCallbacks.forEach(function (callback) {
  1168. callback({
  1169. type: 'click',
  1170. data: normalizePushMessage(args.message)
  1171. });
  1172. });
  1173. }
  1174. }
  1175. var getPushCidCallbacks = [];
  1176. function invokeGetPushCidCallbacks(cid, errMsg) {
  1177. getPushCidCallbacks.forEach(function (callback) {
  1178. callback(cid, errMsg);
  1179. });
  1180. getPushCidCallbacks.length = 0;
  1181. }
  1182. function getPushClientId(args) {
  1183. if (!isPlainObject(args)) {
  1184. args = {};
  1185. }
  1186. var _getApiCallbacks = getApiCallbacks(args),
  1187. success = _getApiCallbacks.success,
  1188. fail = _getApiCallbacks.fail,
  1189. complete = _getApiCallbacks.complete;
  1190. var hasSuccess = isFn(success);
  1191. var hasFail = isFn(fail);
  1192. var hasComplete = isFn(complete);
  1193. Promise.resolve().then(function () {
  1194. if (typeof enabled === 'undefined') {
  1195. enabled = false;
  1196. cid = '';
  1197. cidErrMsg = 'uniPush is not enabled';
  1198. }
  1199. getPushCidCallbacks.push(function (cid, errMsg) {
  1200. var res;
  1201. if (cid) {
  1202. res = {
  1203. errMsg: 'getPushClientId:ok',
  1204. cid: cid
  1205. };
  1206. hasSuccess && success(res);
  1207. } else {
  1208. res = {
  1209. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1210. };
  1211. hasFail && fail(res);
  1212. }
  1213. hasComplete && complete(res);
  1214. });
  1215. if (typeof cid !== 'undefined') {
  1216. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1217. }
  1218. });
  1219. }
  1220. var onPushMessageCallbacks = [];
  1221. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1222. var onPushMessage = function onPushMessage(fn) {
  1223. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1224. onPushMessageCallbacks.push(fn);
  1225. }
  1226. };
  1227. var offPushMessage = function offPushMessage(fn) {
  1228. if (!fn) {
  1229. onPushMessageCallbacks.length = 0;
  1230. } else {
  1231. var index = onPushMessageCallbacks.indexOf(fn);
  1232. if (index > -1) {
  1233. onPushMessageCallbacks.splice(index, 1);
  1234. }
  1235. }
  1236. };
  1237. var baseInfo = wx.getAppBaseInfo && wx.getAppBaseInfo();
  1238. if (!baseInfo) {
  1239. baseInfo = wx.getSystemInfoSync();
  1240. }
  1241. var host = baseInfo ? baseInfo.host : null;
  1242. var shareVideoMessage = host && host.env === 'SAAASDK' ? wx.miniapp.shareVideoMessage : wx.shareVideoMessage;
  1243. var api = /*#__PURE__*/Object.freeze({
  1244. __proto__: null,
  1245. shareVideoMessage: shareVideoMessage,
  1246. getPushClientId: getPushClientId,
  1247. onPushMessage: onPushMessage,
  1248. offPushMessage: offPushMessage,
  1249. invokePushCallback: invokePushCallback
  1250. });
  1251. var mocks = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__'];
  1252. function findVmByVueId(vm, vuePid) {
  1253. var $children = vm.$children;
  1254. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1255. for (var i = $children.length - 1; i >= 0; i--) {
  1256. var childVm = $children[i];
  1257. if (childVm.$scope._$vueId === vuePid) {
  1258. return childVm;
  1259. }
  1260. }
  1261. // 反向递归查找
  1262. var parentVm;
  1263. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1264. parentVm = findVmByVueId($children[_i], vuePid);
  1265. if (parentVm) {
  1266. return parentVm;
  1267. }
  1268. }
  1269. }
  1270. function initBehavior(options) {
  1271. return Behavior(options);
  1272. }
  1273. function isPage() {
  1274. return !!this.route;
  1275. }
  1276. function initRelation(detail) {
  1277. this.triggerEvent('__l', detail);
  1278. }
  1279. function selectAllComponents(mpInstance, selector, $refs) {
  1280. var components = mpInstance.selectAllComponents(selector) || [];
  1281. components.forEach(function (component) {
  1282. var ref = component.dataset.ref;
  1283. $refs[ref] = component.$vm || toSkip(component);
  1284. {
  1285. if (component.dataset.vueGeneric === 'scoped') {
  1286. component.selectAllComponents('.scoped-ref').forEach(function (scopedComponent) {
  1287. selectAllComponents(scopedComponent, selector, $refs);
  1288. });
  1289. }
  1290. }
  1291. });
  1292. }
  1293. function syncRefs(refs, newRefs) {
  1294. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1295. var newKeys = Object.keys(newRefs);
  1296. newKeys.forEach(function (key) {
  1297. var oldValue = refs[key];
  1298. var newValue = newRefs[key];
  1299. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1300. return oldValue.includes(value);
  1301. })) {
  1302. return;
  1303. }
  1304. refs[key] = newValue;
  1305. oldKeys.delete(key);
  1306. });
  1307. oldKeys.forEach(function (key) {
  1308. delete refs[key];
  1309. });
  1310. return refs;
  1311. }
  1312. function initRefs(vm) {
  1313. var mpInstance = vm.$scope;
  1314. var refs = {};
  1315. Object.defineProperty(vm, '$refs', {
  1316. get: function get() {
  1317. var $refs = {};
  1318. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1319. // TODO 暂不考虑 for 中的 scoped
  1320. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1321. forComponents.forEach(function (component) {
  1322. var ref = component.dataset.ref;
  1323. if (!$refs[ref]) {
  1324. $refs[ref] = [];
  1325. }
  1326. $refs[ref].push(component.$vm || toSkip(component));
  1327. });
  1328. return syncRefs(refs, $refs);
  1329. }
  1330. });
  1331. }
  1332. function handleLink(event) {
  1333. var _ref3 = event.detail || event.value,
  1334. vuePid = _ref3.vuePid,
  1335. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1336. var parentVm;
  1337. if (vuePid) {
  1338. parentVm = findVmByVueId(this.$vm, vuePid);
  1339. }
  1340. if (!parentVm) {
  1341. parentVm = this.$vm;
  1342. }
  1343. vueOptions.parent = parentVm;
  1344. }
  1345. function markMPComponent(component) {
  1346. // 在 Vue 中标记为小程序组件
  1347. var IS_MP = '__v_isMPComponent';
  1348. Object.defineProperty(component, IS_MP, {
  1349. configurable: true,
  1350. enumerable: false,
  1351. value: true
  1352. });
  1353. return component;
  1354. }
  1355. function toSkip(obj) {
  1356. var OB = '__ob__';
  1357. var SKIP = '__v_skip';
  1358. if (isObject(obj) && Object.isExtensible(obj)) {
  1359. // 避免被 @vue/composition-api 观测
  1360. Object.defineProperty(obj, OB, {
  1361. configurable: true,
  1362. enumerable: false,
  1363. value: (0, _defineProperty2.default)({}, SKIP, true)
  1364. });
  1365. }
  1366. return obj;
  1367. }
  1368. var WORKLET_RE = /_(.*)_worklet_factory_/;
  1369. function initWorkletMethods(mpMethods, vueMethods) {
  1370. if (vueMethods) {
  1371. Object.keys(vueMethods).forEach(function (name) {
  1372. var matches = name.match(WORKLET_RE);
  1373. if (matches) {
  1374. var workletName = matches[1];
  1375. mpMethods[name] = vueMethods[name];
  1376. mpMethods[workletName] = vueMethods[workletName];
  1377. }
  1378. });
  1379. }
  1380. }
  1381. var MPPage = Page;
  1382. var MPComponent = Component;
  1383. var customizeRE = /:/g;
  1384. var customize = cached(function (str) {
  1385. return camelize(str.replace(customizeRE, '-'));
  1386. });
  1387. function initTriggerEvent(mpInstance) {
  1388. var oldTriggerEvent = mpInstance.triggerEvent;
  1389. var newTriggerEvent = function newTriggerEvent(event) {
  1390. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  1391. args[_key3 - 1] = arguments[_key3];
  1392. }
  1393. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1394. if (this.$vm || this.dataset && this.dataset.comType) {
  1395. event = customize(event);
  1396. } else {
  1397. // 针对微信/QQ小程序单独补充驼峰格式事件,以兼容历史项目
  1398. var newEvent = customize(event);
  1399. if (newEvent !== event) {
  1400. oldTriggerEvent.apply(this, [newEvent].concat(args));
  1401. }
  1402. }
  1403. return oldTriggerEvent.apply(this, [event].concat(args));
  1404. };
  1405. try {
  1406. // 京东小程序 triggerEvent 为只读
  1407. mpInstance.triggerEvent = newTriggerEvent;
  1408. } catch (error) {
  1409. mpInstance._triggerEvent = newTriggerEvent;
  1410. }
  1411. }
  1412. function initHook(name, options, isComponent) {
  1413. var oldHook = options[name];
  1414. options[name] = function () {
  1415. markMPComponent(this);
  1416. initTriggerEvent(this);
  1417. if (oldHook) {
  1418. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1419. args[_key4] = arguments[_key4];
  1420. }
  1421. return oldHook.apply(this, args);
  1422. }
  1423. };
  1424. }
  1425. if (!MPPage.__$wrappered) {
  1426. MPPage.__$wrappered = true;
  1427. Page = function Page() {
  1428. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1429. initHook('onLoad', options);
  1430. return MPPage(options);
  1431. };
  1432. Page.after = MPPage.after;
  1433. Component = function Component() {
  1434. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1435. initHook('created', options);
  1436. return MPComponent(options);
  1437. };
  1438. }
  1439. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1440. function initMocks(vm, mocks) {
  1441. var mpInstance = vm.$mp[vm.mpType];
  1442. mocks.forEach(function (mock) {
  1443. if (hasOwn(mpInstance, mock)) {
  1444. vm[mock] = mpInstance[mock];
  1445. }
  1446. });
  1447. }
  1448. function hasHook(hook, vueOptions) {
  1449. if (!vueOptions) {
  1450. return true;
  1451. }
  1452. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1453. return true;
  1454. }
  1455. vueOptions = vueOptions.default || vueOptions;
  1456. if (isFn(vueOptions)) {
  1457. if (isFn(vueOptions.extendOptions[hook])) {
  1458. return true;
  1459. }
  1460. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1461. return true;
  1462. }
  1463. return false;
  1464. }
  1465. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1466. return true;
  1467. }
  1468. var mixins = vueOptions.mixins;
  1469. if (Array.isArray(mixins)) {
  1470. return !!mixins.find(function (mixin) {
  1471. return hasHook(hook, mixin);
  1472. });
  1473. }
  1474. }
  1475. function initHooks(mpOptions, hooks, vueOptions) {
  1476. hooks.forEach(function (hook) {
  1477. if (hasHook(hook, vueOptions)) {
  1478. mpOptions[hook] = function (args) {
  1479. return this.$vm && this.$vm.__call_hook(hook, args);
  1480. };
  1481. }
  1482. });
  1483. }
  1484. function initUnknownHooks(mpOptions, vueOptions) {
  1485. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1486. findHooks(vueOptions).forEach(function (hook) {
  1487. return initHook$1(mpOptions, hook, excludes);
  1488. });
  1489. }
  1490. function findHooks(vueOptions) {
  1491. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1492. if (vueOptions) {
  1493. Object.keys(vueOptions).forEach(function (name) {
  1494. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1495. hooks.push(name);
  1496. }
  1497. });
  1498. }
  1499. return hooks;
  1500. }
  1501. function initHook$1(mpOptions, hook, excludes) {
  1502. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1503. mpOptions[hook] = function (args) {
  1504. return this.$vm && this.$vm.__call_hook(hook, args);
  1505. };
  1506. }
  1507. }
  1508. function initVueComponent(Vue, vueOptions) {
  1509. vueOptions = vueOptions.default || vueOptions;
  1510. var VueComponent;
  1511. if (isFn(vueOptions)) {
  1512. VueComponent = vueOptions;
  1513. } else {
  1514. VueComponent = Vue.extend(vueOptions);
  1515. }
  1516. vueOptions = VueComponent.options;
  1517. return [VueComponent, vueOptions];
  1518. }
  1519. function initSlots(vm, vueSlots) {
  1520. if (Array.isArray(vueSlots) && vueSlots.length) {
  1521. var $slots = Object.create(null);
  1522. vueSlots.forEach(function (slotName) {
  1523. $slots[slotName] = true;
  1524. });
  1525. vm.$scopedSlots = vm.$slots = $slots;
  1526. }
  1527. }
  1528. function initVueIds(vueIds, mpInstance) {
  1529. vueIds = (vueIds || '').split(',');
  1530. var len = vueIds.length;
  1531. if (len === 1) {
  1532. mpInstance._$vueId = vueIds[0];
  1533. } else if (len === 2) {
  1534. mpInstance._$vueId = vueIds[0];
  1535. mpInstance._$vuePid = vueIds[1];
  1536. }
  1537. }
  1538. function initData(vueOptions, context) {
  1539. var data = vueOptions.data || {};
  1540. var methods = vueOptions.methods || {};
  1541. if (typeof data === 'function') {
  1542. try {
  1543. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1544. } catch (e) {
  1545. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-mall-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1546. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1547. }
  1548. }
  1549. } else {
  1550. try {
  1551. // 对 data 格式化
  1552. data = JSON.parse(JSON.stringify(data));
  1553. } catch (e) {}
  1554. }
  1555. if (!isPlainObject(data)) {
  1556. data = {};
  1557. }
  1558. Object.keys(methods).forEach(function (methodName) {
  1559. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1560. data[methodName] = methods[methodName];
  1561. }
  1562. });
  1563. return data;
  1564. }
  1565. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1566. function createObserver(name) {
  1567. return function observer(newVal, oldVal) {
  1568. if (this.$vm) {
  1569. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1570. }
  1571. };
  1572. }
  1573. function initBehaviors(vueOptions, initBehavior) {
  1574. var vueBehaviors = vueOptions.behaviors;
  1575. var vueExtends = vueOptions.extends;
  1576. var vueMixins = vueOptions.mixins;
  1577. var vueProps = vueOptions.props;
  1578. if (!vueProps) {
  1579. vueOptions.props = vueProps = [];
  1580. }
  1581. var behaviors = [];
  1582. if (Array.isArray(vueBehaviors)) {
  1583. vueBehaviors.forEach(function (behavior) {
  1584. behaviors.push(behavior.replace('uni://', "wx".concat("://")));
  1585. if (behavior === 'uni://form-field') {
  1586. if (Array.isArray(vueProps)) {
  1587. vueProps.push('name');
  1588. vueProps.push('value');
  1589. } else {
  1590. vueProps.name = {
  1591. type: String,
  1592. default: ''
  1593. };
  1594. vueProps.value = {
  1595. type: [String, Number, Boolean, Array, Object, Date],
  1596. default: ''
  1597. };
  1598. }
  1599. }
  1600. });
  1601. }
  1602. if (isPlainObject(vueExtends) && vueExtends.props) {
  1603. behaviors.push(initBehavior({
  1604. properties: initProperties(vueExtends.props, true)
  1605. }));
  1606. }
  1607. if (Array.isArray(vueMixins)) {
  1608. vueMixins.forEach(function (vueMixin) {
  1609. if (isPlainObject(vueMixin) && vueMixin.props) {
  1610. behaviors.push(initBehavior({
  1611. properties: initProperties(vueMixin.props, true)
  1612. }));
  1613. }
  1614. });
  1615. }
  1616. return behaviors;
  1617. }
  1618. function parsePropType(key, type, defaultValue, file) {
  1619. // [String]=>String
  1620. if (Array.isArray(type) && type.length === 1) {
  1621. return type[0];
  1622. }
  1623. return type;
  1624. }
  1625. function initProperties(props) {
  1626. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1627. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1628. var options = arguments.length > 3 ? arguments[3] : undefined;
  1629. var properties = {};
  1630. if (!isBehavior) {
  1631. properties.vueId = {
  1632. type: String,
  1633. value: ''
  1634. };
  1635. {
  1636. if (options.virtualHost) {
  1637. properties.virtualHostStyle = {
  1638. type: null,
  1639. value: ''
  1640. };
  1641. properties.virtualHostClass = {
  1642. type: null,
  1643. value: ''
  1644. };
  1645. }
  1646. }
  1647. // scopedSlotsCompiler auto
  1648. properties.scopedSlotsCompiler = {
  1649. type: String,
  1650. value: ''
  1651. };
  1652. properties.vueSlots = {
  1653. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1654. type: null,
  1655. value: [],
  1656. observer: function observer(newVal, oldVal) {
  1657. var $slots = Object.create(null);
  1658. newVal.forEach(function (slotName) {
  1659. $slots[slotName] = true;
  1660. });
  1661. this.setData({
  1662. $slots: $slots
  1663. });
  1664. }
  1665. };
  1666. }
  1667. if (Array.isArray(props)) {
  1668. // ['title']
  1669. props.forEach(function (key) {
  1670. properties[key] = {
  1671. type: null,
  1672. observer: createObserver(key)
  1673. };
  1674. });
  1675. } else if (isPlainObject(props)) {
  1676. // {title:{type:String,default:''},content:String}
  1677. Object.keys(props).forEach(function (key) {
  1678. var opts = props[key];
  1679. if (isPlainObject(opts)) {
  1680. // title:{type:String,default:''}
  1681. var value = opts.default;
  1682. if (isFn(value)) {
  1683. value = value();
  1684. }
  1685. opts.type = parsePropType(key, opts.type);
  1686. properties[key] = {
  1687. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1688. value: value,
  1689. observer: createObserver(key)
  1690. };
  1691. } else {
  1692. // content:String
  1693. var type = parsePropType(key, opts);
  1694. properties[key] = {
  1695. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1696. observer: createObserver(key)
  1697. };
  1698. }
  1699. });
  1700. }
  1701. return properties;
  1702. }
  1703. function wrapper$1(event) {
  1704. // TODO 又得兼容 mpvue 的 mp 对象
  1705. try {
  1706. event.mp = JSON.parse(JSON.stringify(event));
  1707. } catch (e) {}
  1708. event.stopPropagation = noop;
  1709. event.preventDefault = noop;
  1710. event.target = event.target || {};
  1711. if (!hasOwn(event, 'detail')) {
  1712. event.detail = {};
  1713. }
  1714. if (hasOwn(event, 'markerId')) {
  1715. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1716. event.detail.markerId = event.markerId;
  1717. }
  1718. if (isPlainObject(event.detail)) {
  1719. event.target = Object.assign({}, event.target, event.detail);
  1720. }
  1721. return event;
  1722. }
  1723. function getExtraValue(vm, dataPathsArray) {
  1724. var context = vm;
  1725. dataPathsArray.forEach(function (dataPathArray) {
  1726. var dataPath = dataPathArray[0];
  1727. var value = dataPathArray[2];
  1728. if (dataPath || typeof value !== 'undefined') {
  1729. // ['','',index,'disable']
  1730. var propPath = dataPathArray[1];
  1731. var valuePath = dataPathArray[3];
  1732. var vFor;
  1733. if (Number.isInteger(dataPath)) {
  1734. vFor = dataPath;
  1735. } else if (!dataPath) {
  1736. vFor = context;
  1737. } else if (typeof dataPath === 'string' && dataPath) {
  1738. if (dataPath.indexOf('#s#') === 0) {
  1739. vFor = dataPath.substr(3);
  1740. } else {
  1741. vFor = vm.__get_value(dataPath, context);
  1742. }
  1743. }
  1744. if (Number.isInteger(vFor)) {
  1745. context = value;
  1746. } else if (!propPath) {
  1747. context = vFor[value];
  1748. } else {
  1749. if (Array.isArray(vFor)) {
  1750. context = vFor.find(function (vForItem) {
  1751. return vm.__get_value(propPath, vForItem) === value;
  1752. });
  1753. } else if (isPlainObject(vFor)) {
  1754. context = Object.keys(vFor).find(function (vForKey) {
  1755. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1756. });
  1757. } else {
  1758. console.error('v-for 暂不支持循环数据:', vFor);
  1759. }
  1760. }
  1761. if (valuePath) {
  1762. context = vm.__get_value(valuePath, context);
  1763. }
  1764. }
  1765. });
  1766. return context;
  1767. }
  1768. function processEventExtra(vm, extra, event, __args__) {
  1769. var extraObj = {};
  1770. if (Array.isArray(extra) && extra.length) {
  1771. /**
  1772. *[
  1773. * ['data.items', 'data.id', item.data.id],
  1774. * ['metas', 'id', meta.id]
  1775. *],
  1776. *[
  1777. * ['data.items', 'data.id', item.data.id],
  1778. * ['metas', 'id', meta.id]
  1779. *],
  1780. *'test'
  1781. */
  1782. extra.forEach(function (dataPath, index) {
  1783. if (typeof dataPath === 'string') {
  1784. if (!dataPath) {
  1785. // model,prop.sync
  1786. extraObj['$' + index] = vm;
  1787. } else {
  1788. if (dataPath === '$event') {
  1789. // $event
  1790. extraObj['$' + index] = event;
  1791. } else if (dataPath === 'arguments') {
  1792. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1793. } else if (dataPath.indexOf('$event.') === 0) {
  1794. // $event.target.value
  1795. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1796. } else {
  1797. extraObj['$' + index] = vm.__get_value(dataPath);
  1798. }
  1799. }
  1800. } else {
  1801. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1802. }
  1803. });
  1804. }
  1805. return extraObj;
  1806. }
  1807. function getObjByArray(arr) {
  1808. var obj = {};
  1809. for (var i = 1; i < arr.length; i++) {
  1810. var element = arr[i];
  1811. obj[element[0]] = element[1];
  1812. }
  1813. return obj;
  1814. }
  1815. function processEventArgs(vm, event) {
  1816. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1817. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1818. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1819. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1820. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1821. // fixed 用户直接触发 mpInstance.triggerEvent
  1822. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1823. if (isCustom) {
  1824. // 自定义事件
  1825. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1826. if (!args.length) {
  1827. // 无参数,直接传入 event 或 detail 数组
  1828. if (isCustomMPEvent) {
  1829. return [event];
  1830. }
  1831. return __args__;
  1832. }
  1833. }
  1834. var extraObj = processEventExtra(vm, extra, event, __args__);
  1835. var ret = [];
  1836. args.forEach(function (arg) {
  1837. if (arg === '$event') {
  1838. if (methodName === '__set_model' && !isCustom) {
  1839. // input v-model value
  1840. ret.push(event.target.value);
  1841. } else {
  1842. if (isCustom && !isCustomMPEvent) {
  1843. ret.push(__args__[0]);
  1844. } else {
  1845. // wxcomponent 组件或内置组件
  1846. ret.push(event);
  1847. }
  1848. }
  1849. } else {
  1850. if (Array.isArray(arg) && arg[0] === 'o') {
  1851. ret.push(getObjByArray(arg));
  1852. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  1853. ret.push(extraObj[arg]);
  1854. } else {
  1855. ret.push(arg);
  1856. }
  1857. }
  1858. });
  1859. return ret;
  1860. }
  1861. var ONCE = '~';
  1862. var CUSTOM = '^';
  1863. function isMatchEventType(eventType, optType) {
  1864. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  1865. }
  1866. function getContextVm(vm) {
  1867. var $parent = vm.$parent;
  1868. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  1869. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  1870. $parent = $parent.$parent;
  1871. }
  1872. return $parent && $parent.$parent;
  1873. }
  1874. function handleEvent(event) {
  1875. var _this2 = this;
  1876. event = wrapper$1(event);
  1877. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  1878. var dataset = (event.currentTarget || event.target).dataset;
  1879. if (!dataset) {
  1880. return console.warn('事件信息不存在');
  1881. }
  1882. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  1883. if (!eventOpts) {
  1884. return console.warn('事件信息不存在');
  1885. }
  1886. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  1887. var eventType = event.type;
  1888. var ret = [];
  1889. eventOpts.forEach(function (eventOpt) {
  1890. var type = eventOpt[0];
  1891. var eventsArray = eventOpt[1];
  1892. var isCustom = type.charAt(0) === CUSTOM;
  1893. type = isCustom ? type.slice(1) : type;
  1894. var isOnce = type.charAt(0) === ONCE;
  1895. type = isOnce ? type.slice(1) : type;
  1896. if (eventsArray && isMatchEventType(eventType, type)) {
  1897. eventsArray.forEach(function (eventArray) {
  1898. var methodName = eventArray[0];
  1899. if (methodName) {
  1900. var handlerCtx = _this2.$vm;
  1901. if (handlerCtx.$options.generic) {
  1902. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  1903. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  1904. }
  1905. if (methodName === '$emit') {
  1906. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  1907. return;
  1908. }
  1909. var handler = handlerCtx[methodName];
  1910. if (!isFn(handler)) {
  1911. var _type = _this2.$vm.mpType === 'page' ? 'Page' : 'Component';
  1912. var path = _this2.route || _this2.is;
  1913. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  1914. }
  1915. if (isOnce) {
  1916. if (handler.once) {
  1917. return;
  1918. }
  1919. handler.once = true;
  1920. }
  1921. var params = processEventArgs(_this2.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  1922. params = Array.isArray(params) ? params : [];
  1923. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  1924. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  1925. // eslint-disable-next-line no-sparse-arrays
  1926. params = params.concat([,,,,,,,,,, event]);
  1927. }
  1928. ret.push(handler.apply(handlerCtx, params));
  1929. }
  1930. });
  1931. }
  1932. });
  1933. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  1934. return ret[0];
  1935. }
  1936. }
  1937. var eventChannels = {};
  1938. function getEventChannel(id) {
  1939. var eventChannel = eventChannels[id];
  1940. delete eventChannels[id];
  1941. return eventChannel;
  1942. }
  1943. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  1944. function initEventChannel() {
  1945. _vue.default.prototype.getOpenerEventChannel = function () {
  1946. // 微信小程序使用自身getOpenerEventChannel
  1947. {
  1948. return this.$scope.getOpenerEventChannel();
  1949. }
  1950. };
  1951. var callHook = _vue.default.prototype.__call_hook;
  1952. _vue.default.prototype.__call_hook = function (hook, args) {
  1953. if (hook === 'onLoad' && args && args.__id__) {
  1954. this.__eventChannel__ = getEventChannel(args.__id__);
  1955. delete args.__id__;
  1956. }
  1957. return callHook.call(this, hook, args);
  1958. };
  1959. }
  1960. function initScopedSlotsParams() {
  1961. var center = {};
  1962. var parents = {};
  1963. function currentId(fn) {
  1964. var vueIds = this.$options.propsData.vueId;
  1965. if (vueIds) {
  1966. var vueId = vueIds.split(',')[0];
  1967. fn(vueId);
  1968. }
  1969. }
  1970. _vue.default.prototype.$hasSSP = function (vueId) {
  1971. var slot = center[vueId];
  1972. if (!slot) {
  1973. parents[vueId] = this;
  1974. this.$on('hook:destroyed', function () {
  1975. delete parents[vueId];
  1976. });
  1977. }
  1978. return slot;
  1979. };
  1980. _vue.default.prototype.$getSSP = function (vueId, name, needAll) {
  1981. var slot = center[vueId];
  1982. if (slot) {
  1983. var params = slot[name] || [];
  1984. if (needAll) {
  1985. return params;
  1986. }
  1987. return params[0];
  1988. }
  1989. };
  1990. _vue.default.prototype.$setSSP = function (name, value) {
  1991. var index = 0;
  1992. currentId.call(this, function (vueId) {
  1993. var slot = center[vueId];
  1994. var params = slot[name] = slot[name] || [];
  1995. params.push(value);
  1996. index = params.length - 1;
  1997. });
  1998. return index;
  1999. };
  2000. _vue.default.prototype.$initSSP = function () {
  2001. currentId.call(this, function (vueId) {
  2002. center[vueId] = {};
  2003. });
  2004. };
  2005. _vue.default.prototype.$callSSP = function () {
  2006. currentId.call(this, function (vueId) {
  2007. if (parents[vueId]) {
  2008. parents[vueId].$forceUpdate();
  2009. }
  2010. });
  2011. };
  2012. _vue.default.mixin({
  2013. destroyed: function destroyed() {
  2014. var propsData = this.$options.propsData;
  2015. var vueId = propsData && propsData.vueId;
  2016. if (vueId) {
  2017. delete center[vueId];
  2018. delete parents[vueId];
  2019. }
  2020. }
  2021. });
  2022. }
  2023. function parseBaseApp(vm, _ref4) {
  2024. var mocks = _ref4.mocks,
  2025. initRefs = _ref4.initRefs;
  2026. initEventChannel();
  2027. {
  2028. initScopedSlotsParams();
  2029. }
  2030. if (vm.$options.store) {
  2031. _vue.default.prototype.$store = vm.$options.store;
  2032. }
  2033. uniIdMixin(_vue.default);
  2034. _vue.default.prototype.mpHost = "mp-weixin";
  2035. _vue.default.mixin({
  2036. beforeCreate: function beforeCreate() {
  2037. if (!this.$options.mpType) {
  2038. return;
  2039. }
  2040. this.mpType = this.$options.mpType;
  2041. this.$mp = (0, _defineProperty2.default)({
  2042. data: {}
  2043. }, this.mpType, this.$options.mpInstance);
  2044. this.$scope = this.$options.mpInstance;
  2045. delete this.$options.mpType;
  2046. delete this.$options.mpInstance;
  2047. if (this.mpType === 'page' && typeof getApp === 'function') {
  2048. // hack vue-i18n
  2049. var app = getApp();
  2050. if (app.$vm && app.$vm.$i18n) {
  2051. this._i18n = app.$vm.$i18n;
  2052. }
  2053. }
  2054. if (this.mpType !== 'app') {
  2055. initRefs(this);
  2056. initMocks(this, mocks);
  2057. }
  2058. }
  2059. });
  2060. var appOptions = {
  2061. onLaunch: function onLaunch(args) {
  2062. if (this.$vm) {
  2063. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2064. return;
  2065. }
  2066. {
  2067. if (wx.canIUse && !wx.canIUse('nextTick')) {
  2068. // 事实 上2.2.3 即可,简单使用 2.3.0 的 nextTick 判断
  2069. console.error('当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上');
  2070. }
  2071. }
  2072. this.$vm = vm;
  2073. this.$vm.$mp = {
  2074. app: this
  2075. };
  2076. this.$vm.$scope = this;
  2077. // vm 上也挂载 globalData
  2078. this.$vm.globalData = this.globalData;
  2079. this.$vm._isMounted = true;
  2080. this.$vm.__call_hook('mounted', args);
  2081. this.$vm.__call_hook('onLaunch', args);
  2082. }
  2083. };
  2084. // 兼容旧版本 globalData
  2085. appOptions.globalData = vm.$options.globalData || {};
  2086. // 将 methods 中的方法挂在 getApp() 中
  2087. var methods = vm.$options.methods;
  2088. if (methods) {
  2089. Object.keys(methods).forEach(function (name) {
  2090. appOptions[name] = methods[name];
  2091. });
  2092. }
  2093. initAppLocale(_vue.default, vm, normalizeLocale(wx.getAppBaseInfo().language) || LOCALE_EN);
  2094. initHooks(appOptions, hooks);
  2095. initUnknownHooks(appOptions, vm.$options);
  2096. return appOptions;
  2097. }
  2098. function parseApp(vm) {
  2099. return parseBaseApp(vm, {
  2100. mocks: mocks,
  2101. initRefs: initRefs
  2102. });
  2103. }
  2104. function createApp(vm) {
  2105. App(parseApp(vm));
  2106. return vm;
  2107. }
  2108. var encodeReserveRE = /[!'()*]/g;
  2109. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2110. return '%' + c.charCodeAt(0).toString(16);
  2111. };
  2112. var commaRE = /%2C/g;
  2113. // fixed encodeURIComponent which is more conformant to RFC3986:
  2114. // - escapes [!'()*]
  2115. // - preserve commas
  2116. var encode = function encode(str) {
  2117. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2118. };
  2119. function stringifyQuery(obj) {
  2120. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2121. var res = obj ? Object.keys(obj).map(function (key) {
  2122. var val = obj[key];
  2123. if (val === undefined) {
  2124. return '';
  2125. }
  2126. if (val === null) {
  2127. return encodeStr(key);
  2128. }
  2129. if (Array.isArray(val)) {
  2130. var result = [];
  2131. val.forEach(function (val2) {
  2132. if (val2 === undefined) {
  2133. return;
  2134. }
  2135. if (val2 === null) {
  2136. result.push(encodeStr(key));
  2137. } else {
  2138. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2139. }
  2140. });
  2141. return result.join('&');
  2142. }
  2143. return encodeStr(key) + '=' + encodeStr(val);
  2144. }).filter(function (x) {
  2145. return x.length > 0;
  2146. }).join('&') : null;
  2147. return res ? "?".concat(res) : '';
  2148. }
  2149. function parseBaseComponent(vueComponentOptions) {
  2150. var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2151. isPage = _ref5.isPage,
  2152. initRelation = _ref5.initRelation;
  2153. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2154. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2155. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2156. VueComponent = _initVueComponent2[0],
  2157. vueOptions = _initVueComponent2[1];
  2158. var options = _objectSpread({
  2159. multipleSlots: true,
  2160. // styleIsolation: 'apply-shared',
  2161. addGlobalClass: true
  2162. }, vueOptions.options || {});
  2163. {
  2164. // 微信 multipleSlots 部分情况有 bug,导致内容顺序错乱 如 u-list,提供覆盖选项
  2165. if (vueOptions['mp-weixin'] && vueOptions['mp-weixin'].options) {
  2166. Object.assign(options, vueOptions['mp-weixin'].options);
  2167. }
  2168. }
  2169. var componentOptions = {
  2170. options: options,
  2171. data: initData(vueOptions, _vue.default.prototype),
  2172. behaviors: initBehaviors(vueOptions, initBehavior),
  2173. properties: initProperties(vueOptions.props, false, vueOptions.__file, options),
  2174. lifetimes: {
  2175. attached: function attached() {
  2176. var properties = this.properties;
  2177. var options = {
  2178. mpType: isPage.call(this) ? 'page' : 'component',
  2179. mpInstance: this,
  2180. propsData: properties
  2181. };
  2182. initVueIds(properties.vueId, this);
  2183. // 处理父子关系
  2184. initRelation.call(this, {
  2185. vuePid: this._$vuePid,
  2186. vueOptions: options
  2187. });
  2188. // 初始化 vue 实例
  2189. this.$vm = new VueComponent(options);
  2190. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2191. initSlots(this.$vm, properties.vueSlots);
  2192. // 触发首次 setData
  2193. this.$vm.$mount();
  2194. },
  2195. ready: function ready() {
  2196. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2197. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2198. if (this.$vm) {
  2199. this.$vm._isMounted = true;
  2200. this.$vm.__call_hook('mounted');
  2201. this.$vm.__call_hook('onReady');
  2202. }
  2203. },
  2204. detached: function detached() {
  2205. this.$vm && this.$vm.$destroy();
  2206. }
  2207. },
  2208. pageLifetimes: {
  2209. show: function show(args) {
  2210. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2211. },
  2212. hide: function hide() {
  2213. this.$vm && this.$vm.__call_hook('onPageHide');
  2214. },
  2215. resize: function resize(size) {
  2216. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2217. }
  2218. },
  2219. methods: {
  2220. __l: handleLink,
  2221. __e: handleEvent
  2222. }
  2223. };
  2224. // externalClasses
  2225. if (vueOptions.externalClasses) {
  2226. componentOptions.externalClasses = vueOptions.externalClasses;
  2227. }
  2228. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2229. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2230. componentOptions.methods[callMethod] = function (args) {
  2231. return this.$vm[callMethod](args);
  2232. };
  2233. });
  2234. }
  2235. if (needVueOptions) {
  2236. return [componentOptions, vueOptions, VueComponent];
  2237. }
  2238. if (isPage) {
  2239. return componentOptions;
  2240. }
  2241. return [componentOptions, VueComponent];
  2242. }
  2243. function parseComponent(vueComponentOptions, needVueOptions) {
  2244. return parseBaseComponent(vueComponentOptions, {
  2245. isPage: isPage,
  2246. initRelation: initRelation
  2247. }, needVueOptions);
  2248. }
  2249. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2250. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2251. function parseBasePage(vuePageOptions) {
  2252. var _parseComponent = parseComponent(vuePageOptions, true),
  2253. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2254. pageOptions = _parseComponent2[0],
  2255. vueOptions = _parseComponent2[1];
  2256. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2257. pageOptions.methods.onLoad = function (query) {
  2258. this.options = query;
  2259. var copyQuery = Object.assign({}, query);
  2260. delete copyQuery.__id__;
  2261. this.$page = {
  2262. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2263. };
  2264. this.$vm.$mp.query = query; // 兼容 mpvue
  2265. this.$vm.__call_hook('onLoad', query);
  2266. };
  2267. {
  2268. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2269. }
  2270. {
  2271. initWorkletMethods(pageOptions.methods, vueOptions.methods);
  2272. }
  2273. return pageOptions;
  2274. }
  2275. function parsePage(vuePageOptions) {
  2276. return parseBasePage(vuePageOptions);
  2277. }
  2278. function createPage(vuePageOptions) {
  2279. {
  2280. return Component(parsePage(vuePageOptions));
  2281. }
  2282. }
  2283. function createComponent(vueOptions) {
  2284. {
  2285. return Component(parseComponent(vueOptions));
  2286. }
  2287. }
  2288. function createSubpackageApp(vm) {
  2289. var appOptions = parseApp(vm);
  2290. var app = getApp({
  2291. allowDefault: true
  2292. });
  2293. vm.$scope = app;
  2294. var globalData = app.globalData;
  2295. if (globalData) {
  2296. Object.keys(appOptions.globalData).forEach(function (name) {
  2297. if (!hasOwn(globalData, name)) {
  2298. globalData[name] = appOptions.globalData[name];
  2299. }
  2300. });
  2301. }
  2302. Object.keys(appOptions).forEach(function (name) {
  2303. if (!hasOwn(app, name)) {
  2304. app[name] = appOptions[name];
  2305. }
  2306. });
  2307. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2308. wx.onAppShow(function () {
  2309. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  2310. args[_key5] = arguments[_key5];
  2311. }
  2312. vm.__call_hook('onShow', args);
  2313. });
  2314. }
  2315. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2316. wx.onAppHide(function () {
  2317. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2318. args[_key6] = arguments[_key6];
  2319. }
  2320. vm.__call_hook('onHide', args);
  2321. });
  2322. }
  2323. if (isFn(appOptions.onLaunch)) {
  2324. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2325. vm.__call_hook('onLaunch', args);
  2326. }
  2327. return vm;
  2328. }
  2329. function createPlugin(vm) {
  2330. var appOptions = parseApp(vm);
  2331. if (isFn(appOptions.onShow) && wx.onAppShow) {
  2332. wx.onAppShow(function () {
  2333. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2334. args[_key7] = arguments[_key7];
  2335. }
  2336. vm.__call_hook('onShow', args);
  2337. });
  2338. }
  2339. if (isFn(appOptions.onHide) && wx.onAppHide) {
  2340. wx.onAppHide(function () {
  2341. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2342. args[_key8] = arguments[_key8];
  2343. }
  2344. vm.__call_hook('onHide', args);
  2345. });
  2346. }
  2347. if (isFn(appOptions.onLaunch)) {
  2348. var args = wx.getLaunchOptionsSync && wx.getLaunchOptionsSync();
  2349. vm.__call_hook('onLaunch', args);
  2350. }
  2351. return vm;
  2352. }
  2353. todos.forEach(function (todoApi) {
  2354. protocols[todoApi] = false;
  2355. });
  2356. canIUses.forEach(function (canIUseApi) {
  2357. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2358. if (!wx.canIUse(apiName)) {
  2359. protocols[canIUseApi] = false;
  2360. }
  2361. });
  2362. var uni = {};
  2363. if (typeof Proxy !== 'undefined' && "mp-weixin" !== 'app-plus') {
  2364. uni = new Proxy({}, {
  2365. get: function get(target, name) {
  2366. if (hasOwn(target, name)) {
  2367. return target[name];
  2368. }
  2369. if (baseApi[name]) {
  2370. return baseApi[name];
  2371. }
  2372. if (api[name]) {
  2373. return promisify(name, api[name]);
  2374. }
  2375. {
  2376. if (extraApi[name]) {
  2377. return promisify(name, extraApi[name]);
  2378. }
  2379. if (todoApis[name]) {
  2380. return promisify(name, todoApis[name]);
  2381. }
  2382. }
  2383. if (eventApi[name]) {
  2384. return eventApi[name];
  2385. }
  2386. return promisify(name, wrapper(name, wx[name]));
  2387. },
  2388. set: function set(target, name, value) {
  2389. target[name] = value;
  2390. return true;
  2391. }
  2392. });
  2393. } else {
  2394. Object.keys(baseApi).forEach(function (name) {
  2395. uni[name] = baseApi[name];
  2396. });
  2397. {
  2398. Object.keys(todoApis).forEach(function (name) {
  2399. uni[name] = promisify(name, todoApis[name]);
  2400. });
  2401. Object.keys(extraApi).forEach(function (name) {
  2402. uni[name] = promisify(name, extraApi[name]);
  2403. });
  2404. }
  2405. Object.keys(eventApi).forEach(function (name) {
  2406. uni[name] = eventApi[name];
  2407. });
  2408. Object.keys(api).forEach(function (name) {
  2409. uni[name] = promisify(name, api[name]);
  2410. });
  2411. Object.keys(wx).forEach(function (name) {
  2412. if (hasOwn(wx, name) || hasOwn(protocols, name)) {
  2413. uni[name] = promisify(name, wrapper(name, wx[name]));
  2414. }
  2415. });
  2416. }
  2417. wx.createApp = createApp;
  2418. wx.createPage = createPage;
  2419. wx.createComponent = createComponent;
  2420. wx.createSubpackageApp = createSubpackageApp;
  2421. wx.createPlugin = createPlugin;
  2422. var uni$1 = uni;
  2423. var _default = uni$1;
  2424. exports.default = _default;
  2425. /* 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)))
  2426. /***/ }),
  2427. /* 3 */
  2428. /*!***********************************!*\
  2429. !*** (webpack)/buildin/global.js ***!
  2430. \***********************************/
  2431. /*! no static exports found */
  2432. /***/ (function(module, exports) {
  2433. var g;
  2434. // This works in non-strict mode
  2435. g = (function() {
  2436. return this;
  2437. })();
  2438. try {
  2439. // This works if eval is allowed (see CSP)
  2440. g = g || new Function("return this")();
  2441. } catch (e) {
  2442. // This works if the window reference is available
  2443. if (typeof window === "object") g = window;
  2444. }
  2445. // g can still be undefined, but nothing to do about it...
  2446. // We return undefined, instead of nothing here, so it's
  2447. // easier to handle this case. if(!global) { ...}
  2448. module.exports = g;
  2449. /***/ }),
  2450. /* 4 */
  2451. /*!**********************************************************************!*\
  2452. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2453. \**********************************************************************/
  2454. /*! no static exports found */
  2455. /***/ (function(module, exports) {
  2456. function _interopRequireDefault(obj) {
  2457. return obj && obj.__esModule ? obj : {
  2458. "default": obj
  2459. };
  2460. }
  2461. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2462. /***/ }),
  2463. /* 5 */
  2464. /*!**************************************************************!*\
  2465. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2466. \**************************************************************/
  2467. /*! no static exports found */
  2468. /***/ (function(module, exports, __webpack_require__) {
  2469. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  2470. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 7);
  2471. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2472. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  2473. function _slicedToArray(arr, i) {
  2474. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2475. }
  2476. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2477. /***/ }),
  2478. /* 6 */
  2479. /*!***************************************************************!*\
  2480. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2481. \***************************************************************/
  2482. /*! no static exports found */
  2483. /***/ (function(module, exports) {
  2484. function _arrayWithHoles(arr) {
  2485. if (Array.isArray(arr)) return arr;
  2486. }
  2487. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2488. /***/ }),
  2489. /* 7 */
  2490. /*!*********************************************************************!*\
  2491. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2492. \*********************************************************************/
  2493. /*! no static exports found */
  2494. /***/ (function(module, exports) {
  2495. function _iterableToArrayLimit(r, l) {
  2496. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  2497. if (null != t) {
  2498. var e,
  2499. n,
  2500. i,
  2501. u,
  2502. a = [],
  2503. f = !0,
  2504. o = !1;
  2505. try {
  2506. if (i = (t = t.call(r)).next, 0 === l) {
  2507. if (Object(t) !== t) return;
  2508. f = !1;
  2509. } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) {
  2510. ;
  2511. }
  2512. } catch (r) {
  2513. o = !0, n = r;
  2514. } finally {
  2515. try {
  2516. if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
  2517. } finally {
  2518. if (o) throw n;
  2519. }
  2520. }
  2521. return a;
  2522. }
  2523. }
  2524. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2525. /***/ }),
  2526. /* 8 */
  2527. /*!***************************************************************************!*\
  2528. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2529. \***************************************************************************/
  2530. /*! no static exports found */
  2531. /***/ (function(module, exports, __webpack_require__) {
  2532. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2533. function _unsupportedIterableToArray(o, minLen) {
  2534. if (!o) return;
  2535. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2536. var n = Object.prototype.toString.call(o).slice(8, -1);
  2537. if (n === "Object" && o.constructor) n = o.constructor.name;
  2538. if (n === "Map" || n === "Set") return Array.from(o);
  2539. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2540. }
  2541. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2542. /***/ }),
  2543. /* 9 */
  2544. /*!*****************************************************************!*\
  2545. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2546. \*****************************************************************/
  2547. /*! no static exports found */
  2548. /***/ (function(module, exports) {
  2549. function _arrayLikeToArray(arr, len) {
  2550. if (len == null || len > arr.length) len = arr.length;
  2551. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2552. arr2[i] = arr[i];
  2553. }
  2554. return arr2;
  2555. }
  2556. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2557. /***/ }),
  2558. /* 10 */
  2559. /*!****************************************************************!*\
  2560. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2561. \****************************************************************/
  2562. /*! no static exports found */
  2563. /***/ (function(module, exports) {
  2564. function _nonIterableRest() {
  2565. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2566. }
  2567. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2568. /***/ }),
  2569. /* 11 */
  2570. /*!***************************************************************!*\
  2571. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2572. \***************************************************************/
  2573. /*! no static exports found */
  2574. /***/ (function(module, exports, __webpack_require__) {
  2575. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  2576. function _defineProperty(obj, key, value) {
  2577. key = toPropertyKey(key);
  2578. if (key in obj) {
  2579. Object.defineProperty(obj, key, {
  2580. value: value,
  2581. enumerable: true,
  2582. configurable: true,
  2583. writable: true
  2584. });
  2585. } else {
  2586. obj[key] = value;
  2587. }
  2588. return obj;
  2589. }
  2590. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2591. /***/ }),
  2592. /* 12 */
  2593. /*!**************************************************************!*\
  2594. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2595. \**************************************************************/
  2596. /*! no static exports found */
  2597. /***/ (function(module, exports, __webpack_require__) {
  2598. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2599. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 14);
  2600. function toPropertyKey(t) {
  2601. var i = toPrimitive(t, "string");
  2602. return "symbol" == _typeof(i) ? i : i + "";
  2603. }
  2604. module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2605. /***/ }),
  2606. /* 13 */
  2607. /*!*******************************************************!*\
  2608. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2609. \*******************************************************/
  2610. /*! no static exports found */
  2611. /***/ (function(module, exports) {
  2612. function _typeof(o) {
  2613. "@babel/helpers - typeof";
  2614. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  2615. return typeof o;
  2616. } : function (o) {
  2617. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  2618. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
  2619. }
  2620. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2621. /***/ }),
  2622. /* 14 */
  2623. /*!************************************************************!*\
  2624. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2625. \************************************************************/
  2626. /*! no static exports found */
  2627. /***/ (function(module, exports, __webpack_require__) {
  2628. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  2629. function toPrimitive(t, r) {
  2630. if ("object" != _typeof(t) || !t) return t;
  2631. var e = t[Symbol.toPrimitive];
  2632. if (void 0 !== e) {
  2633. var i = e.call(t, r || "default");
  2634. if ("object" != _typeof(i)) return i;
  2635. throw new TypeError("@@toPrimitive must return a primitive value.");
  2636. }
  2637. return ("string" === r ? String : Number)(t);
  2638. }
  2639. module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2640. /***/ }),
  2641. /* 15 */
  2642. /*!**********************************************************!*\
  2643. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2644. \**********************************************************/
  2645. /*! no static exports found */
  2646. /***/ (function(module, exports, __webpack_require__) {
  2647. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 16);
  2648. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 17);
  2649. function _construct(t, e, r) {
  2650. if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
  2651. var o = [null];
  2652. o.push.apply(o, e);
  2653. var p = new (t.bind.apply(t, o))();
  2654. return r && setPrototypeOf(p, r.prototype), p;
  2655. }
  2656. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2657. /***/ }),
  2658. /* 16 */
  2659. /*!***************************************************************!*\
  2660. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2661. \***************************************************************/
  2662. /*! no static exports found */
  2663. /***/ (function(module, exports) {
  2664. function _setPrototypeOf(o, p) {
  2665. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2666. o.__proto__ = p;
  2667. return o;
  2668. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2669. return _setPrototypeOf(o, p);
  2670. }
  2671. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2672. /***/ }),
  2673. /* 17 */
  2674. /*!*************************************************************************!*\
  2675. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2676. \*************************************************************************/
  2677. /*! no static exports found */
  2678. /***/ (function(module, exports) {
  2679. function _isNativeReflectConstruct() {
  2680. try {
  2681. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  2682. } catch (t) {}
  2683. return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
  2684. return !!t;
  2685. }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
  2686. }
  2687. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2688. /***/ }),
  2689. /* 18 */
  2690. /*!******************************************************************!*\
  2691. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  2692. \******************************************************************/
  2693. /*! no static exports found */
  2694. /***/ (function(module, exports, __webpack_require__) {
  2695. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 19);
  2696. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  2697. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  2698. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 21);
  2699. function _toConsumableArray(arr) {
  2700. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  2701. }
  2702. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2703. /***/ }),
  2704. /* 19 */
  2705. /*!******************************************************************!*\
  2706. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  2707. \******************************************************************/
  2708. /*! no static exports found */
  2709. /***/ (function(module, exports, __webpack_require__) {
  2710. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 9);
  2711. function _arrayWithoutHoles(arr) {
  2712. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  2713. }
  2714. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2715. /***/ }),
  2716. /* 20 */
  2717. /*!****************************************************************!*\
  2718. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  2719. \****************************************************************/
  2720. /*! no static exports found */
  2721. /***/ (function(module, exports) {
  2722. function _iterableToArray(iter) {
  2723. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  2724. }
  2725. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2726. /***/ }),
  2727. /* 21 */
  2728. /*!******************************************************************!*\
  2729. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  2730. \******************************************************************/
  2731. /*! no static exports found */
  2732. /***/ (function(module, exports) {
  2733. function _nonIterableSpread() {
  2734. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2735. }
  2736. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2737. /***/ }),
  2738. /* 22 */
  2739. /*!*************************************************************!*\
  2740. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  2741. \*************************************************************/
  2742. /*! no static exports found */
  2743. /***/ (function(module, exports, __webpack_require__) {
  2744. "use strict";
  2745. /* WEBPACK VAR INJECTION */(function(uni, global) {
  2746. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  2747. Object.defineProperty(exports, "__esModule", {
  2748. value: true
  2749. });
  2750. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  2751. exports.compileI18nJsonStr = compileI18nJsonStr;
  2752. exports.hasI18nJson = hasI18nJson;
  2753. exports.initVueI18n = initVueI18n;
  2754. exports.isI18nStr = isI18nStr;
  2755. exports.isString = void 0;
  2756. exports.normalizeLocale = normalizeLocale;
  2757. exports.parseI18nJson = parseI18nJson;
  2758. exports.resolveLocale = resolveLocale;
  2759. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  2760. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  2761. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  2762. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  2763. var isObject = function isObject(val) {
  2764. return val !== null && (0, _typeof2.default)(val) === 'object';
  2765. };
  2766. var defaultDelimiters = ['{', '}'];
  2767. var BaseFormatter = /*#__PURE__*/function () {
  2768. function BaseFormatter() {
  2769. (0, _classCallCheck2.default)(this, BaseFormatter);
  2770. this._caches = Object.create(null);
  2771. }
  2772. (0, _createClass2.default)(BaseFormatter, [{
  2773. key: "interpolate",
  2774. value: function interpolate(message, values) {
  2775. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  2776. if (!values) {
  2777. return [message];
  2778. }
  2779. var tokens = this._caches[message];
  2780. if (!tokens) {
  2781. tokens = parse(message, delimiters);
  2782. this._caches[message] = tokens;
  2783. }
  2784. return compile(tokens, values);
  2785. }
  2786. }]);
  2787. return BaseFormatter;
  2788. }();
  2789. exports.Formatter = BaseFormatter;
  2790. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  2791. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  2792. function parse(format, _ref) {
  2793. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  2794. startDelimiter = _ref2[0],
  2795. endDelimiter = _ref2[1];
  2796. var tokens = [];
  2797. var position = 0;
  2798. var text = '';
  2799. while (position < format.length) {
  2800. var char = format[position++];
  2801. if (char === startDelimiter) {
  2802. if (text) {
  2803. tokens.push({
  2804. type: 'text',
  2805. value: text
  2806. });
  2807. }
  2808. text = '';
  2809. var sub = '';
  2810. char = format[position++];
  2811. while (char !== undefined && char !== endDelimiter) {
  2812. sub += char;
  2813. char = format[position++];
  2814. }
  2815. var isClosed = char === endDelimiter;
  2816. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  2817. tokens.push({
  2818. value: sub,
  2819. type: type
  2820. });
  2821. }
  2822. // else if (char === '%') {
  2823. // // when found rails i18n syntax, skip text capture
  2824. // if (format[position] !== '{') {
  2825. // text += char
  2826. // }
  2827. // }
  2828. else {
  2829. text += char;
  2830. }
  2831. }
  2832. text && tokens.push({
  2833. type: 'text',
  2834. value: text
  2835. });
  2836. return tokens;
  2837. }
  2838. function compile(tokens, values) {
  2839. var compiled = [];
  2840. var index = 0;
  2841. var mode = Array.isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  2842. if (mode === 'unknown') {
  2843. return compiled;
  2844. }
  2845. while (index < tokens.length) {
  2846. var token = tokens[index];
  2847. switch (token.type) {
  2848. case 'text':
  2849. compiled.push(token.value);
  2850. break;
  2851. case 'list':
  2852. compiled.push(values[parseInt(token.value, 10)]);
  2853. break;
  2854. case 'named':
  2855. if (mode === 'named') {
  2856. compiled.push(values[token.value]);
  2857. } else {
  2858. if (true) {
  2859. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  2860. }
  2861. }
  2862. break;
  2863. case 'unknown':
  2864. if (true) {
  2865. console.warn("Detect 'unknown' type of token!");
  2866. }
  2867. break;
  2868. }
  2869. index++;
  2870. }
  2871. return compiled;
  2872. }
  2873. var LOCALE_ZH_HANS = 'zh-Hans';
  2874. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  2875. var LOCALE_ZH_HANT = 'zh-Hant';
  2876. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  2877. var LOCALE_EN = 'en';
  2878. exports.LOCALE_EN = LOCALE_EN;
  2879. var LOCALE_FR = 'fr';
  2880. exports.LOCALE_FR = LOCALE_FR;
  2881. var LOCALE_ES = 'es';
  2882. exports.LOCALE_ES = LOCALE_ES;
  2883. var hasOwnProperty = Object.prototype.hasOwnProperty;
  2884. var hasOwn = function hasOwn(val, key) {
  2885. return hasOwnProperty.call(val, key);
  2886. };
  2887. var defaultFormatter = new BaseFormatter();
  2888. function include(str, parts) {
  2889. return !!parts.find(function (part) {
  2890. return str.indexOf(part) !== -1;
  2891. });
  2892. }
  2893. function startsWith(str, parts) {
  2894. return parts.find(function (part) {
  2895. return str.indexOf(part) === 0;
  2896. });
  2897. }
  2898. function normalizeLocale(locale, messages) {
  2899. if (!locale) {
  2900. return;
  2901. }
  2902. locale = locale.trim().replace(/_/g, '-');
  2903. if (messages && messages[locale]) {
  2904. return locale;
  2905. }
  2906. locale = locale.toLowerCase();
  2907. if (locale === 'chinese') {
  2908. // 支付宝
  2909. return LOCALE_ZH_HANS;
  2910. }
  2911. if (locale.indexOf('zh') === 0) {
  2912. if (locale.indexOf('-hans') > -1) {
  2913. return LOCALE_ZH_HANS;
  2914. }
  2915. if (locale.indexOf('-hant') > -1) {
  2916. return LOCALE_ZH_HANT;
  2917. }
  2918. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  2919. return LOCALE_ZH_HANT;
  2920. }
  2921. return LOCALE_ZH_HANS;
  2922. }
  2923. var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES];
  2924. if (messages && Object.keys(messages).length > 0) {
  2925. locales = Object.keys(messages);
  2926. }
  2927. var lang = startsWith(locale, locales);
  2928. if (lang) {
  2929. return lang;
  2930. }
  2931. }
  2932. var I18n = /*#__PURE__*/function () {
  2933. function I18n(_ref3) {
  2934. var locale = _ref3.locale,
  2935. fallbackLocale = _ref3.fallbackLocale,
  2936. messages = _ref3.messages,
  2937. watcher = _ref3.watcher,
  2938. formater = _ref3.formater;
  2939. (0, _classCallCheck2.default)(this, I18n);
  2940. this.locale = LOCALE_EN;
  2941. this.fallbackLocale = LOCALE_EN;
  2942. this.message = {};
  2943. this.messages = {};
  2944. this.watchers = [];
  2945. if (fallbackLocale) {
  2946. this.fallbackLocale = fallbackLocale;
  2947. }
  2948. this.formater = formater || defaultFormatter;
  2949. this.messages = messages || {};
  2950. this.setLocale(locale || LOCALE_EN);
  2951. if (watcher) {
  2952. this.watchLocale(watcher);
  2953. }
  2954. }
  2955. (0, _createClass2.default)(I18n, [{
  2956. key: "setLocale",
  2957. value: function setLocale(locale) {
  2958. var _this = this;
  2959. var oldLocale = this.locale;
  2960. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  2961. if (!this.messages[this.locale]) {
  2962. // 可能初始化时不存在
  2963. this.messages[this.locale] = {};
  2964. }
  2965. this.message = this.messages[this.locale];
  2966. // 仅发生变化时,通知
  2967. if (oldLocale !== this.locale) {
  2968. this.watchers.forEach(function (watcher) {
  2969. watcher(_this.locale, oldLocale);
  2970. });
  2971. }
  2972. }
  2973. }, {
  2974. key: "getLocale",
  2975. value: function getLocale() {
  2976. return this.locale;
  2977. }
  2978. }, {
  2979. key: "watchLocale",
  2980. value: function watchLocale(fn) {
  2981. var _this2 = this;
  2982. var index = this.watchers.push(fn) - 1;
  2983. return function () {
  2984. _this2.watchers.splice(index, 1);
  2985. };
  2986. }
  2987. }, {
  2988. key: "add",
  2989. value: function add(locale, message) {
  2990. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  2991. var curMessages = this.messages[locale];
  2992. if (curMessages) {
  2993. if (override) {
  2994. Object.assign(curMessages, message);
  2995. } else {
  2996. Object.keys(message).forEach(function (key) {
  2997. if (!hasOwn(curMessages, key)) {
  2998. curMessages[key] = message[key];
  2999. }
  3000. });
  3001. }
  3002. } else {
  3003. this.messages[locale] = message;
  3004. }
  3005. }
  3006. }, {
  3007. key: "f",
  3008. value: function f(message, values, delimiters) {
  3009. return this.formater.interpolate(message, values, delimiters).join('');
  3010. }
  3011. }, {
  3012. key: "t",
  3013. value: function t(key, locale, values) {
  3014. var message = this.message;
  3015. if (typeof locale === 'string') {
  3016. locale = normalizeLocale(locale, this.messages);
  3017. locale && (message = this.messages[locale]);
  3018. } else {
  3019. values = locale;
  3020. }
  3021. if (!hasOwn(message, key)) {
  3022. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3023. return key;
  3024. }
  3025. return this.formater.interpolate(message[key], values).join('');
  3026. }
  3027. }]);
  3028. return I18n;
  3029. }();
  3030. exports.I18n = I18n;
  3031. function watchAppLocale(appVm, i18n) {
  3032. // 需要保证 watch 的触发在组件渲染之前
  3033. if (appVm.$watchLocale) {
  3034. // vue2
  3035. appVm.$watchLocale(function (newLocale) {
  3036. i18n.setLocale(newLocale);
  3037. });
  3038. } else {
  3039. appVm.$watch(function () {
  3040. return appVm.$locale;
  3041. }, function (newLocale) {
  3042. i18n.setLocale(newLocale);
  3043. });
  3044. }
  3045. }
  3046. function getDefaultLocale() {
  3047. if (typeof uni !== 'undefined' && uni.getLocale) {
  3048. return uni.getLocale();
  3049. }
  3050. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3051. if (typeof global !== 'undefined' && global.getLocale) {
  3052. return global.getLocale();
  3053. }
  3054. return LOCALE_EN;
  3055. }
  3056. function initVueI18n(locale) {
  3057. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3058. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3059. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3060. // 兼容旧版本入参
  3061. if (typeof locale !== 'string') {
  3062. var _ref4 = [messages, locale];
  3063. locale = _ref4[0];
  3064. messages = _ref4[1];
  3065. }
  3066. if (typeof locale !== 'string') {
  3067. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3068. locale = getDefaultLocale();
  3069. }
  3070. if (typeof fallbackLocale !== 'string') {
  3071. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3072. }
  3073. var i18n = new I18n({
  3074. locale: locale,
  3075. fallbackLocale: fallbackLocale,
  3076. messages: messages,
  3077. watcher: watcher
  3078. });
  3079. var _t = function t(key, values) {
  3080. if (typeof getApp !== 'function') {
  3081. // app view
  3082. /* eslint-disable no-func-assign */
  3083. _t = function t(key, values) {
  3084. return i18n.t(key, values);
  3085. };
  3086. } else {
  3087. var isWatchedAppLocale = false;
  3088. _t = function t(key, values) {
  3089. var appVm = getApp().$vm;
  3090. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3091. // options: {
  3092. // type: Array,
  3093. // default () {
  3094. // return [{
  3095. // icon: 'shop',
  3096. // text: t("uni-goods-nav.options.shop"),
  3097. // }, {
  3098. // icon: 'cart',
  3099. // text: t("uni-goods-nav.options.cart")
  3100. // }]
  3101. // }
  3102. // },
  3103. if (appVm) {
  3104. // 触发响应式
  3105. appVm.$locale;
  3106. if (!isWatchedAppLocale) {
  3107. isWatchedAppLocale = true;
  3108. watchAppLocale(appVm, i18n);
  3109. }
  3110. }
  3111. return i18n.t(key, values);
  3112. };
  3113. }
  3114. return _t(key, values);
  3115. };
  3116. return {
  3117. i18n: i18n,
  3118. f: function f(message, values, delimiters) {
  3119. return i18n.f(message, values, delimiters);
  3120. },
  3121. t: function t(key, values) {
  3122. return _t(key, values);
  3123. },
  3124. add: function add(locale, message) {
  3125. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3126. return i18n.add(locale, message, override);
  3127. },
  3128. watch: function watch(fn) {
  3129. return i18n.watchLocale(fn);
  3130. },
  3131. getLocale: function getLocale() {
  3132. return i18n.getLocale();
  3133. },
  3134. setLocale: function setLocale(newLocale) {
  3135. return i18n.setLocale(newLocale);
  3136. }
  3137. };
  3138. }
  3139. var isString = function isString(val) {
  3140. return typeof val === 'string';
  3141. };
  3142. exports.isString = isString;
  3143. var formater;
  3144. function hasI18nJson(jsonObj, delimiters) {
  3145. if (!formater) {
  3146. formater = new BaseFormatter();
  3147. }
  3148. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3149. var value = jsonObj[key];
  3150. if (isString(value)) {
  3151. if (isI18nStr(value, delimiters)) {
  3152. return true;
  3153. }
  3154. } else {
  3155. return hasI18nJson(value, delimiters);
  3156. }
  3157. });
  3158. }
  3159. function parseI18nJson(jsonObj, values, delimiters) {
  3160. if (!formater) {
  3161. formater = new BaseFormatter();
  3162. }
  3163. walkJsonObj(jsonObj, function (jsonObj, key) {
  3164. var value = jsonObj[key];
  3165. if (isString(value)) {
  3166. if (isI18nStr(value, delimiters)) {
  3167. jsonObj[key] = compileStr(value, values, delimiters);
  3168. }
  3169. } else {
  3170. parseI18nJson(value, values, delimiters);
  3171. }
  3172. });
  3173. return jsonObj;
  3174. }
  3175. function compileI18nJsonStr(jsonStr, _ref5) {
  3176. var locale = _ref5.locale,
  3177. locales = _ref5.locales,
  3178. delimiters = _ref5.delimiters;
  3179. if (!isI18nStr(jsonStr, delimiters)) {
  3180. return jsonStr;
  3181. }
  3182. if (!formater) {
  3183. formater = new BaseFormatter();
  3184. }
  3185. var localeValues = [];
  3186. Object.keys(locales).forEach(function (name) {
  3187. if (name !== locale) {
  3188. localeValues.push({
  3189. locale: name,
  3190. values: locales[name]
  3191. });
  3192. }
  3193. });
  3194. localeValues.unshift({
  3195. locale: locale,
  3196. values: locales[locale]
  3197. });
  3198. try {
  3199. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3200. } catch (e) {}
  3201. return jsonStr;
  3202. }
  3203. function isI18nStr(value, delimiters) {
  3204. return value.indexOf(delimiters[0]) > -1;
  3205. }
  3206. function compileStr(value, values, delimiters) {
  3207. return formater.interpolate(value, values, delimiters).join('');
  3208. }
  3209. function compileValue(jsonObj, key, localeValues, delimiters) {
  3210. var value = jsonObj[key];
  3211. if (isString(value)) {
  3212. // 存在国际化
  3213. if (isI18nStr(value, delimiters)) {
  3214. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3215. if (localeValues.length > 1) {
  3216. // 格式化国际化语言
  3217. var valueLocales = jsonObj[key + 'Locales'] = {};
  3218. localeValues.forEach(function (localValue) {
  3219. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3220. });
  3221. }
  3222. }
  3223. } else {
  3224. compileJsonObj(value, localeValues, delimiters);
  3225. }
  3226. }
  3227. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3228. walkJsonObj(jsonObj, function (jsonObj, key) {
  3229. compileValue(jsonObj, key, localeValues, delimiters);
  3230. });
  3231. return jsonObj;
  3232. }
  3233. function walkJsonObj(jsonObj, walk) {
  3234. if (Array.isArray(jsonObj)) {
  3235. for (var i = 0; i < jsonObj.length; i++) {
  3236. if (walk(jsonObj, i)) {
  3237. return true;
  3238. }
  3239. }
  3240. } else if (isObject(jsonObj)) {
  3241. for (var key in jsonObj) {
  3242. if (walk(jsonObj, key)) {
  3243. return true;
  3244. }
  3245. }
  3246. }
  3247. return false;
  3248. }
  3249. function resolveLocale(locales) {
  3250. return function (locale) {
  3251. if (!locale) {
  3252. return locale;
  3253. }
  3254. locale = normalizeLocale(locale) || locale;
  3255. return resolveLocaleChain(locale).find(function (locale) {
  3256. return locales.indexOf(locale) > -1;
  3257. });
  3258. };
  3259. }
  3260. function resolveLocaleChain(locale) {
  3261. var chain = [];
  3262. var tokens = locale.split('-');
  3263. while (tokens.length) {
  3264. chain.push(tokens.join('-'));
  3265. tokens.pop();
  3266. }
  3267. return chain;
  3268. }
  3269. /* 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)))
  3270. /***/ }),
  3271. /* 23 */
  3272. /*!***************************************************************!*\
  3273. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3274. \***************************************************************/
  3275. /*! no static exports found */
  3276. /***/ (function(module, exports) {
  3277. function _classCallCheck(instance, Constructor) {
  3278. if (!(instance instanceof Constructor)) {
  3279. throw new TypeError("Cannot call a class as a function");
  3280. }
  3281. }
  3282. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3283. /***/ }),
  3284. /* 24 */
  3285. /*!************************************************************!*\
  3286. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3287. \************************************************************/
  3288. /*! no static exports found */
  3289. /***/ (function(module, exports, __webpack_require__) {
  3290. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 12);
  3291. function _defineProperties(target, props) {
  3292. for (var i = 0; i < props.length; i++) {
  3293. var descriptor = props[i];
  3294. descriptor.enumerable = descriptor.enumerable || false;
  3295. descriptor.configurable = true;
  3296. if ("value" in descriptor) descriptor.writable = true;
  3297. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3298. }
  3299. }
  3300. function _createClass(Constructor, protoProps, staticProps) {
  3301. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3302. if (staticProps) _defineProperties(Constructor, staticProps);
  3303. Object.defineProperty(Constructor, "prototype", {
  3304. writable: false
  3305. });
  3306. return Constructor;
  3307. }
  3308. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3309. /***/ }),
  3310. /* 25 */
  3311. /*!******************************************************************************************!*\
  3312. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3313. \******************************************************************************************/
  3314. /*! exports provided: default */
  3315. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3316. "use strict";
  3317. __webpack_require__.r(__webpack_exports__);
  3318. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3319. * Vue.js v2.6.11
  3320. * (c) 2014-2024 Evan You
  3321. * Released under the MIT License.
  3322. */
  3323. /* */
  3324. var emptyObject = Object.freeze({});
  3325. // These helpers produce better VM code in JS engines due to their
  3326. // explicitness and function inlining.
  3327. function isUndef (v) {
  3328. return v === undefined || v === null
  3329. }
  3330. function isDef (v) {
  3331. return v !== undefined && v !== null
  3332. }
  3333. function isTrue (v) {
  3334. return v === true
  3335. }
  3336. function isFalse (v) {
  3337. return v === false
  3338. }
  3339. /**
  3340. * Check if value is primitive.
  3341. */
  3342. function isPrimitive (value) {
  3343. return (
  3344. typeof value === 'string' ||
  3345. typeof value === 'number' ||
  3346. // $flow-disable-line
  3347. typeof value === 'symbol' ||
  3348. typeof value === 'boolean'
  3349. )
  3350. }
  3351. /**
  3352. * Quick object check - this is primarily used to tell
  3353. * Objects from primitive values when we know the value
  3354. * is a JSON-compliant type.
  3355. */
  3356. function isObject (obj) {
  3357. return obj !== null && typeof obj === 'object'
  3358. }
  3359. /**
  3360. * Get the raw type string of a value, e.g., [object Object].
  3361. */
  3362. var _toString = Object.prototype.toString;
  3363. function toRawType (value) {
  3364. return _toString.call(value).slice(8, -1)
  3365. }
  3366. /**
  3367. * Strict object type check. Only returns true
  3368. * for plain JavaScript objects.
  3369. */
  3370. function isPlainObject (obj) {
  3371. return _toString.call(obj) === '[object Object]'
  3372. }
  3373. function isRegExp (v) {
  3374. return _toString.call(v) === '[object RegExp]'
  3375. }
  3376. /**
  3377. * Check if val is a valid array index.
  3378. */
  3379. function isValidArrayIndex (val) {
  3380. var n = parseFloat(String(val));
  3381. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3382. }
  3383. function isPromise (val) {
  3384. return (
  3385. isDef(val) &&
  3386. typeof val.then === 'function' &&
  3387. typeof val.catch === 'function'
  3388. )
  3389. }
  3390. /**
  3391. * Convert a value to a string that is actually rendered.
  3392. */
  3393. function toString (val) {
  3394. return val == null
  3395. ? ''
  3396. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3397. ? JSON.stringify(val, null, 2)
  3398. : String(val)
  3399. }
  3400. /**
  3401. * Convert an input value to a number for persistence.
  3402. * If the conversion fails, return original string.
  3403. */
  3404. function toNumber (val) {
  3405. var n = parseFloat(val);
  3406. return isNaN(n) ? val : n
  3407. }
  3408. /**
  3409. * Make a map and return a function for checking if a key
  3410. * is in that map.
  3411. */
  3412. function makeMap (
  3413. str,
  3414. expectsLowerCase
  3415. ) {
  3416. var map = Object.create(null);
  3417. var list = str.split(',');
  3418. for (var i = 0; i < list.length; i++) {
  3419. map[list[i]] = true;
  3420. }
  3421. return expectsLowerCase
  3422. ? function (val) { return map[val.toLowerCase()]; }
  3423. : function (val) { return map[val]; }
  3424. }
  3425. /**
  3426. * Check if a tag is a built-in tag.
  3427. */
  3428. var isBuiltInTag = makeMap('slot,component', true);
  3429. /**
  3430. * Check if an attribute is a reserved attribute.
  3431. */
  3432. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3433. /**
  3434. * Remove an item from an array.
  3435. */
  3436. function remove (arr, item) {
  3437. if (arr.length) {
  3438. var index = arr.indexOf(item);
  3439. if (index > -1) {
  3440. return arr.splice(index, 1)
  3441. }
  3442. }
  3443. }
  3444. /**
  3445. * Check whether an object has the property.
  3446. */
  3447. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3448. function hasOwn (obj, key) {
  3449. return hasOwnProperty.call(obj, key)
  3450. }
  3451. /**
  3452. * Create a cached version of a pure function.
  3453. */
  3454. function cached (fn) {
  3455. var cache = Object.create(null);
  3456. return (function cachedFn (str) {
  3457. var hit = cache[str];
  3458. return hit || (cache[str] = fn(str))
  3459. })
  3460. }
  3461. /**
  3462. * Camelize a hyphen-delimited string.
  3463. */
  3464. var camelizeRE = /-(\w)/g;
  3465. var camelize = cached(function (str) {
  3466. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3467. });
  3468. /**
  3469. * Capitalize a string.
  3470. */
  3471. var capitalize = cached(function (str) {
  3472. return str.charAt(0).toUpperCase() + str.slice(1)
  3473. });
  3474. /**
  3475. * Hyphenate a camelCase string.
  3476. */
  3477. var hyphenateRE = /\B([A-Z])/g;
  3478. var hyphenate = cached(function (str) {
  3479. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3480. });
  3481. /**
  3482. * Simple bind polyfill for environments that do not support it,
  3483. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3484. * since native bind is now performant enough in most browsers.
  3485. * But removing it would mean breaking code that was able to run in
  3486. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3487. */
  3488. /* istanbul ignore next */
  3489. function polyfillBind (fn, ctx) {
  3490. function boundFn (a) {
  3491. var l = arguments.length;
  3492. return l
  3493. ? l > 1
  3494. ? fn.apply(ctx, arguments)
  3495. : fn.call(ctx, a)
  3496. : fn.call(ctx)
  3497. }
  3498. boundFn._length = fn.length;
  3499. return boundFn
  3500. }
  3501. function nativeBind (fn, ctx) {
  3502. return fn.bind(ctx)
  3503. }
  3504. var bind = Function.prototype.bind
  3505. ? nativeBind
  3506. : polyfillBind;
  3507. /**
  3508. * Convert an Array-like object to a real Array.
  3509. */
  3510. function toArray (list, start) {
  3511. start = start || 0;
  3512. var i = list.length - start;
  3513. var ret = new Array(i);
  3514. while (i--) {
  3515. ret[i] = list[i + start];
  3516. }
  3517. return ret
  3518. }
  3519. /**
  3520. * Mix properties into target object.
  3521. */
  3522. function extend (to, _from) {
  3523. for (var key in _from) {
  3524. to[key] = _from[key];
  3525. }
  3526. return to
  3527. }
  3528. /**
  3529. * Merge an Array of Objects into a single Object.
  3530. */
  3531. function toObject (arr) {
  3532. var res = {};
  3533. for (var i = 0; i < arr.length; i++) {
  3534. if (arr[i]) {
  3535. extend(res, arr[i]);
  3536. }
  3537. }
  3538. return res
  3539. }
  3540. /* eslint-disable no-unused-vars */
  3541. /**
  3542. * Perform no operation.
  3543. * Stubbing args to make Flow happy without leaving useless transpiled code
  3544. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3545. */
  3546. function noop (a, b, c) {}
  3547. /**
  3548. * Always return false.
  3549. */
  3550. var no = function (a, b, c) { return false; };
  3551. /* eslint-enable no-unused-vars */
  3552. /**
  3553. * Return the same value.
  3554. */
  3555. var identity = function (_) { return _; };
  3556. /**
  3557. * Check if two values are loosely equal - that is,
  3558. * if they are plain objects, do they have the same shape?
  3559. */
  3560. function looseEqual (a, b) {
  3561. if (a === b) { return true }
  3562. var isObjectA = isObject(a);
  3563. var isObjectB = isObject(b);
  3564. if (isObjectA && isObjectB) {
  3565. try {
  3566. var isArrayA = Array.isArray(a);
  3567. var isArrayB = Array.isArray(b);
  3568. if (isArrayA && isArrayB) {
  3569. return a.length === b.length && a.every(function (e, i) {
  3570. return looseEqual(e, b[i])
  3571. })
  3572. } else if (a instanceof Date && b instanceof Date) {
  3573. return a.getTime() === b.getTime()
  3574. } else if (!isArrayA && !isArrayB) {
  3575. var keysA = Object.keys(a);
  3576. var keysB = Object.keys(b);
  3577. return keysA.length === keysB.length && keysA.every(function (key) {
  3578. return looseEqual(a[key], b[key])
  3579. })
  3580. } else {
  3581. /* istanbul ignore next */
  3582. return false
  3583. }
  3584. } catch (e) {
  3585. /* istanbul ignore next */
  3586. return false
  3587. }
  3588. } else if (!isObjectA && !isObjectB) {
  3589. return String(a) === String(b)
  3590. } else {
  3591. return false
  3592. }
  3593. }
  3594. /**
  3595. * Return the first index at which a loosely equal value can be
  3596. * found in the array (if value is a plain object, the array must
  3597. * contain an object of the same shape), or -1 if it is not present.
  3598. */
  3599. function looseIndexOf (arr, val) {
  3600. for (var i = 0; i < arr.length; i++) {
  3601. if (looseEqual(arr[i], val)) { return i }
  3602. }
  3603. return -1
  3604. }
  3605. /**
  3606. * Ensure a function is called only once.
  3607. */
  3608. function once (fn) {
  3609. var called = false;
  3610. return function () {
  3611. if (!called) {
  3612. called = true;
  3613. fn.apply(this, arguments);
  3614. }
  3615. }
  3616. }
  3617. var ASSET_TYPES = [
  3618. 'component',
  3619. 'directive',
  3620. 'filter'
  3621. ];
  3622. var LIFECYCLE_HOOKS = [
  3623. 'beforeCreate',
  3624. 'created',
  3625. 'beforeMount',
  3626. 'mounted',
  3627. 'beforeUpdate',
  3628. 'updated',
  3629. 'beforeDestroy',
  3630. 'destroyed',
  3631. 'activated',
  3632. 'deactivated',
  3633. 'errorCaptured',
  3634. 'serverPrefetch'
  3635. ];
  3636. /* */
  3637. var config = ({
  3638. /**
  3639. * Option merge strategies (used in core/util/options)
  3640. */
  3641. // $flow-disable-line
  3642. optionMergeStrategies: Object.create(null),
  3643. /**
  3644. * Whether to suppress warnings.
  3645. */
  3646. silent: false,
  3647. /**
  3648. * Show production mode tip message on boot?
  3649. */
  3650. productionTip: "development" !== 'production',
  3651. /**
  3652. * Whether to enable devtools
  3653. */
  3654. devtools: "development" !== 'production',
  3655. /**
  3656. * Whether to record perf
  3657. */
  3658. performance: false,
  3659. /**
  3660. * Error handler for watcher errors
  3661. */
  3662. errorHandler: null,
  3663. /**
  3664. * Warn handler for watcher warns
  3665. */
  3666. warnHandler: null,
  3667. /**
  3668. * Ignore certain custom elements
  3669. */
  3670. ignoredElements: [],
  3671. /**
  3672. * Custom user key aliases for v-on
  3673. */
  3674. // $flow-disable-line
  3675. keyCodes: Object.create(null),
  3676. /**
  3677. * Check if a tag is reserved so that it cannot be registered as a
  3678. * component. This is platform-dependent and may be overwritten.
  3679. */
  3680. isReservedTag: no,
  3681. /**
  3682. * Check if an attribute is reserved so that it cannot be used as a component
  3683. * prop. This is platform-dependent and may be overwritten.
  3684. */
  3685. isReservedAttr: no,
  3686. /**
  3687. * Check if a tag is an unknown element.
  3688. * Platform-dependent.
  3689. */
  3690. isUnknownElement: no,
  3691. /**
  3692. * Get the namespace of an element
  3693. */
  3694. getTagNamespace: noop,
  3695. /**
  3696. * Parse the real tag name for the specific platform.
  3697. */
  3698. parsePlatformTagName: identity,
  3699. /**
  3700. * Check if an attribute must be bound using property, e.g. value
  3701. * Platform-dependent.
  3702. */
  3703. mustUseProp: no,
  3704. /**
  3705. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  3706. * This will significantly reduce performance if set to false.
  3707. */
  3708. async: true,
  3709. /**
  3710. * Exposed for legacy reasons
  3711. */
  3712. _lifecycleHooks: LIFECYCLE_HOOKS
  3713. });
  3714. /* */
  3715. /**
  3716. * unicode letters used for parsing html tags, component names and property paths.
  3717. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  3718. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  3719. */
  3720. 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/;
  3721. /**
  3722. * Check if a string starts with $ or _
  3723. */
  3724. function isReserved (str) {
  3725. var c = (str + '').charCodeAt(0);
  3726. return c === 0x24 || c === 0x5F
  3727. }
  3728. /**
  3729. * Define a property.
  3730. */
  3731. function def (obj, key, val, enumerable) {
  3732. Object.defineProperty(obj, key, {
  3733. value: val,
  3734. enumerable: !!enumerable,
  3735. writable: true,
  3736. configurable: true
  3737. });
  3738. }
  3739. /**
  3740. * Parse simple path.
  3741. */
  3742. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  3743. function parsePath (path) {
  3744. if (bailRE.test(path)) {
  3745. return
  3746. }
  3747. var segments = path.split('.');
  3748. return function (obj) {
  3749. for (var i = 0; i < segments.length; i++) {
  3750. if (!obj) { return }
  3751. obj = obj[segments[i]];
  3752. }
  3753. return obj
  3754. }
  3755. }
  3756. /* */
  3757. // can we use __proto__?
  3758. var hasProto = '__proto__' in {};
  3759. // Browser environment sniffing
  3760. var inBrowser = typeof window !== 'undefined';
  3761. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  3762. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  3763. var UA = inBrowser && window.navigator && window.navigator.userAgent.toLowerCase();
  3764. var isIE = UA && /msie|trident/.test(UA);
  3765. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  3766. var isEdge = UA && UA.indexOf('edge/') > 0;
  3767. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  3768. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  3769. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  3770. var isPhantomJS = UA && /phantomjs/.test(UA);
  3771. var isFF = UA && UA.match(/firefox\/(\d+)/);
  3772. // Firefox has a "watch" function on Object.prototype...
  3773. var nativeWatch = ({}).watch;
  3774. if (inBrowser) {
  3775. try {
  3776. var opts = {};
  3777. Object.defineProperty(opts, 'passive', ({
  3778. get: function get () {
  3779. }
  3780. })); // https://github.com/facebook/flow/issues/285
  3781. window.addEventListener('test-passive', null, opts);
  3782. } catch (e) {}
  3783. }
  3784. // this needs to be lazy-evaled because vue may be required before
  3785. // vue-server-renderer can set VUE_ENV
  3786. var _isServer;
  3787. var isServerRendering = function () {
  3788. if (_isServer === undefined) {
  3789. /* istanbul ignore if */
  3790. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  3791. // detect presence of vue-server-renderer and avoid
  3792. // Webpack shimming the process
  3793. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  3794. } else {
  3795. _isServer = false;
  3796. }
  3797. }
  3798. return _isServer
  3799. };
  3800. // detect devtools
  3801. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  3802. /* istanbul ignore next */
  3803. function isNative (Ctor) {
  3804. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  3805. }
  3806. var hasSymbol =
  3807. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  3808. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  3809. var _Set;
  3810. /* istanbul ignore if */ // $flow-disable-line
  3811. if (typeof Set !== 'undefined' && isNative(Set)) {
  3812. // use native Set when available.
  3813. _Set = Set;
  3814. } else {
  3815. // a non-standard Set polyfill that only works with primitive keys.
  3816. _Set = /*@__PURE__*/(function () {
  3817. function Set () {
  3818. this.set = Object.create(null);
  3819. }
  3820. Set.prototype.has = function has (key) {
  3821. return this.set[key] === true
  3822. };
  3823. Set.prototype.add = function add (key) {
  3824. this.set[key] = true;
  3825. };
  3826. Set.prototype.clear = function clear () {
  3827. this.set = Object.create(null);
  3828. };
  3829. return Set;
  3830. }());
  3831. }
  3832. /* */
  3833. var warn = noop;
  3834. var tip = noop;
  3835. var generateComponentTrace = (noop); // work around flow check
  3836. var formatComponentName = (noop);
  3837. if (true) {
  3838. var hasConsole = typeof console !== 'undefined';
  3839. var classifyRE = /(?:^|[-_])(\w)/g;
  3840. var classify = function (str) { return str
  3841. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  3842. .replace(/[-_]/g, ''); };
  3843. warn = function (msg, vm) {
  3844. var trace = vm ? generateComponentTrace(vm) : '';
  3845. if (config.warnHandler) {
  3846. config.warnHandler.call(null, msg, vm, trace);
  3847. } else if (hasConsole && (!config.silent)) {
  3848. console.error(("[Vue warn]: " + msg + trace));
  3849. }
  3850. };
  3851. tip = function (msg, vm) {
  3852. if (hasConsole && (!config.silent)) {
  3853. console.warn("[Vue tip]: " + msg + (
  3854. vm ? generateComponentTrace(vm) : ''
  3855. ));
  3856. }
  3857. };
  3858. formatComponentName = function (vm, includeFile) {
  3859. if (vm.$root === vm) {
  3860. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  3861. return ('') + vm.$options.__file
  3862. }
  3863. return '<Root>'
  3864. }
  3865. var options = typeof vm === 'function' && vm.cid != null
  3866. ? vm.options
  3867. : vm._isVue
  3868. ? vm.$options || vm.constructor.options
  3869. : vm;
  3870. var name = options.name || options._componentTag;
  3871. var file = options.__file;
  3872. if (!name && file) {
  3873. var match = file.match(/([^/\\]+)\.vue$/);
  3874. name = match && match[1];
  3875. }
  3876. return (
  3877. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  3878. (file && includeFile !== false ? (" at " + file) : '')
  3879. )
  3880. };
  3881. var repeat = function (str, n) {
  3882. var res = '';
  3883. while (n) {
  3884. if (n % 2 === 1) { res += str; }
  3885. if (n > 1) { str += str; }
  3886. n >>= 1;
  3887. }
  3888. return res
  3889. };
  3890. generateComponentTrace = function (vm) {
  3891. if (vm._isVue && vm.$parent) {
  3892. var tree = [];
  3893. var currentRecursiveSequence = 0;
  3894. while (vm && vm.$options.name !== 'PageBody') {
  3895. if (tree.length > 0) {
  3896. var last = tree[tree.length - 1];
  3897. if (last.constructor === vm.constructor) {
  3898. currentRecursiveSequence++;
  3899. vm = vm.$parent;
  3900. continue
  3901. } else if (currentRecursiveSequence > 0) {
  3902. tree[tree.length - 1] = [last, currentRecursiveSequence];
  3903. currentRecursiveSequence = 0;
  3904. }
  3905. }
  3906. !vm.$options.isReserved && tree.push(vm);
  3907. vm = vm.$parent;
  3908. }
  3909. return '\n\nfound in\n\n' + tree
  3910. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  3911. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  3912. : formatComponentName(vm))); })
  3913. .join('\n')
  3914. } else {
  3915. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  3916. }
  3917. };
  3918. }
  3919. /* */
  3920. var uid = 0;
  3921. /**
  3922. * A dep is an observable that can have multiple
  3923. * directives subscribing to it.
  3924. */
  3925. var Dep = function Dep () {
  3926. this.id = uid++;
  3927. this.subs = [];
  3928. };
  3929. Dep.prototype.addSub = function addSub (sub) {
  3930. this.subs.push(sub);
  3931. };
  3932. Dep.prototype.removeSub = function removeSub (sub) {
  3933. remove(this.subs, sub);
  3934. };
  3935. Dep.prototype.depend = function depend () {
  3936. if (Dep.SharedObject.target) {
  3937. Dep.SharedObject.target.addDep(this);
  3938. }
  3939. };
  3940. Dep.prototype.notify = function notify () {
  3941. // stabilize the subscriber list first
  3942. var subs = this.subs.slice();
  3943. if ( true && !config.async) {
  3944. // subs aren't sorted in scheduler if not running async
  3945. // we need to sort them now to make sure they fire in correct
  3946. // order
  3947. subs.sort(function (a, b) { return a.id - b.id; });
  3948. }
  3949. for (var i = 0, l = subs.length; i < l; i++) {
  3950. subs[i].update();
  3951. }
  3952. };
  3953. // The current target watcher being evaluated.
  3954. // This is globally unique because only one watcher
  3955. // can be evaluated at a time.
  3956. // fixed by xxxxxx (nvue shared vuex)
  3957. /* eslint-disable no-undef */
  3958. Dep.SharedObject = {};
  3959. Dep.SharedObject.target = null;
  3960. Dep.SharedObject.targetStack = [];
  3961. function pushTarget (target) {
  3962. Dep.SharedObject.targetStack.push(target);
  3963. Dep.SharedObject.target = target;
  3964. Dep.target = target;
  3965. }
  3966. function popTarget () {
  3967. Dep.SharedObject.targetStack.pop();
  3968. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  3969. Dep.target = Dep.SharedObject.target;
  3970. }
  3971. /* */
  3972. var VNode = function VNode (
  3973. tag,
  3974. data,
  3975. children,
  3976. text,
  3977. elm,
  3978. context,
  3979. componentOptions,
  3980. asyncFactory
  3981. ) {
  3982. this.tag = tag;
  3983. this.data = data;
  3984. this.children = children;
  3985. this.text = text;
  3986. this.elm = elm;
  3987. this.ns = undefined;
  3988. this.context = context;
  3989. this.fnContext = undefined;
  3990. this.fnOptions = undefined;
  3991. this.fnScopeId = undefined;
  3992. this.key = data && data.key;
  3993. this.componentOptions = componentOptions;
  3994. this.componentInstance = undefined;
  3995. this.parent = undefined;
  3996. this.raw = false;
  3997. this.isStatic = false;
  3998. this.isRootInsert = true;
  3999. this.isComment = false;
  4000. this.isCloned = false;
  4001. this.isOnce = false;
  4002. this.asyncFactory = asyncFactory;
  4003. this.asyncMeta = undefined;
  4004. this.isAsyncPlaceholder = false;
  4005. };
  4006. var prototypeAccessors = { child: { configurable: true } };
  4007. // DEPRECATED: alias for componentInstance for backwards compat.
  4008. /* istanbul ignore next */
  4009. prototypeAccessors.child.get = function () {
  4010. return this.componentInstance
  4011. };
  4012. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4013. var createEmptyVNode = function (text) {
  4014. if ( text === void 0 ) text = '';
  4015. var node = new VNode();
  4016. node.text = text;
  4017. node.isComment = true;
  4018. return node
  4019. };
  4020. function createTextVNode (val) {
  4021. return new VNode(undefined, undefined, undefined, String(val))
  4022. }
  4023. // optimized shallow clone
  4024. // used for static nodes and slot nodes because they may be reused across
  4025. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4026. // on their elm reference.
  4027. function cloneVNode (vnode) {
  4028. var cloned = new VNode(
  4029. vnode.tag,
  4030. vnode.data,
  4031. // #7975
  4032. // clone children array to avoid mutating original in case of cloning
  4033. // a child.
  4034. vnode.children && vnode.children.slice(),
  4035. vnode.text,
  4036. vnode.elm,
  4037. vnode.context,
  4038. vnode.componentOptions,
  4039. vnode.asyncFactory
  4040. );
  4041. cloned.ns = vnode.ns;
  4042. cloned.isStatic = vnode.isStatic;
  4043. cloned.key = vnode.key;
  4044. cloned.isComment = vnode.isComment;
  4045. cloned.fnContext = vnode.fnContext;
  4046. cloned.fnOptions = vnode.fnOptions;
  4047. cloned.fnScopeId = vnode.fnScopeId;
  4048. cloned.asyncMeta = vnode.asyncMeta;
  4049. cloned.isCloned = true;
  4050. return cloned
  4051. }
  4052. /*
  4053. * not type checking this file because flow doesn't play well with
  4054. * dynamically accessing methods on Array prototype
  4055. */
  4056. var arrayProto = Array.prototype;
  4057. var arrayMethods = Object.create(arrayProto);
  4058. var methodsToPatch = [
  4059. 'push',
  4060. 'pop',
  4061. 'shift',
  4062. 'unshift',
  4063. 'splice',
  4064. 'sort',
  4065. 'reverse'
  4066. ];
  4067. /**
  4068. * Intercept mutating methods and emit events
  4069. */
  4070. methodsToPatch.forEach(function (method) {
  4071. // cache original method
  4072. var original = arrayProto[method];
  4073. def(arrayMethods, method, function mutator () {
  4074. var args = [], len = arguments.length;
  4075. while ( len-- ) args[ len ] = arguments[ len ];
  4076. var result = original.apply(this, args);
  4077. var ob = this.__ob__;
  4078. var inserted;
  4079. switch (method) {
  4080. case 'push':
  4081. case 'unshift':
  4082. inserted = args;
  4083. break
  4084. case 'splice':
  4085. inserted = args.slice(2);
  4086. break
  4087. }
  4088. if (inserted) { ob.observeArray(inserted); }
  4089. // notify change
  4090. ob.dep.notify();
  4091. return result
  4092. });
  4093. });
  4094. /* */
  4095. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4096. /**
  4097. * In some cases we may want to disable observation inside a component's
  4098. * update computation.
  4099. */
  4100. var shouldObserve = true;
  4101. function toggleObserving (value) {
  4102. shouldObserve = value;
  4103. }
  4104. /**
  4105. * Observer class that is attached to each observed
  4106. * object. Once attached, the observer converts the target
  4107. * object's property keys into getter/setters that
  4108. * collect dependencies and dispatch updates.
  4109. */
  4110. var Observer = function Observer (value) {
  4111. this.value = value;
  4112. this.dep = new Dep();
  4113. this.vmCount = 0;
  4114. def(value, '__ob__', this);
  4115. if (Array.isArray(value)) {
  4116. if (hasProto) {
  4117. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4118. if(value.push !== value.__proto__.push){
  4119. copyAugment(value, arrayMethods, arrayKeys);
  4120. } else {
  4121. protoAugment(value, arrayMethods);
  4122. }
  4123. }
  4124. } else {
  4125. copyAugment(value, arrayMethods, arrayKeys);
  4126. }
  4127. this.observeArray(value);
  4128. } else {
  4129. this.walk(value);
  4130. }
  4131. };
  4132. /**
  4133. * Walk through all properties and convert them into
  4134. * getter/setters. This method should only be called when
  4135. * value type is Object.
  4136. */
  4137. Observer.prototype.walk = function walk (obj) {
  4138. var keys = Object.keys(obj);
  4139. for (var i = 0; i < keys.length; i++) {
  4140. defineReactive$$1(obj, keys[i]);
  4141. }
  4142. };
  4143. /**
  4144. * Observe a list of Array items.
  4145. */
  4146. Observer.prototype.observeArray = function observeArray (items) {
  4147. for (var i = 0, l = items.length; i < l; i++) {
  4148. observe(items[i]);
  4149. }
  4150. };
  4151. // helpers
  4152. /**
  4153. * Augment a target Object or Array by intercepting
  4154. * the prototype chain using __proto__
  4155. */
  4156. function protoAugment (target, src) {
  4157. /* eslint-disable no-proto */
  4158. target.__proto__ = src;
  4159. /* eslint-enable no-proto */
  4160. }
  4161. /**
  4162. * Augment a target Object or Array by defining
  4163. * hidden properties.
  4164. */
  4165. /* istanbul ignore next */
  4166. function copyAugment (target, src, keys) {
  4167. for (var i = 0, l = keys.length; i < l; i++) {
  4168. var key = keys[i];
  4169. def(target, key, src[key]);
  4170. }
  4171. }
  4172. /**
  4173. * Attempt to create an observer instance for a value,
  4174. * returns the new observer if successfully observed,
  4175. * or the existing observer if the value already has one.
  4176. */
  4177. function observe (value, asRootData) {
  4178. if (!isObject(value) || value instanceof VNode) {
  4179. return
  4180. }
  4181. var ob;
  4182. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4183. ob = value.__ob__;
  4184. } else if (
  4185. shouldObserve &&
  4186. !isServerRendering() &&
  4187. (Array.isArray(value) || isPlainObject(value)) &&
  4188. Object.isExtensible(value) &&
  4189. !value._isVue &&
  4190. !value.__v_isMPComponent
  4191. ) {
  4192. ob = new Observer(value);
  4193. }
  4194. if (asRootData && ob) {
  4195. ob.vmCount++;
  4196. }
  4197. return ob
  4198. }
  4199. /**
  4200. * Define a reactive property on an Object.
  4201. */
  4202. function defineReactive$$1 (
  4203. obj,
  4204. key,
  4205. val,
  4206. customSetter,
  4207. shallow
  4208. ) {
  4209. var dep = new Dep();
  4210. var property = Object.getOwnPropertyDescriptor(obj, key);
  4211. if (property && property.configurable === false) {
  4212. return
  4213. }
  4214. // cater for pre-defined getter/setters
  4215. var getter = property && property.get;
  4216. var setter = property && property.set;
  4217. if ((!getter || setter) && arguments.length === 2) {
  4218. val = obj[key];
  4219. }
  4220. var childOb = !shallow && observe(val);
  4221. Object.defineProperty(obj, key, {
  4222. enumerable: true,
  4223. configurable: true,
  4224. get: function reactiveGetter () {
  4225. var value = getter ? getter.call(obj) : val;
  4226. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4227. dep.depend();
  4228. if (childOb) {
  4229. childOb.dep.depend();
  4230. if (Array.isArray(value)) {
  4231. dependArray(value);
  4232. }
  4233. }
  4234. }
  4235. return value
  4236. },
  4237. set: function reactiveSetter (newVal) {
  4238. var value = getter ? getter.call(obj) : val;
  4239. /* eslint-disable no-self-compare */
  4240. if (newVal === value || (newVal !== newVal && value !== value)) {
  4241. return
  4242. }
  4243. /* eslint-enable no-self-compare */
  4244. if ( true && customSetter) {
  4245. customSetter();
  4246. }
  4247. // #7981: for accessor properties without setter
  4248. if (getter && !setter) { return }
  4249. if (setter) {
  4250. setter.call(obj, newVal);
  4251. } else {
  4252. val = newVal;
  4253. }
  4254. childOb = !shallow && observe(newVal);
  4255. dep.notify();
  4256. }
  4257. });
  4258. }
  4259. /**
  4260. * Set a property on an object. Adds the new property and
  4261. * triggers change notification if the property doesn't
  4262. * already exist.
  4263. */
  4264. function set (target, key, val) {
  4265. if ( true &&
  4266. (isUndef(target) || isPrimitive(target))
  4267. ) {
  4268. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4269. }
  4270. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4271. target.length = Math.max(target.length, key);
  4272. target.splice(key, 1, val);
  4273. return val
  4274. }
  4275. if (key in target && !(key in Object.prototype)) {
  4276. target[key] = val;
  4277. return val
  4278. }
  4279. var ob = (target).__ob__;
  4280. if (target._isVue || (ob && ob.vmCount)) {
  4281. true && warn(
  4282. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4283. 'at runtime - declare it upfront in the data option.'
  4284. );
  4285. return val
  4286. }
  4287. if (!ob) {
  4288. target[key] = val;
  4289. return val
  4290. }
  4291. defineReactive$$1(ob.value, key, val);
  4292. ob.dep.notify();
  4293. return val
  4294. }
  4295. /**
  4296. * Delete a property and trigger change if necessary.
  4297. */
  4298. function del (target, key) {
  4299. if ( true &&
  4300. (isUndef(target) || isPrimitive(target))
  4301. ) {
  4302. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4303. }
  4304. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4305. target.splice(key, 1);
  4306. return
  4307. }
  4308. var ob = (target).__ob__;
  4309. if (target._isVue || (ob && ob.vmCount)) {
  4310. true && warn(
  4311. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4312. '- just set it to null.'
  4313. );
  4314. return
  4315. }
  4316. if (!hasOwn(target, key)) {
  4317. return
  4318. }
  4319. delete target[key];
  4320. if (!ob) {
  4321. return
  4322. }
  4323. ob.dep.notify();
  4324. }
  4325. /**
  4326. * Collect dependencies on array elements when the array is touched, since
  4327. * we cannot intercept array element access like property getters.
  4328. */
  4329. function dependArray (value) {
  4330. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4331. e = value[i];
  4332. e && e.__ob__ && e.__ob__.dep.depend();
  4333. if (Array.isArray(e)) {
  4334. dependArray(e);
  4335. }
  4336. }
  4337. }
  4338. /* */
  4339. /**
  4340. * Option overwriting strategies are functions that handle
  4341. * how to merge a parent option value and a child option
  4342. * value into the final value.
  4343. */
  4344. var strats = config.optionMergeStrategies;
  4345. /**
  4346. * Options with restrictions
  4347. */
  4348. if (true) {
  4349. strats.el = strats.propsData = function (parent, child, vm, key) {
  4350. if (!vm) {
  4351. warn(
  4352. "option \"" + key + "\" can only be used during instance " +
  4353. 'creation with the `new` keyword.'
  4354. );
  4355. }
  4356. return defaultStrat(parent, child)
  4357. };
  4358. }
  4359. /**
  4360. * Helper that recursively merges two data objects together.
  4361. */
  4362. function mergeData (to, from) {
  4363. if (!from) { return to }
  4364. var key, toVal, fromVal;
  4365. var keys = hasSymbol
  4366. ? Reflect.ownKeys(from)
  4367. : Object.keys(from);
  4368. for (var i = 0; i < keys.length; i++) {
  4369. key = keys[i];
  4370. // in case the object is already observed...
  4371. if (key === '__ob__') { continue }
  4372. toVal = to[key];
  4373. fromVal = from[key];
  4374. if (!hasOwn(to, key)) {
  4375. set(to, key, fromVal);
  4376. } else if (
  4377. toVal !== fromVal &&
  4378. isPlainObject(toVal) &&
  4379. isPlainObject(fromVal)
  4380. ) {
  4381. mergeData(toVal, fromVal);
  4382. }
  4383. }
  4384. return to
  4385. }
  4386. /**
  4387. * Data
  4388. */
  4389. function mergeDataOrFn (
  4390. parentVal,
  4391. childVal,
  4392. vm
  4393. ) {
  4394. if (!vm) {
  4395. // in a Vue.extend merge, both should be functions
  4396. if (!childVal) {
  4397. return parentVal
  4398. }
  4399. if (!parentVal) {
  4400. return childVal
  4401. }
  4402. // when parentVal & childVal are both present,
  4403. // we need to return a function that returns the
  4404. // merged result of both functions... no need to
  4405. // check if parentVal is a function here because
  4406. // it has to be a function to pass previous merges.
  4407. return function mergedDataFn () {
  4408. return mergeData(
  4409. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4410. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4411. )
  4412. }
  4413. } else {
  4414. return function mergedInstanceDataFn () {
  4415. // instance merge
  4416. var instanceData = typeof childVal === 'function'
  4417. ? childVal.call(vm, vm)
  4418. : childVal;
  4419. var defaultData = typeof parentVal === 'function'
  4420. ? parentVal.call(vm, vm)
  4421. : parentVal;
  4422. if (instanceData) {
  4423. return mergeData(instanceData, defaultData)
  4424. } else {
  4425. return defaultData
  4426. }
  4427. }
  4428. }
  4429. }
  4430. strats.data = function (
  4431. parentVal,
  4432. childVal,
  4433. vm
  4434. ) {
  4435. if (!vm) {
  4436. if (childVal && typeof childVal !== 'function') {
  4437. true && warn(
  4438. 'The "data" option should be a function ' +
  4439. 'that returns a per-instance value in component ' +
  4440. 'definitions.',
  4441. vm
  4442. );
  4443. return parentVal
  4444. }
  4445. return mergeDataOrFn(parentVal, childVal)
  4446. }
  4447. return mergeDataOrFn(parentVal, childVal, vm)
  4448. };
  4449. /**
  4450. * Hooks and props are merged as arrays.
  4451. */
  4452. function mergeHook (
  4453. parentVal,
  4454. childVal
  4455. ) {
  4456. var res = childVal
  4457. ? parentVal
  4458. ? parentVal.concat(childVal)
  4459. : Array.isArray(childVal)
  4460. ? childVal
  4461. : [childVal]
  4462. : parentVal;
  4463. return res
  4464. ? dedupeHooks(res)
  4465. : res
  4466. }
  4467. function dedupeHooks (hooks) {
  4468. var res = [];
  4469. for (var i = 0; i < hooks.length; i++) {
  4470. if (res.indexOf(hooks[i]) === -1) {
  4471. res.push(hooks[i]);
  4472. }
  4473. }
  4474. return res
  4475. }
  4476. LIFECYCLE_HOOKS.forEach(function (hook) {
  4477. strats[hook] = mergeHook;
  4478. });
  4479. /**
  4480. * Assets
  4481. *
  4482. * When a vm is present (instance creation), we need to do
  4483. * a three-way merge between constructor options, instance
  4484. * options and parent options.
  4485. */
  4486. function mergeAssets (
  4487. parentVal,
  4488. childVal,
  4489. vm,
  4490. key
  4491. ) {
  4492. var res = Object.create(parentVal || null);
  4493. if (childVal) {
  4494. true && assertObjectType(key, childVal, vm);
  4495. return extend(res, childVal)
  4496. } else {
  4497. return res
  4498. }
  4499. }
  4500. ASSET_TYPES.forEach(function (type) {
  4501. strats[type + 's'] = mergeAssets;
  4502. });
  4503. /**
  4504. * Watchers.
  4505. *
  4506. * Watchers hashes should not overwrite one
  4507. * another, so we merge them as arrays.
  4508. */
  4509. strats.watch = function (
  4510. parentVal,
  4511. childVal,
  4512. vm,
  4513. key
  4514. ) {
  4515. // work around Firefox's Object.prototype.watch...
  4516. if (parentVal === nativeWatch) { parentVal = undefined; }
  4517. if (childVal === nativeWatch) { childVal = undefined; }
  4518. /* istanbul ignore if */
  4519. if (!childVal) { return Object.create(parentVal || null) }
  4520. if (true) {
  4521. assertObjectType(key, childVal, vm);
  4522. }
  4523. if (!parentVal) { return childVal }
  4524. var ret = {};
  4525. extend(ret, parentVal);
  4526. for (var key$1 in childVal) {
  4527. var parent = ret[key$1];
  4528. var child = childVal[key$1];
  4529. if (parent && !Array.isArray(parent)) {
  4530. parent = [parent];
  4531. }
  4532. ret[key$1] = parent
  4533. ? parent.concat(child)
  4534. : Array.isArray(child) ? child : [child];
  4535. }
  4536. return ret
  4537. };
  4538. /**
  4539. * Other object hashes.
  4540. */
  4541. strats.props =
  4542. strats.methods =
  4543. strats.inject =
  4544. strats.computed = function (
  4545. parentVal,
  4546. childVal,
  4547. vm,
  4548. key
  4549. ) {
  4550. if (childVal && "development" !== 'production') {
  4551. assertObjectType(key, childVal, vm);
  4552. }
  4553. if (!parentVal) { return childVal }
  4554. var ret = Object.create(null);
  4555. extend(ret, parentVal);
  4556. if (childVal) { extend(ret, childVal); }
  4557. return ret
  4558. };
  4559. strats.provide = mergeDataOrFn;
  4560. /**
  4561. * Default strategy.
  4562. */
  4563. var defaultStrat = function (parentVal, childVal) {
  4564. return childVal === undefined
  4565. ? parentVal
  4566. : childVal
  4567. };
  4568. /**
  4569. * Validate component names
  4570. */
  4571. function checkComponents (options) {
  4572. for (var key in options.components) {
  4573. validateComponentName(key);
  4574. }
  4575. }
  4576. function validateComponentName (name) {
  4577. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4578. warn(
  4579. 'Invalid component name: "' + name + '". Component names ' +
  4580. 'should conform to valid custom element name in html5 specification.'
  4581. );
  4582. }
  4583. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4584. warn(
  4585. 'Do not use built-in or reserved HTML elements as component ' +
  4586. 'id: ' + name
  4587. );
  4588. }
  4589. }
  4590. /**
  4591. * Ensure all props option syntax are normalized into the
  4592. * Object-based format.
  4593. */
  4594. function normalizeProps (options, vm) {
  4595. var props = options.props;
  4596. if (!props) { return }
  4597. var res = {};
  4598. var i, val, name;
  4599. if (Array.isArray(props)) {
  4600. i = props.length;
  4601. while (i--) {
  4602. val = props[i];
  4603. if (typeof val === 'string') {
  4604. name = camelize(val);
  4605. res[name] = { type: null };
  4606. } else if (true) {
  4607. warn('props must be strings when using array syntax.');
  4608. }
  4609. }
  4610. } else if (isPlainObject(props)) {
  4611. for (var key in props) {
  4612. val = props[key];
  4613. name = camelize(key);
  4614. res[name] = isPlainObject(val)
  4615. ? val
  4616. : { type: val };
  4617. }
  4618. } else if (true) {
  4619. warn(
  4620. "Invalid value for option \"props\": expected an Array or an Object, " +
  4621. "but got " + (toRawType(props)) + ".",
  4622. vm
  4623. );
  4624. }
  4625. options.props = res;
  4626. }
  4627. /**
  4628. * Normalize all injections into Object-based format
  4629. */
  4630. function normalizeInject (options, vm) {
  4631. var inject = options.inject;
  4632. if (!inject) { return }
  4633. var normalized = options.inject = {};
  4634. if (Array.isArray(inject)) {
  4635. for (var i = 0; i < inject.length; i++) {
  4636. normalized[inject[i]] = { from: inject[i] };
  4637. }
  4638. } else if (isPlainObject(inject)) {
  4639. for (var key in inject) {
  4640. var val = inject[key];
  4641. normalized[key] = isPlainObject(val)
  4642. ? extend({ from: key }, val)
  4643. : { from: val };
  4644. }
  4645. } else if (true) {
  4646. warn(
  4647. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4648. "but got " + (toRawType(inject)) + ".",
  4649. vm
  4650. );
  4651. }
  4652. }
  4653. /**
  4654. * Normalize raw function directives into object format.
  4655. */
  4656. function normalizeDirectives (options) {
  4657. var dirs = options.directives;
  4658. if (dirs) {
  4659. for (var key in dirs) {
  4660. var def$$1 = dirs[key];
  4661. if (typeof def$$1 === 'function') {
  4662. dirs[key] = { bind: def$$1, update: def$$1 };
  4663. }
  4664. }
  4665. }
  4666. }
  4667. function assertObjectType (name, value, vm) {
  4668. if (!isPlainObject(value)) {
  4669. warn(
  4670. "Invalid value for option \"" + name + "\": expected an Object, " +
  4671. "but got " + (toRawType(value)) + ".",
  4672. vm
  4673. );
  4674. }
  4675. }
  4676. /**
  4677. * Merge two option objects into a new one.
  4678. * Core utility used in both instantiation and inheritance.
  4679. */
  4680. function mergeOptions (
  4681. parent,
  4682. child,
  4683. vm
  4684. ) {
  4685. if (true) {
  4686. checkComponents(child);
  4687. }
  4688. if (typeof child === 'function') {
  4689. child = child.options;
  4690. }
  4691. normalizeProps(child, vm);
  4692. normalizeInject(child, vm);
  4693. normalizeDirectives(child);
  4694. // Apply extends and mixins on the child options,
  4695. // but only if it is a raw options object that isn't
  4696. // the result of another mergeOptions call.
  4697. // Only merged options has the _base property.
  4698. if (!child._base) {
  4699. if (child.extends) {
  4700. parent = mergeOptions(parent, child.extends, vm);
  4701. }
  4702. if (child.mixins) {
  4703. for (var i = 0, l = child.mixins.length; i < l; i++) {
  4704. parent = mergeOptions(parent, child.mixins[i], vm);
  4705. }
  4706. }
  4707. }
  4708. var options = {};
  4709. var key;
  4710. for (key in parent) {
  4711. mergeField(key);
  4712. }
  4713. for (key in child) {
  4714. if (!hasOwn(parent, key)) {
  4715. mergeField(key);
  4716. }
  4717. }
  4718. function mergeField (key) {
  4719. var strat = strats[key] || defaultStrat;
  4720. options[key] = strat(parent[key], child[key], vm, key);
  4721. }
  4722. return options
  4723. }
  4724. /**
  4725. * Resolve an asset.
  4726. * This function is used because child instances need access
  4727. * to assets defined in its ancestor chain.
  4728. */
  4729. function resolveAsset (
  4730. options,
  4731. type,
  4732. id,
  4733. warnMissing
  4734. ) {
  4735. /* istanbul ignore if */
  4736. if (typeof id !== 'string') {
  4737. return
  4738. }
  4739. var assets = options[type];
  4740. // check local registration variations first
  4741. if (hasOwn(assets, id)) { return assets[id] }
  4742. var camelizedId = camelize(id);
  4743. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  4744. var PascalCaseId = capitalize(camelizedId);
  4745. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  4746. // fallback to prototype chain
  4747. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  4748. if ( true && warnMissing && !res) {
  4749. warn(
  4750. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  4751. options
  4752. );
  4753. }
  4754. return res
  4755. }
  4756. /* */
  4757. function validateProp (
  4758. key,
  4759. propOptions,
  4760. propsData,
  4761. vm
  4762. ) {
  4763. var prop = propOptions[key];
  4764. var absent = !hasOwn(propsData, key);
  4765. var value = propsData[key];
  4766. // boolean casting
  4767. var booleanIndex = getTypeIndex(Boolean, prop.type);
  4768. if (booleanIndex > -1) {
  4769. if (absent && !hasOwn(prop, 'default')) {
  4770. value = false;
  4771. } else if (value === '' || value === hyphenate(key)) {
  4772. // only cast empty string / same name to boolean if
  4773. // boolean has higher priority
  4774. var stringIndex = getTypeIndex(String, prop.type);
  4775. if (stringIndex < 0 || booleanIndex < stringIndex) {
  4776. value = true;
  4777. }
  4778. }
  4779. }
  4780. // check default value
  4781. if (value === undefined) {
  4782. value = getPropDefaultValue(vm, prop, key);
  4783. // since the default value is a fresh copy,
  4784. // make sure to observe it.
  4785. var prevShouldObserve = shouldObserve;
  4786. toggleObserving(true);
  4787. observe(value);
  4788. toggleObserving(prevShouldObserve);
  4789. }
  4790. if (
  4791. true
  4792. ) {
  4793. assertProp(prop, key, value, vm, absent);
  4794. }
  4795. return value
  4796. }
  4797. /**
  4798. * Get the default value of a prop.
  4799. */
  4800. function getPropDefaultValue (vm, prop, key) {
  4801. // no default, return undefined
  4802. if (!hasOwn(prop, 'default')) {
  4803. return undefined
  4804. }
  4805. var def = prop.default;
  4806. // warn against non-factory defaults for Object & Array
  4807. if ( true && isObject(def)) {
  4808. warn(
  4809. 'Invalid default value for prop "' + key + '": ' +
  4810. 'Props with type Object/Array must use a factory function ' +
  4811. 'to return the default value.',
  4812. vm
  4813. );
  4814. }
  4815. // the raw prop value was also undefined from previous render,
  4816. // return previous default value to avoid unnecessary watcher trigger
  4817. if (vm && vm.$options.propsData &&
  4818. vm.$options.propsData[key] === undefined &&
  4819. vm._props[key] !== undefined
  4820. ) {
  4821. return vm._props[key]
  4822. }
  4823. // call factory function for non-Function types
  4824. // a value is Function if its prototype is function even across different execution context
  4825. return typeof def === 'function' && getType(prop.type) !== 'Function'
  4826. ? def.call(vm)
  4827. : def
  4828. }
  4829. /**
  4830. * Assert whether a prop is valid.
  4831. */
  4832. function assertProp (
  4833. prop,
  4834. name,
  4835. value,
  4836. vm,
  4837. absent
  4838. ) {
  4839. if (prop.required && absent) {
  4840. warn(
  4841. 'Missing required prop: "' + name + '"',
  4842. vm
  4843. );
  4844. return
  4845. }
  4846. if (value == null && !prop.required) {
  4847. return
  4848. }
  4849. var type = prop.type;
  4850. var valid = !type || type === true;
  4851. var expectedTypes = [];
  4852. if (type) {
  4853. if (!Array.isArray(type)) {
  4854. type = [type];
  4855. }
  4856. for (var i = 0; i < type.length && !valid; i++) {
  4857. var assertedType = assertType(value, type[i]);
  4858. expectedTypes.push(assertedType.expectedType || '');
  4859. valid = assertedType.valid;
  4860. }
  4861. }
  4862. if (!valid) {
  4863. warn(
  4864. getInvalidTypeMessage(name, value, expectedTypes),
  4865. vm
  4866. );
  4867. return
  4868. }
  4869. var validator = prop.validator;
  4870. if (validator) {
  4871. if (!validator(value)) {
  4872. warn(
  4873. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  4874. vm
  4875. );
  4876. }
  4877. }
  4878. }
  4879. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  4880. function assertType (value, type) {
  4881. var valid;
  4882. var expectedType = getType(type);
  4883. if (simpleCheckRE.test(expectedType)) {
  4884. var t = typeof value;
  4885. valid = t === expectedType.toLowerCase();
  4886. // for primitive wrapper objects
  4887. if (!valid && t === 'object') {
  4888. valid = value instanceof type;
  4889. }
  4890. } else if (expectedType === 'Object') {
  4891. valid = isPlainObject(value);
  4892. } else if (expectedType === 'Array') {
  4893. valid = Array.isArray(value);
  4894. } else {
  4895. valid = value instanceof type;
  4896. }
  4897. return {
  4898. valid: valid,
  4899. expectedType: expectedType
  4900. }
  4901. }
  4902. /**
  4903. * Use function string name to check built-in types,
  4904. * because a simple equality check will fail when running
  4905. * across different vms / iframes.
  4906. */
  4907. function getType (fn) {
  4908. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  4909. return match ? match[1] : ''
  4910. }
  4911. function isSameType (a, b) {
  4912. return getType(a) === getType(b)
  4913. }
  4914. function getTypeIndex (type, expectedTypes) {
  4915. if (!Array.isArray(expectedTypes)) {
  4916. return isSameType(expectedTypes, type) ? 0 : -1
  4917. }
  4918. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  4919. if (isSameType(expectedTypes[i], type)) {
  4920. return i
  4921. }
  4922. }
  4923. return -1
  4924. }
  4925. function getInvalidTypeMessage (name, value, expectedTypes) {
  4926. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  4927. " Expected " + (expectedTypes.map(capitalize).join(', '));
  4928. var expectedType = expectedTypes[0];
  4929. var receivedType = toRawType(value);
  4930. var expectedValue = styleValue(value, expectedType);
  4931. var receivedValue = styleValue(value, receivedType);
  4932. // check if we need to specify expected value
  4933. if (expectedTypes.length === 1 &&
  4934. isExplicable(expectedType) &&
  4935. !isBoolean(expectedType, receivedType)) {
  4936. message += " with value " + expectedValue;
  4937. }
  4938. message += ", got " + receivedType + " ";
  4939. // check if we need to specify received value
  4940. if (isExplicable(receivedType)) {
  4941. message += "with value " + receivedValue + ".";
  4942. }
  4943. return message
  4944. }
  4945. function styleValue (value, type) {
  4946. if (type === 'String') {
  4947. return ("\"" + value + "\"")
  4948. } else if (type === 'Number') {
  4949. return ("" + (Number(value)))
  4950. } else {
  4951. return ("" + value)
  4952. }
  4953. }
  4954. function isExplicable (value) {
  4955. var explicitTypes = ['string', 'number', 'boolean'];
  4956. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  4957. }
  4958. function isBoolean () {
  4959. var args = [], len = arguments.length;
  4960. while ( len-- ) args[ len ] = arguments[ len ];
  4961. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  4962. }
  4963. /* */
  4964. function handleError (err, vm, info) {
  4965. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  4966. // See: https://github.com/vuejs/vuex/issues/1505
  4967. pushTarget();
  4968. try {
  4969. if (vm) {
  4970. var cur = vm;
  4971. while ((cur = cur.$parent)) {
  4972. var hooks = cur.$options.errorCaptured;
  4973. if (hooks) {
  4974. for (var i = 0; i < hooks.length; i++) {
  4975. try {
  4976. var capture = hooks[i].call(cur, err, vm, info) === false;
  4977. if (capture) { return }
  4978. } catch (e) {
  4979. globalHandleError(e, cur, 'errorCaptured hook');
  4980. }
  4981. }
  4982. }
  4983. }
  4984. }
  4985. globalHandleError(err, vm, info);
  4986. } finally {
  4987. popTarget();
  4988. }
  4989. }
  4990. function invokeWithErrorHandling (
  4991. handler,
  4992. context,
  4993. args,
  4994. vm,
  4995. info
  4996. ) {
  4997. var res;
  4998. try {
  4999. res = args ? handler.apply(context, args) : handler.call(context);
  5000. if (res && !res._isVue && isPromise(res) && !res._handled) {
  5001. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  5002. // issue #9511
  5003. // avoid catch triggering multiple times when nested calls
  5004. res._handled = true;
  5005. }
  5006. } catch (e) {
  5007. handleError(e, vm, info);
  5008. }
  5009. return res
  5010. }
  5011. function globalHandleError (err, vm, info) {
  5012. if (config.errorHandler) {
  5013. try {
  5014. return config.errorHandler.call(null, err, vm, info)
  5015. } catch (e) {
  5016. // if the user intentionally throws the original error in the handler,
  5017. // do not log it twice
  5018. if (e !== err) {
  5019. logError(e, null, 'config.errorHandler');
  5020. }
  5021. }
  5022. }
  5023. logError(err, vm, info);
  5024. }
  5025. function logError (err, vm, info) {
  5026. if (true) {
  5027. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5028. }
  5029. /* istanbul ignore else */
  5030. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5031. console.error(err);
  5032. } else {
  5033. throw err
  5034. }
  5035. }
  5036. /* */
  5037. var callbacks = [];
  5038. var pending = false;
  5039. function flushCallbacks () {
  5040. pending = false;
  5041. var copies = callbacks.slice(0);
  5042. callbacks.length = 0;
  5043. for (var i = 0; i < copies.length; i++) {
  5044. copies[i]();
  5045. }
  5046. }
  5047. // Here we have async deferring wrappers using microtasks.
  5048. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5049. // However, it has subtle problems when state is changed right before repaint
  5050. // (e.g. #6813, out-in transitions).
  5051. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5052. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5053. // So we now use microtasks everywhere, again.
  5054. // A major drawback of this tradeoff is that there are some scenarios
  5055. // where microtasks have too high a priority and fire in between supposedly
  5056. // sequential events (e.g. #4521, #6690, which have workarounds)
  5057. // or even between bubbling of the same event (#6566).
  5058. var timerFunc;
  5059. // The nextTick behavior leverages the microtask queue, which can be accessed
  5060. // via either native Promise.then or MutationObserver.
  5061. // MutationObserver has wider support, however it is seriously bugged in
  5062. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5063. // completely stops working after triggering a few times... so, if native
  5064. // Promise is available, we will use it:
  5065. /* istanbul ignore next, $flow-disable-line */
  5066. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5067. var p = Promise.resolve();
  5068. timerFunc = function () {
  5069. p.then(flushCallbacks);
  5070. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5071. // it can get stuck in a weird state where callbacks are pushed into the
  5072. // microtask queue but the queue isn't being flushed, until the browser
  5073. // needs to do some other work, e.g. handle a timer. Therefore we can
  5074. // "force" the microtask queue to be flushed by adding an empty timer.
  5075. if (isIOS) { setTimeout(noop); }
  5076. };
  5077. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5078. isNative(MutationObserver) ||
  5079. // PhantomJS and iOS 7.x
  5080. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5081. )) {
  5082. // Use MutationObserver where native Promise is not available,
  5083. // e.g. PhantomJS, iOS7, Android 4.4
  5084. // (#6466 MutationObserver is unreliable in IE11)
  5085. var counter = 1;
  5086. var observer = new MutationObserver(flushCallbacks);
  5087. var textNode = document.createTextNode(String(counter));
  5088. observer.observe(textNode, {
  5089. characterData: true
  5090. });
  5091. timerFunc = function () {
  5092. counter = (counter + 1) % 2;
  5093. textNode.data = String(counter);
  5094. };
  5095. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5096. // Fallback to setImmediate.
  5097. // Technically it leverages the (macro) task queue,
  5098. // but it is still a better choice than setTimeout.
  5099. timerFunc = function () {
  5100. setImmediate(flushCallbacks);
  5101. };
  5102. } else {
  5103. // Fallback to setTimeout.
  5104. timerFunc = function () {
  5105. setTimeout(flushCallbacks, 0);
  5106. };
  5107. }
  5108. function nextTick (cb, ctx) {
  5109. var _resolve;
  5110. callbacks.push(function () {
  5111. if (cb) {
  5112. try {
  5113. cb.call(ctx);
  5114. } catch (e) {
  5115. handleError(e, ctx, 'nextTick');
  5116. }
  5117. } else if (_resolve) {
  5118. _resolve(ctx);
  5119. }
  5120. });
  5121. if (!pending) {
  5122. pending = true;
  5123. timerFunc();
  5124. }
  5125. // $flow-disable-line
  5126. if (!cb && typeof Promise !== 'undefined') {
  5127. return new Promise(function (resolve) {
  5128. _resolve = resolve;
  5129. })
  5130. }
  5131. }
  5132. /* */
  5133. /* not type checking this file because flow doesn't play well with Proxy */
  5134. var initProxy;
  5135. if (true) {
  5136. var allowedGlobals = makeMap(
  5137. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5138. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5139. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5140. 'require' // for Webpack/Browserify
  5141. );
  5142. var warnNonPresent = function (target, key) {
  5143. warn(
  5144. "Property or method \"" + key + "\" is not defined on the instance but " +
  5145. 'referenced during render. Make sure that this property is reactive, ' +
  5146. 'either in the data option, or for class-based components, by ' +
  5147. 'initializing the property. ' +
  5148. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5149. target
  5150. );
  5151. };
  5152. var warnReservedPrefix = function (target, key) {
  5153. warn(
  5154. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5155. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5156. 'prevent conflicts with Vue internals. ' +
  5157. 'See: https://vuejs.org/v2/api/#data',
  5158. target
  5159. );
  5160. };
  5161. var hasProxy =
  5162. typeof Proxy !== 'undefined' && isNative(Proxy);
  5163. if (hasProxy) {
  5164. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5165. config.keyCodes = new Proxy(config.keyCodes, {
  5166. set: function set (target, key, value) {
  5167. if (isBuiltInModifier(key)) {
  5168. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5169. return false
  5170. } else {
  5171. target[key] = value;
  5172. return true
  5173. }
  5174. }
  5175. });
  5176. }
  5177. var hasHandler = {
  5178. has: function has (target, key) {
  5179. var has = key in target;
  5180. var isAllowed = allowedGlobals(key) ||
  5181. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5182. if (!has && !isAllowed) {
  5183. if (key in target.$data) { warnReservedPrefix(target, key); }
  5184. else { warnNonPresent(target, key); }
  5185. }
  5186. return has || !isAllowed
  5187. }
  5188. };
  5189. var getHandler = {
  5190. get: function get (target, key) {
  5191. if (typeof key === 'string' && !(key in target)) {
  5192. if (key in target.$data) { warnReservedPrefix(target, key); }
  5193. else { warnNonPresent(target, key); }
  5194. }
  5195. return target[key]
  5196. }
  5197. };
  5198. initProxy = function initProxy (vm) {
  5199. if (hasProxy) {
  5200. // determine which proxy handler to use
  5201. var options = vm.$options;
  5202. var handlers = options.render && options.render._withStripped
  5203. ? getHandler
  5204. : hasHandler;
  5205. vm._renderProxy = new Proxy(vm, handlers);
  5206. } else {
  5207. vm._renderProxy = vm;
  5208. }
  5209. };
  5210. }
  5211. /* */
  5212. var seenObjects = new _Set();
  5213. /**
  5214. * Recursively traverse an object to evoke all converted
  5215. * getters, so that every nested property inside the object
  5216. * is collected as a "deep" dependency.
  5217. */
  5218. function traverse (val) {
  5219. _traverse(val, seenObjects);
  5220. seenObjects.clear();
  5221. }
  5222. function _traverse (val, seen) {
  5223. var i, keys;
  5224. var isA = Array.isArray(val);
  5225. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5226. return
  5227. }
  5228. if (val.__ob__) {
  5229. var depId = val.__ob__.dep.id;
  5230. if (seen.has(depId)) {
  5231. return
  5232. }
  5233. seen.add(depId);
  5234. }
  5235. if (isA) {
  5236. i = val.length;
  5237. while (i--) { _traverse(val[i], seen); }
  5238. } else {
  5239. keys = Object.keys(val);
  5240. i = keys.length;
  5241. while (i--) { _traverse(val[keys[i]], seen); }
  5242. }
  5243. }
  5244. var mark;
  5245. var measure;
  5246. if (true) {
  5247. var perf = inBrowser && window.performance;
  5248. /* istanbul ignore if */
  5249. if (
  5250. perf &&
  5251. perf.mark &&
  5252. perf.measure &&
  5253. perf.clearMarks &&
  5254. perf.clearMeasures
  5255. ) {
  5256. mark = function (tag) { return perf.mark(tag); };
  5257. measure = function (name, startTag, endTag) {
  5258. perf.measure(name, startTag, endTag);
  5259. perf.clearMarks(startTag);
  5260. perf.clearMarks(endTag);
  5261. // perf.clearMeasures(name)
  5262. };
  5263. }
  5264. }
  5265. /* */
  5266. var normalizeEvent = cached(function (name) {
  5267. var passive = name.charAt(0) === '&';
  5268. name = passive ? name.slice(1) : name;
  5269. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5270. name = once$$1 ? name.slice(1) : name;
  5271. var capture = name.charAt(0) === '!';
  5272. name = capture ? name.slice(1) : name;
  5273. return {
  5274. name: name,
  5275. once: once$$1,
  5276. capture: capture,
  5277. passive: passive
  5278. }
  5279. });
  5280. function createFnInvoker (fns, vm) {
  5281. function invoker () {
  5282. var arguments$1 = arguments;
  5283. var fns = invoker.fns;
  5284. if (Array.isArray(fns)) {
  5285. var cloned = fns.slice();
  5286. for (var i = 0; i < cloned.length; i++) {
  5287. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5288. }
  5289. } else {
  5290. // return handler return value for single handlers
  5291. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5292. }
  5293. }
  5294. invoker.fns = fns;
  5295. return invoker
  5296. }
  5297. function updateListeners (
  5298. on,
  5299. oldOn,
  5300. add,
  5301. remove$$1,
  5302. createOnceHandler,
  5303. vm
  5304. ) {
  5305. var name, def$$1, cur, old, event;
  5306. for (name in on) {
  5307. def$$1 = cur = on[name];
  5308. old = oldOn[name];
  5309. event = normalizeEvent(name);
  5310. if (isUndef(cur)) {
  5311. true && warn(
  5312. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5313. vm
  5314. );
  5315. } else if (isUndef(old)) {
  5316. if (isUndef(cur.fns)) {
  5317. cur = on[name] = createFnInvoker(cur, vm);
  5318. }
  5319. if (isTrue(event.once)) {
  5320. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5321. }
  5322. add(event.name, cur, event.capture, event.passive, event.params);
  5323. } else if (cur !== old) {
  5324. old.fns = cur;
  5325. on[name] = old;
  5326. }
  5327. }
  5328. for (name in oldOn) {
  5329. if (isUndef(on[name])) {
  5330. event = normalizeEvent(name);
  5331. remove$$1(event.name, oldOn[name], event.capture);
  5332. }
  5333. }
  5334. }
  5335. /* */
  5336. /* */
  5337. // fixed by xxxxxx (mp properties)
  5338. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5339. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5340. if (isUndef(propOptions)) {
  5341. return res
  5342. }
  5343. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5344. var attrs = data.attrs;
  5345. var props = data.props;
  5346. if (isDef(attrs) || isDef(props)) {
  5347. for (var key in propOptions) {
  5348. var altKey = hyphenate(key);
  5349. var result = checkProp(res, props, key, altKey, true) ||
  5350. checkProp(res, attrs, key, altKey, false);
  5351. // externalClass
  5352. if (
  5353. result &&
  5354. res[key] &&
  5355. externalClasses.indexOf(altKey) !== -1 &&
  5356. context[camelize(res[key])]
  5357. ) {
  5358. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5359. res[key] = context[camelize(res[key])];
  5360. }
  5361. }
  5362. }
  5363. return res
  5364. }
  5365. function extractPropsFromVNodeData (
  5366. data,
  5367. Ctor,
  5368. tag,
  5369. context// fixed by xxxxxx
  5370. ) {
  5371. // we are only extracting raw values here.
  5372. // validation and default values are handled in the child
  5373. // component itself.
  5374. var propOptions = Ctor.options.props;
  5375. if (isUndef(propOptions)) {
  5376. // fixed by xxxxxx
  5377. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5378. }
  5379. var res = {};
  5380. var attrs = data.attrs;
  5381. var props = data.props;
  5382. if (isDef(attrs) || isDef(props)) {
  5383. for (var key in propOptions) {
  5384. var altKey = hyphenate(key);
  5385. if (true) {
  5386. var keyInLowerCase = key.toLowerCase();
  5387. if (
  5388. key !== keyInLowerCase &&
  5389. attrs && hasOwn(attrs, keyInLowerCase)
  5390. ) {
  5391. tip(
  5392. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5393. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5394. " \"" + key + "\". " +
  5395. "Note that HTML attributes are case-insensitive and camelCased " +
  5396. "props need to use their kebab-case equivalents when using in-DOM " +
  5397. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5398. );
  5399. }
  5400. }
  5401. checkProp(res, props, key, altKey, true) ||
  5402. checkProp(res, attrs, key, altKey, false);
  5403. }
  5404. }
  5405. // fixed by xxxxxx
  5406. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5407. }
  5408. function checkProp (
  5409. res,
  5410. hash,
  5411. key,
  5412. altKey,
  5413. preserve
  5414. ) {
  5415. if (isDef(hash)) {
  5416. if (hasOwn(hash, key)) {
  5417. res[key] = hash[key];
  5418. if (!preserve) {
  5419. delete hash[key];
  5420. }
  5421. return true
  5422. } else if (hasOwn(hash, altKey)) {
  5423. res[key] = hash[altKey];
  5424. if (!preserve) {
  5425. delete hash[altKey];
  5426. }
  5427. return true
  5428. }
  5429. }
  5430. return false
  5431. }
  5432. /* */
  5433. // The template compiler attempts to minimize the need for normalization by
  5434. // statically analyzing the template at compile time.
  5435. //
  5436. // For plain HTML markup, normalization can be completely skipped because the
  5437. // generated render function is guaranteed to return Array<VNode>. There are
  5438. // two cases where extra normalization is needed:
  5439. // 1. When the children contains components - because a functional component
  5440. // may return an Array instead of a single root. In this case, just a simple
  5441. // normalization is needed - if any child is an Array, we flatten the whole
  5442. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5443. // because functional components already normalize their own children.
  5444. function simpleNormalizeChildren (children) {
  5445. for (var i = 0; i < children.length; i++) {
  5446. if (Array.isArray(children[i])) {
  5447. return Array.prototype.concat.apply([], children)
  5448. }
  5449. }
  5450. return children
  5451. }
  5452. // 2. When the children contains constructs that always generated nested Arrays,
  5453. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5454. // with hand-written render functions / JSX. In such cases a full normalization
  5455. // is needed to cater to all possible types of children values.
  5456. function normalizeChildren (children) {
  5457. return isPrimitive(children)
  5458. ? [createTextVNode(children)]
  5459. : Array.isArray(children)
  5460. ? normalizeArrayChildren(children)
  5461. : undefined
  5462. }
  5463. function isTextNode (node) {
  5464. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5465. }
  5466. function normalizeArrayChildren (children, nestedIndex) {
  5467. var res = [];
  5468. var i, c, lastIndex, last;
  5469. for (i = 0; i < children.length; i++) {
  5470. c = children[i];
  5471. if (isUndef(c) || typeof c === 'boolean') { continue }
  5472. lastIndex = res.length - 1;
  5473. last = res[lastIndex];
  5474. // nested
  5475. if (Array.isArray(c)) {
  5476. if (c.length > 0) {
  5477. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5478. // merge adjacent text nodes
  5479. if (isTextNode(c[0]) && isTextNode(last)) {
  5480. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5481. c.shift();
  5482. }
  5483. res.push.apply(res, c);
  5484. }
  5485. } else if (isPrimitive(c)) {
  5486. if (isTextNode(last)) {
  5487. // merge adjacent text nodes
  5488. // this is necessary for SSR hydration because text nodes are
  5489. // essentially merged when rendered to HTML strings
  5490. res[lastIndex] = createTextVNode(last.text + c);
  5491. } else if (c !== '') {
  5492. // convert primitive to vnode
  5493. res.push(createTextVNode(c));
  5494. }
  5495. } else {
  5496. if (isTextNode(c) && isTextNode(last)) {
  5497. // merge adjacent text nodes
  5498. res[lastIndex] = createTextVNode(last.text + c.text);
  5499. } else {
  5500. // default key for nested array children (likely generated by v-for)
  5501. if (isTrue(children._isVList) &&
  5502. isDef(c.tag) &&
  5503. isUndef(c.key) &&
  5504. isDef(nestedIndex)) {
  5505. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5506. }
  5507. res.push(c);
  5508. }
  5509. }
  5510. }
  5511. return res
  5512. }
  5513. /* */
  5514. function initProvide (vm) {
  5515. var provide = vm.$options.provide;
  5516. if (provide) {
  5517. vm._provided = typeof provide === 'function'
  5518. ? provide.call(vm)
  5519. : provide;
  5520. }
  5521. }
  5522. function initInjections (vm) {
  5523. var result = resolveInject(vm.$options.inject, vm);
  5524. if (result) {
  5525. toggleObserving(false);
  5526. Object.keys(result).forEach(function (key) {
  5527. /* istanbul ignore else */
  5528. if (true) {
  5529. defineReactive$$1(vm, key, result[key], function () {
  5530. warn(
  5531. "Avoid mutating an injected value directly since the changes will be " +
  5532. "overwritten whenever the provided component re-renders. " +
  5533. "injection being mutated: \"" + key + "\"",
  5534. vm
  5535. );
  5536. });
  5537. } else {}
  5538. });
  5539. toggleObserving(true);
  5540. }
  5541. }
  5542. function resolveInject (inject, vm) {
  5543. if (inject) {
  5544. // inject is :any because flow is not smart enough to figure out cached
  5545. var result = Object.create(null);
  5546. var keys = hasSymbol
  5547. ? Reflect.ownKeys(inject)
  5548. : Object.keys(inject);
  5549. for (var i = 0; i < keys.length; i++) {
  5550. var key = keys[i];
  5551. // #6574 in case the inject object is observed...
  5552. if (key === '__ob__') { continue }
  5553. var provideKey = inject[key].from;
  5554. var source = vm;
  5555. while (source) {
  5556. if (source._provided && hasOwn(source._provided, provideKey)) {
  5557. result[key] = source._provided[provideKey];
  5558. break
  5559. }
  5560. source = source.$parent;
  5561. }
  5562. if (!source) {
  5563. if ('default' in inject[key]) {
  5564. var provideDefault = inject[key].default;
  5565. result[key] = typeof provideDefault === 'function'
  5566. ? provideDefault.call(vm)
  5567. : provideDefault;
  5568. } else if (true) {
  5569. warn(("Injection \"" + key + "\" not found"), vm);
  5570. }
  5571. }
  5572. }
  5573. return result
  5574. }
  5575. }
  5576. /* */
  5577. /**
  5578. * Runtime helper for resolving raw children VNodes into a slot object.
  5579. */
  5580. function resolveSlots (
  5581. children,
  5582. context
  5583. ) {
  5584. if (!children || !children.length) {
  5585. return {}
  5586. }
  5587. var slots = {};
  5588. for (var i = 0, l = children.length; i < l; i++) {
  5589. var child = children[i];
  5590. var data = child.data;
  5591. // remove slot attribute if the node is resolved as a Vue slot node
  5592. if (data && data.attrs && data.attrs.slot) {
  5593. delete data.attrs.slot;
  5594. }
  5595. // named slots should only be respected if the vnode was rendered in the
  5596. // same context.
  5597. if ((child.context === context || child.fnContext === context) &&
  5598. data && data.slot != null
  5599. ) {
  5600. var name = data.slot;
  5601. var slot = (slots[name] || (slots[name] = []));
  5602. if (child.tag === 'template') {
  5603. slot.push.apply(slot, child.children || []);
  5604. } else {
  5605. slot.push(child);
  5606. }
  5607. } else {
  5608. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5609. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5610. (slots['page'] || (slots['page'] = [])).push(child);
  5611. }else{
  5612. (slots.default || (slots.default = [])).push(child);
  5613. }
  5614. }
  5615. }
  5616. // ignore slots that contains only whitespace
  5617. for (var name$1 in slots) {
  5618. if (slots[name$1].every(isWhitespace)) {
  5619. delete slots[name$1];
  5620. }
  5621. }
  5622. return slots
  5623. }
  5624. function isWhitespace (node) {
  5625. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5626. }
  5627. /* */
  5628. function normalizeScopedSlots (
  5629. slots,
  5630. normalSlots,
  5631. prevSlots
  5632. ) {
  5633. var res;
  5634. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5635. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5636. var key = slots && slots.$key;
  5637. if (!slots) {
  5638. res = {};
  5639. } else if (slots._normalized) {
  5640. // fast path 1: child component re-render only, parent did not change
  5641. return slots._normalized
  5642. } else if (
  5643. isStable &&
  5644. prevSlots &&
  5645. prevSlots !== emptyObject &&
  5646. key === prevSlots.$key &&
  5647. !hasNormalSlots &&
  5648. !prevSlots.$hasNormal
  5649. ) {
  5650. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5651. // only need to normalize once
  5652. return prevSlots
  5653. } else {
  5654. res = {};
  5655. for (var key$1 in slots) {
  5656. if (slots[key$1] && key$1[0] !== '$') {
  5657. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5658. }
  5659. }
  5660. }
  5661. // expose normal slots on scopedSlots
  5662. for (var key$2 in normalSlots) {
  5663. if (!(key$2 in res)) {
  5664. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5665. }
  5666. }
  5667. // avoriaz seems to mock a non-extensible $scopedSlots object
  5668. // and when that is passed down this would cause an error
  5669. if (slots && Object.isExtensible(slots)) {
  5670. (slots)._normalized = res;
  5671. }
  5672. def(res, '$stable', isStable);
  5673. def(res, '$key', key);
  5674. def(res, '$hasNormal', hasNormalSlots);
  5675. return res
  5676. }
  5677. function normalizeScopedSlot(normalSlots, key, fn) {
  5678. var normalized = function () {
  5679. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5680. res = res && typeof res === 'object' && !Array.isArray(res)
  5681. ? [res] // single vnode
  5682. : normalizeChildren(res);
  5683. return res && (
  5684. res.length === 0 ||
  5685. (res.length === 1 && res[0].isComment) // #9658
  5686. ) ? undefined
  5687. : res
  5688. };
  5689. // this is a slot using the new v-slot syntax without scope. although it is
  5690. // compiled as a scoped slot, render fn users would expect it to be present
  5691. // on this.$slots because the usage is semantically a normal slot.
  5692. if (fn.proxy) {
  5693. Object.defineProperty(normalSlots, key, {
  5694. get: normalized,
  5695. enumerable: true,
  5696. configurable: true
  5697. });
  5698. }
  5699. return normalized
  5700. }
  5701. function proxyNormalSlot(slots, key) {
  5702. return function () { return slots[key]; }
  5703. }
  5704. /* */
  5705. /**
  5706. * Runtime helper for rendering v-for lists.
  5707. */
  5708. function renderList (
  5709. val,
  5710. render
  5711. ) {
  5712. var ret, i, l, keys, key;
  5713. if (Array.isArray(val) || typeof val === 'string') {
  5714. ret = new Array(val.length);
  5715. for (i = 0, l = val.length; i < l; i++) {
  5716. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  5717. }
  5718. } else if (typeof val === 'number') {
  5719. ret = new Array(val);
  5720. for (i = 0; i < val; i++) {
  5721. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  5722. }
  5723. } else if (isObject(val)) {
  5724. if (hasSymbol && val[Symbol.iterator]) {
  5725. ret = [];
  5726. var iterator = val[Symbol.iterator]();
  5727. var result = iterator.next();
  5728. while (!result.done) {
  5729. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  5730. result = iterator.next();
  5731. }
  5732. } else {
  5733. keys = Object.keys(val);
  5734. ret = new Array(keys.length);
  5735. for (i = 0, l = keys.length; i < l; i++) {
  5736. key = keys[i];
  5737. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  5738. }
  5739. }
  5740. }
  5741. if (!isDef(ret)) {
  5742. ret = [];
  5743. }
  5744. (ret)._isVList = true;
  5745. return ret
  5746. }
  5747. /* */
  5748. /**
  5749. * Runtime helper for rendering <slot>
  5750. */
  5751. function renderSlot (
  5752. name,
  5753. fallback,
  5754. props,
  5755. bindObject
  5756. ) {
  5757. var scopedSlotFn = this.$scopedSlots[name];
  5758. var nodes;
  5759. if (scopedSlotFn) { // scoped slot
  5760. props = props || {};
  5761. if (bindObject) {
  5762. if ( true && !isObject(bindObject)) {
  5763. warn(
  5764. 'slot v-bind without argument expects an Object',
  5765. this
  5766. );
  5767. }
  5768. props = extend(extend({}, bindObject), props);
  5769. }
  5770. // fixed by xxxxxx app-plus scopedSlot
  5771. nodes = scopedSlotFn(props, this, props._i) || fallback;
  5772. } else {
  5773. nodes = this.$slots[name] || fallback;
  5774. }
  5775. var target = props && props.slot;
  5776. if (target) {
  5777. return this.$createElement('template', { slot: target }, nodes)
  5778. } else {
  5779. return nodes
  5780. }
  5781. }
  5782. /* */
  5783. /**
  5784. * Runtime helper for resolving filters
  5785. */
  5786. function resolveFilter (id) {
  5787. return resolveAsset(this.$options, 'filters', id, true) || identity
  5788. }
  5789. /* */
  5790. function isKeyNotMatch (expect, actual) {
  5791. if (Array.isArray(expect)) {
  5792. return expect.indexOf(actual) === -1
  5793. } else {
  5794. return expect !== actual
  5795. }
  5796. }
  5797. /**
  5798. * Runtime helper for checking keyCodes from config.
  5799. * exposed as Vue.prototype._k
  5800. * passing in eventKeyName as last argument separately for backwards compat
  5801. */
  5802. function checkKeyCodes (
  5803. eventKeyCode,
  5804. key,
  5805. builtInKeyCode,
  5806. eventKeyName,
  5807. builtInKeyName
  5808. ) {
  5809. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  5810. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  5811. return isKeyNotMatch(builtInKeyName, eventKeyName)
  5812. } else if (mappedKeyCode) {
  5813. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  5814. } else if (eventKeyName) {
  5815. return hyphenate(eventKeyName) !== key
  5816. }
  5817. }
  5818. /* */
  5819. /**
  5820. * Runtime helper for merging v-bind="object" into a VNode's data.
  5821. */
  5822. function bindObjectProps (
  5823. data,
  5824. tag,
  5825. value,
  5826. asProp,
  5827. isSync
  5828. ) {
  5829. if (value) {
  5830. if (!isObject(value)) {
  5831. true && warn(
  5832. 'v-bind without argument expects an Object or Array value',
  5833. this
  5834. );
  5835. } else {
  5836. if (Array.isArray(value)) {
  5837. value = toObject(value);
  5838. }
  5839. var hash;
  5840. var loop = function ( key ) {
  5841. if (
  5842. key === 'class' ||
  5843. key === 'style' ||
  5844. isReservedAttribute(key)
  5845. ) {
  5846. hash = data;
  5847. } else {
  5848. var type = data.attrs && data.attrs.type;
  5849. hash = asProp || config.mustUseProp(tag, type, key)
  5850. ? data.domProps || (data.domProps = {})
  5851. : data.attrs || (data.attrs = {});
  5852. }
  5853. var camelizedKey = camelize(key);
  5854. var hyphenatedKey = hyphenate(key);
  5855. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  5856. hash[key] = value[key];
  5857. if (isSync) {
  5858. var on = data.on || (data.on = {});
  5859. on[("update:" + key)] = function ($event) {
  5860. value[key] = $event;
  5861. };
  5862. }
  5863. }
  5864. };
  5865. for (var key in value) loop( key );
  5866. }
  5867. }
  5868. return data
  5869. }
  5870. /* */
  5871. /**
  5872. * Runtime helper for rendering static trees.
  5873. */
  5874. function renderStatic (
  5875. index,
  5876. isInFor
  5877. ) {
  5878. var cached = this._staticTrees || (this._staticTrees = []);
  5879. var tree = cached[index];
  5880. // if has already-rendered static tree and not inside v-for,
  5881. // we can reuse the same tree.
  5882. if (tree && !isInFor) {
  5883. return tree
  5884. }
  5885. // otherwise, render a fresh tree.
  5886. tree = cached[index] = this.$options.staticRenderFns[index].call(
  5887. this._renderProxy,
  5888. null,
  5889. this // for render fns generated for functional component templates
  5890. );
  5891. markStatic(tree, ("__static__" + index), false);
  5892. return tree
  5893. }
  5894. /**
  5895. * Runtime helper for v-once.
  5896. * Effectively it means marking the node as static with a unique key.
  5897. */
  5898. function markOnce (
  5899. tree,
  5900. index,
  5901. key
  5902. ) {
  5903. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  5904. return tree
  5905. }
  5906. function markStatic (
  5907. tree,
  5908. key,
  5909. isOnce
  5910. ) {
  5911. if (Array.isArray(tree)) {
  5912. for (var i = 0; i < tree.length; i++) {
  5913. if (tree[i] && typeof tree[i] !== 'string') {
  5914. markStaticNode(tree[i], (key + "_" + i), isOnce);
  5915. }
  5916. }
  5917. } else {
  5918. markStaticNode(tree, key, isOnce);
  5919. }
  5920. }
  5921. function markStaticNode (node, key, isOnce) {
  5922. node.isStatic = true;
  5923. node.key = key;
  5924. node.isOnce = isOnce;
  5925. }
  5926. /* */
  5927. function bindObjectListeners (data, value) {
  5928. if (value) {
  5929. if (!isPlainObject(value)) {
  5930. true && warn(
  5931. 'v-on without argument expects an Object value',
  5932. this
  5933. );
  5934. } else {
  5935. var on = data.on = data.on ? extend({}, data.on) : {};
  5936. for (var key in value) {
  5937. var existing = on[key];
  5938. var ours = value[key];
  5939. on[key] = existing ? [].concat(existing, ours) : ours;
  5940. }
  5941. }
  5942. }
  5943. return data
  5944. }
  5945. /* */
  5946. function resolveScopedSlots (
  5947. fns, // see flow/vnode
  5948. res,
  5949. // the following are added in 2.6
  5950. hasDynamicKeys,
  5951. contentHashKey
  5952. ) {
  5953. res = res || { $stable: !hasDynamicKeys };
  5954. for (var i = 0; i < fns.length; i++) {
  5955. var slot = fns[i];
  5956. if (Array.isArray(slot)) {
  5957. resolveScopedSlots(slot, res, hasDynamicKeys);
  5958. } else if (slot) {
  5959. // marker for reverse proxying v-slot without scope on this.$slots
  5960. if (slot.proxy) {
  5961. slot.fn.proxy = true;
  5962. }
  5963. res[slot.key] = slot.fn;
  5964. }
  5965. }
  5966. if (contentHashKey) {
  5967. (res).$key = contentHashKey;
  5968. }
  5969. return res
  5970. }
  5971. /* */
  5972. function bindDynamicKeys (baseObj, values) {
  5973. for (var i = 0; i < values.length; i += 2) {
  5974. var key = values[i];
  5975. if (typeof key === 'string' && key) {
  5976. baseObj[values[i]] = values[i + 1];
  5977. } else if ( true && key !== '' && key !== null) {
  5978. // null is a special value for explicitly removing a binding
  5979. warn(
  5980. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  5981. this
  5982. );
  5983. }
  5984. }
  5985. return baseObj
  5986. }
  5987. // helper to dynamically append modifier runtime markers to event names.
  5988. // ensure only append when value is already string, otherwise it will be cast
  5989. // to string and cause the type check to miss.
  5990. function prependModifier (value, symbol) {
  5991. return typeof value === 'string' ? symbol + value : value
  5992. }
  5993. /* */
  5994. function installRenderHelpers (target) {
  5995. target._o = markOnce;
  5996. target._n = toNumber;
  5997. target._s = toString;
  5998. target._l = renderList;
  5999. target._t = renderSlot;
  6000. target._q = looseEqual;
  6001. target._i = looseIndexOf;
  6002. target._m = renderStatic;
  6003. target._f = resolveFilter;
  6004. target._k = checkKeyCodes;
  6005. target._b = bindObjectProps;
  6006. target._v = createTextVNode;
  6007. target._e = createEmptyVNode;
  6008. target._u = resolveScopedSlots;
  6009. target._g = bindObjectListeners;
  6010. target._d = bindDynamicKeys;
  6011. target._p = prependModifier;
  6012. }
  6013. /* */
  6014. function FunctionalRenderContext (
  6015. data,
  6016. props,
  6017. children,
  6018. parent,
  6019. Ctor
  6020. ) {
  6021. var this$1 = this;
  6022. var options = Ctor.options;
  6023. // ensure the createElement function in functional components
  6024. // gets a unique context - this is necessary for correct named slot check
  6025. var contextVm;
  6026. if (hasOwn(parent, '_uid')) {
  6027. contextVm = Object.create(parent);
  6028. // $flow-disable-line
  6029. contextVm._original = parent;
  6030. } else {
  6031. // the context vm passed in is a functional context as well.
  6032. // in this case we want to make sure we are able to get a hold to the
  6033. // real context instance.
  6034. contextVm = parent;
  6035. // $flow-disable-line
  6036. parent = parent._original;
  6037. }
  6038. var isCompiled = isTrue(options._compiled);
  6039. var needNormalization = !isCompiled;
  6040. this.data = data;
  6041. this.props = props;
  6042. this.children = children;
  6043. this.parent = parent;
  6044. this.listeners = data.on || emptyObject;
  6045. this.injections = resolveInject(options.inject, parent);
  6046. this.slots = function () {
  6047. if (!this$1.$slots) {
  6048. normalizeScopedSlots(
  6049. data.scopedSlots,
  6050. this$1.$slots = resolveSlots(children, parent)
  6051. );
  6052. }
  6053. return this$1.$slots
  6054. };
  6055. Object.defineProperty(this, 'scopedSlots', ({
  6056. enumerable: true,
  6057. get: function get () {
  6058. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6059. }
  6060. }));
  6061. // support for compiled functional template
  6062. if (isCompiled) {
  6063. // exposing $options for renderStatic()
  6064. this.$options = options;
  6065. // pre-resolve slots for renderSlot()
  6066. this.$slots = this.slots();
  6067. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6068. }
  6069. if (options._scopeId) {
  6070. this._c = function (a, b, c, d) {
  6071. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6072. if (vnode && !Array.isArray(vnode)) {
  6073. vnode.fnScopeId = options._scopeId;
  6074. vnode.fnContext = parent;
  6075. }
  6076. return vnode
  6077. };
  6078. } else {
  6079. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6080. }
  6081. }
  6082. installRenderHelpers(FunctionalRenderContext.prototype);
  6083. function createFunctionalComponent (
  6084. Ctor,
  6085. propsData,
  6086. data,
  6087. contextVm,
  6088. children
  6089. ) {
  6090. var options = Ctor.options;
  6091. var props = {};
  6092. var propOptions = options.props;
  6093. if (isDef(propOptions)) {
  6094. for (var key in propOptions) {
  6095. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6096. }
  6097. } else {
  6098. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6099. if (isDef(data.props)) { mergeProps(props, data.props); }
  6100. }
  6101. var renderContext = new FunctionalRenderContext(
  6102. data,
  6103. props,
  6104. children,
  6105. contextVm,
  6106. Ctor
  6107. );
  6108. var vnode = options.render.call(null, renderContext._c, renderContext);
  6109. if (vnode instanceof VNode) {
  6110. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6111. } else if (Array.isArray(vnode)) {
  6112. var vnodes = normalizeChildren(vnode) || [];
  6113. var res = new Array(vnodes.length);
  6114. for (var i = 0; i < vnodes.length; i++) {
  6115. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6116. }
  6117. return res
  6118. }
  6119. }
  6120. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6121. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6122. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6123. // that should not be matched to match.
  6124. var clone = cloneVNode(vnode);
  6125. clone.fnContext = contextVm;
  6126. clone.fnOptions = options;
  6127. if (true) {
  6128. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6129. }
  6130. if (data.slot) {
  6131. (clone.data || (clone.data = {})).slot = data.slot;
  6132. }
  6133. return clone
  6134. }
  6135. function mergeProps (to, from) {
  6136. for (var key in from) {
  6137. to[camelize(key)] = from[key];
  6138. }
  6139. }
  6140. /* */
  6141. /* */
  6142. /* */
  6143. /* */
  6144. // inline hooks to be invoked on component VNodes during patch
  6145. var componentVNodeHooks = {
  6146. init: function init (vnode, hydrating) {
  6147. if (
  6148. vnode.componentInstance &&
  6149. !vnode.componentInstance._isDestroyed &&
  6150. vnode.data.keepAlive
  6151. ) {
  6152. // kept-alive components, treat as a patch
  6153. var mountedNode = vnode; // work around flow
  6154. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6155. } else {
  6156. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6157. vnode,
  6158. activeInstance
  6159. );
  6160. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6161. }
  6162. },
  6163. prepatch: function prepatch (oldVnode, vnode) {
  6164. var options = vnode.componentOptions;
  6165. var child = vnode.componentInstance = oldVnode.componentInstance;
  6166. updateChildComponent(
  6167. child,
  6168. options.propsData, // updated props
  6169. options.listeners, // updated listeners
  6170. vnode, // new parent vnode
  6171. options.children // new children
  6172. );
  6173. },
  6174. insert: function insert (vnode) {
  6175. var context = vnode.context;
  6176. var componentInstance = vnode.componentInstance;
  6177. if (!componentInstance._isMounted) {
  6178. callHook(componentInstance, 'onServiceCreated');
  6179. callHook(componentInstance, 'onServiceAttached');
  6180. componentInstance._isMounted = true;
  6181. callHook(componentInstance, 'mounted');
  6182. }
  6183. if (vnode.data.keepAlive) {
  6184. if (context._isMounted) {
  6185. // vue-router#1212
  6186. // During updates, a kept-alive component's child components may
  6187. // change, so directly walking the tree here may call activated hooks
  6188. // on incorrect children. Instead we push them into a queue which will
  6189. // be processed after the whole patch process ended.
  6190. queueActivatedComponent(componentInstance);
  6191. } else {
  6192. activateChildComponent(componentInstance, true /* direct */);
  6193. }
  6194. }
  6195. },
  6196. destroy: function destroy (vnode) {
  6197. var componentInstance = vnode.componentInstance;
  6198. if (!componentInstance._isDestroyed) {
  6199. if (!vnode.data.keepAlive) {
  6200. componentInstance.$destroy();
  6201. } else {
  6202. deactivateChildComponent(componentInstance, true /* direct */);
  6203. }
  6204. }
  6205. }
  6206. };
  6207. var hooksToMerge = Object.keys(componentVNodeHooks);
  6208. function createComponent (
  6209. Ctor,
  6210. data,
  6211. context,
  6212. children,
  6213. tag
  6214. ) {
  6215. if (isUndef(Ctor)) {
  6216. return
  6217. }
  6218. var baseCtor = context.$options._base;
  6219. // plain options object: turn it into a constructor
  6220. if (isObject(Ctor)) {
  6221. Ctor = baseCtor.extend(Ctor);
  6222. }
  6223. // if at this stage it's not a constructor or an async component factory,
  6224. // reject.
  6225. if (typeof Ctor !== 'function') {
  6226. if (true) {
  6227. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6228. }
  6229. return
  6230. }
  6231. // async component
  6232. var asyncFactory;
  6233. if (isUndef(Ctor.cid)) {
  6234. asyncFactory = Ctor;
  6235. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6236. if (Ctor === undefined) {
  6237. // return a placeholder node for async component, which is rendered
  6238. // as a comment node but preserves all the raw information for the node.
  6239. // the information will be used for async server-rendering and hydration.
  6240. return createAsyncPlaceholder(
  6241. asyncFactory,
  6242. data,
  6243. context,
  6244. children,
  6245. tag
  6246. )
  6247. }
  6248. }
  6249. data = data || {};
  6250. // resolve constructor options in case global mixins are applied after
  6251. // component constructor creation
  6252. resolveConstructorOptions(Ctor);
  6253. // transform component v-model data into props & events
  6254. if (isDef(data.model)) {
  6255. transformModel(Ctor.options, data);
  6256. }
  6257. // extract props
  6258. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6259. // functional component
  6260. if (isTrue(Ctor.options.functional)) {
  6261. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6262. }
  6263. // extract listeners, since these needs to be treated as
  6264. // child component listeners instead of DOM listeners
  6265. var listeners = data.on;
  6266. // replace with listeners with .native modifier
  6267. // so it gets processed during parent component patch.
  6268. data.on = data.nativeOn;
  6269. if (isTrue(Ctor.options.abstract)) {
  6270. // abstract components do not keep anything
  6271. // other than props & listeners & slot
  6272. // work around flow
  6273. var slot = data.slot;
  6274. data = {};
  6275. if (slot) {
  6276. data.slot = slot;
  6277. }
  6278. }
  6279. // install component management hooks onto the placeholder node
  6280. installComponentHooks(data);
  6281. // return a placeholder vnode
  6282. var name = Ctor.options.name || tag;
  6283. var vnode = new VNode(
  6284. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6285. data, undefined, undefined, undefined, context,
  6286. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6287. asyncFactory
  6288. );
  6289. return vnode
  6290. }
  6291. function createComponentInstanceForVnode (
  6292. vnode, // we know it's MountedComponentVNode but flow doesn't
  6293. parent // activeInstance in lifecycle state
  6294. ) {
  6295. var options = {
  6296. _isComponent: true,
  6297. _parentVnode: vnode,
  6298. parent: parent
  6299. };
  6300. // check inline-template render functions
  6301. var inlineTemplate = vnode.data.inlineTemplate;
  6302. if (isDef(inlineTemplate)) {
  6303. options.render = inlineTemplate.render;
  6304. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6305. }
  6306. return new vnode.componentOptions.Ctor(options)
  6307. }
  6308. function installComponentHooks (data) {
  6309. var hooks = data.hook || (data.hook = {});
  6310. for (var i = 0; i < hooksToMerge.length; i++) {
  6311. var key = hooksToMerge[i];
  6312. var existing = hooks[key];
  6313. var toMerge = componentVNodeHooks[key];
  6314. if (existing !== toMerge && !(existing && existing._merged)) {
  6315. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6316. }
  6317. }
  6318. }
  6319. function mergeHook$1 (f1, f2) {
  6320. var merged = function (a, b) {
  6321. // flow complains about extra args which is why we use any
  6322. f1(a, b);
  6323. f2(a, b);
  6324. };
  6325. merged._merged = true;
  6326. return merged
  6327. }
  6328. // transform component v-model info (value and callback) into
  6329. // prop and event handler respectively.
  6330. function transformModel (options, data) {
  6331. var prop = (options.model && options.model.prop) || 'value';
  6332. var event = (options.model && options.model.event) || 'input'
  6333. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6334. var on = data.on || (data.on = {});
  6335. var existing = on[event];
  6336. var callback = data.model.callback;
  6337. if (isDef(existing)) {
  6338. if (
  6339. Array.isArray(existing)
  6340. ? existing.indexOf(callback) === -1
  6341. : existing !== callback
  6342. ) {
  6343. on[event] = [callback].concat(existing);
  6344. }
  6345. } else {
  6346. on[event] = callback;
  6347. }
  6348. }
  6349. /* */
  6350. var SIMPLE_NORMALIZE = 1;
  6351. var ALWAYS_NORMALIZE = 2;
  6352. // wrapper function for providing a more flexible interface
  6353. // without getting yelled at by flow
  6354. function createElement (
  6355. context,
  6356. tag,
  6357. data,
  6358. children,
  6359. normalizationType,
  6360. alwaysNormalize
  6361. ) {
  6362. if (Array.isArray(data) || isPrimitive(data)) {
  6363. normalizationType = children;
  6364. children = data;
  6365. data = undefined;
  6366. }
  6367. if (isTrue(alwaysNormalize)) {
  6368. normalizationType = ALWAYS_NORMALIZE;
  6369. }
  6370. return _createElement(context, tag, data, children, normalizationType)
  6371. }
  6372. function _createElement (
  6373. context,
  6374. tag,
  6375. data,
  6376. children,
  6377. normalizationType
  6378. ) {
  6379. if (isDef(data) && isDef((data).__ob__)) {
  6380. true && warn(
  6381. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6382. 'Always create fresh vnode data objects in each render!',
  6383. context
  6384. );
  6385. return createEmptyVNode()
  6386. }
  6387. // object syntax in v-bind
  6388. if (isDef(data) && isDef(data.is)) {
  6389. tag = data.is;
  6390. }
  6391. if (!tag) {
  6392. // in case of component :is set to falsy value
  6393. return createEmptyVNode()
  6394. }
  6395. // warn against non-primitive key
  6396. if ( true &&
  6397. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6398. ) {
  6399. {
  6400. warn(
  6401. 'Avoid using non-primitive value as key, ' +
  6402. 'use string/number value instead.',
  6403. context
  6404. );
  6405. }
  6406. }
  6407. // support single function children as default scoped slot
  6408. if (Array.isArray(children) &&
  6409. typeof children[0] === 'function'
  6410. ) {
  6411. data = data || {};
  6412. data.scopedSlots = { default: children[0] };
  6413. children.length = 0;
  6414. }
  6415. if (normalizationType === ALWAYS_NORMALIZE) {
  6416. children = normalizeChildren(children);
  6417. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6418. children = simpleNormalizeChildren(children);
  6419. }
  6420. var vnode, ns;
  6421. if (typeof tag === 'string') {
  6422. var Ctor;
  6423. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6424. if (config.isReservedTag(tag)) {
  6425. // platform built-in elements
  6426. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6427. warn(
  6428. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6429. context
  6430. );
  6431. }
  6432. vnode = new VNode(
  6433. config.parsePlatformTagName(tag), data, children,
  6434. undefined, undefined, context
  6435. );
  6436. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6437. // component
  6438. vnode = createComponent(Ctor, data, context, children, tag);
  6439. } else {
  6440. // unknown or unlisted namespaced elements
  6441. // check at runtime because it may get assigned a namespace when its
  6442. // parent normalizes children
  6443. vnode = new VNode(
  6444. tag, data, children,
  6445. undefined, undefined, context
  6446. );
  6447. }
  6448. } else {
  6449. // direct component options / constructor
  6450. vnode = createComponent(tag, data, context, children);
  6451. }
  6452. if (Array.isArray(vnode)) {
  6453. return vnode
  6454. } else if (isDef(vnode)) {
  6455. if (isDef(ns)) { applyNS(vnode, ns); }
  6456. if (isDef(data)) { registerDeepBindings(data); }
  6457. return vnode
  6458. } else {
  6459. return createEmptyVNode()
  6460. }
  6461. }
  6462. function applyNS (vnode, ns, force) {
  6463. vnode.ns = ns;
  6464. if (vnode.tag === 'foreignObject') {
  6465. // use default namespace inside foreignObject
  6466. ns = undefined;
  6467. force = true;
  6468. }
  6469. if (isDef(vnode.children)) {
  6470. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6471. var child = vnode.children[i];
  6472. if (isDef(child.tag) && (
  6473. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6474. applyNS(child, ns, force);
  6475. }
  6476. }
  6477. }
  6478. }
  6479. // ref #5318
  6480. // necessary to ensure parent re-render when deep bindings like :style and
  6481. // :class are used on slot nodes
  6482. function registerDeepBindings (data) {
  6483. if (isObject(data.style)) {
  6484. traverse(data.style);
  6485. }
  6486. if (isObject(data.class)) {
  6487. traverse(data.class);
  6488. }
  6489. }
  6490. /* */
  6491. function initRender (vm) {
  6492. vm._vnode = null; // the root of the child tree
  6493. vm._staticTrees = null; // v-once cached trees
  6494. var options = vm.$options;
  6495. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6496. var renderContext = parentVnode && parentVnode.context;
  6497. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6498. vm.$scopedSlots = emptyObject;
  6499. // bind the createElement fn to this instance
  6500. // so that we get proper render context inside it.
  6501. // args order: tag, data, children, normalizationType, alwaysNormalize
  6502. // internal version is used by render functions compiled from templates
  6503. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6504. // normalization is always applied for the public version, used in
  6505. // user-written render functions.
  6506. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6507. // $attrs & $listeners are exposed for easier HOC creation.
  6508. // they need to be reactive so that HOCs using them are always updated
  6509. var parentData = parentVnode && parentVnode.data;
  6510. /* istanbul ignore else */
  6511. if (true) {
  6512. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6513. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6514. }, true);
  6515. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6516. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6517. }, true);
  6518. } else {}
  6519. }
  6520. var currentRenderingInstance = null;
  6521. function renderMixin (Vue) {
  6522. // install runtime convenience helpers
  6523. installRenderHelpers(Vue.prototype);
  6524. Vue.prototype.$nextTick = function (fn) {
  6525. return nextTick(fn, this)
  6526. };
  6527. Vue.prototype._render = function () {
  6528. var vm = this;
  6529. var ref = vm.$options;
  6530. var render = ref.render;
  6531. var _parentVnode = ref._parentVnode;
  6532. if (_parentVnode) {
  6533. vm.$scopedSlots = normalizeScopedSlots(
  6534. _parentVnode.data.scopedSlots,
  6535. vm.$slots,
  6536. vm.$scopedSlots
  6537. );
  6538. }
  6539. // set parent vnode. this allows render functions to have access
  6540. // to the data on the placeholder node.
  6541. vm.$vnode = _parentVnode;
  6542. // render self
  6543. var vnode;
  6544. try {
  6545. // There's no need to maintain a stack because all render fns are called
  6546. // separately from one another. Nested component's render fns are called
  6547. // when parent component is patched.
  6548. currentRenderingInstance = vm;
  6549. vnode = render.call(vm._renderProxy, vm.$createElement);
  6550. } catch (e) {
  6551. handleError(e, vm, "render");
  6552. // return error render result,
  6553. // or previous vnode to prevent render error causing blank component
  6554. /* istanbul ignore else */
  6555. if ( true && vm.$options.renderError) {
  6556. try {
  6557. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6558. } catch (e) {
  6559. handleError(e, vm, "renderError");
  6560. vnode = vm._vnode;
  6561. }
  6562. } else {
  6563. vnode = vm._vnode;
  6564. }
  6565. } finally {
  6566. currentRenderingInstance = null;
  6567. }
  6568. // if the returned array contains only a single node, allow it
  6569. if (Array.isArray(vnode) && vnode.length === 1) {
  6570. vnode = vnode[0];
  6571. }
  6572. // return empty vnode in case the render function errored out
  6573. if (!(vnode instanceof VNode)) {
  6574. if ( true && Array.isArray(vnode)) {
  6575. warn(
  6576. 'Multiple root nodes returned from render function. Render function ' +
  6577. 'should return a single root node.',
  6578. vm
  6579. );
  6580. }
  6581. vnode = createEmptyVNode();
  6582. }
  6583. // set parent
  6584. vnode.parent = _parentVnode;
  6585. return vnode
  6586. };
  6587. }
  6588. /* */
  6589. function ensureCtor (comp, base) {
  6590. if (
  6591. comp.__esModule ||
  6592. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6593. ) {
  6594. comp = comp.default;
  6595. }
  6596. return isObject(comp)
  6597. ? base.extend(comp)
  6598. : comp
  6599. }
  6600. function createAsyncPlaceholder (
  6601. factory,
  6602. data,
  6603. context,
  6604. children,
  6605. tag
  6606. ) {
  6607. var node = createEmptyVNode();
  6608. node.asyncFactory = factory;
  6609. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6610. return node
  6611. }
  6612. function resolveAsyncComponent (
  6613. factory,
  6614. baseCtor
  6615. ) {
  6616. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6617. return factory.errorComp
  6618. }
  6619. if (isDef(factory.resolved)) {
  6620. return factory.resolved
  6621. }
  6622. var owner = currentRenderingInstance;
  6623. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6624. // already pending
  6625. factory.owners.push(owner);
  6626. }
  6627. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6628. return factory.loadingComp
  6629. }
  6630. if (owner && !isDef(factory.owners)) {
  6631. var owners = factory.owners = [owner];
  6632. var sync = true;
  6633. var timerLoading = null;
  6634. var timerTimeout = null
  6635. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6636. var forceRender = function (renderCompleted) {
  6637. for (var i = 0, l = owners.length; i < l; i++) {
  6638. (owners[i]).$forceUpdate();
  6639. }
  6640. if (renderCompleted) {
  6641. owners.length = 0;
  6642. if (timerLoading !== null) {
  6643. clearTimeout(timerLoading);
  6644. timerLoading = null;
  6645. }
  6646. if (timerTimeout !== null) {
  6647. clearTimeout(timerTimeout);
  6648. timerTimeout = null;
  6649. }
  6650. }
  6651. };
  6652. var resolve = once(function (res) {
  6653. // cache resolved
  6654. factory.resolved = ensureCtor(res, baseCtor);
  6655. // invoke callbacks only if this is not a synchronous resolve
  6656. // (async resolves are shimmed as synchronous during SSR)
  6657. if (!sync) {
  6658. forceRender(true);
  6659. } else {
  6660. owners.length = 0;
  6661. }
  6662. });
  6663. var reject = once(function (reason) {
  6664. true && warn(
  6665. "Failed to resolve async component: " + (String(factory)) +
  6666. (reason ? ("\nReason: " + reason) : '')
  6667. );
  6668. if (isDef(factory.errorComp)) {
  6669. factory.error = true;
  6670. forceRender(true);
  6671. }
  6672. });
  6673. var res = factory(resolve, reject);
  6674. if (isObject(res)) {
  6675. if (isPromise(res)) {
  6676. // () => Promise
  6677. if (isUndef(factory.resolved)) {
  6678. res.then(resolve, reject);
  6679. }
  6680. } else if (isPromise(res.component)) {
  6681. res.component.then(resolve, reject);
  6682. if (isDef(res.error)) {
  6683. factory.errorComp = ensureCtor(res.error, baseCtor);
  6684. }
  6685. if (isDef(res.loading)) {
  6686. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6687. if (res.delay === 0) {
  6688. factory.loading = true;
  6689. } else {
  6690. timerLoading = setTimeout(function () {
  6691. timerLoading = null;
  6692. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  6693. factory.loading = true;
  6694. forceRender(false);
  6695. }
  6696. }, res.delay || 200);
  6697. }
  6698. }
  6699. if (isDef(res.timeout)) {
  6700. timerTimeout = setTimeout(function () {
  6701. timerTimeout = null;
  6702. if (isUndef(factory.resolved)) {
  6703. reject(
  6704. true
  6705. ? ("timeout (" + (res.timeout) + "ms)")
  6706. : undefined
  6707. );
  6708. }
  6709. }, res.timeout);
  6710. }
  6711. }
  6712. }
  6713. sync = false;
  6714. // return in case resolved synchronously
  6715. return factory.loading
  6716. ? factory.loadingComp
  6717. : factory.resolved
  6718. }
  6719. }
  6720. /* */
  6721. function isAsyncPlaceholder (node) {
  6722. return node.isComment && node.asyncFactory
  6723. }
  6724. /* */
  6725. function getFirstComponentChild (children) {
  6726. if (Array.isArray(children)) {
  6727. for (var i = 0; i < children.length; i++) {
  6728. var c = children[i];
  6729. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  6730. return c
  6731. }
  6732. }
  6733. }
  6734. }
  6735. /* */
  6736. /* */
  6737. function initEvents (vm) {
  6738. vm._events = Object.create(null);
  6739. vm._hasHookEvent = false;
  6740. // init parent attached events
  6741. var listeners = vm.$options._parentListeners;
  6742. if (listeners) {
  6743. updateComponentListeners(vm, listeners);
  6744. }
  6745. }
  6746. var target;
  6747. function add (event, fn) {
  6748. target.$on(event, fn);
  6749. }
  6750. function remove$1 (event, fn) {
  6751. target.$off(event, fn);
  6752. }
  6753. function createOnceHandler (event, fn) {
  6754. var _target = target;
  6755. return function onceHandler () {
  6756. var res = fn.apply(null, arguments);
  6757. if (res !== null) {
  6758. _target.$off(event, onceHandler);
  6759. }
  6760. }
  6761. }
  6762. function updateComponentListeners (
  6763. vm,
  6764. listeners,
  6765. oldListeners
  6766. ) {
  6767. target = vm;
  6768. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  6769. target = undefined;
  6770. }
  6771. function eventsMixin (Vue) {
  6772. var hookRE = /^hook:/;
  6773. Vue.prototype.$on = function (event, fn) {
  6774. var vm = this;
  6775. if (Array.isArray(event)) {
  6776. for (var i = 0, l = event.length; i < l; i++) {
  6777. vm.$on(event[i], fn);
  6778. }
  6779. } else {
  6780. (vm._events[event] || (vm._events[event] = [])).push(fn);
  6781. // optimize hook:event cost by using a boolean flag marked at registration
  6782. // instead of a hash lookup
  6783. if (hookRE.test(event)) {
  6784. vm._hasHookEvent = true;
  6785. }
  6786. }
  6787. return vm
  6788. };
  6789. Vue.prototype.$once = function (event, fn) {
  6790. var vm = this;
  6791. function on () {
  6792. vm.$off(event, on);
  6793. fn.apply(vm, arguments);
  6794. }
  6795. on.fn = fn;
  6796. vm.$on(event, on);
  6797. return vm
  6798. };
  6799. Vue.prototype.$off = function (event, fn) {
  6800. var vm = this;
  6801. // all
  6802. if (!arguments.length) {
  6803. vm._events = Object.create(null);
  6804. return vm
  6805. }
  6806. // array of events
  6807. if (Array.isArray(event)) {
  6808. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  6809. vm.$off(event[i$1], fn);
  6810. }
  6811. return vm
  6812. }
  6813. // specific event
  6814. var cbs = vm._events[event];
  6815. if (!cbs) {
  6816. return vm
  6817. }
  6818. if (!fn) {
  6819. vm._events[event] = null;
  6820. return vm
  6821. }
  6822. // specific handler
  6823. var cb;
  6824. var i = cbs.length;
  6825. while (i--) {
  6826. cb = cbs[i];
  6827. if (cb === fn || cb.fn === fn) {
  6828. cbs.splice(i, 1);
  6829. break
  6830. }
  6831. }
  6832. return vm
  6833. };
  6834. Vue.prototype.$emit = function (event) {
  6835. var vm = this;
  6836. if (true) {
  6837. var lowerCaseEvent = event.toLowerCase();
  6838. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  6839. tip(
  6840. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  6841. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  6842. "Note that HTML attributes are case-insensitive and you cannot use " +
  6843. "v-on to listen to camelCase events when using in-DOM templates. " +
  6844. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  6845. );
  6846. }
  6847. }
  6848. var cbs = vm._events[event];
  6849. if (cbs) {
  6850. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  6851. var args = toArray(arguments, 1);
  6852. var info = "event handler for \"" + event + "\"";
  6853. for (var i = 0, l = cbs.length; i < l; i++) {
  6854. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  6855. }
  6856. }
  6857. return vm
  6858. };
  6859. }
  6860. /* */
  6861. var activeInstance = null;
  6862. var isUpdatingChildComponent = false;
  6863. function setActiveInstance(vm) {
  6864. var prevActiveInstance = activeInstance;
  6865. activeInstance = vm;
  6866. return function () {
  6867. activeInstance = prevActiveInstance;
  6868. }
  6869. }
  6870. function initLifecycle (vm) {
  6871. var options = vm.$options;
  6872. // locate first non-abstract parent
  6873. var parent = options.parent;
  6874. if (parent && !options.abstract) {
  6875. while (parent.$options.abstract && parent.$parent) {
  6876. parent = parent.$parent;
  6877. }
  6878. parent.$children.push(vm);
  6879. }
  6880. vm.$parent = parent;
  6881. vm.$root = parent ? parent.$root : vm;
  6882. vm.$children = [];
  6883. vm.$refs = {};
  6884. vm._watcher = null;
  6885. vm._inactive = null;
  6886. vm._directInactive = false;
  6887. vm._isMounted = false;
  6888. vm._isDestroyed = false;
  6889. vm._isBeingDestroyed = false;
  6890. }
  6891. function lifecycleMixin (Vue) {
  6892. Vue.prototype._update = function (vnode, hydrating) {
  6893. var vm = this;
  6894. var prevEl = vm.$el;
  6895. var prevVnode = vm._vnode;
  6896. var restoreActiveInstance = setActiveInstance(vm);
  6897. vm._vnode = vnode;
  6898. // Vue.prototype.__patch__ is injected in entry points
  6899. // based on the rendering backend used.
  6900. if (!prevVnode) {
  6901. // initial render
  6902. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  6903. } else {
  6904. // updates
  6905. vm.$el = vm.__patch__(prevVnode, vnode);
  6906. }
  6907. restoreActiveInstance();
  6908. // update __vue__ reference
  6909. if (prevEl) {
  6910. prevEl.__vue__ = null;
  6911. }
  6912. if (vm.$el) {
  6913. vm.$el.__vue__ = vm;
  6914. }
  6915. // if parent is an HOC, update its $el as well
  6916. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  6917. vm.$parent.$el = vm.$el;
  6918. }
  6919. // updated hook is called by the scheduler to ensure that children are
  6920. // updated in a parent's updated hook.
  6921. };
  6922. Vue.prototype.$forceUpdate = function () {
  6923. var vm = this;
  6924. if (vm._watcher) {
  6925. vm._watcher.update();
  6926. }
  6927. };
  6928. Vue.prototype.$destroy = function () {
  6929. var vm = this;
  6930. if (vm._isBeingDestroyed) {
  6931. return
  6932. }
  6933. callHook(vm, 'beforeDestroy');
  6934. vm._isBeingDestroyed = true;
  6935. // remove self from parent
  6936. var parent = vm.$parent;
  6937. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  6938. remove(parent.$children, vm);
  6939. }
  6940. // teardown watchers
  6941. if (vm._watcher) {
  6942. vm._watcher.teardown();
  6943. }
  6944. var i = vm._watchers.length;
  6945. while (i--) {
  6946. vm._watchers[i].teardown();
  6947. }
  6948. // remove reference from data ob
  6949. // frozen object may not have observer.
  6950. if (vm._data.__ob__) {
  6951. vm._data.__ob__.vmCount--;
  6952. }
  6953. // call the last hook...
  6954. vm._isDestroyed = true;
  6955. // invoke destroy hooks on current rendered tree
  6956. vm.__patch__(vm._vnode, null);
  6957. // fire destroyed hook
  6958. callHook(vm, 'destroyed');
  6959. // turn off all instance listeners.
  6960. vm.$off();
  6961. // remove __vue__ reference
  6962. if (vm.$el) {
  6963. vm.$el.__vue__ = null;
  6964. }
  6965. // release circular reference (#6759)
  6966. if (vm.$vnode) {
  6967. vm.$vnode.parent = null;
  6968. }
  6969. };
  6970. }
  6971. function updateChildComponent (
  6972. vm,
  6973. propsData,
  6974. listeners,
  6975. parentVnode,
  6976. renderChildren
  6977. ) {
  6978. if (true) {
  6979. isUpdatingChildComponent = true;
  6980. }
  6981. // determine whether component has slot children
  6982. // we need to do this before overwriting $options._renderChildren.
  6983. // check if there are dynamic scopedSlots (hand-written or compiled but with
  6984. // dynamic slot names). Static scoped slots compiled from template has the
  6985. // "$stable" marker.
  6986. var newScopedSlots = parentVnode.data.scopedSlots;
  6987. var oldScopedSlots = vm.$scopedSlots;
  6988. var hasDynamicScopedSlot = !!(
  6989. (newScopedSlots && !newScopedSlots.$stable) ||
  6990. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  6991. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  6992. );
  6993. // Any static slot children from the parent may have changed during parent's
  6994. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  6995. // update is necessary to ensure correctness.
  6996. var needsForceUpdate = !!(
  6997. renderChildren || // has new static slots
  6998. vm.$options._renderChildren || // has old static slots
  6999. hasDynamicScopedSlot
  7000. );
  7001. vm.$options._parentVnode = parentVnode;
  7002. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7003. if (vm._vnode) { // update child tree's parent
  7004. vm._vnode.parent = parentVnode;
  7005. }
  7006. vm.$options._renderChildren = renderChildren;
  7007. // update $attrs and $listeners hash
  7008. // these are also reactive so they may trigger child update if the child
  7009. // used them during render
  7010. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7011. vm.$listeners = listeners || emptyObject;
  7012. // update props
  7013. if (propsData && vm.$options.props) {
  7014. toggleObserving(false);
  7015. var props = vm._props;
  7016. var propKeys = vm.$options._propKeys || [];
  7017. for (var i = 0; i < propKeys.length; i++) {
  7018. var key = propKeys[i];
  7019. var propOptions = vm.$options.props; // wtf flow?
  7020. props[key] = validateProp(key, propOptions, propsData, vm);
  7021. }
  7022. toggleObserving(true);
  7023. // keep a copy of raw propsData
  7024. vm.$options.propsData = propsData;
  7025. }
  7026. // fixed by xxxxxx update properties(mp runtime)
  7027. vm._$updateProperties && vm._$updateProperties(vm);
  7028. // update listeners
  7029. listeners = listeners || emptyObject;
  7030. var oldListeners = vm.$options._parentListeners;
  7031. vm.$options._parentListeners = listeners;
  7032. updateComponentListeners(vm, listeners, oldListeners);
  7033. // resolve slots + force update if has children
  7034. if (needsForceUpdate) {
  7035. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7036. vm.$forceUpdate();
  7037. }
  7038. if (true) {
  7039. isUpdatingChildComponent = false;
  7040. }
  7041. }
  7042. function isInInactiveTree (vm) {
  7043. while (vm && (vm = vm.$parent)) {
  7044. if (vm._inactive) { return true }
  7045. }
  7046. return false
  7047. }
  7048. function activateChildComponent (vm, direct) {
  7049. if (direct) {
  7050. vm._directInactive = false;
  7051. if (isInInactiveTree(vm)) {
  7052. return
  7053. }
  7054. } else if (vm._directInactive) {
  7055. return
  7056. }
  7057. if (vm._inactive || vm._inactive === null) {
  7058. vm._inactive = false;
  7059. for (var i = 0; i < vm.$children.length; i++) {
  7060. activateChildComponent(vm.$children[i]);
  7061. }
  7062. callHook(vm, 'activated');
  7063. }
  7064. }
  7065. function deactivateChildComponent (vm, direct) {
  7066. if (direct) {
  7067. vm._directInactive = true;
  7068. if (isInInactiveTree(vm)) {
  7069. return
  7070. }
  7071. }
  7072. if (!vm._inactive) {
  7073. vm._inactive = true;
  7074. for (var i = 0; i < vm.$children.length; i++) {
  7075. deactivateChildComponent(vm.$children[i]);
  7076. }
  7077. callHook(vm, 'deactivated');
  7078. }
  7079. }
  7080. function callHook (vm, hook) {
  7081. // #7573 disable dep collection when invoking lifecycle hooks
  7082. pushTarget();
  7083. var handlers = vm.$options[hook];
  7084. var info = hook + " hook";
  7085. if (handlers) {
  7086. for (var i = 0, j = handlers.length; i < j; i++) {
  7087. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7088. }
  7089. }
  7090. if (vm._hasHookEvent) {
  7091. vm.$emit('hook:' + hook);
  7092. }
  7093. popTarget();
  7094. }
  7095. /* */
  7096. var MAX_UPDATE_COUNT = 100;
  7097. var queue = [];
  7098. var activatedChildren = [];
  7099. var has = {};
  7100. var circular = {};
  7101. var waiting = false;
  7102. var flushing = false;
  7103. var index = 0;
  7104. /**
  7105. * Reset the scheduler's state.
  7106. */
  7107. function resetSchedulerState () {
  7108. index = queue.length = activatedChildren.length = 0;
  7109. has = {};
  7110. if (true) {
  7111. circular = {};
  7112. }
  7113. waiting = flushing = false;
  7114. }
  7115. // Async edge case #6566 requires saving the timestamp when event listeners are
  7116. // attached. However, calling performance.now() has a perf overhead especially
  7117. // if the page has thousands of event listeners. Instead, we take a timestamp
  7118. // every time the scheduler flushes and use that for all event listeners
  7119. // attached during that flush.
  7120. var currentFlushTimestamp = 0;
  7121. // Async edge case fix requires storing an event listener's attach timestamp.
  7122. var getNow = Date.now;
  7123. // Determine what event timestamp the browser is using. Annoyingly, the
  7124. // timestamp can either be hi-res (relative to page load) or low-res
  7125. // (relative to UNIX epoch), so in order to compare time we have to use the
  7126. // same timestamp type when saving the flush timestamp.
  7127. // All IE versions use low-res event timestamps, and have problematic clock
  7128. // implementations (#9632)
  7129. if (inBrowser && !isIE) {
  7130. var performance = window.performance;
  7131. if (
  7132. performance &&
  7133. typeof performance.now === 'function' &&
  7134. getNow() > document.createEvent('Event').timeStamp
  7135. ) {
  7136. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7137. // smaller than it, it means the event is using a hi-res timestamp,
  7138. // and we need to use the hi-res version for event listener timestamps as
  7139. // well.
  7140. getNow = function () { return performance.now(); };
  7141. }
  7142. }
  7143. /**
  7144. * Flush both queues and run the watchers.
  7145. */
  7146. function flushSchedulerQueue () {
  7147. currentFlushTimestamp = getNow();
  7148. flushing = true;
  7149. var watcher, id;
  7150. // Sort queue before flush.
  7151. // This ensures that:
  7152. // 1. Components are updated from parent to child. (because parent is always
  7153. // created before the child)
  7154. // 2. A component's user watchers are run before its render watcher (because
  7155. // user watchers are created before the render watcher)
  7156. // 3. If a component is destroyed during a parent component's watcher run,
  7157. // its watchers can be skipped.
  7158. queue.sort(function (a, b) { return a.id - b.id; });
  7159. // do not cache length because more watchers might be pushed
  7160. // as we run existing watchers
  7161. for (index = 0; index < queue.length; index++) {
  7162. watcher = queue[index];
  7163. if (watcher.before) {
  7164. watcher.before();
  7165. }
  7166. id = watcher.id;
  7167. has[id] = null;
  7168. watcher.run();
  7169. // in dev build, check and stop circular updates.
  7170. if ( true && has[id] != null) {
  7171. circular[id] = (circular[id] || 0) + 1;
  7172. if (circular[id] > MAX_UPDATE_COUNT) {
  7173. warn(
  7174. 'You may have an infinite update loop ' + (
  7175. watcher.user
  7176. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7177. : "in a component render function."
  7178. ),
  7179. watcher.vm
  7180. );
  7181. break
  7182. }
  7183. }
  7184. }
  7185. // keep copies of post queues before resetting state
  7186. var activatedQueue = activatedChildren.slice();
  7187. var updatedQueue = queue.slice();
  7188. resetSchedulerState();
  7189. // call component updated and activated hooks
  7190. callActivatedHooks(activatedQueue);
  7191. callUpdatedHooks(updatedQueue);
  7192. // devtool hook
  7193. /* istanbul ignore if */
  7194. if (devtools && config.devtools) {
  7195. devtools.emit('flush');
  7196. }
  7197. }
  7198. function callUpdatedHooks (queue) {
  7199. var i = queue.length;
  7200. while (i--) {
  7201. var watcher = queue[i];
  7202. var vm = watcher.vm;
  7203. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7204. callHook(vm, 'updated');
  7205. }
  7206. }
  7207. }
  7208. /**
  7209. * Queue a kept-alive component that was activated during patch.
  7210. * The queue will be processed after the entire tree has been patched.
  7211. */
  7212. function queueActivatedComponent (vm) {
  7213. // setting _inactive to false here so that a render function can
  7214. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7215. vm._inactive = false;
  7216. activatedChildren.push(vm);
  7217. }
  7218. function callActivatedHooks (queue) {
  7219. for (var i = 0; i < queue.length; i++) {
  7220. queue[i]._inactive = true;
  7221. activateChildComponent(queue[i], true /* true */);
  7222. }
  7223. }
  7224. /**
  7225. * Push a watcher into the watcher queue.
  7226. * Jobs with duplicate IDs will be skipped unless it's
  7227. * pushed when the queue is being flushed.
  7228. */
  7229. function queueWatcher (watcher) {
  7230. var id = watcher.id;
  7231. if (has[id] == null) {
  7232. has[id] = true;
  7233. if (!flushing) {
  7234. queue.push(watcher);
  7235. } else {
  7236. // if already flushing, splice the watcher based on its id
  7237. // if already past its id, it will be run next immediately.
  7238. var i = queue.length - 1;
  7239. while (i > index && queue[i].id > watcher.id) {
  7240. i--;
  7241. }
  7242. queue.splice(i + 1, 0, watcher);
  7243. }
  7244. // queue the flush
  7245. if (!waiting) {
  7246. waiting = true;
  7247. if ( true && !config.async) {
  7248. flushSchedulerQueue();
  7249. return
  7250. }
  7251. nextTick(flushSchedulerQueue);
  7252. }
  7253. }
  7254. }
  7255. /* */
  7256. var uid$2 = 0;
  7257. /**
  7258. * A watcher parses an expression, collects dependencies,
  7259. * and fires callback when the expression value changes.
  7260. * This is used for both the $watch() api and directives.
  7261. */
  7262. var Watcher = function Watcher (
  7263. vm,
  7264. expOrFn,
  7265. cb,
  7266. options,
  7267. isRenderWatcher
  7268. ) {
  7269. this.vm = vm;
  7270. if (isRenderWatcher) {
  7271. vm._watcher = this;
  7272. }
  7273. vm._watchers.push(this);
  7274. // options
  7275. if (options) {
  7276. this.deep = !!options.deep;
  7277. this.user = !!options.user;
  7278. this.lazy = !!options.lazy;
  7279. this.sync = !!options.sync;
  7280. this.before = options.before;
  7281. } else {
  7282. this.deep = this.user = this.lazy = this.sync = false;
  7283. }
  7284. this.cb = cb;
  7285. this.id = ++uid$2; // uid for batching
  7286. this.active = true;
  7287. this.dirty = this.lazy; // for lazy watchers
  7288. this.deps = [];
  7289. this.newDeps = [];
  7290. this.depIds = new _Set();
  7291. this.newDepIds = new _Set();
  7292. this.expression = true
  7293. ? expOrFn.toString()
  7294. : undefined;
  7295. // parse expression for getter
  7296. if (typeof expOrFn === 'function') {
  7297. this.getter = expOrFn;
  7298. } else {
  7299. this.getter = parsePath(expOrFn);
  7300. if (!this.getter) {
  7301. this.getter = noop;
  7302. true && warn(
  7303. "Failed watching path: \"" + expOrFn + "\" " +
  7304. 'Watcher only accepts simple dot-delimited paths. ' +
  7305. 'For full control, use a function instead.',
  7306. vm
  7307. );
  7308. }
  7309. }
  7310. this.value = this.lazy
  7311. ? undefined
  7312. : this.get();
  7313. };
  7314. /**
  7315. * Evaluate the getter, and re-collect dependencies.
  7316. */
  7317. Watcher.prototype.get = function get () {
  7318. pushTarget(this);
  7319. var value;
  7320. var vm = this.vm;
  7321. try {
  7322. value = this.getter.call(vm, vm);
  7323. } catch (e) {
  7324. if (this.user) {
  7325. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7326. } else {
  7327. throw e
  7328. }
  7329. } finally {
  7330. // "touch" every property so they are all tracked as
  7331. // dependencies for deep watching
  7332. if (this.deep) {
  7333. traverse(value);
  7334. }
  7335. popTarget();
  7336. this.cleanupDeps();
  7337. }
  7338. return value
  7339. };
  7340. /**
  7341. * Add a dependency to this directive.
  7342. */
  7343. Watcher.prototype.addDep = function addDep (dep) {
  7344. var id = dep.id;
  7345. if (!this.newDepIds.has(id)) {
  7346. this.newDepIds.add(id);
  7347. this.newDeps.push(dep);
  7348. if (!this.depIds.has(id)) {
  7349. dep.addSub(this);
  7350. }
  7351. }
  7352. };
  7353. /**
  7354. * Clean up for dependency collection.
  7355. */
  7356. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7357. var i = this.deps.length;
  7358. while (i--) {
  7359. var dep = this.deps[i];
  7360. if (!this.newDepIds.has(dep.id)) {
  7361. dep.removeSub(this);
  7362. }
  7363. }
  7364. var tmp = this.depIds;
  7365. this.depIds = this.newDepIds;
  7366. this.newDepIds = tmp;
  7367. this.newDepIds.clear();
  7368. tmp = this.deps;
  7369. this.deps = this.newDeps;
  7370. this.newDeps = tmp;
  7371. this.newDeps.length = 0;
  7372. };
  7373. /**
  7374. * Subscriber interface.
  7375. * Will be called when a dependency changes.
  7376. */
  7377. Watcher.prototype.update = function update () {
  7378. /* istanbul ignore else */
  7379. if (this.lazy) {
  7380. this.dirty = true;
  7381. } else if (this.sync) {
  7382. this.run();
  7383. } else {
  7384. queueWatcher(this);
  7385. }
  7386. };
  7387. /**
  7388. * Scheduler job interface.
  7389. * Will be called by the scheduler.
  7390. */
  7391. Watcher.prototype.run = function run () {
  7392. if (this.active) {
  7393. var value = this.get();
  7394. if (
  7395. value !== this.value ||
  7396. // Deep watchers and watchers on Object/Arrays should fire even
  7397. // when the value is the same, because the value may
  7398. // have mutated.
  7399. isObject(value) ||
  7400. this.deep
  7401. ) {
  7402. // set new value
  7403. var oldValue = this.value;
  7404. this.value = value;
  7405. if (this.user) {
  7406. try {
  7407. this.cb.call(this.vm, value, oldValue);
  7408. } catch (e) {
  7409. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7410. }
  7411. } else {
  7412. this.cb.call(this.vm, value, oldValue);
  7413. }
  7414. }
  7415. }
  7416. };
  7417. /**
  7418. * Evaluate the value of the watcher.
  7419. * This only gets called for lazy watchers.
  7420. */
  7421. Watcher.prototype.evaluate = function evaluate () {
  7422. this.value = this.get();
  7423. this.dirty = false;
  7424. };
  7425. /**
  7426. * Depend on all deps collected by this watcher.
  7427. */
  7428. Watcher.prototype.depend = function depend () {
  7429. var i = this.deps.length;
  7430. while (i--) {
  7431. this.deps[i].depend();
  7432. }
  7433. };
  7434. /**
  7435. * Remove self from all dependencies' subscriber list.
  7436. */
  7437. Watcher.prototype.teardown = function teardown () {
  7438. if (this.active) {
  7439. // remove self from vm's watcher list
  7440. // this is a somewhat expensive operation so we skip it
  7441. // if the vm is being destroyed.
  7442. if (!this.vm._isBeingDestroyed) {
  7443. remove(this.vm._watchers, this);
  7444. }
  7445. var i = this.deps.length;
  7446. while (i--) {
  7447. this.deps[i].removeSub(this);
  7448. }
  7449. this.active = false;
  7450. }
  7451. };
  7452. /* */
  7453. var sharedPropertyDefinition = {
  7454. enumerable: true,
  7455. configurable: true,
  7456. get: noop,
  7457. set: noop
  7458. };
  7459. function proxy (target, sourceKey, key) {
  7460. sharedPropertyDefinition.get = function proxyGetter () {
  7461. return this[sourceKey][key]
  7462. };
  7463. sharedPropertyDefinition.set = function proxySetter (val) {
  7464. this[sourceKey][key] = val;
  7465. };
  7466. Object.defineProperty(target, key, sharedPropertyDefinition);
  7467. }
  7468. function initState (vm) {
  7469. vm._watchers = [];
  7470. var opts = vm.$options;
  7471. if (opts.props) { initProps(vm, opts.props); }
  7472. if (opts.methods) { initMethods(vm, opts.methods); }
  7473. if (opts.data) {
  7474. initData(vm);
  7475. } else {
  7476. observe(vm._data = {}, true /* asRootData */);
  7477. }
  7478. if (opts.computed) { initComputed(vm, opts.computed); }
  7479. if (opts.watch && opts.watch !== nativeWatch) {
  7480. initWatch(vm, opts.watch);
  7481. }
  7482. }
  7483. function initProps (vm, propsOptions) {
  7484. var propsData = vm.$options.propsData || {};
  7485. var props = vm._props = {};
  7486. // cache prop keys so that future props updates can iterate using Array
  7487. // instead of dynamic object key enumeration.
  7488. var keys = vm.$options._propKeys = [];
  7489. var isRoot = !vm.$parent;
  7490. // root instance props should be converted
  7491. if (!isRoot) {
  7492. toggleObserving(false);
  7493. }
  7494. var loop = function ( key ) {
  7495. keys.push(key);
  7496. var value = validateProp(key, propsOptions, propsData, vm);
  7497. /* istanbul ignore else */
  7498. if (true) {
  7499. var hyphenatedKey = hyphenate(key);
  7500. if (isReservedAttribute(hyphenatedKey) ||
  7501. config.isReservedAttr(hyphenatedKey)) {
  7502. warn(
  7503. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7504. vm
  7505. );
  7506. }
  7507. defineReactive$$1(props, key, value, function () {
  7508. if (!isRoot && !isUpdatingChildComponent) {
  7509. {
  7510. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7511. return
  7512. }
  7513. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7514. if(
  7515. key === 'value' &&
  7516. Array.isArray(vm.$options.behaviors) &&
  7517. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7518. ){
  7519. return
  7520. }
  7521. if(vm._getFormData){
  7522. return
  7523. }
  7524. var $parent = vm.$parent;
  7525. while($parent){
  7526. if($parent.__next_tick_pending){
  7527. return
  7528. }
  7529. $parent = $parent.$parent;
  7530. }
  7531. }
  7532. warn(
  7533. "Avoid mutating a prop directly since the value will be " +
  7534. "overwritten whenever the parent component re-renders. " +
  7535. "Instead, use a data or computed property based on the prop's " +
  7536. "value. Prop being mutated: \"" + key + "\"",
  7537. vm
  7538. );
  7539. }
  7540. });
  7541. } else {}
  7542. // static props are already proxied on the component's prototype
  7543. // during Vue.extend(). We only need to proxy props defined at
  7544. // instantiation here.
  7545. if (!(key in vm)) {
  7546. proxy(vm, "_props", key);
  7547. }
  7548. };
  7549. for (var key in propsOptions) loop( key );
  7550. toggleObserving(true);
  7551. }
  7552. function initData (vm) {
  7553. var data = vm.$options.data;
  7554. data = vm._data = typeof data === 'function'
  7555. ? getData(data, vm)
  7556. : data || {};
  7557. if (!isPlainObject(data)) {
  7558. data = {};
  7559. true && warn(
  7560. 'data functions should return an object:\n' +
  7561. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7562. vm
  7563. );
  7564. }
  7565. // proxy data on instance
  7566. var keys = Object.keys(data);
  7567. var props = vm.$options.props;
  7568. var methods = vm.$options.methods;
  7569. var i = keys.length;
  7570. while (i--) {
  7571. var key = keys[i];
  7572. if (true) {
  7573. if (methods && hasOwn(methods, key)) {
  7574. warn(
  7575. ("Method \"" + key + "\" has already been defined as a data property."),
  7576. vm
  7577. );
  7578. }
  7579. }
  7580. if (props && hasOwn(props, key)) {
  7581. true && warn(
  7582. "The data property \"" + key + "\" is already declared as a prop. " +
  7583. "Use prop default value instead.",
  7584. vm
  7585. );
  7586. } else if (!isReserved(key)) {
  7587. proxy(vm, "_data", key);
  7588. }
  7589. }
  7590. // observe data
  7591. observe(data, true /* asRootData */);
  7592. }
  7593. function getData (data, vm) {
  7594. // #7573 disable dep collection when invoking data getters
  7595. pushTarget();
  7596. try {
  7597. return data.call(vm, vm)
  7598. } catch (e) {
  7599. handleError(e, vm, "data()");
  7600. return {}
  7601. } finally {
  7602. popTarget();
  7603. }
  7604. }
  7605. var computedWatcherOptions = { lazy: true };
  7606. function initComputed (vm, computed) {
  7607. // $flow-disable-line
  7608. var watchers = vm._computedWatchers = Object.create(null);
  7609. // computed properties are just getters during SSR
  7610. var isSSR = isServerRendering();
  7611. for (var key in computed) {
  7612. var userDef = computed[key];
  7613. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7614. if ( true && getter == null) {
  7615. warn(
  7616. ("Getter is missing for computed property \"" + key + "\"."),
  7617. vm
  7618. );
  7619. }
  7620. if (!isSSR) {
  7621. // create internal watcher for the computed property.
  7622. watchers[key] = new Watcher(
  7623. vm,
  7624. getter || noop,
  7625. noop,
  7626. computedWatcherOptions
  7627. );
  7628. }
  7629. // component-defined computed properties are already defined on the
  7630. // component prototype. We only need to define computed properties defined
  7631. // at instantiation here.
  7632. if (!(key in vm)) {
  7633. defineComputed(vm, key, userDef);
  7634. } else if (true) {
  7635. if (key in vm.$data) {
  7636. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7637. } else if (vm.$options.props && key in vm.$options.props) {
  7638. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7639. }
  7640. }
  7641. }
  7642. }
  7643. function defineComputed (
  7644. target,
  7645. key,
  7646. userDef
  7647. ) {
  7648. var shouldCache = !isServerRendering();
  7649. if (typeof userDef === 'function') {
  7650. sharedPropertyDefinition.get = shouldCache
  7651. ? createComputedGetter(key)
  7652. : createGetterInvoker(userDef);
  7653. sharedPropertyDefinition.set = noop;
  7654. } else {
  7655. sharedPropertyDefinition.get = userDef.get
  7656. ? shouldCache && userDef.cache !== false
  7657. ? createComputedGetter(key)
  7658. : createGetterInvoker(userDef.get)
  7659. : noop;
  7660. sharedPropertyDefinition.set = userDef.set || noop;
  7661. }
  7662. if ( true &&
  7663. sharedPropertyDefinition.set === noop) {
  7664. sharedPropertyDefinition.set = function () {
  7665. warn(
  7666. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7667. this
  7668. );
  7669. };
  7670. }
  7671. Object.defineProperty(target, key, sharedPropertyDefinition);
  7672. }
  7673. function createComputedGetter (key) {
  7674. return function computedGetter () {
  7675. var watcher = this._computedWatchers && this._computedWatchers[key];
  7676. if (watcher) {
  7677. if (watcher.dirty) {
  7678. watcher.evaluate();
  7679. }
  7680. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7681. watcher.depend();
  7682. }
  7683. return watcher.value
  7684. }
  7685. }
  7686. }
  7687. function createGetterInvoker(fn) {
  7688. return function computedGetter () {
  7689. return fn.call(this, this)
  7690. }
  7691. }
  7692. function initMethods (vm, methods) {
  7693. var props = vm.$options.props;
  7694. for (var key in methods) {
  7695. if (true) {
  7696. if (typeof methods[key] !== 'function') {
  7697. warn(
  7698. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  7699. "Did you reference the function correctly?",
  7700. vm
  7701. );
  7702. }
  7703. if (props && hasOwn(props, key)) {
  7704. warn(
  7705. ("Method \"" + key + "\" has already been defined as a prop."),
  7706. vm
  7707. );
  7708. }
  7709. if ((key in vm) && isReserved(key)) {
  7710. warn(
  7711. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  7712. "Avoid defining component methods that start with _ or $."
  7713. );
  7714. }
  7715. }
  7716. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  7717. }
  7718. }
  7719. function initWatch (vm, watch) {
  7720. for (var key in watch) {
  7721. var handler = watch[key];
  7722. if (Array.isArray(handler)) {
  7723. for (var i = 0; i < handler.length; i++) {
  7724. createWatcher(vm, key, handler[i]);
  7725. }
  7726. } else {
  7727. createWatcher(vm, key, handler);
  7728. }
  7729. }
  7730. }
  7731. function createWatcher (
  7732. vm,
  7733. expOrFn,
  7734. handler,
  7735. options
  7736. ) {
  7737. if (isPlainObject(handler)) {
  7738. options = handler;
  7739. handler = handler.handler;
  7740. }
  7741. if (typeof handler === 'string') {
  7742. handler = vm[handler];
  7743. }
  7744. return vm.$watch(expOrFn, handler, options)
  7745. }
  7746. function stateMixin (Vue) {
  7747. // flow somehow has problems with directly declared definition object
  7748. // when using Object.defineProperty, so we have to procedurally build up
  7749. // the object here.
  7750. var dataDef = {};
  7751. dataDef.get = function () { return this._data };
  7752. var propsDef = {};
  7753. propsDef.get = function () { return this._props };
  7754. if (true) {
  7755. dataDef.set = function () {
  7756. warn(
  7757. 'Avoid replacing instance root $data. ' +
  7758. 'Use nested data properties instead.',
  7759. this
  7760. );
  7761. };
  7762. propsDef.set = function () {
  7763. warn("$props is readonly.", this);
  7764. };
  7765. }
  7766. Object.defineProperty(Vue.prototype, '$data', dataDef);
  7767. Object.defineProperty(Vue.prototype, '$props', propsDef);
  7768. Vue.prototype.$set = set;
  7769. Vue.prototype.$delete = del;
  7770. Vue.prototype.$watch = function (
  7771. expOrFn,
  7772. cb,
  7773. options
  7774. ) {
  7775. var vm = this;
  7776. if (isPlainObject(cb)) {
  7777. return createWatcher(vm, expOrFn, cb, options)
  7778. }
  7779. options = options || {};
  7780. options.user = true;
  7781. var watcher = new Watcher(vm, expOrFn, cb, options);
  7782. if (options.immediate) {
  7783. try {
  7784. cb.call(vm, watcher.value);
  7785. } catch (error) {
  7786. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  7787. }
  7788. }
  7789. return function unwatchFn () {
  7790. watcher.teardown();
  7791. }
  7792. };
  7793. }
  7794. /* */
  7795. var uid$3 = 0;
  7796. function initMixin (Vue) {
  7797. Vue.prototype._init = function (options) {
  7798. var vm = this;
  7799. // a uid
  7800. vm._uid = uid$3++;
  7801. var startTag, endTag;
  7802. /* istanbul ignore if */
  7803. if ( true && config.performance && mark) {
  7804. startTag = "vue-perf-start:" + (vm._uid);
  7805. endTag = "vue-perf-end:" + (vm._uid);
  7806. mark(startTag);
  7807. }
  7808. // a flag to avoid this being observed
  7809. vm._isVue = true;
  7810. // merge options
  7811. if (options && options._isComponent) {
  7812. // optimize internal component instantiation
  7813. // since dynamic options merging is pretty slow, and none of the
  7814. // internal component options needs special treatment.
  7815. initInternalComponent(vm, options);
  7816. } else {
  7817. vm.$options = mergeOptions(
  7818. resolveConstructorOptions(vm.constructor),
  7819. options || {},
  7820. vm
  7821. );
  7822. }
  7823. /* istanbul ignore else */
  7824. if (true) {
  7825. initProxy(vm);
  7826. } else {}
  7827. // expose real self
  7828. vm._self = vm;
  7829. initLifecycle(vm);
  7830. initEvents(vm);
  7831. initRender(vm);
  7832. callHook(vm, 'beforeCreate');
  7833. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  7834. initState(vm);
  7835. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  7836. !vm._$fallback && callHook(vm, 'created');
  7837. /* istanbul ignore if */
  7838. if ( true && config.performance && mark) {
  7839. vm._name = formatComponentName(vm, false);
  7840. mark(endTag);
  7841. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  7842. }
  7843. if (vm.$options.el) {
  7844. vm.$mount(vm.$options.el);
  7845. }
  7846. };
  7847. }
  7848. function initInternalComponent (vm, options) {
  7849. var opts = vm.$options = Object.create(vm.constructor.options);
  7850. // doing this because it's faster than dynamic enumeration.
  7851. var parentVnode = options._parentVnode;
  7852. opts.parent = options.parent;
  7853. opts._parentVnode = parentVnode;
  7854. var vnodeComponentOptions = parentVnode.componentOptions;
  7855. opts.propsData = vnodeComponentOptions.propsData;
  7856. opts._parentListeners = vnodeComponentOptions.listeners;
  7857. opts._renderChildren = vnodeComponentOptions.children;
  7858. opts._componentTag = vnodeComponentOptions.tag;
  7859. if (options.render) {
  7860. opts.render = options.render;
  7861. opts.staticRenderFns = options.staticRenderFns;
  7862. }
  7863. }
  7864. function resolveConstructorOptions (Ctor) {
  7865. var options = Ctor.options;
  7866. if (Ctor.super) {
  7867. var superOptions = resolveConstructorOptions(Ctor.super);
  7868. var cachedSuperOptions = Ctor.superOptions;
  7869. if (superOptions !== cachedSuperOptions) {
  7870. // super option changed,
  7871. // need to resolve new options.
  7872. Ctor.superOptions = superOptions;
  7873. // check if there are any late-modified/attached options (#4976)
  7874. var modifiedOptions = resolveModifiedOptions(Ctor);
  7875. // update base extend options
  7876. if (modifiedOptions) {
  7877. extend(Ctor.extendOptions, modifiedOptions);
  7878. }
  7879. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  7880. if (options.name) {
  7881. options.components[options.name] = Ctor;
  7882. }
  7883. }
  7884. }
  7885. return options
  7886. }
  7887. function resolveModifiedOptions (Ctor) {
  7888. var modified;
  7889. var latest = Ctor.options;
  7890. var sealed = Ctor.sealedOptions;
  7891. for (var key in latest) {
  7892. if (latest[key] !== sealed[key]) {
  7893. if (!modified) { modified = {}; }
  7894. modified[key] = latest[key];
  7895. }
  7896. }
  7897. return modified
  7898. }
  7899. function Vue (options) {
  7900. if ( true &&
  7901. !(this instanceof Vue)
  7902. ) {
  7903. warn('Vue is a constructor and should be called with the `new` keyword');
  7904. }
  7905. this._init(options);
  7906. }
  7907. initMixin(Vue);
  7908. stateMixin(Vue);
  7909. eventsMixin(Vue);
  7910. lifecycleMixin(Vue);
  7911. renderMixin(Vue);
  7912. /* */
  7913. function initUse (Vue) {
  7914. Vue.use = function (plugin) {
  7915. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  7916. if (installedPlugins.indexOf(plugin) > -1) {
  7917. return this
  7918. }
  7919. // additional parameters
  7920. var args = toArray(arguments, 1);
  7921. args.unshift(this);
  7922. if (typeof plugin.install === 'function') {
  7923. plugin.install.apply(plugin, args);
  7924. } else if (typeof plugin === 'function') {
  7925. plugin.apply(null, args);
  7926. }
  7927. installedPlugins.push(plugin);
  7928. return this
  7929. };
  7930. }
  7931. /* */
  7932. function initMixin$1 (Vue) {
  7933. Vue.mixin = function (mixin) {
  7934. this.options = mergeOptions(this.options, mixin);
  7935. return this
  7936. };
  7937. }
  7938. /* */
  7939. function initExtend (Vue) {
  7940. /**
  7941. * Each instance constructor, including Vue, has a unique
  7942. * cid. This enables us to create wrapped "child
  7943. * constructors" for prototypal inheritance and cache them.
  7944. */
  7945. Vue.cid = 0;
  7946. var cid = 1;
  7947. /**
  7948. * Class inheritance
  7949. */
  7950. Vue.extend = function (extendOptions) {
  7951. extendOptions = extendOptions || {};
  7952. var Super = this;
  7953. var SuperId = Super.cid;
  7954. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  7955. if (cachedCtors[SuperId]) {
  7956. return cachedCtors[SuperId]
  7957. }
  7958. var name = extendOptions.name || Super.options.name;
  7959. if ( true && name) {
  7960. validateComponentName(name);
  7961. }
  7962. var Sub = function VueComponent (options) {
  7963. this._init(options);
  7964. };
  7965. Sub.prototype = Object.create(Super.prototype);
  7966. Sub.prototype.constructor = Sub;
  7967. Sub.cid = cid++;
  7968. Sub.options = mergeOptions(
  7969. Super.options,
  7970. extendOptions
  7971. );
  7972. Sub['super'] = Super;
  7973. // For props and computed properties, we define the proxy getters on
  7974. // the Vue instances at extension time, on the extended prototype. This
  7975. // avoids Object.defineProperty calls for each instance created.
  7976. if (Sub.options.props) {
  7977. initProps$1(Sub);
  7978. }
  7979. if (Sub.options.computed) {
  7980. initComputed$1(Sub);
  7981. }
  7982. // allow further extension/mixin/plugin usage
  7983. Sub.extend = Super.extend;
  7984. Sub.mixin = Super.mixin;
  7985. Sub.use = Super.use;
  7986. // create asset registers, so extended classes
  7987. // can have their private assets too.
  7988. ASSET_TYPES.forEach(function (type) {
  7989. Sub[type] = Super[type];
  7990. });
  7991. // enable recursive self-lookup
  7992. if (name) {
  7993. Sub.options.components[name] = Sub;
  7994. }
  7995. // keep a reference to the super options at extension time.
  7996. // later at instantiation we can check if Super's options have
  7997. // been updated.
  7998. Sub.superOptions = Super.options;
  7999. Sub.extendOptions = extendOptions;
  8000. Sub.sealedOptions = extend({}, Sub.options);
  8001. // cache constructor
  8002. cachedCtors[SuperId] = Sub;
  8003. return Sub
  8004. };
  8005. }
  8006. function initProps$1 (Comp) {
  8007. var props = Comp.options.props;
  8008. for (var key in props) {
  8009. proxy(Comp.prototype, "_props", key);
  8010. }
  8011. }
  8012. function initComputed$1 (Comp) {
  8013. var computed = Comp.options.computed;
  8014. for (var key in computed) {
  8015. defineComputed(Comp.prototype, key, computed[key]);
  8016. }
  8017. }
  8018. /* */
  8019. function initAssetRegisters (Vue) {
  8020. /**
  8021. * Create asset registration methods.
  8022. */
  8023. ASSET_TYPES.forEach(function (type) {
  8024. Vue[type] = function (
  8025. id,
  8026. definition
  8027. ) {
  8028. if (!definition) {
  8029. return this.options[type + 's'][id]
  8030. } else {
  8031. /* istanbul ignore if */
  8032. if ( true && type === 'component') {
  8033. validateComponentName(id);
  8034. }
  8035. if (type === 'component' && isPlainObject(definition)) {
  8036. definition.name = definition.name || id;
  8037. definition = this.options._base.extend(definition);
  8038. }
  8039. if (type === 'directive' && typeof definition === 'function') {
  8040. definition = { bind: definition, update: definition };
  8041. }
  8042. this.options[type + 's'][id] = definition;
  8043. return definition
  8044. }
  8045. };
  8046. });
  8047. }
  8048. /* */
  8049. function getComponentName (opts) {
  8050. return opts && (opts.Ctor.options.name || opts.tag)
  8051. }
  8052. function matches (pattern, name) {
  8053. if (Array.isArray(pattern)) {
  8054. return pattern.indexOf(name) > -1
  8055. } else if (typeof pattern === 'string') {
  8056. return pattern.split(',').indexOf(name) > -1
  8057. } else if (isRegExp(pattern)) {
  8058. return pattern.test(name)
  8059. }
  8060. /* istanbul ignore next */
  8061. return false
  8062. }
  8063. function pruneCache (keepAliveInstance, filter) {
  8064. var cache = keepAliveInstance.cache;
  8065. var keys = keepAliveInstance.keys;
  8066. var _vnode = keepAliveInstance._vnode;
  8067. for (var key in cache) {
  8068. var cachedNode = cache[key];
  8069. if (cachedNode) {
  8070. var name = getComponentName(cachedNode.componentOptions);
  8071. if (name && !filter(name)) {
  8072. pruneCacheEntry(cache, key, keys, _vnode);
  8073. }
  8074. }
  8075. }
  8076. }
  8077. function pruneCacheEntry (
  8078. cache,
  8079. key,
  8080. keys,
  8081. current
  8082. ) {
  8083. var cached$$1 = cache[key];
  8084. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8085. cached$$1.componentInstance.$destroy();
  8086. }
  8087. cache[key] = null;
  8088. remove(keys, key);
  8089. }
  8090. var patternTypes = [String, RegExp, Array];
  8091. var KeepAlive = {
  8092. name: 'keep-alive',
  8093. abstract: true,
  8094. props: {
  8095. include: patternTypes,
  8096. exclude: patternTypes,
  8097. max: [String, Number]
  8098. },
  8099. created: function created () {
  8100. this.cache = Object.create(null);
  8101. this.keys = [];
  8102. },
  8103. destroyed: function destroyed () {
  8104. for (var key in this.cache) {
  8105. pruneCacheEntry(this.cache, key, this.keys);
  8106. }
  8107. },
  8108. mounted: function mounted () {
  8109. var this$1 = this;
  8110. this.$watch('include', function (val) {
  8111. pruneCache(this$1, function (name) { return matches(val, name); });
  8112. });
  8113. this.$watch('exclude', function (val) {
  8114. pruneCache(this$1, function (name) { return !matches(val, name); });
  8115. });
  8116. },
  8117. render: function render () {
  8118. var slot = this.$slots.default;
  8119. var vnode = getFirstComponentChild(slot);
  8120. var componentOptions = vnode && vnode.componentOptions;
  8121. if (componentOptions) {
  8122. // check pattern
  8123. var name = getComponentName(componentOptions);
  8124. var ref = this;
  8125. var include = ref.include;
  8126. var exclude = ref.exclude;
  8127. if (
  8128. // not included
  8129. (include && (!name || !matches(include, name))) ||
  8130. // excluded
  8131. (exclude && name && matches(exclude, name))
  8132. ) {
  8133. return vnode
  8134. }
  8135. var ref$1 = this;
  8136. var cache = ref$1.cache;
  8137. var keys = ref$1.keys;
  8138. var key = vnode.key == null
  8139. // same constructor may get registered as different local components
  8140. // so cid alone is not enough (#3269)
  8141. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8142. : vnode.key;
  8143. if (cache[key]) {
  8144. vnode.componentInstance = cache[key].componentInstance;
  8145. // make current key freshest
  8146. remove(keys, key);
  8147. keys.push(key);
  8148. } else {
  8149. cache[key] = vnode;
  8150. keys.push(key);
  8151. // prune oldest entry
  8152. if (this.max && keys.length > parseInt(this.max)) {
  8153. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8154. }
  8155. }
  8156. vnode.data.keepAlive = true;
  8157. }
  8158. return vnode || (slot && slot[0])
  8159. }
  8160. };
  8161. var builtInComponents = {
  8162. KeepAlive: KeepAlive
  8163. };
  8164. /* */
  8165. function initGlobalAPI (Vue) {
  8166. // config
  8167. var configDef = {};
  8168. configDef.get = function () { return config; };
  8169. if (true) {
  8170. configDef.set = function () {
  8171. warn(
  8172. 'Do not replace the Vue.config object, set individual fields instead.'
  8173. );
  8174. };
  8175. }
  8176. Object.defineProperty(Vue, 'config', configDef);
  8177. // exposed util methods.
  8178. // NOTE: these are not considered part of the public API - avoid relying on
  8179. // them unless you are aware of the risk.
  8180. Vue.util = {
  8181. warn: warn,
  8182. extend: extend,
  8183. mergeOptions: mergeOptions,
  8184. defineReactive: defineReactive$$1
  8185. };
  8186. Vue.set = set;
  8187. Vue.delete = del;
  8188. Vue.nextTick = nextTick;
  8189. // 2.6 explicit observable API
  8190. Vue.observable = function (obj) {
  8191. observe(obj);
  8192. return obj
  8193. };
  8194. Vue.options = Object.create(null);
  8195. ASSET_TYPES.forEach(function (type) {
  8196. Vue.options[type + 's'] = Object.create(null);
  8197. });
  8198. // this is used to identify the "base" constructor to extend all plain-object
  8199. // components with in Weex's multi-instance scenarios.
  8200. Vue.options._base = Vue;
  8201. extend(Vue.options.components, builtInComponents);
  8202. initUse(Vue);
  8203. initMixin$1(Vue);
  8204. initExtend(Vue);
  8205. initAssetRegisters(Vue);
  8206. }
  8207. initGlobalAPI(Vue);
  8208. Object.defineProperty(Vue.prototype, '$isServer', {
  8209. get: isServerRendering
  8210. });
  8211. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8212. get: function get () {
  8213. /* istanbul ignore next */
  8214. return this.$vnode && this.$vnode.ssrContext
  8215. }
  8216. });
  8217. // expose FunctionalRenderContext for ssr runtime helper installation
  8218. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8219. value: FunctionalRenderContext
  8220. });
  8221. Vue.version = '2.6.11';
  8222. /**
  8223. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8224. */
  8225. var ARRAYTYPE = '[object Array]';
  8226. var OBJECTTYPE = '[object Object]';
  8227. var NULLTYPE = '[object Null]';
  8228. var UNDEFINEDTYPE = '[object Undefined]';
  8229. // const FUNCTIONTYPE = '[object Function]'
  8230. function diff(current, pre) {
  8231. var result = {};
  8232. syncKeys(current, pre);
  8233. _diff(current, pre, '', result);
  8234. return result
  8235. }
  8236. function syncKeys(current, pre) {
  8237. if (current === pre) { return }
  8238. var rootCurrentType = type(current);
  8239. var rootPreType = type(pre);
  8240. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8241. if(Object.keys(current).length >= Object.keys(pre).length){
  8242. for (var key in pre) {
  8243. var currentValue = current[key];
  8244. if (currentValue === undefined) {
  8245. current[key] = null;
  8246. } else {
  8247. syncKeys(currentValue, pre[key]);
  8248. }
  8249. }
  8250. }
  8251. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8252. if (current.length >= pre.length) {
  8253. pre.forEach(function (item, index) {
  8254. syncKeys(current[index], item);
  8255. });
  8256. }
  8257. }
  8258. }
  8259. function nullOrUndefined(currentType, preType) {
  8260. if(
  8261. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8262. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8263. ) {
  8264. return false
  8265. }
  8266. return true
  8267. }
  8268. function _diff(current, pre, path, result) {
  8269. if (current === pre) { return }
  8270. var rootCurrentType = type(current);
  8271. var rootPreType = type(pre);
  8272. if (rootCurrentType == OBJECTTYPE) {
  8273. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8274. setResult(result, path, current);
  8275. } else {
  8276. var loop = function ( key ) {
  8277. var currentValue = current[key];
  8278. var preValue = pre[key];
  8279. var currentType = type(currentValue);
  8280. var preType = type(preValue);
  8281. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8282. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8283. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8284. }
  8285. } else if (currentType == ARRAYTYPE) {
  8286. if (preType != ARRAYTYPE) {
  8287. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8288. } else {
  8289. if (currentValue.length < preValue.length) {
  8290. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8291. } else {
  8292. currentValue.forEach(function (item, index) {
  8293. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8294. });
  8295. }
  8296. }
  8297. } else if (currentType == OBJECTTYPE) {
  8298. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8299. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8300. } else {
  8301. for (var subKey in currentValue) {
  8302. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8303. }
  8304. }
  8305. }
  8306. };
  8307. for (var key in current) loop( key );
  8308. }
  8309. } else if (rootCurrentType == ARRAYTYPE) {
  8310. if (rootPreType != ARRAYTYPE) {
  8311. setResult(result, path, current);
  8312. } else {
  8313. if (current.length < pre.length) {
  8314. setResult(result, path, current);
  8315. } else {
  8316. current.forEach(function (item, index) {
  8317. _diff(item, pre[index], path + '[' + index + ']', result);
  8318. });
  8319. }
  8320. }
  8321. } else {
  8322. setResult(result, path, current);
  8323. }
  8324. }
  8325. function setResult(result, k, v) {
  8326. // if (type(v) != FUNCTIONTYPE) {
  8327. result[k] = v;
  8328. // }
  8329. }
  8330. function type(obj) {
  8331. return Object.prototype.toString.call(obj)
  8332. }
  8333. /* */
  8334. function flushCallbacks$1(vm) {
  8335. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8336. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-mall-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8337. var mpInstance = vm.$scope;
  8338. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8339. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8340. }
  8341. var copies = vm.__next_tick_callbacks.slice(0);
  8342. vm.__next_tick_callbacks.length = 0;
  8343. for (var i = 0; i < copies.length; i++) {
  8344. copies[i]();
  8345. }
  8346. }
  8347. }
  8348. function hasRenderWatcher(vm) {
  8349. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8350. }
  8351. function nextTick$1(vm, cb) {
  8352. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8353. //2.nextTick 之前存在 render watcher
  8354. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8355. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-mall-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8356. var mpInstance = vm.$scope;
  8357. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8358. ']:nextVueTick');
  8359. }
  8360. return nextTick(cb, vm)
  8361. }else{
  8362. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-mall-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG){
  8363. var mpInstance$1 = vm.$scope;
  8364. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8365. ']:nextMPTick');
  8366. }
  8367. }
  8368. var _resolve;
  8369. if (!vm.__next_tick_callbacks) {
  8370. vm.__next_tick_callbacks = [];
  8371. }
  8372. vm.__next_tick_callbacks.push(function () {
  8373. if (cb) {
  8374. try {
  8375. cb.call(vm);
  8376. } catch (e) {
  8377. handleError(e, vm, 'nextTick');
  8378. }
  8379. } else if (_resolve) {
  8380. _resolve(vm);
  8381. }
  8382. });
  8383. // $flow-disable-line
  8384. if (!cb && typeof Promise !== 'undefined') {
  8385. return new Promise(function (resolve) {
  8386. _resolve = resolve;
  8387. })
  8388. }
  8389. }
  8390. /* */
  8391. function clearInstance(key, value) {
  8392. // 简易去除 Vue 和小程序组件实例
  8393. if (value) {
  8394. if (value._isVue || value.__v_isMPComponent) {
  8395. return {}
  8396. }
  8397. }
  8398. return value
  8399. }
  8400. function cloneWithData(vm) {
  8401. // 确保当前 vm 所有数据被同步
  8402. var ret = Object.create(null);
  8403. var dataKeys = [].concat(
  8404. Object.keys(vm._data || {}),
  8405. Object.keys(vm._computedWatchers || {}));
  8406. dataKeys.reduce(function(ret, key) {
  8407. ret[key] = vm[key];
  8408. return ret
  8409. }, ret);
  8410. // vue-composition-api
  8411. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8412. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8413. if (rawBindings) {
  8414. Object.keys(rawBindings).forEach(function (key) {
  8415. ret[key] = vm[key];
  8416. });
  8417. }
  8418. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8419. Object.assign(ret, vm.$mp.data || {});
  8420. if (
  8421. Array.isArray(vm.$options.behaviors) &&
  8422. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8423. ) { //form-field
  8424. ret['name'] = vm.name;
  8425. ret['value'] = vm.value;
  8426. }
  8427. return JSON.parse(JSON.stringify(ret, clearInstance))
  8428. }
  8429. var patch = function(oldVnode, vnode) {
  8430. var this$1 = this;
  8431. if (vnode === null) { //destroy
  8432. return
  8433. }
  8434. if (this.mpType === 'page' || this.mpType === 'component') {
  8435. var mpInstance = this.$scope;
  8436. var data = Object.create(null);
  8437. try {
  8438. data = cloneWithData(this);
  8439. } catch (err) {
  8440. console.error(err);
  8441. }
  8442. data.__webviewId__ = mpInstance.data.__webviewId__;
  8443. var mpData = Object.create(null);
  8444. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8445. mpData[key] = mpInstance.data[key];
  8446. });
  8447. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8448. if (Object.keys(diffData).length) {
  8449. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-mall-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8450. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8451. ']差量更新',
  8452. JSON.stringify(diffData));
  8453. }
  8454. this.__next_tick_pending = true;
  8455. mpInstance.setData(diffData, function () {
  8456. this$1.__next_tick_pending = false;
  8457. flushCallbacks$1(this$1);
  8458. });
  8459. } else {
  8460. flushCallbacks$1(this);
  8461. }
  8462. }
  8463. };
  8464. /* */
  8465. function createEmptyRender() {
  8466. }
  8467. function mountComponent$1(
  8468. vm,
  8469. el,
  8470. hydrating
  8471. ) {
  8472. if (!vm.mpType) {//main.js 中的 new Vue
  8473. return vm
  8474. }
  8475. if (vm.mpType === 'app') {
  8476. vm.$options.render = createEmptyRender;
  8477. }
  8478. if (!vm.$options.render) {
  8479. vm.$options.render = createEmptyRender;
  8480. if (true) {
  8481. /* istanbul ignore if */
  8482. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8483. vm.$options.el || el) {
  8484. warn(
  8485. 'You are using the runtime-only build of Vue where the template ' +
  8486. 'compiler is not available. Either pre-compile the templates into ' +
  8487. 'render functions, or use the compiler-included build.',
  8488. vm
  8489. );
  8490. } else {
  8491. warn(
  8492. 'Failed to mount component: template or render function not defined.',
  8493. vm
  8494. );
  8495. }
  8496. }
  8497. }
  8498. !vm._$fallback && callHook(vm, 'beforeMount');
  8499. var updateComponent = function () {
  8500. vm._update(vm._render(), hydrating);
  8501. };
  8502. // we set this to vm._watcher inside the watcher's constructor
  8503. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8504. // component's mounted hook), which relies on vm._watcher being already defined
  8505. new Watcher(vm, updateComponent, noop, {
  8506. before: function before() {
  8507. if (vm._isMounted && !vm._isDestroyed) {
  8508. callHook(vm, 'beforeUpdate');
  8509. }
  8510. }
  8511. }, true /* isRenderWatcher */);
  8512. hydrating = false;
  8513. return vm
  8514. }
  8515. /* */
  8516. function renderClass (
  8517. staticClass,
  8518. dynamicClass
  8519. ) {
  8520. if (isDef(staticClass) || isDef(dynamicClass)) {
  8521. return concat(staticClass, stringifyClass(dynamicClass))
  8522. }
  8523. /* istanbul ignore next */
  8524. return ''
  8525. }
  8526. function concat (a, b) {
  8527. return a ? b ? (a + ' ' + b) : a : (b || '')
  8528. }
  8529. function stringifyClass (value) {
  8530. if (Array.isArray(value)) {
  8531. return stringifyArray(value)
  8532. }
  8533. if (isObject(value)) {
  8534. return stringifyObject(value)
  8535. }
  8536. if (typeof value === 'string') {
  8537. return value
  8538. }
  8539. /* istanbul ignore next */
  8540. return ''
  8541. }
  8542. function stringifyArray (value) {
  8543. var res = '';
  8544. var stringified;
  8545. for (var i = 0, l = value.length; i < l; i++) {
  8546. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8547. if (res) { res += ' '; }
  8548. res += stringified;
  8549. }
  8550. }
  8551. return res
  8552. }
  8553. function stringifyObject (value) {
  8554. var res = '';
  8555. for (var key in value) {
  8556. if (value[key]) {
  8557. if (res) { res += ' '; }
  8558. res += key;
  8559. }
  8560. }
  8561. return res
  8562. }
  8563. /* */
  8564. var parseStyleText = cached(function (cssText) {
  8565. var res = {};
  8566. var listDelimiter = /;(?![^(]*\))/g;
  8567. var propertyDelimiter = /:(.+)/;
  8568. cssText.split(listDelimiter).forEach(function (item) {
  8569. if (item) {
  8570. var tmp = item.split(propertyDelimiter);
  8571. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8572. }
  8573. });
  8574. return res
  8575. });
  8576. // normalize possible array / string values into Object
  8577. function normalizeStyleBinding (bindingStyle) {
  8578. if (Array.isArray(bindingStyle)) {
  8579. return toObject(bindingStyle)
  8580. }
  8581. if (typeof bindingStyle === 'string') {
  8582. return parseStyleText(bindingStyle)
  8583. }
  8584. return bindingStyle
  8585. }
  8586. /* */
  8587. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8588. function getTarget(obj, path) {
  8589. var parts = path.split('.');
  8590. var key = parts[0];
  8591. if (key.indexOf('__$n') === 0) { //number index
  8592. key = parseInt(key.replace('__$n', ''));
  8593. }
  8594. if (parts.length === 1) {
  8595. return obj[key]
  8596. }
  8597. return getTarget(obj[key], parts.slice(1).join('.'))
  8598. }
  8599. function internalMixin(Vue) {
  8600. Vue.config.errorHandler = function(err, vm, info) {
  8601. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8602. console.error(err);
  8603. /* eslint-disable no-undef */
  8604. var app = typeof getApp === 'function' && getApp();
  8605. if (app && app.onError) {
  8606. app.onError(err);
  8607. }
  8608. };
  8609. var oldEmit = Vue.prototype.$emit;
  8610. Vue.prototype.$emit = function(event) {
  8611. if (this.$scope && event) {
  8612. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8613. if (triggerEvent) {
  8614. try {
  8615. triggerEvent.call(this.$scope, event, {
  8616. __args__: toArray(arguments, 1)
  8617. });
  8618. } catch (error) {
  8619. }
  8620. }
  8621. }
  8622. return oldEmit.apply(this, arguments)
  8623. };
  8624. Vue.prototype.$nextTick = function(fn) {
  8625. return nextTick$1(this, fn)
  8626. };
  8627. MP_METHODS.forEach(function (method) {
  8628. Vue.prototype[method] = function(args) {
  8629. if (this.$scope && this.$scope[method]) {
  8630. return this.$scope[method](args)
  8631. }
  8632. // mp-alipay
  8633. if (typeof my === 'undefined') {
  8634. return
  8635. }
  8636. if (method === 'createSelectorQuery') {
  8637. /* eslint-disable no-undef */
  8638. return my.createSelectorQuery(args)
  8639. } else if (method === 'createIntersectionObserver') {
  8640. /* eslint-disable no-undef */
  8641. return my.createIntersectionObserver(args)
  8642. }
  8643. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8644. };
  8645. });
  8646. Vue.prototype.__init_provide = initProvide;
  8647. Vue.prototype.__init_injections = initInjections;
  8648. Vue.prototype.__call_hook = function(hook, args) {
  8649. var vm = this;
  8650. // #7573 disable dep collection when invoking lifecycle hooks
  8651. pushTarget();
  8652. var handlers = vm.$options[hook];
  8653. var info = hook + " hook";
  8654. var ret;
  8655. if (handlers) {
  8656. for (var i = 0, j = handlers.length; i < j; i++) {
  8657. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8658. }
  8659. }
  8660. if (vm._hasHookEvent) {
  8661. vm.$emit('hook:' + hook, args);
  8662. }
  8663. popTarget();
  8664. return ret
  8665. };
  8666. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8667. if (Array.isArray(modifiers)) {
  8668. if (modifiers.indexOf('trim') !== -1) {
  8669. value = value.trim();
  8670. }
  8671. if (modifiers.indexOf('number') !== -1) {
  8672. value = this._n(value);
  8673. }
  8674. }
  8675. if (!target) {
  8676. target = this;
  8677. }
  8678. // 解决动态属性添加
  8679. Vue.set(target, key, value);
  8680. };
  8681. Vue.prototype.__set_sync = function(target, key, value) {
  8682. if (!target) {
  8683. target = this;
  8684. }
  8685. // 解决动态属性添加
  8686. Vue.set(target, key, value);
  8687. };
  8688. Vue.prototype.__get_orig = function(item) {
  8689. if (isPlainObject(item)) {
  8690. return item['$orig'] || item
  8691. }
  8692. return item
  8693. };
  8694. Vue.prototype.__get_value = function(dataPath, target) {
  8695. return getTarget(target || this, dataPath)
  8696. };
  8697. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  8698. return renderClass(staticClass, dynamicClass)
  8699. };
  8700. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  8701. if (!dynamicStyle && !staticStyle) {
  8702. return ''
  8703. }
  8704. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  8705. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  8706. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  8707. };
  8708. Vue.prototype.__map = function(val, iteratee) {
  8709. //TODO 暂不考虑 string
  8710. var ret, i, l, keys, key;
  8711. if (Array.isArray(val)) {
  8712. ret = new Array(val.length);
  8713. for (i = 0, l = val.length; i < l; i++) {
  8714. ret[i] = iteratee(val[i], i);
  8715. }
  8716. return ret
  8717. } else if (isObject(val)) {
  8718. keys = Object.keys(val);
  8719. ret = Object.create(null);
  8720. for (i = 0, l = keys.length; i < l; i++) {
  8721. key = keys[i];
  8722. ret[key] = iteratee(val[key], key, i);
  8723. }
  8724. return ret
  8725. } else if (typeof val === 'number') {
  8726. ret = new Array(val);
  8727. for (i = 0, l = val; i < l; i++) {
  8728. // 第一个参数暂时仍和小程序一致
  8729. ret[i] = iteratee(i, i);
  8730. }
  8731. return ret
  8732. }
  8733. return []
  8734. };
  8735. }
  8736. /* */
  8737. var LIFECYCLE_HOOKS$1 = [
  8738. //App
  8739. 'onLaunch',
  8740. 'onShow',
  8741. 'onHide',
  8742. 'onUniNViewMessage',
  8743. 'onPageNotFound',
  8744. 'onThemeChange',
  8745. 'onError',
  8746. 'onUnhandledRejection',
  8747. //Page
  8748. 'onInit',
  8749. 'onLoad',
  8750. // 'onShow',
  8751. 'onReady',
  8752. // 'onHide',
  8753. 'onUnload',
  8754. 'onPullDownRefresh',
  8755. 'onReachBottom',
  8756. 'onTabItemTap',
  8757. 'onAddToFavorites',
  8758. 'onShareTimeline',
  8759. 'onShareAppMessage',
  8760. 'onResize',
  8761. 'onPageScroll',
  8762. 'onNavigationBarButtonTap',
  8763. 'onBackPress',
  8764. 'onNavigationBarSearchInputChanged',
  8765. 'onNavigationBarSearchInputConfirmed',
  8766. 'onNavigationBarSearchInputClicked',
  8767. 'onUploadDouyinVideo',
  8768. 'onNFCReadMessage',
  8769. //Component
  8770. // 'onReady', // 兼容旧版本,应该移除该事件
  8771. 'onPageShow',
  8772. 'onPageHide',
  8773. 'onPageResize'
  8774. ];
  8775. function lifecycleMixin$1(Vue) {
  8776. //fixed vue-class-component
  8777. var oldExtend = Vue.extend;
  8778. Vue.extend = function(extendOptions) {
  8779. extendOptions = extendOptions || {};
  8780. var methods = extendOptions.methods;
  8781. if (methods) {
  8782. Object.keys(methods).forEach(function (methodName) {
  8783. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  8784. extendOptions[methodName] = methods[methodName];
  8785. delete methods[methodName];
  8786. }
  8787. });
  8788. }
  8789. return oldExtend.call(this, extendOptions)
  8790. };
  8791. var strategies = Vue.config.optionMergeStrategies;
  8792. var mergeHook = strategies.created;
  8793. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  8794. strategies[hook] = mergeHook;
  8795. });
  8796. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  8797. }
  8798. /* */
  8799. // install platform patch function
  8800. Vue.prototype.__patch__ = patch;
  8801. // public mount method
  8802. Vue.prototype.$mount = function(
  8803. el ,
  8804. hydrating
  8805. ) {
  8806. return mountComponent$1(this, el, hydrating)
  8807. };
  8808. lifecycleMixin$1(Vue);
  8809. internalMixin(Vue);
  8810. /* */
  8811. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  8812. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 3)))
  8813. /***/ }),
  8814. /* 26 */
  8815. /*!***************************************************!*\
  8816. !*** D:/baozhida/baozhida-mall-applet/pages.json ***!
  8817. \***************************************************/
  8818. /*! no static exports found */
  8819. /***/ (function(module, exports) {
  8820. /***/ }),
  8821. /* 27 */,
  8822. /* 28 */,
  8823. /* 29 */,
  8824. /* 30 */,
  8825. /* 31 */,
  8826. /* 32 */
  8827. /*!**********************************************************************************************************!*\
  8828. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  8829. \**********************************************************************************************************/
  8830. /*! exports provided: default */
  8831. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8832. "use strict";
  8833. __webpack_require__.r(__webpack_exports__);
  8834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  8835. /* globals __VUE_SSR_CONTEXT__ */
  8836. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  8837. // This module is a runtime utility for cleaner component module output and will
  8838. // be included in the final webpack user bundle.
  8839. function normalizeComponent (
  8840. scriptExports,
  8841. render,
  8842. staticRenderFns,
  8843. functionalTemplate,
  8844. injectStyles,
  8845. scopeId,
  8846. moduleIdentifier, /* server only */
  8847. shadowMode, /* vue-cli only */
  8848. components, // fixed by xxxxxx auto components
  8849. renderjs // fixed by xxxxxx renderjs
  8850. ) {
  8851. // Vue.extend constructor export interop
  8852. var options = typeof scriptExports === 'function'
  8853. ? scriptExports.options
  8854. : scriptExports
  8855. // fixed by xxxxxx auto components
  8856. if (components) {
  8857. if (!options.components) {
  8858. options.components = {}
  8859. }
  8860. var hasOwn = Object.prototype.hasOwnProperty
  8861. for (var name in components) {
  8862. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  8863. options.components[name] = components[name]
  8864. }
  8865. }
  8866. }
  8867. // fixed by xxxxxx renderjs
  8868. if (renderjs) {
  8869. if(typeof renderjs.beforeCreate === 'function'){
  8870. renderjs.beforeCreate = [renderjs.beforeCreate]
  8871. }
  8872. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  8873. this[renderjs.__module] = this
  8874. });
  8875. (options.mixins || (options.mixins = [])).push(renderjs)
  8876. }
  8877. // render functions
  8878. if (render) {
  8879. options.render = render
  8880. options.staticRenderFns = staticRenderFns
  8881. options._compiled = true
  8882. }
  8883. // functional template
  8884. if (functionalTemplate) {
  8885. options.functional = true
  8886. }
  8887. // scopedId
  8888. if (scopeId) {
  8889. options._scopeId = 'data-v-' + scopeId
  8890. }
  8891. var hook
  8892. if (moduleIdentifier) { // server build
  8893. hook = function (context) {
  8894. // 2.3 injection
  8895. context =
  8896. context || // cached call
  8897. (this.$vnode && this.$vnode.ssrContext) || // stateful
  8898. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  8899. // 2.2 with runInNewContext: true
  8900. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  8901. context = __VUE_SSR_CONTEXT__
  8902. }
  8903. // inject component styles
  8904. if (injectStyles) {
  8905. injectStyles.call(this, context)
  8906. }
  8907. // register component module identifier for async chunk inferrence
  8908. if (context && context._registeredComponents) {
  8909. context._registeredComponents.add(moduleIdentifier)
  8910. }
  8911. }
  8912. // used by ssr in case component is cached and beforeCreate
  8913. // never gets called
  8914. options._ssrRegister = hook
  8915. } else if (injectStyles) {
  8916. hook = shadowMode
  8917. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  8918. : injectStyles
  8919. }
  8920. if (hook) {
  8921. if (options.functional) {
  8922. // for template-only hot-reload because in that case the render fn doesn't
  8923. // go through the normalizer
  8924. options._injectStyles = hook
  8925. // register for functioal component in vue file
  8926. var originalRender = options.render
  8927. options.render = function renderWithStyleInjection (h, context) {
  8928. hook.call(context)
  8929. return originalRender(h, context)
  8930. }
  8931. } else {
  8932. // inject component registration as beforeCreate hook
  8933. var existing = options.beforeCreate
  8934. options.beforeCreate = existing
  8935. ? [].concat(existing, hook)
  8936. : [hook]
  8937. }
  8938. }
  8939. return {
  8940. exports: scriptExports,
  8941. options: options
  8942. }
  8943. }
  8944. /***/ }),
  8945. /* 33 */
  8946. /*!**********************************************************!*\
  8947. !*** D:/baozhida/baozhida-mall-applet/uview-ui/index.js ***!
  8948. \**********************************************************/
  8949. /*! no static exports found */
  8950. /***/ (function(module, exports, __webpack_require__) {
  8951. "use strict";
  8952. /* WEBPACK VAR INJECTION */(function(uni) {
  8953. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  8954. Object.defineProperty(exports, "__esModule", {
  8955. value: true
  8956. });
  8957. exports.default = void 0;
  8958. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  8959. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 34));
  8960. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 35));
  8961. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 36));
  8962. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 54));
  8963. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 58));
  8964. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 59));
  8965. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 60));
  8966. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 61));
  8967. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 62));
  8968. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 65));
  8969. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 66));
  8970. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 156));
  8971. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 114));
  8972. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 157));
  8973. 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; }
  8974. 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; }
  8975. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  8976. var pleaseSetTranspileDependencies = {},
  8977. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  8978. // 引入全局mixin
  8979. var $u = _objectSpread(_objectSpread({
  8980. route: _route.default,
  8981. date: _index.default.timeFormat,
  8982. // 另名date
  8983. colorGradient: _colorGradient.default.colorGradient,
  8984. hexToRgb: _colorGradient.default.hexToRgb,
  8985. rgbToHex: _colorGradient.default.rgbToHex,
  8986. colorToRgba: _colorGradient.default.colorToRgba,
  8987. test: _test.default,
  8988. type: ['primary', 'success', 'error', 'warning', 'info'],
  8989. http: new _luchRequest.default(),
  8990. config: _config.default,
  8991. // uView配置信息相关,比如版本号
  8992. zIndex: _zIndex.default,
  8993. debounce: _debounce.default,
  8994. throttle: _throttle.default,
  8995. mixin: _mixin.default,
  8996. mpMixin: _mpMixin.default,
  8997. props: _props.default
  8998. }, _index.default), {}, {
  8999. color: _color.default,
  9000. platform: _platform.default
  9001. });
  9002. // $u挂载到uni对象上
  9003. uni.$u = $u;
  9004. var install = function install(Vue) {
  9005. // 时间格式化,同时两个名称,date和timeFormat
  9006. Vue.filter('timeFormat', function (timestamp, format) {
  9007. return uni.$u.timeFormat(timestamp, format);
  9008. });
  9009. Vue.filter('date', function (timestamp, format) {
  9010. return uni.$u.timeFormat(timestamp, format);
  9011. });
  9012. // 将多久以前的方法,注入到全局过滤器
  9013. Vue.filter('timeFrom', function (timestamp, format) {
  9014. return uni.$u.timeFrom(timestamp, format);
  9015. });
  9016. // 同时挂载到uni和Vue.prototype中
  9017. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9018. Vue.prototype.$u = $u;
  9019. Vue.mixin(_mixin.default);
  9020. };
  9021. var _default = {
  9022. install: install
  9023. };
  9024. exports.default = _default;
  9025. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9026. /***/ }),
  9027. /* 34 */
  9028. /*!*********************************************************************!*\
  9029. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/mixin/mixin.js ***!
  9030. \*********************************************************************/
  9031. /*! no static exports found */
  9032. /***/ (function(module, exports, __webpack_require__) {
  9033. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9034. // 定义每个组件都可能需要用到的外部样式以及类名
  9035. props: {
  9036. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9037. customStyle: {
  9038. type: [Object, String],
  9039. default: function _default() {
  9040. return {};
  9041. }
  9042. },
  9043. customClass: {
  9044. type: String,
  9045. default: ''
  9046. },
  9047. // 跳转的页面路径
  9048. url: {
  9049. type: String,
  9050. default: ''
  9051. },
  9052. // 页面跳转的类型
  9053. linkType: {
  9054. type: String,
  9055. default: 'navigateTo'
  9056. }
  9057. },
  9058. data: function data() {
  9059. return {};
  9060. },
  9061. onLoad: function onLoad() {
  9062. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9063. this.$u.getRect = this.$uGetRect;
  9064. },
  9065. created: function created() {
  9066. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9067. this.$u.getRect = this.$uGetRect;
  9068. },
  9069. computed: {
  9070. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9071. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9072. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9073. $u: function $u() {
  9074. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9075. return uni.$u.deepMerge(uni.$u, {
  9076. props: undefined,
  9077. http: undefined,
  9078. mixin: undefined
  9079. });
  9080. },
  9081. /**
  9082. * 生成bem规则类名
  9083. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9084. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9085. * @param {String} name 组件名称
  9086. * @param {Array} fixed 一直会存在的类名
  9087. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9088. * @returns {Array|string}
  9089. */
  9090. bem: function bem() {
  9091. return function (name, fixed, change) {
  9092. var _this = this;
  9093. // 类名前缀
  9094. var prefix = "u-".concat(name, "--");
  9095. var classes = {};
  9096. if (fixed) {
  9097. fixed.map(function (item) {
  9098. // 这里的类名,会一直存在
  9099. classes[prefix + _this[item]] = true;
  9100. });
  9101. }
  9102. if (change) {
  9103. change.map(function (item) {
  9104. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9105. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9106. });
  9107. }
  9108. return Object.keys(classes);
  9109. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9110. };
  9111. }
  9112. },
  9113. methods: {
  9114. // 跳转某一个页面
  9115. openPage: function openPage() {
  9116. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9117. var url = this[urlKey];
  9118. if (url) {
  9119. // 执行类似uni.navigateTo的方法
  9120. uni[this.linkType]({
  9121. url: url
  9122. });
  9123. }
  9124. },
  9125. // 查询节点信息
  9126. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9127. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9128. $uGetRect: function $uGetRect(selector, all) {
  9129. var _this2 = this;
  9130. return new Promise(function (resolve) {
  9131. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9132. if (all && Array.isArray(rect) && rect.length) {
  9133. resolve(rect);
  9134. }
  9135. if (!all && rect) {
  9136. resolve(rect);
  9137. }
  9138. }).exec();
  9139. });
  9140. },
  9141. getParentData: function getParentData() {
  9142. var _this3 = this;
  9143. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9144. // 避免在created中去定义parent变量
  9145. if (!this.parent) this.parent = {};
  9146. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9147. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9148. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9149. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9150. this.parent = uni.$u.$parent.call(this, parentName);
  9151. if (this.parent.children) {
  9152. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9153. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9154. }
  9155. if (this.parent && this.parentData) {
  9156. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9157. Object.keys(this.parentData).map(function (key) {
  9158. _this3.parentData[key] = _this3.parent[key];
  9159. });
  9160. }
  9161. },
  9162. // 阻止事件冒泡
  9163. preventEvent: function preventEvent(e) {
  9164. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9165. },
  9166. // 空操作
  9167. noop: function noop(e) {
  9168. this.preventEvent(e);
  9169. }
  9170. },
  9171. onReachBottom: function onReachBottom() {
  9172. uni.$emit('uOnReachBottom');
  9173. },
  9174. beforeDestroy: function beforeDestroy() {
  9175. var _this4 = this;
  9176. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9177. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9178. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9179. // 组件销毁时,移除父组件中的children数组中对应的实例
  9180. var childrenList = this.parent.children;
  9181. childrenList.map(function (child, index) {
  9182. // 如果相等,则移除
  9183. if (child === _this4) {
  9184. childrenList.splice(index, 1);
  9185. }
  9186. });
  9187. }
  9188. }
  9189. };
  9190. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9191. /***/ }),
  9192. /* 35 */
  9193. /*!***********************************************************************!*\
  9194. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/mixin/mpMixin.js ***!
  9195. \***********************************************************************/
  9196. /*! no static exports found */
  9197. /***/ (function(module, exports, __webpack_require__) {
  9198. "use strict";
  9199. Object.defineProperty(exports, "__esModule", {
  9200. value: true
  9201. });
  9202. exports.default = void 0;
  9203. var _default = {
  9204. // 将自定义节点设置成虚拟的,更加接近Vue组件的表现,能更好的使用flex属性
  9205. options: {
  9206. virtualHost: true
  9207. }
  9208. };
  9209. exports.default = _default;
  9210. /***/ }),
  9211. /* 36 */
  9212. /*!****************************************************************************!*\
  9213. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/index.js ***!
  9214. \****************************************************************************/
  9215. /*! no static exports found */
  9216. /***/ (function(module, exports, __webpack_require__) {
  9217. "use strict";
  9218. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9219. Object.defineProperty(exports, "__esModule", {
  9220. value: true
  9221. });
  9222. exports.default = void 0;
  9223. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 37));
  9224. var _default = _Request.default;
  9225. exports.default = _default;
  9226. /***/ }),
  9227. /* 37 */
  9228. /*!***********************************************************************************!*\
  9229. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/core/Request.js ***!
  9230. \***********************************************************************************/
  9231. /*! no static exports found */
  9232. /***/ (function(module, exports, __webpack_require__) {
  9233. "use strict";
  9234. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9235. Object.defineProperty(exports, "__esModule", {
  9236. value: true
  9237. });
  9238. exports.default = void 0;
  9239. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9240. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  9241. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  9242. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 38));
  9243. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 46));
  9244. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 47));
  9245. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 48));
  9246. var _utils = __webpack_require__(/*! ../utils */ 41);
  9247. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 49));
  9248. 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; }
  9249. 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; }
  9250. var Request = /*#__PURE__*/function () {
  9251. /**
  9252. * @param {Object} arg - 全局配置
  9253. * @param {String} arg.baseURL - 全局根路径
  9254. * @param {Object} arg.header - 全局header
  9255. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9256. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9257. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9258. * @param {Object} arg.custom - 全局默认的自定义参数
  9259. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9260. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9261. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9262. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9263. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9264. */
  9265. function Request() {
  9266. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9267. (0, _classCallCheck2.default)(this, Request);
  9268. if (!(0, _utils.isPlainObject)(arg)) {
  9269. arg = {};
  9270. console.warn('设置全局参数必须接收一个Object');
  9271. }
  9272. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9273. this.interceptors = {
  9274. request: new _InterceptorManager.default(),
  9275. response: new _InterceptorManager.default()
  9276. };
  9277. }
  9278. /**
  9279. * @Function
  9280. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9281. */
  9282. (0, _createClass2.default)(Request, [{
  9283. key: "setConfig",
  9284. value: function setConfig(f) {
  9285. this.config = f(this.config);
  9286. }
  9287. }, {
  9288. key: "middleware",
  9289. value: function middleware(config) {
  9290. config = (0, _mergeConfig.default)(this.config, config);
  9291. var chain = [_dispatchRequest.default, undefined];
  9292. var promise = Promise.resolve(config);
  9293. this.interceptors.request.forEach(function (interceptor) {
  9294. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9295. });
  9296. this.interceptors.response.forEach(function (interceptor) {
  9297. chain.push(interceptor.fulfilled, interceptor.rejected);
  9298. });
  9299. while (chain.length) {
  9300. promise = promise.then(chain.shift(), chain.shift());
  9301. }
  9302. return promise;
  9303. }
  9304. /**
  9305. * @Function
  9306. * @param {Object} config - 请求配置项
  9307. * @prop {String} options.url - 请求路径
  9308. * @prop {Object} options.data - 请求参数
  9309. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9310. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9311. * @prop {Object} [options.header = config.header] - 请求header
  9312. * @prop {Object} [options.method = config.method] - 请求方法
  9313. * @returns {Promise<unknown>}
  9314. */
  9315. }, {
  9316. key: "request",
  9317. value: function request() {
  9318. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9319. return this.middleware(config);
  9320. }
  9321. }, {
  9322. key: "get",
  9323. value: function get(url) {
  9324. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9325. return this.middleware(_objectSpread({
  9326. url: url,
  9327. method: 'GET'
  9328. }, options));
  9329. }
  9330. }, {
  9331. key: "post",
  9332. value: function post(url, data) {
  9333. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9334. return this.middleware(_objectSpread({
  9335. url: url,
  9336. data: data,
  9337. method: 'POST'
  9338. }, options));
  9339. }
  9340. }, {
  9341. key: "put",
  9342. value: function put(url, data) {
  9343. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9344. return this.middleware(_objectSpread({
  9345. url: url,
  9346. data: data,
  9347. method: 'PUT'
  9348. }, options));
  9349. }
  9350. }, {
  9351. key: "delete",
  9352. value: function _delete(url, data) {
  9353. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9354. return this.middleware(_objectSpread({
  9355. url: url,
  9356. data: data,
  9357. method: 'DELETE'
  9358. }, options));
  9359. }
  9360. }, {
  9361. key: "connect",
  9362. value: function connect(url, data) {
  9363. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9364. return this.middleware(_objectSpread({
  9365. url: url,
  9366. data: data,
  9367. method: 'CONNECT'
  9368. }, options));
  9369. }
  9370. }, {
  9371. key: "head",
  9372. value: function head(url, data) {
  9373. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9374. return this.middleware(_objectSpread({
  9375. url: url,
  9376. data: data,
  9377. method: 'HEAD'
  9378. }, options));
  9379. }
  9380. }, {
  9381. key: "options",
  9382. value: function options(url, data) {
  9383. var _options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9384. return this.middleware(_objectSpread({
  9385. url: url,
  9386. data: data,
  9387. method: 'OPTIONS'
  9388. }, _options));
  9389. }
  9390. }, {
  9391. key: "trace",
  9392. value: function trace(url, data) {
  9393. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9394. return this.middleware(_objectSpread({
  9395. url: url,
  9396. data: data,
  9397. method: 'TRACE'
  9398. }, options));
  9399. }
  9400. }, {
  9401. key: "upload",
  9402. value: function upload(url) {
  9403. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9404. config.url = url;
  9405. config.method = 'UPLOAD';
  9406. return this.middleware(config);
  9407. }
  9408. }, {
  9409. key: "download",
  9410. value: function download(url) {
  9411. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9412. config.url = url;
  9413. config.method = 'DOWNLOAD';
  9414. return this.middleware(config);
  9415. }
  9416. }]);
  9417. return Request;
  9418. }();
  9419. /**
  9420. * setConfig回调
  9421. * @return {Object} - 返回操作后的config
  9422. * @callback Request~setConfigCallback
  9423. * @param {Object} config - 全局默认config
  9424. */
  9425. exports.default = Request;
  9426. /***/ }),
  9427. /* 38 */
  9428. /*!*******************************************************************************************!*\
  9429. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9430. \*******************************************************************************************/
  9431. /*! no static exports found */
  9432. /***/ (function(module, exports, __webpack_require__) {
  9433. "use strict";
  9434. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9435. Object.defineProperty(exports, "__esModule", {
  9436. value: true
  9437. });
  9438. exports.default = void 0;
  9439. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 39));
  9440. var _default = function _default(config) {
  9441. return (0, _index.default)(config);
  9442. };
  9443. exports.default = _default;
  9444. /***/ }),
  9445. /* 39 */
  9446. /*!*************************************************************************************!*\
  9447. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/adapters/index.js ***!
  9448. \*************************************************************************************/
  9449. /*! no static exports found */
  9450. /***/ (function(module, exports, __webpack_require__) {
  9451. "use strict";
  9452. /* WEBPACK VAR INJECTION */(function(uni) {
  9453. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9454. Object.defineProperty(exports, "__esModule", {
  9455. value: true
  9456. });
  9457. exports.default = void 0;
  9458. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9459. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 40));
  9460. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 42));
  9461. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 45));
  9462. var _utils = __webpack_require__(/*! ../utils */ 41);
  9463. 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; }
  9464. 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; }
  9465. /**
  9466. * 返回可选值存在的配置
  9467. * @param {Array} keys - 可选值数组
  9468. * @param {Object} config2 - 配置
  9469. * @return {{}} - 存在的配置项
  9470. */
  9471. var mergeKeys = function mergeKeys(keys, config2) {
  9472. var config = {};
  9473. keys.forEach(function (prop) {
  9474. if (!(0, _utils.isUndefined)(config2[prop])) {
  9475. config[prop] = config2[prop];
  9476. }
  9477. });
  9478. return config;
  9479. };
  9480. var _default = function _default(config) {
  9481. return new Promise(function (resolve, reject) {
  9482. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9483. var _config = {
  9484. url: fullPath,
  9485. header: config.header,
  9486. complete: function complete(response) {
  9487. config.fullPath = fullPath;
  9488. response.config = config;
  9489. try {
  9490. // 对可能字符串不是json 的情况容错
  9491. if (typeof response.data === 'string') {
  9492. response.data = JSON.parse(response.data);
  9493. }
  9494. // eslint-disable-next-line no-empty
  9495. } catch (e) {}
  9496. (0, _settle.default)(resolve, reject, response);
  9497. }
  9498. };
  9499. var requestTask;
  9500. if (config.method === 'UPLOAD') {
  9501. delete _config.header['content-type'];
  9502. delete _config.header['Content-Type'];
  9503. var otherConfig = {
  9504. filePath: config.filePath,
  9505. name: config.name
  9506. };
  9507. var optionalKeys = ['formData'];
  9508. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9509. } else if (config.method === 'DOWNLOAD') {
  9510. requestTask = uni.downloadFile(_config);
  9511. } else {
  9512. var _optionalKeys = ['data', 'method', 'timeout', 'dataType', 'responseType'];
  9513. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9514. }
  9515. if (config.getTask) {
  9516. config.getTask(requestTask, config);
  9517. }
  9518. });
  9519. };
  9520. exports.default = _default;
  9521. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  9522. /***/ }),
  9523. /* 40 */
  9524. /*!***************************************************************************************!*\
  9525. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9526. \***************************************************************************************/
  9527. /*! no static exports found */
  9528. /***/ (function(module, exports, __webpack_require__) {
  9529. "use strict";
  9530. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 13);
  9531. Object.defineProperty(exports, "__esModule", {
  9532. value: true
  9533. });
  9534. exports.default = buildURL;
  9535. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 41));
  9536. function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
  9537. function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  9538. function encode(val) {
  9539. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9540. }
  9541. /**
  9542. * Build a URL by appending params to the end
  9543. *
  9544. * @param {string} url The base of the url (e.g., http://www.google.com)
  9545. * @param {object} [params] The params to be appended
  9546. * @returns {string} The formatted url
  9547. */
  9548. function buildURL(url, params) {
  9549. /* eslint no-param-reassign:0 */
  9550. if (!params) {
  9551. return url;
  9552. }
  9553. var serializedParams;
  9554. if (utils.isURLSearchParams(params)) {
  9555. serializedParams = params.toString();
  9556. } else {
  9557. var parts = [];
  9558. utils.forEach(params, function (val, key) {
  9559. if (val === null || typeof val === 'undefined') {
  9560. return;
  9561. }
  9562. if (utils.isArray(val)) {
  9563. key = "".concat(key, "[]");
  9564. } else {
  9565. val = [val];
  9566. }
  9567. utils.forEach(val, function (v) {
  9568. if (utils.isDate(v)) {
  9569. v = v.toISOString();
  9570. } else if (utils.isObject(v)) {
  9571. v = JSON.stringify(v);
  9572. }
  9573. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9574. });
  9575. });
  9576. serializedParams = parts.join('&');
  9577. }
  9578. if (serializedParams) {
  9579. var hashmarkIndex = url.indexOf('#');
  9580. if (hashmarkIndex !== -1) {
  9581. url = url.slice(0, hashmarkIndex);
  9582. }
  9583. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9584. }
  9585. return url;
  9586. }
  9587. /***/ }),
  9588. /* 41 */
  9589. /*!****************************************************************************!*\
  9590. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/utils.js ***!
  9591. \****************************************************************************/
  9592. /*! no static exports found */
  9593. /***/ (function(module, exports, __webpack_require__) {
  9594. "use strict";
  9595. // utils is a library of generic helper functions non-specific to axios
  9596. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9597. Object.defineProperty(exports, "__esModule", {
  9598. value: true
  9599. });
  9600. exports.deepMerge = deepMerge;
  9601. exports.forEach = forEach;
  9602. exports.isArray = isArray;
  9603. exports.isBoolean = isBoolean;
  9604. exports.isDate = isDate;
  9605. exports.isObject = isObject;
  9606. exports.isPlainObject = isPlainObject;
  9607. exports.isURLSearchParams = isURLSearchParams;
  9608. exports.isUndefined = isUndefined;
  9609. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  9610. var toString = Object.prototype.toString;
  9611. /**
  9612. * Determine if a value is an Array
  9613. *
  9614. * @param {Object} val The value to test
  9615. * @returns {boolean} True if value is an Array, otherwise false
  9616. */
  9617. function isArray(val) {
  9618. return toString.call(val) === '[object Array]';
  9619. }
  9620. /**
  9621. * Determine if a value is an Object
  9622. *
  9623. * @param {Object} val The value to test
  9624. * @returns {boolean} True if value is an Object, otherwise false
  9625. */
  9626. function isObject(val) {
  9627. return val !== null && (0, _typeof2.default)(val) === 'object';
  9628. }
  9629. /**
  9630. * Determine if a value is a Date
  9631. *
  9632. * @param {Object} val The value to test
  9633. * @returns {boolean} True if value is a Date, otherwise false
  9634. */
  9635. function isDate(val) {
  9636. return toString.call(val) === '[object Date]';
  9637. }
  9638. /**
  9639. * Determine if a value is a URLSearchParams object
  9640. *
  9641. * @param {Object} val The value to test
  9642. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9643. */
  9644. function isURLSearchParams(val) {
  9645. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9646. }
  9647. /**
  9648. * Iterate over an Array or an Object invoking a function for each item.
  9649. *
  9650. * If `obj` is an Array callback will be called passing
  9651. * the value, index, and complete array for each item.
  9652. *
  9653. * If 'obj' is an Object callback will be called passing
  9654. * the value, key, and complete object for each property.
  9655. *
  9656. * @param {Object|Array} obj The object to iterate
  9657. * @param {Function} fn The callback to invoke for each item
  9658. */
  9659. function forEach(obj, fn) {
  9660. // Don't bother if no value provided
  9661. if (obj === null || typeof obj === 'undefined') {
  9662. return;
  9663. }
  9664. // Force an array if not already something iterable
  9665. if ((0, _typeof2.default)(obj) !== 'object') {
  9666. /* eslint no-param-reassign:0 */
  9667. obj = [obj];
  9668. }
  9669. if (isArray(obj)) {
  9670. // Iterate over array values
  9671. for (var i = 0, l = obj.length; i < l; i++) {
  9672. fn.call(null, obj[i], i, obj);
  9673. }
  9674. } else {
  9675. // Iterate over object keys
  9676. for (var key in obj) {
  9677. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9678. fn.call(null, obj[key], key, obj);
  9679. }
  9680. }
  9681. }
  9682. }
  9683. /**
  9684. * 是否为boolean 值
  9685. * @param val
  9686. * @returns {boolean}
  9687. */
  9688. function isBoolean(val) {
  9689. return typeof val === 'boolean';
  9690. }
  9691. /**
  9692. * 是否为真正的对象{} new Object
  9693. * @param {any} obj - 检测的对象
  9694. * @returns {boolean}
  9695. */
  9696. function isPlainObject(obj) {
  9697. return Object.prototype.toString.call(obj) === '[object Object]';
  9698. }
  9699. /**
  9700. * Function equal to merge with the difference being that no reference
  9701. * to original objects is kept.
  9702. *
  9703. * @see merge
  9704. * @param {Object} obj1 Object to merge
  9705. * @returns {Object} Result of all merge properties
  9706. */
  9707. function deepMerge( /* obj1, obj2, obj3, ... */
  9708. ) {
  9709. var result = {};
  9710. function assignValue(val, key) {
  9711. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9712. result[key] = deepMerge(result[key], val);
  9713. } else if ((0, _typeof2.default)(val) === 'object') {
  9714. result[key] = deepMerge({}, val);
  9715. } else {
  9716. result[key] = val;
  9717. }
  9718. }
  9719. for (var i = 0, l = arguments.length; i < l; i++) {
  9720. forEach(arguments[i], assignValue);
  9721. }
  9722. return result;
  9723. }
  9724. function isUndefined(val) {
  9725. return typeof val === 'undefined';
  9726. }
  9727. /***/ }),
  9728. /* 42 */
  9729. /*!*****************************************************************************************!*\
  9730. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  9731. \*****************************************************************************************/
  9732. /*! no static exports found */
  9733. /***/ (function(module, exports, __webpack_require__) {
  9734. "use strict";
  9735. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9736. Object.defineProperty(exports, "__esModule", {
  9737. value: true
  9738. });
  9739. exports.default = buildFullPath;
  9740. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 43));
  9741. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 44));
  9742. /**
  9743. * Creates a new URL by combining the baseURL with the requestedURL,
  9744. * only when the requestedURL is not already an absolute URL.
  9745. * If the requestURL is absolute, this function returns the requestedURL untouched.
  9746. *
  9747. * @param {string} baseURL The base URL
  9748. * @param {string} requestedURL Absolute or relative URL to combine
  9749. * @returns {string} The combined full path
  9750. */
  9751. function buildFullPath(baseURL, requestedURL) {
  9752. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  9753. return (0, _combineURLs.default)(baseURL, requestedURL);
  9754. }
  9755. return requestedURL;
  9756. }
  9757. /***/ }),
  9758. /* 43 */
  9759. /*!********************************************************************************************!*\
  9760. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  9761. \********************************************************************************************/
  9762. /*! no static exports found */
  9763. /***/ (function(module, exports, __webpack_require__) {
  9764. "use strict";
  9765. /**
  9766. * Determines whether the specified URL is absolute
  9767. *
  9768. * @param {string} url The URL to test
  9769. * @returns {boolean} True if the specified URL is absolute, otherwise false
  9770. */
  9771. Object.defineProperty(exports, "__esModule", {
  9772. value: true
  9773. });
  9774. exports.default = isAbsoluteURL;
  9775. function isAbsoluteURL(url) {
  9776. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  9777. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  9778. // by any combination of letters, digits, plus, period, or hyphen.
  9779. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  9780. }
  9781. /***/ }),
  9782. /* 44 */
  9783. /*!******************************************************************************************!*\
  9784. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  9785. \******************************************************************************************/
  9786. /*! no static exports found */
  9787. /***/ (function(module, exports, __webpack_require__) {
  9788. "use strict";
  9789. /**
  9790. * Creates a new URL by combining the specified URLs
  9791. *
  9792. * @param {string} baseURL The base URL
  9793. * @param {string} relativeURL The relative URL
  9794. * @returns {string} The combined URL
  9795. */
  9796. Object.defineProperty(exports, "__esModule", {
  9797. value: true
  9798. });
  9799. exports.default = combineURLs;
  9800. function combineURLs(baseURL, relativeURL) {
  9801. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  9802. }
  9803. /***/ }),
  9804. /* 45 */
  9805. /*!**********************************************************************************!*\
  9806. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/core/settle.js ***!
  9807. \**********************************************************************************/
  9808. /*! no static exports found */
  9809. /***/ (function(module, exports, __webpack_require__) {
  9810. "use strict";
  9811. Object.defineProperty(exports, "__esModule", {
  9812. value: true
  9813. });
  9814. exports.default = settle;
  9815. /**
  9816. * Resolve or reject a Promise based on response status.
  9817. *
  9818. * @param {Function} resolve A function that resolves the promise.
  9819. * @param {Function} reject A function that rejects the promise.
  9820. * @param {object} response The response.
  9821. */
  9822. function settle(resolve, reject, response) {
  9823. var validateStatus = response.config.validateStatus;
  9824. var status = response.statusCode;
  9825. if (status && (!validateStatus || validateStatus(status))) {
  9826. resolve(response);
  9827. } else {
  9828. reject(response);
  9829. }
  9830. }
  9831. /***/ }),
  9832. /* 46 */
  9833. /*!**********************************************************************************************!*\
  9834. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  9835. \**********************************************************************************************/
  9836. /*! no static exports found */
  9837. /***/ (function(module, exports, __webpack_require__) {
  9838. "use strict";
  9839. Object.defineProperty(exports, "__esModule", {
  9840. value: true
  9841. });
  9842. exports.default = void 0;
  9843. function InterceptorManager() {
  9844. this.handlers = [];
  9845. }
  9846. /**
  9847. * Add a new interceptor to the stack
  9848. *
  9849. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  9850. * @param {Function} rejected The function to handle `reject` for a `Promise`
  9851. *
  9852. * @return {Number} An ID used to remove interceptor later
  9853. */
  9854. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  9855. this.handlers.push({
  9856. fulfilled: fulfilled,
  9857. rejected: rejected
  9858. });
  9859. return this.handlers.length - 1;
  9860. };
  9861. /**
  9862. * Remove an interceptor from the stack
  9863. *
  9864. * @param {Number} id The ID that was returned by `use`
  9865. */
  9866. InterceptorManager.prototype.eject = function eject(id) {
  9867. if (this.handlers[id]) {
  9868. this.handlers[id] = null;
  9869. }
  9870. };
  9871. /**
  9872. * Iterate over all the registered interceptors
  9873. *
  9874. * This method is particularly useful for skipping over any
  9875. * interceptors that may have become `null` calling `eject`.
  9876. *
  9877. * @param {Function} fn The function to call for each interceptor
  9878. */
  9879. InterceptorManager.prototype.forEach = function forEach(fn) {
  9880. this.handlers.forEach(function (h) {
  9881. if (h !== null) {
  9882. fn(h);
  9883. }
  9884. });
  9885. };
  9886. var _default = InterceptorManager;
  9887. exports.default = _default;
  9888. /***/ }),
  9889. /* 47 */
  9890. /*!***************************************************************************************!*\
  9891. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  9892. \***************************************************************************************/
  9893. /*! no static exports found */
  9894. /***/ (function(module, exports, __webpack_require__) {
  9895. "use strict";
  9896. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9897. Object.defineProperty(exports, "__esModule", {
  9898. value: true
  9899. });
  9900. exports.default = void 0;
  9901. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  9902. var _utils = __webpack_require__(/*! ../utils */ 41);
  9903. 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; }
  9904. 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; }
  9905. /**
  9906. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  9907. * @param {Array} keys - 配置项
  9908. * @param {Object} globalsConfig - 当前的全局配置
  9909. * @param {Object} config2 - 局部配置
  9910. * @return {{}}
  9911. */
  9912. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  9913. var config = {};
  9914. keys.forEach(function (prop) {
  9915. if (!(0, _utils.isUndefined)(config2[prop])) {
  9916. config[prop] = config2[prop];
  9917. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  9918. config[prop] = globalsConfig[prop];
  9919. }
  9920. });
  9921. return config;
  9922. };
  9923. /**
  9924. *
  9925. * @param globalsConfig - 当前实例的全局配置
  9926. * @param config2 - 当前的局部配置
  9927. * @return - 合并后的配置
  9928. */
  9929. var _default = function _default(globalsConfig) {
  9930. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9931. var method = config2.method || globalsConfig.method || 'GET';
  9932. var config = {
  9933. baseURL: globalsConfig.baseURL || '',
  9934. method: method,
  9935. url: config2.url || '',
  9936. params: config2.params || {},
  9937. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  9938. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  9939. };
  9940. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  9941. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  9942. // eslint-disable-next-line no-empty
  9943. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  9944. delete config.header['content-type'];
  9945. delete config.header['Content-Type'];
  9946. var uploadKeys = ['filePath', 'name', 'formData'];
  9947. uploadKeys.forEach(function (prop) {
  9948. if (!(0, _utils.isUndefined)(config2[prop])) {
  9949. config[prop] = config2[prop];
  9950. }
  9951. });
  9952. } else {
  9953. var defaultsKeys = ['data', 'timeout', 'dataType', 'responseType'];
  9954. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  9955. }
  9956. return config;
  9957. };
  9958. exports.default = _default;
  9959. /***/ }),
  9960. /* 48 */
  9961. /*!************************************************************************************!*\
  9962. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/core/defaults.js ***!
  9963. \************************************************************************************/
  9964. /*! no static exports found */
  9965. /***/ (function(module, exports, __webpack_require__) {
  9966. "use strict";
  9967. Object.defineProperty(exports, "__esModule", {
  9968. value: true
  9969. });
  9970. exports.default = void 0;
  9971. /**
  9972. * 默认的全局配置
  9973. */
  9974. var _default = {
  9975. baseURL: '',
  9976. header: {},
  9977. method: 'GET',
  9978. dataType: 'json',
  9979. responseType: 'text',
  9980. custom: {},
  9981. timeout: 60000,
  9982. validateStatus: function validateStatus(status) {
  9983. return status >= 200 && status < 300;
  9984. }
  9985. };
  9986. exports.default = _default;
  9987. /***/ }),
  9988. /* 49 */
  9989. /*!**********************************************************************************!*\
  9990. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/luch-request/utils/clone.js ***!
  9991. \**********************************************************************************/
  9992. /*! no static exports found */
  9993. /***/ (function(module, exports, __webpack_require__) {
  9994. "use strict";
  9995. /* WEBPACK VAR INJECTION */(function(Buffer) {
  9996. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  9997. Object.defineProperty(exports, "__esModule", {
  9998. value: true
  9999. });
  10000. exports.default = void 0;
  10001. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  10002. /* eslint-disable */
  10003. var clone = function () {
  10004. 'use strict';
  10005. function _instanceof(obj, type) {
  10006. return type != null && obj instanceof type;
  10007. }
  10008. var nativeMap;
  10009. try {
  10010. nativeMap = Map;
  10011. } catch (_) {
  10012. // maybe a reference error because no `Map`. Give it a dummy value that no
  10013. // value will ever be an instanceof.
  10014. nativeMap = function nativeMap() {};
  10015. }
  10016. var nativeSet;
  10017. try {
  10018. nativeSet = Set;
  10019. } catch (_) {
  10020. nativeSet = function nativeSet() {};
  10021. }
  10022. var nativePromise;
  10023. try {
  10024. nativePromise = Promise;
  10025. } catch (_) {
  10026. nativePromise = function nativePromise() {};
  10027. }
  10028. /**
  10029. * Clones (copies) an Object using deep copying.
  10030. *
  10031. * This function supports circular references by default, but if you are certain
  10032. * there are no circular references in your object, you can save some CPU time
  10033. * by calling clone(obj, false).
  10034. *
  10035. * Caution: if `circular` is false and `parent` contains circular references,
  10036. * your program may enter an infinite loop and crash.
  10037. *
  10038. * @param `parent` - the object to be cloned
  10039. * @param `circular` - set to true if the object to be cloned may contain
  10040. * circular references. (optional - true by default)
  10041. * @param `depth` - set to a number if the object is only to be cloned to
  10042. * a particular depth. (optional - defaults to Infinity)
  10043. * @param `prototype` - sets the prototype to be used when cloning an object.
  10044. * (optional - defaults to parent prototype).
  10045. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10046. * should be cloned as well. Non-enumerable properties on the prototype
  10047. * chain will be ignored. (optional - false by default)
  10048. */
  10049. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10050. if ((0, _typeof2.default)(circular) === 'object') {
  10051. depth = circular.depth;
  10052. prototype = circular.prototype;
  10053. includeNonEnumerable = circular.includeNonEnumerable;
  10054. circular = circular.circular;
  10055. }
  10056. // maintain two arrays for circular references, where corresponding parents
  10057. // and children have the same index
  10058. var allParents = [];
  10059. var allChildren = [];
  10060. var useBuffer = typeof Buffer != 'undefined';
  10061. if (typeof circular == 'undefined') circular = true;
  10062. if (typeof depth == 'undefined') depth = Infinity;
  10063. // recurse this function so we don't reset allParents and allChildren
  10064. function _clone(parent, depth) {
  10065. // cloning null always returns null
  10066. if (parent === null) return null;
  10067. if (depth === 0) return parent;
  10068. var child;
  10069. var proto;
  10070. if ((0, _typeof2.default)(parent) != 'object') {
  10071. return parent;
  10072. }
  10073. if (_instanceof(parent, nativeMap)) {
  10074. child = new nativeMap();
  10075. } else if (_instanceof(parent, nativeSet)) {
  10076. child = new nativeSet();
  10077. } else if (_instanceof(parent, nativePromise)) {
  10078. child = new nativePromise(function (resolve, reject) {
  10079. parent.then(function (value) {
  10080. resolve(_clone(value, depth - 1));
  10081. }, function (err) {
  10082. reject(_clone(err, depth - 1));
  10083. });
  10084. });
  10085. } else if (clone.__isArray(parent)) {
  10086. child = [];
  10087. } else if (clone.__isRegExp(parent)) {
  10088. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10089. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10090. } else if (clone.__isDate(parent)) {
  10091. child = new Date(parent.getTime());
  10092. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10093. if (Buffer.from) {
  10094. // Node.js >= 5.10.0
  10095. child = Buffer.from(parent);
  10096. } else {
  10097. // Older Node.js versions
  10098. child = new Buffer(parent.length);
  10099. parent.copy(child);
  10100. }
  10101. return child;
  10102. } else if (_instanceof(parent, Error)) {
  10103. child = Object.create(parent);
  10104. } else {
  10105. if (typeof prototype == 'undefined') {
  10106. proto = Object.getPrototypeOf(parent);
  10107. child = Object.create(proto);
  10108. } else {
  10109. child = Object.create(prototype);
  10110. proto = prototype;
  10111. }
  10112. }
  10113. if (circular) {
  10114. var index = allParents.indexOf(parent);
  10115. if (index != -1) {
  10116. return allChildren[index];
  10117. }
  10118. allParents.push(parent);
  10119. allChildren.push(child);
  10120. }
  10121. if (_instanceof(parent, nativeMap)) {
  10122. parent.forEach(function (value, key) {
  10123. var keyChild = _clone(key, depth - 1);
  10124. var valueChild = _clone(value, depth - 1);
  10125. child.set(keyChild, valueChild);
  10126. });
  10127. }
  10128. if (_instanceof(parent, nativeSet)) {
  10129. parent.forEach(function (value) {
  10130. var entryChild = _clone(value, depth - 1);
  10131. child.add(entryChild);
  10132. });
  10133. }
  10134. for (var i in parent) {
  10135. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10136. if (attrs) {
  10137. child[i] = _clone(parent[i], depth - 1);
  10138. }
  10139. try {
  10140. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10141. if (objProperty.set === 'undefined') {
  10142. // no setter defined. Skip cloning this property
  10143. continue;
  10144. }
  10145. child[i] = _clone(parent[i], depth - 1);
  10146. } catch (e) {
  10147. if (e instanceof TypeError) {
  10148. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10149. // we can't do anything about this, other than inform the user that this property cannot be set.
  10150. continue;
  10151. } else if (e instanceof ReferenceError) {
  10152. //this may happen in non strict mode
  10153. continue;
  10154. }
  10155. }
  10156. }
  10157. if (Object.getOwnPropertySymbols) {
  10158. var symbols = Object.getOwnPropertySymbols(parent);
  10159. for (var i = 0; i < symbols.length; i++) {
  10160. // Don't need to worry about cloning a symbol because it is a primitive,
  10161. // like a number or string.
  10162. var symbol = symbols[i];
  10163. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10164. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10165. continue;
  10166. }
  10167. child[symbol] = _clone(parent[symbol], depth - 1);
  10168. Object.defineProperty(child, symbol, descriptor);
  10169. }
  10170. }
  10171. if (includeNonEnumerable) {
  10172. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10173. for (var i = 0; i < allPropertyNames.length; i++) {
  10174. var propertyName = allPropertyNames[i];
  10175. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10176. if (descriptor && descriptor.enumerable) {
  10177. continue;
  10178. }
  10179. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10180. Object.defineProperty(child, propertyName, descriptor);
  10181. }
  10182. }
  10183. return child;
  10184. }
  10185. return _clone(parent, depth);
  10186. }
  10187. /**
  10188. * Simple flat clone using prototype, accepts only objects, usefull for property
  10189. * override on FLAT configuration object (no nested props).
  10190. *
  10191. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10192. * works.
  10193. */
  10194. clone.clonePrototype = function clonePrototype(parent) {
  10195. if (parent === null) return null;
  10196. var c = function c() {};
  10197. c.prototype = parent;
  10198. return new c();
  10199. };
  10200. // private utility functions
  10201. function __objToStr(o) {
  10202. return Object.prototype.toString.call(o);
  10203. }
  10204. clone.__objToStr = __objToStr;
  10205. function __isDate(o) {
  10206. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10207. }
  10208. clone.__isDate = __isDate;
  10209. function __isArray(o) {
  10210. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10211. }
  10212. clone.__isArray = __isArray;
  10213. function __isRegExp(o) {
  10214. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10215. }
  10216. clone.__isRegExp = __isRegExp;
  10217. function __getRegExpFlags(re) {
  10218. var flags = '';
  10219. if (re.global) flags += 'g';
  10220. if (re.ignoreCase) flags += 'i';
  10221. if (re.multiline) flags += 'm';
  10222. return flags;
  10223. }
  10224. clone.__getRegExpFlags = __getRegExpFlags;
  10225. return clone;
  10226. }();
  10227. var _default = clone;
  10228. exports.default = _default;
  10229. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 50).Buffer))
  10230. /***/ }),
  10231. /* 50 */
  10232. /*!**************************************!*\
  10233. !*** ./node_modules/buffer/index.js ***!
  10234. \**************************************/
  10235. /*! no static exports found */
  10236. /***/ (function(module, exports, __webpack_require__) {
  10237. "use strict";
  10238. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10239. * The buffer module from node.js, for the browser.
  10240. *
  10241. * @author Feross Aboukhadijeh <http://feross.org>
  10242. * @license MIT
  10243. */
  10244. /* eslint-disable no-proto */
  10245. var base64 = __webpack_require__(/*! base64-js */ 51)
  10246. var ieee754 = __webpack_require__(/*! ieee754 */ 52)
  10247. var isArray = __webpack_require__(/*! isarray */ 53)
  10248. exports.Buffer = Buffer
  10249. exports.SlowBuffer = SlowBuffer
  10250. exports.INSPECT_MAX_BYTES = 50
  10251. /**
  10252. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10253. * === true Use Uint8Array implementation (fastest)
  10254. * === false Use Object implementation (most compatible, even IE6)
  10255. *
  10256. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10257. * Opera 11.6+, iOS 4.2+.
  10258. *
  10259. * Due to various browser bugs, sometimes the Object implementation will be used even
  10260. * when the browser supports typed arrays.
  10261. *
  10262. * Note:
  10263. *
  10264. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10265. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10266. *
  10267. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10268. *
  10269. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10270. * incorrect length in some situations.
  10271. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10272. * get the Object implementation, which is slower but behaves correctly.
  10273. */
  10274. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10275. ? global.TYPED_ARRAY_SUPPORT
  10276. : typedArraySupport()
  10277. /*
  10278. * Export kMaxLength after typed array support is determined.
  10279. */
  10280. exports.kMaxLength = kMaxLength()
  10281. function typedArraySupport () {
  10282. try {
  10283. var arr = new Uint8Array(1)
  10284. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10285. return arr.foo() === 42 && // typed array instances can be augmented
  10286. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10287. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10288. } catch (e) {
  10289. return false
  10290. }
  10291. }
  10292. function kMaxLength () {
  10293. return Buffer.TYPED_ARRAY_SUPPORT
  10294. ? 0x7fffffff
  10295. : 0x3fffffff
  10296. }
  10297. function createBuffer (that, length) {
  10298. if (kMaxLength() < length) {
  10299. throw new RangeError('Invalid typed array length')
  10300. }
  10301. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10302. // Return an augmented `Uint8Array` instance, for best performance
  10303. that = new Uint8Array(length)
  10304. that.__proto__ = Buffer.prototype
  10305. } else {
  10306. // Fallback: Return an object instance of the Buffer class
  10307. if (that === null) {
  10308. that = new Buffer(length)
  10309. }
  10310. that.length = length
  10311. }
  10312. return that
  10313. }
  10314. /**
  10315. * The Buffer constructor returns instances of `Uint8Array` that have their
  10316. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10317. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10318. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10319. * returns a single octet.
  10320. *
  10321. * The `Uint8Array` prototype remains unmodified.
  10322. */
  10323. function Buffer (arg, encodingOrOffset, length) {
  10324. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10325. return new Buffer(arg, encodingOrOffset, length)
  10326. }
  10327. // Common case.
  10328. if (typeof arg === 'number') {
  10329. if (typeof encodingOrOffset === 'string') {
  10330. throw new Error(
  10331. 'If encoding is specified then the first argument must be a string'
  10332. )
  10333. }
  10334. return allocUnsafe(this, arg)
  10335. }
  10336. return from(this, arg, encodingOrOffset, length)
  10337. }
  10338. Buffer.poolSize = 8192 // not used by this implementation
  10339. // TODO: Legacy, not needed anymore. Remove in next major version.
  10340. Buffer._augment = function (arr) {
  10341. arr.__proto__ = Buffer.prototype
  10342. return arr
  10343. }
  10344. function from (that, value, encodingOrOffset, length) {
  10345. if (typeof value === 'number') {
  10346. throw new TypeError('"value" argument must not be a number')
  10347. }
  10348. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10349. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10350. }
  10351. if (typeof value === 'string') {
  10352. return fromString(that, value, encodingOrOffset)
  10353. }
  10354. return fromObject(that, value)
  10355. }
  10356. /**
  10357. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10358. * if value is a number.
  10359. * Buffer.from(str[, encoding])
  10360. * Buffer.from(array)
  10361. * Buffer.from(buffer)
  10362. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10363. **/
  10364. Buffer.from = function (value, encodingOrOffset, length) {
  10365. return from(null, value, encodingOrOffset, length)
  10366. }
  10367. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10368. Buffer.prototype.__proto__ = Uint8Array.prototype
  10369. Buffer.__proto__ = Uint8Array
  10370. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10371. Buffer[Symbol.species] === Buffer) {
  10372. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10373. Object.defineProperty(Buffer, Symbol.species, {
  10374. value: null,
  10375. configurable: true
  10376. })
  10377. }
  10378. }
  10379. function assertSize (size) {
  10380. if (typeof size !== 'number') {
  10381. throw new TypeError('"size" argument must be a number')
  10382. } else if (size < 0) {
  10383. throw new RangeError('"size" argument must not be negative')
  10384. }
  10385. }
  10386. function alloc (that, size, fill, encoding) {
  10387. assertSize(size)
  10388. if (size <= 0) {
  10389. return createBuffer(that, size)
  10390. }
  10391. if (fill !== undefined) {
  10392. // Only pay attention to encoding if it's a string. This
  10393. // prevents accidentally sending in a number that would
  10394. // be interpretted as a start offset.
  10395. return typeof encoding === 'string'
  10396. ? createBuffer(that, size).fill(fill, encoding)
  10397. : createBuffer(that, size).fill(fill)
  10398. }
  10399. return createBuffer(that, size)
  10400. }
  10401. /**
  10402. * Creates a new filled Buffer instance.
  10403. * alloc(size[, fill[, encoding]])
  10404. **/
  10405. Buffer.alloc = function (size, fill, encoding) {
  10406. return alloc(null, size, fill, encoding)
  10407. }
  10408. function allocUnsafe (that, size) {
  10409. assertSize(size)
  10410. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10411. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10412. for (var i = 0; i < size; ++i) {
  10413. that[i] = 0
  10414. }
  10415. }
  10416. return that
  10417. }
  10418. /**
  10419. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10420. * */
  10421. Buffer.allocUnsafe = function (size) {
  10422. return allocUnsafe(null, size)
  10423. }
  10424. /**
  10425. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10426. */
  10427. Buffer.allocUnsafeSlow = function (size) {
  10428. return allocUnsafe(null, size)
  10429. }
  10430. function fromString (that, string, encoding) {
  10431. if (typeof encoding !== 'string' || encoding === '') {
  10432. encoding = 'utf8'
  10433. }
  10434. if (!Buffer.isEncoding(encoding)) {
  10435. throw new TypeError('"encoding" must be a valid string encoding')
  10436. }
  10437. var length = byteLength(string, encoding) | 0
  10438. that = createBuffer(that, length)
  10439. var actual = that.write(string, encoding)
  10440. if (actual !== length) {
  10441. // Writing a hex string, for example, that contains invalid characters will
  10442. // cause everything after the first invalid character to be ignored. (e.g.
  10443. // 'abxxcd' will be treated as 'ab')
  10444. that = that.slice(0, actual)
  10445. }
  10446. return that
  10447. }
  10448. function fromArrayLike (that, array) {
  10449. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10450. that = createBuffer(that, length)
  10451. for (var i = 0; i < length; i += 1) {
  10452. that[i] = array[i] & 255
  10453. }
  10454. return that
  10455. }
  10456. function fromArrayBuffer (that, array, byteOffset, length) {
  10457. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10458. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10459. throw new RangeError('\'offset\' is out of bounds')
  10460. }
  10461. if (array.byteLength < byteOffset + (length || 0)) {
  10462. throw new RangeError('\'length\' is out of bounds')
  10463. }
  10464. if (byteOffset === undefined && length === undefined) {
  10465. array = new Uint8Array(array)
  10466. } else if (length === undefined) {
  10467. array = new Uint8Array(array, byteOffset)
  10468. } else {
  10469. array = new Uint8Array(array, byteOffset, length)
  10470. }
  10471. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10472. // Return an augmented `Uint8Array` instance, for best performance
  10473. that = array
  10474. that.__proto__ = Buffer.prototype
  10475. } else {
  10476. // Fallback: Return an object instance of the Buffer class
  10477. that = fromArrayLike(that, array)
  10478. }
  10479. return that
  10480. }
  10481. function fromObject (that, obj) {
  10482. if (Buffer.isBuffer(obj)) {
  10483. var len = checked(obj.length) | 0
  10484. that = createBuffer(that, len)
  10485. if (that.length === 0) {
  10486. return that
  10487. }
  10488. obj.copy(that, 0, 0, len)
  10489. return that
  10490. }
  10491. if (obj) {
  10492. if ((typeof ArrayBuffer !== 'undefined' &&
  10493. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10494. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10495. return createBuffer(that, 0)
  10496. }
  10497. return fromArrayLike(that, obj)
  10498. }
  10499. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10500. return fromArrayLike(that, obj.data)
  10501. }
  10502. }
  10503. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10504. }
  10505. function checked (length) {
  10506. // Note: cannot use `length < kMaxLength()` here because that fails when
  10507. // length is NaN (which is otherwise coerced to zero.)
  10508. if (length >= kMaxLength()) {
  10509. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10510. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10511. }
  10512. return length | 0
  10513. }
  10514. function SlowBuffer (length) {
  10515. if (+length != length) { // eslint-disable-line eqeqeq
  10516. length = 0
  10517. }
  10518. return Buffer.alloc(+length)
  10519. }
  10520. Buffer.isBuffer = function isBuffer (b) {
  10521. return !!(b != null && b._isBuffer)
  10522. }
  10523. Buffer.compare = function compare (a, b) {
  10524. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10525. throw new TypeError('Arguments must be Buffers')
  10526. }
  10527. if (a === b) return 0
  10528. var x = a.length
  10529. var y = b.length
  10530. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10531. if (a[i] !== b[i]) {
  10532. x = a[i]
  10533. y = b[i]
  10534. break
  10535. }
  10536. }
  10537. if (x < y) return -1
  10538. if (y < x) return 1
  10539. return 0
  10540. }
  10541. Buffer.isEncoding = function isEncoding (encoding) {
  10542. switch (String(encoding).toLowerCase()) {
  10543. case 'hex':
  10544. case 'utf8':
  10545. case 'utf-8':
  10546. case 'ascii':
  10547. case 'latin1':
  10548. case 'binary':
  10549. case 'base64':
  10550. case 'ucs2':
  10551. case 'ucs-2':
  10552. case 'utf16le':
  10553. case 'utf-16le':
  10554. return true
  10555. default:
  10556. return false
  10557. }
  10558. }
  10559. Buffer.concat = function concat (list, length) {
  10560. if (!isArray(list)) {
  10561. throw new TypeError('"list" argument must be an Array of Buffers')
  10562. }
  10563. if (list.length === 0) {
  10564. return Buffer.alloc(0)
  10565. }
  10566. var i
  10567. if (length === undefined) {
  10568. length = 0
  10569. for (i = 0; i < list.length; ++i) {
  10570. length += list[i].length
  10571. }
  10572. }
  10573. var buffer = Buffer.allocUnsafe(length)
  10574. var pos = 0
  10575. for (i = 0; i < list.length; ++i) {
  10576. var buf = list[i]
  10577. if (!Buffer.isBuffer(buf)) {
  10578. throw new TypeError('"list" argument must be an Array of Buffers')
  10579. }
  10580. buf.copy(buffer, pos)
  10581. pos += buf.length
  10582. }
  10583. return buffer
  10584. }
  10585. function byteLength (string, encoding) {
  10586. if (Buffer.isBuffer(string)) {
  10587. return string.length
  10588. }
  10589. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10590. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10591. return string.byteLength
  10592. }
  10593. if (typeof string !== 'string') {
  10594. string = '' + string
  10595. }
  10596. var len = string.length
  10597. if (len === 0) return 0
  10598. // Use a for loop to avoid recursion
  10599. var loweredCase = false
  10600. for (;;) {
  10601. switch (encoding) {
  10602. case 'ascii':
  10603. case 'latin1':
  10604. case 'binary':
  10605. return len
  10606. case 'utf8':
  10607. case 'utf-8':
  10608. case undefined:
  10609. return utf8ToBytes(string).length
  10610. case 'ucs2':
  10611. case 'ucs-2':
  10612. case 'utf16le':
  10613. case 'utf-16le':
  10614. return len * 2
  10615. case 'hex':
  10616. return len >>> 1
  10617. case 'base64':
  10618. return base64ToBytes(string).length
  10619. default:
  10620. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10621. encoding = ('' + encoding).toLowerCase()
  10622. loweredCase = true
  10623. }
  10624. }
  10625. }
  10626. Buffer.byteLength = byteLength
  10627. function slowToString (encoding, start, end) {
  10628. var loweredCase = false
  10629. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10630. // property of a typed array.
  10631. // This behaves neither like String nor Uint8Array in that we set start/end
  10632. // to their upper/lower bounds if the value passed is out of range.
  10633. // undefined is handled specially as per ECMA-262 6th Edition,
  10634. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10635. if (start === undefined || start < 0) {
  10636. start = 0
  10637. }
  10638. // Return early if start > this.length. Done here to prevent potential uint32
  10639. // coercion fail below.
  10640. if (start > this.length) {
  10641. return ''
  10642. }
  10643. if (end === undefined || end > this.length) {
  10644. end = this.length
  10645. }
  10646. if (end <= 0) {
  10647. return ''
  10648. }
  10649. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10650. end >>>= 0
  10651. start >>>= 0
  10652. if (end <= start) {
  10653. return ''
  10654. }
  10655. if (!encoding) encoding = 'utf8'
  10656. while (true) {
  10657. switch (encoding) {
  10658. case 'hex':
  10659. return hexSlice(this, start, end)
  10660. case 'utf8':
  10661. case 'utf-8':
  10662. return utf8Slice(this, start, end)
  10663. case 'ascii':
  10664. return asciiSlice(this, start, end)
  10665. case 'latin1':
  10666. case 'binary':
  10667. return latin1Slice(this, start, end)
  10668. case 'base64':
  10669. return base64Slice(this, start, end)
  10670. case 'ucs2':
  10671. case 'ucs-2':
  10672. case 'utf16le':
  10673. case 'utf-16le':
  10674. return utf16leSlice(this, start, end)
  10675. default:
  10676. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10677. encoding = (encoding + '').toLowerCase()
  10678. loweredCase = true
  10679. }
  10680. }
  10681. }
  10682. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10683. // Buffer instances.
  10684. Buffer.prototype._isBuffer = true
  10685. function swap (b, n, m) {
  10686. var i = b[n]
  10687. b[n] = b[m]
  10688. b[m] = i
  10689. }
  10690. Buffer.prototype.swap16 = function swap16 () {
  10691. var len = this.length
  10692. if (len % 2 !== 0) {
  10693. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10694. }
  10695. for (var i = 0; i < len; i += 2) {
  10696. swap(this, i, i + 1)
  10697. }
  10698. return this
  10699. }
  10700. Buffer.prototype.swap32 = function swap32 () {
  10701. var len = this.length
  10702. if (len % 4 !== 0) {
  10703. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10704. }
  10705. for (var i = 0; i < len; i += 4) {
  10706. swap(this, i, i + 3)
  10707. swap(this, i + 1, i + 2)
  10708. }
  10709. return this
  10710. }
  10711. Buffer.prototype.swap64 = function swap64 () {
  10712. var len = this.length
  10713. if (len % 8 !== 0) {
  10714. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10715. }
  10716. for (var i = 0; i < len; i += 8) {
  10717. swap(this, i, i + 7)
  10718. swap(this, i + 1, i + 6)
  10719. swap(this, i + 2, i + 5)
  10720. swap(this, i + 3, i + 4)
  10721. }
  10722. return this
  10723. }
  10724. Buffer.prototype.toString = function toString () {
  10725. var length = this.length | 0
  10726. if (length === 0) return ''
  10727. if (arguments.length === 0) return utf8Slice(this, 0, length)
  10728. return slowToString.apply(this, arguments)
  10729. }
  10730. Buffer.prototype.equals = function equals (b) {
  10731. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  10732. if (this === b) return true
  10733. return Buffer.compare(this, b) === 0
  10734. }
  10735. Buffer.prototype.inspect = function inspect () {
  10736. var str = ''
  10737. var max = exports.INSPECT_MAX_BYTES
  10738. if (this.length > 0) {
  10739. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  10740. if (this.length > max) str += ' ... '
  10741. }
  10742. return '<Buffer ' + str + '>'
  10743. }
  10744. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  10745. if (!Buffer.isBuffer(target)) {
  10746. throw new TypeError('Argument must be a Buffer')
  10747. }
  10748. if (start === undefined) {
  10749. start = 0
  10750. }
  10751. if (end === undefined) {
  10752. end = target ? target.length : 0
  10753. }
  10754. if (thisStart === undefined) {
  10755. thisStart = 0
  10756. }
  10757. if (thisEnd === undefined) {
  10758. thisEnd = this.length
  10759. }
  10760. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  10761. throw new RangeError('out of range index')
  10762. }
  10763. if (thisStart >= thisEnd && start >= end) {
  10764. return 0
  10765. }
  10766. if (thisStart >= thisEnd) {
  10767. return -1
  10768. }
  10769. if (start >= end) {
  10770. return 1
  10771. }
  10772. start >>>= 0
  10773. end >>>= 0
  10774. thisStart >>>= 0
  10775. thisEnd >>>= 0
  10776. if (this === target) return 0
  10777. var x = thisEnd - thisStart
  10778. var y = end - start
  10779. var len = Math.min(x, y)
  10780. var thisCopy = this.slice(thisStart, thisEnd)
  10781. var targetCopy = target.slice(start, end)
  10782. for (var i = 0; i < len; ++i) {
  10783. if (thisCopy[i] !== targetCopy[i]) {
  10784. x = thisCopy[i]
  10785. y = targetCopy[i]
  10786. break
  10787. }
  10788. }
  10789. if (x < y) return -1
  10790. if (y < x) return 1
  10791. return 0
  10792. }
  10793. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  10794. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  10795. //
  10796. // Arguments:
  10797. // - buffer - a Buffer to search
  10798. // - val - a string, Buffer, or number
  10799. // - byteOffset - an index into `buffer`; will be clamped to an int32
  10800. // - encoding - an optional encoding, relevant is val is a string
  10801. // - dir - true for indexOf, false for lastIndexOf
  10802. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  10803. // Empty buffer means no match
  10804. if (buffer.length === 0) return -1
  10805. // Normalize byteOffset
  10806. if (typeof byteOffset === 'string') {
  10807. encoding = byteOffset
  10808. byteOffset = 0
  10809. } else if (byteOffset > 0x7fffffff) {
  10810. byteOffset = 0x7fffffff
  10811. } else if (byteOffset < -0x80000000) {
  10812. byteOffset = -0x80000000
  10813. }
  10814. byteOffset = +byteOffset // Coerce to Number.
  10815. if (isNaN(byteOffset)) {
  10816. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  10817. byteOffset = dir ? 0 : (buffer.length - 1)
  10818. }
  10819. // Normalize byteOffset: negative offsets start from the end of the buffer
  10820. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  10821. if (byteOffset >= buffer.length) {
  10822. if (dir) return -1
  10823. else byteOffset = buffer.length - 1
  10824. } else if (byteOffset < 0) {
  10825. if (dir) byteOffset = 0
  10826. else return -1
  10827. }
  10828. // Normalize val
  10829. if (typeof val === 'string') {
  10830. val = Buffer.from(val, encoding)
  10831. }
  10832. // Finally, search either indexOf (if dir is true) or lastIndexOf
  10833. if (Buffer.isBuffer(val)) {
  10834. // Special case: looking for empty string/buffer always fails
  10835. if (val.length === 0) {
  10836. return -1
  10837. }
  10838. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  10839. } else if (typeof val === 'number') {
  10840. val = val & 0xFF // Search for a byte value [0-255]
  10841. if (Buffer.TYPED_ARRAY_SUPPORT &&
  10842. typeof Uint8Array.prototype.indexOf === 'function') {
  10843. if (dir) {
  10844. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  10845. } else {
  10846. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  10847. }
  10848. }
  10849. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  10850. }
  10851. throw new TypeError('val must be string, number or Buffer')
  10852. }
  10853. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  10854. var indexSize = 1
  10855. var arrLength = arr.length
  10856. var valLength = val.length
  10857. if (encoding !== undefined) {
  10858. encoding = String(encoding).toLowerCase()
  10859. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  10860. encoding === 'utf16le' || encoding === 'utf-16le') {
  10861. if (arr.length < 2 || val.length < 2) {
  10862. return -1
  10863. }
  10864. indexSize = 2
  10865. arrLength /= 2
  10866. valLength /= 2
  10867. byteOffset /= 2
  10868. }
  10869. }
  10870. function read (buf, i) {
  10871. if (indexSize === 1) {
  10872. return buf[i]
  10873. } else {
  10874. return buf.readUInt16BE(i * indexSize)
  10875. }
  10876. }
  10877. var i
  10878. if (dir) {
  10879. var foundIndex = -1
  10880. for (i = byteOffset; i < arrLength; i++) {
  10881. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  10882. if (foundIndex === -1) foundIndex = i
  10883. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  10884. } else {
  10885. if (foundIndex !== -1) i -= i - foundIndex
  10886. foundIndex = -1
  10887. }
  10888. }
  10889. } else {
  10890. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  10891. for (i = byteOffset; i >= 0; i--) {
  10892. var found = true
  10893. for (var j = 0; j < valLength; j++) {
  10894. if (read(arr, i + j) !== read(val, j)) {
  10895. found = false
  10896. break
  10897. }
  10898. }
  10899. if (found) return i
  10900. }
  10901. }
  10902. return -1
  10903. }
  10904. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  10905. return this.indexOf(val, byteOffset, encoding) !== -1
  10906. }
  10907. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  10908. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  10909. }
  10910. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  10911. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  10912. }
  10913. function hexWrite (buf, string, offset, length) {
  10914. offset = Number(offset) || 0
  10915. var remaining = buf.length - offset
  10916. if (!length) {
  10917. length = remaining
  10918. } else {
  10919. length = Number(length)
  10920. if (length > remaining) {
  10921. length = remaining
  10922. }
  10923. }
  10924. // must be an even number of digits
  10925. var strLen = string.length
  10926. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  10927. if (length > strLen / 2) {
  10928. length = strLen / 2
  10929. }
  10930. for (var i = 0; i < length; ++i) {
  10931. var parsed = parseInt(string.substr(i * 2, 2), 16)
  10932. if (isNaN(parsed)) return i
  10933. buf[offset + i] = parsed
  10934. }
  10935. return i
  10936. }
  10937. function utf8Write (buf, string, offset, length) {
  10938. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  10939. }
  10940. function asciiWrite (buf, string, offset, length) {
  10941. return blitBuffer(asciiToBytes(string), buf, offset, length)
  10942. }
  10943. function latin1Write (buf, string, offset, length) {
  10944. return asciiWrite(buf, string, offset, length)
  10945. }
  10946. function base64Write (buf, string, offset, length) {
  10947. return blitBuffer(base64ToBytes(string), buf, offset, length)
  10948. }
  10949. function ucs2Write (buf, string, offset, length) {
  10950. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  10951. }
  10952. Buffer.prototype.write = function write (string, offset, length, encoding) {
  10953. // Buffer#write(string)
  10954. if (offset === undefined) {
  10955. encoding = 'utf8'
  10956. length = this.length
  10957. offset = 0
  10958. // Buffer#write(string, encoding)
  10959. } else if (length === undefined && typeof offset === 'string') {
  10960. encoding = offset
  10961. length = this.length
  10962. offset = 0
  10963. // Buffer#write(string, offset[, length][, encoding])
  10964. } else if (isFinite(offset)) {
  10965. offset = offset | 0
  10966. if (isFinite(length)) {
  10967. length = length | 0
  10968. if (encoding === undefined) encoding = 'utf8'
  10969. } else {
  10970. encoding = length
  10971. length = undefined
  10972. }
  10973. // legacy write(string, encoding, offset, length) - remove in v0.13
  10974. } else {
  10975. throw new Error(
  10976. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  10977. )
  10978. }
  10979. var remaining = this.length - offset
  10980. if (length === undefined || length > remaining) length = remaining
  10981. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  10982. throw new RangeError('Attempt to write outside buffer bounds')
  10983. }
  10984. if (!encoding) encoding = 'utf8'
  10985. var loweredCase = false
  10986. for (;;) {
  10987. switch (encoding) {
  10988. case 'hex':
  10989. return hexWrite(this, string, offset, length)
  10990. case 'utf8':
  10991. case 'utf-8':
  10992. return utf8Write(this, string, offset, length)
  10993. case 'ascii':
  10994. return asciiWrite(this, string, offset, length)
  10995. case 'latin1':
  10996. case 'binary':
  10997. return latin1Write(this, string, offset, length)
  10998. case 'base64':
  10999. // Warning: maxLength not taken into account in base64Write
  11000. return base64Write(this, string, offset, length)
  11001. case 'ucs2':
  11002. case 'ucs-2':
  11003. case 'utf16le':
  11004. case 'utf-16le':
  11005. return ucs2Write(this, string, offset, length)
  11006. default:
  11007. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11008. encoding = ('' + encoding).toLowerCase()
  11009. loweredCase = true
  11010. }
  11011. }
  11012. }
  11013. Buffer.prototype.toJSON = function toJSON () {
  11014. return {
  11015. type: 'Buffer',
  11016. data: Array.prototype.slice.call(this._arr || this, 0)
  11017. }
  11018. }
  11019. function base64Slice (buf, start, end) {
  11020. if (start === 0 && end === buf.length) {
  11021. return base64.fromByteArray(buf)
  11022. } else {
  11023. return base64.fromByteArray(buf.slice(start, end))
  11024. }
  11025. }
  11026. function utf8Slice (buf, start, end) {
  11027. end = Math.min(buf.length, end)
  11028. var res = []
  11029. var i = start
  11030. while (i < end) {
  11031. var firstByte = buf[i]
  11032. var codePoint = null
  11033. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11034. : (firstByte > 0xDF) ? 3
  11035. : (firstByte > 0xBF) ? 2
  11036. : 1
  11037. if (i + bytesPerSequence <= end) {
  11038. var secondByte, thirdByte, fourthByte, tempCodePoint
  11039. switch (bytesPerSequence) {
  11040. case 1:
  11041. if (firstByte < 0x80) {
  11042. codePoint = firstByte
  11043. }
  11044. break
  11045. case 2:
  11046. secondByte = buf[i + 1]
  11047. if ((secondByte & 0xC0) === 0x80) {
  11048. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11049. if (tempCodePoint > 0x7F) {
  11050. codePoint = tempCodePoint
  11051. }
  11052. }
  11053. break
  11054. case 3:
  11055. secondByte = buf[i + 1]
  11056. thirdByte = buf[i + 2]
  11057. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11058. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11059. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11060. codePoint = tempCodePoint
  11061. }
  11062. }
  11063. break
  11064. case 4:
  11065. secondByte = buf[i + 1]
  11066. thirdByte = buf[i + 2]
  11067. fourthByte = buf[i + 3]
  11068. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11069. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11070. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11071. codePoint = tempCodePoint
  11072. }
  11073. }
  11074. }
  11075. }
  11076. if (codePoint === null) {
  11077. // we did not generate a valid codePoint so insert a
  11078. // replacement char (U+FFFD) and advance only 1 byte
  11079. codePoint = 0xFFFD
  11080. bytesPerSequence = 1
  11081. } else if (codePoint > 0xFFFF) {
  11082. // encode to utf16 (surrogate pair dance)
  11083. codePoint -= 0x10000
  11084. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11085. codePoint = 0xDC00 | codePoint & 0x3FF
  11086. }
  11087. res.push(codePoint)
  11088. i += bytesPerSequence
  11089. }
  11090. return decodeCodePointsArray(res)
  11091. }
  11092. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11093. // the lowest limit is Chrome, with 0x10000 args.
  11094. // We go 1 magnitude less, for safety
  11095. var MAX_ARGUMENTS_LENGTH = 0x1000
  11096. function decodeCodePointsArray (codePoints) {
  11097. var len = codePoints.length
  11098. if (len <= MAX_ARGUMENTS_LENGTH) {
  11099. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11100. }
  11101. // Decode in chunks to avoid "call stack size exceeded".
  11102. var res = ''
  11103. var i = 0
  11104. while (i < len) {
  11105. res += String.fromCharCode.apply(
  11106. String,
  11107. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11108. )
  11109. }
  11110. return res
  11111. }
  11112. function asciiSlice (buf, start, end) {
  11113. var ret = ''
  11114. end = Math.min(buf.length, end)
  11115. for (var i = start; i < end; ++i) {
  11116. ret += String.fromCharCode(buf[i] & 0x7F)
  11117. }
  11118. return ret
  11119. }
  11120. function latin1Slice (buf, start, end) {
  11121. var ret = ''
  11122. end = Math.min(buf.length, end)
  11123. for (var i = start; i < end; ++i) {
  11124. ret += String.fromCharCode(buf[i])
  11125. }
  11126. return ret
  11127. }
  11128. function hexSlice (buf, start, end) {
  11129. var len = buf.length
  11130. if (!start || start < 0) start = 0
  11131. if (!end || end < 0 || end > len) end = len
  11132. var out = ''
  11133. for (var i = start; i < end; ++i) {
  11134. out += toHex(buf[i])
  11135. }
  11136. return out
  11137. }
  11138. function utf16leSlice (buf, start, end) {
  11139. var bytes = buf.slice(start, end)
  11140. var res = ''
  11141. for (var i = 0; i < bytes.length; i += 2) {
  11142. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11143. }
  11144. return res
  11145. }
  11146. Buffer.prototype.slice = function slice (start, end) {
  11147. var len = this.length
  11148. start = ~~start
  11149. end = end === undefined ? len : ~~end
  11150. if (start < 0) {
  11151. start += len
  11152. if (start < 0) start = 0
  11153. } else if (start > len) {
  11154. start = len
  11155. }
  11156. if (end < 0) {
  11157. end += len
  11158. if (end < 0) end = 0
  11159. } else if (end > len) {
  11160. end = len
  11161. }
  11162. if (end < start) end = start
  11163. var newBuf
  11164. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11165. newBuf = this.subarray(start, end)
  11166. newBuf.__proto__ = Buffer.prototype
  11167. } else {
  11168. var sliceLen = end - start
  11169. newBuf = new Buffer(sliceLen, undefined)
  11170. for (var i = 0; i < sliceLen; ++i) {
  11171. newBuf[i] = this[i + start]
  11172. }
  11173. }
  11174. return newBuf
  11175. }
  11176. /*
  11177. * Need to make sure that buffer isn't trying to write out of bounds.
  11178. */
  11179. function checkOffset (offset, ext, length) {
  11180. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11181. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11182. }
  11183. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11184. offset = offset | 0
  11185. byteLength = byteLength | 0
  11186. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11187. var val = this[offset]
  11188. var mul = 1
  11189. var i = 0
  11190. while (++i < byteLength && (mul *= 0x100)) {
  11191. val += this[offset + i] * mul
  11192. }
  11193. return val
  11194. }
  11195. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11196. offset = offset | 0
  11197. byteLength = byteLength | 0
  11198. if (!noAssert) {
  11199. checkOffset(offset, byteLength, this.length)
  11200. }
  11201. var val = this[offset + --byteLength]
  11202. var mul = 1
  11203. while (byteLength > 0 && (mul *= 0x100)) {
  11204. val += this[offset + --byteLength] * mul
  11205. }
  11206. return val
  11207. }
  11208. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11209. if (!noAssert) checkOffset(offset, 1, this.length)
  11210. return this[offset]
  11211. }
  11212. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11213. if (!noAssert) checkOffset(offset, 2, this.length)
  11214. return this[offset] | (this[offset + 1] << 8)
  11215. }
  11216. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11217. if (!noAssert) checkOffset(offset, 2, this.length)
  11218. return (this[offset] << 8) | this[offset + 1]
  11219. }
  11220. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11221. if (!noAssert) checkOffset(offset, 4, this.length)
  11222. return ((this[offset]) |
  11223. (this[offset + 1] << 8) |
  11224. (this[offset + 2] << 16)) +
  11225. (this[offset + 3] * 0x1000000)
  11226. }
  11227. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11228. if (!noAssert) checkOffset(offset, 4, this.length)
  11229. return (this[offset] * 0x1000000) +
  11230. ((this[offset + 1] << 16) |
  11231. (this[offset + 2] << 8) |
  11232. this[offset + 3])
  11233. }
  11234. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11235. offset = offset | 0
  11236. byteLength = byteLength | 0
  11237. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11238. var val = this[offset]
  11239. var mul = 1
  11240. var i = 0
  11241. while (++i < byteLength && (mul *= 0x100)) {
  11242. val += this[offset + i] * mul
  11243. }
  11244. mul *= 0x80
  11245. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11246. return val
  11247. }
  11248. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11249. offset = offset | 0
  11250. byteLength = byteLength | 0
  11251. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11252. var i = byteLength
  11253. var mul = 1
  11254. var val = this[offset + --i]
  11255. while (i > 0 && (mul *= 0x100)) {
  11256. val += this[offset + --i] * mul
  11257. }
  11258. mul *= 0x80
  11259. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11260. return val
  11261. }
  11262. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11263. if (!noAssert) checkOffset(offset, 1, this.length)
  11264. if (!(this[offset] & 0x80)) return (this[offset])
  11265. return ((0xff - this[offset] + 1) * -1)
  11266. }
  11267. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11268. if (!noAssert) checkOffset(offset, 2, this.length)
  11269. var val = this[offset] | (this[offset + 1] << 8)
  11270. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11271. }
  11272. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11273. if (!noAssert) checkOffset(offset, 2, this.length)
  11274. var val = this[offset + 1] | (this[offset] << 8)
  11275. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11276. }
  11277. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11278. if (!noAssert) checkOffset(offset, 4, this.length)
  11279. return (this[offset]) |
  11280. (this[offset + 1] << 8) |
  11281. (this[offset + 2] << 16) |
  11282. (this[offset + 3] << 24)
  11283. }
  11284. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11285. if (!noAssert) checkOffset(offset, 4, this.length)
  11286. return (this[offset] << 24) |
  11287. (this[offset + 1] << 16) |
  11288. (this[offset + 2] << 8) |
  11289. (this[offset + 3])
  11290. }
  11291. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11292. if (!noAssert) checkOffset(offset, 4, this.length)
  11293. return ieee754.read(this, offset, true, 23, 4)
  11294. }
  11295. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11296. if (!noAssert) checkOffset(offset, 4, this.length)
  11297. return ieee754.read(this, offset, false, 23, 4)
  11298. }
  11299. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11300. if (!noAssert) checkOffset(offset, 8, this.length)
  11301. return ieee754.read(this, offset, true, 52, 8)
  11302. }
  11303. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11304. if (!noAssert) checkOffset(offset, 8, this.length)
  11305. return ieee754.read(this, offset, false, 52, 8)
  11306. }
  11307. function checkInt (buf, value, offset, ext, max, min) {
  11308. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11309. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11310. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11311. }
  11312. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11313. value = +value
  11314. offset = offset | 0
  11315. byteLength = byteLength | 0
  11316. if (!noAssert) {
  11317. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11318. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11319. }
  11320. var mul = 1
  11321. var i = 0
  11322. this[offset] = value & 0xFF
  11323. while (++i < byteLength && (mul *= 0x100)) {
  11324. this[offset + i] = (value / mul) & 0xFF
  11325. }
  11326. return offset + byteLength
  11327. }
  11328. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11329. value = +value
  11330. offset = offset | 0
  11331. byteLength = byteLength | 0
  11332. if (!noAssert) {
  11333. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11334. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11335. }
  11336. var i = byteLength - 1
  11337. var mul = 1
  11338. this[offset + i] = value & 0xFF
  11339. while (--i >= 0 && (mul *= 0x100)) {
  11340. this[offset + i] = (value / mul) & 0xFF
  11341. }
  11342. return offset + byteLength
  11343. }
  11344. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11345. value = +value
  11346. offset = offset | 0
  11347. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11348. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11349. this[offset] = (value & 0xff)
  11350. return offset + 1
  11351. }
  11352. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11353. if (value < 0) value = 0xffff + value + 1
  11354. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11355. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11356. (littleEndian ? i : 1 - i) * 8
  11357. }
  11358. }
  11359. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11360. value = +value
  11361. offset = offset | 0
  11362. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11363. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11364. this[offset] = (value & 0xff)
  11365. this[offset + 1] = (value >>> 8)
  11366. } else {
  11367. objectWriteUInt16(this, value, offset, true)
  11368. }
  11369. return offset + 2
  11370. }
  11371. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11372. value = +value
  11373. offset = offset | 0
  11374. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11375. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11376. this[offset] = (value >>> 8)
  11377. this[offset + 1] = (value & 0xff)
  11378. } else {
  11379. objectWriteUInt16(this, value, offset, false)
  11380. }
  11381. return offset + 2
  11382. }
  11383. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11384. if (value < 0) value = 0xffffffff + value + 1
  11385. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11386. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11387. }
  11388. }
  11389. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11390. value = +value
  11391. offset = offset | 0
  11392. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11393. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11394. this[offset + 3] = (value >>> 24)
  11395. this[offset + 2] = (value >>> 16)
  11396. this[offset + 1] = (value >>> 8)
  11397. this[offset] = (value & 0xff)
  11398. } else {
  11399. objectWriteUInt32(this, value, offset, true)
  11400. }
  11401. return offset + 4
  11402. }
  11403. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11404. value = +value
  11405. offset = offset | 0
  11406. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11407. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11408. this[offset] = (value >>> 24)
  11409. this[offset + 1] = (value >>> 16)
  11410. this[offset + 2] = (value >>> 8)
  11411. this[offset + 3] = (value & 0xff)
  11412. } else {
  11413. objectWriteUInt32(this, value, offset, false)
  11414. }
  11415. return offset + 4
  11416. }
  11417. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11418. value = +value
  11419. offset = offset | 0
  11420. if (!noAssert) {
  11421. var limit = Math.pow(2, 8 * byteLength - 1)
  11422. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11423. }
  11424. var i = 0
  11425. var mul = 1
  11426. var sub = 0
  11427. this[offset] = value & 0xFF
  11428. while (++i < byteLength && (mul *= 0x100)) {
  11429. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11430. sub = 1
  11431. }
  11432. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11433. }
  11434. return offset + byteLength
  11435. }
  11436. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11437. value = +value
  11438. offset = offset | 0
  11439. if (!noAssert) {
  11440. var limit = Math.pow(2, 8 * byteLength - 1)
  11441. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11442. }
  11443. var i = byteLength - 1
  11444. var mul = 1
  11445. var sub = 0
  11446. this[offset + i] = value & 0xFF
  11447. while (--i >= 0 && (mul *= 0x100)) {
  11448. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11449. sub = 1
  11450. }
  11451. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11452. }
  11453. return offset + byteLength
  11454. }
  11455. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11456. value = +value
  11457. offset = offset | 0
  11458. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11459. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11460. if (value < 0) value = 0xff + value + 1
  11461. this[offset] = (value & 0xff)
  11462. return offset + 1
  11463. }
  11464. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11465. value = +value
  11466. offset = offset | 0
  11467. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11468. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11469. this[offset] = (value & 0xff)
  11470. this[offset + 1] = (value >>> 8)
  11471. } else {
  11472. objectWriteUInt16(this, value, offset, true)
  11473. }
  11474. return offset + 2
  11475. }
  11476. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11477. value = +value
  11478. offset = offset | 0
  11479. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11480. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11481. this[offset] = (value >>> 8)
  11482. this[offset + 1] = (value & 0xff)
  11483. } else {
  11484. objectWriteUInt16(this, value, offset, false)
  11485. }
  11486. return offset + 2
  11487. }
  11488. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11489. value = +value
  11490. offset = offset | 0
  11491. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11492. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11493. this[offset] = (value & 0xff)
  11494. this[offset + 1] = (value >>> 8)
  11495. this[offset + 2] = (value >>> 16)
  11496. this[offset + 3] = (value >>> 24)
  11497. } else {
  11498. objectWriteUInt32(this, value, offset, true)
  11499. }
  11500. return offset + 4
  11501. }
  11502. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11503. value = +value
  11504. offset = offset | 0
  11505. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11506. if (value < 0) value = 0xffffffff + value + 1
  11507. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11508. this[offset] = (value >>> 24)
  11509. this[offset + 1] = (value >>> 16)
  11510. this[offset + 2] = (value >>> 8)
  11511. this[offset + 3] = (value & 0xff)
  11512. } else {
  11513. objectWriteUInt32(this, value, offset, false)
  11514. }
  11515. return offset + 4
  11516. }
  11517. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11518. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11519. if (offset < 0) throw new RangeError('Index out of range')
  11520. }
  11521. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11522. if (!noAssert) {
  11523. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11524. }
  11525. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11526. return offset + 4
  11527. }
  11528. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11529. return writeFloat(this, value, offset, true, noAssert)
  11530. }
  11531. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11532. return writeFloat(this, value, offset, false, noAssert)
  11533. }
  11534. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11535. if (!noAssert) {
  11536. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11537. }
  11538. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11539. return offset + 8
  11540. }
  11541. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11542. return writeDouble(this, value, offset, true, noAssert)
  11543. }
  11544. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11545. return writeDouble(this, value, offset, false, noAssert)
  11546. }
  11547. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11548. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11549. if (!start) start = 0
  11550. if (!end && end !== 0) end = this.length
  11551. if (targetStart >= target.length) targetStart = target.length
  11552. if (!targetStart) targetStart = 0
  11553. if (end > 0 && end < start) end = start
  11554. // Copy 0 bytes; we're done
  11555. if (end === start) return 0
  11556. if (target.length === 0 || this.length === 0) return 0
  11557. // Fatal error conditions
  11558. if (targetStart < 0) {
  11559. throw new RangeError('targetStart out of bounds')
  11560. }
  11561. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11562. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11563. // Are we oob?
  11564. if (end > this.length) end = this.length
  11565. if (target.length - targetStart < end - start) {
  11566. end = target.length - targetStart + start
  11567. }
  11568. var len = end - start
  11569. var i
  11570. if (this === target && start < targetStart && targetStart < end) {
  11571. // descending copy from end
  11572. for (i = len - 1; i >= 0; --i) {
  11573. target[i + targetStart] = this[i + start]
  11574. }
  11575. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11576. // ascending copy from start
  11577. for (i = 0; i < len; ++i) {
  11578. target[i + targetStart] = this[i + start]
  11579. }
  11580. } else {
  11581. Uint8Array.prototype.set.call(
  11582. target,
  11583. this.subarray(start, start + len),
  11584. targetStart
  11585. )
  11586. }
  11587. return len
  11588. }
  11589. // Usage:
  11590. // buffer.fill(number[, offset[, end]])
  11591. // buffer.fill(buffer[, offset[, end]])
  11592. // buffer.fill(string[, offset[, end]][, encoding])
  11593. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11594. // Handle string cases:
  11595. if (typeof val === 'string') {
  11596. if (typeof start === 'string') {
  11597. encoding = start
  11598. start = 0
  11599. end = this.length
  11600. } else if (typeof end === 'string') {
  11601. encoding = end
  11602. end = this.length
  11603. }
  11604. if (val.length === 1) {
  11605. var code = val.charCodeAt(0)
  11606. if (code < 256) {
  11607. val = code
  11608. }
  11609. }
  11610. if (encoding !== undefined && typeof encoding !== 'string') {
  11611. throw new TypeError('encoding must be a string')
  11612. }
  11613. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11614. throw new TypeError('Unknown encoding: ' + encoding)
  11615. }
  11616. } else if (typeof val === 'number') {
  11617. val = val & 255
  11618. }
  11619. // Invalid ranges are not set to a default, so can range check early.
  11620. if (start < 0 || this.length < start || this.length < end) {
  11621. throw new RangeError('Out of range index')
  11622. }
  11623. if (end <= start) {
  11624. return this
  11625. }
  11626. start = start >>> 0
  11627. end = end === undefined ? this.length : end >>> 0
  11628. if (!val) val = 0
  11629. var i
  11630. if (typeof val === 'number') {
  11631. for (i = start; i < end; ++i) {
  11632. this[i] = val
  11633. }
  11634. } else {
  11635. var bytes = Buffer.isBuffer(val)
  11636. ? val
  11637. : utf8ToBytes(new Buffer(val, encoding).toString())
  11638. var len = bytes.length
  11639. for (i = 0; i < end - start; ++i) {
  11640. this[i + start] = bytes[i % len]
  11641. }
  11642. }
  11643. return this
  11644. }
  11645. // HELPER FUNCTIONS
  11646. // ================
  11647. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11648. function base64clean (str) {
  11649. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11650. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11651. // Node converts strings with length < 2 to ''
  11652. if (str.length < 2) return ''
  11653. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11654. while (str.length % 4 !== 0) {
  11655. str = str + '='
  11656. }
  11657. return str
  11658. }
  11659. function stringtrim (str) {
  11660. if (str.trim) return str.trim()
  11661. return str.replace(/^\s+|\s+$/g, '')
  11662. }
  11663. function toHex (n) {
  11664. if (n < 16) return '0' + n.toString(16)
  11665. return n.toString(16)
  11666. }
  11667. function utf8ToBytes (string, units) {
  11668. units = units || Infinity
  11669. var codePoint
  11670. var length = string.length
  11671. var leadSurrogate = null
  11672. var bytes = []
  11673. for (var i = 0; i < length; ++i) {
  11674. codePoint = string.charCodeAt(i)
  11675. // is surrogate component
  11676. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11677. // last char was a lead
  11678. if (!leadSurrogate) {
  11679. // no lead yet
  11680. if (codePoint > 0xDBFF) {
  11681. // unexpected trail
  11682. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11683. continue
  11684. } else if (i + 1 === length) {
  11685. // unpaired lead
  11686. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11687. continue
  11688. }
  11689. // valid lead
  11690. leadSurrogate = codePoint
  11691. continue
  11692. }
  11693. // 2 leads in a row
  11694. if (codePoint < 0xDC00) {
  11695. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11696. leadSurrogate = codePoint
  11697. continue
  11698. }
  11699. // valid surrogate pair
  11700. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11701. } else if (leadSurrogate) {
  11702. // valid bmp char, but last char was a lead
  11703. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11704. }
  11705. leadSurrogate = null
  11706. // encode utf8
  11707. if (codePoint < 0x80) {
  11708. if ((units -= 1) < 0) break
  11709. bytes.push(codePoint)
  11710. } else if (codePoint < 0x800) {
  11711. if ((units -= 2) < 0) break
  11712. bytes.push(
  11713. codePoint >> 0x6 | 0xC0,
  11714. codePoint & 0x3F | 0x80
  11715. )
  11716. } else if (codePoint < 0x10000) {
  11717. if ((units -= 3) < 0) break
  11718. bytes.push(
  11719. codePoint >> 0xC | 0xE0,
  11720. codePoint >> 0x6 & 0x3F | 0x80,
  11721. codePoint & 0x3F | 0x80
  11722. )
  11723. } else if (codePoint < 0x110000) {
  11724. if ((units -= 4) < 0) break
  11725. bytes.push(
  11726. codePoint >> 0x12 | 0xF0,
  11727. codePoint >> 0xC & 0x3F | 0x80,
  11728. codePoint >> 0x6 & 0x3F | 0x80,
  11729. codePoint & 0x3F | 0x80
  11730. )
  11731. } else {
  11732. throw new Error('Invalid code point')
  11733. }
  11734. }
  11735. return bytes
  11736. }
  11737. function asciiToBytes (str) {
  11738. var byteArray = []
  11739. for (var i = 0; i < str.length; ++i) {
  11740. // Node's code seems to be doing this and not & 0x7F..
  11741. byteArray.push(str.charCodeAt(i) & 0xFF)
  11742. }
  11743. return byteArray
  11744. }
  11745. function utf16leToBytes (str, units) {
  11746. var c, hi, lo
  11747. var byteArray = []
  11748. for (var i = 0; i < str.length; ++i) {
  11749. if ((units -= 2) < 0) break
  11750. c = str.charCodeAt(i)
  11751. hi = c >> 8
  11752. lo = c % 256
  11753. byteArray.push(lo)
  11754. byteArray.push(hi)
  11755. }
  11756. return byteArray
  11757. }
  11758. function base64ToBytes (str) {
  11759. return base64.toByteArray(base64clean(str))
  11760. }
  11761. function blitBuffer (src, dst, offset, length) {
  11762. for (var i = 0; i < length; ++i) {
  11763. if ((i + offset >= dst.length) || (i >= src.length)) break
  11764. dst[i + offset] = src[i]
  11765. }
  11766. return i
  11767. }
  11768. function isnan (val) {
  11769. return val !== val // eslint-disable-line no-self-compare
  11770. }
  11771. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 3)))
  11772. /***/ }),
  11773. /* 51 */
  11774. /*!*****************************************!*\
  11775. !*** ./node_modules/base64-js/index.js ***!
  11776. \*****************************************/
  11777. /*! no static exports found */
  11778. /***/ (function(module, exports, __webpack_require__) {
  11779. "use strict";
  11780. exports.byteLength = byteLength
  11781. exports.toByteArray = toByteArray
  11782. exports.fromByteArray = fromByteArray
  11783. var lookup = []
  11784. var revLookup = []
  11785. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  11786. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  11787. for (var i = 0, len = code.length; i < len; ++i) {
  11788. lookup[i] = code[i]
  11789. revLookup[code.charCodeAt(i)] = i
  11790. }
  11791. // Support decoding URL-safe base64 strings, as Node.js does.
  11792. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  11793. revLookup['-'.charCodeAt(0)] = 62
  11794. revLookup['_'.charCodeAt(0)] = 63
  11795. function getLens (b64) {
  11796. var len = b64.length
  11797. if (len % 4 > 0) {
  11798. throw new Error('Invalid string. Length must be a multiple of 4')
  11799. }
  11800. // Trim off extra bytes after placeholder bytes are found
  11801. // See: https://github.com/beatgammit/base64-js/issues/42
  11802. var validLen = b64.indexOf('=')
  11803. if (validLen === -1) validLen = len
  11804. var placeHoldersLen = validLen === len
  11805. ? 0
  11806. : 4 - (validLen % 4)
  11807. return [validLen, placeHoldersLen]
  11808. }
  11809. // base64 is 4/3 + up to two characters of the original data
  11810. function byteLength (b64) {
  11811. var lens = getLens(b64)
  11812. var validLen = lens[0]
  11813. var placeHoldersLen = lens[1]
  11814. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11815. }
  11816. function _byteLength (b64, validLen, placeHoldersLen) {
  11817. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  11818. }
  11819. function toByteArray (b64) {
  11820. var tmp
  11821. var lens = getLens(b64)
  11822. var validLen = lens[0]
  11823. var placeHoldersLen = lens[1]
  11824. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  11825. var curByte = 0
  11826. // if there are placeholders, only get up to the last complete 4 chars
  11827. var len = placeHoldersLen > 0
  11828. ? validLen - 4
  11829. : validLen
  11830. var i
  11831. for (i = 0; i < len; i += 4) {
  11832. tmp =
  11833. (revLookup[b64.charCodeAt(i)] << 18) |
  11834. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  11835. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  11836. revLookup[b64.charCodeAt(i + 3)]
  11837. arr[curByte++] = (tmp >> 16) & 0xFF
  11838. arr[curByte++] = (tmp >> 8) & 0xFF
  11839. arr[curByte++] = tmp & 0xFF
  11840. }
  11841. if (placeHoldersLen === 2) {
  11842. tmp =
  11843. (revLookup[b64.charCodeAt(i)] << 2) |
  11844. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  11845. arr[curByte++] = tmp & 0xFF
  11846. }
  11847. if (placeHoldersLen === 1) {
  11848. tmp =
  11849. (revLookup[b64.charCodeAt(i)] << 10) |
  11850. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  11851. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  11852. arr[curByte++] = (tmp >> 8) & 0xFF
  11853. arr[curByte++] = tmp & 0xFF
  11854. }
  11855. return arr
  11856. }
  11857. function tripletToBase64 (num) {
  11858. return lookup[num >> 18 & 0x3F] +
  11859. lookup[num >> 12 & 0x3F] +
  11860. lookup[num >> 6 & 0x3F] +
  11861. lookup[num & 0x3F]
  11862. }
  11863. function encodeChunk (uint8, start, end) {
  11864. var tmp
  11865. var output = []
  11866. for (var i = start; i < end; i += 3) {
  11867. tmp =
  11868. ((uint8[i] << 16) & 0xFF0000) +
  11869. ((uint8[i + 1] << 8) & 0xFF00) +
  11870. (uint8[i + 2] & 0xFF)
  11871. output.push(tripletToBase64(tmp))
  11872. }
  11873. return output.join('')
  11874. }
  11875. function fromByteArray (uint8) {
  11876. var tmp
  11877. var len = uint8.length
  11878. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  11879. var parts = []
  11880. var maxChunkLength = 16383 // must be multiple of 3
  11881. // go through the array every three bytes, we'll deal with trailing stuff later
  11882. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  11883. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  11884. }
  11885. // pad the end with zeros, but make sure to not forget the extra bytes
  11886. if (extraBytes === 1) {
  11887. tmp = uint8[len - 1]
  11888. parts.push(
  11889. lookup[tmp >> 2] +
  11890. lookup[(tmp << 4) & 0x3F] +
  11891. '=='
  11892. )
  11893. } else if (extraBytes === 2) {
  11894. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  11895. parts.push(
  11896. lookup[tmp >> 10] +
  11897. lookup[(tmp >> 4) & 0x3F] +
  11898. lookup[(tmp << 2) & 0x3F] +
  11899. '='
  11900. )
  11901. }
  11902. return parts.join('')
  11903. }
  11904. /***/ }),
  11905. /* 52 */
  11906. /*!***************************************!*\
  11907. !*** ./node_modules/ieee754/index.js ***!
  11908. \***************************************/
  11909. /*! no static exports found */
  11910. /***/ (function(module, exports) {
  11911. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  11912. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  11913. var e, m
  11914. var eLen = (nBytes * 8) - mLen - 1
  11915. var eMax = (1 << eLen) - 1
  11916. var eBias = eMax >> 1
  11917. var nBits = -7
  11918. var i = isLE ? (nBytes - 1) : 0
  11919. var d = isLE ? -1 : 1
  11920. var s = buffer[offset + i]
  11921. i += d
  11922. e = s & ((1 << (-nBits)) - 1)
  11923. s >>= (-nBits)
  11924. nBits += eLen
  11925. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11926. m = e & ((1 << (-nBits)) - 1)
  11927. e >>= (-nBits)
  11928. nBits += mLen
  11929. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  11930. if (e === 0) {
  11931. e = 1 - eBias
  11932. } else if (e === eMax) {
  11933. return m ? NaN : ((s ? -1 : 1) * Infinity)
  11934. } else {
  11935. m = m + Math.pow(2, mLen)
  11936. e = e - eBias
  11937. }
  11938. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  11939. }
  11940. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  11941. var e, m, c
  11942. var eLen = (nBytes * 8) - mLen - 1
  11943. var eMax = (1 << eLen) - 1
  11944. var eBias = eMax >> 1
  11945. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  11946. var i = isLE ? 0 : (nBytes - 1)
  11947. var d = isLE ? 1 : -1
  11948. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  11949. value = Math.abs(value)
  11950. if (isNaN(value) || value === Infinity) {
  11951. m = isNaN(value) ? 1 : 0
  11952. e = eMax
  11953. } else {
  11954. e = Math.floor(Math.log(value) / Math.LN2)
  11955. if (value * (c = Math.pow(2, -e)) < 1) {
  11956. e--
  11957. c *= 2
  11958. }
  11959. if (e + eBias >= 1) {
  11960. value += rt / c
  11961. } else {
  11962. value += rt * Math.pow(2, 1 - eBias)
  11963. }
  11964. if (value * c >= 2) {
  11965. e++
  11966. c /= 2
  11967. }
  11968. if (e + eBias >= eMax) {
  11969. m = 0
  11970. e = eMax
  11971. } else if (e + eBias >= 1) {
  11972. m = ((value * c) - 1) * Math.pow(2, mLen)
  11973. e = e + eBias
  11974. } else {
  11975. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  11976. e = 0
  11977. }
  11978. }
  11979. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  11980. e = (e << mLen) | m
  11981. eLen += mLen
  11982. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  11983. buffer[offset + i - d] |= s * 128
  11984. }
  11985. /***/ }),
  11986. /* 53 */
  11987. /*!***************************************!*\
  11988. !*** ./node_modules/isarray/index.js ***!
  11989. \***************************************/
  11990. /*! no static exports found */
  11991. /***/ (function(module, exports) {
  11992. var toString = {}.toString;
  11993. module.exports = Array.isArray || function (arr) {
  11994. return toString.call(arr) == '[object Array]';
  11995. };
  11996. /***/ }),
  11997. /* 54 */
  11998. /*!********************************************************************!*\
  11999. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/util/route.js ***!
  12000. \********************************************************************/
  12001. /*! no static exports found */
  12002. /***/ (function(module, exports, __webpack_require__) {
  12003. "use strict";
  12004. /* WEBPACK VAR INJECTION */(function(uni) {
  12005. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12006. Object.defineProperty(exports, "__esModule", {
  12007. value: true
  12008. });
  12009. exports.default = void 0;
  12010. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  12011. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  12012. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 23));
  12013. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 24));
  12014. /**
  12015. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12016. * 并且带有路由拦截功能
  12017. */
  12018. var Router = /*#__PURE__*/function () {
  12019. function Router() {
  12020. (0, _classCallCheck2.default)(this, Router);
  12021. // 原始属性定义
  12022. this.config = {
  12023. type: 'navigateTo',
  12024. url: '',
  12025. delta: 1,
  12026. // navigateBack页面后退时,回退的层数
  12027. params: {},
  12028. // 传递的参数
  12029. animationType: 'pop-in',
  12030. // 窗口动画,只在APP有效
  12031. animationDuration: 300,
  12032. // 窗口动画持续时间,单位毫秒,只在APP有效
  12033. intercept: false // 是否需要拦截
  12034. };
  12035. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12036. // 这里在构造函数中进行this绑定
  12037. this.route = this.route.bind(this);
  12038. }
  12039. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12040. (0, _createClass2.default)(Router, [{
  12041. key: "addRootPath",
  12042. value: function addRootPath(url) {
  12043. return url[0] === '/' ? url : "/".concat(url);
  12044. }
  12045. // 整合路由参数
  12046. }, {
  12047. key: "mixinParam",
  12048. value: function mixinParam(url, params) {
  12049. url = url && this.addRootPath(url);
  12050. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12051. // 如果有url中有get参数,转换后无需带上"?"
  12052. var query = '';
  12053. if (/.*\/.*\?.*=.*/.test(url)) {
  12054. // object对象转为get类型的参数
  12055. query = uni.$u.queryParams(params, false);
  12056. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12057. return url += "&".concat(query);
  12058. }
  12059. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12060. query = uni.$u.queryParams(params);
  12061. return url += query;
  12062. }
  12063. // 对外的方法名称
  12064. }, {
  12065. key: "route",
  12066. value: function () {
  12067. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12068. var options,
  12069. params,
  12070. mergeConfig,
  12071. isNext,
  12072. _args = arguments;
  12073. return _regenerator.default.wrap(function _callee$(_context) {
  12074. while (1) {
  12075. switch (_context.prev = _context.next) {
  12076. case 0:
  12077. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12078. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12079. // 合并用户的配置和内部的默认配置
  12080. mergeConfig = {};
  12081. if (typeof options === 'string') {
  12082. // 如果options为字符串,则为route(url, params)的形式
  12083. mergeConfig.url = this.mixinParam(options, params);
  12084. mergeConfig.type = 'navigateTo';
  12085. } else {
  12086. mergeConfig = uni.$u.deepMerge(this.config, options);
  12087. // 否则正常使用mergeConfig中的url和params进行拼接
  12088. mergeConfig.url = this.mixinParam(options.url, options.params);
  12089. }
  12090. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12091. if (!(mergeConfig.url === uni.$u.page())) {
  12092. _context.next = 6;
  12093. break;
  12094. }
  12095. return _context.abrupt("return");
  12096. case 6:
  12097. if (params.intercept) {
  12098. this.config.intercept = params.intercept;
  12099. }
  12100. // params参数也带给拦截器
  12101. mergeConfig.params = params;
  12102. // 合并内外部参数
  12103. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12104. // 判断用户是否定义了拦截器
  12105. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12106. _context.next = 16;
  12107. break;
  12108. }
  12109. _context.next = 12;
  12110. return new Promise(function (resolve, reject) {
  12111. uni.$u.routeIntercept(mergeConfig, resolve);
  12112. });
  12113. case 12:
  12114. isNext = _context.sent;
  12115. // 如果isNext为true,则执行路由跳转
  12116. isNext && this.openPage(mergeConfig);
  12117. _context.next = 17;
  12118. break;
  12119. case 16:
  12120. this.openPage(mergeConfig);
  12121. case 17:
  12122. case "end":
  12123. return _context.stop();
  12124. }
  12125. }
  12126. }, _callee, this);
  12127. }));
  12128. function route() {
  12129. return _route.apply(this, arguments);
  12130. }
  12131. return route;
  12132. }() // 执行路由跳转
  12133. }, {
  12134. key: "openPage",
  12135. value: function openPage(config) {
  12136. // 解构参数
  12137. var url = config.url,
  12138. type = config.type,
  12139. delta = config.delta,
  12140. animationType = config.animationType,
  12141. animationDuration = config.animationDuration;
  12142. if (config.type == 'navigateTo' || config.type == 'to') {
  12143. uni.navigateTo({
  12144. url: url,
  12145. animationType: animationType,
  12146. animationDuration: animationDuration
  12147. });
  12148. }
  12149. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12150. uni.redirectTo({
  12151. url: url
  12152. });
  12153. }
  12154. if (config.type == 'switchTab' || config.type == 'tab') {
  12155. uni.switchTab({
  12156. url: url
  12157. });
  12158. }
  12159. if (config.type == 'reLaunch' || config.type == 'launch') {
  12160. uni.reLaunch({
  12161. url: url
  12162. });
  12163. }
  12164. if (config.type == 'navigateBack' || config.type == 'back') {
  12165. uni.navigateBack({
  12166. delta: delta
  12167. });
  12168. }
  12169. }
  12170. }]);
  12171. return Router;
  12172. }();
  12173. var _default = new Router().route;
  12174. exports.default = _default;
  12175. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  12176. /***/ }),
  12177. /* 55 */
  12178. /*!************************************************************************************************!*\
  12179. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12180. \************************************************************************************************/
  12181. /*! no static exports found */
  12182. /***/ (function(module, exports, __webpack_require__) {
  12183. // TODO(Babel 8): Remove this file.
  12184. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 56)();
  12185. module.exports = runtime;
  12186. /***/ }),
  12187. /* 56 */
  12188. /*!*******************************************************************!*\
  12189. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12190. \*******************************************************************/
  12191. /*! no static exports found */
  12192. /***/ (function(module, exports, __webpack_require__) {
  12193. var _typeof = __webpack_require__(/*! ./typeof.js */ 13)["default"];
  12194. function _regeneratorRuntime() {
  12195. "use strict";
  12196. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12197. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12198. return e;
  12199. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12200. var t,
  12201. e = {},
  12202. r = Object.prototype,
  12203. n = r.hasOwnProperty,
  12204. o = Object.defineProperty || function (t, e, r) {
  12205. t[e] = r.value;
  12206. },
  12207. i = "function" == typeof Symbol ? Symbol : {},
  12208. a = i.iterator || "@@iterator",
  12209. c = i.asyncIterator || "@@asyncIterator",
  12210. u = i.toStringTag || "@@toStringTag";
  12211. function define(t, e, r) {
  12212. return Object.defineProperty(t, e, {
  12213. value: r,
  12214. enumerable: !0,
  12215. configurable: !0,
  12216. writable: !0
  12217. }), t[e];
  12218. }
  12219. try {
  12220. define({}, "");
  12221. } catch (t) {
  12222. define = function define(t, e, r) {
  12223. return t[e] = r;
  12224. };
  12225. }
  12226. function wrap(t, e, r, n) {
  12227. var i = e && e.prototype instanceof Generator ? e : Generator,
  12228. a = Object.create(i.prototype),
  12229. c = new Context(n || []);
  12230. return o(a, "_invoke", {
  12231. value: makeInvokeMethod(t, r, c)
  12232. }), a;
  12233. }
  12234. function tryCatch(t, e, r) {
  12235. try {
  12236. return {
  12237. type: "normal",
  12238. arg: t.call(e, r)
  12239. };
  12240. } catch (t) {
  12241. return {
  12242. type: "throw",
  12243. arg: t
  12244. };
  12245. }
  12246. }
  12247. e.wrap = wrap;
  12248. var h = "suspendedStart",
  12249. l = "suspendedYield",
  12250. f = "executing",
  12251. s = "completed",
  12252. y = {};
  12253. function Generator() {}
  12254. function GeneratorFunction() {}
  12255. function GeneratorFunctionPrototype() {}
  12256. var p = {};
  12257. define(p, a, function () {
  12258. return this;
  12259. });
  12260. var d = Object.getPrototypeOf,
  12261. v = d && d(d(values([])));
  12262. v && v !== r && n.call(v, a) && (p = v);
  12263. var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
  12264. function defineIteratorMethods(t) {
  12265. ["next", "throw", "return"].forEach(function (e) {
  12266. define(t, e, function (t) {
  12267. return this._invoke(e, t);
  12268. });
  12269. });
  12270. }
  12271. function AsyncIterator(t, e) {
  12272. function invoke(r, o, i, a) {
  12273. var c = tryCatch(t[r], t, o);
  12274. if ("throw" !== c.type) {
  12275. var u = c.arg,
  12276. h = u.value;
  12277. return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
  12278. invoke("next", t, i, a);
  12279. }, function (t) {
  12280. invoke("throw", t, i, a);
  12281. }) : e.resolve(h).then(function (t) {
  12282. u.value = t, i(u);
  12283. }, function (t) {
  12284. return invoke("throw", t, i, a);
  12285. });
  12286. }
  12287. a(c.arg);
  12288. }
  12289. var r;
  12290. o(this, "_invoke", {
  12291. value: function value(t, n) {
  12292. function callInvokeWithMethodAndArg() {
  12293. return new e(function (e, r) {
  12294. invoke(t, n, e, r);
  12295. });
  12296. }
  12297. return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12298. }
  12299. });
  12300. }
  12301. function makeInvokeMethod(e, r, n) {
  12302. var o = h;
  12303. return function (i, a) {
  12304. if (o === f) throw Error("Generator is already running");
  12305. if (o === s) {
  12306. if ("throw" === i) throw a;
  12307. return {
  12308. value: t,
  12309. done: !0
  12310. };
  12311. }
  12312. for (n.method = i, n.arg = a;;) {
  12313. var c = n.delegate;
  12314. if (c) {
  12315. var u = maybeInvokeDelegate(c, n);
  12316. if (u) {
  12317. if (u === y) continue;
  12318. return u;
  12319. }
  12320. }
  12321. if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
  12322. if (o === h) throw o = s, n.arg;
  12323. n.dispatchException(n.arg);
  12324. } else "return" === n.method && n.abrupt("return", n.arg);
  12325. o = f;
  12326. var p = tryCatch(e, r, n);
  12327. if ("normal" === p.type) {
  12328. if (o = n.done ? s : l, p.arg === y) continue;
  12329. return {
  12330. value: p.arg,
  12331. done: n.done
  12332. };
  12333. }
  12334. "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
  12335. }
  12336. };
  12337. }
  12338. function maybeInvokeDelegate(e, r) {
  12339. var n = r.method,
  12340. o = e.iterator[n];
  12341. if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
  12342. var i = tryCatch(o, e.iterator, r.arg);
  12343. if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
  12344. var a = i.arg;
  12345. return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
  12346. }
  12347. function pushTryEntry(t) {
  12348. var e = {
  12349. tryLoc: t[0]
  12350. };
  12351. 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
  12352. }
  12353. function resetTryEntry(t) {
  12354. var e = t.completion || {};
  12355. e.type = "normal", delete e.arg, t.completion = e;
  12356. }
  12357. function Context(t) {
  12358. this.tryEntries = [{
  12359. tryLoc: "root"
  12360. }], t.forEach(pushTryEntry, this), this.reset(!0);
  12361. }
  12362. function values(e) {
  12363. if (e || "" === e) {
  12364. var r = e[a];
  12365. if (r) return r.call(e);
  12366. if ("function" == typeof e.next) return e;
  12367. if (!isNaN(e.length)) {
  12368. var o = -1,
  12369. i = function next() {
  12370. for (; ++o < e.length;) {
  12371. if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
  12372. }
  12373. return next.value = t, next.done = !0, next;
  12374. };
  12375. return i.next = i;
  12376. }
  12377. }
  12378. throw new TypeError(_typeof(e) + " is not iterable");
  12379. }
  12380. return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
  12381. value: GeneratorFunctionPrototype,
  12382. configurable: !0
  12383. }), o(GeneratorFunctionPrototype, "constructor", {
  12384. value: GeneratorFunction,
  12385. configurable: !0
  12386. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
  12387. var e = "function" == typeof t && t.constructor;
  12388. return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
  12389. }, e.mark = function (t) {
  12390. return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
  12391. }, e.awrap = function (t) {
  12392. return {
  12393. __await: t
  12394. };
  12395. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
  12396. return this;
  12397. }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
  12398. void 0 === i && (i = Promise);
  12399. var a = new AsyncIterator(wrap(t, r, n, o), i);
  12400. return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
  12401. return t.done ? t.value : a.next();
  12402. });
  12403. }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
  12404. return this;
  12405. }), define(g, "toString", function () {
  12406. return "[object Generator]";
  12407. }), e.keys = function (t) {
  12408. var e = Object(t),
  12409. r = [];
  12410. for (var n in e) {
  12411. r.push(n);
  12412. }
  12413. return r.reverse(), function next() {
  12414. for (; r.length;) {
  12415. var t = r.pop();
  12416. if (t in e) return next.value = t, next.done = !1, next;
  12417. }
  12418. return next.done = !0, next;
  12419. };
  12420. }, e.values = values, Context.prototype = {
  12421. constructor: Context,
  12422. reset: function reset(e) {
  12423. if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) {
  12424. "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
  12425. }
  12426. },
  12427. stop: function stop() {
  12428. this.done = !0;
  12429. var t = this.tryEntries[0].completion;
  12430. if ("throw" === t.type) throw t.arg;
  12431. return this.rval;
  12432. },
  12433. dispatchException: function dispatchException(e) {
  12434. if (this.done) throw e;
  12435. var r = this;
  12436. function handle(n, o) {
  12437. return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
  12438. }
  12439. for (var o = this.tryEntries.length - 1; o >= 0; --o) {
  12440. var i = this.tryEntries[o],
  12441. a = i.completion;
  12442. if ("root" === i.tryLoc) return handle("end");
  12443. if (i.tryLoc <= this.prev) {
  12444. var c = n.call(i, "catchLoc"),
  12445. u = n.call(i, "finallyLoc");
  12446. if (c && u) {
  12447. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12448. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12449. } else if (c) {
  12450. if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
  12451. } else {
  12452. if (!u) throw Error("try statement without catch or finally");
  12453. if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
  12454. }
  12455. }
  12456. }
  12457. },
  12458. abrupt: function abrupt(t, e) {
  12459. for (var r = this.tryEntries.length - 1; r >= 0; --r) {
  12460. var o = this.tryEntries[r];
  12461. if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
  12462. var i = o;
  12463. break;
  12464. }
  12465. }
  12466. i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
  12467. var a = i ? i.completion : {};
  12468. return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
  12469. },
  12470. complete: function complete(t, e) {
  12471. if ("throw" === t.type) throw t.arg;
  12472. return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
  12473. },
  12474. finish: function finish(t) {
  12475. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12476. var r = this.tryEntries[e];
  12477. if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
  12478. }
  12479. },
  12480. "catch": function _catch(t) {
  12481. for (var e = this.tryEntries.length - 1; e >= 0; --e) {
  12482. var r = this.tryEntries[e];
  12483. if (r.tryLoc === t) {
  12484. var n = r.completion;
  12485. if ("throw" === n.type) {
  12486. var o = n.arg;
  12487. resetTryEntry(r);
  12488. }
  12489. return o;
  12490. }
  12491. }
  12492. throw Error("illegal catch attempt");
  12493. },
  12494. delegateYield: function delegateYield(e, r, n) {
  12495. return this.delegate = {
  12496. iterator: values(e),
  12497. resultName: r,
  12498. nextLoc: n
  12499. }, "next" === this.method && (this.arg = t), y;
  12500. }
  12501. }, e;
  12502. }
  12503. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12504. /***/ }),
  12505. /* 57 */
  12506. /*!*****************************************************************!*\
  12507. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12508. \*****************************************************************/
  12509. /*! no static exports found */
  12510. /***/ (function(module, exports) {
  12511. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12512. try {
  12513. var info = gen[key](arg);
  12514. var value = info.value;
  12515. } catch (error) {
  12516. reject(error);
  12517. return;
  12518. }
  12519. if (info.done) {
  12520. resolve(value);
  12521. } else {
  12522. Promise.resolve(value).then(_next, _throw);
  12523. }
  12524. }
  12525. function _asyncToGenerator(fn) {
  12526. return function () {
  12527. var self = this,
  12528. args = arguments;
  12529. return new Promise(function (resolve, reject) {
  12530. var gen = fn.apply(self, args);
  12531. function _next(value) {
  12532. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12533. }
  12534. function _throw(err) {
  12535. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12536. }
  12537. _next(undefined);
  12538. });
  12539. };
  12540. }
  12541. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12542. /***/ }),
  12543. /* 58 */
  12544. /*!********************************************************************************!*\
  12545. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/function/colorGradient.js ***!
  12546. \********************************************************************************/
  12547. /*! no static exports found */
  12548. /***/ (function(module, exports, __webpack_require__) {
  12549. "use strict";
  12550. Object.defineProperty(exports, "__esModule", {
  12551. value: true
  12552. });
  12553. exports.default = void 0;
  12554. /**
  12555. * 求两个颜色之间的渐变值
  12556. * @param {string} startColor 开始的颜色
  12557. * @param {string} endColor 结束的颜色
  12558. * @param {number} step 颜色等分的份额
  12559. * */
  12560. function colorGradient() {
  12561. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12562. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12563. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12564. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12565. var startR = startRGB[0];
  12566. var startG = startRGB[1];
  12567. var startB = startRGB[2];
  12568. var endRGB = hexToRgb(endColor, false);
  12569. var endR = endRGB[0];
  12570. var endG = endRGB[1];
  12571. var endB = endRGB[2];
  12572. var sR = (endR - startR) / step; // 总差值
  12573. var sG = (endG - startG) / step;
  12574. var sB = (endB - startB) / step;
  12575. var colorArr = [];
  12576. for (var i = 0; i < step; i++) {
  12577. // 计算每一步的hex值
  12578. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12579. // 确保第一个颜色值为startColor的值
  12580. if (i === 0) hex = rgbToHex(startColor);
  12581. // 确保最后一个颜色值为endColor的值
  12582. if (i === step - 1) hex = rgbToHex(endColor);
  12583. colorArr.push(hex);
  12584. }
  12585. return colorArr;
  12586. }
  12587. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12588. function hexToRgb(sColor) {
  12589. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12590. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12591. sColor = String(sColor).toLowerCase();
  12592. if (sColor && reg.test(sColor)) {
  12593. if (sColor.length === 4) {
  12594. var sColorNew = '#';
  12595. for (var i = 1; i < 4; i += 1) {
  12596. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12597. }
  12598. sColor = sColorNew;
  12599. }
  12600. // 处理六位的颜色值
  12601. var sColorChange = [];
  12602. for (var _i = 1; _i < 7; _i += 2) {
  12603. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12604. }
  12605. if (!str) {
  12606. return sColorChange;
  12607. }
  12608. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12609. }
  12610. if (/^(rgb|RGB)/.test(sColor)) {
  12611. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12612. return arr.map(function (val) {
  12613. return Number(val);
  12614. });
  12615. }
  12616. return sColor;
  12617. }
  12618. // 将rgb表示方式转换为hex表示方式
  12619. function rgbToHex(rgb) {
  12620. var _this = rgb;
  12621. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12622. if (/^(rgb|RGB)/.test(_this)) {
  12623. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12624. var strHex = '#';
  12625. for (var i = 0; i < aColor.length; i++) {
  12626. var hex = Number(aColor[i]).toString(16);
  12627. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12628. if (hex === '0') {
  12629. hex += hex;
  12630. }
  12631. strHex += hex;
  12632. }
  12633. if (strHex.length !== 7) {
  12634. strHex = _this;
  12635. }
  12636. return strHex;
  12637. }
  12638. if (reg.test(_this)) {
  12639. var aNum = _this.replace(/#/, '').split('');
  12640. if (aNum.length === 6) {
  12641. return _this;
  12642. }
  12643. if (aNum.length === 3) {
  12644. var numHex = '#';
  12645. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12646. numHex += aNum[_i2] + aNum[_i2];
  12647. }
  12648. return numHex;
  12649. }
  12650. } else {
  12651. return _this;
  12652. }
  12653. }
  12654. /**
  12655. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12656. * sHex为传入的十六进制的色值
  12657. * alpha为rgba的透明度
  12658. */
  12659. function colorToRgba(color, alpha) {
  12660. color = rgbToHex(color);
  12661. // 十六进制颜色值的正则表达式
  12662. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12663. /* 16进制颜色转为RGB格式 */
  12664. var sColor = String(color).toLowerCase();
  12665. if (sColor && reg.test(sColor)) {
  12666. if (sColor.length === 4) {
  12667. var sColorNew = '#';
  12668. for (var i = 1; i < 4; i += 1) {
  12669. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12670. }
  12671. sColor = sColorNew;
  12672. }
  12673. // 处理六位的颜色值
  12674. var sColorChange = [];
  12675. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12676. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12677. }
  12678. // return sColorChange.join(',')
  12679. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12680. }
  12681. return sColor;
  12682. }
  12683. var _default = {
  12684. colorGradient: colorGradient,
  12685. hexToRgb: hexToRgb,
  12686. rgbToHex: rgbToHex,
  12687. colorToRgba: colorToRgba
  12688. };
  12689. exports.default = _default;
  12690. /***/ }),
  12691. /* 59 */
  12692. /*!***********************************************************************!*\
  12693. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/function/test.js ***!
  12694. \***********************************************************************/
  12695. /*! no static exports found */
  12696. /***/ (function(module, exports, __webpack_require__) {
  12697. "use strict";
  12698. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  12699. Object.defineProperty(exports, "__esModule", {
  12700. value: true
  12701. });
  12702. exports.default = void 0;
  12703. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  12704. /**
  12705. * 验证电子邮箱格式
  12706. */
  12707. function email(value) {
  12708. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12709. }
  12710. /**
  12711. * 验证手机格式
  12712. */
  12713. function mobile(value) {
  12714. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12715. }
  12716. /**
  12717. * 验证URL格式
  12718. */
  12719. function url(value) {
  12720. return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(value);
  12721. }
  12722. /**
  12723. * 验证日期格式
  12724. */
  12725. function date(value) {
  12726. if (!value) return false;
  12727. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  12728. if (number(value)) value = +value;
  12729. return !/Invalid|NaN/.test(new Date(value).toString());
  12730. }
  12731. /**
  12732. * 验证ISO类型的日期格式
  12733. */
  12734. function dateISO(value) {
  12735. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  12736. }
  12737. /**
  12738. * 验证十进制数字
  12739. */
  12740. function number(value) {
  12741. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  12742. }
  12743. /**
  12744. * 验证字符串
  12745. */
  12746. function string(value) {
  12747. return typeof value === 'string';
  12748. }
  12749. /**
  12750. * 验证整数
  12751. */
  12752. function digits(value) {
  12753. return /^\d+$/.test(value);
  12754. }
  12755. /**
  12756. * 验证身份证号码
  12757. */
  12758. function idCard(value) {
  12759. 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);
  12760. }
  12761. /**
  12762. * 是否车牌号
  12763. */
  12764. function carNo(value) {
  12765. // 新能源车牌
  12766. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  12767. // 旧车牌
  12768. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  12769. if (value.length === 7) {
  12770. return creg.test(value);
  12771. }
  12772. if (value.length === 8) {
  12773. return xreg.test(value);
  12774. }
  12775. return false;
  12776. }
  12777. /**
  12778. * 金额,只允许2位小数
  12779. */
  12780. function amount(value) {
  12781. // 金额,只允许保留两位小数
  12782. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  12783. }
  12784. /**
  12785. * 中文
  12786. */
  12787. function chinese(value) {
  12788. var reg = /^[\u4e00-\u9fa5]+$/gi;
  12789. return reg.test(value);
  12790. }
  12791. /**
  12792. * 只能输入字母
  12793. */
  12794. function letter(value) {
  12795. return /^[a-zA-Z]*$/.test(value);
  12796. }
  12797. /**
  12798. * 只能是字母或者数字
  12799. */
  12800. function enOrNum(value) {
  12801. // 英文或者数字
  12802. var reg = /^[0-9a-zA-Z]*$/g;
  12803. return reg.test(value);
  12804. }
  12805. /**
  12806. * 验证是否包含某个值
  12807. */
  12808. function contains(value, param) {
  12809. return value.indexOf(param) >= 0;
  12810. }
  12811. /**
  12812. * 验证一个值范围[min, max]
  12813. */
  12814. function range(value, param) {
  12815. return value >= param[0] && value <= param[1];
  12816. }
  12817. /**
  12818. * 验证一个长度范围[min, max]
  12819. */
  12820. function rangeLength(value, param) {
  12821. return value.length >= param[0] && value.length <= param[1];
  12822. }
  12823. /**
  12824. * 是否固定电话
  12825. */
  12826. function landline(value) {
  12827. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  12828. return reg.test(value);
  12829. }
  12830. /**
  12831. * 判断是否为空
  12832. */
  12833. function empty(value) {
  12834. switch ((0, _typeof2.default)(value)) {
  12835. case 'undefined':
  12836. return true;
  12837. case 'string':
  12838. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  12839. break;
  12840. case 'boolean':
  12841. if (!value) return true;
  12842. break;
  12843. case 'number':
  12844. if (value === 0 || isNaN(value)) return true;
  12845. break;
  12846. case 'object':
  12847. if (value === null || value.length === 0) return true;
  12848. for (var i in value) {
  12849. return false;
  12850. }
  12851. return true;
  12852. }
  12853. return false;
  12854. }
  12855. /**
  12856. * 是否json字符串
  12857. */
  12858. function jsonString(value) {
  12859. if (typeof value === 'string') {
  12860. try {
  12861. var obj = JSON.parse(value);
  12862. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  12863. return true;
  12864. }
  12865. return false;
  12866. } catch (e) {
  12867. return false;
  12868. }
  12869. }
  12870. return false;
  12871. }
  12872. /**
  12873. * 是否数组
  12874. */
  12875. function array(value) {
  12876. if (typeof Array.isArray === 'function') {
  12877. return Array.isArray(value);
  12878. }
  12879. return Object.prototype.toString.call(value) === '[object Array]';
  12880. }
  12881. /**
  12882. * 是否对象
  12883. */
  12884. function object(value) {
  12885. return Object.prototype.toString.call(value) === '[object Object]';
  12886. }
  12887. /**
  12888. * 是否短信验证码
  12889. */
  12890. function code(value) {
  12891. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  12892. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  12893. }
  12894. /**
  12895. * 是否函数方法
  12896. * @param {Object} value
  12897. */
  12898. function func(value) {
  12899. return typeof value === 'function';
  12900. }
  12901. /**
  12902. * 是否promise对象
  12903. * @param {Object} value
  12904. */
  12905. function promise(value) {
  12906. return object(value) && func(value.then) && func(value.catch);
  12907. }
  12908. /** 是否图片格式
  12909. * @param {Object} value
  12910. */
  12911. function image(value) {
  12912. var newValue = value.split('?')[0];
  12913. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  12914. return IMAGE_REGEXP.test(newValue);
  12915. }
  12916. /**
  12917. * 是否视频格式
  12918. * @param {Object} value
  12919. */
  12920. function video(value) {
  12921. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  12922. return VIDEO_REGEXP.test(value);
  12923. }
  12924. /**
  12925. * 是否为正则对象
  12926. * @param {Object}
  12927. * @return {Boolean}
  12928. */
  12929. function regExp(o) {
  12930. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  12931. }
  12932. var _default = {
  12933. email: email,
  12934. mobile: mobile,
  12935. url: url,
  12936. date: date,
  12937. dateISO: dateISO,
  12938. number: number,
  12939. digits: digits,
  12940. idCard: idCard,
  12941. carNo: carNo,
  12942. amount: amount,
  12943. chinese: chinese,
  12944. letter: letter,
  12945. enOrNum: enOrNum,
  12946. contains: contains,
  12947. range: range,
  12948. rangeLength: rangeLength,
  12949. empty: empty,
  12950. isEmpty: empty,
  12951. jsonString: jsonString,
  12952. landline: landline,
  12953. object: object,
  12954. array: array,
  12955. code: code,
  12956. func: func,
  12957. promise: promise,
  12958. video: video,
  12959. image: image,
  12960. regExp: regExp,
  12961. string: string
  12962. };
  12963. exports.default = _default;
  12964. /***/ }),
  12965. /* 60 */
  12966. /*!***************************************************************************!*\
  12967. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/function/debounce.js ***!
  12968. \***************************************************************************/
  12969. /*! no static exports found */
  12970. /***/ (function(module, exports, __webpack_require__) {
  12971. "use strict";
  12972. Object.defineProperty(exports, "__esModule", {
  12973. value: true
  12974. });
  12975. exports.default = void 0;
  12976. var timeout = null;
  12977. /**
  12978. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  12979. *
  12980. * @param {Function} func 要执行的回调函数
  12981. * @param {Number} wait 延时的时间
  12982. * @param {Boolean} immediate 是否立即执行
  12983. * @return null
  12984. */
  12985. function debounce(func) {
  12986. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  12987. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  12988. // 清除定时器
  12989. if (timeout !== null) clearTimeout(timeout);
  12990. // 立即执行,此类情况一般用不到
  12991. if (immediate) {
  12992. var callNow = !timeout;
  12993. timeout = setTimeout(function () {
  12994. timeout = null;
  12995. }, wait);
  12996. if (callNow) typeof func === 'function' && func();
  12997. } else {
  12998. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  12999. timeout = setTimeout(function () {
  13000. typeof func === 'function' && func();
  13001. }, wait);
  13002. }
  13003. }
  13004. var _default = debounce;
  13005. exports.default = _default;
  13006. /***/ }),
  13007. /* 61 */
  13008. /*!***************************************************************************!*\
  13009. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/function/throttle.js ***!
  13010. \***************************************************************************/
  13011. /*! no static exports found */
  13012. /***/ (function(module, exports, __webpack_require__) {
  13013. "use strict";
  13014. Object.defineProperty(exports, "__esModule", {
  13015. value: true
  13016. });
  13017. exports.default = void 0;
  13018. var timer;
  13019. var flag;
  13020. /**
  13021. * 节流原理:在一定时间内,只能触发一次
  13022. *
  13023. * @param {Function} func 要执行的回调函数
  13024. * @param {Number} wait 延时的时间
  13025. * @param {Boolean} immediate 是否立即执行
  13026. * @return null
  13027. */
  13028. function throttle(func) {
  13029. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13030. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13031. if (immediate) {
  13032. if (!flag) {
  13033. flag = true;
  13034. // 如果是立即执行,则在wait毫秒内开始时执行
  13035. typeof func === 'function' && func();
  13036. timer = setTimeout(function () {
  13037. flag = false;
  13038. }, wait);
  13039. }
  13040. } else if (!flag) {
  13041. flag = true;
  13042. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13043. timer = setTimeout(function () {
  13044. flag = false;
  13045. typeof func === 'function' && func();
  13046. }, wait);
  13047. }
  13048. }
  13049. var _default = throttle;
  13050. exports.default = _default;
  13051. /***/ }),
  13052. /* 62 */
  13053. /*!************************************************************************!*\
  13054. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/function/index.js ***!
  13055. \************************************************************************/
  13056. /*! no static exports found */
  13057. /***/ (function(module, exports, __webpack_require__) {
  13058. "use strict";
  13059. /* WEBPACK VAR INJECTION */(function(uni) {
  13060. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13061. Object.defineProperty(exports, "__esModule", {
  13062. value: true
  13063. });
  13064. exports.default = void 0;
  13065. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5));
  13066. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  13067. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 59));
  13068. var _digit = __webpack_require__(/*! ./digit.js */ 63);
  13069. /**
  13070. * @description 如果value小于min,取min;如果value大于max,取max
  13071. * @param {number} min
  13072. * @param {number} max
  13073. * @param {number} value
  13074. */
  13075. function range() {
  13076. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13077. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13078. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13079. return Math.max(min, Math.min(max, Number(value)));
  13080. }
  13081. /**
  13082. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13083. * @param {number|string} value 用户传递值的px值
  13084. * @param {boolean} unit
  13085. * @returns {number|string}
  13086. */
  13087. function getPx(value) {
  13088. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13089. if (_test.default.number(value)) {
  13090. return unit ? "".concat(value, "px") : Number(value);
  13091. }
  13092. // 如果带有rpx,先取出其数值部分,再转为px值
  13093. if (/(rpx|upx)$/.test(value)) {
  13094. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13095. }
  13096. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13097. }
  13098. /**
  13099. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13100. * @param {number} value 堵塞时间 单位ms 毫秒
  13101. * @returns {Promise} 返回promise
  13102. */
  13103. function sleep() {
  13104. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13105. return new Promise(function (resolve) {
  13106. setTimeout(function () {
  13107. resolve();
  13108. }, value);
  13109. });
  13110. }
  13111. /**
  13112. * @description 运行期判断平台
  13113. * @returns {string} 返回所在平台(小写)
  13114. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13115. */
  13116. function os() {
  13117. return uni.getSystemInfoSync().platform.toLowerCase();
  13118. }
  13119. /**
  13120. * @description 获取系统信息同步接口
  13121. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13122. */
  13123. function sys() {
  13124. return uni.getSystemInfoSync();
  13125. }
  13126. /**
  13127. * @description 取一个区间数
  13128. * @param {Number} min 最小值
  13129. * @param {Number} max 最大值
  13130. */
  13131. function random(min, max) {
  13132. if (min >= 0 && max > 0 && max >= min) {
  13133. var gab = max - min + 1;
  13134. return Math.floor(Math.random() * gab + min);
  13135. }
  13136. return 0;
  13137. }
  13138. /**
  13139. * @param {Number} len uuid的长度
  13140. * @param {Boolean} firstU 将返回的首字母置为"u"
  13141. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13142. */
  13143. function guid() {
  13144. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13145. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13146. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13147. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13148. var uuid = [];
  13149. radix = radix || chars.length;
  13150. if (len) {
  13151. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13152. for (var i = 0; i < len; i++) {
  13153. uuid[i] = chars[0 | Math.random() * radix];
  13154. }
  13155. } else {
  13156. var r;
  13157. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13158. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13159. uuid[14] = '4';
  13160. for (var _i = 0; _i < 36; _i++) {
  13161. if (!uuid[_i]) {
  13162. r = 0 | Math.random() * 16;
  13163. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13164. }
  13165. }
  13166. }
  13167. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13168. if (firstU) {
  13169. uuid.shift();
  13170. return "u".concat(uuid.join(''));
  13171. }
  13172. return uuid.join('');
  13173. }
  13174. /**
  13175. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13176. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13177. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13178. 值(默认为undefined),就是查找最顶层的$parent
  13179. * @param {string|undefined} name 父组件的参数名
  13180. */
  13181. function $parent() {
  13182. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13183. var parent = this.$parent;
  13184. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13185. while (parent) {
  13186. // 父组件
  13187. if (parent.$options && parent.$options.name !== name) {
  13188. // 如果组件的name不相等,继续上一级寻找
  13189. parent = parent.$parent;
  13190. } else {
  13191. return parent;
  13192. }
  13193. }
  13194. return false;
  13195. }
  13196. /**
  13197. * @description 样式转换
  13198. * 对象转字符串,或者字符串转对象
  13199. * @param {object | string} customStyle 需要转换的目标
  13200. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13201. * @returns {object|string}
  13202. */
  13203. function addStyle(customStyle) {
  13204. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13205. // 字符串转字符串,对象转对象情形,直接返回
  13206. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13207. return customStyle;
  13208. }
  13209. // 字符串转对象
  13210. if (target === 'object') {
  13211. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13212. customStyle = trim(customStyle);
  13213. // 根据";"将字符串转为数组形式
  13214. var styleArray = customStyle.split(';');
  13215. var style = {};
  13216. // 历遍数组,拼接成对象
  13217. for (var i = 0; i < styleArray.length; i++) {
  13218. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13219. if (styleArray[i]) {
  13220. var item = styleArray[i].split(':');
  13221. style[trim(item[0])] = trim(item[1]);
  13222. }
  13223. }
  13224. return style;
  13225. }
  13226. // 这里为对象转字符串形式
  13227. var string = '';
  13228. for (var _i2 in customStyle) {
  13229. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13230. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13231. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13232. }
  13233. // 去除两端空格
  13234. return trim(string);
  13235. }
  13236. /**
  13237. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13238. * @param {string|number} value 需要添加单位的值
  13239. * @param {string} unit 添加的单位名 比如px
  13240. */
  13241. function addUnit() {
  13242. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13243. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13244. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (_uni$$u$config$unit = (_uni = uni) === null || _uni === void 0 ? void 0 : (_uni$$u = _uni.$u) === null || _uni$$u === void 0 ? void 0 : (_uni$$u$config = _uni$$u.config) === null || _uni$$u$config === void 0 ? void 0 : _uni$$u$config.unit) !== null && _uni$$u$config$unit !== void 0 ? _uni$$u$config$unit : 'px';
  13245. value = String(value);
  13246. // 用uView内置验证规则中的number判断是否为数值
  13247. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13248. }
  13249. /**
  13250. * @description 深度克隆
  13251. * @param {object} obj 需要深度克隆的对象
  13252. * @param cache 缓存
  13253. * @returns {*} 克隆后的对象或者原值(不是对象)
  13254. */
  13255. function deepClone(obj) {
  13256. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13257. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13258. if (cache.has(obj)) return cache.get(obj);
  13259. var clone;
  13260. if (obj instanceof Date) {
  13261. clone = new Date(obj.getTime());
  13262. } else if (obj instanceof RegExp) {
  13263. clone = new RegExp(obj);
  13264. } else if (obj instanceof Map) {
  13265. clone = new Map(Array.from(obj, function (_ref) {
  13266. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13267. key = _ref2[0],
  13268. value = _ref2[1];
  13269. return [key, deepClone(value, cache)];
  13270. }));
  13271. } else if (obj instanceof Set) {
  13272. clone = new Set(Array.from(obj, function (value) {
  13273. return deepClone(value, cache);
  13274. }));
  13275. } else if (Array.isArray(obj)) {
  13276. clone = obj.map(function (value) {
  13277. return deepClone(value, cache);
  13278. });
  13279. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13280. clone = Object.create(Object.getPrototypeOf(obj));
  13281. cache.set(obj, clone);
  13282. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13283. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13284. key = _Object$entries$_i[0],
  13285. value = _Object$entries$_i[1];
  13286. clone[key] = deepClone(value, cache);
  13287. }
  13288. } else {
  13289. clone = Object.assign({}, obj);
  13290. }
  13291. cache.set(obj, clone);
  13292. return clone;
  13293. }
  13294. /**
  13295. * @description JS对象深度合并
  13296. * @param {object} target 需要拷贝的对象
  13297. * @param {object} source 拷贝的来源对象
  13298. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13299. */
  13300. function deepMerge() {
  13301. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13302. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13303. target = deepClone(target);
  13304. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13305. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13306. for (var prop in source) {
  13307. if (!source.hasOwnProperty(prop)) continue;
  13308. var sourceValue = source[prop];
  13309. var targetValue = merged[prop];
  13310. if (sourceValue instanceof Date) {
  13311. merged[prop] = new Date(sourceValue);
  13312. } else if (sourceValue instanceof RegExp) {
  13313. merged[prop] = new RegExp(sourceValue);
  13314. } else if (sourceValue instanceof Map) {
  13315. merged[prop] = new Map(sourceValue);
  13316. } else if (sourceValue instanceof Set) {
  13317. merged[prop] = new Set(sourceValue);
  13318. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13319. merged[prop] = deepMerge(targetValue, sourceValue);
  13320. } else {
  13321. merged[prop] = sourceValue;
  13322. }
  13323. }
  13324. return merged;
  13325. }
  13326. /**
  13327. * @description error提示
  13328. * @param {*} err 错误内容
  13329. */
  13330. function error(err) {
  13331. // 开发环境才提示,生产环境不会提示
  13332. if (true) {
  13333. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13334. }
  13335. }
  13336. /**
  13337. * @description 打乱数组
  13338. * @param {array} array 需要打乱的数组
  13339. * @returns {array} 打乱后的数组
  13340. */
  13341. function randomArray() {
  13342. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13343. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13344. return array.sort(function () {
  13345. return Math.random() - 0.5;
  13346. });
  13347. }
  13348. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13349. // 所以这里做一个兼容polyfill的兼容处理
  13350. if (!String.prototype.padStart) {
  13351. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13352. String.prototype.padStart = function (maxLength) {
  13353. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13354. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13355. throw new TypeError('fillString must be String');
  13356. }
  13357. var str = this;
  13358. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13359. if (str.length >= maxLength) return String(str);
  13360. var fillLength = maxLength - str.length;
  13361. var times = Math.ceil(fillLength / fillString.length);
  13362. while (times >>= 1) {
  13363. fillString += fillString;
  13364. if (times === 1) {
  13365. fillString += fillString;
  13366. }
  13367. }
  13368. return fillString.slice(0, fillLength) + str;
  13369. };
  13370. }
  13371. /**
  13372. * @description 格式化时间
  13373. * @param {String|Number} dateTime 需要格式化的时间戳
  13374. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13375. * @returns {string} 返回格式化后的字符串
  13376. */
  13377. function timeFormat() {
  13378. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13379. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13380. var date;
  13381. // 若传入时间为假值,则取当前时间
  13382. if (!dateTime) {
  13383. date = new Date();
  13384. }
  13385. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13386. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13387. date = new Date(dateTime * 1000);
  13388. }
  13389. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13390. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13391. date = new Date(Number(dateTime));
  13392. }
  13393. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13394. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13395. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13396. date = new Date(dateTime.replace(/-/g, '/'));
  13397. }
  13398. // 其他都认为符合 RFC 2822 规范
  13399. else {
  13400. date = new Date(dateTime);
  13401. }
  13402. var timeSource = {
  13403. 'y': date.getFullYear().toString(),
  13404. // 年
  13405. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13406. // 月
  13407. 'd': date.getDate().toString().padStart(2, '0'),
  13408. // 日
  13409. 'h': date.getHours().toString().padStart(2, '0'),
  13410. // 时
  13411. 'M': date.getMinutes().toString().padStart(2, '0'),
  13412. // 分
  13413. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13414. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13415. };
  13416. for (var key in timeSource) {
  13417. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13418. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13419. ret = _ref4[0];
  13420. if (ret) {
  13421. // 年可能只需展示两位
  13422. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13423. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13424. }
  13425. }
  13426. return formatStr;
  13427. }
  13428. /**
  13429. * @description 时间戳转为多久之前
  13430. * @param {String|Number} timestamp 时间戳
  13431. * @param {String|Boolean} format
  13432. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13433. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13434. * @returns {string} 转化后的内容
  13435. */
  13436. function timeFrom() {
  13437. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13438. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13439. if (timestamp == null) timestamp = Number(new Date());
  13440. timestamp = parseInt(timestamp);
  13441. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13442. if (timestamp.toString().length == 10) timestamp *= 1000;
  13443. var timer = new Date().getTime() - timestamp;
  13444. timer = parseInt(timer / 1000);
  13445. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13446. var tips = '';
  13447. switch (true) {
  13448. case timer < 300:
  13449. tips = '刚刚';
  13450. break;
  13451. case timer >= 300 && timer < 3600:
  13452. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13453. break;
  13454. case timer >= 3600 && timer < 86400:
  13455. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13456. break;
  13457. case timer >= 86400 && timer < 2592000:
  13458. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13459. break;
  13460. default:
  13461. // 如果format为false,则无论什么时间戳,都显示xx之前
  13462. if (format === false) {
  13463. if (timer >= 2592000 && timer < 365 * 86400) {
  13464. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13465. } else {
  13466. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13467. }
  13468. } else {
  13469. tips = timeFormat(timestamp, format);
  13470. }
  13471. }
  13472. return tips;
  13473. }
  13474. /**
  13475. * @description 去除空格
  13476. * @param String str 需要去除空格的字符串
  13477. * @param String pos both(左右)|left|right|all 默认both
  13478. */
  13479. function trim(str) {
  13480. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13481. str = String(str);
  13482. if (pos == 'both') {
  13483. return str.replace(/^\s+|\s+$/g, '');
  13484. }
  13485. if (pos == 'left') {
  13486. return str.replace(/^\s*/, '');
  13487. }
  13488. if (pos == 'right') {
  13489. return str.replace(/(\s*$)/g, '');
  13490. }
  13491. if (pos == 'all') {
  13492. return str.replace(/\s+/g, '');
  13493. }
  13494. return str;
  13495. }
  13496. /**
  13497. * @description 对象转url参数
  13498. * @param {object} data,对象
  13499. * @param {Boolean} isPrefix,是否自动加上"?"
  13500. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13501. */
  13502. function queryParams() {
  13503. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13504. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13505. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13506. var prefix = isPrefix ? '?' : '';
  13507. var _result = [];
  13508. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13509. var _loop = function _loop(key) {
  13510. var value = data[key];
  13511. // 去掉为空的参数
  13512. if (['', undefined, null].indexOf(value) >= 0) {
  13513. return "continue";
  13514. }
  13515. // 如果值为数组,另行处理
  13516. if (value.constructor === Array) {
  13517. // e.g. {ids: [1, 2, 3]}
  13518. switch (arrayFormat) {
  13519. case 'indices':
  13520. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13521. for (var i = 0; i < value.length; i++) {
  13522. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13523. }
  13524. break;
  13525. case 'brackets':
  13526. // 结果: ids[]=1&ids[]=2&ids[]=3
  13527. value.forEach(function (_value) {
  13528. _result.push("".concat(key, "[]=").concat(_value));
  13529. });
  13530. break;
  13531. case 'repeat':
  13532. // 结果: ids=1&ids=2&ids=3
  13533. value.forEach(function (_value) {
  13534. _result.push("".concat(key, "=").concat(_value));
  13535. });
  13536. break;
  13537. case 'comma':
  13538. // 结果: ids=1,2,3
  13539. var commaStr = '';
  13540. value.forEach(function (_value) {
  13541. commaStr += (commaStr ? ',' : '') + _value;
  13542. });
  13543. _result.push("".concat(key, "=").concat(commaStr));
  13544. break;
  13545. default:
  13546. value.forEach(function (_value) {
  13547. _result.push("".concat(key, "[]=").concat(_value));
  13548. });
  13549. }
  13550. } else {
  13551. _result.push("".concat(key, "=").concat(value));
  13552. }
  13553. };
  13554. for (var key in data) {
  13555. var _ret = _loop(key);
  13556. if (_ret === "continue") continue;
  13557. }
  13558. return _result.length ? prefix + _result.join('&') : '';
  13559. }
  13560. /**
  13561. * 显示消息提示框
  13562. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13563. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13564. */
  13565. function toast(title) {
  13566. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13567. uni.showToast({
  13568. title: String(title),
  13569. icon: 'none',
  13570. duration: duration
  13571. });
  13572. }
  13573. /**
  13574. * @description 根据主题type值,获取对应的图标
  13575. * @param {String} type 主题名称,primary|info|error|warning|success
  13576. * @param {boolean} fill 是否使用fill填充实体的图标
  13577. */
  13578. function type2icon() {
  13579. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13580. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13581. // 如果非预置值,默认为success
  13582. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13583. var iconName = '';
  13584. // 目前(2019-12-12),info和primary使用同一个图标
  13585. switch (type) {
  13586. case 'primary':
  13587. iconName = 'info-circle';
  13588. break;
  13589. case 'info':
  13590. iconName = 'info-circle';
  13591. break;
  13592. case 'error':
  13593. iconName = 'close-circle';
  13594. break;
  13595. case 'warning':
  13596. iconName = 'error-circle';
  13597. break;
  13598. case 'success':
  13599. iconName = 'checkmark-circle';
  13600. break;
  13601. default:
  13602. iconName = 'checkmark-circle';
  13603. }
  13604. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13605. if (fill) iconName += '-fill';
  13606. return iconName;
  13607. }
  13608. /**
  13609. * @description 数字格式化
  13610. * @param {number|string} number 要格式化的数字
  13611. * @param {number} decimals 保留几位小数
  13612. * @param {string} decimalPoint 小数点符号
  13613. * @param {string} thousandsSeparator 千分位符号
  13614. * @returns {string} 格式化后的数字
  13615. */
  13616. function priceFormat(number) {
  13617. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13618. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13619. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13620. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13621. var n = !isFinite(+number) ? 0 : +number;
  13622. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13623. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13624. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13625. var s = '';
  13626. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13627. var re = /(-?\d+)(\d{3})/;
  13628. while (re.test(s[0])) {
  13629. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13630. }
  13631. if ((s[1] || '').length < prec) {
  13632. s[1] = s[1] || '';
  13633. s[1] += new Array(prec - s[1].length + 1).join('0');
  13634. }
  13635. return s.join(dec);
  13636. }
  13637. /**
  13638. * @description 获取duration值
  13639. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13640. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13641. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13642. * @param {boolean} unit 提示: 如果是false 默认返回number
  13643. * @return {string|number}
  13644. */
  13645. function getDuration(value) {
  13646. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13647. var valueNum = parseInt(value);
  13648. if (unit) {
  13649. if (/s$/.test(value)) return value;
  13650. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13651. }
  13652. if (/ms$/.test(value)) return valueNum;
  13653. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13654. return valueNum;
  13655. }
  13656. /**
  13657. * @description 日期的月或日补零操作
  13658. * @param {String} value 需要补零的值
  13659. */
  13660. function padZero(value) {
  13661. return "00".concat(value).slice(-2);
  13662. }
  13663. /**
  13664. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13665. * @param {*} instance
  13666. * @param {*} event
  13667. */
  13668. function formValidate(instance, event) {
  13669. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13670. var form = uni.$u.$parent.call(instance, 'u-form');
  13671. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13672. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13673. if (formItem && form) {
  13674. form.validateField(formItem.prop, function () {}, event);
  13675. }
  13676. }
  13677. /**
  13678. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13679. * @param {object} obj 对象
  13680. * @param {string} key 需要获取的属性字段
  13681. * @returns {*}
  13682. */
  13683. function getProperty(obj, key) {
  13684. if (!obj) {
  13685. return;
  13686. }
  13687. if (typeof key !== 'string' || key === '') {
  13688. return '';
  13689. }
  13690. if (key.indexOf('.') !== -1) {
  13691. var keys = key.split('.');
  13692. var firstObj = obj[keys[0]] || {};
  13693. for (var i = 1; i < keys.length; i++) {
  13694. if (firstObj) {
  13695. firstObj = firstObj[keys[i]];
  13696. }
  13697. }
  13698. return firstObj;
  13699. }
  13700. return obj[key];
  13701. }
  13702. /**
  13703. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13704. * @param {object} obj 对象
  13705. * @param {string} key 需要设置的属性
  13706. * @param {string} value 设置的值
  13707. */
  13708. function setProperty(obj, key, value) {
  13709. if (!obj) {
  13710. return;
  13711. }
  13712. // 递归赋值
  13713. var inFn = function inFn(_obj, keys, v) {
  13714. // 最后一个属性key
  13715. if (keys.length === 1) {
  13716. _obj[keys[0]] = v;
  13717. return;
  13718. }
  13719. // 0~length-1个key
  13720. while (keys.length > 1) {
  13721. var k = keys[0];
  13722. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  13723. _obj[k] = {};
  13724. }
  13725. var _key = keys.shift();
  13726. // 自调用判断是否存在属性,不存在则自动创建对象
  13727. inFn(_obj[k], keys, v);
  13728. }
  13729. };
  13730. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  13731. // 支持多层级赋值操作
  13732. var keys = key.split('.');
  13733. inFn(obj, keys, value);
  13734. } else {
  13735. obj[key] = value;
  13736. }
  13737. }
  13738. /**
  13739. * @description 获取当前页面路径
  13740. */
  13741. function page() {
  13742. var _pages$route, _pages;
  13743. var pages = getCurrentPages();
  13744. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  13745. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  13746. }
  13747. /**
  13748. * @description 获取当前路由栈实例数组
  13749. */
  13750. function pages() {
  13751. var pages = getCurrentPages();
  13752. return pages;
  13753. }
  13754. /**
  13755. * 获取页面历史栈指定层实例
  13756. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  13757. */
  13758. function getHistoryPage() {
  13759. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13760. var pages = getCurrentPages();
  13761. var len = pages.length;
  13762. return pages[len - 1 + back];
  13763. }
  13764. /**
  13765. * @description 修改uView内置属性值
  13766. * @param {object} props 修改内置props属性
  13767. * @param {object} config 修改内置config属性
  13768. * @param {object} color 修改内置color属性
  13769. * @param {object} zIndex 修改内置zIndex属性
  13770. */
  13771. function setConfig(_ref5) {
  13772. var _ref5$props = _ref5.props,
  13773. props = _ref5$props === void 0 ? {} : _ref5$props,
  13774. _ref5$config = _ref5.config,
  13775. config = _ref5$config === void 0 ? {} : _ref5$config,
  13776. _ref5$color = _ref5.color,
  13777. color = _ref5$color === void 0 ? {} : _ref5$color,
  13778. _ref5$zIndex = _ref5.zIndex,
  13779. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  13780. var deepMerge = uni.$u.deepMerge;
  13781. uni.$u.config = deepMerge(uni.$u.config, config);
  13782. uni.$u.props = deepMerge(uni.$u.props, props);
  13783. uni.$u.color = deepMerge(uni.$u.color, color);
  13784. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  13785. }
  13786. var _default = {
  13787. range: range,
  13788. getPx: getPx,
  13789. sleep: sleep,
  13790. os: os,
  13791. sys: sys,
  13792. random: random,
  13793. guid: guid,
  13794. $parent: $parent,
  13795. addStyle: addStyle,
  13796. addUnit: addUnit,
  13797. deepClone: deepClone,
  13798. deepMerge: deepMerge,
  13799. error: error,
  13800. randomArray: randomArray,
  13801. timeFormat: timeFormat,
  13802. timeFrom: timeFrom,
  13803. trim: trim,
  13804. queryParams: queryParams,
  13805. toast: toast,
  13806. type2icon: type2icon,
  13807. priceFormat: priceFormat,
  13808. getDuration: getDuration,
  13809. padZero: padZero,
  13810. formValidate: formValidate,
  13811. getProperty: getProperty,
  13812. setProperty: setProperty,
  13813. page: page,
  13814. pages: pages,
  13815. getHistoryPage: getHistoryPage,
  13816. setConfig: setConfig
  13817. };
  13818. exports.default = _default;
  13819. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  13820. /***/ }),
  13821. /* 63 */
  13822. /*!************************************************************************!*\
  13823. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/function/digit.js ***!
  13824. \************************************************************************/
  13825. /*! no static exports found */
  13826. /***/ (function(module, exports, __webpack_require__) {
  13827. "use strict";
  13828. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  13829. Object.defineProperty(exports, "__esModule", {
  13830. value: true
  13831. });
  13832. exports.default = void 0;
  13833. exports.divide = divide;
  13834. exports.enableBoundaryChecking = enableBoundaryChecking;
  13835. exports.minus = minus;
  13836. exports.plus = plus;
  13837. exports.round = round;
  13838. exports.times = times;
  13839. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 64));
  13840. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  13841. /**
  13842. * 把错误的数据转正
  13843. * @private
  13844. * @example strip(0.09999999999999998)=0.1
  13845. */
  13846. function strip(num) {
  13847. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  13848. return +parseFloat(Number(num).toPrecision(precision));
  13849. }
  13850. /**
  13851. * Return digits length of a number
  13852. * @private
  13853. * @param {*number} num Input number
  13854. */
  13855. function digitLength(num) {
  13856. // Get digit length of e
  13857. var eSplit = num.toString().split(/[eE]/);
  13858. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  13859. return len > 0 ? len : 0;
  13860. }
  13861. /**
  13862. * 把小数转成整数,如果是小数则放大成整数
  13863. * @private
  13864. * @param {*number} num 输入数
  13865. */
  13866. function float2Fixed(num) {
  13867. if (num.toString().indexOf('e') === -1) {
  13868. return Number(num.toString().replace('.', ''));
  13869. }
  13870. var dLen = digitLength(num);
  13871. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  13872. }
  13873. /**
  13874. * 检测数字是否越界,如果越界给出提示
  13875. * @private
  13876. * @param {*number} num 输入数
  13877. */
  13878. function checkBoundary(num) {
  13879. if (_boundaryCheckingState) {
  13880. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  13881. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  13882. }
  13883. }
  13884. }
  13885. /**
  13886. * 把递归操作扁平迭代化
  13887. * @param {number[]} arr 要操作的数字数组
  13888. * @param {function} operation 迭代操作
  13889. * @private
  13890. */
  13891. function iteratorOperation(arr, operation) {
  13892. var _arr = (0, _toArray2.default)(arr),
  13893. num1 = _arr[0],
  13894. num2 = _arr[1],
  13895. others = _arr.slice(2);
  13896. var res = operation(num1, num2);
  13897. others.forEach(function (num) {
  13898. res = operation(res, num);
  13899. });
  13900. return res;
  13901. }
  13902. /**
  13903. * 高精度乘法
  13904. * @export
  13905. */
  13906. function times() {
  13907. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  13908. nums[_key] = arguments[_key];
  13909. }
  13910. if (nums.length > 2) {
  13911. return iteratorOperation(nums, times);
  13912. }
  13913. var num1 = nums[0],
  13914. num2 = nums[1];
  13915. var num1Changed = float2Fixed(num1);
  13916. var num2Changed = float2Fixed(num2);
  13917. var baseNum = digitLength(num1) + digitLength(num2);
  13918. var leftValue = num1Changed * num2Changed;
  13919. checkBoundary(leftValue);
  13920. return leftValue / Math.pow(10, baseNum);
  13921. }
  13922. /**
  13923. * 高精度加法
  13924. * @export
  13925. */
  13926. function plus() {
  13927. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  13928. nums[_key2] = arguments[_key2];
  13929. }
  13930. if (nums.length > 2) {
  13931. return iteratorOperation(nums, plus);
  13932. }
  13933. var num1 = nums[0],
  13934. num2 = nums[1];
  13935. // 取最大的小数位
  13936. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13937. // 把小数都转为整数然后再计算
  13938. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  13939. }
  13940. /**
  13941. * 高精度减法
  13942. * @export
  13943. */
  13944. function minus() {
  13945. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  13946. nums[_key3] = arguments[_key3];
  13947. }
  13948. if (nums.length > 2) {
  13949. return iteratorOperation(nums, minus);
  13950. }
  13951. var num1 = nums[0],
  13952. num2 = nums[1];
  13953. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  13954. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  13955. }
  13956. /**
  13957. * 高精度除法
  13958. * @export
  13959. */
  13960. function divide() {
  13961. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  13962. nums[_key4] = arguments[_key4];
  13963. }
  13964. if (nums.length > 2) {
  13965. return iteratorOperation(nums, divide);
  13966. }
  13967. var num1 = nums[0],
  13968. num2 = nums[1];
  13969. var num1Changed = float2Fixed(num1);
  13970. var num2Changed = float2Fixed(num2);
  13971. checkBoundary(num1Changed);
  13972. checkBoundary(num2Changed);
  13973. // 重要,这里必须用strip进行修正
  13974. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  13975. }
  13976. /**
  13977. * 四舍五入
  13978. * @export
  13979. */
  13980. function round(num, ratio) {
  13981. var base = Math.pow(10, ratio);
  13982. var result = divide(Math.round(Math.abs(times(num, base))), base);
  13983. if (num < 0 && result !== 0) {
  13984. result = times(result, -1);
  13985. }
  13986. // 位数不足则补0
  13987. return result;
  13988. }
  13989. /**
  13990. * 是否进行边界检查,默认开启
  13991. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  13992. * @export
  13993. */
  13994. function enableBoundaryChecking() {
  13995. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  13996. _boundaryCheckingState = flag;
  13997. }
  13998. var _default = {
  13999. times: times,
  14000. plus: plus,
  14001. minus: minus,
  14002. divide: divide,
  14003. round: round,
  14004. enableBoundaryChecking: enableBoundaryChecking
  14005. };
  14006. exports.default = _default;
  14007. /***/ }),
  14008. /* 64 */
  14009. /*!********************************************************!*\
  14010. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14011. \********************************************************/
  14012. /*! no static exports found */
  14013. /***/ (function(module, exports, __webpack_require__) {
  14014. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 6);
  14015. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 20);
  14016. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 8);
  14017. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 10);
  14018. function _toArray(arr) {
  14019. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14020. }
  14021. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14022. /***/ }),
  14023. /* 65 */
  14024. /*!***********************************************************************!*\
  14025. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/config.js ***!
  14026. \***********************************************************************/
  14027. /*! no static exports found */
  14028. /***/ (function(module, exports, __webpack_require__) {
  14029. "use strict";
  14030. Object.defineProperty(exports, "__esModule", {
  14031. value: true
  14032. });
  14033. exports.default = void 0;
  14034. // 此版本发布于2024-03-17
  14035. var version = '2.0.37';
  14036. // 开发环境才提示,生产环境不会提示
  14037. if (true) {
  14038. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14039. }
  14040. var _default = {
  14041. v: version,
  14042. version: version,
  14043. // 主题名称
  14044. type: ['primary', 'success', 'info', 'error', 'warning'],
  14045. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14046. color: {
  14047. 'u-primary': '#2979ff',
  14048. 'u-warning': '#ff9900',
  14049. 'u-success': '#19be6b',
  14050. 'u-error': '#fa3534',
  14051. 'u-info': '#909399',
  14052. 'u-main-color': '#303133',
  14053. 'u-content-color': '#606266',
  14054. 'u-tips-color': '#909399',
  14055. 'u-light-color': '#c0c4cc'
  14056. },
  14057. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14058. unit: 'px'
  14059. };
  14060. exports.default = _default;
  14061. /***/ }),
  14062. /* 66 */
  14063. /*!**********************************************************************!*\
  14064. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props.js ***!
  14065. \**********************************************************************/
  14066. /*! no static exports found */
  14067. /***/ (function(module, exports, __webpack_require__) {
  14068. "use strict";
  14069. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  14070. Object.defineProperty(exports, "__esModule", {
  14071. value: true
  14072. });
  14073. exports.default = void 0;
  14074. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  14075. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 65));
  14076. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 67));
  14077. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 68));
  14078. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 69));
  14079. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 70));
  14080. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 71));
  14081. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 72));
  14082. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 73));
  14083. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 74));
  14084. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 75));
  14085. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 76));
  14086. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 77));
  14087. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 78));
  14088. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 79));
  14089. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 80));
  14090. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 81));
  14091. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 82));
  14092. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 83));
  14093. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 84));
  14094. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 85));
  14095. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 86));
  14096. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 87));
  14097. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 88));
  14098. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 89));
  14099. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 90));
  14100. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 91));
  14101. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 92));
  14102. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 93));
  14103. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 94));
  14104. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 95));
  14105. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 96));
  14106. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 97));
  14107. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 98));
  14108. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 99));
  14109. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 100));
  14110. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 101));
  14111. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 102));
  14112. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 103));
  14113. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 104));
  14114. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 105));
  14115. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 106));
  14116. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 107));
  14117. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 108));
  14118. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 109));
  14119. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 110));
  14120. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 111));
  14121. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 112));
  14122. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 113));
  14123. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 115));
  14124. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 116));
  14125. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 117));
  14126. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 118));
  14127. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 119));
  14128. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 120));
  14129. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 121));
  14130. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 122));
  14131. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 123));
  14132. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 124));
  14133. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 125));
  14134. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 126));
  14135. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 127));
  14136. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 128));
  14137. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 129));
  14138. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 130));
  14139. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 131));
  14140. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 132));
  14141. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 133));
  14142. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 134));
  14143. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 135));
  14144. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 136));
  14145. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 137));
  14146. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 138));
  14147. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 139));
  14148. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 140));
  14149. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 141));
  14150. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 142));
  14151. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 143));
  14152. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 144));
  14153. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 145));
  14154. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 146));
  14155. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 147));
  14156. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 148));
  14157. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 149));
  14158. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 150));
  14159. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 151));
  14160. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 152));
  14161. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 153));
  14162. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 154));
  14163. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 155));
  14164. 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; }
  14165. 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; }
  14166. var color = _config.default.color;
  14167. var _default = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _actionSheet.default), _album.default), _alert.default), _avatar.default), _avatarGroup.default), _backtop.default), _badge.default), _button.default), _calendar.default), _carKeyboard.default), _cell.default), _cellGroup.default), _checkbox.default), _checkboxGroup.default), _circleProgress.default), _code.default), _codeInput.default), _col.default), _collapse.default), _collapseItem.default), _columnNotice.default), _countDown.default), _countTo.default), _datetimePicker.default), _divider.default), _empty.default), _form.default), _formItem.default), _gap.default), _grid.default), _gridItem.default), _icon.default), _image.default), _indexAnchor.default), _indexList.default), _input.default), _keyboard.default), _line.default), _lineProgress.default), _link.default), _list.default), _listItem.default), _loadingIcon.default), _loadingPage.default), _loadmore.default), _modal.default), _navbar.default), _noNetwork.default), _noticeBar.default), _notify.default), _numberBox.default), _numberKeyboard.default), _overlay.default), _parse.default), _picker.default), _popup.default), _radio.default), _radioGroup.default), _rate.default), _readMore.default), _row.default), _rowNotice.default), _scrollList.default), _search.default), _section.default), _skeleton.default), _slider.default), _statusBar.default), _steps.default), _stepsItem.default), _sticky.default), _subsection.default), _swipeAction.default), _swipeActionItem.default), _swiper.default), _swipterIndicator.default), _switch2.default), _tabbar.default), _tabbarItem.default), _tabs.default), _tag.default), _text.default), _textarea.default), _toast.default), _toolbar.default), _tooltip.default), _transition.default), _upload.default);
  14168. exports.default = _default;
  14169. /***/ }),
  14170. /* 67 */
  14171. /*!**********************************************************************************!*\
  14172. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/actionSheet.js ***!
  14173. \**********************************************************************************/
  14174. /*! no static exports found */
  14175. /***/ (function(module, exports, __webpack_require__) {
  14176. "use strict";
  14177. Object.defineProperty(exports, "__esModule", {
  14178. value: true
  14179. });
  14180. exports.default = void 0;
  14181. /*
  14182. * @Author : LQ
  14183. * @Description :
  14184. * @version : 1.0
  14185. * @Date : 2021-08-20 16:44:21
  14186. * @LastAuthor : LQ
  14187. * @lastTime : 2021-08-20 16:44:35
  14188. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14189. */
  14190. var _default = {
  14191. // action-sheet组件
  14192. actionSheet: {
  14193. show: false,
  14194. title: '',
  14195. description: '',
  14196. actions: function actions() {
  14197. return [];
  14198. },
  14199. index: '',
  14200. cancelText: '',
  14201. closeOnClickAction: true,
  14202. safeAreaInsetBottom: true,
  14203. openType: '',
  14204. closeOnClickOverlay: true,
  14205. round: 0
  14206. }
  14207. };
  14208. exports.default = _default;
  14209. /***/ }),
  14210. /* 68 */
  14211. /*!****************************************************************************!*\
  14212. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/album.js ***!
  14213. \****************************************************************************/
  14214. /*! no static exports found */
  14215. /***/ (function(module, exports, __webpack_require__) {
  14216. "use strict";
  14217. Object.defineProperty(exports, "__esModule", {
  14218. value: true
  14219. });
  14220. exports.default = void 0;
  14221. /*
  14222. * @Author : LQ
  14223. * @Description :
  14224. * @version : 1.0
  14225. * @Date : 2021-08-20 16:44:21
  14226. * @LastAuthor : LQ
  14227. * @lastTime : 2021-08-20 16:47:24
  14228. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14229. */
  14230. var _default = {
  14231. // album 组件
  14232. album: {
  14233. urls: function urls() {
  14234. return [];
  14235. },
  14236. keyName: '',
  14237. singleSize: 180,
  14238. multipleSize: 70,
  14239. space: 6,
  14240. singleMode: 'scaleToFill',
  14241. multipleMode: 'aspectFill',
  14242. maxCount: 9,
  14243. previewFullImage: true,
  14244. rowCount: 3,
  14245. showMore: true
  14246. }
  14247. };
  14248. exports.default = _default;
  14249. /***/ }),
  14250. /* 69 */
  14251. /*!****************************************************************************!*\
  14252. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/alert.js ***!
  14253. \****************************************************************************/
  14254. /*! no static exports found */
  14255. /***/ (function(module, exports, __webpack_require__) {
  14256. "use strict";
  14257. Object.defineProperty(exports, "__esModule", {
  14258. value: true
  14259. });
  14260. exports.default = void 0;
  14261. /*
  14262. * @Author : LQ
  14263. * @Description :
  14264. * @version : 1.0
  14265. * @Date : 2021-08-20 16:44:21
  14266. * @LastAuthor : LQ
  14267. * @lastTime : 2021-08-20 16:48:53
  14268. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14269. */
  14270. var _default = {
  14271. // alert警告组件
  14272. alert: {
  14273. title: '',
  14274. type: 'warning',
  14275. description: '',
  14276. closable: false,
  14277. showIcon: false,
  14278. effect: 'light',
  14279. center: false,
  14280. fontSize: 14
  14281. }
  14282. };
  14283. exports.default = _default;
  14284. /***/ }),
  14285. /* 70 */
  14286. /*!*****************************************************************************!*\
  14287. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/avatar.js ***!
  14288. \*****************************************************************************/
  14289. /*! no static exports found */
  14290. /***/ (function(module, exports, __webpack_require__) {
  14291. "use strict";
  14292. Object.defineProperty(exports, "__esModule", {
  14293. value: true
  14294. });
  14295. exports.default = void 0;
  14296. /*
  14297. * @Author : LQ
  14298. * @Description :
  14299. * @version : 1.0
  14300. * @Date : 2021-08-20 16:44:21
  14301. * @LastAuthor : LQ
  14302. * @lastTime : 2021-08-20 16:49:22
  14303. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14304. */
  14305. var _default = {
  14306. // avatar 组件
  14307. avatar: {
  14308. src: '',
  14309. shape: 'circle',
  14310. size: 40,
  14311. mode: 'scaleToFill',
  14312. text: '',
  14313. bgColor: '#c0c4cc',
  14314. color: '#ffffff',
  14315. fontSize: 18,
  14316. icon: '',
  14317. mpAvatar: false,
  14318. randomBgColor: false,
  14319. defaultUrl: '',
  14320. colorIndex: '',
  14321. name: ''
  14322. }
  14323. };
  14324. exports.default = _default;
  14325. /***/ }),
  14326. /* 71 */
  14327. /*!**********************************************************************************!*\
  14328. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/avatarGroup.js ***!
  14329. \**********************************************************************************/
  14330. /*! no static exports found */
  14331. /***/ (function(module, exports, __webpack_require__) {
  14332. "use strict";
  14333. Object.defineProperty(exports, "__esModule", {
  14334. value: true
  14335. });
  14336. exports.default = void 0;
  14337. /*
  14338. * @Author : LQ
  14339. * @Description :
  14340. * @version : 1.0
  14341. * @Date : 2021-08-20 16:44:21
  14342. * @LastAuthor : LQ
  14343. * @lastTime : 2021-08-20 16:49:55
  14344. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14345. */
  14346. var _default = {
  14347. // avatarGroup 组件
  14348. avatarGroup: {
  14349. urls: function urls() {
  14350. return [];
  14351. },
  14352. maxCount: 5,
  14353. shape: 'circle',
  14354. mode: 'scaleToFill',
  14355. showMore: true,
  14356. size: 40,
  14357. keyName: '',
  14358. gap: 0.5,
  14359. extraValue: 0
  14360. }
  14361. };
  14362. exports.default = _default;
  14363. /***/ }),
  14364. /* 72 */
  14365. /*!******************************************************************************!*\
  14366. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/backtop.js ***!
  14367. \******************************************************************************/
  14368. /*! no static exports found */
  14369. /***/ (function(module, exports, __webpack_require__) {
  14370. "use strict";
  14371. Object.defineProperty(exports, "__esModule", {
  14372. value: true
  14373. });
  14374. exports.default = void 0;
  14375. /*
  14376. * @Author : LQ
  14377. * @Description :
  14378. * @version : 1.0
  14379. * @Date : 2021-08-20 16:44:21
  14380. * @LastAuthor : LQ
  14381. * @lastTime : 2021-08-20 16:50:18
  14382. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14383. */
  14384. var _default = {
  14385. // backtop组件
  14386. backtop: {
  14387. mode: 'circle',
  14388. icon: 'arrow-upward',
  14389. text: '',
  14390. duration: 100,
  14391. scrollTop: 0,
  14392. top: 400,
  14393. bottom: 100,
  14394. right: 20,
  14395. zIndex: 9,
  14396. iconStyle: function iconStyle() {
  14397. return {
  14398. color: '#909399',
  14399. fontSize: '19px'
  14400. };
  14401. }
  14402. }
  14403. };
  14404. exports.default = _default;
  14405. /***/ }),
  14406. /* 73 */
  14407. /*!****************************************************************************!*\
  14408. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/badge.js ***!
  14409. \****************************************************************************/
  14410. /*! no static exports found */
  14411. /***/ (function(module, exports, __webpack_require__) {
  14412. "use strict";
  14413. Object.defineProperty(exports, "__esModule", {
  14414. value: true
  14415. });
  14416. exports.default = void 0;
  14417. /*
  14418. * @Author : LQ
  14419. * @Description :
  14420. * @version : 1.0
  14421. * @Date : 2021-08-20 16:44:21
  14422. * @LastAuthor : LQ
  14423. * @lastTime : 2021-08-23 19:51:50
  14424. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14425. */
  14426. var _default = {
  14427. // 徽标数组件
  14428. badge: {
  14429. isDot: false,
  14430. value: '',
  14431. show: true,
  14432. max: 999,
  14433. type: 'error',
  14434. showZero: false,
  14435. bgColor: null,
  14436. color: null,
  14437. shape: 'circle',
  14438. numberType: 'overflow',
  14439. offset: function offset() {
  14440. return [];
  14441. },
  14442. inverted: false,
  14443. absolute: false
  14444. }
  14445. };
  14446. exports.default = _default;
  14447. /***/ }),
  14448. /* 74 */
  14449. /*!*****************************************************************************!*\
  14450. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/button.js ***!
  14451. \*****************************************************************************/
  14452. /*! no static exports found */
  14453. /***/ (function(module, exports, __webpack_require__) {
  14454. "use strict";
  14455. Object.defineProperty(exports, "__esModule", {
  14456. value: true
  14457. });
  14458. exports.default = void 0;
  14459. /*
  14460. * @Author : LQ
  14461. * @Description :
  14462. * @version : 1.0
  14463. * @Date : 2021-08-20 16:44:21
  14464. * @LastAuthor : LQ
  14465. * @lastTime : 2021-08-20 16:51:27
  14466. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14467. */
  14468. var _default = {
  14469. // button组件
  14470. button: {
  14471. hairline: false,
  14472. type: 'info',
  14473. size: 'normal',
  14474. shape: 'square',
  14475. plain: false,
  14476. disabled: false,
  14477. loading: false,
  14478. loadingText: '',
  14479. loadingMode: 'spinner',
  14480. loadingSize: 15,
  14481. openType: '',
  14482. formType: '',
  14483. appParameter: '',
  14484. hoverStopPropagation: true,
  14485. lang: 'en',
  14486. sessionFrom: '',
  14487. sendMessageTitle: '',
  14488. sendMessagePath: '',
  14489. sendMessageImg: '',
  14490. showMessageCard: false,
  14491. dataName: '',
  14492. throttleTime: 0,
  14493. hoverStartTime: 0,
  14494. hoverStayTime: 200,
  14495. text: '',
  14496. icon: '',
  14497. iconColor: '',
  14498. color: ''
  14499. }
  14500. };
  14501. exports.default = _default;
  14502. /***/ }),
  14503. /* 75 */
  14504. /*!*******************************************************************************!*\
  14505. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/calendar.js ***!
  14506. \*******************************************************************************/
  14507. /*! no static exports found */
  14508. /***/ (function(module, exports, __webpack_require__) {
  14509. "use strict";
  14510. Object.defineProperty(exports, "__esModule", {
  14511. value: true
  14512. });
  14513. exports.default = void 0;
  14514. /*
  14515. * @Author : LQ
  14516. * @Description :
  14517. * @version : 1.0
  14518. * @Date : 2021-08-20 16:44:21
  14519. * @LastAuthor : LQ
  14520. * @lastTime : 2021-08-20 16:52:43
  14521. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14522. */
  14523. var _default = {
  14524. // calendar 组件
  14525. calendar: {
  14526. title: '日期选择',
  14527. showTitle: true,
  14528. showSubtitle: true,
  14529. mode: 'single',
  14530. startText: '开始',
  14531. endText: '结束',
  14532. customList: function customList() {
  14533. return [];
  14534. },
  14535. color: '#3c9cff',
  14536. minDate: 0,
  14537. maxDate: 0,
  14538. defaultDate: null,
  14539. maxCount: Number.MAX_SAFE_INTEGER,
  14540. // Infinity
  14541. rowHeight: 56,
  14542. formatter: null,
  14543. showLunar: false,
  14544. showMark: true,
  14545. confirmText: '确定',
  14546. confirmDisabledText: '确定',
  14547. show: false,
  14548. closeOnClickOverlay: false,
  14549. readonly: false,
  14550. showConfirm: true,
  14551. maxRange: Number.MAX_SAFE_INTEGER,
  14552. // Infinity
  14553. rangePrompt: '',
  14554. showRangePrompt: true,
  14555. allowSameDay: false,
  14556. round: 0,
  14557. monthNum: 3
  14558. }
  14559. };
  14560. exports.default = _default;
  14561. /***/ }),
  14562. /* 76 */
  14563. /*!**********************************************************************************!*\
  14564. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/carKeyboard.js ***!
  14565. \**********************************************************************************/
  14566. /*! no static exports found */
  14567. /***/ (function(module, exports, __webpack_require__) {
  14568. "use strict";
  14569. Object.defineProperty(exports, "__esModule", {
  14570. value: true
  14571. });
  14572. exports.default = void 0;
  14573. /*
  14574. * @Author : LQ
  14575. * @Description :
  14576. * @version : 1.0
  14577. * @Date : 2021-08-20 16:44:21
  14578. * @LastAuthor : LQ
  14579. * @lastTime : 2021-08-20 16:53:20
  14580. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14581. */
  14582. var _default = {
  14583. // 车牌号键盘
  14584. carKeyboard: {
  14585. random: false
  14586. }
  14587. };
  14588. exports.default = _default;
  14589. /***/ }),
  14590. /* 77 */
  14591. /*!***************************************************************************!*\
  14592. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/cell.js ***!
  14593. \***************************************************************************/
  14594. /*! no static exports found */
  14595. /***/ (function(module, exports, __webpack_require__) {
  14596. "use strict";
  14597. Object.defineProperty(exports, "__esModule", {
  14598. value: true
  14599. });
  14600. exports.default = void 0;
  14601. /*
  14602. * @Author : LQ
  14603. * @Description :
  14604. * @version : 1.0
  14605. * @Date : 2021-08-20 16:44:21
  14606. * @LastAuthor : LQ
  14607. * @lastTime : 2021-08-23 20:53:09
  14608. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14609. */
  14610. var _default = {
  14611. // cell组件的props
  14612. cell: {
  14613. customClass: '',
  14614. title: '',
  14615. label: '',
  14616. value: '',
  14617. icon: '',
  14618. disabled: false,
  14619. border: true,
  14620. center: false,
  14621. url: '',
  14622. linkType: 'navigateTo',
  14623. clickable: false,
  14624. isLink: false,
  14625. required: false,
  14626. arrowDirection: '',
  14627. iconStyle: {},
  14628. rightIconStyle: {},
  14629. rightIcon: 'arrow-right',
  14630. titleStyle: {},
  14631. size: '',
  14632. stop: true,
  14633. name: ''
  14634. }
  14635. };
  14636. exports.default = _default;
  14637. /***/ }),
  14638. /* 78 */
  14639. /*!********************************************************************************!*\
  14640. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/cellGroup.js ***!
  14641. \********************************************************************************/
  14642. /*! no static exports found */
  14643. /***/ (function(module, exports, __webpack_require__) {
  14644. "use strict";
  14645. Object.defineProperty(exports, "__esModule", {
  14646. value: true
  14647. });
  14648. exports.default = void 0;
  14649. /*
  14650. * @Author : LQ
  14651. * @Description :
  14652. * @version : 1.0
  14653. * @Date : 2021-08-20 16:44:21
  14654. * @LastAuthor : LQ
  14655. * @lastTime : 2021-08-20 16:54:16
  14656. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14657. */
  14658. var _default = {
  14659. // cell-group组件的props
  14660. cellGroup: {
  14661. title: '',
  14662. border: true,
  14663. customStyle: {}
  14664. }
  14665. };
  14666. exports.default = _default;
  14667. /***/ }),
  14668. /* 79 */
  14669. /*!*******************************************************************************!*\
  14670. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/checkbox.js ***!
  14671. \*******************************************************************************/
  14672. /*! no static exports found */
  14673. /***/ (function(module, exports, __webpack_require__) {
  14674. "use strict";
  14675. Object.defineProperty(exports, "__esModule", {
  14676. value: true
  14677. });
  14678. exports.default = void 0;
  14679. /*
  14680. * @Author : LQ
  14681. * @Description :
  14682. * @version : 1.0
  14683. * @Date : 2021-08-20 16:44:21
  14684. * @LastAuthor : LQ
  14685. * @lastTime : 2021-08-23 21:06:59
  14686. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14687. */
  14688. var _default = {
  14689. // checkbox组件
  14690. checkbox: {
  14691. name: '',
  14692. shape: '',
  14693. size: '',
  14694. checkbox: false,
  14695. disabled: '',
  14696. activeColor: '',
  14697. inactiveColor: '',
  14698. iconSize: '',
  14699. iconColor: '',
  14700. label: '',
  14701. labelSize: '',
  14702. labelColor: '',
  14703. labelDisabled: ''
  14704. }
  14705. };
  14706. exports.default = _default;
  14707. /***/ }),
  14708. /* 80 */
  14709. /*!************************************************************************************!*\
  14710. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/checkboxGroup.js ***!
  14711. \************************************************************************************/
  14712. /*! no static exports found */
  14713. /***/ (function(module, exports, __webpack_require__) {
  14714. "use strict";
  14715. Object.defineProperty(exports, "__esModule", {
  14716. value: true
  14717. });
  14718. exports.default = void 0;
  14719. /*
  14720. * @Author : LQ
  14721. * @Description :
  14722. * @version : 1.0
  14723. * @Date : 2021-08-20 16:44:21
  14724. * @LastAuthor : LQ
  14725. * @lastTime : 2021-08-20 16:54:47
  14726. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  14727. */
  14728. var _default = {
  14729. // checkbox-group组件
  14730. checkboxGroup: {
  14731. name: '',
  14732. value: function value() {
  14733. return [];
  14734. },
  14735. shape: 'square',
  14736. disabled: false,
  14737. activeColor: '#2979ff',
  14738. inactiveColor: '#c8c9cc',
  14739. size: 18,
  14740. placement: 'row',
  14741. labelSize: 14,
  14742. labelColor: '#303133',
  14743. labelDisabled: false,
  14744. iconColor: '#ffffff',
  14745. iconSize: 12,
  14746. iconPlacement: 'left',
  14747. borderBottom: false
  14748. }
  14749. };
  14750. exports.default = _default;
  14751. /***/ }),
  14752. /* 81 */
  14753. /*!*************************************************************************************!*\
  14754. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/circleProgress.js ***!
  14755. \*************************************************************************************/
  14756. /*! no static exports found */
  14757. /***/ (function(module, exports, __webpack_require__) {
  14758. "use strict";
  14759. Object.defineProperty(exports, "__esModule", {
  14760. value: true
  14761. });
  14762. exports.default = void 0;
  14763. /*
  14764. * @Author : LQ
  14765. * @Description :
  14766. * @version : 1.0
  14767. * @Date : 2021-08-20 16:44:21
  14768. * @LastAuthor : LQ
  14769. * @lastTime : 2021-08-20 16:55:02
  14770. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  14771. */
  14772. var _default = {
  14773. // circleProgress 组件
  14774. circleProgress: {
  14775. percentage: 30
  14776. }
  14777. };
  14778. exports.default = _default;
  14779. /***/ }),
  14780. /* 82 */
  14781. /*!***************************************************************************!*\
  14782. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/code.js ***!
  14783. \***************************************************************************/
  14784. /*! no static exports found */
  14785. /***/ (function(module, exports, __webpack_require__) {
  14786. "use strict";
  14787. Object.defineProperty(exports, "__esModule", {
  14788. value: true
  14789. });
  14790. exports.default = void 0;
  14791. /*
  14792. * @Author : LQ
  14793. * @Description :
  14794. * @version : 1.0
  14795. * @Date : 2021-08-20 16:44:21
  14796. * @LastAuthor : LQ
  14797. * @lastTime : 2021-08-20 16:55:27
  14798. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  14799. */
  14800. var _default = {
  14801. // code 组件
  14802. code: {
  14803. seconds: 60,
  14804. startText: '获取验证码',
  14805. changeText: 'X秒重新获取',
  14806. endText: '重新获取',
  14807. keepRunning: false,
  14808. uniqueKey: ''
  14809. }
  14810. };
  14811. exports.default = _default;
  14812. /***/ }),
  14813. /* 83 */
  14814. /*!********************************************************************************!*\
  14815. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/codeInput.js ***!
  14816. \********************************************************************************/
  14817. /*! no static exports found */
  14818. /***/ (function(module, exports, __webpack_require__) {
  14819. "use strict";
  14820. Object.defineProperty(exports, "__esModule", {
  14821. value: true
  14822. });
  14823. exports.default = void 0;
  14824. /*
  14825. * @Author : LQ
  14826. * @Description :
  14827. * @version : 1.0
  14828. * @Date : 2021-08-20 16:44:21
  14829. * @LastAuthor : LQ
  14830. * @lastTime : 2021-08-20 16:55:58
  14831. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  14832. */
  14833. var _default = {
  14834. // codeInput 组件
  14835. codeInput: {
  14836. adjustPosition: true,
  14837. maxlength: 6,
  14838. dot: false,
  14839. mode: 'box',
  14840. hairline: false,
  14841. space: 10,
  14842. value: '',
  14843. focus: false,
  14844. bold: false,
  14845. color: '#606266',
  14846. fontSize: 18,
  14847. size: 35,
  14848. disabledKeyboard: false,
  14849. borderColor: '#c9cacc',
  14850. disabledDot: true
  14851. }
  14852. };
  14853. exports.default = _default;
  14854. /***/ }),
  14855. /* 84 */
  14856. /*!**************************************************************************!*\
  14857. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/col.js ***!
  14858. \**************************************************************************/
  14859. /*! no static exports found */
  14860. /***/ (function(module, exports, __webpack_require__) {
  14861. "use strict";
  14862. Object.defineProperty(exports, "__esModule", {
  14863. value: true
  14864. });
  14865. exports.default = void 0;
  14866. /*
  14867. * @Author : LQ
  14868. * @Description :
  14869. * @version : 1.0
  14870. * @Date : 2021-08-20 16:44:21
  14871. * @LastAuthor : LQ
  14872. * @lastTime : 2021-08-20 16:56:12
  14873. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  14874. */
  14875. var _default = {
  14876. // col 组件
  14877. col: {
  14878. span: 12,
  14879. offset: 0,
  14880. justify: 'start',
  14881. align: 'stretch',
  14882. textAlign: 'left'
  14883. }
  14884. };
  14885. exports.default = _default;
  14886. /***/ }),
  14887. /* 85 */
  14888. /*!*******************************************************************************!*\
  14889. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/collapse.js ***!
  14890. \*******************************************************************************/
  14891. /*! no static exports found */
  14892. /***/ (function(module, exports, __webpack_require__) {
  14893. "use strict";
  14894. Object.defineProperty(exports, "__esModule", {
  14895. value: true
  14896. });
  14897. exports.default = void 0;
  14898. /*
  14899. * @Author : LQ
  14900. * @Description :
  14901. * @version : 1.0
  14902. * @Date : 2021-08-20 16:44:21
  14903. * @LastAuthor : LQ
  14904. * @lastTime : 2021-08-20 16:56:30
  14905. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  14906. */
  14907. var _default = {
  14908. // collapse 组件
  14909. collapse: {
  14910. value: null,
  14911. accordion: false,
  14912. border: true
  14913. }
  14914. };
  14915. exports.default = _default;
  14916. /***/ }),
  14917. /* 86 */
  14918. /*!***********************************************************************************!*\
  14919. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/collapseItem.js ***!
  14920. \***********************************************************************************/
  14921. /*! no static exports found */
  14922. /***/ (function(module, exports, __webpack_require__) {
  14923. "use strict";
  14924. Object.defineProperty(exports, "__esModule", {
  14925. value: true
  14926. });
  14927. exports.default = void 0;
  14928. /*
  14929. * @Author : LQ
  14930. * @Description :
  14931. * @version : 1.0
  14932. * @Date : 2021-08-20 16:44:21
  14933. * @LastAuthor : LQ
  14934. * @lastTime : 2021-08-20 16:56:42
  14935. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  14936. */
  14937. var _default = {
  14938. // collapseItem 组件
  14939. collapseItem: {
  14940. title: '',
  14941. value: '',
  14942. label: '',
  14943. disabled: false,
  14944. isLink: true,
  14945. clickable: true,
  14946. border: true,
  14947. align: 'left',
  14948. name: '',
  14949. icon: '',
  14950. duration: 300
  14951. }
  14952. };
  14953. exports.default = _default;
  14954. /***/ }),
  14955. /* 87 */
  14956. /*!***********************************************************************************!*\
  14957. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/columnNotice.js ***!
  14958. \***********************************************************************************/
  14959. /*! no static exports found */
  14960. /***/ (function(module, exports, __webpack_require__) {
  14961. "use strict";
  14962. Object.defineProperty(exports, "__esModule", {
  14963. value: true
  14964. });
  14965. exports.default = void 0;
  14966. /*
  14967. * @Author : LQ
  14968. * @Description :
  14969. * @version : 1.0
  14970. * @Date : 2021-08-20 16:44:21
  14971. * @LastAuthor : LQ
  14972. * @lastTime : 2021-08-20 16:57:16
  14973. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  14974. */
  14975. var _default = {
  14976. // columnNotice 组件
  14977. columnNotice: {
  14978. text: '',
  14979. icon: 'volume',
  14980. mode: '',
  14981. color: '#f9ae3d',
  14982. bgColor: '#fdf6ec',
  14983. fontSize: 14,
  14984. speed: 80,
  14985. step: false,
  14986. duration: 1500,
  14987. disableTouch: true
  14988. }
  14989. };
  14990. exports.default = _default;
  14991. /***/ }),
  14992. /* 88 */
  14993. /*!********************************************************************************!*\
  14994. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/countDown.js ***!
  14995. \********************************************************************************/
  14996. /*! no static exports found */
  14997. /***/ (function(module, exports, __webpack_require__) {
  14998. "use strict";
  14999. Object.defineProperty(exports, "__esModule", {
  15000. value: true
  15001. });
  15002. exports.default = void 0;
  15003. /*
  15004. * @Author : LQ
  15005. * @Description :
  15006. * @version : 1.0
  15007. * @Date : 2021-08-20 16:44:21
  15008. * @LastAuthor : LQ
  15009. * @lastTime : 2021-08-20 17:11:29
  15010. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15011. */
  15012. var _default = {
  15013. // u-count-down 计时器组件
  15014. countDown: {
  15015. time: 0,
  15016. format: 'HH:mm:ss',
  15017. autoStart: true,
  15018. millisecond: false
  15019. }
  15020. };
  15021. exports.default = _default;
  15022. /***/ }),
  15023. /* 89 */
  15024. /*!******************************************************************************!*\
  15025. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/countTo.js ***!
  15026. \******************************************************************************/
  15027. /*! no static exports found */
  15028. /***/ (function(module, exports, __webpack_require__) {
  15029. "use strict";
  15030. Object.defineProperty(exports, "__esModule", {
  15031. value: true
  15032. });
  15033. exports.default = void 0;
  15034. /*
  15035. * @Author : LQ
  15036. * @Description :
  15037. * @version : 1.0
  15038. * @Date : 2021-08-20 16:44:21
  15039. * @LastAuthor : LQ
  15040. * @lastTime : 2021-08-20 16:57:32
  15041. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15042. */
  15043. var _default = {
  15044. // countTo 组件
  15045. countTo: {
  15046. startVal: 0,
  15047. endVal: 0,
  15048. duration: 2000,
  15049. autoplay: true,
  15050. decimals: 0,
  15051. useEasing: true,
  15052. decimal: '.',
  15053. color: '#606266',
  15054. fontSize: 22,
  15055. bold: false,
  15056. separator: ''
  15057. }
  15058. };
  15059. exports.default = _default;
  15060. /***/ }),
  15061. /* 90 */
  15062. /*!*************************************************************************************!*\
  15063. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/datetimePicker.js ***!
  15064. \*************************************************************************************/
  15065. /*! no static exports found */
  15066. /***/ (function(module, exports, __webpack_require__) {
  15067. "use strict";
  15068. Object.defineProperty(exports, "__esModule", {
  15069. value: true
  15070. });
  15071. exports.default = void 0;
  15072. /*
  15073. * @Author : LQ
  15074. * @Description :
  15075. * @version : 1.0
  15076. * @Date : 2021-08-20 16:44:21
  15077. * @LastAuthor : LQ
  15078. * @lastTime : 2021-08-20 16:57:48
  15079. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15080. */
  15081. var _default = {
  15082. // datetimePicker 组件
  15083. datetimePicker: {
  15084. show: false,
  15085. showToolbar: true,
  15086. value: '',
  15087. title: '',
  15088. mode: 'datetime',
  15089. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15090. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15091. minHour: 0,
  15092. maxHour: 23,
  15093. minMinute: 0,
  15094. maxMinute: 59,
  15095. filter: null,
  15096. formatter: null,
  15097. loading: false,
  15098. itemHeight: 44,
  15099. cancelText: '取消',
  15100. confirmText: '确认',
  15101. cancelColor: '#909193',
  15102. confirmColor: '#3c9cff',
  15103. visibleItemCount: 5,
  15104. closeOnClickOverlay: false,
  15105. defaultIndex: function defaultIndex() {
  15106. return [];
  15107. }
  15108. }
  15109. };
  15110. exports.default = _default;
  15111. /***/ }),
  15112. /* 91 */
  15113. /*!******************************************************************************!*\
  15114. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/divider.js ***!
  15115. \******************************************************************************/
  15116. /*! no static exports found */
  15117. /***/ (function(module, exports, __webpack_require__) {
  15118. "use strict";
  15119. Object.defineProperty(exports, "__esModule", {
  15120. value: true
  15121. });
  15122. exports.default = void 0;
  15123. /*
  15124. * @Author : LQ
  15125. * @Description :
  15126. * @version : 1.0
  15127. * @Date : 2021-08-20 16:44:21
  15128. * @LastAuthor : LQ
  15129. * @lastTime : 2021-08-20 16:58:03
  15130. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15131. */
  15132. var _default = {
  15133. // divider组件
  15134. divider: {
  15135. dashed: false,
  15136. hairline: true,
  15137. dot: false,
  15138. textPosition: 'center',
  15139. text: '',
  15140. textSize: 14,
  15141. textColor: '#909399',
  15142. lineColor: '#dcdfe6'
  15143. }
  15144. };
  15145. exports.default = _default;
  15146. /***/ }),
  15147. /* 92 */
  15148. /*!****************************************************************************!*\
  15149. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/empty.js ***!
  15150. \****************************************************************************/
  15151. /*! no static exports found */
  15152. /***/ (function(module, exports, __webpack_require__) {
  15153. "use strict";
  15154. Object.defineProperty(exports, "__esModule", {
  15155. value: true
  15156. });
  15157. exports.default = void 0;
  15158. /*
  15159. * @Author : LQ
  15160. * @Description :
  15161. * @version : 1.0
  15162. * @Date : 2021-08-20 16:44:21
  15163. * @LastAuthor : LQ
  15164. * @lastTime : 2021-08-20 17:03:27
  15165. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15166. */
  15167. var _default = {
  15168. // empty组件
  15169. empty: {
  15170. icon: '',
  15171. text: '',
  15172. textColor: '#c0c4cc',
  15173. textSize: 14,
  15174. iconColor: '#c0c4cc',
  15175. iconSize: 90,
  15176. mode: 'data',
  15177. width: 160,
  15178. height: 160,
  15179. show: true,
  15180. marginTop: 0
  15181. }
  15182. };
  15183. exports.default = _default;
  15184. /***/ }),
  15185. /* 93 */
  15186. /*!***************************************************************************!*\
  15187. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/form.js ***!
  15188. \***************************************************************************/
  15189. /*! no static exports found */
  15190. /***/ (function(module, exports, __webpack_require__) {
  15191. "use strict";
  15192. Object.defineProperty(exports, "__esModule", {
  15193. value: true
  15194. });
  15195. exports.default = void 0;
  15196. /*
  15197. * @Author : LQ
  15198. * @Description :
  15199. * @version : 1.0
  15200. * @Date : 2021-08-20 16:44:21
  15201. * @LastAuthor : LQ
  15202. * @lastTime : 2021-08-20 17:03:49
  15203. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15204. */
  15205. var _default = {
  15206. // form 组件
  15207. form: {
  15208. model: function model() {
  15209. return {};
  15210. },
  15211. rules: function rules() {
  15212. return {};
  15213. },
  15214. errorType: 'message',
  15215. borderBottom: true,
  15216. labelPosition: 'left',
  15217. labelWidth: 45,
  15218. labelAlign: 'left',
  15219. labelStyle: function labelStyle() {
  15220. return {};
  15221. }
  15222. }
  15223. };
  15224. exports.default = _default;
  15225. /***/ }),
  15226. /* 94 */
  15227. /*!*******************************************************************************!*\
  15228. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/formItem.js ***!
  15229. \*******************************************************************************/
  15230. /*! no static exports found */
  15231. /***/ (function(module, exports, __webpack_require__) {
  15232. "use strict";
  15233. Object.defineProperty(exports, "__esModule", {
  15234. value: true
  15235. });
  15236. exports.default = void 0;
  15237. /*
  15238. * @Author : LQ
  15239. * @Description :
  15240. * @version : 1.0
  15241. * @Date : 2021-08-20 16:44:21
  15242. * @LastAuthor : LQ
  15243. * @lastTime : 2021-08-20 17:04:32
  15244. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15245. */
  15246. var _default = {
  15247. // formItem 组件
  15248. formItem: {
  15249. label: '',
  15250. prop: '',
  15251. borderBottom: '',
  15252. labelPosition: '',
  15253. labelWidth: '',
  15254. rightIcon: '',
  15255. leftIcon: '',
  15256. required: false,
  15257. leftIconStyle: ''
  15258. }
  15259. };
  15260. exports.default = _default;
  15261. /***/ }),
  15262. /* 95 */
  15263. /*!**************************************************************************!*\
  15264. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/gap.js ***!
  15265. \**************************************************************************/
  15266. /*! no static exports found */
  15267. /***/ (function(module, exports, __webpack_require__) {
  15268. "use strict";
  15269. Object.defineProperty(exports, "__esModule", {
  15270. value: true
  15271. });
  15272. exports.default = void 0;
  15273. /*
  15274. * @Author : LQ
  15275. * @Description :
  15276. * @version : 1.0
  15277. * @Date : 2021-08-20 16:44:21
  15278. * @LastAuthor : LQ
  15279. * @lastTime : 2021-08-20 17:05:25
  15280. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15281. */
  15282. var _default = {
  15283. // gap组件
  15284. gap: {
  15285. bgColor: 'transparent',
  15286. height: 20,
  15287. marginTop: 0,
  15288. marginBottom: 0,
  15289. customStyle: {}
  15290. }
  15291. };
  15292. exports.default = _default;
  15293. /***/ }),
  15294. /* 96 */
  15295. /*!***************************************************************************!*\
  15296. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/grid.js ***!
  15297. \***************************************************************************/
  15298. /*! no static exports found */
  15299. /***/ (function(module, exports, __webpack_require__) {
  15300. "use strict";
  15301. Object.defineProperty(exports, "__esModule", {
  15302. value: true
  15303. });
  15304. exports.default = void 0;
  15305. /*
  15306. * @Author : LQ
  15307. * @Description :
  15308. * @version : 1.0
  15309. * @Date : 2021-08-20 16:44:21
  15310. * @LastAuthor : LQ
  15311. * @lastTime : 2021-08-20 17:05:57
  15312. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15313. */
  15314. var _default = {
  15315. // grid组件
  15316. grid: {
  15317. col: 3,
  15318. border: false,
  15319. align: 'left'
  15320. }
  15321. };
  15322. exports.default = _default;
  15323. /***/ }),
  15324. /* 97 */
  15325. /*!*******************************************************************************!*\
  15326. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/gridItem.js ***!
  15327. \*******************************************************************************/
  15328. /*! no static exports found */
  15329. /***/ (function(module, exports, __webpack_require__) {
  15330. "use strict";
  15331. Object.defineProperty(exports, "__esModule", {
  15332. value: true
  15333. });
  15334. exports.default = void 0;
  15335. /*
  15336. * @Author : LQ
  15337. * @Description :
  15338. * @version : 1.0
  15339. * @Date : 2021-08-20 16:44:21
  15340. * @LastAuthor : LQ
  15341. * @lastTime : 2021-08-20 17:06:13
  15342. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15343. */
  15344. var _default = {
  15345. // grid-item组件
  15346. gridItem: {
  15347. name: null,
  15348. bgColor: 'transparent'
  15349. }
  15350. };
  15351. exports.default = _default;
  15352. /***/ }),
  15353. /* 98 */
  15354. /*!***************************************************************************!*\
  15355. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/icon.js ***!
  15356. \***************************************************************************/
  15357. /*! no static exports found */
  15358. /***/ (function(module, exports, __webpack_require__) {
  15359. "use strict";
  15360. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15361. Object.defineProperty(exports, "__esModule", {
  15362. value: true
  15363. });
  15364. exports.default = void 0;
  15365. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15366. /*
  15367. * @Author : LQ
  15368. * @Description :
  15369. * @version : 1.0
  15370. * @Date : 2021-08-20 16:44:21
  15371. * @LastAuthor : LQ
  15372. * @lastTime : 2021-08-20 18:00:14
  15373. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15374. */
  15375. var color = _config.default.color;
  15376. var _default = {
  15377. // icon组件
  15378. icon: {
  15379. name: '',
  15380. color: color['u-content-color'],
  15381. size: '16px',
  15382. bold: false,
  15383. index: '',
  15384. hoverClass: '',
  15385. customPrefix: 'uicon',
  15386. label: '',
  15387. labelPos: 'right',
  15388. labelSize: '15px',
  15389. labelColor: color['u-content-color'],
  15390. space: '3px',
  15391. imgMode: '',
  15392. width: '',
  15393. height: '',
  15394. top: 0,
  15395. stop: false
  15396. }
  15397. };
  15398. exports.default = _default;
  15399. /***/ }),
  15400. /* 99 */
  15401. /*!****************************************************************************!*\
  15402. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/image.js ***!
  15403. \****************************************************************************/
  15404. /*! no static exports found */
  15405. /***/ (function(module, exports, __webpack_require__) {
  15406. "use strict";
  15407. Object.defineProperty(exports, "__esModule", {
  15408. value: true
  15409. });
  15410. exports.default = void 0;
  15411. /*
  15412. * @Author : LQ
  15413. * @Description :
  15414. * @version : 1.0
  15415. * @Date : 2021-08-20 16:44:21
  15416. * @LastAuthor : LQ
  15417. * @lastTime : 2021-08-20 17:01:51
  15418. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15419. */
  15420. var _default = {
  15421. // image组件
  15422. image: {
  15423. src: '',
  15424. mode: 'aspectFill',
  15425. width: '300',
  15426. height: '225',
  15427. shape: 'square',
  15428. radius: 0,
  15429. lazyLoad: true,
  15430. showMenuByLongpress: true,
  15431. loadingIcon: 'photo',
  15432. errorIcon: 'error-circle',
  15433. showLoading: true,
  15434. showError: true,
  15435. fade: true,
  15436. webp: false,
  15437. duration: 500,
  15438. bgColor: '#f3f4f6'
  15439. }
  15440. };
  15441. exports.default = _default;
  15442. /***/ }),
  15443. /* 100 */
  15444. /*!**********************************************************************************!*\
  15445. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/indexAnchor.js ***!
  15446. \**********************************************************************************/
  15447. /*! no static exports found */
  15448. /***/ (function(module, exports, __webpack_require__) {
  15449. "use strict";
  15450. Object.defineProperty(exports, "__esModule", {
  15451. value: true
  15452. });
  15453. exports.default = void 0;
  15454. /*
  15455. * @Author : LQ
  15456. * @Description :
  15457. * @version : 1.0
  15458. * @Date : 2021-08-20 16:44:21
  15459. * @LastAuthor : LQ
  15460. * @lastTime : 2021-08-20 17:13:15
  15461. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15462. */
  15463. var _default = {
  15464. // indexAnchor 组件
  15465. indexAnchor: {
  15466. text: '',
  15467. color: '#606266',
  15468. size: 14,
  15469. bgColor: '#dedede',
  15470. height: 32
  15471. }
  15472. };
  15473. exports.default = _default;
  15474. /***/ }),
  15475. /* 101 */
  15476. /*!********************************************************************************!*\
  15477. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/indexList.js ***!
  15478. \********************************************************************************/
  15479. /*! no static exports found */
  15480. /***/ (function(module, exports, __webpack_require__) {
  15481. "use strict";
  15482. Object.defineProperty(exports, "__esModule", {
  15483. value: true
  15484. });
  15485. exports.default = void 0;
  15486. /*
  15487. * @Author : LQ
  15488. * @Description :
  15489. * @version : 1.0
  15490. * @Date : 2021-08-20 16:44:21
  15491. * @LastAuthor : LQ
  15492. * @lastTime : 2021-08-20 17:13:35
  15493. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15494. */
  15495. var _default = {
  15496. // indexList 组件
  15497. indexList: {
  15498. inactiveColor: '#606266',
  15499. activeColor: '#5677fc',
  15500. indexList: function indexList() {
  15501. return [];
  15502. },
  15503. sticky: true,
  15504. customNavHeight: 0
  15505. }
  15506. };
  15507. exports.default = _default;
  15508. /***/ }),
  15509. /* 102 */
  15510. /*!****************************************************************************!*\
  15511. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/input.js ***!
  15512. \****************************************************************************/
  15513. /*! no static exports found */
  15514. /***/ (function(module, exports, __webpack_require__) {
  15515. "use strict";
  15516. Object.defineProperty(exports, "__esModule", {
  15517. value: true
  15518. });
  15519. exports.default = void 0;
  15520. /*
  15521. * @Author : LQ
  15522. * @Description :
  15523. * @version : 1.0
  15524. * @Date : 2021-08-20 16:44:21
  15525. * @LastAuthor : LQ
  15526. * @lastTime : 2021-08-20 17:13:55
  15527. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15528. */
  15529. var _default = {
  15530. // index 组件
  15531. input: {
  15532. value: '',
  15533. type: 'text',
  15534. fixed: false,
  15535. disabled: false,
  15536. disabledColor: '#f5f7fa',
  15537. clearable: false,
  15538. password: false,
  15539. maxlength: -1,
  15540. placeholder: null,
  15541. placeholderClass: 'input-placeholder',
  15542. placeholderStyle: 'color: #c0c4cc',
  15543. showWordLimit: false,
  15544. confirmType: 'done',
  15545. confirmHold: false,
  15546. holdKeyboard: false,
  15547. focus: false,
  15548. autoBlur: false,
  15549. disableDefaultPadding: false,
  15550. cursor: -1,
  15551. cursorSpacing: 30,
  15552. selectionStart: -1,
  15553. selectionEnd: -1,
  15554. adjustPosition: true,
  15555. inputAlign: 'left',
  15556. fontSize: '15px',
  15557. color: '#303133',
  15558. prefixIcon: '',
  15559. prefixIconStyle: '',
  15560. suffixIcon: '',
  15561. suffixIconStyle: '',
  15562. border: 'surround',
  15563. readonly: false,
  15564. shape: 'square',
  15565. formatter: null
  15566. }
  15567. };
  15568. exports.default = _default;
  15569. /***/ }),
  15570. /* 103 */
  15571. /*!*******************************************************************************!*\
  15572. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/keyboard.js ***!
  15573. \*******************************************************************************/
  15574. /*! no static exports found */
  15575. /***/ (function(module, exports, __webpack_require__) {
  15576. "use strict";
  15577. Object.defineProperty(exports, "__esModule", {
  15578. value: true
  15579. });
  15580. exports.default = void 0;
  15581. /*
  15582. * @Author : LQ
  15583. * @Description :
  15584. * @version : 1.0
  15585. * @Date : 2021-08-20 16:44:21
  15586. * @LastAuthor : LQ
  15587. * @lastTime : 2021-08-20 17:07:49
  15588. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15589. */
  15590. var _default = {
  15591. // 键盘组件
  15592. keyboard: {
  15593. mode: 'number',
  15594. dotDisabled: false,
  15595. tooltip: true,
  15596. showTips: true,
  15597. tips: '',
  15598. showCancel: true,
  15599. showConfirm: true,
  15600. random: false,
  15601. safeAreaInsetBottom: true,
  15602. closeOnClickOverlay: true,
  15603. show: false,
  15604. overlay: true,
  15605. zIndex: 10075,
  15606. cancelText: '取消',
  15607. confirmText: '确定',
  15608. autoChange: false
  15609. }
  15610. };
  15611. exports.default = _default;
  15612. /***/ }),
  15613. /* 104 */
  15614. /*!***************************************************************************!*\
  15615. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/line.js ***!
  15616. \***************************************************************************/
  15617. /*! no static exports found */
  15618. /***/ (function(module, exports, __webpack_require__) {
  15619. "use strict";
  15620. Object.defineProperty(exports, "__esModule", {
  15621. value: true
  15622. });
  15623. exports.default = void 0;
  15624. /*
  15625. * @Author : LQ
  15626. * @Description :
  15627. * @version : 1.0
  15628. * @Date : 2021-08-20 16:44:21
  15629. * @LastAuthor : LQ
  15630. * @lastTime : 2021-08-20 17:04:49
  15631. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15632. */
  15633. var _default = {
  15634. // line组件
  15635. line: {
  15636. color: '#d6d7d9',
  15637. length: '100%',
  15638. direction: 'row',
  15639. hairline: true,
  15640. margin: 0,
  15641. dashed: false
  15642. }
  15643. };
  15644. exports.default = _default;
  15645. /***/ }),
  15646. /* 105 */
  15647. /*!***********************************************************************************!*\
  15648. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/lineProgress.js ***!
  15649. \***********************************************************************************/
  15650. /*! no static exports found */
  15651. /***/ (function(module, exports, __webpack_require__) {
  15652. "use strict";
  15653. Object.defineProperty(exports, "__esModule", {
  15654. value: true
  15655. });
  15656. exports.default = void 0;
  15657. /*
  15658. * @Author : LQ
  15659. * @Description :
  15660. * @version : 1.0
  15661. * @Date : 2021-08-20 16:44:21
  15662. * @LastAuthor : LQ
  15663. * @lastTime : 2021-08-20 17:14:11
  15664. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15665. */
  15666. var _default = {
  15667. // lineProgress 组件
  15668. lineProgress: {
  15669. activeColor: '#19be6b',
  15670. inactiveColor: '#ececec',
  15671. percentage: 0,
  15672. showText: true,
  15673. height: 12
  15674. }
  15675. };
  15676. exports.default = _default;
  15677. /***/ }),
  15678. /* 106 */
  15679. /*!***************************************************************************!*\
  15680. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/link.js ***!
  15681. \***************************************************************************/
  15682. /*! no static exports found */
  15683. /***/ (function(module, exports, __webpack_require__) {
  15684. "use strict";
  15685. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15686. Object.defineProperty(exports, "__esModule", {
  15687. value: true
  15688. });
  15689. exports.default = void 0;
  15690. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15691. /*
  15692. * @Author : LQ
  15693. * @Description :
  15694. * @version : 1.0
  15695. * @Date : 2021-08-20 16:44:21
  15696. * @LastAuthor : LQ
  15697. * @lastTime : 2021-08-20 17:45:36
  15698. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15699. */
  15700. var color = _config.default.color;
  15701. var _default = {
  15702. // link超链接组件props参数
  15703. link: {
  15704. color: color['u-primary'],
  15705. fontSize: 15,
  15706. underLine: false,
  15707. href: '',
  15708. mpTips: '链接已复制,请在浏览器打开',
  15709. lineColor: '',
  15710. text: ''
  15711. }
  15712. };
  15713. exports.default = _default;
  15714. /***/ }),
  15715. /* 107 */
  15716. /*!***************************************************************************!*\
  15717. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/list.js ***!
  15718. \***************************************************************************/
  15719. /*! no static exports found */
  15720. /***/ (function(module, exports, __webpack_require__) {
  15721. "use strict";
  15722. Object.defineProperty(exports, "__esModule", {
  15723. value: true
  15724. });
  15725. exports.default = void 0;
  15726. /*
  15727. * @Author : LQ
  15728. * @Description :
  15729. * @version : 1.0
  15730. * @Date : 2021-08-20 16:44:21
  15731. * @LastAuthor : LQ
  15732. * @lastTime : 2021-08-20 17:14:53
  15733. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  15734. */
  15735. var _default = {
  15736. // list 组件
  15737. list: {
  15738. showScrollbar: false,
  15739. lowerThreshold: 50,
  15740. upperThreshold: 0,
  15741. scrollTop: 0,
  15742. offsetAccuracy: 10,
  15743. enableFlex: false,
  15744. pagingEnabled: false,
  15745. scrollable: true,
  15746. scrollIntoView: '',
  15747. scrollWithAnimation: false,
  15748. enableBackToTop: false,
  15749. height: 0,
  15750. width: 0,
  15751. preLoadScreen: 1
  15752. }
  15753. };
  15754. exports.default = _default;
  15755. /***/ }),
  15756. /* 108 */
  15757. /*!*******************************************************************************!*\
  15758. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/listItem.js ***!
  15759. \*******************************************************************************/
  15760. /*! no static exports found */
  15761. /***/ (function(module, exports, __webpack_require__) {
  15762. "use strict";
  15763. Object.defineProperty(exports, "__esModule", {
  15764. value: true
  15765. });
  15766. exports.default = void 0;
  15767. /*
  15768. * @Author : LQ
  15769. * @Description :
  15770. * @version : 1.0
  15771. * @Date : 2021-08-20 16:44:21
  15772. * @LastAuthor : LQ
  15773. * @lastTime : 2021-08-20 17:15:40
  15774. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  15775. */
  15776. var _default = {
  15777. // listItem 组件
  15778. listItem: {
  15779. anchor: ''
  15780. }
  15781. };
  15782. exports.default = _default;
  15783. /***/ }),
  15784. /* 109 */
  15785. /*!**********************************************************************************!*\
  15786. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/loadingIcon.js ***!
  15787. \**********************************************************************************/
  15788. /*! no static exports found */
  15789. /***/ (function(module, exports, __webpack_require__) {
  15790. "use strict";
  15791. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15792. Object.defineProperty(exports, "__esModule", {
  15793. value: true
  15794. });
  15795. exports.default = void 0;
  15796. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15797. /*
  15798. * @Author : LQ
  15799. * @Description :
  15800. * @version : 1.0
  15801. * @Date : 2021-08-20 16:44:21
  15802. * @LastAuthor : LQ
  15803. * @lastTime : 2021-08-20 17:45:47
  15804. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  15805. */
  15806. var color = _config.default.color;
  15807. var _default = {
  15808. // loading-icon加载中图标组件
  15809. loadingIcon: {
  15810. show: true,
  15811. color: color['u-tips-color'],
  15812. textColor: color['u-tips-color'],
  15813. vertical: false,
  15814. mode: 'spinner',
  15815. size: 24,
  15816. textSize: 15,
  15817. text: '',
  15818. timingFunction: 'ease-in-out',
  15819. duration: 1200,
  15820. inactiveColor: ''
  15821. }
  15822. };
  15823. exports.default = _default;
  15824. /***/ }),
  15825. /* 110 */
  15826. /*!**********************************************************************************!*\
  15827. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/loadingPage.js ***!
  15828. \**********************************************************************************/
  15829. /*! no static exports found */
  15830. /***/ (function(module, exports, __webpack_require__) {
  15831. "use strict";
  15832. Object.defineProperty(exports, "__esModule", {
  15833. value: true
  15834. });
  15835. exports.default = void 0;
  15836. /*
  15837. * @Author : LQ
  15838. * @Description :
  15839. * @version : 1.0
  15840. * @Date : 2021-08-20 16:44:21
  15841. * @LastAuthor : LQ
  15842. * @lastTime : 2021-08-20 17:00:23
  15843. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  15844. */
  15845. var _default = {
  15846. // loading-page组件
  15847. loadingPage: {
  15848. loadingText: '正在加载',
  15849. image: '',
  15850. loadingMode: 'circle',
  15851. loading: false,
  15852. bgColor: '#ffffff',
  15853. color: '#C8C8C8',
  15854. fontSize: 19,
  15855. iconSize: 28,
  15856. loadingColor: '#C8C8C8'
  15857. }
  15858. };
  15859. exports.default = _default;
  15860. /***/ }),
  15861. /* 111 */
  15862. /*!*******************************************************************************!*\
  15863. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/loadmore.js ***!
  15864. \*******************************************************************************/
  15865. /*! no static exports found */
  15866. /***/ (function(module, exports, __webpack_require__) {
  15867. "use strict";
  15868. Object.defineProperty(exports, "__esModule", {
  15869. value: true
  15870. });
  15871. exports.default = void 0;
  15872. /*
  15873. * @Author : LQ
  15874. * @Description :
  15875. * @version : 1.0
  15876. * @Date : 2021-08-20 16:44:21
  15877. * @LastAuthor : LQ
  15878. * @lastTime : 2021-08-20 17:15:26
  15879. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  15880. */
  15881. var _default = {
  15882. // loadmore 组件
  15883. loadmore: {
  15884. status: 'loadmore',
  15885. bgColor: 'transparent',
  15886. icon: true,
  15887. fontSize: 14,
  15888. iconSize: 17,
  15889. color: '#606266',
  15890. loadingIcon: 'spinner',
  15891. loadmoreText: '加载更多',
  15892. loadingText: '正在加载...',
  15893. nomoreText: '没有更多了',
  15894. isDot: false,
  15895. iconColor: '#b7b7b7',
  15896. marginTop: 10,
  15897. marginBottom: 10,
  15898. height: 'auto',
  15899. line: false,
  15900. lineColor: '#E6E8EB',
  15901. dashed: false
  15902. }
  15903. };
  15904. exports.default = _default;
  15905. /***/ }),
  15906. /* 112 */
  15907. /*!****************************************************************************!*\
  15908. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/modal.js ***!
  15909. \****************************************************************************/
  15910. /*! no static exports found */
  15911. /***/ (function(module, exports, __webpack_require__) {
  15912. "use strict";
  15913. Object.defineProperty(exports, "__esModule", {
  15914. value: true
  15915. });
  15916. exports.default = void 0;
  15917. /*
  15918. * @Author : LQ
  15919. * @Description :
  15920. * @version : 1.0
  15921. * @Date : 2021-08-20 16:44:21
  15922. * @LastAuthor : LQ
  15923. * @lastTime : 2021-08-20 17:15:59
  15924. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  15925. */
  15926. var _default = {
  15927. // modal 组件
  15928. modal: {
  15929. show: false,
  15930. title: '',
  15931. content: '',
  15932. confirmText: '确认',
  15933. cancelText: '取消',
  15934. showConfirmButton: true,
  15935. showCancelButton: false,
  15936. confirmColor: '#2979ff',
  15937. cancelColor: '#606266',
  15938. buttonReverse: false,
  15939. zoom: true,
  15940. asyncClose: false,
  15941. closeOnClickOverlay: false,
  15942. negativeTop: 0,
  15943. width: '650rpx',
  15944. confirmButtonShape: '',
  15945. duration: 400
  15946. }
  15947. };
  15948. exports.default = _default;
  15949. /***/ }),
  15950. /* 113 */
  15951. /*!*****************************************************************************!*\
  15952. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/navbar.js ***!
  15953. \*****************************************************************************/
  15954. /*! no static exports found */
  15955. /***/ (function(module, exports, __webpack_require__) {
  15956. "use strict";
  15957. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  15958. Object.defineProperty(exports, "__esModule", {
  15959. value: true
  15960. });
  15961. exports.default = void 0;
  15962. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 114));
  15963. /*
  15964. * @Author : LQ
  15965. * @Description :
  15966. * @version : 1.0
  15967. * @Date : 2021-08-20 16:44:21
  15968. * @LastAuthor : LQ
  15969. * @lastTime : 2021-08-20 17:16:18
  15970. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  15971. */
  15972. var _default = {
  15973. // navbar 组件
  15974. navbar: {
  15975. safeAreaInsetTop: true,
  15976. placeholder: false,
  15977. fixed: true,
  15978. border: false,
  15979. leftIcon: 'arrow-left',
  15980. leftText: '',
  15981. rightText: '',
  15982. rightIcon: '',
  15983. title: '',
  15984. bgColor: '#ffffff',
  15985. titleWidth: '400rpx',
  15986. height: '44px',
  15987. leftIconSize: 20,
  15988. leftIconColor: _color.default.mainColor,
  15989. autoBack: false,
  15990. titleStyle: ''
  15991. }
  15992. };
  15993. exports.default = _default;
  15994. /***/ }),
  15995. /* 114 */
  15996. /*!**********************************************************************!*\
  15997. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/color.js ***!
  15998. \**********************************************************************/
  15999. /*! no static exports found */
  16000. /***/ (function(module, exports, __webpack_require__) {
  16001. "use strict";
  16002. Object.defineProperty(exports, "__esModule", {
  16003. value: true
  16004. });
  16005. exports.default = void 0;
  16006. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16007. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16008. var color = {
  16009. primary: '#3c9cff',
  16010. info: '#909399',
  16011. default: '#909399',
  16012. warning: '#f9ae3d',
  16013. error: '#f56c6c',
  16014. success: '#5ac725',
  16015. mainColor: '#303133',
  16016. contentColor: '#606266',
  16017. tipsColor: '#909399',
  16018. lightColor: '#c0c4cc',
  16019. borderColor: '#e4e7ed'
  16020. };
  16021. var _default = color;
  16022. exports.default = _default;
  16023. /***/ }),
  16024. /* 115 */
  16025. /*!********************************************************************************!*\
  16026. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/noNetwork.js ***!
  16027. \********************************************************************************/
  16028. /*! no static exports found */
  16029. /***/ (function(module, exports, __webpack_require__) {
  16030. "use strict";
  16031. Object.defineProperty(exports, "__esModule", {
  16032. value: true
  16033. });
  16034. exports.default = void 0;
  16035. /*
  16036. * @Author : LQ
  16037. * @Description :
  16038. * @version : 1.0
  16039. * @Date : 2021-08-20 16:44:21
  16040. * @LastAuthor : LQ
  16041. * @lastTime : 2021-08-20 17:16:39
  16042. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16043. */
  16044. var _default = {
  16045. // noNetwork
  16046. noNetwork: {
  16047. tips: '哎呀,网络信号丢失',
  16048. zIndex: '',
  16049. image: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDWDn8cSjl98PgdBviu03N+rl9/WufLEwr18uDwLdevLTF1YK3xnVZ2HI1bUxrT7z5zTuXdRP78qCyeLUKYTUI25OXbm4JPO00TBj+6I7+db8ZL3ZwMOiYdG4dA1lN9HWte2iuI2NAVPapC8O/CGPR34Ip/AZIbIMo7yX8G9QMbcS09P+2b1vf5XgdrXaPfiYns9oeLLEd8D1/B7Dp0E1jGP042pXQj7RKf546cmGzp+tv1TRf6YQD35/QO3seP3xow5IfC9QqmM23naJ0ny9ysXwgq98BWc0kVhv/Nhalbqe8kd/Fr8MOSEr3zEVWrwyO3I29hl+E9LUHGf+nAXI6sGPdd8uV2YphIKnE5IyL6bLxk7cn3bdkHHefrpvJAExMZ1uBZmqeNzXtfzUzk/m/ens7LjV7Px+8d9e1579/44l0duZtge+Np5zEEw8c2pBu9na3YvtEwmrAqNE8IZvNHsep5//yjl3r/0O8yFOXbv0QCO05gP0JGIL+fjw+uj91YeRh/Dp/PtCDM7Zpfmjvjt6Xo7hW9ycmJjaYduf7Hdf/8HTGfa3rG9rYxLSWnsloPg7fijZV8oFM2Ja2a9t6EJd7bCztvHP7us4rrdD/r3/7ct9I99jEI4cOiQ3dIg2YEFYDgOUJDFj1e8TqX7cT4kImXuQr5279A4DeBEX8ayvprU4N3rovcALot/TH13T0fXDTJn0qXk4r3k9OTm4y7a6PzjjORzOOvn1kbEqbnEprPhRzwAKzwFLHk05hv6Yd6N+o3R6beG50aPSdr3qV6IJKkVp5ITIlXOCYn4Yexr0w/DO6YXymHFlR0e5r7tsM3fxgJbI6fW1ivTeT+SsYmr54cFff+5Cu5X+hb94Merp6/J/PusGvTE6724eGJ7RpSFOkKPCUZvBPBccoHBet3Rwe13rX9tw/PjXzZ5hKvr8SfhWKkeA2REAIa4GD6p0feRdWBnvxjv2PckVhVfBf4A29uG/X2i+Ui2eYn8n8NryuDr3jPfWSFV5k44UT137eshIP2K7/64cObbheqZ6lCp+Ydt8TBO7vTM5od1+/NR4SFVhoLpKKt410lnE8LTMzo3V2dLznxLkhYgQ9obiVjEDln7mVjEodfYcpw+MAsftg/7qSDbAnb97sCSb0Yei2fqOcbovVqKNnNO8HmAE9Cv3Wp+uoWjt27HpXNqH9WTKR+kBHKqEFbvo5y3N/avfu4g23R45f3WGa1k9ZicTd0zPTf/f6O7f8dT311Jp2fHzmgJlI/N70jPPe4bEZ6Kg4qw0lqlrLiNKBiLWerpTW25PUbkPXZViW62ecHz+4d8PXojTirzwEyhq8rTwYFtRjvpX/rlwJ+iSXugPbMuyKBOHo3geRJtuT7PujcmVUCuPJlhnL/9NUqvMD2eyM5sxMaIlE4n7XML907tyNjcxHQjty4sZv66Z1xEok/xNW5n4uZSf+8sT5m++vVO58wkEu5sR09pd9w/rWyET2vReujiqygrSopn/zKZN5qMeirotKeTyolm7p/+X06Wvr51ue5Gt9BISwFjiGsLl6N6SrvylXDNTK70D4mX071pwtF88w6Jd/DG/1E1u26NOV0pQL71y3/8PJVOcHMzPTWkcCH2YGOaTTaS2RTN6f1fQvvvDK1bdnbO2JZCr1SeRfn05Pa1PTU0gXJBKW+ecnzlxvCGndhFQ1NRP8bcY1/vjS9bF1V26MwHwsVKiXa3etYVw1TNhYJ3TDjQCO42jJVMcez7J+t9YyJF37ISCEtahjGjxkGDr2DJZ31D8h5vUQJL5RPkXlUMM07u3qSGidICvkzzuSlmlZb0olrK9hD9v9JCrPC196JoPMAolFg6CV+PPj54YeyWecx8Vk2v1Q0rSfhFT18LnBmzBRyNalp5qrSuq7kiAsh4SFa7oZ9M0wzI+cPHOjZPo9V1kS1z4ICGEt4lhiCvZrSa2jol7qzPXJPk6nIGbVbWfUvcr7hO9MP97ZVXpggOu6ajplYStj7l1XvbRMXbPAbp6HzSSBlkraNknrvfVCcPt2sHYi7f3pTDb47KUbYxuvKqkKpYBXKBnV869c3WgbDEixAck0FGFFfEzJzbIsO9C1TyrcymWWsLZGIHoW2rqTzdo5dXyykz0NC8l779i5vu4zwM+eHVntGP5jqVTq/6AkVc5NZ3wNH2lVxNWZNIukMSjiNd9z0+CHp5DXAdX4SAg203w8GB5IATtODHzdK8C15kEjhXvNS9rWA11dnfcMDY9prscss48RySakrOLWqODCoIKAgkuVgsS0urtD60haeV1YYVbbtjUn6/74HXvW/11huFy3PwKzT1r797Upe3jq4sib9u9Y+wxe+vh7W1N7jx49v6ZzbffnQD4/Cj1Pfjx54XiBls6GVuTUc9mQsOIO9mPQFdkIRlz4fy5JLm2ZMOqTcJaXIqpcqnixVe+rdbZ3dbc2OT0D0wZIibHSksmklslknvx+//q3PiKnXcTQae/b+LPQ3r1t0969cOL6G7o6E09qgZegdMJBpVQ1DbKCpyUt6oPKz/4NEJalCAuZFIuEVBJd+jgLh4rvAiFqUVGkhJZMWFp3Z0obGSu/d5gSnWmavuO6h+/cvYHSobgVgoAYjrb4QPMUiGtj1/79jBMkLBwiTlMASlYzTkhWCJyTrGAyMOFkst/BoYMmuIIyGJYcMXMMdNwHPhYN1qWS1t6ZLGaKZL8yzFXTr15BooLLMugHMBRNKgW+It8y9TEcJGt4rvcRFCCEVQbFdg0Swmrxkb0+cf2XOzq73kgdFieEXF2jdEUJKQH6SVWQrNjtZDKlpTPp38U58iUbthk/Ph7sN6zg/xudSGvD4xkq6otcnnjyF0XRRTflkyC0IIJE1JG0QbqGNpMNp5xFhRTcZDNoj66988SFm5vv3LX+WkGUXLYxAuXnCW3c4XbqGs9hwjv+a9lsuN+ahOJSCoLjNDAFvVUll0p1aNPp6adTweSflEszPO48oFn+4yOTmR+6enOshKyYhzWpf/jDuuf6x2aV/qNRaPG/1d0gUXWCA0uu7GhMmkqmerEc8KOVU0lMuyFQ+Ylut562YX9Sncmf7Ojo3BDZWbGLtMkiUVXSWTFNuMqWuYG530f7+/tnGFboxsfdd9mm8XdDo9O7rg6NFq0CFqZr5DWlK9qV0fZqGvZchSuPlevB2VmG/hOV4yWm3RAQwmrhEcW64qu4ykfJho52Vp3J8quBYQooqWDKADftBd6HD+5efyoKj/zR8ew/hWXY56/cnFh7a3RCTTGjuMX0SVB9qzu1qfQM+jO3dBW1g6uVSHv/qVNX10Vh4rc3AkJYLTy+WA/8ou9kJjo7bOh+DLVFZ64TEbCyBktxI5PJZj56R//Gx+NdH5vM4vuI+p8NXh9LjU1iw3EZhXc8TyPuuV9wDaaCfBjTM06N0hVWQmHBDzvSDZ5tvqYR7ZAymh8BIazmH6OKLbzv0KZvJEz3ZzEFnEolaEtV2XEaCLKadrIz//TQnk1/EU85NuH8th8Yf4j9gMZUOrNkZEVZCnsbtTU9KW18GqcKFyjh420sd2+j33pg3F8uTsLaDwEhrBYf04O7N/2t7/o/C2FoGnsIy/YGlvAwSfCvZzLOe+8oR1ZT3u/5uvHJC9dGtJlMrfqjslXVHwjpat2aLi2rjFFLjUSrFUjlO0juddXSSXx7ICCE1QbjiHO0/hofbPgwpnDTOR2V6hWNQqGUx34890noet5yaO+Gko3Y45PO7/uB/lvnrwxrWdha1absbgxo1FWtwplXqYSJY5Nn5lU3bLHQmGA/yko0plVSSjMjIITVzKNTR9sO7dv8RSeb/T9BWmMkKv4D+YzBXuljV7yxd+zfte6VeHGKrHTz4+cv38JWmyUmKzSGG5z7VndoE7kz3uPtq+Welvhwm39weVjOyaoFsBZPI4TV4gNY2Pw79mz8KyebeRIH+VEZTaX0sf27+v794TKmCxNTzr/2NOPj5wZBVjjdYSklq6jN69dyKuhqmWztivYob+RTSkPbe/xMdlMUJn77IiCE1W5jq+s4dYEO6mzsYAmvi/+CrH7LDYxPcBq4HGTFVcG1ULLT5orS1ULIkoSFI2cMHKG8obiXcteOCAhhtdmo6gaOh4EWWlkyYU9gvHswXfgV19d/7+LVkSWfBrItJJhObL/p7elQR8fUZnEV70XxPc01sM+xrzhU7toRgZIHuh07uZL6xA3LBaYB+Ar8rBsfz34YX1j+D5eu317QNGy2xPquSE4mDuXb2IujY2AgytNE67RiKFshzuwCR5s9ZSMlsK0QEMJqq+GkBKOF5yFzRoidK5BoFCeMjM/8mG+a//Xy0Li55KYLBRiTrGjwOQ1br4VMBQuKVJeQKVPxMLlvPwSEsNpsTEECmBLSgbHUpwD1YGwse59l2p+9fmuig4fiNZIowrqq/6Xeqm9Vh9JbjcOKvqFtACX7gV8kTVZvkaRoRQSEsFpx1OZoM2iKxxuHLtDcsZlgLzYZfv7m7XSv+r7fIm234XSP/8o5ktWqzqSyZr89PoXPYDTYkZvziw0NLluKayoEyq4iNVULpTF1IaDjHHZmoAW4aep9geN8fiLt998cGYdtVp7K6iqzXGJFUCAi7jdkuapsBJKcPBwgyP8YRyV7B04Q3dDbpY3jg6gupoMNla5U41BbUN9n0sr1ScKaHwEhrOYfo7paCAW0WiWknihhW/0Tabf/6tDtxpIVSIhGnz1dSXUkDL8fSHKi4/lWPId9Kp3Vxqegp8J/m9f14D6DQ/nmb281FwgkZ1Dj7bnSSFx7ICCE1R7jmO8FJJr8jCvjeNrIxFjDJBpKVaSlXhwDw384MyucBoLAGEfHI5ptO6n1YAq4FjorH9IWjUOnFlF3pj62aui3whbI33ZGQAir/UY3XCVEvzgdw/8NcSyGUhSlpVWQrFg2p39xp0JYLyIohaXxdZ2FGofG6yi85/QS32F0Asu8URgu1+2JgCjd22xcsVElPC85169Gaa1YTkRWJKpSqooBiQQzONvq9sRULKKxtzzAEJw1api2EFZjoW3K0oSwmnJY5tcoSD09HanEDztubnfO/IopyUWC6sUmZUpW5aSqkgwgK04DxxaZrFivacCaIdAuH9zaM1rSDgloOwSEsNpoSMenvU93dXb+EE5taFivKElRqd67qrNmsqIF+yjMF/i56MV2JqadYKxXMDXM6+4Wu04pf/kQEMJaPuwbWvPticwj4Il/NnTrdl7JrqaDC5wTUle1GmdWWVCw1+JotjA6PgnThsIdQrXknF8arkJi/+R355dbcrUaArU9ha3WqxXW3tHR9C5dN//T9eEJ3aGdUwP7T0V7F86Mr0VW4mF6o2NTS/ilaB2HDmb8wA2+08AuS1FNjIAQVhMPTi1NgwRkGKbxRxMz3uaJSRzVUkumOtLwo6Zc7aOkVdEhynN9NQ1cyuNqeEqD67mX9TXGyxXbJhFthYAQVosP58S0909czfqJqzdGODVqaG/IUbCWr2p0yukfp4FUtDfeir1yl8IPUGjPHFy/fqJyKolpJwSEsFp4NEfT6Z3YBvOp8MvMc0hAi9hHNQ1cBrJil5TUZxhfXsTuSdFNhoAQVpMNSD3NMTzzU1PZYAM/ProYkg3UV5rHT8lXmA7SwnwEq4FLLVkRI04HM+n0LdvzvlEPZpK2tREQwmrR8ZucCd7hePr7rw2N5PfxLUZXON1zHKz4kb0KnIttP6Njk8tyaimbwXPrsW/yq3v3bhoqaJZctjkCQlgtOMCYCnU4GedTI+NpQ32XbxH7QOmKG5nzdIWZJz8HNkKygqI9TmSL2JSiovGVn0A39c8WBcpN2yMghNWCQ4zPc0HRbr6GEs6chJFnmfl3knZO4/hmII1B6fiFG9br0s6qAeXPp2WUrhzHeXH/jr6n5pNf8rQuAkJYLTZ2kK7Wul7w6zeGx9DyUsZovOodOizosTg1TM9k1Wogpa7lIisOF+w48E/7E5B1Y/cgtdizsBKbK6c1tNioT6X9n3MDcyePOo7OoJqrC6S0+ZIYV+GSOHxvc18PJCxXG4ed13I727axqTp9yk9rX1jutkj9S4+ASFhLj/m8axwdDdbgELxfGsLpoZyqVXPVU1QugVJUV0dC27p+FaaBWWxknq6ceAljTNMiAf/BoUMbJpewWqmqSRAQCatJBqKWZpgJ731Zx9pJM4aK0hXe5vlKVFEbKFlxs3PvqpSSqpbzKztRm+gnEkktnU6/2GFMfa4wXK5XDgJCWC0y1iAR6/Z49iOjY7C5qkG6mk+3SFQGlEP8FFdnygrNFqBsn1OxP5+K5pGHbcBhqhT8fqu/v39mHkVIljZAQAirRQYx7Wj3Zj3tddQjVVJ4l50CMjHe8mqOTJCCvmoTyIrENXx7Uinbm4Gs2PZUqkObnp76i0N7N36tWl8kvn0RaGnCGhgILKPn3B3+xKVXDh8+nPseX3sOlpt13+P4uonv71WeDqLr1ampFB8S1JrulNaHc9rTMxltcpofOeWns0rTLkeIZUHRnpm5YibMf7kc9UudzYNAyyrd8ZLpWvfgQT8w+oyevXeo++bBtaEtQd9s1/ffRsV3I6eDJCp+nourgH04UZQnhIYfWm1o8xdUGCU8/E/bil89sH3dlQUVJplbHoGWJaxnXri2HTvd1nEEcCBS3z++MLi75UejQgcmJjL92ax/gNJPo6QekhVXAbdvXI3D+XQ1Bcxiu02zTAEjKFIdHTQS/S8Hd2/4YhQm/spFoCUJ6+mnL651gkwRQRmBt33gO+c3teNQYin/oG6aKX5rcKEukqqoWN+Ij5vy81v8UATDG0WGC21jlJ96K6wKPpWd8H8jChN/ZSPQcoR1+vTppJPS7iw3bIZl7n/++eFV5eJaOczX9Z2YvM1LPxWpocBHKv8qHHdMqSphGUqqahaThfj40ITBcbLnsDj6oXvu2bS4n96JVy73TYtASxHWo48GxrUx+5Cu+XY5RH3PMzLGxF0ktXLxrRoGNVPPfNtOolIrgElLGYH2wbZqcipdIFVFlDbfGhqfj9bskCaHHS/7gTt3r73Y+BqkxFZFoKUI6/C7Lu/Bl1jmlKB8PUhcHjHufuyxx/g5lbZw+BL7bX4EoiZqyS0T0uM0j1+82QSl+ua+bhxj7GjD2LicwWkLzaarigbKsmDJ7gcTmezMBw/t3ixntUfAiK8QaBmzhq8/f26j77pbaxo3w+jetPf1B5D2RE3pmzyR4/nH+Mti4Wx1dUrCHO0lSVGqskFUnakkpn6mhu086jgYHkWTW3Wbo4Tli6L5gqYHE47vfeDufVv+YflaIjU3KwItIWEdO3a9Szc0ElDNDqcLbHjmxas7a87QxAnX9ljfxcr+Mzs29ykpi1O8iJjoR/cm5o7dnUl89LRLW93dyWmVIip+Kp7pmlWqIvQ8Mga9Gslm3Efu3LX+K008HNK0ZUSgplnGMrZPGxgYsIKeXa/TA61jPu0w0+7xBx/cd3M+eZspD0wbDgWm+RXP13cODY/jWGKuGAb48jG+agNpilbqlKZoWDqDY2AyjtNUlupzYZlKpXgaxIVMNv0zd+/d+uxcaSVuZSPQ/IT13TN34QRvZW81n6HSDdMLUqmjh9tgd//Fi8OHEl3JL3Z2dh3MzGA7XU664llVWRz/QhLjNYmsmaWp/DjCjqIDdlaZTOZZ1/A+fGj7hjP5OLkQBMog0NSE9cSRszuswNhdpt31BRnazM3U9IuPHDrUuG+419eChqU+cvzqjp7u5P9KJpMPpqc51Zv9QntLkFQBEqZluVCw/7nhaP9i376+8YIouRQEyiLQtIQ1cPT8GjOw7vE8tyFtxBrb2MBXdh579FF99g0vC0nzB548ebNHT2l/aFmJj1BPBYyav9EFLaQ+jdPAVNL8/pZ13a8qiJLLOhAAjvrTRy/d0enbF+69d0tzHFhWR/vnk7Rple6mp+9uFFkRGF8LVj/08IUN8wGp2fIcPLh+4sCu9R+F3ucj0MLf4vaVVnChqYWmdaQS2jpY2vd0djh86Vqh7c3Yxm8dudTPxaW0lrn7yJEjZW0Tm7HdC2lT0xKW1xecgHE3FDWNcb7uDh6+r/96Y0prjlIO7ur7TOD5b3ayzt9ylY0Gl83qKFXZsCXrXdOlrV3djf2LBr556JOshLDmMWhPPXV6vav5O5jVxYLUhNl3iIbV8yiqpbI0bQcP85C2Xu0l3dczC0XUN4Pzb71339mFltOM+Q/0rzu5f2fvu1zH+QDOt3uZ0pbVRMRFouJK5qqeTkhVqyBdtdUmhGV5JI4cudrpd5kHiyp3tTU/8s6r+4rC2vCmaQmLWJO0Ep65INJK2tbpt75298U2HLuiLh3oX/95L+0/kHUyvwTieiUJHVEimVzy1UKeWMqv2pCoKEVFRNXT1aHawnBx80eAZj7TwcxdAc5Gi5fiaNnNT37nCk4xaV/X1IRF2B94YHt63qQVaCcfePX2K+07fMU9U7qtHev+xE/7r3cc70O+6w1gxuV0dHZiusgvJS/O7IskRXLs6KCxqj+B26t9a3uUREWi4plbQlTFYzXvu+7tB3EIUGel/L6e3TNw5NS8zYAqldss4YvzBC9C7559drAja3qvDoyg6pwCP+KBZaVOPPjazS1vMLpQKE9fuPnawDB+EqehPwzWuAuSl8LPg90WVxhJJPWQCUmPBAWTBEz1TFUGpqO3wYYvIPgr2az35a2b1/50V6f1e1NTlVcvEzB0xRekj67usu5FmS2/crvQcaol/zeeObfTSOj91dIq28PxiaOHDx9quy8LtQxhcZBqIS0Dhkl2l/3yA4e2j1Qb2JUUD1Iyz1waOQib0vsxKXsAFvH3wMB0JySwtZC+DBPTN5BOCEnhrI1BuKe9l6tIzsVCiD6E0DOabrwI2elZ09aP7N3aNxjheXvK+a1OENa0EFYEyYL9rz072Ju03ZpNQKj7Xd899cKhNrA9LASvZTY/s9GcHoK0XsrakLS8UklLxyl+/rj+/Qfu2367sJNyTS7SuZfneO7ffweBGScu3NwAqWgrTvTc5jjBZmw87tMCfRXYKQWOgula4OiBOQUZ7DZuhrAGdQXxV0zPuCaGnkv3VPGHOpPw7+QPR62OM5HhdNddGOeX2kmCbSnC4mDlSStVTFr4eLljdHV+702vWz9R66Cu5HS5h5hmHvz3QiOxwJTRo2BGgY06dm7OVhewYGAY6s75oD+ZDs4JPY9JyqSCQ7ABqftd5VFM3/j2Ja4mtsWpJQSq6ZXu5UZTKeJnsHpohiYPRqBn04nkS2+CQWW59BK2dAjwS0Y4IHDz2ERWG8Gnwm7iK9W3sFmbvrqGPzw6gW8eTmvTM07XmTPX28KYd7EQ3rjnvv1QFHbPt3zT9DcMPHd+13zzN1s+/hC2rKOo7NjeQdsxT5LEWrYjbdLw05eHtwWe9jl0542u62HZHZIVpalY/yIlP5X3MHYddLLZfy4fmYiBhNuB509vw+rG3tKY+kOwGHLi7W/cS91jS7v4s9TSnZHGLx8CICH9lXNDX+zpWfXuycnaBV2e3e567nAm4973qv0bzy1fD5qr5oEB7KXt0u7B3Loh7yhWVfypbOalh9+wr6U3mbfklLC5Hi1pDRE4ef7Wj+EEiZ+amqpvJT2bzWjJRLIPR3n9riA5i4DZg720DSIrlsrvHXSZ9p7ZGlrzSgirNcetqVp9/vz5FJTqj6JRejTdq6eBMzNpHP9s//QrF4bvrydfO6f1JrCX1mvcXlo98Kembjotr3wXwmrnp36J+pYNeh5JdqRem83O77gxkpxtW3bgOZ/g1HKJmt3U1Rw+3D+zrc89aunagnWzpq6PdxujLz388L4F78tdbtCEsJZ7BFq8/sHBoMPX/I9hyrGgnuDUUZzrnnz7yQu3HlxQQW2Ued++fZmJ1e5LoPB5k5ZpWCPXz+08du+99zrtAI0QVjuM4jL2YcIZeh+2+9wF49MFtYJSlgmHE0g/JlLWLJQPg7RmhtyXsJ18eja0tivsXhj6xy9ve/mRR5TRcG2ZmjyViN9NPkDN3Dz1FW5z9XM4i+s1ME1YcFNpUIrVLHzJzHnwjl0bn1twgW1UwPHjxxPXpztejR0HFTc+F3YXRwxdfdM9W08D0zrs4wtLaM5rkbCac1xaolWOvurhZIPIih0OdVm2haNTfqUlAFjCRnJP4HBn+iUqz6tVa2nGpTe/etsP2o2s2G8hrGqjL/FlEQC5GHghfplSUSMdvwaEA/9+4vjpa3c2stx2KIsfUek2dr+EuXNF2xEjSJx98w/tbFt7NiGsdniSl6EPp84O3W/Z1oPzXRms1GRKWdCJdeCIlJ+vlGYlh997r+70+EPH8NHJEtLCauCph+7bmj81ox1xEsJqx1Fdij4Zxi9AT2KSYBrtslgxhOD2gWOyz7AstFzx6zFHj1mGobYUYAgC9cHge3ddK5uhjQKFsNpoMJeqK6+8cm0X6noXiWUxHA8WxAdWNyQM45HFKL8dyiRpueM7jllmMGpnjO+1w9fNaxmXxiogaqlR0jQdAkeOBPjczrnOiQ6jw88ESSOA6KT7iQzOHEvavu1pZsLQg4QPP/DdZG9Xx/vWrOr+mfR03SvtNffdxleAQIgvTzjBT0w409Mpu2faufZy+vDhw5WPMa25dEnYqggIYbXqyNXY7i/jCyvdfmaVb5hdVsLp9LJGp43j1/1A7/RdvdMwPRzEboRnLVHe9vEvL3eXBOB4ZMta22H+TiqV2LJQ26u5u6Bju44Z3J7O/Lvp6cwPmBanOwQ4uNHRTWMK21bSvh1Mm642nTWCtKkH07rnTE72aOO0XZq7bIltVQSEsFp15HLthg5J/+aJE12m3tVjOPYq1/dW4cTjHnwMYhXOce8xDd3y/PJW6OpMdsTRVy4iK/rKMR/jwvz825VIHFzT3fkx13UW/dnhRy3GJyeeHEs7n1XNibUPFvY6vtGDw5vV9w0Vofn81qGhZfDhi3HX8SfQ/3HPMse9CWcCX0gel2OIFJIt+2fRH7qWRaYJG85NxldGzV4tGayFSLQ24+q9ULyu9gJfMU5ELTn6wUISTl03NHz1KzyiJLqmX657OLLdSJgoXTO7cBxyN172blier4YCvBsFdSNXV2dC35tKJrbzfPfFdjwvC/qs9MSMxxNRsSqmT6LhUDQHE+jUBE7UnATXTuLsrRn01K2l/x6+qItiR3TNG8V59KNB0DGSfNXGUXwJY2Gm+osNhpSvEBDCasIHgVLTt75/aQ0MnXpBNb2QgNYEntfr4wu/nBYpKQLtxtdwAh0SBX3VDe7nM/Ha5vf1Fb/CURS2bCTAWWuxR229qRsbQQQbUed61LfW14JVKKsTJ5sk8WUcHbtlNANyTOhgcmAGKH7p3m1FWpqtuZCu+LByVdKHVMjpKEQrBwIW9tnpXOIH+QTDSH/D9f0bmCLewDn1I4HmwtAypPDZ/oe9oXKf/aMPsWxSs/RR13FHrURiZE1gDR86tKHEdCDMKX+XCwEhrOVCvqBeHNaW6ui11/mWDtLQ1kEiWodXE4rwYgepAPssTPCMOjIdAk94TZ8pMZjch8HjDorGFUTUAwlkh64be0A9/ZCatiDZWtOyE7ClQmIdJICJFYhA+TRV4Fo5/QIHiUvrTEbkVRCxiJfsSBbfYk87OTExXxdazY5yUgiRKfpHQ1YSkONmAZY+gV4NIeVFfCXoLNA5h/Plb5LzWAyzF+IVXdNnvO/6GcsyhjC1vmWZ7s2pO3fdOqzriy9asnJxZREoerDLppDAhiIAEtCfO3F5rW0a6z1PX4/nf53nG5RqqrpieSnULEVh8cx4E7ugH78H8tG9eP/24oVezY+pkpA8b/abhPF8le75BqdsXUtaFeaTlTI2IByEoU1l8oq1mkokcZHElIRoWmpejMMCMyCvQXyy7JjjuUcgOl4tLCzCMpTHgFpcgkViX/dH/ax2Szf8m2Yqc/MN+1r7BM/C/rfCtRDWEozSkbMjq7NTY5t13dqE6dhG3wsSqlp+C9DDi0ifLrqmT1f6BgUaPjiHN0lJAGAfvpWcI4XjiHIMF6ocO/EjmMa9HeelQ1LT1PRpoce/sJwOTCQtc+kfGQp6Uxl+9JWtmL+jNEaJ0gKBgbsygR58B4sHfwV5aliVWg3vCHv6ymHcdG868IzrVsK6pnd71+/dsmXxbD3m3/W2ybn0T1/bQFe5I8euX+9ybuqbXMPbDA7ZCKV4uMOecyz+9OfmWvj9x9zEw6JW+JuOX298WhE6qtwLEV3TL1tb/AWj7sqwfqaro/sdmcyM+vBp2XzzDEzaBiQsNH+e+eeTjQ+ohwqnG0BYhfVzNYKrkOmpyauYYH8KvD8G6RPBszrC6Jq+ystl0ghzXEZjR5+O4+iZwTh+eG7Yqa5rq/3hGzzTSkXKn4YgIITVABjBP+ZzP7i8ydasrZCetuCHvIvFRs92SEdlpnCYE2LOQi12OA7RNf1yjrphHIyE9yOXPnfNMDg70DpdTf8DWDKs5rRvMVwChAWrUgh21HzllD0NrigqlxKVC7bKQuOOWeGiuI7OTkhb6T8C/Xw3xkel9cXxj6eIxiY3Hhx3X9dHsWJwDaa3l1+zd9Mt/F4tUk/ijWnP+/DBb8++LWqvnh0c7NDGta0pO7kl6zpb8AJzEUr91kYEFdeBRCt69Nm4+AsSl6jwjVGckY6VwPwUpLhLURx9xliWvxFHi/w+zB0SWCnLsVpxnoXesSI2ngp4zmRJXPgf/0IleGH51R6uwjeX5MR76qtITh7+8N9Cp4GF7Sm8Zl1s35pVXVomm/5c1vG+Wm284njHJeJq44/FjixUAld8w7uijW6+xo3MhW2S6+oIVHumqpewglJ87+LFtcFUcqur+1vxwPcZJqYPMOyhXw6GKI4+4/GwQpjCBhe+6XDIpFb06PM+np5hhS5eXzw9bLJ2pBLGv4Fe36BU4kA6IQGw8MUY6MJywVeqDs54Z69zrWdY7jI3G1ZtUiSV6zzDI3IqLLew/wu9jspl+yywrA1pEed5QceXPT3jBb/DLrA5ua5UHZ/4eMTbFx+fwvE3DJO8fANrjlctL7giJhRx9MrfR89R+VgJ1Y6currONuwd0FNsxwtV02mPlWGLy1TxlPHf6Hh8PH9xesvw9yRM+5PIRT2ZIgVKKZxWUY/PT8aTFPji0i3m4Ed1hDWV/7uY9bNGtiGqAyorJRWSqCgdkrQiR5KddrwPlsq8xfhG6efvx8dvtiQczDdmmPaldDBxSVYeZ3GJXxUMWzxq5d4fPz7Ym7X1HTAL2A7NqtJHEQ3qtCPjw3LoxB/v+OMZ5VVzR5aHWRuErYA+y4uu6fM+Xl9J/lh7bFvbY+vmv0bWos9tsXAWSLIiaSnyApHxJz6SbFSFuXTw8i86r5vVRW1m+6IHmUREAuI0lcREP5q2ztWPrO9/YK54xsXHI56+cePvj3qBfimZNS+J5FWMcrjptThsRd4dPX9+DcwEd5iQphwozfkCwJKaLv9ewHYKeicfSudwShcnJDBBOD3MTwGRO0cqLIj73jQTaejDBYaPHTBgJ/i5+HyYijd95sFhRzkzB7yL2IrCtGwezj9nOQVTUlfPwiicifnu5J0qHHd8mXHIG6ZD7JQqIk9kJK6QwAokMWRUhMaSeJ0vcfaiXNhs7PyuwpYV51Vh+EM/Pu2M9GckpyiOuZm2Wvtom+Y4me8xPbvIIujzPu6Wbvyt1ejL3U7Sv/v754ZHsORwaX3KGdwiJhO5pzY+Mivk/urVq52jTnIXlEc78LKu8qAMx/G8kHhyOicosz0ovM3IrIDKb15HSvDoOoqv+hMLYCOWI8ash0vmufryZVcqLz4u8fym3ov1xT/EVp4UDUTn4/iS0xW+sZTMojASmLqGp64iH4FRXJQ2TKj+lv7JVRTVxwQkm9APyaboGnGMzSVR6VR87ipsVT645ovOzi5tamb6zzB1/nqzjz+s9YetwLioZW5C8jq08K9+1IxS8yQsfF6ap1WL2BK8VOaJc6NbPcPrx7wJ++hmHQUPvOaQgMJ3ETtVlERDP0wVsQ19uPgcLQyt/Dc+p4jlL6k/1xa2qVyh5ApEzEoErm/DsPOTXV3de6anq36roFyRdYWVbVSshHJEMt98saIXfIu9koplYZL6m/hUz7kS/Jt0/PE8+Jj6X/Y6k+fv2tA1BKIvB/OC8WnGAmp5dpqx3XW36fjgYK/upXbhFd+BrRlqn16MfkrspkoC4hnirYjbUVWzs4rHx8uL3cerjwt0TA4RcBcsuX8Rn97q54okVsCKJJ9YkSvy1gJR4aOtnAr6OJP+L13d+BKBKMEzHhAfgDh6yzD+vqHjTDDvYpAxLqwEfVdbE9bpIEi6V27tdLP+LnzPrWS/XrRTnz5d4e79+LNY7r4kP+Z7Jv7z1LyPL0B4Tb+ci9cXLy+eJ54e8Rw//rqqcUR+HOrgYVprJbBl5E2w63oI64J7k8mUDZLGhmAXs19ucVkxP8gKQu4ptCxbMy2TW3KAGI4u1P207ztH3CDx/7bL+Cdse8h1Zy5ev7Dp8uHD7blJuy0J69TV8XW6l92Dl3cbLG6g98idbhDgdANcY1ZY9o2N4mpNr96GRf1Da3Wui0RW69F1bWslvp81LD2xDTOGu9DhQzBc7AcYfYlkAqo6A6ozqHNBYJTESGitTGShsp0qQSxT4AcoPJQw0LBlEPhBFakHDjoLvY+XgVIyg7WK77tG8n9pvpHXBbXL+OMBd7FN6KLu+uf27esbX9RHdIkLbxvCGhgYsDb3v2a7obt7YHakpKmYiqgE2ioqJbzIOszXcSov/DAzRRNehyJKvPx4+igv/ZLKEaCkoZxUFMYXE1I8f7Xyq/UHp9CkAlfbCF3NdlhS7IQguA0N2wiJYy1ktC5IISb1Okr5jSYruy2SGlYkIkKLSC3yy/WrUWGzSnjaTUX/QEhYQuNewLCdwBFKRkpOuAfr4sBnwwfDg6B0MHagORhBHNqHw5WxTwYav6lAt/42MBLfrYZXHO9w3Ftr/B0Hp0pY+tkD29ddAz5ln8NGjddSlNPyhHV8aKjbzAS7Dd3egRcvgRHJWyrHASw9Pyp+vlSxEluH0jWAGQF9VVZMpxHVRZ/xSKQU4PR5Xy0+/sLQZCFS9DN/XKtSeh5WrL2x+sMyZv+W67+vwz5eC7oDx12rm9pakNg639B68XL3Qh+2Bm94DySxHhg0daBHSQhiCbyyyMS9SDi8RhEHyYP1qD9qak0S4VGn5VYrSTRKEkKHWYYiHuQmCYb/YKYLqS+3H5LYckxJmz6qhSYJ5yNgzgtuclESpncBfN8Fj3lgJdCSGpHcGECoxrouMoHjzO+4evLLMB1VKxJV8Wyj8Q80Ix043jnTu32hlTdkh08Yn7UWcnio9Qs3pzZm0lN7LCOxIdIZxbuQ1+lAVFFxJB7aMeUIiPkiPRPjo2v6dPF4FVjHnxi/oQK0Az/bymf5uI7ayGLj6eM63nrbF5VNXzV7nv3HViQL3JAEaSV1z0iBNJIgJBCYkSKJYbdjEiSHw7a0BI5s6QBBbINUswMUsQ6E11UojZGccA9dcZDBdQY+TgyFTgkiEKYyIBvstAQzIRk8cBJ+A2j4gZFDFWAqjAp3V5IhQYYwwUJ57ByS0QINzMYK8FyrRxt3KNbXb2qG/UVNT5wDyCt6/A0boGbdqzPA4tD21SPquWihPy1FWHjQzYs3xnZkM95ePIZd8RccBx1xez/UPowp46I4+uVcLD9/8Plq0Gfy6Jp+uez5uqPyY+UtNN5DuVQc06drpv4bIDXsjtsMpdkOSC79QK4Xog3PzwF4IBNCBiIhpBSpoE8jioqWaM2KCRuOqwLXgIQItKIe0lCYD/lZjoqgGIo0+J++SsmMKA8eqQ21qHuUh2PfzQHN6vgG6vVK8GfmQhcbr3Yff+AEi3rtdCtNF8u/eIWD2ATXx4Mg0XH1Vr/hm7sDQw8PvyvTrriKWocEE0C6oM/kJRJHrAykgj6WGlq+JUifu6YfS6pu4/UVa6AgQcXKi78ApekhcWFBwMstEkTX9MvVHw+Lt2ex+4+Pg62CxgsHEwZbAdgWIJfA+ICkfDRYtyAwWWB7Ay8F8VT/KB0bOJ4Gx/CQfUKSwZGrJJs8iZHYgB0zMB+zk8hopQ8hEcEog2ERASIBAOL5fIrVIKLxXKtzKPZLgZUckvGf+/nH5HsK0+Uz3316zeAjj3D23Lwu90w0ZwNpiZ72UnvwfO/AXIFnXfLBxLOsHn6yiLqmr3oQ04LHX9hq6TFHI6txrlYWkHj98UT1lh8vryR/rIKq6aO204drdP8hRWF3itmLUw42QnW1CSTSA2IAIXkWOBYKLWw8wjVqNkEaFqjFwLQNJhWI4ZiFoiq6QX0SbsEo6HMoWVFCYprwjw6FP65BXCSoXJwiOwpnFK9A6yiWkQhRDwA9XAfpwLS/AqnqSKP7jwapquiznXFXMn6x8Yg/X/HySvLHKqiaPlZfvf0H6BloAM/v3tpzHkJwUx59Uxb4GE5Lfnt2ZGS16SX3+F5mq4llfegtwnaSR6J5EC8hPUV6IDaS6aDnoZ5DpYe6AtdgOr4pyhXLNPH0KKCo/DDP7N+S+mI6qHzbQr7AbdgW+iylWn0l5cf6E29ftfSN6L9lGl04x30tOtMHklmLhxpClW9BL4S1T+i2uNPRp+0FflD0AN9A9LHnmHGBBfJCE3QL9ALiguoJqiu+64gDzWGIIAlhzhaSDsMV/yjJi3BxyY9khP9BXBSzEMY/AFORGMmM1yyKZfmm+ZKuJf4uMHV1THEj+o+S864E7zYd/8Dliqp2MamvPbt9uw4dY/M4DnXTuMuXx/scK9iHLcbryzfKwvOJBSGNPl10Tb8WV0xYyMFymDdXXv46Kq+ueChJQI4WlSUqf8StOf5CNdXqr9afxe8/Gm6AoLAqGKyCGLSG350ACFzKM2FvaeOseEhFOsjItdQ2S6wYYmkOdl2+CfLBvmpIV55vYY2Qn6uAxAWC40zbhxSmWArcQj0TSIiSU37mx0kgVesgLereOSz8E5EWJa6Qzyh1hZEcO7xY4Ct9WLfNvwa+5xA2h6uGP6vMPxMsZ8WNf0Gf+cOCw9usq51a5+kNG9Sn1IjJsjoO0LI7EpVra/vxhPdFs7JyjYriohlbTAKGxO1C6oJEljseOLqmTxfPX66OucJK66OUNzuDjK7p05UIbGwX25I/vrj4BYrnD0uZ/Rtvfzz9fPsPIkgkbL0DZNMFRVEHFEY2ZCBTcwMLdfCsCCVN4SwpE9YG+ARNgD24IDHYSYB1yNCYDkLRFoC8oOUG40AKQx5IYyAmlQ6SF7dDoSof0hbJiApzqLs43aPc5UG+AvVQ/4T7nGQFQiJ5kdbAkmgH2Sz0FaWB4gLrad22v4nmuvPt/yzCc1+V4t0e4z93r8PYwDCvNANxLSthkai0jmCf5+jq6y6Y4SkjTfoKprgWufj9Dg3AozBmiK7pl3H8WDH3u0YfLY6u6c/HVS2vSvsxoygyTF2q/qNenEyjJ5NJPYGPRidME1M1/JYqwyoNq32Ihu4J0z5M+WA2DoqwEI9wfmEaEhQJzPNsKNOh0jJwrfRVJqbnNOrC6IGwQFzgHiKrpCuq2kE+FizrMXWE7IWCEKemg7hSiimOQchNIC3EchqpHlBO95TshQThkwF5TL9k+Mm/MZLGzVo3AlQdLzagDle1vCYd/wU9/5Z5ZcyZPnNow/J8ZHZZCGtsbKw3rdn7nIzTx42o0WfP1cPKuYJ6XPFs5q7p8zmKx5v8cdcxDeMPOR1fj+gh4X10TV/dukiC+nJPeLy8eH1hrtm/UVvpKxcrP2oL/dlcs1eQ9PCeo73wGcp+R2Xyvlp74vH19B9EkoA2CYKUlcQqJCQj6vkoyBjh/IurcJiy4Zxy2FMptRBO7sK3kClR0UYUZAX+wMqfC1ICiYHMYBsKSQsSFKaAUEqZLoiK00ASFsgpN0UEUWE6yOkiiArE6NmUb91OWwAAEuNJREFUszCNxA0c/uBoF04W86YOarWQAYjGmHBBEIkUiXEqib025hNmInWknv6zKo77Sh3/RvcfSx5Xl4O4yr5Y7NxiuEEQFT4uvs8yrF5VvosX28LLS185vsiRHkc9YPiJtrCbJIzHyx3gJdfpl80flZWPR6qIxJghus7xjSqj4E9UNn2VvN76Csqq6XIR+48OYEeGlcAaXhLfQwxNQcgQEI9IErOOxBUuCuDLz9Arm5iyOTaYy7Jty8hAb2VCm43ZmwnwQTbgFpAWyA4SGEKhaMdgYNpngKAcpeMCAfFjYGE4yAqco3RZ0LorUqOkxVkf6AgzvFBPFbISSsOUD+WRrWijpcwbmI4Gomj4yxAIv4bPVU+q9sfxk/EP36UlfP49N3vNWr/m9CZdX/zzjDDofAoW3XHVr9NPHdB8p2+uORl/mjFLUktMbBTtkSJbpLCRxYyD5OpJps/4+DJuvq5IIgoLqfi3pLzcRuloM7QSzKImsBSWG80LVKkxkSvOkFHaCjL5QvrPN9rwvaSVtEg2ICmQCNRQkGjwnlOpNktMxdds+GxcRFrIyCmhTQMEUJjl4qwtzPbAOVC8o0DUZroGiMmBpEUfRBZ4DvRUJC4/1GOpij1ML9XU0PJdFxIZGsOpJkkOQ0YdFh5CPodKl0WfRqQkVUhTIEf1iN4GkdJU4Rx/xsJfHkpfMv4cd+IAUJb1+YdkfSU7NXp6+/bti7qquKiEdfVq0Gl2TO2DonYzAcUTCv0slCB8FuGia/q8j7iAPl30aNIPHVKq55w+00MvjFLo05WmV8H5P9XLzydVF/H0xbGl9UGfjm226B98po2u6fO+0f3H9M7SbT1h+FoS00ybSmm+5/RZHxzbwWvVHtSvNuLRR4BKl0vPtHRhWh1SESUsNBkH0qjvNiAx4MA1JDBc4yBmTPmwJArJCFM+dA1SE5XsmFIqRTzKUrZYkMio78IUkauFoW6Mcbin1GWrOR8nqOEUEUQFmuK3ZdEw6NFg92s9j3XLp0CIsAuS8VdPkcKhCZ9/KAc81x/c3NdzFjy6KHZc0YPNh7VhDg9jYnh4co9n2dvx1nLalys7Rimx2xLGigfEJBQ0Xr149FkBVb04BQiTlPAFbTiDxRGKM1pJf5AgarPKG0sQu413N07hkCANO5m0fSebtCwziW5DqMISHTRMJCDF23inYbmsauNCHq+Vn1ta5dErzKN8psP/RiIXVpAegKJQ30Y06AQSEXdAIpdL0wbTNsLpoSIeCwRJHZYBpTusIFAIlPC0iqL5AxoCcmLPQkkLdITRCc0dSFqQD1A51g4pLOXmhZCwDMO2BpH9q6ZtDoU4oKQIy5yEynFnv+mzw+0+/q3Sf5yT4aYs89zq1alLIK7wYeQANcCpgW5AOaqIARzxcudrXrMTz+cuFAxBI1Rw06eLKz3xsnDikt+Mmr9mWBlXrbySeJAlTt8MXJImXHRNv0zx2GpWZ3r0KKqzXHlRHH26+fQf+mkbg56ADjppUuihMJl7BEhGtmnj+4Phj1lEUAzjaQcgJkzcqPPmlI/yjdJV8Trf/+hbeYyP0uMS0zSVF8SEaSELxkhR6a7IC1IVHkNMBWEkCljxYQ7YXgWKrDCHw2ohJDDKSkr5Tst3TANBp7DdgkTFKSOpxYMtV2i3hXQoJjwbBo3L4oibAajdXmSbCl01PEvi6x3PetMvwfi3cv+xHpPRk8GZvo6Oq5y5FvZlvtfqQZ5v5igfH7iRdHqrn/H24McyEb6ejCUxkCwqEATi8JDNKtWRIxI6wrLj+aOyQgIqLT/KTZ+OLYnCFGHE60PdSgzIgVmcfrbt5evjYkB97VeNyv8plx/UYoChElhYgB7KtD3PAUWRpejIVNzNAjNzyDuYRqnrMF5dIx4CkTrlAJQRps2FhZIX5lqYwfFLOygTBeSmkUhDEgNvIC7MR5ML6JhozoCpn+858G1utbH4j7BRT0Z9VlZzbTyOKJCKeCjkqYbkFBJh+DXCPVcKuXKIFURlm8WBoZSFOBCYmk6i33ioT+Kw1CegEMspcFfe+M8+rRySNum/YUwm9I7TPT04NWOBDg/nwtz16xMbEp3mPswIOuI6G7wBSlynz1pQWZEIP0smIcEEWN3QsfJDn+nj9FFSPh73wilgdE2f+eOumo4pPqWI2kI/LKu4RVXLq7H/kJopRUFhnkj4joNT9KC/BlZgAIVD1I+cwASVUBgCIsF1KEQxJLpGPKHGP5LYrAs5ikREnmJ61KF4K5cG1+REVS6HC1JauGroYYcOrLWUEp6MSF0UpoZgK5hV2dgEzeNLYbMBnRQZEUPnOwGMT6GOp57Kg/0WTCMYjnsQHpDmlJFTR5IcNt/alvV1PdF5NsKcLSpGG03L6QcjnWDpeIXqgFYb//A9wGi1+fMPDeqY7nae6uvT530KKp+JebkhHJyX6Fqz33X83tCgRr1d6gXBH+XnFtEwDmEVMBfAtbK7UvHxVTb1gGLQokbFVBZMDtUJHmT+dsPxmqSRU2nkrxkWxhfbOfEVwLov4sIaonSRr1qZy6vy8xliPbn+qPjYHxSm6mJwdB357DfaVtJ/BMLeW0/ayVQSR6TA5AB7h8kwmFeRrFBUSFYkJk7GsM+F5SuiCQmFBEriCskHYcxfEM9ozBjBS/yaKD//rBzndjD3BHswAcmqwFdhOWGugCw5owwpEt9sxMlVGWQEK4GlcAOi1XAcL6eLICfdcMFmNDnH7xdO/YTCHTkxM2B6EiSPbuXmHrZO5eJy4Iu6lfo2Gu8orFfA+PM9UMjnHpBIx9v+/Q9Wm8nMfcMTE1d7u7vP4Ec6fzy1wqOGP3xI63JHjgT2/rsy/boTbMP0pe78dVUWS5wjK0VUjIqNN3kA62ZYeIcfxofXDFNFUZBTT4W6m71mWBlXrb4yWSoEYWh0jVIUdJEmzA6o18mRDN7dCplCEkK8IiP4WRAU9OO8j5wimZB3SAhKYlJEphLkJCaSEP7PEdxsfVG5UWFxP6qPPngTlvBED6IWLN8dTPmg8ocFPPRXWBdlFWqqCEmLlhAgLRtKdLaAkpQNfRUM6DUQGOUiTimNEaT7FvRVw/F6K91XG4/mHf9KPaovvJ36jzfSS1mpc6mUdhnvhZL4a0GjZsKBKK+n0+kt0AHvztCAsIzjeeAeUKVPF1l101cBWCICxcGmcPalUeHRnyguIsJYej79fFnpKxdjrKhu+spVK69Ke+OW6SXlh7Xk/8b7D5umJKY6nUiQAEmp5ZKoD5Ay8kTFzcAsJIrL+ZREYCWAaU4ubXRNP8wfpuSuGubHMwCJhSuGPCiYJIMw5GV6xkfY0Wd+WoPiBAlEhvnzNluw3SKZYTkQHIQ5J1RQDg7Lw/QQGUIdFp4wcC9KgQ/7KkxjucEHROVmc3ZaCFfEjMxUvlPvBZ0WhT1Q1zG06hQKyGPA9qEh4bPRJuO/0p//WvoPyXpa77BPr9L1mn64QiJRT0vlP3jg1oyn0/th1dnN6VOkQyh8wVRuPpLUH9GHi+sckD4vLaj43NSHLwfv8cKjbGxdgc97JUpFpIRbpovKYHTUltkpHYkyEqNYf1gWfZU+Vn+JiMZERS4qKyTAMv1hmwoItLT/aL6OL9cn8A4mknhDkR5CUuh43ExhAXjnIQVxRQ9UwnU1JM73meHISINzlY/1Ir3jwNQBtui5IpU3K2mFZbEUEhgJiHlZhkqI8rws7hPFxBHlZ5romu1CGRSv2HyQEQiLPkwefJcSk2o0mU+F8Z46KswbKd8qvRUWiq7BsuoYlF/q+Jd839p4/KNnFHhw+Fbc819r/y3dHO7qsk9D2lLPBvEq59SLXC6CYSCq1OTk5F48g+FxLyQSvvyzhFK8taaYL1ACiYdkkSOg/HVO4irmAySLlR8+yHy5wnaWysTF7YmnRxdyecMXFDcxx3KjNCUEGUtb2r4Iixwh5qebxEG58v2Hkh0ERqlLp5kClNLkngLSyF8XExrZi089SYbFm9DRg1FCbEKyoxQE8sqFkTOgTwrDVIPCP/k8qpRcGrxMEXmxnpwjUeXbhjpgA2bBNsp0HPQWOiwNOnddw5YcNIdSFyzTlUKehEbrLDxDNn7osjCXPw5FO22qgPfKHn/pf8XxxxetvSvYlX8BxBVKCdGDmPPDhz0W+Oijjxof//jHt+Hh2oko/qKqFx4l0BJQmQIwS3RNn/fxZXqGFbq4nQzimI9tKFs+S1S1KJ9XoQkEfUQwtKg98fSzefMMwmx5F28/IqK2RLjM2b54/gX0H0v6+IiDZSVgHJogfYWNzDMUpCtsUkKg4pKIUJAsnNTlkjNWzfBCPMOhi8JAiCSqPBmyMFVQ1OdctQwLywNZ5cPCpDl80D6IhjzBASQF0sUeREpSJCyE4ceSpJXbEO2612AHepaTSRn/YrtEAD3n8xV/ntv4+S96nyGRO9gccQZmEPiBK3bRi5kPHcG+v2T32n2+53bxNY8oQyWIB0SR9OmqxMeTh5lm/8azx8srEbCQNSqTpUTX+eagwCiPqiWeQAXO/olHV2tPaYUFjWCxsQJjt7MV564K6iOB2Xj1adNGa3PqDMFl4XwSSnAQCUIibqFPlwtTwbiOkoSR+JvLx3KYv9BXaSrlLyifSegQBNMFTAWhiIeFArRZnoX+8Y2EzKhbnuNlYO9wFpZXkwoH5Kmj/6qOFTz+0n8+Y4Y/2pVIcJqY35+YJ6wjEN33ZzL9kPY3hWjx6Sv+RcByLIQAZZYQJSn2C944FRF/QkvjQ31XZDcV04GVPOGl+WdJEhVGbaNPV3d7Va7ZP83U/1ACgzTjkg4gjUFvHhGWkrPAPnnBLNeFSEKKfAbzOu9yBAUdVj6cZURpZuU3XOUILioD93x2IEnxxFGc9c6M+M93cHSNZVzHquBQDeMn4x898wQ2us7pgGvAbyU8/z5e5EupVEqtJirCgp4KHxVI7sbrQIYKHyKF3+yvIvEEX8FsQNk9qXwgBpgQwNo7p9OKrukzfdzF08+WTmYrV35YF+tU8bEpYImInGtLVH+8PkzZ8iQcVpjrawXCLOHH5uo/9JmWjbXHJMQcNhVW8bOklbsumnJw7Q+cgtVK2mJxAUNNKKncp54KHuzAwnjCE01B1UIHA1A80ik/IkdIfTj6mE8MXh2sSKZhdHUd+IcDykwFLj4eMv7Fv+il75c8/xEmeHaojD+jZ4LgbsPVVvO5iutg4oSAFCCiAqVp/jrUKRU8mzVexsube05ff3tiD0Q1wkP/ojrYgeiaftiheHsjLKL4GrudTxYvb0H9h94bpzeAwCD4cAqJf5SmlBjFH5D8ChVC1Q8KyIkrjtgbE64y4lqtINJHel5Hq4q4ZdsYzsWBWaU+rkFWtFzQbiNNnWciNbT/qD4+Hitq/FdE/3mWzmvQU+W4hZZPenQuRHRNfylcvfVjpUqz0Tj6dNE1/fm4euufTx1z5am3/hr6z6lj9A9ElneKwPJ3IYEVEpqKys0YFeUhoDBP4TV/+bjVIkfqKuu8/ixC/+tqR73111V4DYnrrb+G8a+h1tkk9dY/m7MxV7XUzwdP3ApBgCYG6Co+L6/+kcB4X0g0ERFFzwXjojBc5q8ZhqOKtWEoROmLEwSWBIHowVySyqSS5kIABEYhisRFEov8SgRWGD6K9OMgq8IwBIkTBBYXASGsxcW3pUoHgfF5iIiLPv9x+03kuLxMqaqsUj1KJL4gsFgICGEtFrJtUG6OwDhtJHHhqLOl+dBAG0AnXRAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC'
  16050. }
  16051. };
  16052. exports.default = _default;
  16053. /***/ }),
  16054. /* 116 */
  16055. /*!********************************************************************************!*\
  16056. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/noticeBar.js ***!
  16057. \********************************************************************************/
  16058. /*! no static exports found */
  16059. /***/ (function(module, exports, __webpack_require__) {
  16060. "use strict";
  16061. Object.defineProperty(exports, "__esModule", {
  16062. value: true
  16063. });
  16064. exports.default = void 0;
  16065. /*
  16066. * @Author : LQ
  16067. * @Description :
  16068. * @version : 1.0
  16069. * @Date : 2021-08-20 16:44:21
  16070. * @LastAuthor : LQ
  16071. * @lastTime : 2021-08-20 17:17:13
  16072. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16073. */
  16074. var _default = {
  16075. // noticeBar
  16076. noticeBar: {
  16077. text: function text() {
  16078. return [];
  16079. },
  16080. direction: 'row',
  16081. step: false,
  16082. icon: 'volume',
  16083. mode: '',
  16084. color: '#f9ae3d',
  16085. bgColor: '#fdf6ec',
  16086. speed: 80,
  16087. fontSize: 14,
  16088. duration: 2000,
  16089. disableTouch: true,
  16090. url: '',
  16091. linkType: 'navigateTo'
  16092. }
  16093. };
  16094. exports.default = _default;
  16095. /***/ }),
  16096. /* 117 */
  16097. /*!*****************************************************************************!*\
  16098. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/notify.js ***!
  16099. \*****************************************************************************/
  16100. /*! no static exports found */
  16101. /***/ (function(module, exports, __webpack_require__) {
  16102. "use strict";
  16103. Object.defineProperty(exports, "__esModule", {
  16104. value: true
  16105. });
  16106. exports.default = void 0;
  16107. /*
  16108. * @Author : LQ
  16109. * @Description :
  16110. * @version : 1.0
  16111. * @Date : 2021-08-20 16:44:21
  16112. * @LastAuthor : LQ
  16113. * @lastTime : 2021-08-20 17:10:21
  16114. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16115. */
  16116. var _default = {
  16117. // notify组件
  16118. notify: {
  16119. top: 0,
  16120. type: 'primary',
  16121. color: '#ffffff',
  16122. bgColor: '',
  16123. message: '',
  16124. duration: 3000,
  16125. fontSize: 15,
  16126. safeAreaInsetTop: false
  16127. }
  16128. };
  16129. exports.default = _default;
  16130. /***/ }),
  16131. /* 118 */
  16132. /*!********************************************************************************!*\
  16133. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/numberBox.js ***!
  16134. \********************************************************************************/
  16135. /*! no static exports found */
  16136. /***/ (function(module, exports, __webpack_require__) {
  16137. "use strict";
  16138. Object.defineProperty(exports, "__esModule", {
  16139. value: true
  16140. });
  16141. exports.default = void 0;
  16142. /*
  16143. * @Author : LQ
  16144. * @Description :
  16145. * @version : 1.0
  16146. * @Date : 2021-08-20 16:44:21
  16147. * @LastAuthor : LQ
  16148. * @lastTime : 2021-08-20 17:11:46
  16149. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16150. */
  16151. var _default = {
  16152. // 步进器组件
  16153. numberBox: {
  16154. name: '',
  16155. value: 0,
  16156. min: 1,
  16157. max: Number.MAX_SAFE_INTEGER,
  16158. step: 1,
  16159. integer: false,
  16160. disabled: false,
  16161. disabledInput: false,
  16162. asyncChange: false,
  16163. inputWidth: 35,
  16164. showMinus: true,
  16165. showPlus: true,
  16166. decimalLength: null,
  16167. longPress: true,
  16168. color: '#323233',
  16169. buttonSize: 30,
  16170. bgColor: '#EBECEE',
  16171. cursorSpacing: 100,
  16172. disableMinus: false,
  16173. disablePlus: false,
  16174. iconStyle: ''
  16175. }
  16176. };
  16177. exports.default = _default;
  16178. /***/ }),
  16179. /* 119 */
  16180. /*!*************************************************************************************!*\
  16181. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/numberKeyboard.js ***!
  16182. \*************************************************************************************/
  16183. /*! no static exports found */
  16184. /***/ (function(module, exports, __webpack_require__) {
  16185. "use strict";
  16186. Object.defineProperty(exports, "__esModule", {
  16187. value: true
  16188. });
  16189. exports.default = void 0;
  16190. /*
  16191. * @Author : LQ
  16192. * @Description :
  16193. * @version : 1.0
  16194. * @Date : 2021-08-20 16:44:21
  16195. * @LastAuthor : LQ
  16196. * @lastTime : 2021-08-20 17:08:05
  16197. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16198. */
  16199. var _default = {
  16200. // 数字键盘
  16201. numberKeyboard: {
  16202. mode: 'number',
  16203. dotDisabled: false,
  16204. random: false
  16205. }
  16206. };
  16207. exports.default = _default;
  16208. /***/ }),
  16209. /* 120 */
  16210. /*!******************************************************************************!*\
  16211. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/overlay.js ***!
  16212. \******************************************************************************/
  16213. /*! no static exports found */
  16214. /***/ (function(module, exports, __webpack_require__) {
  16215. "use strict";
  16216. Object.defineProperty(exports, "__esModule", {
  16217. value: true
  16218. });
  16219. exports.default = void 0;
  16220. /*
  16221. * @Author : LQ
  16222. * @Description :
  16223. * @version : 1.0
  16224. * @Date : 2021-08-20 16:44:21
  16225. * @LastAuthor : LQ
  16226. * @lastTime : 2021-08-20 17:06:50
  16227. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16228. */
  16229. var _default = {
  16230. // overlay组件
  16231. overlay: {
  16232. show: false,
  16233. zIndex: 10070,
  16234. duration: 300,
  16235. opacity: 0.5
  16236. }
  16237. };
  16238. exports.default = _default;
  16239. /***/ }),
  16240. /* 121 */
  16241. /*!****************************************************************************!*\
  16242. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/parse.js ***!
  16243. \****************************************************************************/
  16244. /*! no static exports found */
  16245. /***/ (function(module, exports, __webpack_require__) {
  16246. "use strict";
  16247. Object.defineProperty(exports, "__esModule", {
  16248. value: true
  16249. });
  16250. exports.default = void 0;
  16251. /*
  16252. * @Author : LQ
  16253. * @Description :
  16254. * @version : 1.0
  16255. * @Date : 2021-08-20 16:44:21
  16256. * @LastAuthor : LQ
  16257. * @lastTime : 2021-08-20 17:17:33
  16258. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16259. */
  16260. var _default = {
  16261. // parse
  16262. parse: {
  16263. copyLink: true,
  16264. errorImg: '',
  16265. lazyLoad: false,
  16266. loadingImg: '',
  16267. pauseVideo: true,
  16268. previewImg: true,
  16269. setTitle: true,
  16270. showImgMenu: true
  16271. }
  16272. };
  16273. exports.default = _default;
  16274. /***/ }),
  16275. /* 122 */
  16276. /*!*****************************************************************************!*\
  16277. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/picker.js ***!
  16278. \*****************************************************************************/
  16279. /*! no static exports found */
  16280. /***/ (function(module, exports, __webpack_require__) {
  16281. "use strict";
  16282. Object.defineProperty(exports, "__esModule", {
  16283. value: true
  16284. });
  16285. exports.default = void 0;
  16286. /*
  16287. * @Author : LQ
  16288. * @Description :
  16289. * @version : 1.0
  16290. * @Date : 2021-08-20 16:44:21
  16291. * @LastAuthor : LQ
  16292. * @lastTime : 2021-08-20 17:18:20
  16293. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16294. */
  16295. var _default = {
  16296. // picker
  16297. picker: {
  16298. show: false,
  16299. showToolbar: true,
  16300. title: '',
  16301. columns: function columns() {
  16302. return [];
  16303. },
  16304. loading: false,
  16305. itemHeight: 44,
  16306. cancelText: '取消',
  16307. confirmText: '确定',
  16308. cancelColor: '#909193',
  16309. confirmColor: '#3c9cff',
  16310. visibleItemCount: 5,
  16311. keyName: 'text',
  16312. closeOnClickOverlay: false,
  16313. defaultIndex: function defaultIndex() {
  16314. return [];
  16315. },
  16316. immediateChange: false
  16317. }
  16318. };
  16319. exports.default = _default;
  16320. /***/ }),
  16321. /* 123 */
  16322. /*!****************************************************************************!*\
  16323. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/popup.js ***!
  16324. \****************************************************************************/
  16325. /*! no static exports found */
  16326. /***/ (function(module, exports, __webpack_require__) {
  16327. "use strict";
  16328. Object.defineProperty(exports, "__esModule", {
  16329. value: true
  16330. });
  16331. exports.default = void 0;
  16332. /*
  16333. * @Author : LQ
  16334. * @Description :
  16335. * @version : 1.0
  16336. * @Date : 2021-08-20 16:44:21
  16337. * @LastAuthor : LQ
  16338. * @lastTime : 2021-08-20 17:06:33
  16339. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16340. */
  16341. var _default = {
  16342. // popup组件
  16343. popup: {
  16344. show: false,
  16345. overlay: true,
  16346. mode: 'bottom',
  16347. duration: 300,
  16348. closeable: false,
  16349. overlayStyle: function overlayStyle() {},
  16350. closeOnClickOverlay: true,
  16351. zIndex: 10075,
  16352. safeAreaInsetBottom: true,
  16353. safeAreaInsetTop: false,
  16354. closeIconPos: 'top-right',
  16355. round: 0,
  16356. zoom: true,
  16357. bgColor: '',
  16358. overlayOpacity: 0.5
  16359. }
  16360. };
  16361. exports.default = _default;
  16362. /***/ }),
  16363. /* 124 */
  16364. /*!****************************************************************************!*\
  16365. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/radio.js ***!
  16366. \****************************************************************************/
  16367. /*! no static exports found */
  16368. /***/ (function(module, exports, __webpack_require__) {
  16369. "use strict";
  16370. Object.defineProperty(exports, "__esModule", {
  16371. value: true
  16372. });
  16373. exports.default = void 0;
  16374. /*
  16375. * @Author : LQ
  16376. * @Description :
  16377. * @version : 1.0
  16378. * @Date : 2021-08-20 16:44:21
  16379. * @LastAuthor : LQ
  16380. * @lastTime : 2021-08-20 17:02:34
  16381. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16382. */
  16383. var _default = {
  16384. // radio组件
  16385. radio: {
  16386. name: '',
  16387. shape: '',
  16388. disabled: '',
  16389. labelDisabled: '',
  16390. activeColor: '',
  16391. inactiveColor: '',
  16392. iconSize: '',
  16393. labelSize: '',
  16394. label: '',
  16395. labelColor: '',
  16396. size: '',
  16397. iconColor: '',
  16398. placement: ''
  16399. }
  16400. };
  16401. exports.default = _default;
  16402. /***/ }),
  16403. /* 125 */
  16404. /*!*********************************************************************************!*\
  16405. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/radioGroup.js ***!
  16406. \*********************************************************************************/
  16407. /*! no static exports found */
  16408. /***/ (function(module, exports, __webpack_require__) {
  16409. "use strict";
  16410. Object.defineProperty(exports, "__esModule", {
  16411. value: true
  16412. });
  16413. exports.default = void 0;
  16414. /*
  16415. * @Author : LQ
  16416. * @Description :
  16417. * @version : 1.0
  16418. * @Date : 2021-08-20 16:44:21
  16419. * @LastAuthor : LQ
  16420. * @lastTime : 2021-08-20 17:03:12
  16421. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16422. */
  16423. var _default = {
  16424. // radio-group组件
  16425. radioGroup: {
  16426. value: '',
  16427. disabled: false,
  16428. shape: 'circle',
  16429. activeColor: '#2979ff',
  16430. inactiveColor: '#c8c9cc',
  16431. name: '',
  16432. size: 18,
  16433. placement: 'row',
  16434. label: '',
  16435. labelColor: '#303133',
  16436. labelSize: 14,
  16437. labelDisabled: false,
  16438. iconColor: '#ffffff',
  16439. iconSize: 12,
  16440. borderBottom: false,
  16441. iconPlacement: 'left'
  16442. }
  16443. };
  16444. exports.default = _default;
  16445. /***/ }),
  16446. /* 126 */
  16447. /*!***************************************************************************!*\
  16448. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/rate.js ***!
  16449. \***************************************************************************/
  16450. /*! no static exports found */
  16451. /***/ (function(module, exports, __webpack_require__) {
  16452. "use strict";
  16453. Object.defineProperty(exports, "__esModule", {
  16454. value: true
  16455. });
  16456. exports.default = void 0;
  16457. /*
  16458. * @Author : LQ
  16459. * @Description :
  16460. * @version : 1.0
  16461. * @Date : 2021-08-20 16:44:21
  16462. * @LastAuthor : LQ
  16463. * @lastTime : 2021-08-20 17:05:09
  16464. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16465. */
  16466. var _default = {
  16467. // rate组件
  16468. rate: {
  16469. value: 1,
  16470. count: 5,
  16471. disabled: false,
  16472. size: 18,
  16473. inactiveColor: '#b2b2b2',
  16474. activeColor: '#FA3534',
  16475. gutter: 4,
  16476. minCount: 1,
  16477. allowHalf: false,
  16478. activeIcon: 'star-fill',
  16479. inactiveIcon: 'star',
  16480. touchable: true
  16481. }
  16482. };
  16483. exports.default = _default;
  16484. /***/ }),
  16485. /* 127 */
  16486. /*!*******************************************************************************!*\
  16487. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/readMore.js ***!
  16488. \*******************************************************************************/
  16489. /*! no static exports found */
  16490. /***/ (function(module, exports, __webpack_require__) {
  16491. "use strict";
  16492. Object.defineProperty(exports, "__esModule", {
  16493. value: true
  16494. });
  16495. exports.default = void 0;
  16496. /*
  16497. * @Author : LQ
  16498. * @Description :
  16499. * @version : 1.0
  16500. * @Date : 2021-08-20 16:44:21
  16501. * @LastAuthor : LQ
  16502. * @lastTime : 2021-08-20 17:18:41
  16503. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16504. */
  16505. var _default = {
  16506. // readMore
  16507. readMore: {
  16508. showHeight: 400,
  16509. toggle: false,
  16510. closeText: '展开阅读全文',
  16511. openText: '收起',
  16512. color: '#2979ff',
  16513. fontSize: 14,
  16514. textIndent: '2em',
  16515. name: ''
  16516. }
  16517. };
  16518. exports.default = _default;
  16519. /***/ }),
  16520. /* 128 */
  16521. /*!**************************************************************************!*\
  16522. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/row.js ***!
  16523. \**************************************************************************/
  16524. /*! no static exports found */
  16525. /***/ (function(module, exports, __webpack_require__) {
  16526. "use strict";
  16527. Object.defineProperty(exports, "__esModule", {
  16528. value: true
  16529. });
  16530. exports.default = void 0;
  16531. /*
  16532. * @Author : LQ
  16533. * @Description :
  16534. * @version : 1.0
  16535. * @Date : 2021-08-20 16:44:21
  16536. * @LastAuthor : LQ
  16537. * @lastTime : 2021-08-20 17:18:58
  16538. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16539. */
  16540. var _default = {
  16541. // row
  16542. row: {
  16543. gutter: 0,
  16544. justify: 'start',
  16545. align: 'center'
  16546. }
  16547. };
  16548. exports.default = _default;
  16549. /***/ }),
  16550. /* 129 */
  16551. /*!********************************************************************************!*\
  16552. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/rowNotice.js ***!
  16553. \********************************************************************************/
  16554. /*! no static exports found */
  16555. /***/ (function(module, exports, __webpack_require__) {
  16556. "use strict";
  16557. Object.defineProperty(exports, "__esModule", {
  16558. value: true
  16559. });
  16560. exports.default = void 0;
  16561. /*
  16562. * @Author : LQ
  16563. * @Description :
  16564. * @version : 1.0
  16565. * @Date : 2021-08-20 16:44:21
  16566. * @LastAuthor : LQ
  16567. * @lastTime : 2021-08-20 17:19:13
  16568. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16569. */
  16570. var _default = {
  16571. // rowNotice
  16572. rowNotice: {
  16573. text: '',
  16574. icon: 'volume',
  16575. mode: '',
  16576. color: '#f9ae3d',
  16577. bgColor: '#fdf6ec',
  16578. fontSize: 14,
  16579. speed: 80
  16580. }
  16581. };
  16582. exports.default = _default;
  16583. /***/ }),
  16584. /* 130 */
  16585. /*!*********************************************************************************!*\
  16586. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/scrollList.js ***!
  16587. \*********************************************************************************/
  16588. /*! no static exports found */
  16589. /***/ (function(module, exports, __webpack_require__) {
  16590. "use strict";
  16591. Object.defineProperty(exports, "__esModule", {
  16592. value: true
  16593. });
  16594. exports.default = void 0;
  16595. /*
  16596. * @Author : LQ
  16597. * @Description :
  16598. * @version : 1.0
  16599. * @Date : 2021-08-20 16:44:21
  16600. * @LastAuthor : LQ
  16601. * @lastTime : 2021-08-20 17:19:28
  16602. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16603. */
  16604. var _default = {
  16605. // scrollList
  16606. scrollList: {
  16607. indicatorWidth: 50,
  16608. indicatorBarWidth: 20,
  16609. indicator: true,
  16610. indicatorColor: '#f2f2f2',
  16611. indicatorActiveColor: '#3c9cff',
  16612. indicatorStyle: ''
  16613. }
  16614. };
  16615. exports.default = _default;
  16616. /***/ }),
  16617. /* 131 */
  16618. /*!*****************************************************************************!*\
  16619. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/search.js ***!
  16620. \*****************************************************************************/
  16621. /*! no static exports found */
  16622. /***/ (function(module, exports, __webpack_require__) {
  16623. "use strict";
  16624. Object.defineProperty(exports, "__esModule", {
  16625. value: true
  16626. });
  16627. exports.default = void 0;
  16628. /*
  16629. * @Author : LQ
  16630. * @Description :
  16631. * @version : 1.0
  16632. * @Date : 2021-08-20 16:44:21
  16633. * @LastAuthor : LQ
  16634. * @lastTime : 2021-08-20 17:19:45
  16635. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16636. */
  16637. var _default = {
  16638. // search
  16639. search: {
  16640. shape: 'round',
  16641. bgColor: '#f2f2f2',
  16642. placeholder: '请输入关键字',
  16643. clearabled: true,
  16644. focus: false,
  16645. showAction: true,
  16646. actionStyle: function actionStyle() {
  16647. return {};
  16648. },
  16649. actionText: '搜索',
  16650. inputAlign: 'left',
  16651. inputStyle: function inputStyle() {
  16652. return {};
  16653. },
  16654. disabled: false,
  16655. borderColor: 'transparent',
  16656. searchIconColor: '#909399',
  16657. searchIconSize: 22,
  16658. color: '#606266',
  16659. placeholderColor: '#909399',
  16660. searchIcon: 'search',
  16661. margin: '0',
  16662. animation: false,
  16663. value: '',
  16664. maxlength: '-1',
  16665. height: 32,
  16666. label: null
  16667. }
  16668. };
  16669. exports.default = _default;
  16670. /***/ }),
  16671. /* 132 */
  16672. /*!******************************************************************************!*\
  16673. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/section.js ***!
  16674. \******************************************************************************/
  16675. /*! no static exports found */
  16676. /***/ (function(module, exports, __webpack_require__) {
  16677. "use strict";
  16678. Object.defineProperty(exports, "__esModule", {
  16679. value: true
  16680. });
  16681. exports.default = void 0;
  16682. /*
  16683. * @Author : LQ
  16684. * @Description :
  16685. * @version : 1.0
  16686. * @Date : 2021-08-20 16:44:21
  16687. * @LastAuthor : LQ
  16688. * @lastTime : 2021-08-20 17:07:33
  16689. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16690. */
  16691. var _default = {
  16692. // u-section组件
  16693. section: {
  16694. title: '',
  16695. subTitle: '更多',
  16696. right: true,
  16697. fontSize: 15,
  16698. bold: true,
  16699. color: '#303133',
  16700. subColor: '#909399',
  16701. showLine: true,
  16702. lineColor: '',
  16703. arrow: true
  16704. }
  16705. };
  16706. exports.default = _default;
  16707. /***/ }),
  16708. /* 133 */
  16709. /*!*******************************************************************************!*\
  16710. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/skeleton.js ***!
  16711. \*******************************************************************************/
  16712. /*! no static exports found */
  16713. /***/ (function(module, exports, __webpack_require__) {
  16714. "use strict";
  16715. Object.defineProperty(exports, "__esModule", {
  16716. value: true
  16717. });
  16718. exports.default = void 0;
  16719. /*
  16720. * @Author : LQ
  16721. * @Description :
  16722. * @version : 1.0
  16723. * @Date : 2021-08-20 16:44:21
  16724. * @LastAuthor : LQ
  16725. * @lastTime : 2021-08-20 17:20:14
  16726. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  16727. */
  16728. var _default = {
  16729. // skeleton
  16730. skeleton: {
  16731. loading: true,
  16732. animate: true,
  16733. rows: 0,
  16734. rowsWidth: '100%',
  16735. rowsHeight: 18,
  16736. title: true,
  16737. titleWidth: '50%',
  16738. titleHeight: 18,
  16739. avatar: false,
  16740. avatarSize: 32,
  16741. avatarShape: 'circle'
  16742. }
  16743. };
  16744. exports.default = _default;
  16745. /***/ }),
  16746. /* 134 */
  16747. /*!*****************************************************************************!*\
  16748. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/slider.js ***!
  16749. \*****************************************************************************/
  16750. /*! no static exports found */
  16751. /***/ (function(module, exports, __webpack_require__) {
  16752. "use strict";
  16753. Object.defineProperty(exports, "__esModule", {
  16754. value: true
  16755. });
  16756. exports.default = void 0;
  16757. /*
  16758. * @Author : LQ
  16759. * @Description :
  16760. * @version : 1.0
  16761. * @Date : 2021-08-20 16:44:21
  16762. * @LastAuthor : LQ
  16763. * @lastTime : 2021-08-20 17:08:25
  16764. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  16765. */
  16766. var _default = {
  16767. // slider组件
  16768. slider: {
  16769. value: 0,
  16770. blockSize: 18,
  16771. min: 0,
  16772. max: 100,
  16773. step: 1,
  16774. activeColor: '#2979ff',
  16775. inactiveColor: '#c0c4cc',
  16776. blockColor: '#ffffff',
  16777. showValue: false,
  16778. disabled: false,
  16779. blockStyle: function blockStyle() {}
  16780. }
  16781. };
  16782. exports.default = _default;
  16783. /***/ }),
  16784. /* 135 */
  16785. /*!********************************************************************************!*\
  16786. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/statusBar.js ***!
  16787. \********************************************************************************/
  16788. /*! no static exports found */
  16789. /***/ (function(module, exports, __webpack_require__) {
  16790. "use strict";
  16791. Object.defineProperty(exports, "__esModule", {
  16792. value: true
  16793. });
  16794. exports.default = void 0;
  16795. /*
  16796. * @Author : LQ
  16797. * @Description :
  16798. * @version : 1.0
  16799. * @Date : 2021-08-20 16:44:21
  16800. * @LastAuthor : LQ
  16801. * @lastTime : 2021-08-20 17:20:39
  16802. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  16803. */
  16804. var _default = {
  16805. // statusBar
  16806. statusBar: {
  16807. bgColor: 'transparent'
  16808. }
  16809. };
  16810. exports.default = _default;
  16811. /***/ }),
  16812. /* 136 */
  16813. /*!****************************************************************************!*\
  16814. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/steps.js ***!
  16815. \****************************************************************************/
  16816. /*! no static exports found */
  16817. /***/ (function(module, exports, __webpack_require__) {
  16818. "use strict";
  16819. Object.defineProperty(exports, "__esModule", {
  16820. value: true
  16821. });
  16822. exports.default = void 0;
  16823. /*
  16824. * @Author : LQ
  16825. * @Description :
  16826. * @version : 1.0
  16827. * @Date : 2021-08-20 16:44:21
  16828. * @LastAuthor : LQ
  16829. * @lastTime : 2021-08-20 17:12:37
  16830. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  16831. */
  16832. var _default = {
  16833. // steps组件
  16834. steps: {
  16835. direction: 'row',
  16836. current: 0,
  16837. activeColor: '#3c9cff',
  16838. inactiveColor: '#969799',
  16839. activeIcon: '',
  16840. inactiveIcon: '',
  16841. dot: false
  16842. }
  16843. };
  16844. exports.default = _default;
  16845. /***/ }),
  16846. /* 137 */
  16847. /*!********************************************************************************!*\
  16848. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/stepsItem.js ***!
  16849. \********************************************************************************/
  16850. /*! no static exports found */
  16851. /***/ (function(module, exports, __webpack_require__) {
  16852. "use strict";
  16853. Object.defineProperty(exports, "__esModule", {
  16854. value: true
  16855. });
  16856. exports.default = void 0;
  16857. /*
  16858. * @Author : LQ
  16859. * @Description :
  16860. * @version : 1.0
  16861. * @Date : 2021-08-20 16:44:21
  16862. * @LastAuthor : LQ
  16863. * @lastTime : 2021-08-20 17:12:55
  16864. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  16865. */
  16866. var _default = {
  16867. // steps-item组件
  16868. stepsItem: {
  16869. title: '',
  16870. desc: '',
  16871. iconSize: 17,
  16872. error: false
  16873. }
  16874. };
  16875. exports.default = _default;
  16876. /***/ }),
  16877. /* 138 */
  16878. /*!*****************************************************************************!*\
  16879. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/sticky.js ***!
  16880. \*****************************************************************************/
  16881. /*! no static exports found */
  16882. /***/ (function(module, exports, __webpack_require__) {
  16883. "use strict";
  16884. Object.defineProperty(exports, "__esModule", {
  16885. value: true
  16886. });
  16887. exports.default = void 0;
  16888. /*
  16889. * @Author : LQ
  16890. * @Description :
  16891. * @version : 1.0
  16892. * @Date : 2021-08-20 16:44:21
  16893. * @LastAuthor : LQ
  16894. * @lastTime : 2021-08-20 17:01:30
  16895. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  16896. */
  16897. var _default = {
  16898. // sticky组件
  16899. sticky: {
  16900. offsetTop: 0,
  16901. customNavHeight: 0,
  16902. disabled: false,
  16903. bgColor: 'transparent',
  16904. zIndex: '',
  16905. index: ''
  16906. }
  16907. };
  16908. exports.default = _default;
  16909. /***/ }),
  16910. /* 139 */
  16911. /*!*********************************************************************************!*\
  16912. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/subsection.js ***!
  16913. \*********************************************************************************/
  16914. /*! no static exports found */
  16915. /***/ (function(module, exports, __webpack_require__) {
  16916. "use strict";
  16917. Object.defineProperty(exports, "__esModule", {
  16918. value: true
  16919. });
  16920. exports.default = void 0;
  16921. /*
  16922. * @Author : LQ
  16923. * @Description :
  16924. * @version : 1.0
  16925. * @Date : 2021-08-20 16:44:21
  16926. * @LastAuthor : LQ
  16927. * @lastTime : 2021-08-20 17:12:20
  16928. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  16929. */
  16930. var _default = {
  16931. // subsection组件
  16932. subsection: {
  16933. list: [],
  16934. current: 0,
  16935. activeColor: '#3c9cff',
  16936. inactiveColor: '#303133',
  16937. mode: 'button',
  16938. fontSize: 12,
  16939. bold: true,
  16940. bgColor: '#eeeeef',
  16941. keyName: 'name'
  16942. }
  16943. };
  16944. exports.default = _default;
  16945. /***/ }),
  16946. /* 140 */
  16947. /*!**********************************************************************************!*\
  16948. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/swipeAction.js ***!
  16949. \**********************************************************************************/
  16950. /*! no static exports found */
  16951. /***/ (function(module, exports, __webpack_require__) {
  16952. "use strict";
  16953. Object.defineProperty(exports, "__esModule", {
  16954. value: true
  16955. });
  16956. exports.default = void 0;
  16957. /*
  16958. * @Author : LQ
  16959. * @Description :
  16960. * @version : 1.0
  16961. * @Date : 2021-08-20 16:44:21
  16962. * @LastAuthor : LQ
  16963. * @lastTime : 2021-08-20 17:00:42
  16964. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  16965. */
  16966. var _default = {
  16967. // swipe-action组件
  16968. swipeAction: {
  16969. autoClose: true
  16970. }
  16971. };
  16972. exports.default = _default;
  16973. /***/ }),
  16974. /* 141 */
  16975. /*!**************************************************************************************!*\
  16976. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/swipeActionItem.js ***!
  16977. \**************************************************************************************/
  16978. /*! no static exports found */
  16979. /***/ (function(module, exports, __webpack_require__) {
  16980. "use strict";
  16981. Object.defineProperty(exports, "__esModule", {
  16982. value: true
  16983. });
  16984. exports.default = void 0;
  16985. /*
  16986. * @Author : LQ
  16987. * @Description :
  16988. * @version : 1.0
  16989. * @Date : 2021-08-20 16:44:21
  16990. * @LastAuthor : LQ
  16991. * @lastTime : 2021-08-20 17:01:13
  16992. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  16993. */
  16994. var _default = {
  16995. // swipeActionItem 组件
  16996. swipeActionItem: {
  16997. show: false,
  16998. name: '',
  16999. disabled: false,
  17000. threshold: 20,
  17001. autoClose: true,
  17002. options: [],
  17003. duration: 300
  17004. }
  17005. };
  17006. exports.default = _default;
  17007. /***/ }),
  17008. /* 142 */
  17009. /*!*****************************************************************************!*\
  17010. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/swiper.js ***!
  17011. \*****************************************************************************/
  17012. /*! no static exports found */
  17013. /***/ (function(module, exports, __webpack_require__) {
  17014. "use strict";
  17015. Object.defineProperty(exports, "__esModule", {
  17016. value: true
  17017. });
  17018. exports.default = void 0;
  17019. /*
  17020. * @Author : LQ
  17021. * @Description :
  17022. * @version : 1.0
  17023. * @Date : 2021-08-20 16:44:21
  17024. * @LastAuthor : LQ
  17025. * @lastTime : 2021-08-20 17:21:38
  17026. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17027. */
  17028. var _default = {
  17029. // swiper 组件
  17030. swiper: {
  17031. list: function list() {
  17032. return [];
  17033. },
  17034. indicator: false,
  17035. indicatorActiveColor: '#FFFFFF',
  17036. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17037. indicatorStyle: '',
  17038. indicatorMode: 'line',
  17039. autoplay: true,
  17040. current: 0,
  17041. currentItemId: '',
  17042. interval: 3000,
  17043. duration: 300,
  17044. circular: false,
  17045. previousMargin: 0,
  17046. nextMargin: 0,
  17047. acceleration: false,
  17048. displayMultipleItems: 1,
  17049. easingFunction: 'default',
  17050. keyName: 'url',
  17051. imgMode: 'aspectFill',
  17052. height: 130,
  17053. bgColor: '#f3f4f6',
  17054. radius: 4,
  17055. loading: false,
  17056. showTitle: false
  17057. }
  17058. };
  17059. exports.default = _default;
  17060. /***/ }),
  17061. /* 143 */
  17062. /*!***************************************************************************************!*\
  17063. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/swipterIndicator.js ***!
  17064. \***************************************************************************************/
  17065. /*! no static exports found */
  17066. /***/ (function(module, exports, __webpack_require__) {
  17067. "use strict";
  17068. Object.defineProperty(exports, "__esModule", {
  17069. value: true
  17070. });
  17071. exports.default = void 0;
  17072. /*
  17073. * @Author : LQ
  17074. * @Description :
  17075. * @version : 1.0
  17076. * @Date : 2021-08-20 16:44:21
  17077. * @LastAuthor : LQ
  17078. * @lastTime : 2021-08-20 17:22:07
  17079. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17080. */
  17081. var _default = {
  17082. // swiperIndicator 组件
  17083. swiperIndicator: {
  17084. length: 0,
  17085. current: 0,
  17086. indicatorActiveColor: '',
  17087. indicatorInactiveColor: '',
  17088. indicatorMode: 'line'
  17089. }
  17090. };
  17091. exports.default = _default;
  17092. /***/ }),
  17093. /* 144 */
  17094. /*!*****************************************************************************!*\
  17095. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/switch.js ***!
  17096. \*****************************************************************************/
  17097. /*! no static exports found */
  17098. /***/ (function(module, exports, __webpack_require__) {
  17099. "use strict";
  17100. Object.defineProperty(exports, "__esModule", {
  17101. value: true
  17102. });
  17103. exports.default = void 0;
  17104. /*
  17105. * @Author : LQ
  17106. * @Description :
  17107. * @version : 1.0
  17108. * @Date : 2021-08-20 16:44:21
  17109. * @LastAuthor : LQ
  17110. * @lastTime : 2021-08-20 17:22:24
  17111. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17112. */
  17113. var _default = {
  17114. // switch
  17115. switch: {
  17116. loading: false,
  17117. disabled: false,
  17118. size: 25,
  17119. activeColor: '#2979ff',
  17120. inactiveColor: '#ffffff',
  17121. value: false,
  17122. activeValue: true,
  17123. inactiveValue: false,
  17124. asyncChange: false,
  17125. space: 0
  17126. }
  17127. };
  17128. exports.default = _default;
  17129. /***/ }),
  17130. /* 145 */
  17131. /*!*****************************************************************************!*\
  17132. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/tabbar.js ***!
  17133. \*****************************************************************************/
  17134. /*! no static exports found */
  17135. /***/ (function(module, exports, __webpack_require__) {
  17136. "use strict";
  17137. Object.defineProperty(exports, "__esModule", {
  17138. value: true
  17139. });
  17140. exports.default = void 0;
  17141. /*
  17142. * @Author : LQ
  17143. * @Description :
  17144. * @version : 1.0
  17145. * @Date : 2021-08-20 16:44:21
  17146. * @LastAuthor : LQ
  17147. * @lastTime : 2021-08-20 17:22:40
  17148. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17149. */
  17150. var _default = {
  17151. // tabbar
  17152. tabbar: {
  17153. value: null,
  17154. safeAreaInsetBottom: true,
  17155. border: true,
  17156. zIndex: 1,
  17157. activeColor: '#1989fa',
  17158. inactiveColor: '#7d7e80',
  17159. fixed: true,
  17160. placeholder: true
  17161. }
  17162. };
  17163. exports.default = _default;
  17164. /***/ }),
  17165. /* 146 */
  17166. /*!*********************************************************************************!*\
  17167. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/tabbarItem.js ***!
  17168. \*********************************************************************************/
  17169. /*! no static exports found */
  17170. /***/ (function(module, exports, __webpack_require__) {
  17171. "use strict";
  17172. Object.defineProperty(exports, "__esModule", {
  17173. value: true
  17174. });
  17175. exports.default = void 0;
  17176. /*
  17177. * @Author : LQ
  17178. * @Description :
  17179. * @version : 1.0
  17180. * @Date : 2021-08-20 16:44:21
  17181. * @LastAuthor : LQ
  17182. * @lastTime : 2021-08-20 17:22:55
  17183. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17184. */
  17185. var _default = {
  17186. //
  17187. tabbarItem: {
  17188. name: null,
  17189. icon: '',
  17190. badge: null,
  17191. dot: false,
  17192. text: '',
  17193. badgeStyle: 'top: 6px;right:2px;'
  17194. }
  17195. };
  17196. exports.default = _default;
  17197. /***/ }),
  17198. /* 147 */
  17199. /*!***************************************************************************!*\
  17200. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/tabs.js ***!
  17201. \***************************************************************************/
  17202. /*! no static exports found */
  17203. /***/ (function(module, exports, __webpack_require__) {
  17204. "use strict";
  17205. Object.defineProperty(exports, "__esModule", {
  17206. value: true
  17207. });
  17208. exports.default = void 0;
  17209. /*
  17210. * @Author : LQ
  17211. * @Description :
  17212. * @version : 1.0
  17213. * @Date : 2021-08-20 16:44:21
  17214. * @LastAuthor : LQ
  17215. * @lastTime : 2021-08-20 17:23:14
  17216. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17217. */
  17218. var _default = {
  17219. //
  17220. tabs: {
  17221. duration: 300,
  17222. list: function list() {
  17223. return [];
  17224. },
  17225. lineColor: '#3c9cff',
  17226. activeStyle: function activeStyle() {
  17227. return {
  17228. color: '#303133'
  17229. };
  17230. },
  17231. inactiveStyle: function inactiveStyle() {
  17232. return {
  17233. color: '#606266'
  17234. };
  17235. },
  17236. lineWidth: 20,
  17237. lineHeight: 3,
  17238. lineBgSize: 'cover',
  17239. itemStyle: function itemStyle() {
  17240. return {
  17241. height: '44px'
  17242. };
  17243. },
  17244. scrollable: true,
  17245. current: 0,
  17246. keyName: 'name'
  17247. }
  17248. };
  17249. exports.default = _default;
  17250. /***/ }),
  17251. /* 148 */
  17252. /*!**************************************************************************!*\
  17253. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/tag.js ***!
  17254. \**************************************************************************/
  17255. /*! no static exports found */
  17256. /***/ (function(module, exports, __webpack_require__) {
  17257. "use strict";
  17258. Object.defineProperty(exports, "__esModule", {
  17259. value: true
  17260. });
  17261. exports.default = void 0;
  17262. /*
  17263. * @Author : LQ
  17264. * @Description :
  17265. * @version : 1.0
  17266. * @Date : 2021-08-20 16:44:21
  17267. * @LastAuthor : LQ
  17268. * @lastTime : 2021-08-20 17:23:37
  17269. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17270. */
  17271. var _default = {
  17272. // tag 组件
  17273. tag: {
  17274. type: 'primary',
  17275. disabled: false,
  17276. size: 'medium',
  17277. shape: 'square',
  17278. text: '',
  17279. bgColor: '',
  17280. color: '',
  17281. borderColor: '',
  17282. closeColor: '#C6C7CB',
  17283. name: '',
  17284. plainFill: false,
  17285. plain: false,
  17286. closable: false,
  17287. show: true,
  17288. icon: ''
  17289. }
  17290. };
  17291. exports.default = _default;
  17292. /***/ }),
  17293. /* 149 */
  17294. /*!***************************************************************************!*\
  17295. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/text.js ***!
  17296. \***************************************************************************/
  17297. /*! no static exports found */
  17298. /***/ (function(module, exports, __webpack_require__) {
  17299. "use strict";
  17300. Object.defineProperty(exports, "__esModule", {
  17301. value: true
  17302. });
  17303. exports.default = void 0;
  17304. /*
  17305. * @Author : LQ
  17306. * @Description :
  17307. * @version : 1.0
  17308. * @Date : 2021-08-20 16:44:21
  17309. * @LastAuthor : LQ
  17310. * @lastTime : 2021-08-20 17:23:58
  17311. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17312. */
  17313. var _default = {
  17314. // text 组件
  17315. text: {
  17316. type: '',
  17317. show: true,
  17318. text: '',
  17319. prefixIcon: '',
  17320. suffixIcon: '',
  17321. mode: '',
  17322. href: '',
  17323. format: '',
  17324. call: false,
  17325. openType: '',
  17326. bold: false,
  17327. block: false,
  17328. lines: '',
  17329. color: '#303133',
  17330. size: 15,
  17331. iconStyle: function iconStyle() {
  17332. return {
  17333. fontSize: '15px'
  17334. };
  17335. },
  17336. decoration: 'none',
  17337. margin: 0,
  17338. lineHeight: '',
  17339. align: 'left',
  17340. wordWrap: 'normal'
  17341. }
  17342. };
  17343. exports.default = _default;
  17344. /***/ }),
  17345. /* 150 */
  17346. /*!*******************************************************************************!*\
  17347. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/textarea.js ***!
  17348. \*******************************************************************************/
  17349. /*! no static exports found */
  17350. /***/ (function(module, exports, __webpack_require__) {
  17351. "use strict";
  17352. Object.defineProperty(exports, "__esModule", {
  17353. value: true
  17354. });
  17355. exports.default = void 0;
  17356. /*
  17357. * @Author : LQ
  17358. * @Description :
  17359. * @version : 1.0
  17360. * @Date : 2021-08-20 16:44:21
  17361. * @LastAuthor : LQ
  17362. * @lastTime : 2021-08-20 17:24:32
  17363. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17364. */
  17365. var _default = {
  17366. // textarea 组件
  17367. textarea: {
  17368. value: '',
  17369. placeholder: '',
  17370. placeholderClass: 'textarea-placeholder',
  17371. placeholderStyle: 'color: #c0c4cc',
  17372. height: 70,
  17373. confirmType: 'done',
  17374. disabled: false,
  17375. count: false,
  17376. focus: false,
  17377. autoHeight: false,
  17378. fixed: false,
  17379. cursorSpacing: 0,
  17380. cursor: '',
  17381. showConfirmBar: true,
  17382. selectionStart: -1,
  17383. selectionEnd: -1,
  17384. adjustPosition: true,
  17385. disableDefaultPadding: false,
  17386. holdKeyboard: false,
  17387. maxlength: 140,
  17388. border: 'surround',
  17389. formatter: null
  17390. }
  17391. };
  17392. exports.default = _default;
  17393. /***/ }),
  17394. /* 151 */
  17395. /*!****************************************************************************!*\
  17396. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/toast.js ***!
  17397. \****************************************************************************/
  17398. /*! no static exports found */
  17399. /***/ (function(module, exports, __webpack_require__) {
  17400. "use strict";
  17401. Object.defineProperty(exports, "__esModule", {
  17402. value: true
  17403. });
  17404. exports.default = void 0;
  17405. /*
  17406. * @Author : LQ
  17407. * @Description :
  17408. * @version : 1.0
  17409. * @Date : 2021-08-20 16:44:21
  17410. * @LastAuthor : LQ
  17411. * @lastTime : 2021-08-20 17:07:07
  17412. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17413. */
  17414. var _default = {
  17415. // toast组件
  17416. toast: {
  17417. zIndex: 10090,
  17418. loading: false,
  17419. text: '',
  17420. icon: '',
  17421. type: '',
  17422. loadingMode: '',
  17423. show: '',
  17424. overlay: false,
  17425. position: 'center',
  17426. params: function params() {},
  17427. duration: 2000,
  17428. isTab: false,
  17429. url: '',
  17430. callback: null,
  17431. back: false
  17432. }
  17433. };
  17434. exports.default = _default;
  17435. /***/ }),
  17436. /* 152 */
  17437. /*!******************************************************************************!*\
  17438. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/toolbar.js ***!
  17439. \******************************************************************************/
  17440. /*! no static exports found */
  17441. /***/ (function(module, exports, __webpack_require__) {
  17442. "use strict";
  17443. Object.defineProperty(exports, "__esModule", {
  17444. value: true
  17445. });
  17446. exports.default = void 0;
  17447. /*
  17448. * @Author : LQ
  17449. * @Description :
  17450. * @version : 1.0
  17451. * @Date : 2021-08-20 16:44:21
  17452. * @LastAuthor : LQ
  17453. * @lastTime : 2021-08-20 17:24:55
  17454. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17455. */
  17456. var _default = {
  17457. // toolbar 组件
  17458. toolbar: {
  17459. show: true,
  17460. cancelText: '取消',
  17461. confirmText: '确认',
  17462. cancelColor: '#909193',
  17463. confirmColor: '#3c9cff',
  17464. title: ''
  17465. }
  17466. };
  17467. exports.default = _default;
  17468. /***/ }),
  17469. /* 153 */
  17470. /*!******************************************************************************!*\
  17471. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/tooltip.js ***!
  17472. \******************************************************************************/
  17473. /*! no static exports found */
  17474. /***/ (function(module, exports, __webpack_require__) {
  17475. "use strict";
  17476. Object.defineProperty(exports, "__esModule", {
  17477. value: true
  17478. });
  17479. exports.default = void 0;
  17480. /*
  17481. * @Author : LQ
  17482. * @Description :
  17483. * @version : 1.0
  17484. * @Date : 2021-08-20 16:44:21
  17485. * @LastAuthor : LQ
  17486. * @lastTime : 2021-08-20 17:25:14
  17487. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17488. */
  17489. var _default = {
  17490. // tooltip 组件
  17491. tooltip: {
  17492. text: '',
  17493. copyText: '',
  17494. size: 14,
  17495. color: '#606266',
  17496. bgColor: 'transparent',
  17497. direction: 'top',
  17498. zIndex: 10071,
  17499. showCopy: true,
  17500. buttons: function buttons() {
  17501. return [];
  17502. },
  17503. overlay: true,
  17504. showToast: true
  17505. }
  17506. };
  17507. exports.default = _default;
  17508. /***/ }),
  17509. /* 154 */
  17510. /*!*********************************************************************************!*\
  17511. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/transition.js ***!
  17512. \*********************************************************************************/
  17513. /*! no static exports found */
  17514. /***/ (function(module, exports, __webpack_require__) {
  17515. "use strict";
  17516. Object.defineProperty(exports, "__esModule", {
  17517. value: true
  17518. });
  17519. exports.default = void 0;
  17520. /*
  17521. * @Author : LQ
  17522. * @Description :
  17523. * @version : 1.0
  17524. * @Date : 2021-08-20 16:44:21
  17525. * @LastAuthor : LQ
  17526. * @lastTime : 2021-08-20 16:59:00
  17527. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17528. */
  17529. var _default = {
  17530. // transition动画组件的props
  17531. transition: {
  17532. show: false,
  17533. mode: 'fade',
  17534. duration: '300',
  17535. timingFunction: 'ease-out'
  17536. }
  17537. };
  17538. exports.default = _default;
  17539. /***/ }),
  17540. /* 155 */
  17541. /*!*****************************************************************************!*\
  17542. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/props/upload.js ***!
  17543. \*****************************************************************************/
  17544. /*! no static exports found */
  17545. /***/ (function(module, exports, __webpack_require__) {
  17546. "use strict";
  17547. Object.defineProperty(exports, "__esModule", {
  17548. value: true
  17549. });
  17550. exports.default = void 0;
  17551. /*
  17552. * @Author : LQ
  17553. * @Description :
  17554. * @version : 1.0
  17555. * @Date : 2021-08-20 16:44:21
  17556. * @LastAuthor : LQ
  17557. * @lastTime : 2021-08-20 17:09:50
  17558. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17559. */
  17560. var _default = {
  17561. // upload组件
  17562. upload: {
  17563. accept: 'image',
  17564. capture: function capture() {
  17565. return ['album', 'camera'];
  17566. },
  17567. compressed: true,
  17568. camera: 'back',
  17569. maxDuration: 60,
  17570. uploadIcon: 'camera-fill',
  17571. uploadIconColor: '#D3D4D6',
  17572. useBeforeRead: false,
  17573. previewFullImage: true,
  17574. maxCount: 52,
  17575. disabled: false,
  17576. imageMode: 'aspectFill',
  17577. name: '',
  17578. sizeType: function sizeType() {
  17579. return ['original', 'compressed'];
  17580. },
  17581. multiple: false,
  17582. deletable: true,
  17583. maxSize: Number.MAX_VALUE,
  17584. fileList: function fileList() {
  17585. return [];
  17586. },
  17587. uploadText: '',
  17588. width: 80,
  17589. height: 80,
  17590. previewImage: true
  17591. }
  17592. };
  17593. exports.default = _default;
  17594. /***/ }),
  17595. /* 156 */
  17596. /*!***********************************************************************!*\
  17597. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/config/zIndex.js ***!
  17598. \***********************************************************************/
  17599. /*! no static exports found */
  17600. /***/ (function(module, exports, __webpack_require__) {
  17601. "use strict";
  17602. Object.defineProperty(exports, "__esModule", {
  17603. value: true
  17604. });
  17605. exports.default = void 0;
  17606. // uniapp在H5中各API的z-index值如下:
  17607. /**
  17608. * actionsheet: 999
  17609. * modal: 999
  17610. * navigate: 998
  17611. * tabbar: 998
  17612. * toast: 999
  17613. */
  17614. var _default = {
  17615. toast: 10090,
  17616. noNetwork: 10080,
  17617. // popup包含popup,actionsheet,keyboard,picker的值
  17618. popup: 10075,
  17619. mask: 10070,
  17620. navbar: 980,
  17621. topTips: 975,
  17622. sticky: 970,
  17623. indexListSticky: 965
  17624. };
  17625. exports.default = _default;
  17626. /***/ }),
  17627. /* 157 */
  17628. /*!***************************************************************************!*\
  17629. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/function/platform.js ***!
  17630. \***************************************************************************/
  17631. /*! no static exports found */
  17632. /***/ (function(module, exports, __webpack_require__) {
  17633. "use strict";
  17634. Object.defineProperty(exports, "__esModule", {
  17635. value: true
  17636. });
  17637. exports.default = void 0;
  17638. /**
  17639. * 注意:
  17640. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17641. * module.exports = {
  17642. * transpileDependencies: ['uview-v2']
  17643. * }
  17644. */
  17645. var platform = 'none';
  17646. platform = 'vue2';
  17647. platform = 'weixin';
  17648. platform = 'mp';
  17649. var _default = platform;
  17650. exports.default = _default;
  17651. /***/ }),
  17652. /* 158 */,
  17653. /* 159 */,
  17654. /* 160 */,
  17655. /* 161 */,
  17656. /* 162 */,
  17657. /* 163 */,
  17658. /* 164 */,
  17659. /* 165 */,
  17660. /* 166 */,
  17661. /* 167 */,
  17662. /* 168 */,
  17663. /* 169 */,
  17664. /* 170 */,
  17665. /* 171 */,
  17666. /* 172 */,
  17667. /* 173 */,
  17668. /* 174 */,
  17669. /* 175 */,
  17670. /* 176 */,
  17671. /* 177 */,
  17672. /* 178 */,
  17673. /* 179 */,
  17674. /* 180 */,
  17675. /* 181 */,
  17676. /* 182 */,
  17677. /* 183 */,
  17678. /* 184 */,
  17679. /* 185 */,
  17680. /* 186 */,
  17681. /* 187 */,
  17682. /* 188 */,
  17683. /* 189 */,
  17684. /* 190 */,
  17685. /* 191 */,
  17686. /* 192 */,
  17687. /* 193 */,
  17688. /* 194 */,
  17689. /* 195 */,
  17690. /* 196 */,
  17691. /* 197 */,
  17692. /* 198 */,
  17693. /* 199 */,
  17694. /* 200 */,
  17695. /* 201 */,
  17696. /* 202 */,
  17697. /* 203 */,
  17698. /* 204 */,
  17699. /* 205 */,
  17700. /* 206 */,
  17701. /* 207 */,
  17702. /* 208 */,
  17703. /* 209 */,
  17704. /* 210 */,
  17705. /* 211 */,
  17706. /* 212 */,
  17707. /* 213 */,
  17708. /* 214 */,
  17709. /* 215 */,
  17710. /* 216 */,
  17711. /* 217 */,
  17712. /* 218 */,
  17713. /* 219 */,
  17714. /* 220 */,
  17715. /* 221 */,
  17716. /* 222 */,
  17717. /* 223 */,
  17718. /* 224 */,
  17719. /* 225 */,
  17720. /* 226 */,
  17721. /* 227 */,
  17722. /* 228 */,
  17723. /* 229 */,
  17724. /* 230 */,
  17725. /* 231 */,
  17726. /* 232 */,
  17727. /* 233 */,
  17728. /* 234 */,
  17729. /* 235 */,
  17730. /* 236 */,
  17731. /* 237 */,
  17732. /* 238 */,
  17733. /* 239 */,
  17734. /* 240 */,
  17735. /* 241 */,
  17736. /* 242 */,
  17737. /* 243 */,
  17738. /* 244 */,
  17739. /* 245 */,
  17740. /* 246 */,
  17741. /* 247 */,
  17742. /* 248 */,
  17743. /* 249 */,
  17744. /* 250 */,
  17745. /* 251 */,
  17746. /* 252 */,
  17747. /* 253 */,
  17748. /* 254 */,
  17749. /* 255 */,
  17750. /* 256 */,
  17751. /* 257 */,
  17752. /* 258 */,
  17753. /* 259 */
  17754. /*!******************************************************************************!*\
  17755. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-navbar/props.js ***!
  17756. \******************************************************************************/
  17757. /*! no static exports found */
  17758. /***/ (function(module, exports, __webpack_require__) {
  17759. "use strict";
  17760. /* WEBPACK VAR INJECTION */(function(uni) {
  17761. Object.defineProperty(exports, "__esModule", {
  17762. value: true
  17763. });
  17764. exports.default = void 0;
  17765. var _default = {
  17766. props: {
  17767. // 是否开启顶部安全区适配
  17768. safeAreaInsetTop: {
  17769. type: Boolean,
  17770. default: uni.$u.props.navbar.safeAreaInsetTop
  17771. },
  17772. // 固定在顶部时,是否生成一个等高元素,以防止塌陷
  17773. placeholder: {
  17774. type: Boolean,
  17775. default: uni.$u.props.navbar.placeholder
  17776. },
  17777. // 是否固定在顶部
  17778. fixed: {
  17779. type: Boolean,
  17780. default: uni.$u.props.navbar.fixed
  17781. },
  17782. // 是否显示下边框
  17783. border: {
  17784. type: Boolean,
  17785. default: uni.$u.props.navbar.border
  17786. },
  17787. // 左边的图标
  17788. leftIcon: {
  17789. type: String,
  17790. default: uni.$u.props.navbar.leftIcon
  17791. },
  17792. // 左边的提示文字
  17793. leftText: {
  17794. type: String,
  17795. default: uni.$u.props.navbar.leftText
  17796. },
  17797. // 左右的提示文字
  17798. rightText: {
  17799. type: String,
  17800. default: uni.$u.props.navbar.rightText
  17801. },
  17802. // 右边的图标
  17803. rightIcon: {
  17804. type: String,
  17805. default: uni.$u.props.navbar.rightIcon
  17806. },
  17807. // 标题
  17808. title: {
  17809. type: [String, Number],
  17810. default: uni.$u.props.navbar.title
  17811. },
  17812. // 背景颜色
  17813. bgColor: {
  17814. type: String,
  17815. default: uni.$u.props.navbar.bgColor
  17816. },
  17817. // 标题的宽度
  17818. titleWidth: {
  17819. type: [String, Number],
  17820. default: uni.$u.props.navbar.titleWidth
  17821. },
  17822. // 导航栏高度
  17823. height: {
  17824. type: [String, Number],
  17825. default: uni.$u.props.navbar.height
  17826. },
  17827. // 左侧返回图标的大小
  17828. leftIconSize: {
  17829. type: [String, Number],
  17830. default: uni.$u.props.navbar.leftIconSize
  17831. },
  17832. // 左侧返回图标的颜色
  17833. leftIconColor: {
  17834. type: String,
  17835. default: uni.$u.props.navbar.leftIconColor
  17836. },
  17837. // 点击左侧区域(返回图标),是否自动返回上一页
  17838. autoBack: {
  17839. type: Boolean,
  17840. default: uni.$u.props.navbar.autoBack
  17841. },
  17842. // 标题的样式,对象或字符串
  17843. titleStyle: {
  17844. type: [String, Object],
  17845. default: uni.$u.props.navbar.titleStyle
  17846. }
  17847. }
  17848. };
  17849. exports.default = _default;
  17850. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  17851. /***/ }),
  17852. /* 260 */,
  17853. /* 261 */,
  17854. /* 262 */,
  17855. /* 263 */,
  17856. /* 264 */,
  17857. /* 265 */,
  17858. /* 266 */,
  17859. /* 267 */
  17860. /*!****************************************************************************!*\
  17861. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-icon/icons.js ***!
  17862. \****************************************************************************/
  17863. /*! no static exports found */
  17864. /***/ (function(module, exports, __webpack_require__) {
  17865. "use strict";
  17866. Object.defineProperty(exports, "__esModule", {
  17867. value: true
  17868. });
  17869. exports.default = void 0;
  17870. var _default = {
  17871. 'uicon-level': "\uE693",
  17872. 'uicon-column-line': "\uE68E",
  17873. 'uicon-checkbox-mark': "\uE807",
  17874. 'uicon-folder': "\uE7F5",
  17875. 'uicon-movie': "\uE7F6",
  17876. 'uicon-star-fill': "\uE669",
  17877. 'uicon-star': "\uE65F",
  17878. 'uicon-phone-fill': "\uE64F",
  17879. 'uicon-phone': "\uE622",
  17880. 'uicon-apple-fill': "\uE881",
  17881. 'uicon-chrome-circle-fill': "\uE885",
  17882. 'uicon-backspace': "\uE67B",
  17883. 'uicon-attach': "\uE632",
  17884. 'uicon-cut': "\uE948",
  17885. 'uicon-empty-car': "\uE602",
  17886. 'uicon-empty-coupon': "\uE682",
  17887. 'uicon-empty-address': "\uE646",
  17888. 'uicon-empty-favor': "\uE67C",
  17889. 'uicon-empty-permission': "\uE686",
  17890. 'uicon-empty-news': "\uE687",
  17891. 'uicon-empty-search': "\uE664",
  17892. 'uicon-github-circle-fill': "\uE887",
  17893. 'uicon-rmb': "\uE608",
  17894. 'uicon-person-delete-fill': "\uE66A",
  17895. 'uicon-reload': "\uE788",
  17896. 'uicon-order': "\uE68F",
  17897. 'uicon-server-man': "\uE6BC",
  17898. 'uicon-search': "\uE62A",
  17899. 'uicon-fingerprint': "\uE955",
  17900. 'uicon-more-dot-fill': "\uE630",
  17901. 'uicon-scan': "\uE662",
  17902. 'uicon-share-square': "\uE60B",
  17903. 'uicon-map': "\uE61D",
  17904. 'uicon-map-fill': "\uE64E",
  17905. 'uicon-tags': "\uE629",
  17906. 'uicon-tags-fill': "\uE651",
  17907. 'uicon-bookmark-fill': "\uE63B",
  17908. 'uicon-bookmark': "\uE60A",
  17909. 'uicon-eye': "\uE613",
  17910. 'uicon-eye-fill': "\uE641",
  17911. 'uicon-mic': "\uE64A",
  17912. 'uicon-mic-off': "\uE649",
  17913. 'uicon-calendar': "\uE66E",
  17914. 'uicon-calendar-fill': "\uE634",
  17915. 'uicon-trash': "\uE623",
  17916. 'uicon-trash-fill': "\uE658",
  17917. 'uicon-play-left': "\uE66D",
  17918. 'uicon-play-right': "\uE610",
  17919. 'uicon-minus': "\uE618",
  17920. 'uicon-plus': "\uE62D",
  17921. 'uicon-info': "\uE653",
  17922. 'uicon-info-circle': "\uE7D2",
  17923. 'uicon-info-circle-fill': "\uE64B",
  17924. 'uicon-question': "\uE715",
  17925. 'uicon-error': "\uE6D3",
  17926. 'uicon-close': "\uE685",
  17927. 'uicon-checkmark': "\uE6A8",
  17928. 'uicon-android-circle-fill': "\uE67E",
  17929. 'uicon-android-fill': "\uE67D",
  17930. 'uicon-ie': "\uE87B",
  17931. 'uicon-IE-circle-fill': "\uE889",
  17932. 'uicon-google': "\uE87A",
  17933. 'uicon-google-circle-fill': "\uE88A",
  17934. 'uicon-setting-fill': "\uE872",
  17935. 'uicon-setting': "\uE61F",
  17936. 'uicon-minus-square-fill': "\uE855",
  17937. 'uicon-plus-square-fill': "\uE856",
  17938. 'uicon-heart': "\uE7DF",
  17939. 'uicon-heart-fill': "\uE851",
  17940. 'uicon-camera': "\uE7D7",
  17941. 'uicon-camera-fill': "\uE870",
  17942. 'uicon-more-circle': "\uE63E",
  17943. 'uicon-more-circle-fill': "\uE645",
  17944. 'uicon-chat': "\uE620",
  17945. 'uicon-chat-fill': "\uE61E",
  17946. 'uicon-bag-fill': "\uE617",
  17947. 'uicon-bag': "\uE619",
  17948. 'uicon-error-circle-fill': "\uE62C",
  17949. 'uicon-error-circle': "\uE624",
  17950. 'uicon-close-circle': "\uE63F",
  17951. 'uicon-close-circle-fill': "\uE637",
  17952. 'uicon-checkmark-circle': "\uE63D",
  17953. 'uicon-checkmark-circle-fill': "\uE635",
  17954. 'uicon-question-circle-fill': "\uE666",
  17955. 'uicon-question-circle': "\uE625",
  17956. 'uicon-share': "\uE631",
  17957. 'uicon-share-fill': "\uE65E",
  17958. 'uicon-shopping-cart': "\uE621",
  17959. 'uicon-shopping-cart-fill': "\uE65D",
  17960. 'uicon-bell': "\uE609",
  17961. 'uicon-bell-fill': "\uE640",
  17962. 'uicon-list': "\uE650",
  17963. 'uicon-list-dot': "\uE616",
  17964. 'uicon-zhihu': "\uE6BA",
  17965. 'uicon-zhihu-circle-fill': "\uE709",
  17966. 'uicon-zhifubao': "\uE6B9",
  17967. 'uicon-zhifubao-circle-fill': "\uE6B8",
  17968. 'uicon-weixin-circle-fill': "\uE6B1",
  17969. 'uicon-weixin-fill': "\uE6B2",
  17970. 'uicon-twitter-circle-fill': "\uE6AB",
  17971. 'uicon-twitter': "\uE6AA",
  17972. 'uicon-taobao-circle-fill': "\uE6A7",
  17973. 'uicon-taobao': "\uE6A6",
  17974. 'uicon-weibo-circle-fill': "\uE6A5",
  17975. 'uicon-weibo': "\uE6A4",
  17976. 'uicon-qq-fill': "\uE6A1",
  17977. 'uicon-qq-circle-fill': "\uE6A0",
  17978. 'uicon-moments-circel-fill': "\uE69A",
  17979. 'uicon-moments': "\uE69B",
  17980. 'uicon-qzone': "\uE695",
  17981. 'uicon-qzone-circle-fill': "\uE696",
  17982. 'uicon-baidu-circle-fill': "\uE680",
  17983. 'uicon-baidu': "\uE681",
  17984. 'uicon-facebook-circle-fill': "\uE68A",
  17985. 'uicon-facebook': "\uE689",
  17986. 'uicon-car': "\uE60C",
  17987. 'uicon-car-fill': "\uE636",
  17988. 'uicon-warning-fill': "\uE64D",
  17989. 'uicon-warning': "\uE694",
  17990. 'uicon-clock-fill': "\uE638",
  17991. 'uicon-clock': "\uE60F",
  17992. 'uicon-edit-pen': "\uE612",
  17993. 'uicon-edit-pen-fill': "\uE66B",
  17994. 'uicon-email': "\uE611",
  17995. 'uicon-email-fill': "\uE642",
  17996. 'uicon-minus-circle': "\uE61B",
  17997. 'uicon-minus-circle-fill': "\uE652",
  17998. 'uicon-plus-circle': "\uE62E",
  17999. 'uicon-plus-circle-fill': "\uE661",
  18000. 'uicon-file-text': "\uE663",
  18001. 'uicon-file-text-fill': "\uE665",
  18002. 'uicon-pushpin': "\uE7E3",
  18003. 'uicon-pushpin-fill': "\uE86E",
  18004. 'uicon-grid': "\uE673",
  18005. 'uicon-grid-fill': "\uE678",
  18006. 'uicon-play-circle': "\uE647",
  18007. 'uicon-play-circle-fill': "\uE655",
  18008. 'uicon-pause-circle-fill': "\uE654",
  18009. 'uicon-pause': "\uE8FA",
  18010. 'uicon-pause-circle': "\uE643",
  18011. 'uicon-eye-off': "\uE648",
  18012. 'uicon-eye-off-outline': "\uE62B",
  18013. 'uicon-gift-fill': "\uE65C",
  18014. 'uicon-gift': "\uE65B",
  18015. 'uicon-rmb-circle-fill': "\uE657",
  18016. 'uicon-rmb-circle': "\uE677",
  18017. 'uicon-kefu-ermai': "\uE656",
  18018. 'uicon-server-fill': "\uE751",
  18019. 'uicon-coupon-fill': "\uE8C4",
  18020. 'uicon-coupon': "\uE8AE",
  18021. 'uicon-integral': "\uE704",
  18022. 'uicon-integral-fill': "\uE703",
  18023. 'uicon-home-fill': "\uE964",
  18024. 'uicon-home': "\uE965",
  18025. 'uicon-hourglass-half-fill': "\uE966",
  18026. 'uicon-hourglass': "\uE967",
  18027. 'uicon-account': "\uE628",
  18028. 'uicon-plus-people-fill': "\uE626",
  18029. 'uicon-minus-people-fill': "\uE615",
  18030. 'uicon-account-fill': "\uE614",
  18031. 'uicon-thumb-down-fill': "\uE726",
  18032. 'uicon-thumb-down': "\uE727",
  18033. 'uicon-thumb-up': "\uE733",
  18034. 'uicon-thumb-up-fill': "\uE72F",
  18035. 'uicon-lock-fill': "\uE979",
  18036. 'uicon-lock-open': "\uE973",
  18037. 'uicon-lock-opened-fill': "\uE974",
  18038. 'uicon-lock': "\uE97A",
  18039. 'uicon-red-packet-fill': "\uE690",
  18040. 'uicon-photo-fill': "\uE98B",
  18041. 'uicon-photo': "\uE98D",
  18042. 'uicon-volume-off-fill': "\uE659",
  18043. 'uicon-volume-off': "\uE644",
  18044. 'uicon-volume-fill': "\uE670",
  18045. 'uicon-volume': "\uE633",
  18046. 'uicon-red-packet': "\uE691",
  18047. 'uicon-download': "\uE63C",
  18048. 'uicon-arrow-up-fill': "\uE6B0",
  18049. 'uicon-arrow-down-fill': "\uE600",
  18050. 'uicon-play-left-fill': "\uE675",
  18051. 'uicon-play-right-fill': "\uE676",
  18052. 'uicon-rewind-left-fill': "\uE679",
  18053. 'uicon-rewind-right-fill': "\uE67A",
  18054. 'uicon-arrow-downward': "\uE604",
  18055. 'uicon-arrow-leftward': "\uE601",
  18056. 'uicon-arrow-rightward': "\uE603",
  18057. 'uicon-arrow-upward': "\uE607",
  18058. 'uicon-arrow-down': "\uE60D",
  18059. 'uicon-arrow-right': "\uE605",
  18060. 'uicon-arrow-left': "\uE60E",
  18061. 'uicon-arrow-up': "\uE606",
  18062. 'uicon-skip-back-left': "\uE674",
  18063. 'uicon-skip-forward-right': "\uE672",
  18064. 'uicon-rewind-right': "\uE66F",
  18065. 'uicon-rewind-left': "\uE671",
  18066. 'uicon-arrow-right-double': "\uE68D",
  18067. 'uicon-arrow-left-double': "\uE68C",
  18068. 'uicon-wifi-off': "\uE668",
  18069. 'uicon-wifi': "\uE667",
  18070. 'uicon-empty-data': "\uE62F",
  18071. 'uicon-empty-history': "\uE684",
  18072. 'uicon-empty-list': "\uE68B",
  18073. 'uicon-empty-page': "\uE627",
  18074. 'uicon-empty-order': "\uE639",
  18075. 'uicon-man': "\uE697",
  18076. 'uicon-woman': "\uE69C",
  18077. 'uicon-man-add': "\uE61C",
  18078. 'uicon-man-add-fill': "\uE64C",
  18079. 'uicon-man-delete': "\uE61A",
  18080. 'uicon-man-delete-fill': "\uE66A",
  18081. 'uicon-zh': "\uE70A",
  18082. 'uicon-en': "\uE692"
  18083. };
  18084. exports.default = _default;
  18085. /***/ }),
  18086. /* 268 */
  18087. /*!****************************************************************************!*\
  18088. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-icon/props.js ***!
  18089. \****************************************************************************/
  18090. /*! no static exports found */
  18091. /***/ (function(module, exports, __webpack_require__) {
  18092. "use strict";
  18093. /* WEBPACK VAR INJECTION */(function(uni) {
  18094. Object.defineProperty(exports, "__esModule", {
  18095. value: true
  18096. });
  18097. exports.default = void 0;
  18098. var _default = {
  18099. props: {
  18100. // 图标类名
  18101. name: {
  18102. type: String,
  18103. default: uni.$u.props.icon.name
  18104. },
  18105. // 图标颜色,可接受主题色
  18106. color: {
  18107. type: String,
  18108. default: uni.$u.props.icon.color
  18109. },
  18110. // 字体大小,单位px
  18111. size: {
  18112. type: [String, Number],
  18113. default: uni.$u.props.icon.size
  18114. },
  18115. // 是否显示粗体
  18116. bold: {
  18117. type: Boolean,
  18118. default: uni.$u.props.icon.bold
  18119. },
  18120. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  18121. index: {
  18122. type: [String, Number],
  18123. default: uni.$u.props.icon.index
  18124. },
  18125. // 触摸图标时的类名
  18126. hoverClass: {
  18127. type: String,
  18128. default: uni.$u.props.icon.hoverClass
  18129. },
  18130. // 自定义扩展前缀,方便用户扩展自己的图标库
  18131. customPrefix: {
  18132. type: String,
  18133. default: uni.$u.props.icon.customPrefix
  18134. },
  18135. // 图标右边或者下面的文字
  18136. label: {
  18137. type: [String, Number],
  18138. default: uni.$u.props.icon.label
  18139. },
  18140. // label的位置,只能右边或者下边
  18141. labelPos: {
  18142. type: String,
  18143. default: uni.$u.props.icon.labelPos
  18144. },
  18145. // label的大小
  18146. labelSize: {
  18147. type: [String, Number],
  18148. default: uni.$u.props.icon.labelSize
  18149. },
  18150. // label的颜色
  18151. labelColor: {
  18152. type: String,
  18153. default: uni.$u.props.icon.labelColor
  18154. },
  18155. // label与图标的距离
  18156. space: {
  18157. type: [String, Number],
  18158. default: uni.$u.props.icon.space
  18159. },
  18160. // 图片的mode
  18161. imgMode: {
  18162. type: String,
  18163. default: uni.$u.props.icon.imgMode
  18164. },
  18165. // 用于显示图片小图标时,图片的宽度
  18166. width: {
  18167. type: [String, Number],
  18168. default: uni.$u.props.icon.width
  18169. },
  18170. // 用于显示图片小图标时,图片的高度
  18171. height: {
  18172. type: [String, Number],
  18173. default: uni.$u.props.icon.height
  18174. },
  18175. // 用于解决某些情况下,让图标垂直居中的用途
  18176. top: {
  18177. type: [String, Number],
  18178. default: uni.$u.props.icon.top
  18179. },
  18180. // 是否阻止事件传播
  18181. stop: {
  18182. type: Boolean,
  18183. default: uni.$u.props.icon.stop
  18184. }
  18185. }
  18186. };
  18187. exports.default = _default;
  18188. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18189. /***/ }),
  18190. /* 269 */,
  18191. /* 270 */,
  18192. /* 271 */,
  18193. /* 272 */,
  18194. /* 273 */,
  18195. /* 274 */,
  18196. /* 275 */,
  18197. /* 276 */
  18198. /*!******************************************************************************!*\
  18199. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-search/props.js ***!
  18200. \******************************************************************************/
  18201. /*! no static exports found */
  18202. /***/ (function(module, exports, __webpack_require__) {
  18203. "use strict";
  18204. /* WEBPACK VAR INJECTION */(function(uni) {
  18205. Object.defineProperty(exports, "__esModule", {
  18206. value: true
  18207. });
  18208. exports.default = void 0;
  18209. var _default = {
  18210. props: {
  18211. // 搜索框形状,round-圆形,square-方形
  18212. shape: {
  18213. type: String,
  18214. default: uni.$u.props.search.shape
  18215. },
  18216. // 搜索框背景色,默认值#f2f2f2
  18217. bgColor: {
  18218. type: String,
  18219. default: uni.$u.props.search.bgColor
  18220. },
  18221. // 占位提示文字
  18222. placeholder: {
  18223. type: String,
  18224. default: uni.$u.props.search.placeholder
  18225. },
  18226. // 是否启用清除控件
  18227. clearabled: {
  18228. type: Boolean,
  18229. default: uni.$u.props.search.clearabled
  18230. },
  18231. // 是否自动聚焦
  18232. focus: {
  18233. type: Boolean,
  18234. default: uni.$u.props.search.focus
  18235. },
  18236. // 是否在搜索框右侧显示取消按钮
  18237. showAction: {
  18238. type: Boolean,
  18239. default: uni.$u.props.search.showAction
  18240. },
  18241. // 右边控件的样式
  18242. actionStyle: {
  18243. type: Object,
  18244. default: uni.$u.props.search.actionStyle
  18245. },
  18246. // 取消按钮文字
  18247. actionText: {
  18248. type: String,
  18249. default: uni.$u.props.search.actionText
  18250. },
  18251. // 输入框内容对齐方式,可选值为 left|center|right
  18252. inputAlign: {
  18253. type: String,
  18254. default: uni.$u.props.search.inputAlign
  18255. },
  18256. // input输入框的样式,可以定义文字颜色,大小等,对象形式
  18257. inputStyle: {
  18258. type: Object,
  18259. default: uni.$u.props.search.inputStyle
  18260. },
  18261. // 是否启用输入框
  18262. disabled: {
  18263. type: Boolean,
  18264. default: uni.$u.props.search.disabled
  18265. },
  18266. // 边框颜色
  18267. borderColor: {
  18268. type: String,
  18269. default: uni.$u.props.search.borderColor
  18270. },
  18271. // 搜索图标的颜色,默认同输入框字体颜色
  18272. searchIconColor: {
  18273. type: String,
  18274. default: uni.$u.props.search.searchIconColor
  18275. },
  18276. // 输入框字体颜色
  18277. color: {
  18278. type: String,
  18279. default: uni.$u.props.search.color
  18280. },
  18281. // placeholder的颜色
  18282. placeholderColor: {
  18283. type: String,
  18284. default: uni.$u.props.search.placeholderColor
  18285. },
  18286. // 左边输入框的图标,可以为uView图标名称或图片路径
  18287. searchIcon: {
  18288. type: String,
  18289. default: uni.$u.props.search.searchIcon
  18290. },
  18291. searchIconSize: {
  18292. type: [Number, String],
  18293. default: uni.$u.props.search.searchIconSize
  18294. },
  18295. // 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
  18296. margin: {
  18297. type: String,
  18298. default: uni.$u.props.search.margin
  18299. },
  18300. // 开启showAction时,是否在input获取焦点时才显示
  18301. animation: {
  18302. type: Boolean,
  18303. default: uni.$u.props.search.animation
  18304. },
  18305. // 输入框的初始化内容
  18306. value: {
  18307. type: String,
  18308. default: uni.$u.props.search.value
  18309. },
  18310. // 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
  18311. maxlength: {
  18312. type: [String, Number],
  18313. default: uni.$u.props.search.maxlength
  18314. },
  18315. // 搜索框高度,单位px
  18316. height: {
  18317. type: [String, Number],
  18318. default: uni.$u.props.search.height
  18319. },
  18320. // 搜索框左侧文本
  18321. label: {
  18322. type: [String, Number, null],
  18323. default: uni.$u.props.search.label
  18324. }
  18325. }
  18326. };
  18327. exports.default = _default;
  18328. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18329. /***/ }),
  18330. /* 277 */,
  18331. /* 278 */,
  18332. /* 279 */,
  18333. /* 280 */,
  18334. /* 281 */,
  18335. /* 282 */,
  18336. /* 283 */,
  18337. /* 284 */
  18338. /*!******************************************************************************!*\
  18339. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-swiper/props.js ***!
  18340. \******************************************************************************/
  18341. /*! no static exports found */
  18342. /***/ (function(module, exports, __webpack_require__) {
  18343. "use strict";
  18344. /* WEBPACK VAR INJECTION */(function(uni) {
  18345. Object.defineProperty(exports, "__esModule", {
  18346. value: true
  18347. });
  18348. exports.default = void 0;
  18349. var _default = {
  18350. props: {
  18351. // 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
  18352. list: {
  18353. type: Array,
  18354. default: uni.$u.props.swiper.list
  18355. },
  18356. // 是否显示面板指示器
  18357. indicator: {
  18358. type: Boolean,
  18359. default: uni.$u.props.swiper.indicator
  18360. },
  18361. // 指示器非激活颜色
  18362. indicatorActiveColor: {
  18363. type: String,
  18364. default: uni.$u.props.swiper.indicatorActiveColor
  18365. },
  18366. // 指示器的激活颜色
  18367. indicatorInactiveColor: {
  18368. type: String,
  18369. default: uni.$u.props.swiper.indicatorInactiveColor
  18370. },
  18371. // 指示器样式,可通过bottom,left,right进行定位
  18372. indicatorStyle: {
  18373. type: [String, Object],
  18374. default: uni.$u.props.swiper.indicatorStyle
  18375. },
  18376. // 指示器模式,line-线型,dot-点型
  18377. indicatorMode: {
  18378. type: String,
  18379. default: uni.$u.props.swiper.indicatorMode
  18380. },
  18381. // 是否自动切换
  18382. autoplay: {
  18383. type: Boolean,
  18384. default: uni.$u.props.swiper.autoplay
  18385. },
  18386. // 当前所在滑块的 index
  18387. current: {
  18388. type: [String, Number],
  18389. default: uni.$u.props.swiper.current
  18390. },
  18391. // 当前所在滑块的 item-id ,不能与 current 被同时指定
  18392. currentItemId: {
  18393. type: String,
  18394. default: uni.$u.props.swiper.currentItemId
  18395. },
  18396. // 滑块自动切换时间间隔
  18397. interval: {
  18398. type: [String, Number],
  18399. default: uni.$u.props.swiper.interval
  18400. },
  18401. // 滑块切换过程所需时间
  18402. duration: {
  18403. type: [String, Number],
  18404. default: uni.$u.props.swiper.duration
  18405. },
  18406. // 播放到末尾后是否重新回到开头
  18407. circular: {
  18408. type: Boolean,
  18409. default: uni.$u.props.swiper.circular
  18410. },
  18411. // 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
  18412. previousMargin: {
  18413. type: [String, Number],
  18414. default: uni.$u.props.swiper.previousMargin
  18415. },
  18416. // 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
  18417. nextMargin: {
  18418. type: [String, Number],
  18419. default: uni.$u.props.swiper.nextMargin
  18420. },
  18421. // 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
  18422. acceleration: {
  18423. type: Boolean,
  18424. default: uni.$u.props.swiper.acceleration
  18425. },
  18426. // 同时显示的滑块数量,nvue、支付宝小程序不支持
  18427. displayMultipleItems: {
  18428. type: Number,
  18429. default: uni.$u.props.swiper.displayMultipleItems
  18430. },
  18431. // 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
  18432. // 只对微信小程序有效
  18433. easingFunction: {
  18434. type: String,
  18435. default: uni.$u.props.swiper.easingFunction
  18436. },
  18437. // list数组中指定对象的目标属性名
  18438. keyName: {
  18439. type: String,
  18440. default: uni.$u.props.swiper.keyName
  18441. },
  18442. // 图片的裁剪模式
  18443. imgMode: {
  18444. type: String,
  18445. default: uni.$u.props.swiper.imgMode
  18446. },
  18447. // 组件高度
  18448. height: {
  18449. type: [String, Number],
  18450. default: uni.$u.props.swiper.height
  18451. },
  18452. // 背景颜色
  18453. bgColor: {
  18454. type: String,
  18455. default: uni.$u.props.swiper.bgColor
  18456. },
  18457. // 组件圆角,数值或带单位的字符串
  18458. radius: {
  18459. type: [String, Number],
  18460. default: uni.$u.props.swiper.radius
  18461. },
  18462. // 是否加载中
  18463. loading: {
  18464. type: Boolean,
  18465. default: uni.$u.props.swiper.loading
  18466. },
  18467. // 是否显示标题,要求数组对象中有title属性
  18468. showTitle: {
  18469. type: Boolean,
  18470. default: uni.$u.props.swiper.showTitle
  18471. }
  18472. }
  18473. };
  18474. exports.default = _default;
  18475. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18476. /***/ }),
  18477. /* 285 */,
  18478. /* 286 */,
  18479. /* 287 */,
  18480. /* 288 */,
  18481. /* 289 */,
  18482. /* 290 */,
  18483. /* 291 */,
  18484. /* 292 */
  18485. /*!**********************************************************************************!*\
  18486. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-notice-bar/props.js ***!
  18487. \**********************************************************************************/
  18488. /*! no static exports found */
  18489. /***/ (function(module, exports, __webpack_require__) {
  18490. "use strict";
  18491. /* WEBPACK VAR INJECTION */(function(uni) {
  18492. Object.defineProperty(exports, "__esModule", {
  18493. value: true
  18494. });
  18495. exports.default = void 0;
  18496. var _default = {
  18497. props: {
  18498. // 显示的内容,数组
  18499. text: {
  18500. type: [Array, String],
  18501. default: uni.$u.props.noticeBar.text
  18502. },
  18503. // 通告滚动模式,row-横向滚动,column-竖向滚动
  18504. direction: {
  18505. type: String,
  18506. default: uni.$u.props.noticeBar.direction
  18507. },
  18508. // direction = row时,是否使用步进形式滚动
  18509. step: {
  18510. type: Boolean,
  18511. default: uni.$u.props.noticeBar.step
  18512. },
  18513. // 是否显示左侧的音量图标
  18514. icon: {
  18515. type: String,
  18516. default: uni.$u.props.noticeBar.icon
  18517. },
  18518. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  18519. mode: {
  18520. type: String,
  18521. default: uni.$u.props.noticeBar.mode
  18522. },
  18523. // 文字颜色,各图标也会使用文字颜色
  18524. color: {
  18525. type: String,
  18526. default: uni.$u.props.noticeBar.color
  18527. },
  18528. // 背景颜色
  18529. bgColor: {
  18530. type: String,
  18531. default: uni.$u.props.noticeBar.bgColor
  18532. },
  18533. // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
  18534. speed: {
  18535. type: [String, Number],
  18536. default: uni.$u.props.noticeBar.speed
  18537. },
  18538. // 字体大小
  18539. fontSize: {
  18540. type: [String, Number],
  18541. default: uni.$u.props.noticeBar.fontSize
  18542. },
  18543. // 滚动一个周期的时间长,单位ms
  18544. duration: {
  18545. type: [String, Number],
  18546. default: uni.$u.props.noticeBar.duration
  18547. },
  18548. // 是否禁止用手滑动切换
  18549. // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
  18550. disableTouch: {
  18551. type: Boolean,
  18552. default: uni.$u.props.noticeBar.disableTouch
  18553. },
  18554. // 跳转的页面路径
  18555. url: {
  18556. type: String,
  18557. default: uni.$u.props.noticeBar.url
  18558. },
  18559. // 页面跳转的类型
  18560. linkType: {
  18561. type: String,
  18562. default: uni.$u.props.noticeBar.linkType
  18563. }
  18564. }
  18565. };
  18566. exports.default = _default;
  18567. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18568. /***/ }),
  18569. /* 293 */,
  18570. /* 294 */,
  18571. /* 295 */,
  18572. /* 296 */,
  18573. /* 297 */,
  18574. /* 298 */,
  18575. /* 299 */,
  18576. /* 300 */
  18577. /*!***********************************************************************************!*\
  18578. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-scroll-list/props.js ***!
  18579. \***********************************************************************************/
  18580. /*! no static exports found */
  18581. /***/ (function(module, exports, __webpack_require__) {
  18582. "use strict";
  18583. /* WEBPACK VAR INJECTION */(function(uni) {
  18584. Object.defineProperty(exports, "__esModule", {
  18585. value: true
  18586. });
  18587. exports.default = void 0;
  18588. var _default = {
  18589. props: {
  18590. // 指示器的整体宽度
  18591. indicatorWidth: {
  18592. type: [String, Number],
  18593. default: uni.$u.props.scrollList.indicatorWidth
  18594. },
  18595. // 滑块的宽度
  18596. indicatorBarWidth: {
  18597. type: [String, Number],
  18598. default: uni.$u.props.scrollList.indicatorBarWidth
  18599. },
  18600. // 是否显示面板指示器
  18601. indicator: {
  18602. type: Boolean,
  18603. default: uni.$u.props.scrollList.indicator
  18604. },
  18605. // 指示器非激活颜色
  18606. indicatorColor: {
  18607. type: String,
  18608. default: uni.$u.props.scrollList.indicatorColor
  18609. },
  18610. // 指示器的激活颜色
  18611. indicatorActiveColor: {
  18612. type: String,
  18613. default: uni.$u.props.scrollList.indicatorActiveColor
  18614. },
  18615. // 指示器样式,可通过bottom,left,right进行定位
  18616. indicatorStyle: {
  18617. type: [String, Object],
  18618. default: uni.$u.props.scrollList.indicatorStyle
  18619. }
  18620. }
  18621. };
  18622. exports.default = _default;
  18623. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18624. /***/ }),
  18625. /* 301 */,
  18626. /* 302 */,
  18627. /* 303 */,
  18628. /* 304 */,
  18629. /* 305 */,
  18630. /* 306 */,
  18631. /* 307 */,
  18632. /* 308 */,
  18633. /* 309 */,
  18634. /* 310 */,
  18635. /* 311 */,
  18636. /* 312 */,
  18637. /* 313 */,
  18638. /* 314 */,
  18639. /* 315 */,
  18640. /* 316 */,
  18641. /* 317 */,
  18642. /* 318 */,
  18643. /* 319 */,
  18644. /* 320 */,
  18645. /* 321 */,
  18646. /* 322 */,
  18647. /* 323 */,
  18648. /* 324 */,
  18649. /* 325 */,
  18650. /* 326 */,
  18651. /* 327 */,
  18652. /* 328 */,
  18653. /* 329 */,
  18654. /* 330 */,
  18655. /* 331 */,
  18656. /* 332 */,
  18657. /* 333 */,
  18658. /* 334 */,
  18659. /* 335 */,
  18660. /* 336 */,
  18661. /* 337 */,
  18662. /* 338 */,
  18663. /* 339 */,
  18664. /* 340 */,
  18665. /* 341 */,
  18666. /* 342 */,
  18667. /* 343 */,
  18668. /* 344 */,
  18669. /* 345 */
  18670. /*!**********************************************************************************!*\
  18671. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-status-bar/props.js ***!
  18672. \**********************************************************************************/
  18673. /*! no static exports found */
  18674. /***/ (function(module, exports, __webpack_require__) {
  18675. "use strict";
  18676. /* WEBPACK VAR INJECTION */(function(uni) {
  18677. Object.defineProperty(exports, "__esModule", {
  18678. value: true
  18679. });
  18680. exports.default = void 0;
  18681. var _default = {
  18682. props: {
  18683. bgColor: {
  18684. type: String,
  18685. default: uni.$u.props.statusBar.bgColor
  18686. }
  18687. }
  18688. };
  18689. exports.default = _default;
  18690. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18691. /***/ }),
  18692. /* 346 */,
  18693. /* 347 */,
  18694. /* 348 */,
  18695. /* 349 */,
  18696. /* 350 */,
  18697. /* 351 */,
  18698. /* 352 */,
  18699. /* 353 */
  18700. /*!************************************************************************************!*\
  18701. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-loading-icon/props.js ***!
  18702. \************************************************************************************/
  18703. /*! no static exports found */
  18704. /***/ (function(module, exports, __webpack_require__) {
  18705. "use strict";
  18706. /* WEBPACK VAR INJECTION */(function(uni) {
  18707. Object.defineProperty(exports, "__esModule", {
  18708. value: true
  18709. });
  18710. exports.default = void 0;
  18711. var _default = {
  18712. props: {
  18713. // 是否显示组件
  18714. show: {
  18715. type: Boolean,
  18716. default: uni.$u.props.loadingIcon.show
  18717. },
  18718. // 颜色
  18719. color: {
  18720. type: String,
  18721. default: uni.$u.props.loadingIcon.color
  18722. },
  18723. // 提示文字颜色
  18724. textColor: {
  18725. type: String,
  18726. default: uni.$u.props.loadingIcon.textColor
  18727. },
  18728. // 文字和图标是否垂直排列
  18729. vertical: {
  18730. type: Boolean,
  18731. default: uni.$u.props.loadingIcon.vertical
  18732. },
  18733. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  18734. mode: {
  18735. type: String,
  18736. default: uni.$u.props.loadingIcon.mode
  18737. },
  18738. // 图标大小,单位默认px
  18739. size: {
  18740. type: [String, Number],
  18741. default: uni.$u.props.loadingIcon.size
  18742. },
  18743. // 文字大小
  18744. textSize: {
  18745. type: [String, Number],
  18746. default: uni.$u.props.loadingIcon.textSize
  18747. },
  18748. // 文字内容
  18749. text: {
  18750. type: [String, Number],
  18751. default: uni.$u.props.loadingIcon.text
  18752. },
  18753. // 动画模式
  18754. timingFunction: {
  18755. type: String,
  18756. default: uni.$u.props.loadingIcon.timingFunction
  18757. },
  18758. // 动画执行周期时间
  18759. duration: {
  18760. type: [String, Number],
  18761. default: uni.$u.props.loadingIcon.duration
  18762. },
  18763. // mode=circle时的暗边颜色
  18764. inactiveColor: {
  18765. type: String,
  18766. default: uni.$u.props.loadingIcon.inactiveColor
  18767. }
  18768. }
  18769. };
  18770. exports.default = _default;
  18771. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18772. /***/ }),
  18773. /* 354 */,
  18774. /* 355 */,
  18775. /* 356 */,
  18776. /* 357 */,
  18777. /* 358 */,
  18778. /* 359 */,
  18779. /* 360 */,
  18780. /* 361 */
  18781. /*!****************************************************************************************!*\
  18782. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-swiper-indicator/props.js ***!
  18783. \****************************************************************************************/
  18784. /*! no static exports found */
  18785. /***/ (function(module, exports, __webpack_require__) {
  18786. "use strict";
  18787. /* WEBPACK VAR INJECTION */(function(uni) {
  18788. Object.defineProperty(exports, "__esModule", {
  18789. value: true
  18790. });
  18791. exports.default = void 0;
  18792. var _default = {
  18793. props: {
  18794. // 轮播的长度
  18795. length: {
  18796. type: [String, Number],
  18797. default: uni.$u.props.swiperIndicator.length
  18798. },
  18799. // 当前处于活动状态的轮播的索引
  18800. current: {
  18801. type: [String, Number],
  18802. default: uni.$u.props.swiperIndicator.current
  18803. },
  18804. // 指示器非激活颜色
  18805. indicatorActiveColor: {
  18806. type: String,
  18807. default: uni.$u.props.swiperIndicator.indicatorActiveColor
  18808. },
  18809. // 指示器的激活颜色
  18810. indicatorInactiveColor: {
  18811. type: String,
  18812. default: uni.$u.props.swiperIndicator.indicatorInactiveColor
  18813. },
  18814. // 指示器模式,line-线型,dot-点型
  18815. indicatorMode: {
  18816. type: String,
  18817. default: uni.$u.props.swiperIndicator.indicatorMode
  18818. }
  18819. }
  18820. };
  18821. exports.default = _default;
  18822. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18823. /***/ }),
  18824. /* 362 */,
  18825. /* 363 */,
  18826. /* 364 */,
  18827. /* 365 */,
  18828. /* 366 */,
  18829. /* 367 */,
  18830. /* 368 */,
  18831. /* 369 */
  18832. /*!*************************************************************************************!*\
  18833. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-column-notice/props.js ***!
  18834. \*************************************************************************************/
  18835. /*! no static exports found */
  18836. /***/ (function(module, exports, __webpack_require__) {
  18837. "use strict";
  18838. /* WEBPACK VAR INJECTION */(function(uni) {
  18839. Object.defineProperty(exports, "__esModule", {
  18840. value: true
  18841. });
  18842. exports.default = void 0;
  18843. var _default = {
  18844. props: {
  18845. // 显示的内容,字符串
  18846. text: {
  18847. type: [Array],
  18848. default: uni.$u.props.columnNotice.text
  18849. },
  18850. // 是否显示左侧的音量图标
  18851. icon: {
  18852. type: String,
  18853. default: uni.$u.props.columnNotice.icon
  18854. },
  18855. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  18856. mode: {
  18857. type: String,
  18858. default: uni.$u.props.columnNotice.mode
  18859. },
  18860. // 文字颜色,各图标也会使用文字颜色
  18861. color: {
  18862. type: String,
  18863. default: uni.$u.props.columnNotice.color
  18864. },
  18865. // 背景颜色
  18866. bgColor: {
  18867. type: String,
  18868. default: uni.$u.props.columnNotice.bgColor
  18869. },
  18870. // 字体大小,单位px
  18871. fontSize: {
  18872. type: [String, Number],
  18873. default: uni.$u.props.columnNotice.fontSize
  18874. },
  18875. // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
  18876. speed: {
  18877. type: [String, Number],
  18878. default: uni.$u.props.columnNotice.speed
  18879. },
  18880. // direction = row时,是否使用步进形式滚动
  18881. step: {
  18882. type: Boolean,
  18883. default: uni.$u.props.columnNotice.step
  18884. },
  18885. // 滚动一个周期的时间长,单位ms
  18886. duration: {
  18887. type: [String, Number],
  18888. default: uni.$u.props.columnNotice.duration
  18889. },
  18890. // 是否禁止用手滑动切换
  18891. // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
  18892. disableTouch: {
  18893. type: Boolean,
  18894. default: uni.$u.props.columnNotice.disableTouch
  18895. }
  18896. }
  18897. };
  18898. exports.default = _default;
  18899. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18900. /***/ }),
  18901. /* 370 */,
  18902. /* 371 */,
  18903. /* 372 */,
  18904. /* 373 */,
  18905. /* 374 */,
  18906. /* 375 */,
  18907. /* 376 */,
  18908. /* 377 */
  18909. /*!**********************************************************************************!*\
  18910. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-row-notice/props.js ***!
  18911. \**********************************************************************************/
  18912. /*! no static exports found */
  18913. /***/ (function(module, exports, __webpack_require__) {
  18914. "use strict";
  18915. /* WEBPACK VAR INJECTION */(function(uni) {
  18916. Object.defineProperty(exports, "__esModule", {
  18917. value: true
  18918. });
  18919. exports.default = void 0;
  18920. var _default = {
  18921. props: {
  18922. // 显示的内容,字符串
  18923. text: {
  18924. type: String,
  18925. default: uni.$u.props.rowNotice.text
  18926. },
  18927. // 是否显示左侧的音量图标
  18928. icon: {
  18929. type: String,
  18930. default: uni.$u.props.rowNotice.icon
  18931. },
  18932. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  18933. mode: {
  18934. type: String,
  18935. default: uni.$u.props.rowNotice.mode
  18936. },
  18937. // 文字颜色,各图标也会使用文字颜色
  18938. color: {
  18939. type: String,
  18940. default: uni.$u.props.rowNotice.color
  18941. },
  18942. // 背景颜色
  18943. bgColor: {
  18944. type: String,
  18945. default: uni.$u.props.rowNotice.bgColor
  18946. },
  18947. // 字体大小,单位px
  18948. fontSize: {
  18949. type: [String, Number],
  18950. default: uni.$u.props.rowNotice.fontSize
  18951. },
  18952. // 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
  18953. speed: {
  18954. type: [String, Number],
  18955. default: uni.$u.props.rowNotice.speed
  18956. }
  18957. }
  18958. };
  18959. exports.default = _default;
  18960. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  18961. /***/ }),
  18962. /* 378 */,
  18963. /* 379 */,
  18964. /* 380 */,
  18965. /* 381 */,
  18966. /* 382 */,
  18967. /* 383 */,
  18968. /* 384 */,
  18969. /* 385 */
  18970. /*!**********************************************************************************!*\
  18971. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-number-box/props.js ***!
  18972. \**********************************************************************************/
  18973. /*! no static exports found */
  18974. /***/ (function(module, exports, __webpack_require__) {
  18975. "use strict";
  18976. /* WEBPACK VAR INJECTION */(function(uni) {
  18977. Object.defineProperty(exports, "__esModule", {
  18978. value: true
  18979. });
  18980. exports.default = void 0;
  18981. var _default = {
  18982. props: {
  18983. // 步进器标识符,在change回调返回
  18984. name: {
  18985. type: [String, Number],
  18986. default: uni.$u.props.numberBox.name
  18987. },
  18988. // 用于双向绑定的值,初始化时设置设为默认min值(最小值)
  18989. value: {
  18990. type: [String, Number],
  18991. default: uni.$u.props.numberBox.value
  18992. },
  18993. // 最小值
  18994. min: {
  18995. type: [String, Number],
  18996. default: uni.$u.props.numberBox.min
  18997. },
  18998. // 最大值
  18999. max: {
  19000. type: [String, Number],
  19001. default: uni.$u.props.numberBox.max
  19002. },
  19003. // 加减的步长,可为小数
  19004. step: {
  19005. type: [String, Number],
  19006. default: uni.$u.props.numberBox.step
  19007. },
  19008. // 是否只允许输入整数
  19009. integer: {
  19010. type: Boolean,
  19011. default: uni.$u.props.numberBox.integer
  19012. },
  19013. // 是否禁用,包括输入框,加减按钮
  19014. disabled: {
  19015. type: Boolean,
  19016. default: uni.$u.props.numberBox.disabled
  19017. },
  19018. // 是否禁用输入框
  19019. disabledInput: {
  19020. type: Boolean,
  19021. default: uni.$u.props.numberBox.disabledInput
  19022. },
  19023. // 是否开启异步变更,开启后需要手动控制输入值
  19024. asyncChange: {
  19025. type: Boolean,
  19026. default: uni.$u.props.numberBox.asyncChange
  19027. },
  19028. // 输入框宽度,单位为px
  19029. inputWidth: {
  19030. type: [String, Number],
  19031. default: uni.$u.props.numberBox.inputWidth
  19032. },
  19033. // 是否显示减少按钮
  19034. showMinus: {
  19035. type: Boolean,
  19036. default: uni.$u.props.numberBox.showMinus
  19037. },
  19038. // 是否显示增加按钮
  19039. showPlus: {
  19040. type: Boolean,
  19041. default: uni.$u.props.numberBox.showPlus
  19042. },
  19043. // 显示的小数位数
  19044. decimalLength: {
  19045. type: [String, Number, null],
  19046. default: uni.$u.props.numberBox.decimalLength
  19047. },
  19048. // 是否开启长按加减手势
  19049. longPress: {
  19050. type: Boolean,
  19051. default: uni.$u.props.numberBox.longPress
  19052. },
  19053. // 输入框文字和加减按钮图标的颜色
  19054. color: {
  19055. type: String,
  19056. default: uni.$u.props.numberBox.color
  19057. },
  19058. // 按钮大小,宽高等于此值,单位px,输入框高度和此值保持一致
  19059. buttonSize: {
  19060. type: [String, Number],
  19061. default: uni.$u.props.numberBox.buttonSize
  19062. },
  19063. // 输入框和按钮的背景颜色
  19064. bgColor: {
  19065. type: String,
  19066. default: uni.$u.props.numberBox.bgColor
  19067. },
  19068. // 指定光标于键盘的距离,避免键盘遮挡输入框,单位px
  19069. cursorSpacing: {
  19070. type: [String, Number],
  19071. default: uni.$u.props.numberBox.cursorSpacing
  19072. },
  19073. // 是否禁用增加按钮
  19074. disablePlus: {
  19075. type: Boolean,
  19076. default: uni.$u.props.numberBox.disablePlus
  19077. },
  19078. // 是否禁用减少按钮
  19079. disableMinus: {
  19080. type: Boolean,
  19081. default: uni.$u.props.numberBox.disableMinus
  19082. },
  19083. // 加减按钮图标的样式
  19084. iconStyle: {
  19085. type: [Object, String],
  19086. default: uni.$u.props.numberBox.iconStyle
  19087. }
  19088. }
  19089. };
  19090. exports.default = _default;
  19091. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19092. /***/ }),
  19093. /* 386 */,
  19094. /* 387 */,
  19095. /* 388 */,
  19096. /* 389 */,
  19097. /* 390 */,
  19098. /* 391 */,
  19099. /* 392 */,
  19100. /* 393 */,
  19101. /* 394 */,
  19102. /* 395 */,
  19103. /* 396 */,
  19104. /* 397 */,
  19105. /* 398 */,
  19106. /* 399 */,
  19107. /* 400 */,
  19108. /* 401 */,
  19109. /* 402 */,
  19110. /* 403 */,
  19111. /* 404 */,
  19112. /* 405 */,
  19113. /* 406 */,
  19114. /* 407 */,
  19115. /* 408 */,
  19116. /* 409 */,
  19117. /* 410 */,
  19118. /* 411 */,
  19119. /* 412 */,
  19120. /* 413 */,
  19121. /* 414 */,
  19122. /* 415 */,
  19123. /* 416 */,
  19124. /* 417 */,
  19125. /* 418 */,
  19126. /* 419 */,
  19127. /* 420 */,
  19128. /* 421 */,
  19129. /* 422 */,
  19130. /* 423 */
  19131. /*!********************************************************************************!*\
  19132. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-textarea/props.js ***!
  19133. \********************************************************************************/
  19134. /*! no static exports found */
  19135. /***/ (function(module, exports, __webpack_require__) {
  19136. "use strict";
  19137. /* WEBPACK VAR INJECTION */(function(uni) {
  19138. Object.defineProperty(exports, "__esModule", {
  19139. value: true
  19140. });
  19141. exports.default = void 0;
  19142. var _default = {
  19143. props: {
  19144. // 输入框的内容
  19145. value: {
  19146. type: [String, Number],
  19147. default: uni.$u.props.textarea.value
  19148. },
  19149. // 输入框为空时占位符
  19150. placeholder: {
  19151. type: [String, Number],
  19152. default: uni.$u.props.textarea.placeholder
  19153. },
  19154. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  19155. placeholderClass: {
  19156. type: String,
  19157. default: uni.$u.props.input.placeholderClass
  19158. },
  19159. // 指定placeholder的样式
  19160. placeholderStyle: {
  19161. type: [String, Object],
  19162. default: uni.$u.props.input.placeholderStyle
  19163. },
  19164. // 输入框高度
  19165. height: {
  19166. type: [String, Number],
  19167. default: uni.$u.props.textarea.height
  19168. },
  19169. // 设置键盘右下角按钮的文字,仅微信小程序,App-vue和H5有效
  19170. confirmType: {
  19171. type: String,
  19172. default: uni.$u.props.textarea.confirmType
  19173. },
  19174. // 是否禁用
  19175. disabled: {
  19176. type: Boolean,
  19177. default: uni.$u.props.textarea.disabled
  19178. },
  19179. // 是否显示统计字数
  19180. count: {
  19181. type: Boolean,
  19182. default: uni.$u.props.textarea.count
  19183. },
  19184. // 是否自动获取焦点,nvue不支持,H5取决于浏览器的实现
  19185. focus: {
  19186. type: Boolean,
  19187. default: uni.$u.props.textarea.focus
  19188. },
  19189. // 是否自动增加高度
  19190. autoHeight: {
  19191. type: Boolean,
  19192. default: uni.$u.props.textarea.autoHeight
  19193. },
  19194. // 如果textarea是在一个position:fixed的区域,需要显示指定属性fixed为true
  19195. fixed: {
  19196. type: Boolean,
  19197. default: uni.$u.props.textarea.fixed
  19198. },
  19199. // 指定光标与键盘的距离
  19200. cursorSpacing: {
  19201. type: Number,
  19202. default: uni.$u.props.textarea.cursorSpacing
  19203. },
  19204. // 指定focus时的光标位置
  19205. cursor: {
  19206. type: [String, Number],
  19207. default: uni.$u.props.textarea.cursor
  19208. },
  19209. // 是否显示键盘上方带有”完成“按钮那一栏,
  19210. showConfirmBar: {
  19211. type: Boolean,
  19212. default: uni.$u.props.textarea.showConfirmBar
  19213. },
  19214. // 光标起始位置,自动聚焦时有效,需与selection-end搭配使用
  19215. selectionStart: {
  19216. type: Number,
  19217. default: uni.$u.props.textarea.selectionStart
  19218. },
  19219. // 光标结束位置,自动聚焦时有效,需与selection-start搭配使用
  19220. selectionEnd: {
  19221. type: Number,
  19222. default: uni.$u.props.textarea.selectionEnd
  19223. },
  19224. // 键盘弹起时,是否自动上推页面
  19225. adjustPosition: {
  19226. type: Boolean,
  19227. default: uni.$u.props.textarea.adjustPosition
  19228. },
  19229. // 是否去掉 iOS 下的默认内边距,只微信小程序有效
  19230. disableDefaultPadding: {
  19231. type: Boolean,
  19232. default: uni.$u.props.textarea.disableDefaultPadding
  19233. },
  19234. // focus时,点击页面的时候不收起键盘,只微信小程序有效
  19235. holdKeyboard: {
  19236. type: Boolean,
  19237. default: uni.$u.props.textarea.holdKeyboard
  19238. },
  19239. // 最大输入长度,设置为 -1 的时候不限制最大长度
  19240. maxlength: {
  19241. type: [String, Number],
  19242. default: uni.$u.props.textarea.maxlength
  19243. },
  19244. // 边框类型,surround-四周边框,bottom-底部边框
  19245. border: {
  19246. type: String,
  19247. default: uni.$u.props.textarea.border
  19248. },
  19249. // 用于处理或者过滤输入框内容的方法
  19250. formatter: {
  19251. type: [Function, null],
  19252. default: uni.$u.props.textarea.formatter
  19253. },
  19254. // 是否忽略组件内对文本合成系统事件的处理
  19255. ignoreCompositionEvent: {
  19256. type: Boolean,
  19257. default: true
  19258. }
  19259. }
  19260. };
  19261. exports.default = _default;
  19262. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19263. /***/ }),
  19264. /* 424 */
  19265. /*!*****************************************************************************!*\
  19266. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-input/props.js ***!
  19267. \*****************************************************************************/
  19268. /*! no static exports found */
  19269. /***/ (function(module, exports, __webpack_require__) {
  19270. "use strict";
  19271. /* WEBPACK VAR INJECTION */(function(uni) {
  19272. Object.defineProperty(exports, "__esModule", {
  19273. value: true
  19274. });
  19275. exports.default = void 0;
  19276. var _default = {
  19277. props: {
  19278. // 输入的值
  19279. value: {
  19280. type: [String, Number],
  19281. default: uni.$u.props.input.value
  19282. },
  19283. // 输入框类型
  19284. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  19285. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  19286. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  19287. // text-文本输入键盘
  19288. type: {
  19289. type: String,
  19290. default: uni.$u.props.input.type
  19291. },
  19292. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  19293. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  19294. fixed: {
  19295. type: Boolean,
  19296. default: uni.$u.props.input.fixed
  19297. },
  19298. // 是否禁用输入框
  19299. disabled: {
  19300. type: Boolean,
  19301. default: uni.$u.props.input.disabled
  19302. },
  19303. // 禁用状态时的背景色
  19304. disabledColor: {
  19305. type: String,
  19306. default: uni.$u.props.input.disabledColor
  19307. },
  19308. // 是否显示清除控件
  19309. clearable: {
  19310. type: Boolean,
  19311. default: uni.$u.props.input.clearable
  19312. },
  19313. // 是否密码类型
  19314. password: {
  19315. type: Boolean,
  19316. default: uni.$u.props.input.password
  19317. },
  19318. // 最大输入长度,设置为 -1 的时候不限制最大长度
  19319. maxlength: {
  19320. type: [String, Number],
  19321. default: uni.$u.props.input.maxlength
  19322. },
  19323. // 输入框为空时的占位符
  19324. placeholder: {
  19325. type: String,
  19326. default: uni.$u.props.input.placeholder
  19327. },
  19328. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  19329. placeholderClass: {
  19330. type: String,
  19331. default: uni.$u.props.input.placeholderClass
  19332. },
  19333. // 指定placeholder的样式
  19334. placeholderStyle: {
  19335. type: [String, Object],
  19336. default: uni.$u.props.input.placeholderStyle
  19337. },
  19338. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  19339. showWordLimit: {
  19340. type: Boolean,
  19341. default: uni.$u.props.input.showWordLimit
  19342. },
  19343. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  19344. // https://uniapp.dcloud.io/component/input
  19345. // https://uniapp.dcloud.io/component/textarea
  19346. confirmType: {
  19347. type: String,
  19348. default: uni.$u.props.input.confirmType
  19349. },
  19350. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  19351. confirmHold: {
  19352. type: Boolean,
  19353. default: uni.$u.props.input.confirmHold
  19354. },
  19355. // focus时,点击页面的时候不收起键盘,微信小程序有效
  19356. holdKeyboard: {
  19357. type: Boolean,
  19358. default: uni.$u.props.input.holdKeyboard
  19359. },
  19360. // 自动获取焦点
  19361. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  19362. focus: {
  19363. type: Boolean,
  19364. default: uni.$u.props.input.focus
  19365. },
  19366. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  19367. autoBlur: {
  19368. type: Boolean,
  19369. default: uni.$u.props.input.autoBlur
  19370. },
  19371. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  19372. disableDefaultPadding: {
  19373. type: Boolean,
  19374. default: uni.$u.props.input.disableDefaultPadding
  19375. },
  19376. // 指定focus时光标的位置
  19377. cursor: {
  19378. type: [String, Number],
  19379. default: uni.$u.props.input.cursor
  19380. },
  19381. // 输入框聚焦时底部与键盘的距离
  19382. cursorSpacing: {
  19383. type: [String, Number],
  19384. default: uni.$u.props.input.cursorSpacing
  19385. },
  19386. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  19387. selectionStart: {
  19388. type: [String, Number],
  19389. default: uni.$u.props.input.selectionStart
  19390. },
  19391. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  19392. selectionEnd: {
  19393. type: [String, Number],
  19394. default: uni.$u.props.input.selectionEnd
  19395. },
  19396. // 键盘弹起时,是否自动上推页面
  19397. adjustPosition: {
  19398. type: Boolean,
  19399. default: uni.$u.props.input.adjustPosition
  19400. },
  19401. // 输入框内容对齐方式,可选值为:left|center|right
  19402. inputAlign: {
  19403. type: String,
  19404. default: uni.$u.props.input.inputAlign
  19405. },
  19406. // 输入框字体的大小
  19407. fontSize: {
  19408. type: [String, Number],
  19409. default: uni.$u.props.input.fontSize
  19410. },
  19411. // 输入框字体颜色
  19412. color: {
  19413. type: String,
  19414. default: uni.$u.props.input.color
  19415. },
  19416. // 输入框前置图标
  19417. prefixIcon: {
  19418. type: String,
  19419. default: uni.$u.props.input.prefixIcon
  19420. },
  19421. // 前置图标样式,对象或字符串
  19422. prefixIconStyle: {
  19423. type: [String, Object],
  19424. default: uni.$u.props.input.prefixIconStyle
  19425. },
  19426. // 输入框后置图标
  19427. suffixIcon: {
  19428. type: String,
  19429. default: uni.$u.props.input.suffixIcon
  19430. },
  19431. // 后置图标样式,对象或字符串
  19432. suffixIconStyle: {
  19433. type: [String, Object],
  19434. default: uni.$u.props.input.suffixIconStyle
  19435. },
  19436. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  19437. border: {
  19438. type: String,
  19439. default: uni.$u.props.input.border
  19440. },
  19441. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  19442. readonly: {
  19443. type: Boolean,
  19444. default: uni.$u.props.input.readonly
  19445. },
  19446. // 输入框形状,circle-圆形,square-方形
  19447. shape: {
  19448. type: String,
  19449. default: uni.$u.props.input.shape
  19450. },
  19451. // 用于处理或者过滤输入框内容的方法
  19452. formatter: {
  19453. type: [Function, null],
  19454. default: uni.$u.props.input.formatter
  19455. },
  19456. // 是否忽略组件内对文本合成系统事件的处理
  19457. ignoreCompositionEvent: {
  19458. type: Boolean,
  19459. default: true
  19460. }
  19461. }
  19462. };
  19463. exports.default = _default;
  19464. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19465. /***/ }),
  19466. /* 425 */,
  19467. /* 426 */
  19468. /*!****************************************************************************!*\
  19469. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-form/props.js ***!
  19470. \****************************************************************************/
  19471. /*! no static exports found */
  19472. /***/ (function(module, exports, __webpack_require__) {
  19473. "use strict";
  19474. /* WEBPACK VAR INJECTION */(function(uni) {
  19475. Object.defineProperty(exports, "__esModule", {
  19476. value: true
  19477. });
  19478. exports.default = void 0;
  19479. var _default = {
  19480. props: {
  19481. // 当前form的需要验证字段的集合
  19482. model: {
  19483. type: Object,
  19484. default: uni.$u.props.form.model
  19485. },
  19486. // 验证规则
  19487. rules: {
  19488. type: [Object, Function, Array],
  19489. default: uni.$u.props.form.rules
  19490. },
  19491. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  19492. // border-bottom-下边框呈现红色,none-无提示
  19493. errorType: {
  19494. type: String,
  19495. default: uni.$u.props.form.errorType
  19496. },
  19497. // 是否显示表单域的下划线边框
  19498. borderBottom: {
  19499. type: Boolean,
  19500. default: uni.$u.props.form.borderBottom
  19501. },
  19502. // label的位置,left-左边,top-上边
  19503. labelPosition: {
  19504. type: String,
  19505. default: uni.$u.props.form.labelPosition
  19506. },
  19507. // label的宽度,单位px
  19508. labelWidth: {
  19509. type: [String, Number],
  19510. default: uni.$u.props.form.labelWidth
  19511. },
  19512. // lable字体的对齐方式
  19513. labelAlign: {
  19514. type: String,
  19515. default: uni.$u.props.form.labelAlign
  19516. },
  19517. // lable的样式,对象形式
  19518. labelStyle: {
  19519. type: Object,
  19520. default: uni.$u.props.form.labelStyle
  19521. }
  19522. }
  19523. };
  19524. exports.default = _default;
  19525. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19526. /***/ }),
  19527. /* 427 */,
  19528. /* 428 */,
  19529. /* 429 */,
  19530. /* 430 */,
  19531. /* 431 */,
  19532. /* 432 */
  19533. /*!*********************************************************************************!*\
  19534. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-form-item/props.js ***!
  19535. \*********************************************************************************/
  19536. /*! no static exports found */
  19537. /***/ (function(module, exports, __webpack_require__) {
  19538. "use strict";
  19539. /* WEBPACK VAR INJECTION */(function(uni) {
  19540. Object.defineProperty(exports, "__esModule", {
  19541. value: true
  19542. });
  19543. exports.default = void 0;
  19544. var _default = {
  19545. props: {
  19546. // input的label提示语
  19547. label: {
  19548. type: String,
  19549. default: uni.$u.props.formItem.label
  19550. },
  19551. // 绑定的值
  19552. prop: {
  19553. type: String,
  19554. default: uni.$u.props.formItem.prop
  19555. },
  19556. // 是否显示表单域的下划线边框
  19557. borderBottom: {
  19558. type: [String, Boolean],
  19559. default: uni.$u.props.formItem.borderBottom
  19560. },
  19561. // label的位置,left-左边,top-上边
  19562. labelPosition: {
  19563. type: String,
  19564. default: uni.$u.props.formItem.labelPosition
  19565. },
  19566. // label的宽度,单位px
  19567. labelWidth: {
  19568. type: [String, Number],
  19569. default: uni.$u.props.formItem.labelWidth
  19570. },
  19571. // 右侧图标
  19572. rightIcon: {
  19573. type: String,
  19574. default: uni.$u.props.formItem.rightIcon
  19575. },
  19576. // 左侧图标
  19577. leftIcon: {
  19578. type: String,
  19579. default: uni.$u.props.formItem.leftIcon
  19580. },
  19581. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  19582. required: {
  19583. type: Boolean,
  19584. default: uni.$u.props.formItem.required
  19585. },
  19586. leftIconStyle: {
  19587. type: [String, Object],
  19588. default: uni.$u.props.formItem.leftIconStyle
  19589. }
  19590. }
  19591. };
  19592. exports.default = _default;
  19593. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  19594. /***/ }),
  19595. /* 433 */,
  19596. /* 434 */,
  19597. /* 435 */,
  19598. /* 436 */,
  19599. /* 437 */,
  19600. /* 438 */,
  19601. /* 439 */,
  19602. /* 440 */,
  19603. /* 441 */,
  19604. /* 442 */,
  19605. /* 443 */,
  19606. /* 444 */,
  19607. /* 445 */,
  19608. /* 446 */,
  19609. /* 447 */,
  19610. /* 448 */
  19611. /*!******************************************************************************!*\
  19612. !*** D:/baozhida/baozhida-mall-applet/uview-ui/libs/util/async-validator.js ***!
  19613. \******************************************************************************/
  19614. /*! no static exports found */
  19615. /***/ (function(module, exports, __webpack_require__) {
  19616. "use strict";
  19617. /* WEBPACK VAR INJECTION */(function(process) {
  19618. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
  19619. Object.defineProperty(exports, "__esModule", {
  19620. value: true
  19621. });
  19622. exports.default = void 0;
  19623. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11));
  19624. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 13));
  19625. 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; }
  19626. 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; }
  19627. function _extends() {
  19628. _extends = Object.assign || function (target) {
  19629. for (var i = 1; i < arguments.length; i++) {
  19630. var source = arguments[i];
  19631. for (var key in source) {
  19632. if (Object.prototype.hasOwnProperty.call(source, key)) {
  19633. target[key] = source[key];
  19634. }
  19635. }
  19636. }
  19637. return target;
  19638. };
  19639. return _extends.apply(this, arguments);
  19640. }
  19641. /* eslint no-console:0 */
  19642. var formatRegExp = /%[sdj%]/g;
  19643. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  19644. if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"baozhida-mall-applet","VUE_APP_PLATFORM":"mp-weixin","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  19645. warning = function warning(type, errors) {
  19646. if (typeof console !== 'undefined' && console.warn) {
  19647. if (errors.every(function (e) {
  19648. return typeof e === 'string';
  19649. })) {
  19650. console.warn(type, errors);
  19651. }
  19652. }
  19653. };
  19654. }
  19655. function convertFieldsError(errors) {
  19656. if (!errors || !errors.length) return null;
  19657. var fields = {};
  19658. errors.forEach(function (error) {
  19659. var field = error.field;
  19660. fields[field] = fields[field] || [];
  19661. fields[field].push(error);
  19662. });
  19663. return fields;
  19664. }
  19665. function format() {
  19666. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  19667. args[_key] = arguments[_key];
  19668. }
  19669. var i = 1;
  19670. var f = args[0];
  19671. var len = args.length;
  19672. if (typeof f === 'function') {
  19673. return f.apply(null, args.slice(1));
  19674. }
  19675. if (typeof f === 'string') {
  19676. var str = String(f).replace(formatRegExp, function (x) {
  19677. if (x === '%%') {
  19678. return '%';
  19679. }
  19680. if (i >= len) {
  19681. return x;
  19682. }
  19683. switch (x) {
  19684. case '%s':
  19685. return String(args[i++]);
  19686. case '%d':
  19687. return Number(args[i++]);
  19688. case '%j':
  19689. try {
  19690. return JSON.stringify(args[i++]);
  19691. } catch (_) {
  19692. return '[Circular]';
  19693. }
  19694. break;
  19695. default:
  19696. return x;
  19697. }
  19698. });
  19699. for (var arg = args[i]; i < len; arg = args[++i]) {
  19700. str += " ".concat(arg);
  19701. }
  19702. return str;
  19703. }
  19704. return f;
  19705. }
  19706. function isNativeStringType(type) {
  19707. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  19708. }
  19709. function isEmptyValue(value, type) {
  19710. if (value === undefined || value === null) {
  19711. return true;
  19712. }
  19713. if (type === 'array' && Array.isArray(value) && !value.length) {
  19714. return true;
  19715. }
  19716. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  19717. return true;
  19718. }
  19719. return false;
  19720. }
  19721. function asyncParallelArray(arr, func, callback) {
  19722. var results = [];
  19723. var total = 0;
  19724. var arrLength = arr.length;
  19725. function count(errors) {
  19726. results.push.apply(results, errors);
  19727. total++;
  19728. if (total === arrLength) {
  19729. callback(results);
  19730. }
  19731. }
  19732. arr.forEach(function (a) {
  19733. func(a, count);
  19734. });
  19735. }
  19736. function asyncSerialArray(arr, func, callback) {
  19737. var index = 0;
  19738. var arrLength = arr.length;
  19739. function next(errors) {
  19740. if (errors && errors.length) {
  19741. callback(errors);
  19742. return;
  19743. }
  19744. var original = index;
  19745. index += 1;
  19746. if (original < arrLength) {
  19747. func(arr[original], next);
  19748. } else {
  19749. callback([]);
  19750. }
  19751. }
  19752. next([]);
  19753. }
  19754. function flattenObjArr(objArr) {
  19755. var ret = [];
  19756. Object.keys(objArr).forEach(function (k) {
  19757. ret.push.apply(ret, objArr[k]);
  19758. });
  19759. return ret;
  19760. }
  19761. function asyncMap(objArr, option, func, callback) {
  19762. if (option.first) {
  19763. var _pending = new Promise(function (resolve, reject) {
  19764. var next = function next(errors) {
  19765. callback(errors);
  19766. return errors.length ? reject({
  19767. errors: errors,
  19768. fields: convertFieldsError(errors)
  19769. }) : resolve();
  19770. };
  19771. var flattenArr = flattenObjArr(objArr);
  19772. asyncSerialArray(flattenArr, func, next);
  19773. });
  19774. _pending.catch(function (e) {
  19775. return e;
  19776. });
  19777. return _pending;
  19778. }
  19779. var firstFields = option.firstFields || [];
  19780. if (firstFields === true) {
  19781. firstFields = Object.keys(objArr);
  19782. }
  19783. var objArrKeys = Object.keys(objArr);
  19784. var objArrLength = objArrKeys.length;
  19785. var total = 0;
  19786. var results = [];
  19787. var pending = new Promise(function (resolve, reject) {
  19788. var next = function next(errors) {
  19789. results.push.apply(results, errors);
  19790. total++;
  19791. if (total === objArrLength) {
  19792. callback(results);
  19793. return results.length ? reject({
  19794. errors: results,
  19795. fields: convertFieldsError(results)
  19796. }) : resolve();
  19797. }
  19798. };
  19799. if (!objArrKeys.length) {
  19800. callback(results);
  19801. resolve();
  19802. }
  19803. objArrKeys.forEach(function (key) {
  19804. var arr = objArr[key];
  19805. if (firstFields.indexOf(key) !== -1) {
  19806. asyncSerialArray(arr, func, next);
  19807. } else {
  19808. asyncParallelArray(arr, func, next);
  19809. }
  19810. });
  19811. });
  19812. pending.catch(function (e) {
  19813. return e;
  19814. });
  19815. return pending;
  19816. }
  19817. function complementError(rule) {
  19818. return function (oe) {
  19819. if (oe && oe.message) {
  19820. oe.field = oe.field || rule.fullField;
  19821. return oe;
  19822. }
  19823. return {
  19824. message: typeof oe === 'function' ? oe() : oe,
  19825. field: oe.field || rule.fullField
  19826. };
  19827. };
  19828. }
  19829. function deepMerge(target, source) {
  19830. if (source) {
  19831. for (var s in source) {
  19832. if (source.hasOwnProperty(s)) {
  19833. var value = source[s];
  19834. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  19835. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  19836. } else {
  19837. target[s] = value;
  19838. }
  19839. }
  19840. }
  19841. }
  19842. return target;
  19843. }
  19844. /**
  19845. * Rule for validating required fields.
  19846. *
  19847. * @param rule The validation rule.
  19848. * @param value The value of the field on the source object.
  19849. * @param source The source object being validated.
  19850. * @param errors An array of errors that this rule may add
  19851. * validation errors to.
  19852. * @param options The validation options.
  19853. * @param options.messages The validation messages.
  19854. */
  19855. function required(rule, value, source, errors, options, type) {
  19856. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  19857. errors.push(format(options.messages.required, rule.fullField));
  19858. }
  19859. }
  19860. /**
  19861. * Rule for validating whitespace.
  19862. *
  19863. * @param rule The validation rule.
  19864. * @param value The value of the field on the source object.
  19865. * @param source The source object being validated.
  19866. * @param errors An array of errors that this rule may add
  19867. * validation errors to.
  19868. * @param options The validation options.
  19869. * @param options.messages The validation messages.
  19870. */
  19871. function whitespace(rule, value, source, errors, options) {
  19872. if (/^\s+$/.test(value) || value === '') {
  19873. errors.push(format(options.messages.whitespace, rule.fullField));
  19874. }
  19875. }
  19876. /* eslint max-len:0 */
  19877. var pattern = {
  19878. // http://emailregex.com/
  19879. email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
  19880. url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
  19881. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  19882. };
  19883. var types = {
  19884. integer: function integer(value) {
  19885. return /^(-)?\d+$/.test(value);
  19886. },
  19887. float: function float(value) {
  19888. return /^(-)?\d+(\.\d+)?$/.test(value);
  19889. },
  19890. array: function array(value) {
  19891. return Array.isArray(value);
  19892. },
  19893. regexp: function regexp(value) {
  19894. if (value instanceof RegExp) {
  19895. return true;
  19896. }
  19897. try {
  19898. return !!new RegExp(value);
  19899. } catch (e) {
  19900. return false;
  19901. }
  19902. },
  19903. date: function date(value) {
  19904. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  19905. },
  19906. number: function number(value) {
  19907. if (isNaN(value)) {
  19908. return false;
  19909. }
  19910. // 修改源码,将字符串数值先转为数值
  19911. return typeof +value === 'number';
  19912. },
  19913. object: function object(value) {
  19914. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  19915. },
  19916. method: function method(value) {
  19917. return typeof value === 'function';
  19918. },
  19919. email: function email(value) {
  19920. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  19921. },
  19922. url: function url(value) {
  19923. return typeof value === 'string' && !!value.match(pattern.url);
  19924. },
  19925. hex: function hex(value) {
  19926. return typeof value === 'string' && !!value.match(pattern.hex);
  19927. }
  19928. };
  19929. /**
  19930. * Rule for validating the type of a value.
  19931. *
  19932. * @param rule The validation rule.
  19933. * @param value The value of the field on the source object.
  19934. * @param source The source object being validated.
  19935. * @param errors An array of errors that this rule may add
  19936. * validation errors to.
  19937. * @param options The validation options.
  19938. * @param options.messages The validation messages.
  19939. */
  19940. function type(rule, value, source, errors, options) {
  19941. if (rule.required && value === undefined) {
  19942. required(rule, value, source, errors, options);
  19943. return;
  19944. }
  19945. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  19946. var ruleType = rule.type;
  19947. if (custom.indexOf(ruleType) > -1) {
  19948. if (!types[ruleType](value)) {
  19949. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  19950. } // straight typeof check
  19951. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  19952. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  19953. }
  19954. }
  19955. /**
  19956. * Rule for validating minimum and maximum allowed values.
  19957. *
  19958. * @param rule The validation rule.
  19959. * @param value The value of the field on the source object.
  19960. * @param source The source object being validated.
  19961. * @param errors An array of errors that this rule may add
  19962. * validation errors to.
  19963. * @param options The validation options.
  19964. * @param options.messages The validation messages.
  19965. */
  19966. function range(rule, value, source, errors, options) {
  19967. var len = typeof rule.len === 'number';
  19968. var min = typeof rule.min === 'number';
  19969. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  19970. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  19971. var val = value;
  19972. var key = null;
  19973. var num = typeof value === 'number';
  19974. var str = typeof value === 'string';
  19975. var arr = Array.isArray(value);
  19976. if (num) {
  19977. key = 'number';
  19978. } else if (str) {
  19979. key = 'string';
  19980. } else if (arr) {
  19981. key = 'array';
  19982. } // if the value is not of a supported type for range validation
  19983. // the validation rule rule should use the
  19984. // type property to also test for a particular type
  19985. if (!key) {
  19986. return false;
  19987. }
  19988. if (arr) {
  19989. val = value.length;
  19990. }
  19991. if (str) {
  19992. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  19993. val = value.replace(spRegexp, '_').length;
  19994. }
  19995. if (len) {
  19996. if (val !== rule.len) {
  19997. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  19998. }
  19999. } else if (min && !max && val < rule.min) {
  20000. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  20001. } else if (max && !min && val > rule.max) {
  20002. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  20003. } else if (min && max && (val < rule.min || val > rule.max)) {
  20004. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  20005. }
  20006. }
  20007. var ENUM = 'enum';
  20008. /**
  20009. * Rule for validating a value exists in an enumerable list.
  20010. *
  20011. * @param rule The validation rule.
  20012. * @param value The value of the field on the source object.
  20013. * @param source The source object being validated.
  20014. * @param errors An array of errors that this rule may add
  20015. * validation errors to.
  20016. * @param options The validation options.
  20017. * @param options.messages The validation messages.
  20018. */
  20019. function enumerable(rule, value, source, errors, options) {
  20020. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  20021. if (rule[ENUM].indexOf(value) === -1) {
  20022. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  20023. }
  20024. }
  20025. /**
  20026. * Rule for validating a regular expression pattern.
  20027. *
  20028. * @param rule The validation rule.
  20029. * @param value The value of the field on the source object.
  20030. * @param source The source object being validated.
  20031. * @param errors An array of errors that this rule may add
  20032. * validation errors to.
  20033. * @param options The validation options.
  20034. * @param options.messages The validation messages.
  20035. */
  20036. function pattern$1(rule, value, source, errors, options) {
  20037. if (rule.pattern) {
  20038. if (rule.pattern instanceof RegExp) {
  20039. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  20040. // flag is accidentally set to `true`, which in a validation scenario
  20041. // is not necessary and the result might be misleading
  20042. rule.pattern.lastIndex = 0;
  20043. if (!rule.pattern.test(value)) {
  20044. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  20045. }
  20046. } else if (typeof rule.pattern === 'string') {
  20047. var _pattern = new RegExp(rule.pattern);
  20048. if (!_pattern.test(value)) {
  20049. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  20050. }
  20051. }
  20052. }
  20053. }
  20054. var rules = {
  20055. required: required,
  20056. whitespace: whitespace,
  20057. type: type,
  20058. range: range,
  20059. enum: enumerable,
  20060. pattern: pattern$1
  20061. };
  20062. /**
  20063. * Performs validation for string types.
  20064. *
  20065. * @param rule The validation rule.
  20066. * @param value The value of the field on the source object.
  20067. * @param callback The callback function.
  20068. * @param source The source object being validated.
  20069. * @param options The validation options.
  20070. * @param options.messages The validation messages.
  20071. */
  20072. function string(rule, value, callback, source, options) {
  20073. var errors = [];
  20074. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20075. if (validate) {
  20076. if (isEmptyValue(value, 'string') && !rule.required) {
  20077. return callback();
  20078. }
  20079. rules.required(rule, value, source, errors, options, 'string');
  20080. if (!isEmptyValue(value, 'string')) {
  20081. rules.type(rule, value, source, errors, options);
  20082. rules.range(rule, value, source, errors, options);
  20083. rules.pattern(rule, value, source, errors, options);
  20084. if (rule.whitespace === true) {
  20085. rules.whitespace(rule, value, source, errors, options);
  20086. }
  20087. }
  20088. }
  20089. callback(errors);
  20090. }
  20091. /**
  20092. * Validates a function.
  20093. *
  20094. * @param rule The validation rule.
  20095. * @param value The value of the field on the source object.
  20096. * @param callback The callback function.
  20097. * @param source The source object being validated.
  20098. * @param options The validation options.
  20099. * @param options.messages The validation messages.
  20100. */
  20101. function method(rule, value, callback, source, options) {
  20102. var errors = [];
  20103. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20104. if (validate) {
  20105. if (isEmptyValue(value) && !rule.required) {
  20106. return callback();
  20107. }
  20108. rules.required(rule, value, source, errors, options);
  20109. if (value !== undefined) {
  20110. rules.type(rule, value, source, errors, options);
  20111. }
  20112. }
  20113. callback(errors);
  20114. }
  20115. /**
  20116. * Validates a number.
  20117. *
  20118. * @param rule The validation rule.
  20119. * @param value The value of the field on the source object.
  20120. * @param callback The callback function.
  20121. * @param source The source object being validated.
  20122. * @param options The validation options.
  20123. * @param options.messages The validation messages.
  20124. */
  20125. function number(rule, value, callback, source, options) {
  20126. var errors = [];
  20127. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20128. if (validate) {
  20129. if (value === '') {
  20130. value = undefined;
  20131. }
  20132. if (isEmptyValue(value) && !rule.required) {
  20133. return callback();
  20134. }
  20135. rules.required(rule, value, source, errors, options);
  20136. if (value !== undefined) {
  20137. rules.type(rule, value, source, errors, options);
  20138. rules.range(rule, value, source, errors, options);
  20139. }
  20140. }
  20141. callback(errors);
  20142. }
  20143. /**
  20144. * Validates a boolean.
  20145. *
  20146. * @param rule The validation rule.
  20147. * @param value The value of the field on the source object.
  20148. * @param callback The callback function.
  20149. * @param source The source object being validated.
  20150. * @param options The validation options.
  20151. * @param options.messages The validation messages.
  20152. */
  20153. function _boolean(rule, value, callback, source, options) {
  20154. var errors = [];
  20155. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20156. if (validate) {
  20157. if (isEmptyValue(value) && !rule.required) {
  20158. return callback();
  20159. }
  20160. rules.required(rule, value, source, errors, options);
  20161. if (value !== undefined) {
  20162. rules.type(rule, value, source, errors, options);
  20163. }
  20164. }
  20165. callback(errors);
  20166. }
  20167. /**
  20168. * Validates the regular expression type.
  20169. *
  20170. * @param rule The validation rule.
  20171. * @param value The value of the field on the source object.
  20172. * @param callback The callback function.
  20173. * @param source The source object being validated.
  20174. * @param options The validation options.
  20175. * @param options.messages The validation messages.
  20176. */
  20177. function regexp(rule, value, callback, source, options) {
  20178. var errors = [];
  20179. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20180. if (validate) {
  20181. if (isEmptyValue(value) && !rule.required) {
  20182. return callback();
  20183. }
  20184. rules.required(rule, value, source, errors, options);
  20185. if (!isEmptyValue(value)) {
  20186. rules.type(rule, value, source, errors, options);
  20187. }
  20188. }
  20189. callback(errors);
  20190. }
  20191. /**
  20192. * Validates a number is an integer.
  20193. *
  20194. * @param rule The validation rule.
  20195. * @param value The value of the field on the source object.
  20196. * @param callback The callback function.
  20197. * @param source The source object being validated.
  20198. * @param options The validation options.
  20199. * @param options.messages The validation messages.
  20200. */
  20201. function integer(rule, value, callback, source, options) {
  20202. var errors = [];
  20203. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20204. if (validate) {
  20205. if (isEmptyValue(value) && !rule.required) {
  20206. return callback();
  20207. }
  20208. rules.required(rule, value, source, errors, options);
  20209. if (value !== undefined) {
  20210. rules.type(rule, value, source, errors, options);
  20211. rules.range(rule, value, source, errors, options);
  20212. }
  20213. }
  20214. callback(errors);
  20215. }
  20216. /**
  20217. * Validates a number is a floating point number.
  20218. *
  20219. * @param rule The validation rule.
  20220. * @param value The value of the field on the source object.
  20221. * @param callback The callback function.
  20222. * @param source The source object being validated.
  20223. * @param options The validation options.
  20224. * @param options.messages The validation messages.
  20225. */
  20226. function floatFn(rule, value, callback, source, options) {
  20227. var errors = [];
  20228. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20229. if (validate) {
  20230. if (isEmptyValue(value) && !rule.required) {
  20231. return callback();
  20232. }
  20233. rules.required(rule, value, source, errors, options);
  20234. if (value !== undefined) {
  20235. rules.type(rule, value, source, errors, options);
  20236. rules.range(rule, value, source, errors, options);
  20237. }
  20238. }
  20239. callback(errors);
  20240. }
  20241. /**
  20242. * Validates an array.
  20243. *
  20244. * @param rule The validation rule.
  20245. * @param value The value of the field on the source object.
  20246. * @param callback The callback function.
  20247. * @param source The source object being validated.
  20248. * @param options The validation options.
  20249. * @param options.messages The validation messages.
  20250. */
  20251. function array(rule, value, callback, source, options) {
  20252. var errors = [];
  20253. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20254. if (validate) {
  20255. if (isEmptyValue(value, 'array') && !rule.required) {
  20256. return callback();
  20257. }
  20258. rules.required(rule, value, source, errors, options, 'array');
  20259. if (!isEmptyValue(value, 'array')) {
  20260. rules.type(rule, value, source, errors, options);
  20261. rules.range(rule, value, source, errors, options);
  20262. }
  20263. }
  20264. callback(errors);
  20265. }
  20266. /**
  20267. * Validates an object.
  20268. *
  20269. * @param rule The validation rule.
  20270. * @param value The value of the field on the source object.
  20271. * @param callback The callback function.
  20272. * @param source The source object being validated.
  20273. * @param options The validation options.
  20274. * @param options.messages The validation messages.
  20275. */
  20276. function object(rule, value, callback, source, options) {
  20277. var errors = [];
  20278. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20279. if (validate) {
  20280. if (isEmptyValue(value) && !rule.required) {
  20281. return callback();
  20282. }
  20283. rules.required(rule, value, source, errors, options);
  20284. if (value !== undefined) {
  20285. rules.type(rule, value, source, errors, options);
  20286. }
  20287. }
  20288. callback(errors);
  20289. }
  20290. var ENUM$1 = 'enum';
  20291. /**
  20292. * Validates an enumerable list.
  20293. *
  20294. * @param rule The validation rule.
  20295. * @param value The value of the field on the source object.
  20296. * @param callback The callback function.
  20297. * @param source The source object being validated.
  20298. * @param options The validation options.
  20299. * @param options.messages The validation messages.
  20300. */
  20301. function enumerable$1(rule, value, callback, source, options) {
  20302. var errors = [];
  20303. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20304. if (validate) {
  20305. if (isEmptyValue(value) && !rule.required) {
  20306. return callback();
  20307. }
  20308. rules.required(rule, value, source, errors, options);
  20309. if (value !== undefined) {
  20310. rules[ENUM$1](rule, value, source, errors, options);
  20311. }
  20312. }
  20313. callback(errors);
  20314. }
  20315. /**
  20316. * Validates a regular expression pattern.
  20317. *
  20318. * Performs validation when a rule only contains
  20319. * a pattern property but is not declared as a string type.
  20320. *
  20321. * @param rule The validation rule.
  20322. * @param value The value of the field on the source object.
  20323. * @param callback The callback function.
  20324. * @param source The source object being validated.
  20325. * @param options The validation options.
  20326. * @param options.messages The validation messages.
  20327. */
  20328. function pattern$2(rule, value, callback, source, options) {
  20329. var errors = [];
  20330. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20331. if (validate) {
  20332. if (isEmptyValue(value, 'string') && !rule.required) {
  20333. return callback();
  20334. }
  20335. rules.required(rule, value, source, errors, options);
  20336. if (!isEmptyValue(value, 'string')) {
  20337. rules.pattern(rule, value, source, errors, options);
  20338. }
  20339. }
  20340. callback(errors);
  20341. }
  20342. function date(rule, value, callback, source, options) {
  20343. var errors = [];
  20344. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20345. if (validate) {
  20346. if (isEmptyValue(value) && !rule.required) {
  20347. return callback();
  20348. }
  20349. rules.required(rule, value, source, errors, options);
  20350. if (!isEmptyValue(value)) {
  20351. var dateObject;
  20352. if (typeof value === 'number') {
  20353. dateObject = new Date(value);
  20354. } else {
  20355. dateObject = value;
  20356. }
  20357. rules.type(rule, dateObject, source, errors, options);
  20358. if (dateObject) {
  20359. rules.range(rule, dateObject.getTime(), source, errors, options);
  20360. }
  20361. }
  20362. }
  20363. callback(errors);
  20364. }
  20365. function required$1(rule, value, callback, source, options) {
  20366. var errors = [];
  20367. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  20368. rules.required(rule, value, source, errors, options, type);
  20369. callback(errors);
  20370. }
  20371. function type$1(rule, value, callback, source, options) {
  20372. var ruleType = rule.type;
  20373. var errors = [];
  20374. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20375. if (validate) {
  20376. if (isEmptyValue(value, ruleType) && !rule.required) {
  20377. return callback();
  20378. }
  20379. rules.required(rule, value, source, errors, options, ruleType);
  20380. if (!isEmptyValue(value, ruleType)) {
  20381. rules.type(rule, value, source, errors, options);
  20382. }
  20383. }
  20384. callback(errors);
  20385. }
  20386. /**
  20387. * Performs validation for any type.
  20388. *
  20389. * @param rule The validation rule.
  20390. * @param value The value of the field on the source object.
  20391. * @param callback The callback function.
  20392. * @param source The source object being validated.
  20393. * @param options The validation options.
  20394. * @param options.messages The validation messages.
  20395. */
  20396. function any(rule, value, callback, source, options) {
  20397. var errors = [];
  20398. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  20399. if (validate) {
  20400. if (isEmptyValue(value) && !rule.required) {
  20401. return callback();
  20402. }
  20403. rules.required(rule, value, source, errors, options);
  20404. }
  20405. callback(errors);
  20406. }
  20407. var validators = {
  20408. string: string,
  20409. method: method,
  20410. number: number,
  20411. boolean: _boolean,
  20412. regexp: regexp,
  20413. integer: integer,
  20414. float: floatFn,
  20415. array: array,
  20416. object: object,
  20417. enum: enumerable$1,
  20418. pattern: pattern$2,
  20419. date: date,
  20420. url: type$1,
  20421. hex: type$1,
  20422. email: type$1,
  20423. required: required$1,
  20424. any: any
  20425. };
  20426. function newMessages() {
  20427. return {
  20428. default: 'Validation error on field %s',
  20429. required: '%s is required',
  20430. enum: '%s must be one of %s',
  20431. whitespace: '%s cannot be empty',
  20432. date: {
  20433. format: '%s date %s is invalid for format %s',
  20434. parse: '%s date could not be parsed, %s is invalid ',
  20435. invalid: '%s date %s is invalid'
  20436. },
  20437. types: {
  20438. string: '%s is not a %s',
  20439. method: '%s is not a %s (function)',
  20440. array: '%s is not an %s',
  20441. object: '%s is not an %s',
  20442. number: '%s is not a %s',
  20443. date: '%s is not a %s',
  20444. boolean: '%s is not a %s',
  20445. integer: '%s is not an %s',
  20446. float: '%s is not a %s',
  20447. regexp: '%s is not a valid %s',
  20448. email: '%s is not a valid %s',
  20449. url: '%s is not a valid %s',
  20450. hex: '%s is not a valid %s'
  20451. },
  20452. string: {
  20453. len: '%s must be exactly %s characters',
  20454. min: '%s must be at least %s characters',
  20455. max: '%s cannot be longer than %s characters',
  20456. range: '%s must be between %s and %s characters'
  20457. },
  20458. number: {
  20459. len: '%s must equal %s',
  20460. min: '%s cannot be less than %s',
  20461. max: '%s cannot be greater than %s',
  20462. range: '%s must be between %s and %s'
  20463. },
  20464. array: {
  20465. len: '%s must be exactly %s in length',
  20466. min: '%s cannot be less than %s in length',
  20467. max: '%s cannot be greater than %s in length',
  20468. range: '%s must be between %s and %s in length'
  20469. },
  20470. pattern: {
  20471. mismatch: '%s value %s does not match pattern %s'
  20472. },
  20473. clone: function clone() {
  20474. var cloned = JSON.parse(JSON.stringify(this));
  20475. cloned.clone = this.clone;
  20476. return cloned;
  20477. }
  20478. };
  20479. }
  20480. var messages = newMessages();
  20481. /**
  20482. * Encapsulates a validation schema.
  20483. *
  20484. * @param descriptor An object declaring validation rules
  20485. * for this schema.
  20486. */
  20487. function Schema(descriptor) {
  20488. this.rules = null;
  20489. this._messages = messages;
  20490. this.define(descriptor);
  20491. }
  20492. Schema.prototype = {
  20493. messages: function messages(_messages) {
  20494. if (_messages) {
  20495. this._messages = deepMerge(newMessages(), _messages);
  20496. }
  20497. return this._messages;
  20498. },
  20499. define: function define(rules) {
  20500. if (!rules) {
  20501. throw new Error('Cannot configure a schema with no rules');
  20502. }
  20503. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  20504. throw new Error('Rules must be an object');
  20505. }
  20506. this.rules = {};
  20507. var z;
  20508. var item;
  20509. for (z in rules) {
  20510. if (rules.hasOwnProperty(z)) {
  20511. item = rules[z];
  20512. this.rules[z] = Array.isArray(item) ? item : [item];
  20513. }
  20514. }
  20515. },
  20516. validate: function validate(source_, o, oc) {
  20517. var _this = this;
  20518. if (o === void 0) {
  20519. o = {};
  20520. }
  20521. if (oc === void 0) {
  20522. oc = function oc() {};
  20523. }
  20524. var source = source_;
  20525. var options = o;
  20526. var callback = oc;
  20527. if (typeof options === 'function') {
  20528. callback = options;
  20529. options = {};
  20530. }
  20531. if (!this.rules || Object.keys(this.rules).length === 0) {
  20532. if (callback) {
  20533. callback();
  20534. }
  20535. return Promise.resolve();
  20536. }
  20537. function complete(results) {
  20538. var i;
  20539. var errors = [];
  20540. var fields = {};
  20541. function add(e) {
  20542. if (Array.isArray(e)) {
  20543. var _errors;
  20544. errors = (_errors = errors).concat.apply(_errors, e);
  20545. } else {
  20546. errors.push(e);
  20547. }
  20548. }
  20549. for (i = 0; i < results.length; i++) {
  20550. add(results[i]);
  20551. }
  20552. if (!errors.length) {
  20553. errors = null;
  20554. fields = null;
  20555. } else {
  20556. fields = convertFieldsError(errors);
  20557. }
  20558. callback(errors, fields);
  20559. }
  20560. if (options.messages) {
  20561. var messages$1 = this.messages();
  20562. if (messages$1 === messages) {
  20563. messages$1 = newMessages();
  20564. }
  20565. deepMerge(messages$1, options.messages);
  20566. options.messages = messages$1;
  20567. } else {
  20568. options.messages = this.messages();
  20569. }
  20570. var arr;
  20571. var value;
  20572. var series = {};
  20573. var keys = options.keys || Object.keys(this.rules);
  20574. keys.forEach(function (z) {
  20575. arr = _this.rules[z];
  20576. value = source[z];
  20577. arr.forEach(function (r) {
  20578. var rule = r;
  20579. if (typeof rule.transform === 'function') {
  20580. if (source === source_) {
  20581. source = _objectSpread({}, source);
  20582. }
  20583. value = source[z] = rule.transform(value);
  20584. }
  20585. if (typeof rule === 'function') {
  20586. rule = {
  20587. validator: rule
  20588. };
  20589. } else {
  20590. rule = _objectSpread({}, rule);
  20591. }
  20592. rule.validator = _this.getValidationMethod(rule);
  20593. rule.field = z;
  20594. rule.fullField = rule.fullField || z;
  20595. rule.type = _this.getType(rule);
  20596. if (!rule.validator) {
  20597. return;
  20598. }
  20599. series[z] = series[z] || [];
  20600. series[z].push({
  20601. rule: rule,
  20602. value: value,
  20603. source: source,
  20604. field: z
  20605. });
  20606. });
  20607. });
  20608. var errorFields = {};
  20609. return asyncMap(series, options, function (data, doIt) {
  20610. var rule = data.rule;
  20611. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  20612. deep = deep && (rule.required || !rule.required && data.value);
  20613. rule.field = data.field;
  20614. function addFullfield(key, schema) {
  20615. return _objectSpread(_objectSpread({}, schema), {}, {
  20616. fullField: "".concat(rule.fullField, ".").concat(key)
  20617. });
  20618. }
  20619. function cb(e) {
  20620. if (e === void 0) {
  20621. e = [];
  20622. }
  20623. var errors = e;
  20624. if (!Array.isArray(errors)) {
  20625. errors = [errors];
  20626. }
  20627. if (!options.suppressWarning && errors.length) {
  20628. Schema.warning('async-validator:', errors);
  20629. }
  20630. if (errors.length && rule.message) {
  20631. errors = [].concat(rule.message);
  20632. }
  20633. errors = errors.map(complementError(rule));
  20634. if (options.first && errors.length) {
  20635. errorFields[rule.field] = 1;
  20636. return doIt(errors);
  20637. }
  20638. if (!deep) {
  20639. doIt(errors);
  20640. } else {
  20641. // if rule is required but the target object
  20642. // does not exist fail at the rule level and don't
  20643. // go deeper
  20644. if (rule.required && !data.value) {
  20645. if (rule.message) {
  20646. errors = [].concat(rule.message).map(complementError(rule));
  20647. } else if (options.error) {
  20648. errors = [options.error(rule, format(options.messages.required, rule.field))];
  20649. } else {
  20650. errors = [];
  20651. }
  20652. return doIt(errors);
  20653. }
  20654. var fieldsSchema = {};
  20655. if (rule.defaultField) {
  20656. for (var k in data.value) {
  20657. if (data.value.hasOwnProperty(k)) {
  20658. fieldsSchema[k] = rule.defaultField;
  20659. }
  20660. }
  20661. }
  20662. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  20663. for (var f in fieldsSchema) {
  20664. if (fieldsSchema.hasOwnProperty(f)) {
  20665. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  20666. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  20667. }
  20668. }
  20669. var schema = new Schema(fieldsSchema);
  20670. schema.messages(options.messages);
  20671. if (data.rule.options) {
  20672. data.rule.options.messages = options.messages;
  20673. data.rule.options.error = options.error;
  20674. }
  20675. schema.validate(data.value, data.rule.options || options, function (errs) {
  20676. var finalErrors = [];
  20677. if (errors && errors.length) {
  20678. finalErrors.push.apply(finalErrors, errors);
  20679. }
  20680. if (errs && errs.length) {
  20681. finalErrors.push.apply(finalErrors, errs);
  20682. }
  20683. doIt(finalErrors.length ? finalErrors : null);
  20684. });
  20685. }
  20686. }
  20687. var res;
  20688. if (rule.asyncValidator) {
  20689. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  20690. } else if (rule.validator) {
  20691. res = rule.validator(rule, data.value, cb, data.source, options);
  20692. if (res === true) {
  20693. cb();
  20694. } else if (res === false) {
  20695. cb(rule.message || "".concat(rule.field, " fails"));
  20696. } else if (res instanceof Array) {
  20697. cb(res);
  20698. } else if (res instanceof Error) {
  20699. cb(res.message);
  20700. }
  20701. }
  20702. if (res && res.then) {
  20703. res.then(function () {
  20704. return cb();
  20705. }, function (e) {
  20706. return cb(e);
  20707. });
  20708. }
  20709. }, function (results) {
  20710. complete(results);
  20711. });
  20712. },
  20713. getType: function getType(rule) {
  20714. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  20715. rule.type = 'pattern';
  20716. }
  20717. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  20718. throw new Error(format('Unknown rule type %s', rule.type));
  20719. }
  20720. return rule.type || 'string';
  20721. },
  20722. getValidationMethod: function getValidationMethod(rule) {
  20723. if (typeof rule.validator === 'function') {
  20724. return rule.validator;
  20725. }
  20726. var keys = Object.keys(rule);
  20727. var messageIndex = keys.indexOf('message');
  20728. if (messageIndex !== -1) {
  20729. keys.splice(messageIndex, 1);
  20730. }
  20731. if (keys.length === 1 && keys[0] === 'required') {
  20732. return validators.required;
  20733. }
  20734. return validators[this.getType(rule)] || false;
  20735. }
  20736. };
  20737. Schema.register = function register(type, validator) {
  20738. if (typeof validator !== 'function') {
  20739. throw new Error('Cannot register a validator by type, validator is not a function');
  20740. }
  20741. validators[type] = validator;
  20742. };
  20743. Schema.warning = warning;
  20744. Schema.messages = messages;
  20745. var _default = Schema; // # sourceMappingURL=index.js.map
  20746. exports.default = _default;
  20747. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/node-libs-browser/mock/process.js */ 449)))
  20748. /***/ }),
  20749. /* 449 */
  20750. /*!********************************************************!*\
  20751. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  20752. \********************************************************/
  20753. /*! no static exports found */
  20754. /***/ (function(module, exports, __webpack_require__) {
  20755. exports.nextTick = function nextTick(fn) {
  20756. var args = Array.prototype.slice.call(arguments);
  20757. args.shift();
  20758. setTimeout(function () {
  20759. fn.apply(null, args);
  20760. }, 0);
  20761. };
  20762. exports.platform = exports.arch =
  20763. exports.execPath = exports.title = 'browser';
  20764. exports.pid = 1;
  20765. exports.browser = true;
  20766. exports.env = {};
  20767. exports.argv = [];
  20768. exports.binding = function (name) {
  20769. throw new Error('No such module. (Possibly not yet loaded)')
  20770. };
  20771. (function () {
  20772. var cwd = '/';
  20773. var path;
  20774. exports.cwd = function () { return cwd };
  20775. exports.chdir = function (dir) {
  20776. if (!path) path = __webpack_require__(/*! path */ 450);
  20777. cwd = path.resolve(dir, cwd);
  20778. };
  20779. })();
  20780. exports.exit = exports.kill =
  20781. exports.umask = exports.dlopen =
  20782. exports.uptime = exports.memoryUsage =
  20783. exports.uvCounters = function() {};
  20784. exports.features = {};
  20785. /***/ }),
  20786. /* 450 */
  20787. /*!***********************************************!*\
  20788. !*** ./node_modules/path-browserify/index.js ***!
  20789. \***********************************************/
  20790. /*! no static exports found */
  20791. /***/ (function(module, exports, __webpack_require__) {
  20792. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  20793. // backported and transplited with Babel, with backwards-compat fixes
  20794. // Copyright Joyent, Inc. and other Node contributors.
  20795. //
  20796. // Permission is hereby granted, free of charge, to any person obtaining a
  20797. // copy of this software and associated documentation files (the
  20798. // "Software"), to deal in the Software without restriction, including
  20799. // without limitation the rights to use, copy, modify, merge, publish,
  20800. // distribute, sublicense, and/or sell copies of the Software, and to permit
  20801. // persons to whom the Software is furnished to do so, subject to the
  20802. // following conditions:
  20803. //
  20804. // The above copyright notice and this permission notice shall be included
  20805. // in all copies or substantial portions of the Software.
  20806. //
  20807. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  20808. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  20809. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  20810. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  20811. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  20812. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  20813. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  20814. // resolves . and .. elements in a path array with directory names there
  20815. // must be no slashes, empty elements, or device names (c:\) in the array
  20816. // (so also no leading and trailing slashes - it does not distinguish
  20817. // relative and absolute paths)
  20818. function normalizeArray(parts, allowAboveRoot) {
  20819. // if the path tries to go above the root, `up` ends up > 0
  20820. var up = 0;
  20821. for (var i = parts.length - 1; i >= 0; i--) {
  20822. var last = parts[i];
  20823. if (last === '.') {
  20824. parts.splice(i, 1);
  20825. } else if (last === '..') {
  20826. parts.splice(i, 1);
  20827. up++;
  20828. } else if (up) {
  20829. parts.splice(i, 1);
  20830. up--;
  20831. }
  20832. }
  20833. // if the path is allowed to go above the root, restore leading ..s
  20834. if (allowAboveRoot) {
  20835. for (; up--; up) {
  20836. parts.unshift('..');
  20837. }
  20838. }
  20839. return parts;
  20840. }
  20841. // path.resolve([from ...], to)
  20842. // posix version
  20843. exports.resolve = function() {
  20844. var resolvedPath = '',
  20845. resolvedAbsolute = false;
  20846. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  20847. var path = (i >= 0) ? arguments[i] : process.cwd();
  20848. // Skip empty and invalid entries
  20849. if (typeof path !== 'string') {
  20850. throw new TypeError('Arguments to path.resolve must be strings');
  20851. } else if (!path) {
  20852. continue;
  20853. }
  20854. resolvedPath = path + '/' + resolvedPath;
  20855. resolvedAbsolute = path.charAt(0) === '/';
  20856. }
  20857. // At this point the path should be resolved to a full absolute path, but
  20858. // handle relative paths to be safe (might happen when process.cwd() fails)
  20859. // Normalize the path
  20860. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  20861. return !!p;
  20862. }), !resolvedAbsolute).join('/');
  20863. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  20864. };
  20865. // path.normalize(path)
  20866. // posix version
  20867. exports.normalize = function(path) {
  20868. var isAbsolute = exports.isAbsolute(path),
  20869. trailingSlash = substr(path, -1) === '/';
  20870. // Normalize the path
  20871. path = normalizeArray(filter(path.split('/'), function(p) {
  20872. return !!p;
  20873. }), !isAbsolute).join('/');
  20874. if (!path && !isAbsolute) {
  20875. path = '.';
  20876. }
  20877. if (path && trailingSlash) {
  20878. path += '/';
  20879. }
  20880. return (isAbsolute ? '/' : '') + path;
  20881. };
  20882. // posix version
  20883. exports.isAbsolute = function(path) {
  20884. return path.charAt(0) === '/';
  20885. };
  20886. // posix version
  20887. exports.join = function() {
  20888. var paths = Array.prototype.slice.call(arguments, 0);
  20889. return exports.normalize(filter(paths, function(p, index) {
  20890. if (typeof p !== 'string') {
  20891. throw new TypeError('Arguments to path.join must be strings');
  20892. }
  20893. return p;
  20894. }).join('/'));
  20895. };
  20896. // path.relative(from, to)
  20897. // posix version
  20898. exports.relative = function(from, to) {
  20899. from = exports.resolve(from).substr(1);
  20900. to = exports.resolve(to).substr(1);
  20901. function trim(arr) {
  20902. var start = 0;
  20903. for (; start < arr.length; start++) {
  20904. if (arr[start] !== '') break;
  20905. }
  20906. var end = arr.length - 1;
  20907. for (; end >= 0; end--) {
  20908. if (arr[end] !== '') break;
  20909. }
  20910. if (start > end) return [];
  20911. return arr.slice(start, end - start + 1);
  20912. }
  20913. var fromParts = trim(from.split('/'));
  20914. var toParts = trim(to.split('/'));
  20915. var length = Math.min(fromParts.length, toParts.length);
  20916. var samePartsLength = length;
  20917. for (var i = 0; i < length; i++) {
  20918. if (fromParts[i] !== toParts[i]) {
  20919. samePartsLength = i;
  20920. break;
  20921. }
  20922. }
  20923. var outputParts = [];
  20924. for (var i = samePartsLength; i < fromParts.length; i++) {
  20925. outputParts.push('..');
  20926. }
  20927. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  20928. return outputParts.join('/');
  20929. };
  20930. exports.sep = '/';
  20931. exports.delimiter = ':';
  20932. exports.dirname = function (path) {
  20933. if (typeof path !== 'string') path = path + '';
  20934. if (path.length === 0) return '.';
  20935. var code = path.charCodeAt(0);
  20936. var hasRoot = code === 47 /*/*/;
  20937. var end = -1;
  20938. var matchedSlash = true;
  20939. for (var i = path.length - 1; i >= 1; --i) {
  20940. code = path.charCodeAt(i);
  20941. if (code === 47 /*/*/) {
  20942. if (!matchedSlash) {
  20943. end = i;
  20944. break;
  20945. }
  20946. } else {
  20947. // We saw the first non-path separator
  20948. matchedSlash = false;
  20949. }
  20950. }
  20951. if (end === -1) return hasRoot ? '/' : '.';
  20952. if (hasRoot && end === 1) {
  20953. // return '//';
  20954. // Backwards-compat fix:
  20955. return '/';
  20956. }
  20957. return path.slice(0, end);
  20958. };
  20959. function basename(path) {
  20960. if (typeof path !== 'string') path = path + '';
  20961. var start = 0;
  20962. var end = -1;
  20963. var matchedSlash = true;
  20964. var i;
  20965. for (i = path.length - 1; i >= 0; --i) {
  20966. if (path.charCodeAt(i) === 47 /*/*/) {
  20967. // If we reached a path separator that was not part of a set of path
  20968. // separators at the end of the string, stop now
  20969. if (!matchedSlash) {
  20970. start = i + 1;
  20971. break;
  20972. }
  20973. } else if (end === -1) {
  20974. // We saw the first non-path separator, mark this as the end of our
  20975. // path component
  20976. matchedSlash = false;
  20977. end = i + 1;
  20978. }
  20979. }
  20980. if (end === -1) return '';
  20981. return path.slice(start, end);
  20982. }
  20983. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  20984. // in new Node.js versions, so only basename() above is backported here
  20985. exports.basename = function (path, ext) {
  20986. var f = basename(path);
  20987. if (ext && f.substr(-1 * ext.length) === ext) {
  20988. f = f.substr(0, f.length - ext.length);
  20989. }
  20990. return f;
  20991. };
  20992. exports.extname = function (path) {
  20993. if (typeof path !== 'string') path = path + '';
  20994. var startDot = -1;
  20995. var startPart = 0;
  20996. var end = -1;
  20997. var matchedSlash = true;
  20998. // Track the state of characters (if any) we see before our first dot and
  20999. // after any path separator we find
  21000. var preDotState = 0;
  21001. for (var i = path.length - 1; i >= 0; --i) {
  21002. var code = path.charCodeAt(i);
  21003. if (code === 47 /*/*/) {
  21004. // If we reached a path separator that was not part of a set of path
  21005. // separators at the end of the string, stop now
  21006. if (!matchedSlash) {
  21007. startPart = i + 1;
  21008. break;
  21009. }
  21010. continue;
  21011. }
  21012. if (end === -1) {
  21013. // We saw the first non-path separator, mark this as the end of our
  21014. // extension
  21015. matchedSlash = false;
  21016. end = i + 1;
  21017. }
  21018. if (code === 46 /*.*/) {
  21019. // If this is our first dot, mark it as the start of our extension
  21020. if (startDot === -1)
  21021. startDot = i;
  21022. else if (preDotState !== 1)
  21023. preDotState = 1;
  21024. } else if (startDot !== -1) {
  21025. // We saw a non-dot and non-path separator before our dot, so we should
  21026. // have a good chance at having a non-empty extension
  21027. preDotState = -1;
  21028. }
  21029. }
  21030. if (startDot === -1 || end === -1 ||
  21031. // We saw a non-dot character immediately before the dot
  21032. preDotState === 0 ||
  21033. // The (right-most) trimmed path component is exactly '..'
  21034. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  21035. return '';
  21036. }
  21037. return path.slice(startDot, end);
  21038. };
  21039. function filter (xs, f) {
  21040. if (xs.filter) return xs.filter(f);
  21041. var res = [];
  21042. for (var i = 0; i < xs.length; i++) {
  21043. if (f(xs[i], i, xs)) res.push(xs[i]);
  21044. }
  21045. return res;
  21046. }
  21047. // String.prototype.substr - negative index don't work in IE8
  21048. var substr = 'ab'.substr(-1) === 'b'
  21049. ? function (str, start, len) { return str.substr(start, len) }
  21050. : function (str, start, len) {
  21051. if (start < 0) start = str.length + start;
  21052. return str.substr(start, len);
  21053. }
  21054. ;
  21055. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 449)))
  21056. /***/ }),
  21057. /* 451 */,
  21058. /* 452 */,
  21059. /* 453 */,
  21060. /* 454 */,
  21061. /* 455 */,
  21062. /* 456 */
  21063. /*!****************************************************************************!*\
  21064. !*** D:/baozhida/baozhida-mall-applet/uview-ui/components/u-line/props.js ***!
  21065. \****************************************************************************/
  21066. /*! no static exports found */
  21067. /***/ (function(module, exports, __webpack_require__) {
  21068. "use strict";
  21069. /* WEBPACK VAR INJECTION */(function(uni) {
  21070. Object.defineProperty(exports, "__esModule", {
  21071. value: true
  21072. });
  21073. exports.default = void 0;
  21074. var _default = {
  21075. props: {
  21076. color: {
  21077. type: String,
  21078. default: uni.$u.props.line.color
  21079. },
  21080. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  21081. length: {
  21082. type: [String, Number],
  21083. default: uni.$u.props.line.length
  21084. },
  21085. // 线条方向,col-竖向,row-横向
  21086. direction: {
  21087. type: String,
  21088. default: uni.$u.props.line.direction
  21089. },
  21090. // 是否显示细边框
  21091. hairline: {
  21092. type: Boolean,
  21093. default: uni.$u.props.line.hairline
  21094. },
  21095. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  21096. margin: {
  21097. type: [String, Number],
  21098. default: uni.$u.props.line.margin
  21099. },
  21100. // 是否虚线,true-虚线,false-实线
  21101. dashed: {
  21102. type: Boolean,
  21103. default: uni.$u.props.line.dashed
  21104. }
  21105. }
  21106. };
  21107. exports.default = _default;
  21108. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
  21109. /***/ })
  21110. ]]);
  21111. //# sourceMappingURL=../../.sourcemap/mp-weixin/common/vendor.js.map