vendor.js 736 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528
  1. (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["common/vendor"],[
  2. /* 0 */,
  3. /* 1 */
  4. /*!*************************************************************!*\
  5. !*** ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js ***!
  6. \*************************************************************/
  7. /*! no static exports found */
  8. /***/ (function(module, exports, __webpack_require__) {
  9. "use strict";
  10. /* WEBPACK VAR INJECTION */(function(global) {
  11. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  12. Object.defineProperty(exports, "__esModule", {
  13. value: true
  14. });
  15. exports.createApp = createApp;
  16. exports.createComponent = createComponent;
  17. exports.createPage = createPage;
  18. exports.createPlugin = createPlugin;
  19. exports.createSubpackageApp = createSubpackageApp;
  20. exports.default = void 0;
  21. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 4));
  22. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  23. var _construct2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/construct */ 14));
  24. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 17));
  25. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 18));
  26. var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 19));
  27. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  28. var _uniI18n = __webpack_require__(/*! @dcloudio/uni-i18n */ 23);
  29. var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 24));
  30. 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; }
  31. 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; }
  32. var realAtob;
  33. var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  34. var b64re = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;
  35. if (typeof atob !== 'function') {
  36. realAtob = function realAtob(str) {
  37. str = String(str).replace(/[\t\n\f\r ]+/g, '');
  38. if (!b64re.test(str)) {
  39. throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");
  40. }
  41. // Adding the padding if missing, for semplicity
  42. str += '=='.slice(2 - (str.length & 3));
  43. var bitmap;
  44. var result = '';
  45. var r1;
  46. var r2;
  47. var i = 0;
  48. for (; i < str.length;) {
  49. 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++)));
  50. 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);
  51. }
  52. return result;
  53. };
  54. } else {
  55. // 注意atob只能在全局对象上调用,例如:`const Base64 = {atob};Base64.atob('xxxx')`是错误的用法
  56. realAtob = atob;
  57. }
  58. function b64DecodeUnicode(str) {
  59. return decodeURIComponent(realAtob(str).split('').map(function (c) {
  60. return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
  61. }).join(''));
  62. }
  63. function getCurrentUserInfo() {
  64. var token = tt.getStorageSync('uni_id_token') || '';
  65. var tokenArr = token.split('.');
  66. if (!token || tokenArr.length !== 3) {
  67. return {
  68. uid: null,
  69. role: [],
  70. permission: [],
  71. tokenExpired: 0
  72. };
  73. }
  74. var userInfo;
  75. try {
  76. userInfo = JSON.parse(b64DecodeUnicode(tokenArr[1]));
  77. } catch (error) {
  78. throw new Error('获取当前用户信息出错,详细错误信息为:' + error.message);
  79. }
  80. userInfo.tokenExpired = userInfo.exp * 1000;
  81. delete userInfo.exp;
  82. delete userInfo.iat;
  83. return userInfo;
  84. }
  85. function uniIdMixin(Vue) {
  86. Vue.prototype.uniIDHasRole = function (roleId) {
  87. var _getCurrentUserInfo = getCurrentUserInfo(),
  88. role = _getCurrentUserInfo.role;
  89. return role.indexOf(roleId) > -1;
  90. };
  91. Vue.prototype.uniIDHasPermission = function (permissionId) {
  92. var _getCurrentUserInfo2 = getCurrentUserInfo(),
  93. permission = _getCurrentUserInfo2.permission;
  94. return this.uniIDHasRole('admin') || permission.indexOf(permissionId) > -1;
  95. };
  96. Vue.prototype.uniIDTokenValid = function () {
  97. var _getCurrentUserInfo3 = getCurrentUserInfo(),
  98. tokenExpired = _getCurrentUserInfo3.tokenExpired;
  99. return tokenExpired > Date.now();
  100. };
  101. }
  102. var _toString = Object.prototype.toString;
  103. var hasOwnProperty = Object.prototype.hasOwnProperty;
  104. function isFn(fn) {
  105. return typeof fn === 'function';
  106. }
  107. function isStr(str) {
  108. return typeof str === 'string';
  109. }
  110. function isObject(obj) {
  111. return obj !== null && (0, _typeof2.default)(obj) === 'object';
  112. }
  113. function isPlainObject(obj) {
  114. return _toString.call(obj) === '[object Object]';
  115. }
  116. function hasOwn(obj, key) {
  117. return hasOwnProperty.call(obj, key);
  118. }
  119. function noop() {}
  120. /**
  121. * Create a cached version of a pure function.
  122. */
  123. function cached(fn) {
  124. var cache = Object.create(null);
  125. return function cachedFn(str) {
  126. var hit = cache[str];
  127. return hit || (cache[str] = fn(str));
  128. };
  129. }
  130. /**
  131. * Camelize a hyphen-delimited string.
  132. */
  133. var camelizeRE = /-(\w)/g;
  134. var camelize = cached(function (str) {
  135. return str.replace(camelizeRE, function (_, c) {
  136. return c ? c.toUpperCase() : '';
  137. });
  138. });
  139. var HOOKS = ['invoke', 'success', 'fail', 'complete', 'returnValue'];
  140. var globalInterceptors = {};
  141. var scopedInterceptors = {};
  142. function mergeHook(parentVal, childVal) {
  143. var res = childVal ? parentVal ? parentVal.concat(childVal) : Array.isArray(childVal) ? childVal : [childVal] : parentVal;
  144. return res ? dedupeHooks(res) : res;
  145. }
  146. function dedupeHooks(hooks) {
  147. var res = [];
  148. for (var i = 0; i < hooks.length; i++) {
  149. if (res.indexOf(hooks[i]) === -1) {
  150. res.push(hooks[i]);
  151. }
  152. }
  153. return res;
  154. }
  155. function removeHook(hooks, hook) {
  156. var index = hooks.indexOf(hook);
  157. if (index !== -1) {
  158. hooks.splice(index, 1);
  159. }
  160. }
  161. function mergeInterceptorHook(interceptor, option) {
  162. Object.keys(option).forEach(function (hook) {
  163. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  164. interceptor[hook] = mergeHook(interceptor[hook], option[hook]);
  165. }
  166. });
  167. }
  168. function removeInterceptorHook(interceptor, option) {
  169. if (!interceptor || !option) {
  170. return;
  171. }
  172. Object.keys(option).forEach(function (hook) {
  173. if (HOOKS.indexOf(hook) !== -1 && isFn(option[hook])) {
  174. removeHook(interceptor[hook], option[hook]);
  175. }
  176. });
  177. }
  178. function addInterceptor(method, option) {
  179. if (typeof method === 'string' && isPlainObject(option)) {
  180. mergeInterceptorHook(scopedInterceptors[method] || (scopedInterceptors[method] = {}), option);
  181. } else if (isPlainObject(method)) {
  182. mergeInterceptorHook(globalInterceptors, method);
  183. }
  184. }
  185. function removeInterceptor(method, option) {
  186. if (typeof method === 'string') {
  187. if (isPlainObject(option)) {
  188. removeInterceptorHook(scopedInterceptors[method], option);
  189. } else {
  190. delete scopedInterceptors[method];
  191. }
  192. } else if (isPlainObject(method)) {
  193. removeInterceptorHook(globalInterceptors, method);
  194. }
  195. }
  196. function wrapperHook(hook) {
  197. return function (data) {
  198. return hook(data) || data;
  199. };
  200. }
  201. function isPromise(obj) {
  202. return !!obj && ((0, _typeof2.default)(obj) === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  203. }
  204. function queue(hooks, data) {
  205. var promise = false;
  206. for (var i = 0; i < hooks.length; i++) {
  207. var hook = hooks[i];
  208. if (promise) {
  209. promise = Promise.resolve(wrapperHook(hook));
  210. } else {
  211. var res = hook(data);
  212. if (isPromise(res)) {
  213. promise = Promise.resolve(res);
  214. }
  215. if (res === false) {
  216. return {
  217. then: function then() {}
  218. };
  219. }
  220. }
  221. }
  222. return promise || {
  223. then: function then(callback) {
  224. return callback(data);
  225. }
  226. };
  227. }
  228. function wrapperOptions(interceptor) {
  229. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  230. ['success', 'fail', 'complete'].forEach(function (name) {
  231. if (Array.isArray(interceptor[name])) {
  232. var oldCallback = options[name];
  233. options[name] = function callbackInterceptor(res) {
  234. queue(interceptor[name], res).then(function (res) {
  235. /* eslint-disable no-mixed-operators */
  236. return isFn(oldCallback) && oldCallback(res) || res;
  237. });
  238. };
  239. }
  240. });
  241. return options;
  242. }
  243. function wrapperReturnValue(method, returnValue) {
  244. var returnValueHooks = [];
  245. if (Array.isArray(globalInterceptors.returnValue)) {
  246. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(globalInterceptors.returnValue));
  247. }
  248. var interceptor = scopedInterceptors[method];
  249. if (interceptor && Array.isArray(interceptor.returnValue)) {
  250. returnValueHooks.push.apply(returnValueHooks, (0, _toConsumableArray2.default)(interceptor.returnValue));
  251. }
  252. returnValueHooks.forEach(function (hook) {
  253. returnValue = hook(returnValue) || returnValue;
  254. });
  255. return returnValue;
  256. }
  257. function getApiInterceptorHooks(method) {
  258. var interceptor = Object.create(null);
  259. Object.keys(globalInterceptors).forEach(function (hook) {
  260. if (hook !== 'returnValue') {
  261. interceptor[hook] = globalInterceptors[hook].slice();
  262. }
  263. });
  264. var scopedInterceptor = scopedInterceptors[method];
  265. if (scopedInterceptor) {
  266. Object.keys(scopedInterceptor).forEach(function (hook) {
  267. if (hook !== 'returnValue') {
  268. interceptor[hook] = (interceptor[hook] || []).concat(scopedInterceptor[hook]);
  269. }
  270. });
  271. }
  272. return interceptor;
  273. }
  274. function invokeApi(method, api, options) {
  275. for (var _len = arguments.length, params = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
  276. params[_key - 3] = arguments[_key];
  277. }
  278. var interceptor = getApiInterceptorHooks(method);
  279. if (interceptor && Object.keys(interceptor).length) {
  280. if (Array.isArray(interceptor.invoke)) {
  281. var res = queue(interceptor.invoke, options);
  282. return res.then(function (options) {
  283. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  284. });
  285. } else {
  286. return api.apply(void 0, [wrapperOptions(interceptor, options)].concat(params));
  287. }
  288. }
  289. return api.apply(void 0, [options].concat(params));
  290. }
  291. var promiseInterceptor = {
  292. returnValue: function returnValue(res) {
  293. if (!isPromise(res)) {
  294. return res;
  295. }
  296. return new Promise(function (resolve, reject) {
  297. res.then(function (res) {
  298. if (res[0]) {
  299. reject(res[0]);
  300. } else {
  301. resolve(res[1]);
  302. }
  303. });
  304. });
  305. }
  306. };
  307. var SYNC_API_RE = /^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/;
  308. var CONTEXT_API_RE = /^create|Manager$/;
  309. // Context例外情况
  310. var CONTEXT_API_RE_EXC = ['createBLEConnection'];
  311. // 同步例外情况
  312. var ASYNC_API = ['createBLEConnection', 'createPushMessage'];
  313. var CALLBACK_API_RE = /^on|^off/;
  314. function isContextApi(name) {
  315. return CONTEXT_API_RE.test(name) && CONTEXT_API_RE_EXC.indexOf(name) === -1;
  316. }
  317. function isSyncApi(name) {
  318. return SYNC_API_RE.test(name) && ASYNC_API.indexOf(name) === -1;
  319. }
  320. function isCallbackApi(name) {
  321. return CALLBACK_API_RE.test(name) && name !== 'onPush';
  322. }
  323. function handlePromise(promise) {
  324. return promise.then(function (data) {
  325. return [null, data];
  326. }).catch(function (err) {
  327. return [err];
  328. });
  329. }
  330. function shouldPromise(name) {
  331. if (isContextApi(name) || isSyncApi(name) || isCallbackApi(name)) {
  332. return false;
  333. }
  334. return true;
  335. }
  336. /* eslint-disable no-extend-native */
  337. if (!Promise.prototype.finally) {
  338. Promise.prototype.finally = function (callback) {
  339. var promise = this.constructor;
  340. return this.then(function (value) {
  341. return promise.resolve(callback()).then(function () {
  342. return value;
  343. });
  344. }, function (reason) {
  345. return promise.resolve(callback()).then(function () {
  346. throw reason;
  347. });
  348. });
  349. };
  350. }
  351. function promisify(name, api) {
  352. if (!shouldPromise(name) || !isFn(api)) {
  353. return api;
  354. }
  355. return function promiseApi() {
  356. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  357. for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  358. params[_key2 - 1] = arguments[_key2];
  359. }
  360. if (isFn(options.success) || isFn(options.fail) || isFn(options.complete)) {
  361. return wrapperReturnValue(name, invokeApi.apply(void 0, [name, api, options].concat(params)));
  362. }
  363. return wrapperReturnValue(name, handlePromise(new Promise(function (resolve, reject) {
  364. invokeApi.apply(void 0, [name, api, Object.assign({}, options, {
  365. success: resolve,
  366. fail: reject
  367. })].concat(params));
  368. })));
  369. };
  370. }
  371. var EPS = 1e-4;
  372. var BASE_DEVICE_WIDTH = 750;
  373. var isIOS = false;
  374. var deviceWidth = 0;
  375. var deviceDPR = 0;
  376. function checkDeviceWidth() {
  377. var _tt$getSystemInfoSync = tt.getSystemInfoSync(),
  378. platform = _tt$getSystemInfoSync.platform,
  379. pixelRatio = _tt$getSystemInfoSync.pixelRatio,
  380. windowWidth = _tt$getSystemInfoSync.windowWidth; // uni=>tt runtime 编译目标是 uni 对象,内部不允许直接使用 uni
  381. deviceWidth = windowWidth;
  382. deviceDPR = pixelRatio;
  383. isIOS = platform === 'ios';
  384. }
  385. function upx2px(number, newDeviceWidth) {
  386. if (deviceWidth === 0) {
  387. checkDeviceWidth();
  388. }
  389. number = Number(number);
  390. if (number === 0) {
  391. return 0;
  392. }
  393. var result = number / BASE_DEVICE_WIDTH * (newDeviceWidth || deviceWidth);
  394. if (result < 0) {
  395. result = -result;
  396. }
  397. result = Math.floor(result + EPS);
  398. if (result === 0) {
  399. if (deviceDPR === 1 || !isIOS) {
  400. result = 1;
  401. } else {
  402. result = 0.5;
  403. }
  404. }
  405. return number < 0 ? -result : result;
  406. }
  407. var LOCALE_ZH_HANS = 'zh-Hans';
  408. var LOCALE_ZH_HANT = 'zh-Hant';
  409. var LOCALE_EN = 'en';
  410. var LOCALE_FR = 'fr';
  411. var LOCALE_ES = 'es';
  412. var messages = {};
  413. var locale;
  414. {
  415. locale = normalizeLocale(tt.getSystemInfoSync().language) || LOCALE_EN;
  416. }
  417. function initI18nMessages() {
  418. if (!isEnableLocale()) {
  419. return;
  420. }
  421. var localeKeys = Object.keys(__uniConfig.locales);
  422. if (localeKeys.length) {
  423. localeKeys.forEach(function (locale) {
  424. var curMessages = messages[locale];
  425. var userMessages = __uniConfig.locales[locale];
  426. if (curMessages) {
  427. Object.assign(curMessages, userMessages);
  428. } else {
  429. messages[locale] = userMessages;
  430. }
  431. });
  432. }
  433. }
  434. initI18nMessages();
  435. var i18n = (0, _uniI18n.initVueI18n)(locale, {});
  436. var t = i18n.t;
  437. var i18nMixin = i18n.mixin = {
  438. beforeCreate: function beforeCreate() {
  439. var _this = this;
  440. var unwatch = i18n.i18n.watchLocale(function () {
  441. _this.$forceUpdate();
  442. });
  443. this.$once('hook:beforeDestroy', function () {
  444. unwatch();
  445. });
  446. },
  447. methods: {
  448. $$t: function $$t(key, values) {
  449. return t(key, values);
  450. }
  451. }
  452. };
  453. var setLocale = i18n.setLocale;
  454. var getLocale = i18n.getLocale;
  455. function initAppLocale(Vue, appVm, locale) {
  456. var state = Vue.observable({
  457. locale: locale || i18n.getLocale()
  458. });
  459. var localeWatchers = [];
  460. appVm.$watchLocale = function (fn) {
  461. localeWatchers.push(fn);
  462. };
  463. Object.defineProperty(appVm, '$locale', {
  464. get: function get() {
  465. return state.locale;
  466. },
  467. set: function set(v) {
  468. state.locale = v;
  469. localeWatchers.forEach(function (watch) {
  470. return watch(v);
  471. });
  472. }
  473. });
  474. }
  475. function isEnableLocale() {
  476. return typeof __uniConfig !== 'undefined' && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length;
  477. }
  478. function include(str, parts) {
  479. return !!parts.find(function (part) {
  480. return str.indexOf(part) !== -1;
  481. });
  482. }
  483. function startsWith(str, parts) {
  484. return parts.find(function (part) {
  485. return str.indexOf(part) === 0;
  486. });
  487. }
  488. function normalizeLocale(locale, messages) {
  489. if (!locale) {
  490. return;
  491. }
  492. locale = locale.trim().replace(/_/g, '-');
  493. if (messages && messages[locale]) {
  494. return locale;
  495. }
  496. locale = locale.toLowerCase();
  497. if (locale === 'chinese') {
  498. // 支付宝
  499. return LOCALE_ZH_HANS;
  500. }
  501. if (locale.indexOf('zh') === 0) {
  502. if (locale.indexOf('-hans') > -1) {
  503. return LOCALE_ZH_HANS;
  504. }
  505. if (locale.indexOf('-hant') > -1) {
  506. return LOCALE_ZH_HANT;
  507. }
  508. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  509. return LOCALE_ZH_HANT;
  510. }
  511. return LOCALE_ZH_HANS;
  512. }
  513. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  514. if (lang) {
  515. return lang;
  516. }
  517. }
  518. // export function initI18n() {
  519. // const localeKeys = Object.keys(__uniConfig.locales || {})
  520. // if (localeKeys.length) {
  521. // localeKeys.forEach((locale) =>
  522. // i18n.add(locale, __uniConfig.locales[locale])
  523. // )
  524. // }
  525. // }
  526. function getLocale$1() {
  527. // 优先使用 $locale
  528. if (isFn(getApp)) {
  529. var app = getApp({
  530. allowDefault: true
  531. });
  532. if (app && app.$vm) {
  533. return app.$vm.$locale;
  534. }
  535. }
  536. return normalizeLocale(tt.getSystemInfoSync().language) || LOCALE_EN;
  537. }
  538. function setLocale$1(locale) {
  539. var app = isFn(getApp) ? getApp() : false;
  540. if (!app) {
  541. return false;
  542. }
  543. var oldLocale = app.$vm.$locale;
  544. if (oldLocale !== locale) {
  545. app.$vm.$locale = locale;
  546. onLocaleChangeCallbacks.forEach(function (fn) {
  547. return fn({
  548. locale: locale
  549. });
  550. });
  551. return true;
  552. }
  553. return false;
  554. }
  555. var onLocaleChangeCallbacks = [];
  556. function onLocaleChange(fn) {
  557. if (onLocaleChangeCallbacks.indexOf(fn) === -1) {
  558. onLocaleChangeCallbacks.push(fn);
  559. }
  560. }
  561. if (typeof global !== 'undefined') {
  562. global.getLocale = getLocale$1;
  563. }
  564. var interceptors = {
  565. promiseInterceptor: promiseInterceptor
  566. };
  567. var baseApi = /*#__PURE__*/Object.freeze({
  568. __proto__: null,
  569. upx2px: upx2px,
  570. getLocale: getLocale$1,
  571. setLocale: setLocale$1,
  572. onLocaleChange: onLocaleChange,
  573. addInterceptor: addInterceptor,
  574. removeInterceptor: removeInterceptor,
  575. interceptors: interceptors
  576. });
  577. var EventChannel = /*#__PURE__*/function () {
  578. function EventChannel(id, events) {
  579. var _this2 = this;
  580. (0, _classCallCheck2.default)(this, EventChannel);
  581. this.id = id;
  582. this.listener = {};
  583. this.emitCache = {};
  584. if (events) {
  585. Object.keys(events).forEach(function (name) {
  586. _this2.on(name, events[name]);
  587. });
  588. }
  589. }
  590. (0, _createClass2.default)(EventChannel, [{
  591. key: "emit",
  592. value: function emit(eventName) {
  593. for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
  594. args[_key3 - 1] = arguments[_key3];
  595. }
  596. var fns = this.listener[eventName];
  597. if (!fns) {
  598. return (this.emitCache[eventName] || (this.emitCache[eventName] = [])).push(args);
  599. }
  600. fns.forEach(function (opt) {
  601. opt.fn.apply(opt.fn, args);
  602. });
  603. this.listener[eventName] = fns.filter(function (opt) {
  604. return opt.type !== 'once';
  605. });
  606. }
  607. }, {
  608. key: "on",
  609. value: function on(eventName, fn) {
  610. this._addListener(eventName, 'on', fn);
  611. this._clearCache(eventName);
  612. }
  613. }, {
  614. key: "once",
  615. value: function once(eventName, fn) {
  616. this._addListener(eventName, 'once', fn);
  617. this._clearCache(eventName);
  618. }
  619. }, {
  620. key: "off",
  621. value: function off(eventName, fn) {
  622. var fns = this.listener[eventName];
  623. if (!fns) {
  624. return;
  625. }
  626. if (fn) {
  627. for (var i = 0; i < fns.length;) {
  628. if (fns[i].fn === fn) {
  629. fns.splice(i, 1);
  630. i--;
  631. }
  632. i++;
  633. }
  634. } else {
  635. delete this.listener[eventName];
  636. }
  637. }
  638. }, {
  639. key: "_clearCache",
  640. value: function _clearCache(eventName) {
  641. var cacheArgs = this.emitCache[eventName];
  642. if (cacheArgs) {
  643. for (; cacheArgs.length > 0;) {
  644. this.emit.apply(this, [eventName].concat(cacheArgs.shift()));
  645. }
  646. }
  647. }
  648. }, {
  649. key: "_addListener",
  650. value: function _addListener(eventName, type, fn) {
  651. (this.listener[eventName] || (this.listener[eventName] = [])).push({
  652. fn: fn,
  653. type: type
  654. });
  655. }
  656. }]);
  657. return EventChannel;
  658. }();
  659. var eventChannels = {};
  660. var eventChannelStack = [];
  661. var id = 0;
  662. function initEventChannel(events) {
  663. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  664. id++;
  665. var eventChannel = new EventChannel(id, events);
  666. if (cache) {
  667. eventChannels[id] = eventChannel;
  668. eventChannelStack.push(eventChannel);
  669. }
  670. return eventChannel;
  671. }
  672. function getEventChannel(id) {
  673. if (id) {
  674. var eventChannel = eventChannels[id];
  675. delete eventChannels[id];
  676. return eventChannel;
  677. }
  678. return eventChannelStack.shift();
  679. }
  680. var navigateTo = {
  681. args: function args(fromArgs, toArgs) {
  682. var id = initEventChannel(fromArgs.events).id;
  683. if (fromArgs.url) {
  684. fromArgs.url = fromArgs.url + (fromArgs.url.indexOf('?') === -1 ? '?' : '&') + '__id__=' + id;
  685. }
  686. },
  687. returnValue: function returnValue(fromRes, toRes) {
  688. fromRes.eventChannel = getEventChannel();
  689. }
  690. };
  691. function findExistsPageIndex(url) {
  692. var pages = getCurrentPages();
  693. var len = pages.length;
  694. while (len--) {
  695. var page = pages[len];
  696. if (page.$page && page.$page.fullPath === url) {
  697. return len;
  698. }
  699. }
  700. return -1;
  701. }
  702. var redirectTo = {
  703. name: function name(fromArgs) {
  704. if (fromArgs.exists === 'back' && fromArgs.delta) {
  705. return 'navigateBack';
  706. }
  707. return 'redirectTo';
  708. },
  709. args: function args(fromArgs) {
  710. if (fromArgs.exists === 'back' && fromArgs.url) {
  711. var existsPageIndex = findExistsPageIndex(fromArgs.url);
  712. if (existsPageIndex !== -1) {
  713. var delta = getCurrentPages().length - 1 - existsPageIndex;
  714. if (delta > 0) {
  715. fromArgs.delta = delta;
  716. }
  717. }
  718. }
  719. }
  720. };
  721. var previewImage = {
  722. args: function args(fromArgs) {
  723. var currentIndex = parseInt(fromArgs.current);
  724. if (isNaN(currentIndex)) {
  725. return;
  726. }
  727. var urls = fromArgs.urls;
  728. if (!Array.isArray(urls)) {
  729. return;
  730. }
  731. var len = urls.length;
  732. if (!len) {
  733. return;
  734. }
  735. if (currentIndex < 0) {
  736. currentIndex = 0;
  737. } else if (currentIndex >= len) {
  738. currentIndex = len - 1;
  739. }
  740. if (currentIndex > 0) {
  741. fromArgs.current = urls[currentIndex];
  742. fromArgs.urls = urls.filter(function (item, index) {
  743. return index < currentIndex ? item !== urls[currentIndex] : true;
  744. });
  745. } else {
  746. fromArgs.current = urls[0];
  747. }
  748. return {
  749. indicator: false,
  750. loop: false
  751. };
  752. }
  753. };
  754. var UUID_KEY = '__DC_STAT_UUID';
  755. var deviceId;
  756. function useDeviceId(result) {
  757. deviceId = deviceId || tt.getStorageSync(UUID_KEY);
  758. if (!deviceId) {
  759. deviceId = Date.now() + '' + Math.floor(Math.random() * 1e7);
  760. tt.setStorage({
  761. key: UUID_KEY,
  762. data: deviceId
  763. });
  764. }
  765. result.deviceId = deviceId;
  766. }
  767. function addSafeAreaInsets(result) {
  768. if (result.safeArea) {
  769. var safeArea = result.safeArea;
  770. result.safeAreaInsets = {
  771. top: safeArea.top,
  772. left: safeArea.left,
  773. right: result.windowWidth - safeArea.right,
  774. bottom: result.screenHeight - safeArea.bottom
  775. };
  776. }
  777. }
  778. function populateParameters(result) {
  779. var _result$brand = result.brand,
  780. brand = _result$brand === void 0 ? '' : _result$brand,
  781. _result$model = result.model,
  782. model = _result$model === void 0 ? '' : _result$model,
  783. _result$system = result.system,
  784. system = _result$system === void 0 ? '' : _result$system,
  785. _result$language = result.language,
  786. language = _result$language === void 0 ? '' : _result$language,
  787. theme = result.theme,
  788. version = result.version,
  789. platform = result.platform,
  790. fontSizeSetting = result.fontSizeSetting,
  791. SDKVersion = result.SDKVersion,
  792. pixelRatio = result.pixelRatio,
  793. deviceOrientation = result.deviceOrientation;
  794. // const isQuickApp = "mp-toutiao".indexOf('quickapp-webview') !== -1
  795. var extraParam = {};
  796. // osName osVersion
  797. var osName = '';
  798. var osVersion = '';
  799. {
  800. osName = system.split(' ')[0] || '';
  801. osVersion = system.split(' ')[1] || '';
  802. }
  803. var hostVersion = version;
  804. // deviceType
  805. var deviceType = getGetDeviceType(result, model);
  806. // deviceModel
  807. var deviceBrand = getDeviceBrand(brand);
  808. // hostName
  809. var _hostName = getHostName(result);
  810. // deviceOrientation
  811. var _deviceOrientation = deviceOrientation; // 仅 微信 百度 支持
  812. // devicePixelRatio
  813. var _devicePixelRatio = pixelRatio;
  814. // SDKVersion
  815. var _SDKVersion = SDKVersion;
  816. // hostLanguage
  817. var hostLanguage = language.replace(/_/g, '-');
  818. // wx.getAccountInfoSync
  819. var parameters = {
  820. appId: "__UNI__4E38610",
  821. appName: "我的",
  822. appVersion: "1.0.0",
  823. appVersionCode: "100",
  824. appLanguage: getAppLanguage(hostLanguage),
  825. uniCompileVersion: "3.7.11",
  826. uniRuntimeVersion: "3.7.11",
  827. uniPlatform: undefined || "mp-toutiao",
  828. deviceBrand: deviceBrand,
  829. deviceModel: model,
  830. deviceType: deviceType,
  831. devicePixelRatio: _devicePixelRatio,
  832. deviceOrientation: _deviceOrientation,
  833. osName: osName.toLocaleLowerCase(),
  834. osVersion: osVersion,
  835. hostTheme: theme,
  836. hostVersion: hostVersion,
  837. hostLanguage: hostLanguage,
  838. hostName: _hostName,
  839. hostSDKVersion: _SDKVersion,
  840. hostFontSizeSetting: fontSizeSetting,
  841. windowTop: 0,
  842. windowBottom: 0,
  843. // TODO
  844. osLanguage: undefined,
  845. osTheme: undefined,
  846. ua: undefined,
  847. hostPackageName: undefined,
  848. browserName: undefined,
  849. browserVersion: undefined
  850. };
  851. Object.assign(result, parameters, extraParam);
  852. }
  853. function getGetDeviceType(result, model) {
  854. var deviceType = result.deviceType || 'phone';
  855. {
  856. var deviceTypeMaps = {
  857. ipad: 'pad',
  858. windows: 'pc',
  859. mac: 'pc'
  860. };
  861. var deviceTypeMapsKeys = Object.keys(deviceTypeMaps);
  862. var _model = model.toLocaleLowerCase();
  863. for (var index = 0; index < deviceTypeMapsKeys.length; index++) {
  864. var _m = deviceTypeMapsKeys[index];
  865. if (_model.indexOf(_m) !== -1) {
  866. deviceType = deviceTypeMaps[_m];
  867. break;
  868. }
  869. }
  870. }
  871. return deviceType;
  872. }
  873. function getDeviceBrand(brand) {
  874. var deviceBrand = brand;
  875. if (deviceBrand) {
  876. deviceBrand = brand.toLocaleLowerCase();
  877. }
  878. return deviceBrand;
  879. }
  880. function getAppLanguage(defaultLanguage) {
  881. return getLocale$1 ? getLocale$1() : defaultLanguage;
  882. }
  883. function getHostName(result) {
  884. var _platform = "mp-toutiao".split('-')[1];
  885. var _hostName = result.hostName || _platform; // mp-jd
  886. {
  887. _hostName = result.appName;
  888. }
  889. return _hostName;
  890. }
  891. var getSystemInfo = {
  892. returnValue: function returnValue(result) {
  893. useDeviceId(result);
  894. addSafeAreaInsets(result);
  895. populateParameters(result);
  896. }
  897. };
  898. var oName = 'getUserInfo';
  899. var nName = 'getUserProfile';
  900. var getUserProfile = {
  901. name: tt.canIUse(nName) ? nName : oName
  902. };
  903. // 不支持的 API 列表
  904. var todos = ['preloadPage', 'unPreloadPage', 'loadSubPackage'
  905. // 'createCameraContext',
  906. // 'createLivePlayerContext',
  907. // 'getSavedFileInfo',
  908. // 'createMapContext',
  909. // 'onMemoryWarning',
  910. // 'onGyroscopeChange',
  911. // 'startGyroscope',
  912. // 'stopGyroscope',
  913. // 'setScreenBrightness',
  914. // 'getScreenBrightness',
  915. // 'addPhoneContact',
  916. // 'openBluetoothAdapter',
  917. // 'startBluetoothDevicesDiscovery',
  918. // 'onBluetoothDeviceFound',
  919. // 'stopBluetoothDevicesDiscovery',
  920. // 'onBluetoothAdapterStateChange',
  921. // 'getConnectedBluetoothDevices',
  922. // 'getBluetoothDevices',
  923. // 'getBluetoothAdapterState',
  924. // 'closeBluetoothAdapter',
  925. // 'writeBLECharacteristicValue',
  926. // 'readBLECharacteristicValue',
  927. // 'onBLEConnectionStateChange',
  928. // 'onBLECharacteristicValueChange',
  929. // 'notifyBLECharacteristicValueChange',
  930. // 'getBLEDeviceServices',
  931. // 'getBLEDeviceCharacteristics',
  932. // 'createBLEConnection',
  933. // 'closeBLEConnection',
  934. // 'onBeaconServiceChange',
  935. // 'onBeaconUpdate',
  936. // 'getBeacons',
  937. // 'startBeaconDiscovery',
  938. // 'stopBeaconDiscovery',
  939. // 'showNavigationBarLoading',
  940. // 'hideNavigationBarLoading',
  941. // 'setTabBarItem',
  942. // 'setTabBarStyle',
  943. // 'hideTabBar',
  944. // 'showTabBar',
  945. // 'setTabBarBadge',
  946. // 'removeTabBarBadge',
  947. // 'showTabBarRedDot',
  948. // 'hideTabBarRedDot',
  949. // 'setBackgroundColor',
  950. // 'setBackgroundTextStyle',
  951. // 'chooseInvoiceTitle',
  952. // 'addTemplate',
  953. // 'deleteTemplate',
  954. // 'getTemplateLibraryById',
  955. // 'getTemplateLibraryList',
  956. // 'getTemplateList',
  957. // 'sendTemplateMessage',
  958. // 'setEnableDebug',
  959. // 'onWindowResize',
  960. // 'offWindowResize',
  961. // 'createOffscreenCanvas',
  962. // 'vibrate'
  963. ];
  964. // 存在兼容性的 API 列表
  965. // 头条小程序自1.35.0+支持canIUses
  966. var canIUses = [
  967. // 'createIntersectionObserver',
  968. // 'getSavedFileList',
  969. // 'removeSavedFile',
  970. // 'hideKeyboard',
  971. // 'getImageInfo',
  972. // 'createVideoContext',
  973. // 'onSocketOpen',
  974. // 'onSocketError',
  975. // 'sendSocketMessage',
  976. // 'onSocketMessage',
  977. // 'closeSocket',
  978. // 'onSocketClose',
  979. // 'getExtConfig',
  980. // 'getExtConfigSync',
  981. // 'navigateToMiniProgram',
  982. // 'navigateBackMiniProgram',
  983. // 'compressImage',
  984. // 'chooseLocation',
  985. // 'openDocument',
  986. // 'onUserCaptureScreen',
  987. // 'getBackgroundAudioManager',
  988. // 'setNavigationBarColor',
  989. ];
  990. // 需要做转换的 API 列表
  991. var protocols = {
  992. navigateTo: navigateTo,
  993. redirectTo: redirectTo,
  994. previewImage: previewImage,
  995. getSystemInfo: getSystemInfo,
  996. getSystemInfoSync: getSystemInfo,
  997. getUserProfile: getUserProfile,
  998. connectSocket: {
  999. args: {
  1000. method: false
  1001. }
  1002. },
  1003. chooseVideo: {
  1004. args: {
  1005. camera: false
  1006. }
  1007. },
  1008. scanCode: {
  1009. args: {
  1010. onlyFromCamera: false,
  1011. scanType: false
  1012. }
  1013. },
  1014. startAccelerometer: {
  1015. args: {
  1016. interval: false
  1017. }
  1018. },
  1019. showToast: {
  1020. args: {
  1021. image: false,
  1022. mask: false
  1023. }
  1024. },
  1025. showLoading: {
  1026. args: {
  1027. mask: false
  1028. }
  1029. },
  1030. showActionSheet: {
  1031. args: {
  1032. itemColor: false
  1033. }
  1034. },
  1035. login: {
  1036. args: {
  1037. scopes: false,
  1038. timeout: false
  1039. }
  1040. },
  1041. getUserInfo: {
  1042. args: {
  1043. lang: false,
  1044. timeout: false
  1045. }
  1046. },
  1047. requestPayment: {
  1048. name: tt.pay ? 'pay' : 'requestPayment',
  1049. args: {
  1050. orderInfo: tt.pay ? 'orderInfo' : 'data'
  1051. }
  1052. },
  1053. getFileInfo: {
  1054. args: {
  1055. digestAlgorithm: false
  1056. }
  1057. }
  1058. };
  1059. var CALLBACKS = ['success', 'fail', 'cancel', 'complete'];
  1060. function processCallback(methodName, method, returnValue) {
  1061. return function (res) {
  1062. return method(processReturnValue(methodName, res, returnValue));
  1063. };
  1064. }
  1065. function processArgs(methodName, fromArgs) {
  1066. var argsOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  1067. var returnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  1068. var keepFromArgs = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  1069. if (isPlainObject(fromArgs)) {
  1070. // 一般 api 的参数解析
  1071. var toArgs = keepFromArgs === true ? fromArgs : {}; // returnValue 为 false 时,说明是格式化返回值,直接在返回值对象上修改赋值
  1072. if (isFn(argsOption)) {
  1073. argsOption = argsOption(fromArgs, toArgs) || {};
  1074. }
  1075. for (var key in fromArgs) {
  1076. if (hasOwn(argsOption, key)) {
  1077. var keyOption = argsOption[key];
  1078. if (isFn(keyOption)) {
  1079. keyOption = keyOption(fromArgs[key], fromArgs, toArgs);
  1080. }
  1081. if (!keyOption) {
  1082. // 不支持的参数
  1083. console.warn("The '".concat(methodName, "' method of platform '\u5934\u6761\u5C0F\u7A0B\u5E8F' does not support option '").concat(key, "'"));
  1084. } else if (isStr(keyOption)) {
  1085. // 重写参数 key
  1086. toArgs[keyOption] = fromArgs[key];
  1087. } else if (isPlainObject(keyOption)) {
  1088. // {name:newName,value:value}可重新指定参数 key:value
  1089. toArgs[keyOption.name ? keyOption.name : key] = keyOption.value;
  1090. }
  1091. } else if (CALLBACKS.indexOf(key) !== -1) {
  1092. if (isFn(fromArgs[key])) {
  1093. toArgs[key] = processCallback(methodName, fromArgs[key], returnValue);
  1094. }
  1095. } else {
  1096. if (!keepFromArgs) {
  1097. toArgs[key] = fromArgs[key];
  1098. }
  1099. }
  1100. }
  1101. return toArgs;
  1102. } else if (isFn(fromArgs)) {
  1103. fromArgs = processCallback(methodName, fromArgs, returnValue);
  1104. }
  1105. return fromArgs;
  1106. }
  1107. function processReturnValue(methodName, res, returnValue) {
  1108. var keepReturnValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
  1109. if (isFn(protocols.returnValue)) {
  1110. // 处理通用 returnValue
  1111. res = protocols.returnValue(methodName, res);
  1112. }
  1113. return processArgs(methodName, res, returnValue, {}, keepReturnValue);
  1114. }
  1115. function wrapper(methodName, method) {
  1116. if (hasOwn(protocols, methodName)) {
  1117. var protocol = protocols[methodName];
  1118. if (!protocol) {
  1119. // 暂不支持的 api
  1120. return function () {
  1121. console.error("Platform '\u5934\u6761\u5C0F\u7A0B\u5E8F' does not support '".concat(methodName, "'."));
  1122. };
  1123. }
  1124. return function (arg1, arg2) {
  1125. // 目前 api 最多两个参数
  1126. var options = protocol;
  1127. if (isFn(protocol)) {
  1128. options = protocol(arg1);
  1129. }
  1130. arg1 = processArgs(methodName, arg1, options.args, options.returnValue);
  1131. var args = [arg1];
  1132. if (typeof arg2 !== 'undefined') {
  1133. args.push(arg2);
  1134. }
  1135. if (isFn(options.name)) {
  1136. methodName = options.name(arg1);
  1137. } else if (isStr(options.name)) {
  1138. methodName = options.name;
  1139. }
  1140. var returnValue = tt[methodName].apply(tt, args);
  1141. if (isSyncApi(methodName)) {
  1142. // 同步 api
  1143. return processReturnValue(methodName, returnValue, options.returnValue, isContextApi(methodName));
  1144. }
  1145. return returnValue;
  1146. };
  1147. }
  1148. return method;
  1149. }
  1150. var todoApis = Object.create(null);
  1151. var TODOS = ['onTabBarMidButtonTap', 'subscribePush', 'unsubscribePush', 'onPush', 'offPush', 'share'];
  1152. function createTodoApi(name) {
  1153. return function todoApi(_ref) {
  1154. var fail = _ref.fail,
  1155. complete = _ref.complete;
  1156. var res = {
  1157. errMsg: "".concat(name, ":fail method '").concat(name, "' not supported")
  1158. };
  1159. isFn(fail) && fail(res);
  1160. isFn(complete) && complete(res);
  1161. };
  1162. }
  1163. TODOS.forEach(function (name) {
  1164. todoApis[name] = createTodoApi(name);
  1165. });
  1166. var providers = {
  1167. oauth: ['toutiao'],
  1168. share: ['toutiao'],
  1169. payment: ['toutiao'],
  1170. push: ['toutiao']
  1171. };
  1172. function getProvider(_ref2) {
  1173. var service = _ref2.service,
  1174. success = _ref2.success,
  1175. fail = _ref2.fail,
  1176. complete = _ref2.complete;
  1177. var res = false;
  1178. if (providers[service]) {
  1179. res = {
  1180. errMsg: 'getProvider:ok',
  1181. service: service,
  1182. provider: providers[service]
  1183. };
  1184. isFn(success) && success(res);
  1185. } else {
  1186. res = {
  1187. errMsg: 'getProvider:fail service not found'
  1188. };
  1189. isFn(fail) && fail(res);
  1190. }
  1191. isFn(complete) && complete(res);
  1192. }
  1193. var extraApi = /*#__PURE__*/Object.freeze({
  1194. __proto__: null,
  1195. getProvider: getProvider
  1196. });
  1197. var getEmitter = function () {
  1198. var Emitter;
  1199. return function getUniEmitter() {
  1200. if (!Emitter) {
  1201. Emitter = new _vue.default();
  1202. }
  1203. return Emitter;
  1204. };
  1205. }();
  1206. function apply(ctx, method, args) {
  1207. return ctx[method].apply(ctx, args);
  1208. }
  1209. function $on() {
  1210. return apply(getEmitter(), '$on', Array.prototype.slice.call(arguments));
  1211. }
  1212. function $off() {
  1213. return apply(getEmitter(), '$off', Array.prototype.slice.call(arguments));
  1214. }
  1215. function $once() {
  1216. return apply(getEmitter(), '$once', Array.prototype.slice.call(arguments));
  1217. }
  1218. function $emit() {
  1219. return apply(getEmitter(), '$emit', Array.prototype.slice.call(arguments));
  1220. }
  1221. var eventApi = /*#__PURE__*/Object.freeze({
  1222. __proto__: null,
  1223. $on: $on,
  1224. $off: $off,
  1225. $once: $once,
  1226. $emit: $emit
  1227. });
  1228. function createMediaQueryObserver() {
  1229. var mediaQueryObserver = {};
  1230. var _tt$getSystemInfoSync2 = tt.getSystemInfoSync(),
  1231. windowWidth = _tt$getSystemInfoSync2.windowWidth,
  1232. windowHeight = _tt$getSystemInfoSync2.windowHeight;
  1233. var orientation = windowWidth < windowHeight ? 'portrait' : 'landscape';
  1234. mediaQueryObserver.observe = function (options, callback) {
  1235. var matches = true;
  1236. for (var item in options) {
  1237. var itemValue = item === 'orientation' ? options[item] : Number(options[item]);
  1238. if (options[item] !== '') {
  1239. if (item === 'width') {
  1240. if (itemValue === windowWidth) {
  1241. matches = true;
  1242. } else {
  1243. matches = false;
  1244. callback(matches);
  1245. return matches;
  1246. }
  1247. }
  1248. if (item === 'minWidth') {
  1249. if (windowWidth >= itemValue) {
  1250. matches = true;
  1251. } else {
  1252. matches = false;
  1253. callback(matches);
  1254. return matches;
  1255. }
  1256. }
  1257. if (item === 'maxWidth') {
  1258. if (windowWidth <= itemValue) {
  1259. matches = true;
  1260. } else {
  1261. matches = false;
  1262. callback(matches);
  1263. return matches;
  1264. }
  1265. }
  1266. if (item === 'height') {
  1267. if (itemValue === windowHeight) {
  1268. matches = true;
  1269. } else {
  1270. matches = false;
  1271. callback(matches);
  1272. return matches;
  1273. }
  1274. }
  1275. if (item === 'minHeight') {
  1276. if (windowHeight >= itemValue) {
  1277. matches = true;
  1278. } else {
  1279. matches = false;
  1280. callback(matches);
  1281. return matches;
  1282. }
  1283. }
  1284. if (item === 'maxHeight') {
  1285. if (windowHeight <= itemValue) {
  1286. matches = true;
  1287. } else {
  1288. matches = false;
  1289. callback(matches);
  1290. return matches;
  1291. }
  1292. }
  1293. if (item === 'orientation') {
  1294. if (options[item] === orientation) {
  1295. matches = true;
  1296. } else {
  1297. matches = false;
  1298. callback(matches);
  1299. return matches;
  1300. }
  1301. }
  1302. }
  1303. }
  1304. callback(matches);
  1305. return matches;
  1306. };
  1307. mediaQueryObserver.disconnect = function () {};
  1308. return mediaQueryObserver;
  1309. }
  1310. /**
  1311. * 框架内 try-catch
  1312. */
  1313. /**
  1314. * 开发者 try-catch
  1315. */
  1316. function tryCatch(fn) {
  1317. return function () {
  1318. try {
  1319. return fn.apply(fn, arguments);
  1320. } catch (e) {
  1321. // TODO
  1322. console.error(e);
  1323. }
  1324. };
  1325. }
  1326. function getApiCallbacks(params) {
  1327. var apiCallbacks = {};
  1328. for (var name in params) {
  1329. var param = params[name];
  1330. if (isFn(param)) {
  1331. apiCallbacks[name] = tryCatch(param);
  1332. delete params[name];
  1333. }
  1334. }
  1335. return apiCallbacks;
  1336. }
  1337. var cid;
  1338. var cidErrMsg;
  1339. var enabled;
  1340. function normalizePushMessage(message) {
  1341. try {
  1342. return JSON.parse(message);
  1343. } catch (e) {}
  1344. return message;
  1345. }
  1346. function invokePushCallback(args) {
  1347. if (args.type === 'enabled') {
  1348. enabled = true;
  1349. } else if (args.type === 'clientId') {
  1350. cid = args.cid;
  1351. cidErrMsg = args.errMsg;
  1352. invokeGetPushCidCallbacks(cid, args.errMsg);
  1353. } else if (args.type === 'pushMsg') {
  1354. var message = {
  1355. type: 'receive',
  1356. data: normalizePushMessage(args.message)
  1357. };
  1358. for (var i = 0; i < onPushMessageCallbacks.length; i++) {
  1359. var callback = onPushMessageCallbacks[i];
  1360. callback(message);
  1361. // 该消息已被阻止
  1362. if (message.stopped) {
  1363. break;
  1364. }
  1365. }
  1366. } else if (args.type === 'click') {
  1367. onPushMessageCallbacks.forEach(function (callback) {
  1368. callback({
  1369. type: 'click',
  1370. data: normalizePushMessage(args.message)
  1371. });
  1372. });
  1373. }
  1374. }
  1375. var getPushCidCallbacks = [];
  1376. function invokeGetPushCidCallbacks(cid, errMsg) {
  1377. getPushCidCallbacks.forEach(function (callback) {
  1378. callback(cid, errMsg);
  1379. });
  1380. getPushCidCallbacks.length = 0;
  1381. }
  1382. function getPushClientId(args) {
  1383. if (!isPlainObject(args)) {
  1384. args = {};
  1385. }
  1386. var _getApiCallbacks = getApiCallbacks(args),
  1387. success = _getApiCallbacks.success,
  1388. fail = _getApiCallbacks.fail,
  1389. complete = _getApiCallbacks.complete;
  1390. var hasSuccess = isFn(success);
  1391. var hasFail = isFn(fail);
  1392. var hasComplete = isFn(complete);
  1393. Promise.resolve().then(function () {
  1394. if (typeof enabled === 'undefined') {
  1395. enabled = false;
  1396. cid = '';
  1397. cidErrMsg = 'uniPush is not enabled';
  1398. }
  1399. getPushCidCallbacks.push(function (cid, errMsg) {
  1400. var res;
  1401. if (cid) {
  1402. res = {
  1403. errMsg: 'getPushClientId:ok',
  1404. cid: cid
  1405. };
  1406. hasSuccess && success(res);
  1407. } else {
  1408. res = {
  1409. errMsg: 'getPushClientId:fail' + (errMsg ? ' ' + errMsg : '')
  1410. };
  1411. hasFail && fail(res);
  1412. }
  1413. hasComplete && complete(res);
  1414. });
  1415. if (typeof cid !== 'undefined') {
  1416. invokeGetPushCidCallbacks(cid, cidErrMsg);
  1417. }
  1418. });
  1419. }
  1420. var onPushMessageCallbacks = [];
  1421. // 不使用 defineOnApi 实现,是因为 defineOnApi 依赖 UniServiceJSBridge ,该对象目前在小程序上未提供,故简单实现
  1422. var onPushMessage = function onPushMessage(fn) {
  1423. if (onPushMessageCallbacks.indexOf(fn) === -1) {
  1424. onPushMessageCallbacks.push(fn);
  1425. }
  1426. };
  1427. var offPushMessage = function offPushMessage(fn) {
  1428. if (!fn) {
  1429. onPushMessageCallbacks.length = 0;
  1430. } else {
  1431. var index = onPushMessageCallbacks.indexOf(fn);
  1432. if (index > -1) {
  1433. onPushMessageCallbacks.splice(index, 1);
  1434. }
  1435. }
  1436. };
  1437. var api = /*#__PURE__*/Object.freeze({
  1438. __proto__: null,
  1439. createMediaQueryObserver: createMediaQueryObserver,
  1440. getPushClientId: getPushClientId,
  1441. onPushMessage: onPushMessage,
  1442. offPushMessage: offPushMessage,
  1443. invokePushCallback: invokePushCallback
  1444. });
  1445. function findVmByVueId(vm, vuePid) {
  1446. var $children = vm.$children;
  1447. // 优先查找直属(反向查找:https://github.com/dcloudio/uni-app/issues/1200)
  1448. for (var i = $children.length - 1; i >= 0; i--) {
  1449. var childVm = $children[i];
  1450. if (childVm.$scope._$vueId === vuePid) {
  1451. return childVm;
  1452. }
  1453. }
  1454. // 反向递归查找
  1455. var parentVm;
  1456. for (var _i = $children.length - 1; _i >= 0; _i--) {
  1457. parentVm = findVmByVueId($children[_i], vuePid);
  1458. if (parentVm) {
  1459. return parentVm;
  1460. }
  1461. }
  1462. }
  1463. function initBehavior(options) {
  1464. return Behavior(options);
  1465. }
  1466. function selectAllComponents(mpInstance, selector, $refs) {
  1467. var components = mpInstance.selectAllComponents(selector) || [];
  1468. components.forEach(function (component) {
  1469. var ref = component.dataset.ref;
  1470. $refs[ref] = component.$vm || toSkip(component);
  1471. });
  1472. }
  1473. function syncRefs(refs, newRefs) {
  1474. var oldKeys = (0, _construct2.default)(Set, (0, _toConsumableArray2.default)(Object.keys(refs)));
  1475. var newKeys = Object.keys(newRefs);
  1476. newKeys.forEach(function (key) {
  1477. var oldValue = refs[key];
  1478. var newValue = newRefs[key];
  1479. if (Array.isArray(oldValue) && Array.isArray(newValue) && oldValue.length === newValue.length && newValue.every(function (value) {
  1480. return oldValue.includes(value);
  1481. })) {
  1482. return;
  1483. }
  1484. refs[key] = newValue;
  1485. oldKeys.delete(key);
  1486. });
  1487. oldKeys.forEach(function (key) {
  1488. delete refs[key];
  1489. });
  1490. return refs;
  1491. }
  1492. function initRefs(vm) {
  1493. var mpInstance = vm.$scope;
  1494. var refs = {};
  1495. Object.defineProperty(vm, '$refs', {
  1496. get: function get() {
  1497. var $refs = {};
  1498. selectAllComponents(mpInstance, '.vue-ref', $refs);
  1499. // TODO 暂不考虑 for 中的 scoped
  1500. var forComponents = mpInstance.selectAllComponents('.vue-ref-in-for') || [];
  1501. forComponents.forEach(function (component) {
  1502. var ref = component.dataset.ref;
  1503. if (!$refs[ref]) {
  1504. $refs[ref] = [];
  1505. }
  1506. $refs[ref].push(component.$vm || toSkip(component));
  1507. });
  1508. return syncRefs(refs, $refs);
  1509. }
  1510. });
  1511. }
  1512. function handleLink(event) {
  1513. var _ref3 = event.detail || event.value,
  1514. vuePid = _ref3.vuePid,
  1515. vueOptions = _ref3.vueOptions; // detail 是微信,value 是百度(dipatch)
  1516. var parentVm;
  1517. if (vuePid) {
  1518. parentVm = findVmByVueId(this.$vm, vuePid);
  1519. }
  1520. if (!parentVm) {
  1521. parentVm = this.$vm;
  1522. }
  1523. vueOptions.parent = parentVm;
  1524. }
  1525. function markMPComponent(component) {
  1526. // 在 Vue 中标记为小程序组件
  1527. var IS_MP = '__v_isMPComponent';
  1528. Object.defineProperty(component, IS_MP, {
  1529. configurable: true,
  1530. enumerable: false,
  1531. value: true
  1532. });
  1533. return component;
  1534. }
  1535. function toSkip(obj) {
  1536. var OB = '__ob__';
  1537. var SKIP = '__v_skip';
  1538. if (isObject(obj) && Object.isExtensible(obj)) {
  1539. // 避免被 @vue/composition-api 观测
  1540. Object.defineProperty(obj, OB, {
  1541. configurable: true,
  1542. enumerable: false,
  1543. value: (0, _defineProperty2.default)({}, SKIP, true)
  1544. });
  1545. }
  1546. return obj;
  1547. }
  1548. var MPPage = Page;
  1549. var MPComponent = Component;
  1550. var customizeRE = /:/g;
  1551. var customize = cached(function (str) {
  1552. return camelize(str.replace(customizeRE, '-'));
  1553. });
  1554. function initTriggerEvent(mpInstance) {
  1555. var oldTriggerEvent = mpInstance.triggerEvent;
  1556. var newTriggerEvent = function newTriggerEvent(event) {
  1557. // 事件名统一转驼峰格式,仅处理:当前组件为 vue 组件、当前组件为 vue 组件子组件
  1558. if (this.$vm || this.dataset && this.dataset.comType) {
  1559. event = customize(event);
  1560. }
  1561. for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
  1562. args[_key4 - 1] = arguments[_key4];
  1563. }
  1564. return oldTriggerEvent.apply(this, [event].concat(args));
  1565. };
  1566. try {
  1567. // 京东小程序 triggerEvent 为只读
  1568. mpInstance.triggerEvent = newTriggerEvent;
  1569. } catch (error) {
  1570. mpInstance._triggerEvent = newTriggerEvent;
  1571. }
  1572. }
  1573. function initHook(name, options, isComponent) {
  1574. {
  1575. // fix by Lxh 字节自定义组件Component构造器文档上写有created,但是实测只触发了lifetimes上的created
  1576. isComponent && options.lifetimes && options.lifetimes[name] && (options = options.lifetimes);
  1577. }
  1578. var oldHook = options[name];
  1579. options[name] = function () {
  1580. markMPComponent(this);
  1581. initTriggerEvent(this);
  1582. if (oldHook) {
  1583. for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
  1584. args[_key5] = arguments[_key5];
  1585. }
  1586. return oldHook.apply(this, args);
  1587. }
  1588. };
  1589. }
  1590. if (!MPPage.__$wrappered) {
  1591. MPPage.__$wrappered = true;
  1592. Page = function Page() {
  1593. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1594. initHook('onLoad', options);
  1595. return MPPage(options);
  1596. };
  1597. Page.after = MPPage.after;
  1598. Component = function Component() {
  1599. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1600. initHook('created', options, true);
  1601. return MPComponent(options);
  1602. };
  1603. }
  1604. var PAGE_EVENT_HOOKS = ['onPullDownRefresh', 'onReachBottom', 'onAddToFavorites', 'onShareTimeline', 'onShareAppMessage', 'onPageScroll', 'onResize', 'onTabItemTap'];
  1605. function initMocks(vm, mocks) {
  1606. var mpInstance = vm.$mp[vm.mpType];
  1607. mocks.forEach(function (mock) {
  1608. if (hasOwn(mpInstance, mock)) {
  1609. vm[mock] = mpInstance[mock];
  1610. }
  1611. });
  1612. }
  1613. function hasHook(hook, vueOptions) {
  1614. if (!vueOptions) {
  1615. return true;
  1616. }
  1617. if (_vue.default.options && Array.isArray(_vue.default.options[hook])) {
  1618. return true;
  1619. }
  1620. vueOptions = vueOptions.default || vueOptions;
  1621. if (isFn(vueOptions)) {
  1622. if (isFn(vueOptions.extendOptions[hook])) {
  1623. return true;
  1624. }
  1625. if (vueOptions.super && vueOptions.super.options && Array.isArray(vueOptions.super.options[hook])) {
  1626. return true;
  1627. }
  1628. return false;
  1629. }
  1630. if (isFn(vueOptions[hook]) || Array.isArray(vueOptions[hook])) {
  1631. return true;
  1632. }
  1633. var mixins = vueOptions.mixins;
  1634. if (Array.isArray(mixins)) {
  1635. return !!mixins.find(function (mixin) {
  1636. return hasHook(hook, mixin);
  1637. });
  1638. }
  1639. }
  1640. function initHooks(mpOptions, hooks, vueOptions) {
  1641. hooks.forEach(function (hook) {
  1642. if (hasHook(hook, vueOptions)) {
  1643. mpOptions[hook] = function (args) {
  1644. return this.$vm && this.$vm.__call_hook(hook, args);
  1645. };
  1646. }
  1647. });
  1648. }
  1649. function initUnknownHooks(mpOptions, vueOptions) {
  1650. var excludes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1651. findHooks(vueOptions).forEach(function (hook) {
  1652. return initHook$1(mpOptions, hook, excludes);
  1653. });
  1654. }
  1655. function findHooks(vueOptions) {
  1656. var hooks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  1657. if (vueOptions) {
  1658. Object.keys(vueOptions).forEach(function (name) {
  1659. if (name.indexOf('on') === 0 && isFn(vueOptions[name])) {
  1660. hooks.push(name);
  1661. }
  1662. });
  1663. }
  1664. return hooks;
  1665. }
  1666. function initHook$1(mpOptions, hook, excludes) {
  1667. if (excludes.indexOf(hook) === -1 && !hasOwn(mpOptions, hook)) {
  1668. mpOptions[hook] = function (args) {
  1669. return this.$vm && this.$vm.__call_hook(hook, args);
  1670. };
  1671. }
  1672. }
  1673. function initVueComponent(Vue, vueOptions) {
  1674. vueOptions = vueOptions.default || vueOptions;
  1675. var VueComponent;
  1676. if (isFn(vueOptions)) {
  1677. VueComponent = vueOptions;
  1678. } else {
  1679. VueComponent = Vue.extend(vueOptions);
  1680. }
  1681. vueOptions = VueComponent.options;
  1682. return [VueComponent, vueOptions];
  1683. }
  1684. function initSlots(vm, vueSlots) {
  1685. if (Array.isArray(vueSlots) && vueSlots.length) {
  1686. var $slots = Object.create(null);
  1687. vueSlots.forEach(function (slotName) {
  1688. $slots[slotName] = true;
  1689. });
  1690. vm.$scopedSlots = vm.$slots = $slots;
  1691. }
  1692. }
  1693. function initVueIds(vueIds, mpInstance) {
  1694. vueIds = (vueIds || '').split(',');
  1695. var len = vueIds.length;
  1696. if (len === 1) {
  1697. mpInstance._$vueId = vueIds[0];
  1698. } else if (len === 2) {
  1699. mpInstance._$vueId = vueIds[0];
  1700. mpInstance._$vuePid = vueIds[1];
  1701. }
  1702. }
  1703. function initData(vueOptions, context) {
  1704. var data = vueOptions.data || {};
  1705. var methods = vueOptions.methods || {};
  1706. if (typeof data === 'function') {
  1707. try {
  1708. data = data.call(context); // 支持 Vue.prototype 上挂的数据
  1709. } catch (e) {
  1710. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"我的","VUE_APP_PLATFORM":"mp-toutiao","BASE_URL":"/"}).VUE_APP_DEBUG) {
  1711. console.warn('根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。', data);
  1712. }
  1713. }
  1714. } else {
  1715. try {
  1716. // 对 data 格式化
  1717. data = JSON.parse(JSON.stringify(data));
  1718. } catch (e) {}
  1719. }
  1720. if (!isPlainObject(data)) {
  1721. data = {};
  1722. }
  1723. Object.keys(methods).forEach(function (methodName) {
  1724. if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
  1725. data[methodName] = methods[methodName];
  1726. }
  1727. });
  1728. return data;
  1729. }
  1730. var PROP_TYPES = [String, Number, Boolean, Object, Array, null];
  1731. function createObserver(name) {
  1732. return function observer(newVal, oldVal) {
  1733. if (this.$vm) {
  1734. this.$vm[name] = newVal; // 为了触发其他非 render watcher
  1735. }
  1736. };
  1737. }
  1738. function initBehaviors(vueOptions, initBehavior) {
  1739. var vueBehaviors = vueOptions.behaviors;
  1740. var vueExtends = vueOptions.extends;
  1741. var vueMixins = vueOptions.mixins;
  1742. var vueProps = vueOptions.props;
  1743. if (!vueProps) {
  1744. vueOptions.props = vueProps = [];
  1745. }
  1746. var behaviors = [];
  1747. if (Array.isArray(vueBehaviors)) {
  1748. vueBehaviors.forEach(function (behavior) {
  1749. behaviors.push(behavior.replace('uni://', "tt".concat("://")));
  1750. if (behavior === 'uni://form-field') {
  1751. if (Array.isArray(vueProps)) {
  1752. vueProps.push('name');
  1753. vueProps.push('value');
  1754. } else {
  1755. vueProps.name = {
  1756. type: String,
  1757. default: ''
  1758. };
  1759. vueProps.value = {
  1760. type: [String, Number, Boolean, Array, Object, Date],
  1761. default: ''
  1762. };
  1763. }
  1764. }
  1765. });
  1766. }
  1767. if (isPlainObject(vueExtends) && vueExtends.props) {
  1768. behaviors.push(initBehavior({
  1769. properties: initProperties(vueExtends.props, true)
  1770. }));
  1771. }
  1772. if (Array.isArray(vueMixins)) {
  1773. vueMixins.forEach(function (vueMixin) {
  1774. if (isPlainObject(vueMixin) && vueMixin.props) {
  1775. behaviors.push(initBehavior({
  1776. properties: initProperties(vueMixin.props, true)
  1777. }));
  1778. }
  1779. });
  1780. }
  1781. return behaviors;
  1782. }
  1783. function parsePropType(key, type, defaultValue, file) {
  1784. // [String]=>String
  1785. if (Array.isArray(type) && type.length === 1) {
  1786. return type[0];
  1787. }
  1788. return type;
  1789. }
  1790. function initProperties(props) {
  1791. var isBehavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  1792. var file = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  1793. var options = arguments.length > 3 ? arguments[3] : undefined;
  1794. var properties = {};
  1795. if (!isBehavior) {
  1796. properties.vueId = {
  1797. type: String,
  1798. value: ''
  1799. };
  1800. {
  1801. // 用于字节跳动小程序模拟抽象节点
  1802. properties.generic = {
  1803. type: Object,
  1804. value: null
  1805. };
  1806. }
  1807. // scopedSlotsCompiler auto
  1808. properties.scopedSlotsCompiler = {
  1809. type: String,
  1810. value: ''
  1811. };
  1812. properties.vueSlots = {
  1813. // 小程序不能直接定义 $slots 的 props,所以通过 vueSlots 转换到 $slots
  1814. type: null,
  1815. value: [],
  1816. observer: function observer(newVal, oldVal) {
  1817. var $slots = Object.create(null);
  1818. newVal.forEach(function (slotName) {
  1819. $slots[slotName] = true;
  1820. });
  1821. this.setData({
  1822. $slots: $slots
  1823. });
  1824. }
  1825. };
  1826. }
  1827. if (Array.isArray(props)) {
  1828. // ['title']
  1829. props.forEach(function (key) {
  1830. properties[key] = {
  1831. type: null,
  1832. observer: createObserver(key)
  1833. };
  1834. });
  1835. } else if (isPlainObject(props)) {
  1836. // {title:{type:String,default:''},content:String}
  1837. Object.keys(props).forEach(function (key) {
  1838. var opts = props[key];
  1839. if (isPlainObject(opts)) {
  1840. // title:{type:String,default:''}
  1841. var value = opts.default;
  1842. if (isFn(value)) {
  1843. value = value();
  1844. }
  1845. opts.type = parsePropType(key, opts.type);
  1846. properties[key] = {
  1847. type: PROP_TYPES.indexOf(opts.type) !== -1 ? opts.type : null,
  1848. value: value,
  1849. observer: createObserver(key)
  1850. };
  1851. } else {
  1852. // content:String
  1853. var type = parsePropType(key, opts);
  1854. properties[key] = {
  1855. type: PROP_TYPES.indexOf(type) !== -1 ? type : null,
  1856. observer: createObserver(key)
  1857. };
  1858. }
  1859. });
  1860. }
  1861. return properties;
  1862. }
  1863. function wrapper$1(event) {
  1864. // TODO 又得兼容 mpvue 的 mp 对象
  1865. try {
  1866. event.mp = JSON.parse(JSON.stringify(event));
  1867. } catch (e) {}
  1868. event.stopPropagation = noop;
  1869. event.preventDefault = noop;
  1870. event.target = event.target || {};
  1871. if (!hasOwn(event, 'detail')) {
  1872. event.detail = {};
  1873. }
  1874. if (hasOwn(event, 'markerId')) {
  1875. event.detail = (0, _typeof2.default)(event.detail) === 'object' ? event.detail : {};
  1876. event.detail.markerId = event.markerId;
  1877. }
  1878. if (isPlainObject(event.detail)) {
  1879. event.target = Object.assign({}, event.target, event.detail);
  1880. }
  1881. return event;
  1882. }
  1883. function getExtraValue(vm, dataPathsArray) {
  1884. var context = vm;
  1885. dataPathsArray.forEach(function (dataPathArray) {
  1886. var dataPath = dataPathArray[0];
  1887. var value = dataPathArray[2];
  1888. if (dataPath || typeof value !== 'undefined') {
  1889. // ['','',index,'disable']
  1890. var propPath = dataPathArray[1];
  1891. var valuePath = dataPathArray[3];
  1892. var vFor;
  1893. if (Number.isInteger(dataPath)) {
  1894. vFor = dataPath;
  1895. } else if (!dataPath) {
  1896. vFor = context;
  1897. } else if (typeof dataPath === 'string' && dataPath) {
  1898. if (dataPath.indexOf('#s#') === 0) {
  1899. vFor = dataPath.substr(3);
  1900. } else {
  1901. vFor = vm.__get_value(dataPath, context);
  1902. }
  1903. }
  1904. if (Number.isInteger(vFor)) {
  1905. context = value;
  1906. } else if (!propPath) {
  1907. context = vFor[value];
  1908. } else {
  1909. if (Array.isArray(vFor)) {
  1910. context = vFor.find(function (vForItem) {
  1911. return vm.__get_value(propPath, vForItem) === value;
  1912. });
  1913. } else if (isPlainObject(vFor)) {
  1914. context = Object.keys(vFor).find(function (vForKey) {
  1915. return vm.__get_value(propPath, vFor[vForKey]) === value;
  1916. });
  1917. } else {
  1918. console.error('v-for 暂不支持循环数据:', vFor);
  1919. }
  1920. }
  1921. if (valuePath) {
  1922. context = vm.__get_value(valuePath, context);
  1923. }
  1924. }
  1925. });
  1926. return context;
  1927. }
  1928. function processEventExtra(vm, extra, event, __args__) {
  1929. var extraObj = {};
  1930. if (Array.isArray(extra) && extra.length) {
  1931. /**
  1932. *[
  1933. * ['data.items', 'data.id', item.data.id],
  1934. * ['metas', 'id', meta.id]
  1935. *],
  1936. *[
  1937. * ['data.items', 'data.id', item.data.id],
  1938. * ['metas', 'id', meta.id]
  1939. *],
  1940. *'test'
  1941. */
  1942. extra.forEach(function (dataPath, index) {
  1943. if (typeof dataPath === 'string') {
  1944. if (!dataPath) {
  1945. // model,prop.sync
  1946. extraObj['$' + index] = vm;
  1947. } else {
  1948. if (dataPath === '$event') {
  1949. // $event
  1950. extraObj['$' + index] = event;
  1951. } else if (dataPath === 'arguments') {
  1952. extraObj['$' + index] = event.detail ? event.detail.__args__ || __args__ : __args__;
  1953. } else if (dataPath.indexOf('$event.') === 0) {
  1954. // $event.target.value
  1955. extraObj['$' + index] = vm.__get_value(dataPath.replace('$event.', ''), event);
  1956. } else {
  1957. extraObj['$' + index] = vm.__get_value(dataPath);
  1958. }
  1959. }
  1960. } else {
  1961. extraObj['$' + index] = getExtraValue(vm, dataPath);
  1962. }
  1963. });
  1964. }
  1965. return extraObj;
  1966. }
  1967. function getObjByArray(arr) {
  1968. var obj = {};
  1969. for (var i = 1; i < arr.length; i++) {
  1970. var element = arr[i];
  1971. obj[element[0]] = element[1];
  1972. }
  1973. return obj;
  1974. }
  1975. function processEventArgs(vm, event) {
  1976. var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  1977. var extra = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
  1978. var isCustom = arguments.length > 4 ? arguments[4] : undefined;
  1979. var methodName = arguments.length > 5 ? arguments[5] : undefined;
  1980. var isCustomMPEvent = false; // wxcomponent 组件,传递原始 event 对象
  1981. // fixed 用户直接触发 mpInstance.triggerEvent
  1982. var __args__ = isPlainObject(event.detail) ? event.detail.__args__ || [event.detail] : [event.detail];
  1983. if (isCustom) {
  1984. // 自定义事件
  1985. isCustomMPEvent = event.currentTarget && event.currentTarget.dataset && event.currentTarget.dataset.comType === 'wx';
  1986. if (!args.length) {
  1987. // 无参数,直接传入 event 或 detail 数组
  1988. if (isCustomMPEvent) {
  1989. return [event];
  1990. }
  1991. return __args__;
  1992. }
  1993. }
  1994. var extraObj = processEventExtra(vm, extra, event, __args__);
  1995. var ret = [];
  1996. args.forEach(function (arg) {
  1997. if (arg === '$event') {
  1998. if (methodName === '__set_model' && !isCustom) {
  1999. // input v-model value
  2000. ret.push(event.target.value);
  2001. } else {
  2002. if (isCustom && !isCustomMPEvent) {
  2003. ret.push(__args__[0]);
  2004. } else {
  2005. // wxcomponent 组件或内置组件
  2006. ret.push(event);
  2007. }
  2008. }
  2009. } else {
  2010. if (Array.isArray(arg) && arg[0] === 'o') {
  2011. ret.push(getObjByArray(arg));
  2012. } else if (typeof arg === 'string' && hasOwn(extraObj, arg)) {
  2013. ret.push(extraObj[arg]);
  2014. } else {
  2015. ret.push(arg);
  2016. }
  2017. }
  2018. });
  2019. return ret;
  2020. }
  2021. var ONCE = '~';
  2022. var CUSTOM = '^';
  2023. function isMatchEventType(eventType, optType) {
  2024. return eventType === optType || optType === 'regionchange' && (eventType === 'begin' || eventType === 'end');
  2025. }
  2026. function getContextVm(vm) {
  2027. var $parent = vm.$parent;
  2028. // 父组件是 scoped slots 或者其他自定义组件时继续查找
  2029. while ($parent && $parent.$parent && ($parent.$options.generic || $parent.$parent.$options.generic || $parent.$scope._$vuePid)) {
  2030. $parent = $parent.$parent;
  2031. }
  2032. return $parent && $parent.$parent;
  2033. }
  2034. function handleEvent(event) {
  2035. var _this3 = this;
  2036. event = wrapper$1(event);
  2037. // [['tap',[['handle',[1,2,a]],['handle1',[1,2,a]]]]]
  2038. var dataset = (event.currentTarget || event.target).dataset;
  2039. if (!dataset) {
  2040. return console.warn('事件信息不存在');
  2041. }
  2042. var eventOpts = dataset.eventOpts || dataset['event-opts']; // 支付宝 web-view 组件 dataset 非驼峰
  2043. if (!eventOpts) {
  2044. return console.warn('事件信息不存在');
  2045. }
  2046. // [['handle',[1,2,a]],['handle1',[1,2,a]]]
  2047. var eventType = event.type;
  2048. var ret = [];
  2049. eventOpts.forEach(function (eventOpt) {
  2050. var type = eventOpt[0];
  2051. var eventsArray = eventOpt[1];
  2052. var isCustom = type.charAt(0) === CUSTOM;
  2053. type = isCustom ? type.slice(1) : type;
  2054. var isOnce = type.charAt(0) === ONCE;
  2055. type = isOnce ? type.slice(1) : type;
  2056. if (eventsArray && isMatchEventType(eventType, type)) {
  2057. eventsArray.forEach(function (eventArray) {
  2058. var methodName = eventArray[0];
  2059. if (methodName) {
  2060. var handlerCtx = _this3.$vm;
  2061. if (handlerCtx.$options.generic) {
  2062. // mp-weixin,mp-toutiao 抽象节点模拟 scoped slots
  2063. handlerCtx = getContextVm(handlerCtx) || handlerCtx;
  2064. }
  2065. if (methodName === '$emit') {
  2066. handlerCtx.$emit.apply(handlerCtx, processEventArgs(_this3.$vm, event, eventArray[1], eventArray[2], isCustom, methodName));
  2067. return;
  2068. }
  2069. var handler = handlerCtx[methodName];
  2070. if (!isFn(handler)) {
  2071. var _type = _this3.$vm.mpType === 'page' ? 'Page' : 'Component';
  2072. var path = _this3.route || _this3.is;
  2073. throw new Error("".concat(_type, " \"").concat(path, "\" does not have a method \"").concat(methodName, "\""));
  2074. }
  2075. if (isOnce) {
  2076. if (handler.once) {
  2077. return;
  2078. }
  2079. handler.once = true;
  2080. }
  2081. var params = processEventArgs(_this3.$vm, event, eventArray[1], eventArray[2], isCustom, methodName);
  2082. params = Array.isArray(params) ? params : [];
  2083. // 参数尾部增加原始事件对象用于复杂表达式内获取额外数据
  2084. if (/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(handler.toString())) {
  2085. // eslint-disable-next-line no-sparse-arrays
  2086. params = params.concat([,,,,,,,,,, event]);
  2087. }
  2088. ret.push(handler.apply(handlerCtx, params));
  2089. }
  2090. });
  2091. }
  2092. });
  2093. if (eventType === 'input' && ret.length === 1 && typeof ret[0] !== 'undefined') {
  2094. return ret[0];
  2095. }
  2096. }
  2097. var hooks = ['onShow', 'onHide', 'onError', 'onPageNotFound', 'onThemeChange', 'onUnhandledRejection'];
  2098. function initEventChannel$1() {
  2099. _vue.default.prototype.getOpenerEventChannel = function () {
  2100. if (!this.__eventChannel__) {
  2101. this.__eventChannel__ = new EventChannel();
  2102. }
  2103. return this.__eventChannel__;
  2104. };
  2105. var callHook = _vue.default.prototype.__call_hook;
  2106. _vue.default.prototype.__call_hook = function (hook, args) {
  2107. if (hook === 'onLoad' && args && args.__id__) {
  2108. this.__eventChannel__ = getEventChannel(args.__id__);
  2109. delete args.__id__;
  2110. }
  2111. return callHook.call(this, hook, args);
  2112. };
  2113. }
  2114. function initScopedSlotsParams() {
  2115. var center = {};
  2116. var parents = {};
  2117. _vue.default.prototype.$hasScopedSlotsParams = function (vueId) {
  2118. var has = center[vueId];
  2119. if (!has) {
  2120. parents[vueId] = this;
  2121. this.$on('hook:destroyed', function () {
  2122. delete parents[vueId];
  2123. });
  2124. }
  2125. return has;
  2126. };
  2127. _vue.default.prototype.$getScopedSlotsParams = function (vueId, name, key) {
  2128. var data = center[vueId];
  2129. if (data) {
  2130. var object = data[name] || {};
  2131. return key ? object[key] : object;
  2132. } else {
  2133. parents[vueId] = this;
  2134. this.$on('hook:destroyed', function () {
  2135. delete parents[vueId];
  2136. });
  2137. }
  2138. };
  2139. _vue.default.prototype.$setScopedSlotsParams = function (name, value) {
  2140. var vueIds = this.$options.propsData.vueId;
  2141. if (vueIds) {
  2142. var vueId = vueIds.split(',')[0];
  2143. var object = center[vueId] = center[vueId] || {};
  2144. object[name] = value;
  2145. if (parents[vueId]) {
  2146. parents[vueId].$forceUpdate();
  2147. }
  2148. }
  2149. };
  2150. _vue.default.mixin({
  2151. destroyed: function destroyed() {
  2152. var propsData = this.$options.propsData;
  2153. var vueId = propsData && propsData.vueId;
  2154. if (vueId) {
  2155. delete center[vueId];
  2156. delete parents[vueId];
  2157. }
  2158. }
  2159. });
  2160. }
  2161. function parseBaseApp(vm, _ref4) {
  2162. var mocks = _ref4.mocks,
  2163. initRefs = _ref4.initRefs;
  2164. initEventChannel$1();
  2165. {
  2166. initScopedSlotsParams();
  2167. }
  2168. if (vm.$options.store) {
  2169. _vue.default.prototype.$store = vm.$options.store;
  2170. }
  2171. uniIdMixin(_vue.default);
  2172. _vue.default.prototype.mpHost = "mp-toutiao";
  2173. _vue.default.mixin({
  2174. beforeCreate: function beforeCreate() {
  2175. if (!this.$options.mpType) {
  2176. return;
  2177. }
  2178. this.mpType = this.$options.mpType;
  2179. this.$mp = (0, _defineProperty2.default)({
  2180. data: {}
  2181. }, this.mpType, this.$options.mpInstance);
  2182. this.$scope = this.$options.mpInstance;
  2183. delete this.$options.mpType;
  2184. delete this.$options.mpInstance;
  2185. if (this.mpType === 'page' && typeof getApp === 'function') {
  2186. // hack vue-i18n
  2187. var app = getApp();
  2188. if (app.$vm && app.$vm.$i18n) {
  2189. this._i18n = app.$vm.$i18n;
  2190. }
  2191. }
  2192. if (this.mpType !== 'app') {
  2193. initRefs(this);
  2194. initMocks(this, mocks);
  2195. }
  2196. }
  2197. });
  2198. var appOptions = {
  2199. onLaunch: function onLaunch(args) {
  2200. if (this.$vm) {
  2201. // 已经初始化过了,主要是为了百度,百度 onShow 在 onLaunch 之前
  2202. return;
  2203. }
  2204. this.$vm = vm;
  2205. this.$vm.$mp = {
  2206. app: this
  2207. };
  2208. this.$vm.$scope = this;
  2209. // vm 上也挂载 globalData
  2210. this.$vm.globalData = this.globalData;
  2211. this.$vm._isMounted = true;
  2212. this.$vm.__call_hook('mounted', args);
  2213. this.$vm.__call_hook('onLaunch', args);
  2214. }
  2215. };
  2216. // 兼容旧版本 globalData
  2217. appOptions.globalData = vm.$options.globalData || {};
  2218. // 将 methods 中的方法挂在 getApp() 中
  2219. var methods = vm.$options.methods;
  2220. if (methods) {
  2221. Object.keys(methods).forEach(function (name) {
  2222. appOptions[name] = methods[name];
  2223. });
  2224. }
  2225. initAppLocale(_vue.default, vm, normalizeLocale(tt.getSystemInfoSync().language) || LOCALE_EN);
  2226. initHooks(appOptions, hooks);
  2227. initUnknownHooks(appOptions, vm.$options);
  2228. return appOptions;
  2229. }
  2230. var mocks = ['__route__', '__webviewId__', '__nodeid__', '__nodeId__'];
  2231. function isPage() {
  2232. return this.__nodeid__ === 0 || this.__nodeId__ === 0;
  2233. }
  2234. function initRefs$1(vm) {
  2235. var mpInstance = vm.$scope;
  2236. /* eslint-disable no-undef */
  2237. var minorVersion = parseInt(tt.getSystemInfoSync().SDKVersion.split('.')[1]);
  2238. if (minorVersion > 16) {
  2239. initRefs(vm);
  2240. } else {
  2241. mpInstance.selectAllComponents('.vue-ref', function (components) {
  2242. components.forEach(function (component) {
  2243. var ref = component.dataset.ref;
  2244. vm.$refs[ref] = component.$vm || toSkip(component);
  2245. });
  2246. });
  2247. mpInstance.selectAllComponents('.vue-ref-in-for', function (forComponents) {
  2248. forComponents.forEach(function (component) {
  2249. var ref = component.dataset.ref;
  2250. if (!vm.$refs[ref]) {
  2251. vm.$refs[ref] = [];
  2252. }
  2253. vm.$refs[ref].push(component.$vm || toSkip(component));
  2254. });
  2255. });
  2256. }
  2257. }
  2258. var instances = Object.create(null);
  2259. var components = Object.create(null);
  2260. function initRelation(_ref5) {
  2261. var vuePid = _ref5.vuePid,
  2262. mpInstance = _ref5.mpInstance;
  2263. // 头条 triggerEvent 后,接收事件时机特别晚,已经到了 ready 之后
  2264. var nodeId = (mpInstance.__nodeId__ || mpInstance.__nodeid__) + '';
  2265. var webviewId = mpInstance.__webviewId__ + '';
  2266. instances[webviewId + '_' + nodeId] = mpInstance.$vm;
  2267. this.triggerEvent('__l', {
  2268. vuePid: vuePid,
  2269. nodeId: nodeId,
  2270. webviewId: webviewId
  2271. });
  2272. }
  2273. function handleLink$1(_ref6) {
  2274. var _ref6$detail = _ref6.detail,
  2275. vuePid = _ref6$detail.vuePid,
  2276. nodeId = _ref6$detail.nodeId,
  2277. webviewId = _ref6$detail.webviewId;
  2278. var vm = instances[webviewId + '_' + nodeId];
  2279. if (!vm) {
  2280. return;
  2281. }
  2282. var parentVm;
  2283. if (vuePid) {
  2284. parentVm = findVmByVueId(this.$vm, vuePid);
  2285. }
  2286. if (!parentVm) {
  2287. parentVm = this.$vm;
  2288. }
  2289. vm.$parent = parentVm;
  2290. vm.$root = parentVm.$root;
  2291. parentVm.$children.push(vm);
  2292. vm.__call_hook('created');
  2293. vm.__call_hook('beforeMount');
  2294. vm._isMounted = true;
  2295. vm.__call_hook('mounted');
  2296. vm.__call_hook('onReady');
  2297. }
  2298. function parseApp(vm) {
  2299. _vue.default.prototype._$fallback = true; // 降级(调整原 vue 的部分生命周期,如 created,beforeMount,inject,provide)
  2300. _vue.default.mixin({
  2301. created: function created() {
  2302. // 处理 injections,头条 triggerEvent 是异步,且触发时机很慢,故延迟 relation 设置
  2303. if (this.mpType !== 'app') {
  2304. if (this.mpType === 'page' && !this.$scope.route && this.$scope.__route__) {
  2305. this.$scope.route = this.$scope.__route__;
  2306. }
  2307. initRefs$1(this);
  2308. this.__init_injections(this);
  2309. this.__init_provide(this);
  2310. }
  2311. }
  2312. });
  2313. return parseBaseApp(vm, {
  2314. mocks: mocks,
  2315. initRefs: function initRefs() {} // attached 时,可能查询不到
  2316. });
  2317. }
  2318. function createApp(vm) {
  2319. App(parseApp(vm));
  2320. return vm;
  2321. }
  2322. var encodeReserveRE = /[!'()*]/g;
  2323. var encodeReserveReplacer = function encodeReserveReplacer(c) {
  2324. return '%' + c.charCodeAt(0).toString(16);
  2325. };
  2326. var commaRE = /%2C/g;
  2327. // fixed encodeURIComponent which is more conformant to RFC3986:
  2328. // - escapes [!'()*]
  2329. // - preserve commas
  2330. var encode = function encode(str) {
  2331. return encodeURIComponent(str).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
  2332. };
  2333. function stringifyQuery(obj) {
  2334. var encodeStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : encode;
  2335. var res = obj ? Object.keys(obj).map(function (key) {
  2336. var val = obj[key];
  2337. if (val === undefined) {
  2338. return '';
  2339. }
  2340. if (val === null) {
  2341. return encodeStr(key);
  2342. }
  2343. if (Array.isArray(val)) {
  2344. var result = [];
  2345. val.forEach(function (val2) {
  2346. if (val2 === undefined) {
  2347. return;
  2348. }
  2349. if (val2 === null) {
  2350. result.push(encodeStr(key));
  2351. } else {
  2352. result.push(encodeStr(key) + '=' + encodeStr(val2));
  2353. }
  2354. });
  2355. return result.join('&');
  2356. }
  2357. return encodeStr(key) + '=' + encodeStr(val);
  2358. }).filter(function (x) {
  2359. return x.length > 0;
  2360. }).join('&') : null;
  2361. return res ? "?".concat(res) : '';
  2362. }
  2363. function parseBaseComponent(vueComponentOptions) {
  2364. var _ref7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  2365. isPage = _ref7.isPage,
  2366. initRelation = _ref7.initRelation;
  2367. var needVueOptions = arguments.length > 2 ? arguments[2] : undefined;
  2368. var _initVueComponent = initVueComponent(_vue.default, vueComponentOptions),
  2369. _initVueComponent2 = (0, _slicedToArray2.default)(_initVueComponent, 2),
  2370. VueComponent = _initVueComponent2[0],
  2371. vueOptions = _initVueComponent2[1];
  2372. var options = _objectSpread({
  2373. multipleSlots: true,
  2374. addGlobalClass: true
  2375. }, vueOptions.options || {});
  2376. var componentOptions = {
  2377. options: options,
  2378. data: initData(vueOptions, _vue.default.prototype),
  2379. behaviors: initBehaviors(vueOptions, initBehavior),
  2380. properties: initProperties(vueOptions.props, false, vueOptions.__file),
  2381. lifetimes: {
  2382. attached: function attached() {
  2383. var properties = this.properties;
  2384. var options = {
  2385. mpType: isPage.call(this) ? 'page' : 'component',
  2386. mpInstance: this,
  2387. propsData: properties
  2388. };
  2389. initVueIds(properties.vueId, this);
  2390. // 处理父子关系
  2391. initRelation.call(this, {
  2392. vuePid: this._$vuePid,
  2393. vueOptions: options
  2394. });
  2395. // 初始化 vue 实例
  2396. this.$vm = new VueComponent(options);
  2397. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2398. initSlots(this.$vm, properties.vueSlots);
  2399. // 触发首次 setData
  2400. this.$vm.$mount();
  2401. },
  2402. ready: function ready() {
  2403. // 当组件 props 默认值为 true,初始化时传入 false 会导致 created,ready 触发, 但 attached 不触发
  2404. // https://developers.weixin.qq.com/community/develop/doc/00066ae2844cc0f8eb883e2a557800
  2405. if (this.$vm) {
  2406. this.$vm._isMounted = true;
  2407. this.$vm.__call_hook('mounted');
  2408. this.$vm.__call_hook('onReady');
  2409. }
  2410. },
  2411. detached: function detached() {
  2412. this.$vm && this.$vm.$destroy();
  2413. }
  2414. },
  2415. pageLifetimes: {
  2416. show: function show(args) {
  2417. this.$vm && this.$vm.__call_hook('onPageShow', args);
  2418. },
  2419. hide: function hide() {
  2420. this.$vm && this.$vm.__call_hook('onPageHide');
  2421. },
  2422. resize: function resize(size) {
  2423. this.$vm && this.$vm.__call_hook('onPageResize', size);
  2424. }
  2425. },
  2426. methods: {
  2427. __l: handleLink,
  2428. __e: handleEvent
  2429. }
  2430. };
  2431. // externalClasses
  2432. if (vueOptions.externalClasses) {
  2433. componentOptions.externalClasses = vueOptions.externalClasses;
  2434. }
  2435. if (Array.isArray(vueOptions.wxsCallMethods)) {
  2436. vueOptions.wxsCallMethods.forEach(function (callMethod) {
  2437. componentOptions.methods[callMethod] = function (args) {
  2438. return this.$vm[callMethod](args);
  2439. };
  2440. });
  2441. }
  2442. if (needVueOptions) {
  2443. return [componentOptions, vueOptions, VueComponent];
  2444. }
  2445. if (isPage) {
  2446. return componentOptions;
  2447. }
  2448. return [componentOptions, VueComponent];
  2449. }
  2450. function currentComponents(mpInstance, callback) {
  2451. var webviewId = mpInstance.__webviewId__;
  2452. var currentComponents = components[webviewId];
  2453. if (currentComponents) {
  2454. callback(currentComponents);
  2455. }
  2456. }
  2457. function parseComponent(vueComponentOptions, needVueOptions) {
  2458. var _parseBaseComponent = parseBaseComponent(vueComponentOptions, {
  2459. isPage: isPage,
  2460. initRelation: initRelation
  2461. }, true),
  2462. _parseBaseComponent2 = (0, _slicedToArray2.default)(_parseBaseComponent, 3),
  2463. componentOptions = _parseBaseComponent2[0],
  2464. vueOptions = _parseBaseComponent2[1],
  2465. VueComponent = _parseBaseComponent2[2];
  2466. var lifetimes = componentOptions.lifetimes;
  2467. // 基础库 2.0 以上 attached 顺序错乱,按照 created 顺序强制纠正
  2468. lifetimes.created = function created() {
  2469. var _this4 = this;
  2470. currentComponents(this, function (components) {
  2471. components.push(_this4);
  2472. });
  2473. };
  2474. lifetimes.attached = function attached() {
  2475. var _this5 = this;
  2476. this.__lifetimes_attached = function () {
  2477. var properties = this.properties;
  2478. var options = {
  2479. mpType: isPage.call(this) ? 'page' : 'component',
  2480. mpInstance: this,
  2481. propsData: properties
  2482. };
  2483. initVueIds(properties.vueId, this);
  2484. // 初始化 vue 实例
  2485. this.$vm = new VueComponent(options);
  2486. // 处理$slots,$scopedSlots(暂不支持动态变化$slots)
  2487. initSlots(this.$vm, properties.vueSlots);
  2488. // 处理父子关系
  2489. initRelation.call(this, {
  2490. vuePid: this._$vuePid,
  2491. mpInstance: this
  2492. });
  2493. // 触发首次 setData
  2494. this.$vm.$mount();
  2495. };
  2496. currentComponents(this, function (components) {
  2497. var component = _this5;
  2498. while (component && component.__lifetimes_attached && components[0] && component === components[0]) {
  2499. components.shift();
  2500. component.__lifetimes_attached();
  2501. delete component.__lifetimes_attached;
  2502. component = components[0];
  2503. }
  2504. });
  2505. };
  2506. var oldDetached = lifetimes.detached;
  2507. lifetimes.detached = function detached() {
  2508. var _this6 = this;
  2509. if (typeof oldDetached === 'function') {
  2510. oldDetached.call(this);
  2511. }
  2512. currentComponents(this, function (components) {
  2513. var index = components.indexOf(_this6);
  2514. if (index >= 0) {
  2515. components.splice(index, 1);
  2516. }
  2517. });
  2518. };
  2519. // ready 比 handleLink 还早,初始化逻辑放到 handleLink 中
  2520. delete lifetimes.ready;
  2521. componentOptions.methods.__l = handleLink$1;
  2522. return needVueOptions ? [componentOptions, vueOptions] : componentOptions;
  2523. }
  2524. var hooks$1 = ['onShow', 'onHide', 'onUnload'];
  2525. hooks$1.push.apply(hooks$1, PAGE_EVENT_HOOKS);
  2526. function parseBasePage(vuePageOptions) {
  2527. var _parseComponent = parseComponent(vuePageOptions, true),
  2528. _parseComponent2 = (0, _slicedToArray2.default)(_parseComponent, 2),
  2529. pageOptions = _parseComponent2[0],
  2530. vueOptions = _parseComponent2[1];
  2531. initHooks(pageOptions.methods, hooks$1, vueOptions);
  2532. pageOptions.methods.onLoad = function (query) {
  2533. this.options = query;
  2534. var copyQuery = Object.assign({}, query);
  2535. delete copyQuery.__id__;
  2536. this.$page = {
  2537. fullPath: '/' + (this.route || this.is) + stringifyQuery(copyQuery)
  2538. };
  2539. this.$vm.$mp.query = query; // 兼容 mpvue
  2540. this.$vm.__call_hook('onLoad', query);
  2541. };
  2542. {
  2543. initUnknownHooks(pageOptions.methods, vuePageOptions, ['onReady']);
  2544. }
  2545. return pageOptions;
  2546. }
  2547. function parsePage(vuePageOptions) {
  2548. var pageOptions = parseBasePage(vuePageOptions);
  2549. var lifetimes = pageOptions.lifetimes;
  2550. var oldCreated = lifetimes.created;
  2551. lifetimes.created = function created() {
  2552. var webviewId = this.__webviewId__;
  2553. components[webviewId] = [];
  2554. if (typeof oldCreated === 'function') {
  2555. oldCreated.call(this);
  2556. }
  2557. };
  2558. // 页面需要在 ready 中触发,其他组件是在 handleLink 中触发
  2559. lifetimes.ready = function ready() {
  2560. if (this.$vm && this.$vm.mpType === 'page') {
  2561. this.$vm.__call_hook('created');
  2562. this.$vm.__call_hook('beforeMount');
  2563. this.$vm._isMounted = true;
  2564. this.$vm.__call_hook('mounted');
  2565. this.$vm.__call_hook('onReady');
  2566. } else {
  2567. this.is && console.warn(this.is + ' is not ready');
  2568. }
  2569. };
  2570. var oldDetached = lifetimes.detached;
  2571. lifetimes.detached = function detached() {
  2572. if (typeof oldDetached === 'function') {
  2573. oldDetached.call(this);
  2574. }
  2575. // 清理
  2576. var webviewId = this.__webviewId__;
  2577. webviewId && Object.keys(instances).forEach(function (key) {
  2578. if (key.indexOf(webviewId + '_') === 0) {
  2579. delete instances[key];
  2580. }
  2581. });
  2582. delete components[webviewId];
  2583. };
  2584. return pageOptions;
  2585. }
  2586. function createPage(vuePageOptions) {
  2587. {
  2588. return Component(parsePage(vuePageOptions));
  2589. }
  2590. }
  2591. function createComponent(vueOptions) {
  2592. {
  2593. return Component(parseComponent(vueOptions));
  2594. }
  2595. }
  2596. function createSubpackageApp(vm) {
  2597. var appOptions = parseApp(vm);
  2598. var app = getApp({
  2599. allowDefault: true
  2600. });
  2601. vm.$scope = app;
  2602. var globalData = app.globalData;
  2603. if (globalData) {
  2604. Object.keys(appOptions.globalData).forEach(function (name) {
  2605. if (!hasOwn(globalData, name)) {
  2606. globalData[name] = appOptions.globalData[name];
  2607. }
  2608. });
  2609. }
  2610. Object.keys(appOptions).forEach(function (name) {
  2611. if (!hasOwn(app, name)) {
  2612. app[name] = appOptions[name];
  2613. }
  2614. });
  2615. if (isFn(appOptions.onShow) && tt.onAppShow) {
  2616. tt.onAppShow(function () {
  2617. for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
  2618. args[_key6] = arguments[_key6];
  2619. }
  2620. vm.__call_hook('onShow', args);
  2621. });
  2622. }
  2623. if (isFn(appOptions.onHide) && tt.onAppHide) {
  2624. tt.onAppHide(function () {
  2625. for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
  2626. args[_key7] = arguments[_key7];
  2627. }
  2628. vm.__call_hook('onHide', args);
  2629. });
  2630. }
  2631. if (isFn(appOptions.onLaunch)) {
  2632. var args = tt.getLaunchOptionsSync && tt.getLaunchOptionsSync();
  2633. vm.__call_hook('onLaunch', args);
  2634. }
  2635. return vm;
  2636. }
  2637. function createPlugin(vm) {
  2638. var appOptions = parseApp(vm);
  2639. if (isFn(appOptions.onShow) && tt.onAppShow) {
  2640. tt.onAppShow(function () {
  2641. for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
  2642. args[_key8] = arguments[_key8];
  2643. }
  2644. vm.__call_hook('onShow', args);
  2645. });
  2646. }
  2647. if (isFn(appOptions.onHide) && tt.onAppHide) {
  2648. tt.onAppHide(function () {
  2649. for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
  2650. args[_key9] = arguments[_key9];
  2651. }
  2652. vm.__call_hook('onHide', args);
  2653. });
  2654. }
  2655. if (isFn(appOptions.onLaunch)) {
  2656. var args = tt.getLaunchOptionsSync && tt.getLaunchOptionsSync();
  2657. vm.__call_hook('onLaunch', args);
  2658. }
  2659. return vm;
  2660. }
  2661. todos.forEach(function (todoApi) {
  2662. protocols[todoApi] = false;
  2663. });
  2664. canIUses.forEach(function (canIUseApi) {
  2665. var apiName = protocols[canIUseApi] && protocols[canIUseApi].name ? protocols[canIUseApi].name : canIUseApi;
  2666. if (!tt.canIUse(apiName)) {
  2667. protocols[canIUseApi] = false;
  2668. }
  2669. });
  2670. var uni = {};
  2671. if (typeof Proxy !== 'undefined' && "mp-toutiao" !== 'app-plus') {
  2672. uni = new Proxy({}, {
  2673. get: function get(target, name) {
  2674. if (hasOwn(target, name)) {
  2675. return target[name];
  2676. }
  2677. if (baseApi[name]) {
  2678. return baseApi[name];
  2679. }
  2680. if (api[name]) {
  2681. return promisify(name, api[name]);
  2682. }
  2683. {
  2684. if (extraApi[name]) {
  2685. return promisify(name, extraApi[name]);
  2686. }
  2687. if (todoApis[name]) {
  2688. return promisify(name, todoApis[name]);
  2689. }
  2690. }
  2691. if (eventApi[name]) {
  2692. return eventApi[name];
  2693. }
  2694. return promisify(name, wrapper(name, tt[name]));
  2695. },
  2696. set: function set(target, name, value) {
  2697. target[name] = value;
  2698. return true;
  2699. }
  2700. });
  2701. } else {
  2702. Object.keys(baseApi).forEach(function (name) {
  2703. uni[name] = baseApi[name];
  2704. });
  2705. {
  2706. Object.keys(todoApis).forEach(function (name) {
  2707. uni[name] = promisify(name, todoApis[name]);
  2708. });
  2709. Object.keys(extraApi).forEach(function (name) {
  2710. uni[name] = promisify(name, todoApis[name]);
  2711. });
  2712. }
  2713. Object.keys(eventApi).forEach(function (name) {
  2714. uni[name] = eventApi[name];
  2715. });
  2716. Object.keys(api).forEach(function (name) {
  2717. uni[name] = promisify(name, api[name]);
  2718. });
  2719. Object.keys(tt).forEach(function (name) {
  2720. if (hasOwn(tt, name) || hasOwn(protocols, name)) {
  2721. uni[name] = promisify(name, wrapper(name, tt[name]));
  2722. }
  2723. });
  2724. }
  2725. tt.createApp = createApp;
  2726. tt.createPage = createPage;
  2727. tt.createComponent = createComponent;
  2728. tt.createSubpackageApp = createSubpackageApp;
  2729. tt.createPlugin = createPlugin;
  2730. var uni$1 = uni;
  2731. var _default = uni$1;
  2732. exports.default = _default;
  2733. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  2734. /***/ }),
  2735. /* 2 */
  2736. /*!***********************************!*\
  2737. !*** (webpack)/buildin/global.js ***!
  2738. \***********************************/
  2739. /*! no static exports found */
  2740. /***/ (function(module, exports) {
  2741. var g;
  2742. // This works in non-strict mode
  2743. g = (function() {
  2744. return this;
  2745. })();
  2746. try {
  2747. // This works if eval is allowed (see CSP)
  2748. g = g || new Function("return this")();
  2749. } catch (e) {
  2750. // This works if the window reference is available
  2751. if (typeof window === "object") g = window;
  2752. }
  2753. // g can still be undefined, but nothing to do about it...
  2754. // We return undefined, instead of nothing here, so it's
  2755. // easier to handle this case. if(!global) { ...}
  2756. module.exports = g;
  2757. /***/ }),
  2758. /* 3 */
  2759. /*!**********************************************************************!*\
  2760. !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  2761. \**********************************************************************/
  2762. /*! no static exports found */
  2763. /***/ (function(module, exports) {
  2764. function _interopRequireDefault(obj) {
  2765. return obj && obj.__esModule ? obj : {
  2766. "default": obj
  2767. };
  2768. }
  2769. module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2770. /***/ }),
  2771. /* 4 */
  2772. /*!**************************************************************!*\
  2773. !*** ./node_modules/@babel/runtime/helpers/slicedToArray.js ***!
  2774. \**************************************************************/
  2775. /*! no static exports found */
  2776. /***/ (function(module, exports, __webpack_require__) {
  2777. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 5);
  2778. var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ 6);
  2779. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 7);
  2780. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 9);
  2781. function _slicedToArray(arr, i) {
  2782. return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
  2783. }
  2784. module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2785. /***/ }),
  2786. /* 5 */
  2787. /*!***************************************************************!*\
  2788. !*** ./node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
  2789. \***************************************************************/
  2790. /*! no static exports found */
  2791. /***/ (function(module, exports) {
  2792. function _arrayWithHoles(arr) {
  2793. if (Array.isArray(arr)) return arr;
  2794. }
  2795. module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2796. /***/ }),
  2797. /* 6 */
  2798. /*!*********************************************************************!*\
  2799. !*** ./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
  2800. \*********************************************************************/
  2801. /*! no static exports found */
  2802. /***/ (function(module, exports) {
  2803. function _iterableToArrayLimit(arr, i) {
  2804. var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
  2805. if (null != _i) {
  2806. var _s,
  2807. _e,
  2808. _x,
  2809. _r,
  2810. _arr = [],
  2811. _n = !0,
  2812. _d = !1;
  2813. try {
  2814. if (_x = (_i = _i.call(arr)).next, 0 === i) {
  2815. if (Object(_i) !== _i) return;
  2816. _n = !1;
  2817. } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
  2818. ;
  2819. }
  2820. } catch (err) {
  2821. _d = !0, _e = err;
  2822. } finally {
  2823. try {
  2824. if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
  2825. } finally {
  2826. if (_d) throw _e;
  2827. }
  2828. }
  2829. return _arr;
  2830. }
  2831. }
  2832. module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2833. /***/ }),
  2834. /* 7 */
  2835. /*!***************************************************************************!*\
  2836. !*** ./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
  2837. \***************************************************************************/
  2838. /*! no static exports found */
  2839. /***/ (function(module, exports, __webpack_require__) {
  2840. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 8);
  2841. function _unsupportedIterableToArray(o, minLen) {
  2842. if (!o) return;
  2843. if (typeof o === "string") return arrayLikeToArray(o, minLen);
  2844. var n = Object.prototype.toString.call(o).slice(8, -1);
  2845. if (n === "Object" && o.constructor) n = o.constructor.name;
  2846. if (n === "Map" || n === "Set") return Array.from(o);
  2847. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
  2848. }
  2849. module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2850. /***/ }),
  2851. /* 8 */
  2852. /*!*****************************************************************!*\
  2853. !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
  2854. \*****************************************************************/
  2855. /*! no static exports found */
  2856. /***/ (function(module, exports) {
  2857. function _arrayLikeToArray(arr, len) {
  2858. if (len == null || len > arr.length) len = arr.length;
  2859. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  2860. arr2[i] = arr[i];
  2861. }
  2862. return arr2;
  2863. }
  2864. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2865. /***/ }),
  2866. /* 9 */
  2867. /*!****************************************************************!*\
  2868. !*** ./node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
  2869. \****************************************************************/
  2870. /*! no static exports found */
  2871. /***/ (function(module, exports) {
  2872. function _nonIterableRest() {
  2873. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2874. }
  2875. module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2876. /***/ }),
  2877. /* 10 */
  2878. /*!***************************************************************!*\
  2879. !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***!
  2880. \***************************************************************/
  2881. /*! no static exports found */
  2882. /***/ (function(module, exports, __webpack_require__) {
  2883. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 11);
  2884. function _defineProperty(obj, key, value) {
  2885. key = toPropertyKey(key);
  2886. if (key in obj) {
  2887. Object.defineProperty(obj, key, {
  2888. value: value,
  2889. enumerable: true,
  2890. configurable: true,
  2891. writable: true
  2892. });
  2893. } else {
  2894. obj[key] = value;
  2895. }
  2896. return obj;
  2897. }
  2898. module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2899. /***/ }),
  2900. /* 11 */
  2901. /*!**************************************************************!*\
  2902. !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
  2903. \**************************************************************/
  2904. /*! no static exports found */
  2905. /***/ (function(module, exports, __webpack_require__) {
  2906. var _typeof = __webpack_require__(/*! ./typeof.js */ 12)["default"];
  2907. var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ 13);
  2908. function _toPropertyKey(arg) {
  2909. var key = toPrimitive(arg, "string");
  2910. return _typeof(key) === "symbol" ? key : String(key);
  2911. }
  2912. module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2913. /***/ }),
  2914. /* 12 */
  2915. /*!*******************************************************!*\
  2916. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  2917. \*******************************************************/
  2918. /*! no static exports found */
  2919. /***/ (function(module, exports) {
  2920. function _typeof(obj) {
  2921. "@babel/helpers - typeof";
  2922. return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
  2923. return typeof obj;
  2924. } : function (obj) {
  2925. return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  2926. }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
  2927. }
  2928. module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2929. /***/ }),
  2930. /* 13 */
  2931. /*!************************************************************!*\
  2932. !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
  2933. \************************************************************/
  2934. /*! no static exports found */
  2935. /***/ (function(module, exports, __webpack_require__) {
  2936. var _typeof = __webpack_require__(/*! ./typeof.js */ 12)["default"];
  2937. function _toPrimitive(input, hint) {
  2938. if (_typeof(input) !== "object" || input === null) return input;
  2939. var prim = input[Symbol.toPrimitive];
  2940. if (prim !== undefined) {
  2941. var res = prim.call(input, hint || "default");
  2942. if (_typeof(res) !== "object") return res;
  2943. throw new TypeError("@@toPrimitive must return a primitive value.");
  2944. }
  2945. return (hint === "string" ? String : Number)(input);
  2946. }
  2947. module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2948. /***/ }),
  2949. /* 14 */
  2950. /*!**********************************************************!*\
  2951. !*** ./node_modules/@babel/runtime/helpers/construct.js ***!
  2952. \**********************************************************/
  2953. /*! no static exports found */
  2954. /***/ (function(module, exports, __webpack_require__) {
  2955. var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ 15);
  2956. var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ 16);
  2957. function _construct(Parent, args, Class) {
  2958. if (isNativeReflectConstruct()) {
  2959. module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
  2960. } else {
  2961. module.exports = _construct = function _construct(Parent, args, Class) {
  2962. var a = [null];
  2963. a.push.apply(a, args);
  2964. var Constructor = Function.bind.apply(Parent, a);
  2965. var instance = new Constructor();
  2966. if (Class) setPrototypeOf(instance, Class.prototype);
  2967. return instance;
  2968. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2969. }
  2970. return _construct.apply(null, arguments);
  2971. }
  2972. module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2973. /***/ }),
  2974. /* 15 */
  2975. /*!***************************************************************!*\
  2976. !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
  2977. \***************************************************************/
  2978. /*! no static exports found */
  2979. /***/ (function(module, exports) {
  2980. function _setPrototypeOf(o, p) {
  2981. module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  2982. o.__proto__ = p;
  2983. return o;
  2984. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2985. return _setPrototypeOf(o, p);
  2986. }
  2987. module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
  2988. /***/ }),
  2989. /* 16 */
  2990. /*!*************************************************************************!*\
  2991. !*** ./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
  2992. \*************************************************************************/
  2993. /*! no static exports found */
  2994. /***/ (function(module, exports) {
  2995. function _isNativeReflectConstruct() {
  2996. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  2997. if (Reflect.construct.sham) return false;
  2998. if (typeof Proxy === "function") return true;
  2999. try {
  3000. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  3001. return true;
  3002. } catch (e) {
  3003. return false;
  3004. }
  3005. }
  3006. module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3007. /***/ }),
  3008. /* 17 */
  3009. /*!***************************************************************!*\
  3010. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  3011. \***************************************************************/
  3012. /*! no static exports found */
  3013. /***/ (function(module, exports) {
  3014. function _classCallCheck(instance, Constructor) {
  3015. if (!(instance instanceof Constructor)) {
  3016. throw new TypeError("Cannot call a class as a function");
  3017. }
  3018. }
  3019. module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3020. /***/ }),
  3021. /* 18 */
  3022. /*!************************************************************!*\
  3023. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  3024. \************************************************************/
  3025. /*! no static exports found */
  3026. /***/ (function(module, exports, __webpack_require__) {
  3027. var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ 11);
  3028. function _defineProperties(target, props) {
  3029. for (var i = 0; i < props.length; i++) {
  3030. var descriptor = props[i];
  3031. descriptor.enumerable = descriptor.enumerable || false;
  3032. descriptor.configurable = true;
  3033. if ("value" in descriptor) descriptor.writable = true;
  3034. Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
  3035. }
  3036. }
  3037. function _createClass(Constructor, protoProps, staticProps) {
  3038. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3039. if (staticProps) _defineProperties(Constructor, staticProps);
  3040. Object.defineProperty(Constructor, "prototype", {
  3041. writable: false
  3042. });
  3043. return Constructor;
  3044. }
  3045. module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3046. /***/ }),
  3047. /* 19 */
  3048. /*!******************************************************************!*\
  3049. !*** ./node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
  3050. \******************************************************************/
  3051. /*! no static exports found */
  3052. /***/ (function(module, exports, __webpack_require__) {
  3053. var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ 20);
  3054. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 21);
  3055. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 7);
  3056. var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ 22);
  3057. function _toConsumableArray(arr) {
  3058. return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
  3059. }
  3060. module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3061. /***/ }),
  3062. /* 20 */
  3063. /*!******************************************************************!*\
  3064. !*** ./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
  3065. \******************************************************************/
  3066. /*! no static exports found */
  3067. /***/ (function(module, exports, __webpack_require__) {
  3068. var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ 8);
  3069. function _arrayWithoutHoles(arr) {
  3070. if (Array.isArray(arr)) return arrayLikeToArray(arr);
  3071. }
  3072. module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3073. /***/ }),
  3074. /* 21 */
  3075. /*!****************************************************************!*\
  3076. !*** ./node_modules/@babel/runtime/helpers/iterableToArray.js ***!
  3077. \****************************************************************/
  3078. /*! no static exports found */
  3079. /***/ (function(module, exports) {
  3080. function _iterableToArray(iter) {
  3081. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  3082. }
  3083. module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3084. /***/ }),
  3085. /* 22 */
  3086. /*!******************************************************************!*\
  3087. !*** ./node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
  3088. \******************************************************************/
  3089. /*! no static exports found */
  3090. /***/ (function(module, exports) {
  3091. function _nonIterableSpread() {
  3092. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  3093. }
  3094. module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
  3095. /***/ }),
  3096. /* 23 */
  3097. /*!*************************************************************!*\
  3098. !*** ./node_modules/@dcloudio/uni-i18n/dist/uni-i18n.es.js ***!
  3099. \*************************************************************/
  3100. /*! no static exports found */
  3101. /***/ (function(module, exports, __webpack_require__) {
  3102. "use strict";
  3103. /* WEBPACK VAR INJECTION */(function(uni, global) {
  3104. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  3105. Object.defineProperty(exports, "__esModule", {
  3106. value: true
  3107. });
  3108. exports.LOCALE_ZH_HANT = exports.LOCALE_ZH_HANS = exports.LOCALE_FR = exports.LOCALE_ES = exports.LOCALE_EN = exports.I18n = exports.Formatter = void 0;
  3109. exports.compileI18nJsonStr = compileI18nJsonStr;
  3110. exports.hasI18nJson = hasI18nJson;
  3111. exports.initVueI18n = initVueI18n;
  3112. exports.isI18nStr = isI18nStr;
  3113. exports.isString = void 0;
  3114. exports.normalizeLocale = normalizeLocale;
  3115. exports.parseI18nJson = parseI18nJson;
  3116. exports.resolveLocale = resolveLocale;
  3117. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 4));
  3118. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 17));
  3119. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 18));
  3120. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  3121. var isArray = Array.isArray;
  3122. var isObject = function isObject(val) {
  3123. return val !== null && (0, _typeof2.default)(val) === 'object';
  3124. };
  3125. var defaultDelimiters = ['{', '}'];
  3126. var BaseFormatter = /*#__PURE__*/function () {
  3127. function BaseFormatter() {
  3128. (0, _classCallCheck2.default)(this, BaseFormatter);
  3129. this._caches = Object.create(null);
  3130. }
  3131. (0, _createClass2.default)(BaseFormatter, [{
  3132. key: "interpolate",
  3133. value: function interpolate(message, values) {
  3134. var delimiters = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultDelimiters;
  3135. if (!values) {
  3136. return [message];
  3137. }
  3138. var tokens = this._caches[message];
  3139. if (!tokens) {
  3140. tokens = parse(message, delimiters);
  3141. this._caches[message] = tokens;
  3142. }
  3143. return compile(tokens, values);
  3144. }
  3145. }]);
  3146. return BaseFormatter;
  3147. }();
  3148. exports.Formatter = BaseFormatter;
  3149. var RE_TOKEN_LIST_VALUE = /^(?:\d)+/;
  3150. var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/;
  3151. function parse(format, _ref) {
  3152. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  3153. startDelimiter = _ref2[0],
  3154. endDelimiter = _ref2[1];
  3155. var tokens = [];
  3156. var position = 0;
  3157. var text = '';
  3158. while (position < format.length) {
  3159. var char = format[position++];
  3160. if (char === startDelimiter) {
  3161. if (text) {
  3162. tokens.push({
  3163. type: 'text',
  3164. value: text
  3165. });
  3166. }
  3167. text = '';
  3168. var sub = '';
  3169. char = format[position++];
  3170. while (char !== undefined && char !== endDelimiter) {
  3171. sub += char;
  3172. char = format[position++];
  3173. }
  3174. var isClosed = char === endDelimiter;
  3175. var type = RE_TOKEN_LIST_VALUE.test(sub) ? 'list' : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? 'named' : 'unknown';
  3176. tokens.push({
  3177. value: sub,
  3178. type: type
  3179. });
  3180. }
  3181. // else if (char === '%') {
  3182. // // when found rails i18n syntax, skip text capture
  3183. // if (format[position] !== '{') {
  3184. // text += char
  3185. // }
  3186. // }
  3187. else {
  3188. text += char;
  3189. }
  3190. }
  3191. text && tokens.push({
  3192. type: 'text',
  3193. value: text
  3194. });
  3195. return tokens;
  3196. }
  3197. function compile(tokens, values) {
  3198. var compiled = [];
  3199. var index = 0;
  3200. var mode = isArray(values) ? 'list' : isObject(values) ? 'named' : 'unknown';
  3201. if (mode === 'unknown') {
  3202. return compiled;
  3203. }
  3204. while (index < tokens.length) {
  3205. var token = tokens[index];
  3206. switch (token.type) {
  3207. case 'text':
  3208. compiled.push(token.value);
  3209. break;
  3210. case 'list':
  3211. compiled.push(values[parseInt(token.value, 10)]);
  3212. break;
  3213. case 'named':
  3214. if (mode === 'named') {
  3215. compiled.push(values[token.value]);
  3216. } else {
  3217. if (true) {
  3218. console.warn("Type of token '".concat(token.type, "' and format of value '").concat(mode, "' don't match!"));
  3219. }
  3220. }
  3221. break;
  3222. case 'unknown':
  3223. if (true) {
  3224. console.warn("Detect 'unknown' type of token!");
  3225. }
  3226. break;
  3227. }
  3228. index++;
  3229. }
  3230. return compiled;
  3231. }
  3232. var LOCALE_ZH_HANS = 'zh-Hans';
  3233. exports.LOCALE_ZH_HANS = LOCALE_ZH_HANS;
  3234. var LOCALE_ZH_HANT = 'zh-Hant';
  3235. exports.LOCALE_ZH_HANT = LOCALE_ZH_HANT;
  3236. var LOCALE_EN = 'en';
  3237. exports.LOCALE_EN = LOCALE_EN;
  3238. var LOCALE_FR = 'fr';
  3239. exports.LOCALE_FR = LOCALE_FR;
  3240. var LOCALE_ES = 'es';
  3241. exports.LOCALE_ES = LOCALE_ES;
  3242. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3243. var hasOwn = function hasOwn(val, key) {
  3244. return hasOwnProperty.call(val, key);
  3245. };
  3246. var defaultFormatter = new BaseFormatter();
  3247. function include(str, parts) {
  3248. return !!parts.find(function (part) {
  3249. return str.indexOf(part) !== -1;
  3250. });
  3251. }
  3252. function startsWith(str, parts) {
  3253. return parts.find(function (part) {
  3254. return str.indexOf(part) === 0;
  3255. });
  3256. }
  3257. function normalizeLocale(locale, messages) {
  3258. if (!locale) {
  3259. return;
  3260. }
  3261. locale = locale.trim().replace(/_/g, '-');
  3262. if (messages && messages[locale]) {
  3263. return locale;
  3264. }
  3265. locale = locale.toLowerCase();
  3266. if (locale.indexOf('zh') === 0) {
  3267. if (locale.indexOf('-hans') > -1) {
  3268. return LOCALE_ZH_HANS;
  3269. }
  3270. if (locale.indexOf('-hant') > -1) {
  3271. return LOCALE_ZH_HANT;
  3272. }
  3273. if (include(locale, ['-tw', '-hk', '-mo', '-cht'])) {
  3274. return LOCALE_ZH_HANT;
  3275. }
  3276. return LOCALE_ZH_HANS;
  3277. }
  3278. var lang = startsWith(locale, [LOCALE_EN, LOCALE_FR, LOCALE_ES]);
  3279. if (lang) {
  3280. return lang;
  3281. }
  3282. }
  3283. var I18n = /*#__PURE__*/function () {
  3284. function I18n(_ref3) {
  3285. var locale = _ref3.locale,
  3286. fallbackLocale = _ref3.fallbackLocale,
  3287. messages = _ref3.messages,
  3288. watcher = _ref3.watcher,
  3289. formater = _ref3.formater;
  3290. (0, _classCallCheck2.default)(this, I18n);
  3291. this.locale = LOCALE_EN;
  3292. this.fallbackLocale = LOCALE_EN;
  3293. this.message = {};
  3294. this.messages = {};
  3295. this.watchers = [];
  3296. if (fallbackLocale) {
  3297. this.fallbackLocale = fallbackLocale;
  3298. }
  3299. this.formater = formater || defaultFormatter;
  3300. this.messages = messages || {};
  3301. this.setLocale(locale || LOCALE_EN);
  3302. if (watcher) {
  3303. this.watchLocale(watcher);
  3304. }
  3305. }
  3306. (0, _createClass2.default)(I18n, [{
  3307. key: "setLocale",
  3308. value: function setLocale(locale) {
  3309. var _this = this;
  3310. var oldLocale = this.locale;
  3311. this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale;
  3312. if (!this.messages[this.locale]) {
  3313. // 可能初始化时不存在
  3314. this.messages[this.locale] = {};
  3315. }
  3316. this.message = this.messages[this.locale];
  3317. // 仅发生变化时,通知
  3318. if (oldLocale !== this.locale) {
  3319. this.watchers.forEach(function (watcher) {
  3320. watcher(_this.locale, oldLocale);
  3321. });
  3322. }
  3323. }
  3324. }, {
  3325. key: "getLocale",
  3326. value: function getLocale() {
  3327. return this.locale;
  3328. }
  3329. }, {
  3330. key: "watchLocale",
  3331. value: function watchLocale(fn) {
  3332. var _this2 = this;
  3333. var index = this.watchers.push(fn) - 1;
  3334. return function () {
  3335. _this2.watchers.splice(index, 1);
  3336. };
  3337. }
  3338. }, {
  3339. key: "add",
  3340. value: function add(locale, message) {
  3341. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3342. var curMessages = this.messages[locale];
  3343. if (curMessages) {
  3344. if (override) {
  3345. Object.assign(curMessages, message);
  3346. } else {
  3347. Object.keys(message).forEach(function (key) {
  3348. if (!hasOwn(curMessages, key)) {
  3349. curMessages[key] = message[key];
  3350. }
  3351. });
  3352. }
  3353. } else {
  3354. this.messages[locale] = message;
  3355. }
  3356. }
  3357. }, {
  3358. key: "f",
  3359. value: function f(message, values, delimiters) {
  3360. return this.formater.interpolate(message, values, delimiters).join('');
  3361. }
  3362. }, {
  3363. key: "t",
  3364. value: function t(key, locale, values) {
  3365. var message = this.message;
  3366. if (typeof locale === 'string') {
  3367. locale = normalizeLocale(locale, this.messages);
  3368. locale && (message = this.messages[locale]);
  3369. } else {
  3370. values = locale;
  3371. }
  3372. if (!hasOwn(message, key)) {
  3373. console.warn("Cannot translate the value of keypath ".concat(key, ". Use the value of keypath as default."));
  3374. return key;
  3375. }
  3376. return this.formater.interpolate(message[key], values).join('');
  3377. }
  3378. }]);
  3379. return I18n;
  3380. }();
  3381. exports.I18n = I18n;
  3382. function watchAppLocale(appVm, i18n) {
  3383. // 需要保证 watch 的触发在组件渲染之前
  3384. if (appVm.$watchLocale) {
  3385. // vue2
  3386. appVm.$watchLocale(function (newLocale) {
  3387. i18n.setLocale(newLocale);
  3388. });
  3389. } else {
  3390. appVm.$watch(function () {
  3391. return appVm.$locale;
  3392. }, function (newLocale) {
  3393. i18n.setLocale(newLocale);
  3394. });
  3395. }
  3396. }
  3397. function getDefaultLocale() {
  3398. if (typeof uni !== 'undefined' && uni.getLocale) {
  3399. return uni.getLocale();
  3400. }
  3401. // 小程序平台,uni 和 uni-i18n 互相引用,导致访问不到 uni,故在 global 上挂了 getLocale
  3402. if (typeof global !== 'undefined' && global.getLocale) {
  3403. return global.getLocale();
  3404. }
  3405. return LOCALE_EN;
  3406. }
  3407. function initVueI18n(locale) {
  3408. var messages = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3409. var fallbackLocale = arguments.length > 2 ? arguments[2] : undefined;
  3410. var watcher = arguments.length > 3 ? arguments[3] : undefined;
  3411. // 兼容旧版本入参
  3412. if (typeof locale !== 'string') {
  3413. var _ref4 = [messages, locale];
  3414. locale = _ref4[0];
  3415. messages = _ref4[1];
  3416. }
  3417. if (typeof locale !== 'string') {
  3418. // 因为小程序平台,uni-i18n 和 uni 互相引用,导致此时访问 uni 时,为 undefined
  3419. locale = getDefaultLocale();
  3420. }
  3421. if (typeof fallbackLocale !== 'string') {
  3422. fallbackLocale = typeof __uniConfig !== 'undefined' && __uniConfig.fallbackLocale || LOCALE_EN;
  3423. }
  3424. var i18n = new I18n({
  3425. locale: locale,
  3426. fallbackLocale: fallbackLocale,
  3427. messages: messages,
  3428. watcher: watcher
  3429. });
  3430. var _t = function t(key, values) {
  3431. if (typeof getApp !== 'function') {
  3432. // app view
  3433. /* eslint-disable no-func-assign */
  3434. _t = function t(key, values) {
  3435. return i18n.t(key, values);
  3436. };
  3437. } else {
  3438. var isWatchedAppLocale = false;
  3439. _t = function t(key, values) {
  3440. var appVm = getApp().$vm;
  3441. // 可能$vm还不存在,比如在支付宝小程序中,组件定义较早,在props的default里使用了t()函数(如uni-goods-nav),此时app还未初始化
  3442. // options: {
  3443. // type: Array,
  3444. // default () {
  3445. // return [{
  3446. // icon: 'shop',
  3447. // text: t("uni-goods-nav.options.shop"),
  3448. // }, {
  3449. // icon: 'cart',
  3450. // text: t("uni-goods-nav.options.cart")
  3451. // }]
  3452. // }
  3453. // },
  3454. if (appVm) {
  3455. // 触发响应式
  3456. appVm.$locale;
  3457. if (!isWatchedAppLocale) {
  3458. isWatchedAppLocale = true;
  3459. watchAppLocale(appVm, i18n);
  3460. }
  3461. }
  3462. return i18n.t(key, values);
  3463. };
  3464. }
  3465. return _t(key, values);
  3466. };
  3467. return {
  3468. i18n: i18n,
  3469. f: function f(message, values, delimiters) {
  3470. return i18n.f(message, values, delimiters);
  3471. },
  3472. t: function t(key, values) {
  3473. return _t(key, values);
  3474. },
  3475. add: function add(locale, message) {
  3476. var override = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  3477. return i18n.add(locale, message, override);
  3478. },
  3479. watch: function watch(fn) {
  3480. return i18n.watchLocale(fn);
  3481. },
  3482. getLocale: function getLocale() {
  3483. return i18n.getLocale();
  3484. },
  3485. setLocale: function setLocale(newLocale) {
  3486. return i18n.setLocale(newLocale);
  3487. }
  3488. };
  3489. }
  3490. var isString = function isString(val) {
  3491. return typeof val === 'string';
  3492. };
  3493. exports.isString = isString;
  3494. var formater;
  3495. function hasI18nJson(jsonObj, delimiters) {
  3496. if (!formater) {
  3497. formater = new BaseFormatter();
  3498. }
  3499. return walkJsonObj(jsonObj, function (jsonObj, key) {
  3500. var value = jsonObj[key];
  3501. if (isString(value)) {
  3502. if (isI18nStr(value, delimiters)) {
  3503. return true;
  3504. }
  3505. } else {
  3506. return hasI18nJson(value, delimiters);
  3507. }
  3508. });
  3509. }
  3510. function parseI18nJson(jsonObj, values, delimiters) {
  3511. if (!formater) {
  3512. formater = new BaseFormatter();
  3513. }
  3514. walkJsonObj(jsonObj, function (jsonObj, key) {
  3515. var value = jsonObj[key];
  3516. if (isString(value)) {
  3517. if (isI18nStr(value, delimiters)) {
  3518. jsonObj[key] = compileStr(value, values, delimiters);
  3519. }
  3520. } else {
  3521. parseI18nJson(value, values, delimiters);
  3522. }
  3523. });
  3524. return jsonObj;
  3525. }
  3526. function compileI18nJsonStr(jsonStr, _ref5) {
  3527. var locale = _ref5.locale,
  3528. locales = _ref5.locales,
  3529. delimiters = _ref5.delimiters;
  3530. if (!isI18nStr(jsonStr, delimiters)) {
  3531. return jsonStr;
  3532. }
  3533. if (!formater) {
  3534. formater = new BaseFormatter();
  3535. }
  3536. var localeValues = [];
  3537. Object.keys(locales).forEach(function (name) {
  3538. if (name !== locale) {
  3539. localeValues.push({
  3540. locale: name,
  3541. values: locales[name]
  3542. });
  3543. }
  3544. });
  3545. localeValues.unshift({
  3546. locale: locale,
  3547. values: locales[locale]
  3548. });
  3549. try {
  3550. return JSON.stringify(compileJsonObj(JSON.parse(jsonStr), localeValues, delimiters), null, 2);
  3551. } catch (e) {}
  3552. return jsonStr;
  3553. }
  3554. function isI18nStr(value, delimiters) {
  3555. return value.indexOf(delimiters[0]) > -1;
  3556. }
  3557. function compileStr(value, values, delimiters) {
  3558. return formater.interpolate(value, values, delimiters).join('');
  3559. }
  3560. function compileValue(jsonObj, key, localeValues, delimiters) {
  3561. var value = jsonObj[key];
  3562. if (isString(value)) {
  3563. // 存在国际化
  3564. if (isI18nStr(value, delimiters)) {
  3565. jsonObj[key] = compileStr(value, localeValues[0].values, delimiters);
  3566. if (localeValues.length > 1) {
  3567. // 格式化国际化语言
  3568. var valueLocales = jsonObj[key + 'Locales'] = {};
  3569. localeValues.forEach(function (localValue) {
  3570. valueLocales[localValue.locale] = compileStr(value, localValue.values, delimiters);
  3571. });
  3572. }
  3573. }
  3574. } else {
  3575. compileJsonObj(value, localeValues, delimiters);
  3576. }
  3577. }
  3578. function compileJsonObj(jsonObj, localeValues, delimiters) {
  3579. walkJsonObj(jsonObj, function (jsonObj, key) {
  3580. compileValue(jsonObj, key, localeValues, delimiters);
  3581. });
  3582. return jsonObj;
  3583. }
  3584. function walkJsonObj(jsonObj, walk) {
  3585. if (isArray(jsonObj)) {
  3586. for (var i = 0; i < jsonObj.length; i++) {
  3587. if (walk(jsonObj, i)) {
  3588. return true;
  3589. }
  3590. }
  3591. } else if (isObject(jsonObj)) {
  3592. for (var key in jsonObj) {
  3593. if (walk(jsonObj, key)) {
  3594. return true;
  3595. }
  3596. }
  3597. }
  3598. return false;
  3599. }
  3600. function resolveLocale(locales) {
  3601. return function (locale) {
  3602. if (!locale) {
  3603. return locale;
  3604. }
  3605. locale = normalizeLocale(locale) || locale;
  3606. return resolveLocaleChain(locale).find(function (locale) {
  3607. return locales.indexOf(locale) > -1;
  3608. });
  3609. };
  3610. }
  3611. function resolveLocaleChain(locale) {
  3612. var chain = [];
  3613. var tokens = locale.split('-');
  3614. while (tokens.length) {
  3615. chain.push(tokens.join('-'));
  3616. tokens.pop();
  3617. }
  3618. return chain;
  3619. }
  3620. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"], __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 2)))
  3621. /***/ }),
  3622. /* 24 */
  3623. /*!******************************************************************************************!*\
  3624. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/mp-vue/dist/mp.runtime.esm.js ***!
  3625. \******************************************************************************************/
  3626. /*! exports provided: default */
  3627. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3628. "use strict";
  3629. __webpack_require__.r(__webpack_exports__);
  3630. /* WEBPACK VAR INJECTION */(function(global) {/*!
  3631. * Vue.js v2.6.11
  3632. * (c) 2014-2022 Evan You
  3633. * Released under the MIT License.
  3634. */
  3635. /* */
  3636. var emptyObject = Object.freeze({});
  3637. // These helpers produce better VM code in JS engines due to their
  3638. // explicitness and function inlining.
  3639. function isUndef (v) {
  3640. return v === undefined || v === null
  3641. }
  3642. function isDef (v) {
  3643. return v !== undefined && v !== null
  3644. }
  3645. function isTrue (v) {
  3646. return v === true
  3647. }
  3648. function isFalse (v) {
  3649. return v === false
  3650. }
  3651. /**
  3652. * Check if value is primitive.
  3653. */
  3654. function isPrimitive (value) {
  3655. return (
  3656. typeof value === 'string' ||
  3657. typeof value === 'number' ||
  3658. // $flow-disable-line
  3659. typeof value === 'symbol' ||
  3660. typeof value === 'boolean'
  3661. )
  3662. }
  3663. /**
  3664. * Quick object check - this is primarily used to tell
  3665. * Objects from primitive values when we know the value
  3666. * is a JSON-compliant type.
  3667. */
  3668. function isObject (obj) {
  3669. return obj !== null && typeof obj === 'object'
  3670. }
  3671. /**
  3672. * Get the raw type string of a value, e.g., [object Object].
  3673. */
  3674. var _toString = Object.prototype.toString;
  3675. function toRawType (value) {
  3676. return _toString.call(value).slice(8, -1)
  3677. }
  3678. /**
  3679. * Strict object type check. Only returns true
  3680. * for plain JavaScript objects.
  3681. */
  3682. function isPlainObject (obj) {
  3683. return _toString.call(obj) === '[object Object]'
  3684. }
  3685. function isRegExp (v) {
  3686. return _toString.call(v) === '[object RegExp]'
  3687. }
  3688. /**
  3689. * Check if val is a valid array index.
  3690. */
  3691. function isValidArrayIndex (val) {
  3692. var n = parseFloat(String(val));
  3693. return n >= 0 && Math.floor(n) === n && isFinite(val)
  3694. }
  3695. function isPromise (val) {
  3696. return (
  3697. isDef(val) &&
  3698. typeof val.then === 'function' &&
  3699. typeof val.catch === 'function'
  3700. )
  3701. }
  3702. /**
  3703. * Convert a value to a string that is actually rendered.
  3704. */
  3705. function toString (val) {
  3706. return val == null
  3707. ? ''
  3708. : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
  3709. ? JSON.stringify(val, null, 2)
  3710. : String(val)
  3711. }
  3712. /**
  3713. * Convert an input value to a number for persistence.
  3714. * If the conversion fails, return original string.
  3715. */
  3716. function toNumber (val) {
  3717. var n = parseFloat(val);
  3718. return isNaN(n) ? val : n
  3719. }
  3720. /**
  3721. * Make a map and return a function for checking if a key
  3722. * is in that map.
  3723. */
  3724. function makeMap (
  3725. str,
  3726. expectsLowerCase
  3727. ) {
  3728. var map = Object.create(null);
  3729. var list = str.split(',');
  3730. for (var i = 0; i < list.length; i++) {
  3731. map[list[i]] = true;
  3732. }
  3733. return expectsLowerCase
  3734. ? function (val) { return map[val.toLowerCase()]; }
  3735. : function (val) { return map[val]; }
  3736. }
  3737. /**
  3738. * Check if a tag is a built-in tag.
  3739. */
  3740. var isBuiltInTag = makeMap('slot,component', true);
  3741. /**
  3742. * Check if an attribute is a reserved attribute.
  3743. */
  3744. var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  3745. /**
  3746. * Remove an item from an array.
  3747. */
  3748. function remove (arr, item) {
  3749. if (arr.length) {
  3750. var index = arr.indexOf(item);
  3751. if (index > -1) {
  3752. return arr.splice(index, 1)
  3753. }
  3754. }
  3755. }
  3756. /**
  3757. * Check whether an object has the property.
  3758. */
  3759. var hasOwnProperty = Object.prototype.hasOwnProperty;
  3760. function hasOwn (obj, key) {
  3761. return hasOwnProperty.call(obj, key)
  3762. }
  3763. /**
  3764. * Create a cached version of a pure function.
  3765. */
  3766. function cached (fn) {
  3767. var cache = Object.create(null);
  3768. return (function cachedFn (str) {
  3769. var hit = cache[str];
  3770. return hit || (cache[str] = fn(str))
  3771. })
  3772. }
  3773. /**
  3774. * Camelize a hyphen-delimited string.
  3775. */
  3776. var camelizeRE = /-(\w)/g;
  3777. var camelize = cached(function (str) {
  3778. return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  3779. });
  3780. /**
  3781. * Capitalize a string.
  3782. */
  3783. var capitalize = cached(function (str) {
  3784. return str.charAt(0).toUpperCase() + str.slice(1)
  3785. });
  3786. /**
  3787. * Hyphenate a camelCase string.
  3788. */
  3789. var hyphenateRE = /\B([A-Z])/g;
  3790. var hyphenate = cached(function (str) {
  3791. return str.replace(hyphenateRE, '-$1').toLowerCase()
  3792. });
  3793. /**
  3794. * Simple bind polyfill for environments that do not support it,
  3795. * e.g., PhantomJS 1.x. Technically, we don't need this anymore
  3796. * since native bind is now performant enough in most browsers.
  3797. * But removing it would mean breaking code that was able to run in
  3798. * PhantomJS 1.x, so this must be kept for backward compatibility.
  3799. */
  3800. /* istanbul ignore next */
  3801. function polyfillBind (fn, ctx) {
  3802. function boundFn (a) {
  3803. var l = arguments.length;
  3804. return l
  3805. ? l > 1
  3806. ? fn.apply(ctx, arguments)
  3807. : fn.call(ctx, a)
  3808. : fn.call(ctx)
  3809. }
  3810. boundFn._length = fn.length;
  3811. return boundFn
  3812. }
  3813. function nativeBind (fn, ctx) {
  3814. return fn.bind(ctx)
  3815. }
  3816. var bind = Function.prototype.bind
  3817. ? nativeBind
  3818. : polyfillBind;
  3819. /**
  3820. * Convert an Array-like object to a real Array.
  3821. */
  3822. function toArray (list, start) {
  3823. start = start || 0;
  3824. var i = list.length - start;
  3825. var ret = new Array(i);
  3826. while (i--) {
  3827. ret[i] = list[i + start];
  3828. }
  3829. return ret
  3830. }
  3831. /**
  3832. * Mix properties into target object.
  3833. */
  3834. function extend (to, _from) {
  3835. for (var key in _from) {
  3836. to[key] = _from[key];
  3837. }
  3838. return to
  3839. }
  3840. /**
  3841. * Merge an Array of Objects into a single Object.
  3842. */
  3843. function toObject (arr) {
  3844. var res = {};
  3845. for (var i = 0; i < arr.length; i++) {
  3846. if (arr[i]) {
  3847. extend(res, arr[i]);
  3848. }
  3849. }
  3850. return res
  3851. }
  3852. /* eslint-disable no-unused-vars */
  3853. /**
  3854. * Perform no operation.
  3855. * Stubbing args to make Flow happy without leaving useless transpiled code
  3856. * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
  3857. */
  3858. function noop (a, b, c) {}
  3859. /**
  3860. * Always return false.
  3861. */
  3862. var no = function (a, b, c) { return false; };
  3863. /* eslint-enable no-unused-vars */
  3864. /**
  3865. * Return the same value.
  3866. */
  3867. var identity = function (_) { return _; };
  3868. /**
  3869. * Check if two values are loosely equal - that is,
  3870. * if they are plain objects, do they have the same shape?
  3871. */
  3872. function looseEqual (a, b) {
  3873. if (a === b) { return true }
  3874. var isObjectA = isObject(a);
  3875. var isObjectB = isObject(b);
  3876. if (isObjectA && isObjectB) {
  3877. try {
  3878. var isArrayA = Array.isArray(a);
  3879. var isArrayB = Array.isArray(b);
  3880. if (isArrayA && isArrayB) {
  3881. return a.length === b.length && a.every(function (e, i) {
  3882. return looseEqual(e, b[i])
  3883. })
  3884. } else if (a instanceof Date && b instanceof Date) {
  3885. return a.getTime() === b.getTime()
  3886. } else if (!isArrayA && !isArrayB) {
  3887. var keysA = Object.keys(a);
  3888. var keysB = Object.keys(b);
  3889. return keysA.length === keysB.length && keysA.every(function (key) {
  3890. return looseEqual(a[key], b[key])
  3891. })
  3892. } else {
  3893. /* istanbul ignore next */
  3894. return false
  3895. }
  3896. } catch (e) {
  3897. /* istanbul ignore next */
  3898. return false
  3899. }
  3900. } else if (!isObjectA && !isObjectB) {
  3901. return String(a) === String(b)
  3902. } else {
  3903. return false
  3904. }
  3905. }
  3906. /**
  3907. * Return the first index at which a loosely equal value can be
  3908. * found in the array (if value is a plain object, the array must
  3909. * contain an object of the same shape), or -1 if it is not present.
  3910. */
  3911. function looseIndexOf (arr, val) {
  3912. for (var i = 0; i < arr.length; i++) {
  3913. if (looseEqual(arr[i], val)) { return i }
  3914. }
  3915. return -1
  3916. }
  3917. /**
  3918. * Ensure a function is called only once.
  3919. */
  3920. function once (fn) {
  3921. var called = false;
  3922. return function () {
  3923. if (!called) {
  3924. called = true;
  3925. fn.apply(this, arguments);
  3926. }
  3927. }
  3928. }
  3929. var ASSET_TYPES = [
  3930. 'component',
  3931. 'directive',
  3932. 'filter'
  3933. ];
  3934. var LIFECYCLE_HOOKS = [
  3935. 'beforeCreate',
  3936. 'created',
  3937. 'beforeMount',
  3938. 'mounted',
  3939. 'beforeUpdate',
  3940. 'updated',
  3941. 'beforeDestroy',
  3942. 'destroyed',
  3943. 'activated',
  3944. 'deactivated',
  3945. 'errorCaptured',
  3946. 'serverPrefetch'
  3947. ];
  3948. /* */
  3949. var config = ({
  3950. /**
  3951. * Option merge strategies (used in core/util/options)
  3952. */
  3953. // $flow-disable-line
  3954. optionMergeStrategies: Object.create(null),
  3955. /**
  3956. * Whether to suppress warnings.
  3957. */
  3958. silent: false,
  3959. /**
  3960. * Show production mode tip message on boot?
  3961. */
  3962. productionTip: "development" !== 'production',
  3963. /**
  3964. * Whether to enable devtools
  3965. */
  3966. devtools: "development" !== 'production',
  3967. /**
  3968. * Whether to record perf
  3969. */
  3970. performance: false,
  3971. /**
  3972. * Error handler for watcher errors
  3973. */
  3974. errorHandler: null,
  3975. /**
  3976. * Warn handler for watcher warns
  3977. */
  3978. warnHandler: null,
  3979. /**
  3980. * Ignore certain custom elements
  3981. */
  3982. ignoredElements: [],
  3983. /**
  3984. * Custom user key aliases for v-on
  3985. */
  3986. // $flow-disable-line
  3987. keyCodes: Object.create(null),
  3988. /**
  3989. * Check if a tag is reserved so that it cannot be registered as a
  3990. * component. This is platform-dependent and may be overwritten.
  3991. */
  3992. isReservedTag: no,
  3993. /**
  3994. * Check if an attribute is reserved so that it cannot be used as a component
  3995. * prop. This is platform-dependent and may be overwritten.
  3996. */
  3997. isReservedAttr: no,
  3998. /**
  3999. * Check if a tag is an unknown element.
  4000. * Platform-dependent.
  4001. */
  4002. isUnknownElement: no,
  4003. /**
  4004. * Get the namespace of an element
  4005. */
  4006. getTagNamespace: noop,
  4007. /**
  4008. * Parse the real tag name for the specific platform.
  4009. */
  4010. parsePlatformTagName: identity,
  4011. /**
  4012. * Check if an attribute must be bound using property, e.g. value
  4013. * Platform-dependent.
  4014. */
  4015. mustUseProp: no,
  4016. /**
  4017. * Perform updates asynchronously. Intended to be used by Vue Test Utils
  4018. * This will significantly reduce performance if set to false.
  4019. */
  4020. async: true,
  4021. /**
  4022. * Exposed for legacy reasons
  4023. */
  4024. _lifecycleHooks: LIFECYCLE_HOOKS
  4025. });
  4026. /* */
  4027. /**
  4028. * unicode letters used for parsing html tags, component names and property paths.
  4029. * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
  4030. * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
  4031. */
  4032. 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/;
  4033. /**
  4034. * Check if a string starts with $ or _
  4035. */
  4036. function isReserved (str) {
  4037. var c = (str + '').charCodeAt(0);
  4038. return c === 0x24 || c === 0x5F
  4039. }
  4040. /**
  4041. * Define a property.
  4042. */
  4043. function def (obj, key, val, enumerable) {
  4044. Object.defineProperty(obj, key, {
  4045. value: val,
  4046. enumerable: !!enumerable,
  4047. writable: true,
  4048. configurable: true
  4049. });
  4050. }
  4051. /**
  4052. * Parse simple path.
  4053. */
  4054. var bailRE = new RegExp(("[^" + (unicodeRegExp.source) + ".$_\\d]"));
  4055. function parsePath (path) {
  4056. if (bailRE.test(path)) {
  4057. return
  4058. }
  4059. var segments = path.split('.');
  4060. return function (obj) {
  4061. for (var i = 0; i < segments.length; i++) {
  4062. if (!obj) { return }
  4063. obj = obj[segments[i]];
  4064. }
  4065. return obj
  4066. }
  4067. }
  4068. /* */
  4069. // can we use __proto__?
  4070. var hasProto = '__proto__' in {};
  4071. // Browser environment sniffing
  4072. var inBrowser = typeof window !== 'undefined';
  4073. var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  4074. var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  4075. var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  4076. var isIE = UA && /msie|trident/.test(UA);
  4077. var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  4078. var isEdge = UA && UA.indexOf('edge/') > 0;
  4079. var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  4080. var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  4081. var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  4082. var isPhantomJS = UA && /phantomjs/.test(UA);
  4083. var isFF = UA && UA.match(/firefox\/(\d+)/);
  4084. // Firefox has a "watch" function on Object.prototype...
  4085. var nativeWatch = ({}).watch;
  4086. if (inBrowser) {
  4087. try {
  4088. var opts = {};
  4089. Object.defineProperty(opts, 'passive', ({
  4090. get: function get () {
  4091. }
  4092. })); // https://github.com/facebook/flow/issues/285
  4093. window.addEventListener('test-passive', null, opts);
  4094. } catch (e) {}
  4095. }
  4096. // this needs to be lazy-evaled because vue may be required before
  4097. // vue-server-renderer can set VUE_ENV
  4098. var _isServer;
  4099. var isServerRendering = function () {
  4100. if (_isServer === undefined) {
  4101. /* istanbul ignore if */
  4102. if (!inBrowser && !inWeex && typeof global !== 'undefined') {
  4103. // detect presence of vue-server-renderer and avoid
  4104. // Webpack shimming the process
  4105. _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
  4106. } else {
  4107. _isServer = false;
  4108. }
  4109. }
  4110. return _isServer
  4111. };
  4112. // detect devtools
  4113. var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  4114. /* istanbul ignore next */
  4115. function isNative (Ctor) {
  4116. return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  4117. }
  4118. var hasSymbol =
  4119. typeof Symbol !== 'undefined' && isNative(Symbol) &&
  4120. typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  4121. var _Set;
  4122. /* istanbul ignore if */ // $flow-disable-line
  4123. if (typeof Set !== 'undefined' && isNative(Set)) {
  4124. // use native Set when available.
  4125. _Set = Set;
  4126. } else {
  4127. // a non-standard Set polyfill that only works with primitive keys.
  4128. _Set = /*@__PURE__*/(function () {
  4129. function Set () {
  4130. this.set = Object.create(null);
  4131. }
  4132. Set.prototype.has = function has (key) {
  4133. return this.set[key] === true
  4134. };
  4135. Set.prototype.add = function add (key) {
  4136. this.set[key] = true;
  4137. };
  4138. Set.prototype.clear = function clear () {
  4139. this.set = Object.create(null);
  4140. };
  4141. return Set;
  4142. }());
  4143. }
  4144. /* */
  4145. var warn = noop;
  4146. var tip = noop;
  4147. var generateComponentTrace = (noop); // work around flow check
  4148. var formatComponentName = (noop);
  4149. if (true) {
  4150. var hasConsole = typeof console !== 'undefined';
  4151. var classifyRE = /(?:^|[-_])(\w)/g;
  4152. var classify = function (str) { return str
  4153. .replace(classifyRE, function (c) { return c.toUpperCase(); })
  4154. .replace(/[-_]/g, ''); };
  4155. warn = function (msg, vm) {
  4156. var trace = vm ? generateComponentTrace(vm) : '';
  4157. if (config.warnHandler) {
  4158. config.warnHandler.call(null, msg, vm, trace);
  4159. } else if (hasConsole && (!config.silent)) {
  4160. console.error(("[Vue warn]: " + msg + trace));
  4161. }
  4162. };
  4163. tip = function (msg, vm) {
  4164. if (hasConsole && (!config.silent)) {
  4165. console.warn("[Vue tip]: " + msg + (
  4166. vm ? generateComponentTrace(vm) : ''
  4167. ));
  4168. }
  4169. };
  4170. formatComponentName = function (vm, includeFile) {
  4171. if (vm.$root === vm) {
  4172. if (vm.$options && vm.$options.__file) { // fixed by xxxxxx
  4173. return ('') + vm.$options.__file
  4174. }
  4175. return '<Root>'
  4176. }
  4177. var options = typeof vm === 'function' && vm.cid != null
  4178. ? vm.options
  4179. : vm._isVue
  4180. ? vm.$options || vm.constructor.options
  4181. : vm;
  4182. var name = options.name || options._componentTag;
  4183. var file = options.__file;
  4184. if (!name && file) {
  4185. var match = file.match(/([^/\\]+)\.vue$/);
  4186. name = match && match[1];
  4187. }
  4188. return (
  4189. (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
  4190. (file && includeFile !== false ? (" at " + file) : '')
  4191. )
  4192. };
  4193. var repeat = function (str, n) {
  4194. var res = '';
  4195. while (n) {
  4196. if (n % 2 === 1) { res += str; }
  4197. if (n > 1) { str += str; }
  4198. n >>= 1;
  4199. }
  4200. return res
  4201. };
  4202. generateComponentTrace = function (vm) {
  4203. if (vm._isVue && vm.$parent) {
  4204. var tree = [];
  4205. var currentRecursiveSequence = 0;
  4206. while (vm && vm.$options.name !== 'PageBody') {
  4207. if (tree.length > 0) {
  4208. var last = tree[tree.length - 1];
  4209. if (last.constructor === vm.constructor) {
  4210. currentRecursiveSequence++;
  4211. vm = vm.$parent;
  4212. continue
  4213. } else if (currentRecursiveSequence > 0) {
  4214. tree[tree.length - 1] = [last, currentRecursiveSequence];
  4215. currentRecursiveSequence = 0;
  4216. }
  4217. }
  4218. !vm.$options.isReserved && tree.push(vm);
  4219. vm = vm.$parent;
  4220. }
  4221. return '\n\nfound in\n\n' + tree
  4222. .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
  4223. ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
  4224. : formatComponentName(vm))); })
  4225. .join('\n')
  4226. } else {
  4227. return ("\n\n(found in " + (formatComponentName(vm)) + ")")
  4228. }
  4229. };
  4230. }
  4231. /* */
  4232. var uid = 0;
  4233. /**
  4234. * A dep is an observable that can have multiple
  4235. * directives subscribing to it.
  4236. */
  4237. var Dep = function Dep () {
  4238. this.id = uid++;
  4239. this.subs = [];
  4240. };
  4241. Dep.prototype.addSub = function addSub (sub) {
  4242. this.subs.push(sub);
  4243. };
  4244. Dep.prototype.removeSub = function removeSub (sub) {
  4245. remove(this.subs, sub);
  4246. };
  4247. Dep.prototype.depend = function depend () {
  4248. if (Dep.SharedObject.target) {
  4249. Dep.SharedObject.target.addDep(this);
  4250. }
  4251. };
  4252. Dep.prototype.notify = function notify () {
  4253. // stabilize the subscriber list first
  4254. var subs = this.subs.slice();
  4255. if ( true && !config.async) {
  4256. // subs aren't sorted in scheduler if not running async
  4257. // we need to sort them now to make sure they fire in correct
  4258. // order
  4259. subs.sort(function (a, b) { return a.id - b.id; });
  4260. }
  4261. for (var i = 0, l = subs.length; i < l; i++) {
  4262. subs[i].update();
  4263. }
  4264. };
  4265. // The current target watcher being evaluated.
  4266. // This is globally unique because only one watcher
  4267. // can be evaluated at a time.
  4268. // fixed by xxxxxx (nvue shared vuex)
  4269. /* eslint-disable no-undef */
  4270. Dep.SharedObject = {};
  4271. Dep.SharedObject.target = null;
  4272. Dep.SharedObject.targetStack = [];
  4273. function pushTarget (target) {
  4274. Dep.SharedObject.targetStack.push(target);
  4275. Dep.SharedObject.target = target;
  4276. Dep.target = target;
  4277. }
  4278. function popTarget () {
  4279. Dep.SharedObject.targetStack.pop();
  4280. Dep.SharedObject.target = Dep.SharedObject.targetStack[Dep.SharedObject.targetStack.length - 1];
  4281. Dep.target = Dep.SharedObject.target;
  4282. }
  4283. /* */
  4284. var VNode = function VNode (
  4285. tag,
  4286. data,
  4287. children,
  4288. text,
  4289. elm,
  4290. context,
  4291. componentOptions,
  4292. asyncFactory
  4293. ) {
  4294. this.tag = tag;
  4295. this.data = data;
  4296. this.children = children;
  4297. this.text = text;
  4298. this.elm = elm;
  4299. this.ns = undefined;
  4300. this.context = context;
  4301. this.fnContext = undefined;
  4302. this.fnOptions = undefined;
  4303. this.fnScopeId = undefined;
  4304. this.key = data && data.key;
  4305. this.componentOptions = componentOptions;
  4306. this.componentInstance = undefined;
  4307. this.parent = undefined;
  4308. this.raw = false;
  4309. this.isStatic = false;
  4310. this.isRootInsert = true;
  4311. this.isComment = false;
  4312. this.isCloned = false;
  4313. this.isOnce = false;
  4314. this.asyncFactory = asyncFactory;
  4315. this.asyncMeta = undefined;
  4316. this.isAsyncPlaceholder = false;
  4317. };
  4318. var prototypeAccessors = { child: { configurable: true } };
  4319. // DEPRECATED: alias for componentInstance for backwards compat.
  4320. /* istanbul ignore next */
  4321. prototypeAccessors.child.get = function () {
  4322. return this.componentInstance
  4323. };
  4324. Object.defineProperties( VNode.prototype, prototypeAccessors );
  4325. var createEmptyVNode = function (text) {
  4326. if ( text === void 0 ) text = '';
  4327. var node = new VNode();
  4328. node.text = text;
  4329. node.isComment = true;
  4330. return node
  4331. };
  4332. function createTextVNode (val) {
  4333. return new VNode(undefined, undefined, undefined, String(val))
  4334. }
  4335. // optimized shallow clone
  4336. // used for static nodes and slot nodes because they may be reused across
  4337. // multiple renders, cloning them avoids errors when DOM manipulations rely
  4338. // on their elm reference.
  4339. function cloneVNode (vnode) {
  4340. var cloned = new VNode(
  4341. vnode.tag,
  4342. vnode.data,
  4343. // #7975
  4344. // clone children array to avoid mutating original in case of cloning
  4345. // a child.
  4346. vnode.children && vnode.children.slice(),
  4347. vnode.text,
  4348. vnode.elm,
  4349. vnode.context,
  4350. vnode.componentOptions,
  4351. vnode.asyncFactory
  4352. );
  4353. cloned.ns = vnode.ns;
  4354. cloned.isStatic = vnode.isStatic;
  4355. cloned.key = vnode.key;
  4356. cloned.isComment = vnode.isComment;
  4357. cloned.fnContext = vnode.fnContext;
  4358. cloned.fnOptions = vnode.fnOptions;
  4359. cloned.fnScopeId = vnode.fnScopeId;
  4360. cloned.asyncMeta = vnode.asyncMeta;
  4361. cloned.isCloned = true;
  4362. return cloned
  4363. }
  4364. /*
  4365. * not type checking this file because flow doesn't play well with
  4366. * dynamically accessing methods on Array prototype
  4367. */
  4368. var arrayProto = Array.prototype;
  4369. var arrayMethods = Object.create(arrayProto);
  4370. var methodsToPatch = [
  4371. 'push',
  4372. 'pop',
  4373. 'shift',
  4374. 'unshift',
  4375. 'splice',
  4376. 'sort',
  4377. 'reverse'
  4378. ];
  4379. /**
  4380. * Intercept mutating methods and emit events
  4381. */
  4382. methodsToPatch.forEach(function (method) {
  4383. // cache original method
  4384. var original = arrayProto[method];
  4385. def(arrayMethods, method, function mutator () {
  4386. var args = [], len = arguments.length;
  4387. while ( len-- ) args[ len ] = arguments[ len ];
  4388. var result = original.apply(this, args);
  4389. var ob = this.__ob__;
  4390. var inserted;
  4391. switch (method) {
  4392. case 'push':
  4393. case 'unshift':
  4394. inserted = args;
  4395. break
  4396. case 'splice':
  4397. inserted = args.slice(2);
  4398. break
  4399. }
  4400. if (inserted) { ob.observeArray(inserted); }
  4401. // notify change
  4402. ob.dep.notify();
  4403. return result
  4404. });
  4405. });
  4406. /* */
  4407. var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  4408. /**
  4409. * In some cases we may want to disable observation inside a component's
  4410. * update computation.
  4411. */
  4412. var shouldObserve = true;
  4413. function toggleObserving (value) {
  4414. shouldObserve = value;
  4415. }
  4416. /**
  4417. * Observer class that is attached to each observed
  4418. * object. Once attached, the observer converts the target
  4419. * object's property keys into getter/setters that
  4420. * collect dependencies and dispatch updates.
  4421. */
  4422. var Observer = function Observer (value) {
  4423. this.value = value;
  4424. this.dep = new Dep();
  4425. this.vmCount = 0;
  4426. def(value, '__ob__', this);
  4427. if (Array.isArray(value)) {
  4428. if (hasProto) {
  4429. {// fixed by xxxxxx 微信小程序使用 plugins 之后,数组方法被直接挂载到了数组对象上,需要执行 copyAugment 逻辑
  4430. if(value.push !== value.__proto__.push){
  4431. copyAugment(value, arrayMethods, arrayKeys);
  4432. } else {
  4433. protoAugment(value, arrayMethods);
  4434. }
  4435. }
  4436. } else {
  4437. copyAugment(value, arrayMethods, arrayKeys);
  4438. }
  4439. this.observeArray(value);
  4440. } else {
  4441. this.walk(value);
  4442. }
  4443. };
  4444. /**
  4445. * Walk through all properties and convert them into
  4446. * getter/setters. This method should only be called when
  4447. * value type is Object.
  4448. */
  4449. Observer.prototype.walk = function walk (obj) {
  4450. var keys = Object.keys(obj);
  4451. for (var i = 0; i < keys.length; i++) {
  4452. defineReactive$$1(obj, keys[i]);
  4453. }
  4454. };
  4455. /**
  4456. * Observe a list of Array items.
  4457. */
  4458. Observer.prototype.observeArray = function observeArray (items) {
  4459. for (var i = 0, l = items.length; i < l; i++) {
  4460. observe(items[i]);
  4461. }
  4462. };
  4463. // helpers
  4464. /**
  4465. * Augment a target Object or Array by intercepting
  4466. * the prototype chain using __proto__
  4467. */
  4468. function protoAugment (target, src) {
  4469. /* eslint-disable no-proto */
  4470. target.__proto__ = src;
  4471. /* eslint-enable no-proto */
  4472. }
  4473. /**
  4474. * Augment a target Object or Array by defining
  4475. * hidden properties.
  4476. */
  4477. /* istanbul ignore next */
  4478. function copyAugment (target, src, keys) {
  4479. for (var i = 0, l = keys.length; i < l; i++) {
  4480. var key = keys[i];
  4481. def(target, key, src[key]);
  4482. }
  4483. }
  4484. /**
  4485. * Attempt to create an observer instance for a value,
  4486. * returns the new observer if successfully observed,
  4487. * or the existing observer if the value already has one.
  4488. */
  4489. function observe (value, asRootData) {
  4490. if (!isObject(value) || value instanceof VNode) {
  4491. return
  4492. }
  4493. var ob;
  4494. if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
  4495. ob = value.__ob__;
  4496. } else if (
  4497. shouldObserve &&
  4498. !isServerRendering() &&
  4499. (Array.isArray(value) || isPlainObject(value)) &&
  4500. Object.isExtensible(value) &&
  4501. !value._isVue &&
  4502. !value.__v_isMPComponent
  4503. ) {
  4504. ob = new Observer(value);
  4505. }
  4506. if (asRootData && ob) {
  4507. ob.vmCount++;
  4508. }
  4509. return ob
  4510. }
  4511. /**
  4512. * Define a reactive property on an Object.
  4513. */
  4514. function defineReactive$$1 (
  4515. obj,
  4516. key,
  4517. val,
  4518. customSetter,
  4519. shallow
  4520. ) {
  4521. var dep = new Dep();
  4522. var property = Object.getOwnPropertyDescriptor(obj, key);
  4523. if (property && property.configurable === false) {
  4524. return
  4525. }
  4526. // cater for pre-defined getter/setters
  4527. var getter = property && property.get;
  4528. var setter = property && property.set;
  4529. if ((!getter || setter) && arguments.length === 2) {
  4530. val = obj[key];
  4531. }
  4532. var childOb = !shallow && observe(val);
  4533. Object.defineProperty(obj, key, {
  4534. enumerable: true,
  4535. configurable: true,
  4536. get: function reactiveGetter () {
  4537. var value = getter ? getter.call(obj) : val;
  4538. if (Dep.SharedObject.target) { // fixed by xxxxxx
  4539. dep.depend();
  4540. if (childOb) {
  4541. childOb.dep.depend();
  4542. if (Array.isArray(value)) {
  4543. dependArray(value);
  4544. }
  4545. }
  4546. }
  4547. return value
  4548. },
  4549. set: function reactiveSetter (newVal) {
  4550. var value = getter ? getter.call(obj) : val;
  4551. /* eslint-disable no-self-compare */
  4552. if (newVal === value || (newVal !== newVal && value !== value)) {
  4553. return
  4554. }
  4555. /* eslint-enable no-self-compare */
  4556. if ( true && customSetter) {
  4557. customSetter();
  4558. }
  4559. // #7981: for accessor properties without setter
  4560. if (getter && !setter) { return }
  4561. if (setter) {
  4562. setter.call(obj, newVal);
  4563. } else {
  4564. val = newVal;
  4565. }
  4566. childOb = !shallow && observe(newVal);
  4567. dep.notify();
  4568. }
  4569. });
  4570. }
  4571. /**
  4572. * Set a property on an object. Adds the new property and
  4573. * triggers change notification if the property doesn't
  4574. * already exist.
  4575. */
  4576. function set (target, key, val) {
  4577. if ( true &&
  4578. (isUndef(target) || isPrimitive(target))
  4579. ) {
  4580. warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
  4581. }
  4582. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4583. target.length = Math.max(target.length, key);
  4584. target.splice(key, 1, val);
  4585. return val
  4586. }
  4587. if (key in target && !(key in Object.prototype)) {
  4588. target[key] = val;
  4589. return val
  4590. }
  4591. var ob = (target).__ob__;
  4592. if (target._isVue || (ob && ob.vmCount)) {
  4593. true && warn(
  4594. 'Avoid adding reactive properties to a Vue instance or its root $data ' +
  4595. 'at runtime - declare it upfront in the data option.'
  4596. );
  4597. return val
  4598. }
  4599. if (!ob) {
  4600. target[key] = val;
  4601. return val
  4602. }
  4603. defineReactive$$1(ob.value, key, val);
  4604. ob.dep.notify();
  4605. return val
  4606. }
  4607. /**
  4608. * Delete a property and trigger change if necessary.
  4609. */
  4610. function del (target, key) {
  4611. if ( true &&
  4612. (isUndef(target) || isPrimitive(target))
  4613. ) {
  4614. warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
  4615. }
  4616. if (Array.isArray(target) && isValidArrayIndex(key)) {
  4617. target.splice(key, 1);
  4618. return
  4619. }
  4620. var ob = (target).__ob__;
  4621. if (target._isVue || (ob && ob.vmCount)) {
  4622. true && warn(
  4623. 'Avoid deleting properties on a Vue instance or its root $data ' +
  4624. '- just set it to null.'
  4625. );
  4626. return
  4627. }
  4628. if (!hasOwn(target, key)) {
  4629. return
  4630. }
  4631. delete target[key];
  4632. if (!ob) {
  4633. return
  4634. }
  4635. ob.dep.notify();
  4636. }
  4637. /**
  4638. * Collect dependencies on array elements when the array is touched, since
  4639. * we cannot intercept array element access like property getters.
  4640. */
  4641. function dependArray (value) {
  4642. for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
  4643. e = value[i];
  4644. e && e.__ob__ && e.__ob__.dep.depend();
  4645. if (Array.isArray(e)) {
  4646. dependArray(e);
  4647. }
  4648. }
  4649. }
  4650. /* */
  4651. /**
  4652. * Option overwriting strategies are functions that handle
  4653. * how to merge a parent option value and a child option
  4654. * value into the final value.
  4655. */
  4656. var strats = config.optionMergeStrategies;
  4657. /**
  4658. * Options with restrictions
  4659. */
  4660. if (true) {
  4661. strats.el = strats.propsData = function (parent, child, vm, key) {
  4662. if (!vm) {
  4663. warn(
  4664. "option \"" + key + "\" can only be used during instance " +
  4665. 'creation with the `new` keyword.'
  4666. );
  4667. }
  4668. return defaultStrat(parent, child)
  4669. };
  4670. }
  4671. /**
  4672. * Helper that recursively merges two data objects together.
  4673. */
  4674. function mergeData (to, from) {
  4675. if (!from) { return to }
  4676. var key, toVal, fromVal;
  4677. var keys = hasSymbol
  4678. ? Reflect.ownKeys(from)
  4679. : Object.keys(from);
  4680. for (var i = 0; i < keys.length; i++) {
  4681. key = keys[i];
  4682. // in case the object is already observed...
  4683. if (key === '__ob__') { continue }
  4684. toVal = to[key];
  4685. fromVal = from[key];
  4686. if (!hasOwn(to, key)) {
  4687. set(to, key, fromVal);
  4688. } else if (
  4689. toVal !== fromVal &&
  4690. isPlainObject(toVal) &&
  4691. isPlainObject(fromVal)
  4692. ) {
  4693. mergeData(toVal, fromVal);
  4694. }
  4695. }
  4696. return to
  4697. }
  4698. /**
  4699. * Data
  4700. */
  4701. function mergeDataOrFn (
  4702. parentVal,
  4703. childVal,
  4704. vm
  4705. ) {
  4706. if (!vm) {
  4707. // in a Vue.extend merge, both should be functions
  4708. if (!childVal) {
  4709. return parentVal
  4710. }
  4711. if (!parentVal) {
  4712. return childVal
  4713. }
  4714. // when parentVal & childVal are both present,
  4715. // we need to return a function that returns the
  4716. // merged result of both functions... no need to
  4717. // check if parentVal is a function here because
  4718. // it has to be a function to pass previous merges.
  4719. return function mergedDataFn () {
  4720. return mergeData(
  4721. typeof childVal === 'function' ? childVal.call(this, this) : childVal,
  4722. typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
  4723. )
  4724. }
  4725. } else {
  4726. return function mergedInstanceDataFn () {
  4727. // instance merge
  4728. var instanceData = typeof childVal === 'function'
  4729. ? childVal.call(vm, vm)
  4730. : childVal;
  4731. var defaultData = typeof parentVal === 'function'
  4732. ? parentVal.call(vm, vm)
  4733. : parentVal;
  4734. if (instanceData) {
  4735. return mergeData(instanceData, defaultData)
  4736. } else {
  4737. return defaultData
  4738. }
  4739. }
  4740. }
  4741. }
  4742. strats.data = function (
  4743. parentVal,
  4744. childVal,
  4745. vm
  4746. ) {
  4747. if (!vm) {
  4748. if (childVal && typeof childVal !== 'function') {
  4749. true && warn(
  4750. 'The "data" option should be a function ' +
  4751. 'that returns a per-instance value in component ' +
  4752. 'definitions.',
  4753. vm
  4754. );
  4755. return parentVal
  4756. }
  4757. return mergeDataOrFn(parentVal, childVal)
  4758. }
  4759. return mergeDataOrFn(parentVal, childVal, vm)
  4760. };
  4761. /**
  4762. * Hooks and props are merged as arrays.
  4763. */
  4764. function mergeHook (
  4765. parentVal,
  4766. childVal
  4767. ) {
  4768. var res = childVal
  4769. ? parentVal
  4770. ? parentVal.concat(childVal)
  4771. : Array.isArray(childVal)
  4772. ? childVal
  4773. : [childVal]
  4774. : parentVal;
  4775. return res
  4776. ? dedupeHooks(res)
  4777. : res
  4778. }
  4779. function dedupeHooks (hooks) {
  4780. var res = [];
  4781. for (var i = 0; i < hooks.length; i++) {
  4782. if (res.indexOf(hooks[i]) === -1) {
  4783. res.push(hooks[i]);
  4784. }
  4785. }
  4786. return res
  4787. }
  4788. LIFECYCLE_HOOKS.forEach(function (hook) {
  4789. strats[hook] = mergeHook;
  4790. });
  4791. /**
  4792. * Assets
  4793. *
  4794. * When a vm is present (instance creation), we need to do
  4795. * a three-way merge between constructor options, instance
  4796. * options and parent options.
  4797. */
  4798. function mergeAssets (
  4799. parentVal,
  4800. childVal,
  4801. vm,
  4802. key
  4803. ) {
  4804. var res = Object.create(parentVal || null);
  4805. if (childVal) {
  4806. true && assertObjectType(key, childVal, vm);
  4807. return extend(res, childVal)
  4808. } else {
  4809. return res
  4810. }
  4811. }
  4812. ASSET_TYPES.forEach(function (type) {
  4813. strats[type + 's'] = mergeAssets;
  4814. });
  4815. /**
  4816. * Watchers.
  4817. *
  4818. * Watchers hashes should not overwrite one
  4819. * another, so we merge them as arrays.
  4820. */
  4821. strats.watch = function (
  4822. parentVal,
  4823. childVal,
  4824. vm,
  4825. key
  4826. ) {
  4827. // work around Firefox's Object.prototype.watch...
  4828. if (parentVal === nativeWatch) { parentVal = undefined; }
  4829. if (childVal === nativeWatch) { childVal = undefined; }
  4830. /* istanbul ignore if */
  4831. if (!childVal) { return Object.create(parentVal || null) }
  4832. if (true) {
  4833. assertObjectType(key, childVal, vm);
  4834. }
  4835. if (!parentVal) { return childVal }
  4836. var ret = {};
  4837. extend(ret, parentVal);
  4838. for (var key$1 in childVal) {
  4839. var parent = ret[key$1];
  4840. var child = childVal[key$1];
  4841. if (parent && !Array.isArray(parent)) {
  4842. parent = [parent];
  4843. }
  4844. ret[key$1] = parent
  4845. ? parent.concat(child)
  4846. : Array.isArray(child) ? child : [child];
  4847. }
  4848. return ret
  4849. };
  4850. /**
  4851. * Other object hashes.
  4852. */
  4853. strats.props =
  4854. strats.methods =
  4855. strats.inject =
  4856. strats.computed = function (
  4857. parentVal,
  4858. childVal,
  4859. vm,
  4860. key
  4861. ) {
  4862. if (childVal && "development" !== 'production') {
  4863. assertObjectType(key, childVal, vm);
  4864. }
  4865. if (!parentVal) { return childVal }
  4866. var ret = Object.create(null);
  4867. extend(ret, parentVal);
  4868. if (childVal) { extend(ret, childVal); }
  4869. return ret
  4870. };
  4871. strats.provide = mergeDataOrFn;
  4872. /**
  4873. * Default strategy.
  4874. */
  4875. var defaultStrat = function (parentVal, childVal) {
  4876. return childVal === undefined
  4877. ? parentVal
  4878. : childVal
  4879. };
  4880. /**
  4881. * Validate component names
  4882. */
  4883. function checkComponents (options) {
  4884. for (var key in options.components) {
  4885. validateComponentName(key);
  4886. }
  4887. }
  4888. function validateComponentName (name) {
  4889. if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + (unicodeRegExp.source) + "]*$")).test(name)) {
  4890. warn(
  4891. 'Invalid component name: "' + name + '". Component names ' +
  4892. 'should conform to valid custom element name in html5 specification.'
  4893. );
  4894. }
  4895. if (isBuiltInTag(name) || config.isReservedTag(name)) {
  4896. warn(
  4897. 'Do not use built-in or reserved HTML elements as component ' +
  4898. 'id: ' + name
  4899. );
  4900. }
  4901. }
  4902. /**
  4903. * Ensure all props option syntax are normalized into the
  4904. * Object-based format.
  4905. */
  4906. function normalizeProps (options, vm) {
  4907. var props = options.props;
  4908. if (!props) { return }
  4909. var res = {};
  4910. var i, val, name;
  4911. if (Array.isArray(props)) {
  4912. i = props.length;
  4913. while (i--) {
  4914. val = props[i];
  4915. if (typeof val === 'string') {
  4916. name = camelize(val);
  4917. res[name] = { type: null };
  4918. } else if (true) {
  4919. warn('props must be strings when using array syntax.');
  4920. }
  4921. }
  4922. } else if (isPlainObject(props)) {
  4923. for (var key in props) {
  4924. val = props[key];
  4925. name = camelize(key);
  4926. res[name] = isPlainObject(val)
  4927. ? val
  4928. : { type: val };
  4929. }
  4930. } else if (true) {
  4931. warn(
  4932. "Invalid value for option \"props\": expected an Array or an Object, " +
  4933. "but got " + (toRawType(props)) + ".",
  4934. vm
  4935. );
  4936. }
  4937. options.props = res;
  4938. }
  4939. /**
  4940. * Normalize all injections into Object-based format
  4941. */
  4942. function normalizeInject (options, vm) {
  4943. var inject = options.inject;
  4944. if (!inject) { return }
  4945. var normalized = options.inject = {};
  4946. if (Array.isArray(inject)) {
  4947. for (var i = 0; i < inject.length; i++) {
  4948. normalized[inject[i]] = { from: inject[i] };
  4949. }
  4950. } else if (isPlainObject(inject)) {
  4951. for (var key in inject) {
  4952. var val = inject[key];
  4953. normalized[key] = isPlainObject(val)
  4954. ? extend({ from: key }, val)
  4955. : { from: val };
  4956. }
  4957. } else if (true) {
  4958. warn(
  4959. "Invalid value for option \"inject\": expected an Array or an Object, " +
  4960. "but got " + (toRawType(inject)) + ".",
  4961. vm
  4962. );
  4963. }
  4964. }
  4965. /**
  4966. * Normalize raw function directives into object format.
  4967. */
  4968. function normalizeDirectives (options) {
  4969. var dirs = options.directives;
  4970. if (dirs) {
  4971. for (var key in dirs) {
  4972. var def$$1 = dirs[key];
  4973. if (typeof def$$1 === 'function') {
  4974. dirs[key] = { bind: def$$1, update: def$$1 };
  4975. }
  4976. }
  4977. }
  4978. }
  4979. function assertObjectType (name, value, vm) {
  4980. if (!isPlainObject(value)) {
  4981. warn(
  4982. "Invalid value for option \"" + name + "\": expected an Object, " +
  4983. "but got " + (toRawType(value)) + ".",
  4984. vm
  4985. );
  4986. }
  4987. }
  4988. /**
  4989. * Merge two option objects into a new one.
  4990. * Core utility used in both instantiation and inheritance.
  4991. */
  4992. function mergeOptions (
  4993. parent,
  4994. child,
  4995. vm
  4996. ) {
  4997. if (true) {
  4998. checkComponents(child);
  4999. }
  5000. if (typeof child === 'function') {
  5001. child = child.options;
  5002. }
  5003. normalizeProps(child, vm);
  5004. normalizeInject(child, vm);
  5005. normalizeDirectives(child);
  5006. // Apply extends and mixins on the child options,
  5007. // but only if it is a raw options object that isn't
  5008. // the result of another mergeOptions call.
  5009. // Only merged options has the _base property.
  5010. if (!child._base) {
  5011. if (child.extends) {
  5012. parent = mergeOptions(parent, child.extends, vm);
  5013. }
  5014. if (child.mixins) {
  5015. for (var i = 0, l = child.mixins.length; i < l; i++) {
  5016. parent = mergeOptions(parent, child.mixins[i], vm);
  5017. }
  5018. }
  5019. }
  5020. var options = {};
  5021. var key;
  5022. for (key in parent) {
  5023. mergeField(key);
  5024. }
  5025. for (key in child) {
  5026. if (!hasOwn(parent, key)) {
  5027. mergeField(key);
  5028. }
  5029. }
  5030. function mergeField (key) {
  5031. var strat = strats[key] || defaultStrat;
  5032. options[key] = strat(parent[key], child[key], vm, key);
  5033. }
  5034. return options
  5035. }
  5036. /**
  5037. * Resolve an asset.
  5038. * This function is used because child instances need access
  5039. * to assets defined in its ancestor chain.
  5040. */
  5041. function resolveAsset (
  5042. options,
  5043. type,
  5044. id,
  5045. warnMissing
  5046. ) {
  5047. /* istanbul ignore if */
  5048. if (typeof id !== 'string') {
  5049. return
  5050. }
  5051. var assets = options[type];
  5052. // check local registration variations first
  5053. if (hasOwn(assets, id)) { return assets[id] }
  5054. var camelizedId = camelize(id);
  5055. if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
  5056. var PascalCaseId = capitalize(camelizedId);
  5057. if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
  5058. // fallback to prototype chain
  5059. var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
  5060. if ( true && warnMissing && !res) {
  5061. warn(
  5062. 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
  5063. options
  5064. );
  5065. }
  5066. return res
  5067. }
  5068. /* */
  5069. function validateProp (
  5070. key,
  5071. propOptions,
  5072. propsData,
  5073. vm
  5074. ) {
  5075. var prop = propOptions[key];
  5076. var absent = !hasOwn(propsData, key);
  5077. var value = propsData[key];
  5078. // boolean casting
  5079. var booleanIndex = getTypeIndex(Boolean, prop.type);
  5080. if (booleanIndex > -1) {
  5081. if (absent && !hasOwn(prop, 'default')) {
  5082. value = false;
  5083. } else if (value === '' || value === hyphenate(key)) {
  5084. // only cast empty string / same name to boolean if
  5085. // boolean has higher priority
  5086. var stringIndex = getTypeIndex(String, prop.type);
  5087. if (stringIndex < 0 || booleanIndex < stringIndex) {
  5088. value = true;
  5089. }
  5090. }
  5091. }
  5092. // check default value
  5093. if (value === undefined) {
  5094. value = getPropDefaultValue(vm, prop, key);
  5095. // since the default value is a fresh copy,
  5096. // make sure to observe it.
  5097. var prevShouldObserve = shouldObserve;
  5098. toggleObserving(true);
  5099. observe(value);
  5100. toggleObserving(prevShouldObserve);
  5101. }
  5102. if (
  5103. true
  5104. ) {
  5105. assertProp(prop, key, value, vm, absent);
  5106. }
  5107. return value
  5108. }
  5109. /**
  5110. * Get the default value of a prop.
  5111. */
  5112. function getPropDefaultValue (vm, prop, key) {
  5113. // no default, return undefined
  5114. if (!hasOwn(prop, 'default')) {
  5115. return undefined
  5116. }
  5117. var def = prop.default;
  5118. // warn against non-factory defaults for Object & Array
  5119. if ( true && isObject(def)) {
  5120. warn(
  5121. 'Invalid default value for prop "' + key + '": ' +
  5122. 'Props with type Object/Array must use a factory function ' +
  5123. 'to return the default value.',
  5124. vm
  5125. );
  5126. }
  5127. // the raw prop value was also undefined from previous render,
  5128. // return previous default value to avoid unnecessary watcher trigger
  5129. if (vm && vm.$options.propsData &&
  5130. vm.$options.propsData[key] === undefined &&
  5131. vm._props[key] !== undefined
  5132. ) {
  5133. return vm._props[key]
  5134. }
  5135. // call factory function for non-Function types
  5136. // a value is Function if its prototype is function even across different execution context
  5137. return typeof def === 'function' && getType(prop.type) !== 'Function'
  5138. ? def.call(vm)
  5139. : def
  5140. }
  5141. /**
  5142. * Assert whether a prop is valid.
  5143. */
  5144. function assertProp (
  5145. prop,
  5146. name,
  5147. value,
  5148. vm,
  5149. absent
  5150. ) {
  5151. if (prop.required && absent) {
  5152. warn(
  5153. 'Missing required prop: "' + name + '"',
  5154. vm
  5155. );
  5156. return
  5157. }
  5158. if (value == null && !prop.required) {
  5159. return
  5160. }
  5161. var type = prop.type;
  5162. var valid = !type || type === true;
  5163. var expectedTypes = [];
  5164. if (type) {
  5165. if (!Array.isArray(type)) {
  5166. type = [type];
  5167. }
  5168. for (var i = 0; i < type.length && !valid; i++) {
  5169. var assertedType = assertType(value, type[i]);
  5170. expectedTypes.push(assertedType.expectedType || '');
  5171. valid = assertedType.valid;
  5172. }
  5173. }
  5174. if (!valid) {
  5175. warn(
  5176. getInvalidTypeMessage(name, value, expectedTypes),
  5177. vm
  5178. );
  5179. return
  5180. }
  5181. var validator = prop.validator;
  5182. if (validator) {
  5183. if (!validator(value)) {
  5184. warn(
  5185. 'Invalid prop: custom validator check failed for prop "' + name + '".',
  5186. vm
  5187. );
  5188. }
  5189. }
  5190. }
  5191. var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  5192. function assertType (value, type) {
  5193. var valid;
  5194. var expectedType = getType(type);
  5195. if (simpleCheckRE.test(expectedType)) {
  5196. var t = typeof value;
  5197. valid = t === expectedType.toLowerCase();
  5198. // for primitive wrapper objects
  5199. if (!valid && t === 'object') {
  5200. valid = value instanceof type;
  5201. }
  5202. } else if (expectedType === 'Object') {
  5203. valid = isPlainObject(value);
  5204. } else if (expectedType === 'Array') {
  5205. valid = Array.isArray(value);
  5206. } else {
  5207. valid = value instanceof type;
  5208. }
  5209. return {
  5210. valid: valid,
  5211. expectedType: expectedType
  5212. }
  5213. }
  5214. /**
  5215. * Use function string name to check built-in types,
  5216. * because a simple equality check will fail when running
  5217. * across different vms / iframes.
  5218. */
  5219. function getType (fn) {
  5220. var match = fn && fn.toString().match(/^\s*function (\w+)/);
  5221. return match ? match[1] : ''
  5222. }
  5223. function isSameType (a, b) {
  5224. return getType(a) === getType(b)
  5225. }
  5226. function getTypeIndex (type, expectedTypes) {
  5227. if (!Array.isArray(expectedTypes)) {
  5228. return isSameType(expectedTypes, type) ? 0 : -1
  5229. }
  5230. for (var i = 0, len = expectedTypes.length; i < len; i++) {
  5231. if (isSameType(expectedTypes[i], type)) {
  5232. return i
  5233. }
  5234. }
  5235. return -1
  5236. }
  5237. function getInvalidTypeMessage (name, value, expectedTypes) {
  5238. var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
  5239. " Expected " + (expectedTypes.map(capitalize).join(', '));
  5240. var expectedType = expectedTypes[0];
  5241. var receivedType = toRawType(value);
  5242. var expectedValue = styleValue(value, expectedType);
  5243. var receivedValue = styleValue(value, receivedType);
  5244. // check if we need to specify expected value
  5245. if (expectedTypes.length === 1 &&
  5246. isExplicable(expectedType) &&
  5247. !isBoolean(expectedType, receivedType)) {
  5248. message += " with value " + expectedValue;
  5249. }
  5250. message += ", got " + receivedType + " ";
  5251. // check if we need to specify received value
  5252. if (isExplicable(receivedType)) {
  5253. message += "with value " + receivedValue + ".";
  5254. }
  5255. return message
  5256. }
  5257. function styleValue (value, type) {
  5258. if (type === 'String') {
  5259. return ("\"" + value + "\"")
  5260. } else if (type === 'Number') {
  5261. return ("" + (Number(value)))
  5262. } else {
  5263. return ("" + value)
  5264. }
  5265. }
  5266. function isExplicable (value) {
  5267. var explicitTypes = ['string', 'number', 'boolean'];
  5268. return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
  5269. }
  5270. function isBoolean () {
  5271. var args = [], len = arguments.length;
  5272. while ( len-- ) args[ len ] = arguments[ len ];
  5273. return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
  5274. }
  5275. /* */
  5276. function handleError (err, vm, info) {
  5277. // Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
  5278. // See: https://github.com/vuejs/vuex/issues/1505
  5279. pushTarget();
  5280. try {
  5281. if (vm) {
  5282. var cur = vm;
  5283. while ((cur = cur.$parent)) {
  5284. var hooks = cur.$options.errorCaptured;
  5285. if (hooks) {
  5286. for (var i = 0; i < hooks.length; i++) {
  5287. try {
  5288. var capture = hooks[i].call(cur, err, vm, info) === false;
  5289. if (capture) { return }
  5290. } catch (e) {
  5291. globalHandleError(e, cur, 'errorCaptured hook');
  5292. }
  5293. }
  5294. }
  5295. }
  5296. }
  5297. globalHandleError(err, vm, info);
  5298. } finally {
  5299. popTarget();
  5300. }
  5301. }
  5302. function invokeWithErrorHandling (
  5303. handler,
  5304. context,
  5305. args,
  5306. vm,
  5307. info
  5308. ) {
  5309. var res;
  5310. try {
  5311. res = args ? handler.apply(context, args) : handler.call(context);
  5312. if (res && !res._isVue && isPromise(res) && !res._handled) {
  5313. res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
  5314. // issue #9511
  5315. // avoid catch triggering multiple times when nested calls
  5316. res._handled = true;
  5317. }
  5318. } catch (e) {
  5319. handleError(e, vm, info);
  5320. }
  5321. return res
  5322. }
  5323. function globalHandleError (err, vm, info) {
  5324. if (config.errorHandler) {
  5325. try {
  5326. return config.errorHandler.call(null, err, vm, info)
  5327. } catch (e) {
  5328. // if the user intentionally throws the original error in the handler,
  5329. // do not log it twice
  5330. if (e !== err) {
  5331. logError(e, null, 'config.errorHandler');
  5332. }
  5333. }
  5334. }
  5335. logError(err, vm, info);
  5336. }
  5337. function logError (err, vm, info) {
  5338. if (true) {
  5339. warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  5340. }
  5341. /* istanbul ignore else */
  5342. if ((inBrowser || inWeex) && typeof console !== 'undefined') {
  5343. console.error(err);
  5344. } else {
  5345. throw err
  5346. }
  5347. }
  5348. /* */
  5349. var callbacks = [];
  5350. var pending = false;
  5351. function flushCallbacks () {
  5352. pending = false;
  5353. var copies = callbacks.slice(0);
  5354. callbacks.length = 0;
  5355. for (var i = 0; i < copies.length; i++) {
  5356. copies[i]();
  5357. }
  5358. }
  5359. // Here we have async deferring wrappers using microtasks.
  5360. // In 2.5 we used (macro) tasks (in combination with microtasks).
  5361. // However, it has subtle problems when state is changed right before repaint
  5362. // (e.g. #6813, out-in transitions).
  5363. // Also, using (macro) tasks in event handler would cause some weird behaviors
  5364. // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
  5365. // So we now use microtasks everywhere, again.
  5366. // A major drawback of this tradeoff is that there are some scenarios
  5367. // where microtasks have too high a priority and fire in between supposedly
  5368. // sequential events (e.g. #4521, #6690, which have workarounds)
  5369. // or even between bubbling of the same event (#6566).
  5370. var timerFunc;
  5371. // The nextTick behavior leverages the microtask queue, which can be accessed
  5372. // via either native Promise.then or MutationObserver.
  5373. // MutationObserver has wider support, however it is seriously bugged in
  5374. // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
  5375. // completely stops working after triggering a few times... so, if native
  5376. // Promise is available, we will use it:
  5377. /* istanbul ignore next, $flow-disable-line */
  5378. if (typeof Promise !== 'undefined' && isNative(Promise)) {
  5379. var p = Promise.resolve();
  5380. timerFunc = function () {
  5381. p.then(flushCallbacks);
  5382. // In problematic UIWebViews, Promise.then doesn't completely break, but
  5383. // it can get stuck in a weird state where callbacks are pushed into the
  5384. // microtask queue but the queue isn't being flushed, until the browser
  5385. // needs to do some other work, e.g. handle a timer. Therefore we can
  5386. // "force" the microtask queue to be flushed by adding an empty timer.
  5387. if (isIOS) { setTimeout(noop); }
  5388. };
  5389. } else if (!isIE && typeof MutationObserver !== 'undefined' && (
  5390. isNative(MutationObserver) ||
  5391. // PhantomJS and iOS 7.x
  5392. MutationObserver.toString() === '[object MutationObserverConstructor]'
  5393. )) {
  5394. // Use MutationObserver where native Promise is not available,
  5395. // e.g. PhantomJS, iOS7, Android 4.4
  5396. // (#6466 MutationObserver is unreliable in IE11)
  5397. var counter = 1;
  5398. var observer = new MutationObserver(flushCallbacks);
  5399. var textNode = document.createTextNode(String(counter));
  5400. observer.observe(textNode, {
  5401. characterData: true
  5402. });
  5403. timerFunc = function () {
  5404. counter = (counter + 1) % 2;
  5405. textNode.data = String(counter);
  5406. };
  5407. } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
  5408. // Fallback to setImmediate.
  5409. // Technically it leverages the (macro) task queue,
  5410. // but it is still a better choice than setTimeout.
  5411. timerFunc = function () {
  5412. setImmediate(flushCallbacks);
  5413. };
  5414. } else {
  5415. // Fallback to setTimeout.
  5416. timerFunc = function () {
  5417. setTimeout(flushCallbacks, 0);
  5418. };
  5419. }
  5420. function nextTick (cb, ctx) {
  5421. var _resolve;
  5422. callbacks.push(function () {
  5423. if (cb) {
  5424. try {
  5425. cb.call(ctx);
  5426. } catch (e) {
  5427. handleError(e, ctx, 'nextTick');
  5428. }
  5429. } else if (_resolve) {
  5430. _resolve(ctx);
  5431. }
  5432. });
  5433. if (!pending) {
  5434. pending = true;
  5435. timerFunc();
  5436. }
  5437. // $flow-disable-line
  5438. if (!cb && typeof Promise !== 'undefined') {
  5439. return new Promise(function (resolve) {
  5440. _resolve = resolve;
  5441. })
  5442. }
  5443. }
  5444. /* */
  5445. /* not type checking this file because flow doesn't play well with Proxy */
  5446. var initProxy;
  5447. if (true) {
  5448. var allowedGlobals = makeMap(
  5449. 'Infinity,undefined,NaN,isFinite,isNaN,' +
  5450. 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
  5451. 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
  5452. 'require' // for Webpack/Browserify
  5453. );
  5454. var warnNonPresent = function (target, key) {
  5455. warn(
  5456. "Property or method \"" + key + "\" is not defined on the instance but " +
  5457. 'referenced during render. Make sure that this property is reactive, ' +
  5458. 'either in the data option, or for class-based components, by ' +
  5459. 'initializing the property. ' +
  5460. 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
  5461. target
  5462. );
  5463. };
  5464. var warnReservedPrefix = function (target, key) {
  5465. warn(
  5466. "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
  5467. 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
  5468. 'prevent conflicts with Vue internals. ' +
  5469. 'See: https://vuejs.org/v2/api/#data',
  5470. target
  5471. );
  5472. };
  5473. var hasProxy =
  5474. typeof Proxy !== 'undefined' && isNative(Proxy);
  5475. if (hasProxy) {
  5476. var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
  5477. config.keyCodes = new Proxy(config.keyCodes, {
  5478. set: function set (target, key, value) {
  5479. if (isBuiltInModifier(key)) {
  5480. warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
  5481. return false
  5482. } else {
  5483. target[key] = value;
  5484. return true
  5485. }
  5486. }
  5487. });
  5488. }
  5489. var hasHandler = {
  5490. has: function has (target, key) {
  5491. var has = key in target;
  5492. var isAllowed = allowedGlobals(key) ||
  5493. (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
  5494. if (!has && !isAllowed) {
  5495. if (key in target.$data) { warnReservedPrefix(target, key); }
  5496. else { warnNonPresent(target, key); }
  5497. }
  5498. return has || !isAllowed
  5499. }
  5500. };
  5501. var getHandler = {
  5502. get: function get (target, key) {
  5503. if (typeof key === 'string' && !(key in target)) {
  5504. if (key in target.$data) { warnReservedPrefix(target, key); }
  5505. else { warnNonPresent(target, key); }
  5506. }
  5507. return target[key]
  5508. }
  5509. };
  5510. initProxy = function initProxy (vm) {
  5511. if (hasProxy) {
  5512. // determine which proxy handler to use
  5513. var options = vm.$options;
  5514. var handlers = options.render && options.render._withStripped
  5515. ? getHandler
  5516. : hasHandler;
  5517. vm._renderProxy = new Proxy(vm, handlers);
  5518. } else {
  5519. vm._renderProxy = vm;
  5520. }
  5521. };
  5522. }
  5523. /* */
  5524. var seenObjects = new _Set();
  5525. /**
  5526. * Recursively traverse an object to evoke all converted
  5527. * getters, so that every nested property inside the object
  5528. * is collected as a "deep" dependency.
  5529. */
  5530. function traverse (val) {
  5531. _traverse(val, seenObjects);
  5532. seenObjects.clear();
  5533. }
  5534. function _traverse (val, seen) {
  5535. var i, keys;
  5536. var isA = Array.isArray(val);
  5537. if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
  5538. return
  5539. }
  5540. if (val.__ob__) {
  5541. var depId = val.__ob__.dep.id;
  5542. if (seen.has(depId)) {
  5543. return
  5544. }
  5545. seen.add(depId);
  5546. }
  5547. if (isA) {
  5548. i = val.length;
  5549. while (i--) { _traverse(val[i], seen); }
  5550. } else {
  5551. keys = Object.keys(val);
  5552. i = keys.length;
  5553. while (i--) { _traverse(val[keys[i]], seen); }
  5554. }
  5555. }
  5556. var mark;
  5557. var measure;
  5558. if (true) {
  5559. var perf = inBrowser && window.performance;
  5560. /* istanbul ignore if */
  5561. if (
  5562. perf &&
  5563. perf.mark &&
  5564. perf.measure &&
  5565. perf.clearMarks &&
  5566. perf.clearMeasures
  5567. ) {
  5568. mark = function (tag) { return perf.mark(tag); };
  5569. measure = function (name, startTag, endTag) {
  5570. perf.measure(name, startTag, endTag);
  5571. perf.clearMarks(startTag);
  5572. perf.clearMarks(endTag);
  5573. // perf.clearMeasures(name)
  5574. };
  5575. }
  5576. }
  5577. /* */
  5578. var normalizeEvent = cached(function (name) {
  5579. var passive = name.charAt(0) === '&';
  5580. name = passive ? name.slice(1) : name;
  5581. var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
  5582. name = once$$1 ? name.slice(1) : name;
  5583. var capture = name.charAt(0) === '!';
  5584. name = capture ? name.slice(1) : name;
  5585. return {
  5586. name: name,
  5587. once: once$$1,
  5588. capture: capture,
  5589. passive: passive
  5590. }
  5591. });
  5592. function createFnInvoker (fns, vm) {
  5593. function invoker () {
  5594. var arguments$1 = arguments;
  5595. var fns = invoker.fns;
  5596. if (Array.isArray(fns)) {
  5597. var cloned = fns.slice();
  5598. for (var i = 0; i < cloned.length; i++) {
  5599. invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
  5600. }
  5601. } else {
  5602. // return handler return value for single handlers
  5603. return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
  5604. }
  5605. }
  5606. invoker.fns = fns;
  5607. return invoker
  5608. }
  5609. function updateListeners (
  5610. on,
  5611. oldOn,
  5612. add,
  5613. remove$$1,
  5614. createOnceHandler,
  5615. vm
  5616. ) {
  5617. var name, def$$1, cur, old, event;
  5618. for (name in on) {
  5619. def$$1 = cur = on[name];
  5620. old = oldOn[name];
  5621. event = normalizeEvent(name);
  5622. if (isUndef(cur)) {
  5623. true && warn(
  5624. "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
  5625. vm
  5626. );
  5627. } else if (isUndef(old)) {
  5628. if (isUndef(cur.fns)) {
  5629. cur = on[name] = createFnInvoker(cur, vm);
  5630. }
  5631. if (isTrue(event.once)) {
  5632. cur = on[name] = createOnceHandler(event.name, cur, event.capture);
  5633. }
  5634. add(event.name, cur, event.capture, event.passive, event.params);
  5635. } else if (cur !== old) {
  5636. old.fns = cur;
  5637. on[name] = old;
  5638. }
  5639. }
  5640. for (name in oldOn) {
  5641. if (isUndef(on[name])) {
  5642. event = normalizeEvent(name);
  5643. remove$$1(event.name, oldOn[name], event.capture);
  5644. }
  5645. }
  5646. }
  5647. /* */
  5648. /* */
  5649. // fixed by xxxxxx (mp properties)
  5650. function extractPropertiesFromVNodeData(data, Ctor, res, context) {
  5651. var propOptions = Ctor.options.mpOptions && Ctor.options.mpOptions.properties;
  5652. if (isUndef(propOptions)) {
  5653. return res
  5654. }
  5655. var externalClasses = Ctor.options.mpOptions.externalClasses || [];
  5656. var attrs = data.attrs;
  5657. var props = data.props;
  5658. if (isDef(attrs) || isDef(props)) {
  5659. for (var key in propOptions) {
  5660. var altKey = hyphenate(key);
  5661. var result = checkProp(res, props, key, altKey, true) ||
  5662. checkProp(res, attrs, key, altKey, false);
  5663. // externalClass
  5664. if (
  5665. result &&
  5666. res[key] &&
  5667. externalClasses.indexOf(altKey) !== -1 &&
  5668. context[camelize(res[key])]
  5669. ) {
  5670. // 赋值 externalClass 真正的值(模板里 externalClass 的值可能是字符串)
  5671. res[key] = context[camelize(res[key])];
  5672. }
  5673. }
  5674. }
  5675. return res
  5676. }
  5677. function extractPropsFromVNodeData (
  5678. data,
  5679. Ctor,
  5680. tag,
  5681. context// fixed by xxxxxx
  5682. ) {
  5683. // we are only extracting raw values here.
  5684. // validation and default values are handled in the child
  5685. // component itself.
  5686. var propOptions = Ctor.options.props;
  5687. if (isUndef(propOptions)) {
  5688. // fixed by xxxxxx
  5689. return extractPropertiesFromVNodeData(data, Ctor, {}, context)
  5690. }
  5691. var res = {};
  5692. var attrs = data.attrs;
  5693. var props = data.props;
  5694. if (isDef(attrs) || isDef(props)) {
  5695. for (var key in propOptions) {
  5696. var altKey = hyphenate(key);
  5697. if (true) {
  5698. var keyInLowerCase = key.toLowerCase();
  5699. if (
  5700. key !== keyInLowerCase &&
  5701. attrs && hasOwn(attrs, keyInLowerCase)
  5702. ) {
  5703. tip(
  5704. "Prop \"" + keyInLowerCase + "\" is passed to component " +
  5705. (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
  5706. " \"" + key + "\". " +
  5707. "Note that HTML attributes are case-insensitive and camelCased " +
  5708. "props need to use their kebab-case equivalents when using in-DOM " +
  5709. "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
  5710. );
  5711. }
  5712. }
  5713. checkProp(res, props, key, altKey, true) ||
  5714. checkProp(res, attrs, key, altKey, false);
  5715. }
  5716. }
  5717. // fixed by xxxxxx
  5718. return extractPropertiesFromVNodeData(data, Ctor, res, context)
  5719. }
  5720. function checkProp (
  5721. res,
  5722. hash,
  5723. key,
  5724. altKey,
  5725. preserve
  5726. ) {
  5727. if (isDef(hash)) {
  5728. if (hasOwn(hash, key)) {
  5729. res[key] = hash[key];
  5730. if (!preserve) {
  5731. delete hash[key];
  5732. }
  5733. return true
  5734. } else if (hasOwn(hash, altKey)) {
  5735. res[key] = hash[altKey];
  5736. if (!preserve) {
  5737. delete hash[altKey];
  5738. }
  5739. return true
  5740. }
  5741. }
  5742. return false
  5743. }
  5744. /* */
  5745. // The template compiler attempts to minimize the need for normalization by
  5746. // statically analyzing the template at compile time.
  5747. //
  5748. // For plain HTML markup, normalization can be completely skipped because the
  5749. // generated render function is guaranteed to return Array<VNode>. There are
  5750. // two cases where extra normalization is needed:
  5751. // 1. When the children contains components - because a functional component
  5752. // may return an Array instead of a single root. In this case, just a simple
  5753. // normalization is needed - if any child is an Array, we flatten the whole
  5754. // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  5755. // because functional components already normalize their own children.
  5756. function simpleNormalizeChildren (children) {
  5757. for (var i = 0; i < children.length; i++) {
  5758. if (Array.isArray(children[i])) {
  5759. return Array.prototype.concat.apply([], children)
  5760. }
  5761. }
  5762. return children
  5763. }
  5764. // 2. When the children contains constructs that always generated nested Arrays,
  5765. // e.g. <template>, <slot>, v-for, or when the children is provided by user
  5766. // with hand-written render functions / JSX. In such cases a full normalization
  5767. // is needed to cater to all possible types of children values.
  5768. function normalizeChildren (children) {
  5769. return isPrimitive(children)
  5770. ? [createTextVNode(children)]
  5771. : Array.isArray(children)
  5772. ? normalizeArrayChildren(children)
  5773. : undefined
  5774. }
  5775. function isTextNode (node) {
  5776. return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  5777. }
  5778. function normalizeArrayChildren (children, nestedIndex) {
  5779. var res = [];
  5780. var i, c, lastIndex, last;
  5781. for (i = 0; i < children.length; i++) {
  5782. c = children[i];
  5783. if (isUndef(c) || typeof c === 'boolean') { continue }
  5784. lastIndex = res.length - 1;
  5785. last = res[lastIndex];
  5786. // nested
  5787. if (Array.isArray(c)) {
  5788. if (c.length > 0) {
  5789. c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
  5790. // merge adjacent text nodes
  5791. if (isTextNode(c[0]) && isTextNode(last)) {
  5792. res[lastIndex] = createTextVNode(last.text + (c[0]).text);
  5793. c.shift();
  5794. }
  5795. res.push.apply(res, c);
  5796. }
  5797. } else if (isPrimitive(c)) {
  5798. if (isTextNode(last)) {
  5799. // merge adjacent text nodes
  5800. // this is necessary for SSR hydration because text nodes are
  5801. // essentially merged when rendered to HTML strings
  5802. res[lastIndex] = createTextVNode(last.text + c);
  5803. } else if (c !== '') {
  5804. // convert primitive to vnode
  5805. res.push(createTextVNode(c));
  5806. }
  5807. } else {
  5808. if (isTextNode(c) && isTextNode(last)) {
  5809. // merge adjacent text nodes
  5810. res[lastIndex] = createTextVNode(last.text + c.text);
  5811. } else {
  5812. // default key for nested array children (likely generated by v-for)
  5813. if (isTrue(children._isVList) &&
  5814. isDef(c.tag) &&
  5815. isUndef(c.key) &&
  5816. isDef(nestedIndex)) {
  5817. c.key = "__vlist" + nestedIndex + "_" + i + "__";
  5818. }
  5819. res.push(c);
  5820. }
  5821. }
  5822. }
  5823. return res
  5824. }
  5825. /* */
  5826. function initProvide (vm) {
  5827. var provide = vm.$options.provide;
  5828. if (provide) {
  5829. vm._provided = typeof provide === 'function'
  5830. ? provide.call(vm)
  5831. : provide;
  5832. }
  5833. }
  5834. function initInjections (vm) {
  5835. var result = resolveInject(vm.$options.inject, vm);
  5836. if (result) {
  5837. toggleObserving(false);
  5838. Object.keys(result).forEach(function (key) {
  5839. /* istanbul ignore else */
  5840. if (true) {
  5841. defineReactive$$1(vm, key, result[key], function () {
  5842. warn(
  5843. "Avoid mutating an injected value directly since the changes will be " +
  5844. "overwritten whenever the provided component re-renders. " +
  5845. "injection being mutated: \"" + key + "\"",
  5846. vm
  5847. );
  5848. });
  5849. } else {}
  5850. });
  5851. toggleObserving(true);
  5852. }
  5853. }
  5854. function resolveInject (inject, vm) {
  5855. if (inject) {
  5856. // inject is :any because flow is not smart enough to figure out cached
  5857. var result = Object.create(null);
  5858. var keys = hasSymbol
  5859. ? Reflect.ownKeys(inject)
  5860. : Object.keys(inject);
  5861. for (var i = 0; i < keys.length; i++) {
  5862. var key = keys[i];
  5863. // #6574 in case the inject object is observed...
  5864. if (key === '__ob__') { continue }
  5865. var provideKey = inject[key].from;
  5866. var source = vm;
  5867. while (source) {
  5868. if (source._provided && hasOwn(source._provided, provideKey)) {
  5869. result[key] = source._provided[provideKey];
  5870. break
  5871. }
  5872. source = source.$parent;
  5873. }
  5874. if (!source) {
  5875. if ('default' in inject[key]) {
  5876. var provideDefault = inject[key].default;
  5877. result[key] = typeof provideDefault === 'function'
  5878. ? provideDefault.call(vm)
  5879. : provideDefault;
  5880. } else if (true) {
  5881. warn(("Injection \"" + key + "\" not found"), vm);
  5882. }
  5883. }
  5884. }
  5885. return result
  5886. }
  5887. }
  5888. /* */
  5889. /**
  5890. * Runtime helper for resolving raw children VNodes into a slot object.
  5891. */
  5892. function resolveSlots (
  5893. children,
  5894. context
  5895. ) {
  5896. if (!children || !children.length) {
  5897. return {}
  5898. }
  5899. var slots = {};
  5900. for (var i = 0, l = children.length; i < l; i++) {
  5901. var child = children[i];
  5902. var data = child.data;
  5903. // remove slot attribute if the node is resolved as a Vue slot node
  5904. if (data && data.attrs && data.attrs.slot) {
  5905. delete data.attrs.slot;
  5906. }
  5907. // named slots should only be respected if the vnode was rendered in the
  5908. // same context.
  5909. if ((child.context === context || child.fnContext === context) &&
  5910. data && data.slot != null
  5911. ) {
  5912. var name = data.slot;
  5913. var slot = (slots[name] || (slots[name] = []));
  5914. if (child.tag === 'template') {
  5915. slot.push.apply(slot, child.children || []);
  5916. } else {
  5917. slot.push(child);
  5918. }
  5919. } else {
  5920. // fixed by xxxxxx 临时 hack 掉 uni-app 中的异步 name slot page
  5921. if(child.asyncMeta && child.asyncMeta.data && child.asyncMeta.data.slot === 'page'){
  5922. (slots['page'] || (slots['page'] = [])).push(child);
  5923. }else{
  5924. (slots.default || (slots.default = [])).push(child);
  5925. }
  5926. }
  5927. }
  5928. // ignore slots that contains only whitespace
  5929. for (var name$1 in slots) {
  5930. if (slots[name$1].every(isWhitespace)) {
  5931. delete slots[name$1];
  5932. }
  5933. }
  5934. return slots
  5935. }
  5936. function isWhitespace (node) {
  5937. return (node.isComment && !node.asyncFactory) || node.text === ' '
  5938. }
  5939. /* */
  5940. function normalizeScopedSlots (
  5941. slots,
  5942. normalSlots,
  5943. prevSlots
  5944. ) {
  5945. var res;
  5946. var hasNormalSlots = Object.keys(normalSlots).length > 0;
  5947. var isStable = slots ? !!slots.$stable : !hasNormalSlots;
  5948. var key = slots && slots.$key;
  5949. if (!slots) {
  5950. res = {};
  5951. } else if (slots._normalized) {
  5952. // fast path 1: child component re-render only, parent did not change
  5953. return slots._normalized
  5954. } else if (
  5955. isStable &&
  5956. prevSlots &&
  5957. prevSlots !== emptyObject &&
  5958. key === prevSlots.$key &&
  5959. !hasNormalSlots &&
  5960. !prevSlots.$hasNormal
  5961. ) {
  5962. // fast path 2: stable scoped slots w/ no normal slots to proxy,
  5963. // only need to normalize once
  5964. return prevSlots
  5965. } else {
  5966. res = {};
  5967. for (var key$1 in slots) {
  5968. if (slots[key$1] && key$1[0] !== '$') {
  5969. res[key$1] = normalizeScopedSlot(normalSlots, key$1, slots[key$1]);
  5970. }
  5971. }
  5972. }
  5973. // expose normal slots on scopedSlots
  5974. for (var key$2 in normalSlots) {
  5975. if (!(key$2 in res)) {
  5976. res[key$2] = proxyNormalSlot(normalSlots, key$2);
  5977. }
  5978. }
  5979. // avoriaz seems to mock a non-extensible $scopedSlots object
  5980. // and when that is passed down this would cause an error
  5981. if (slots && Object.isExtensible(slots)) {
  5982. (slots)._normalized = res;
  5983. }
  5984. def(res, '$stable', isStable);
  5985. def(res, '$key', key);
  5986. def(res, '$hasNormal', hasNormalSlots);
  5987. return res
  5988. }
  5989. function normalizeScopedSlot(normalSlots, key, fn) {
  5990. var normalized = function () {
  5991. var res = arguments.length ? fn.apply(null, arguments) : fn({});
  5992. res = res && typeof res === 'object' && !Array.isArray(res)
  5993. ? [res] // single vnode
  5994. : normalizeChildren(res);
  5995. return res && (
  5996. res.length === 0 ||
  5997. (res.length === 1 && res[0].isComment) // #9658
  5998. ) ? undefined
  5999. : res
  6000. };
  6001. // this is a slot using the new v-slot syntax without scope. although it is
  6002. // compiled as a scoped slot, render fn users would expect it to be present
  6003. // on this.$slots because the usage is semantically a normal slot.
  6004. if (fn.proxy) {
  6005. Object.defineProperty(normalSlots, key, {
  6006. get: normalized,
  6007. enumerable: true,
  6008. configurable: true
  6009. });
  6010. }
  6011. return normalized
  6012. }
  6013. function proxyNormalSlot(slots, key) {
  6014. return function () { return slots[key]; }
  6015. }
  6016. /* */
  6017. /**
  6018. * Runtime helper for rendering v-for lists.
  6019. */
  6020. function renderList (
  6021. val,
  6022. render
  6023. ) {
  6024. var ret, i, l, keys, key;
  6025. if (Array.isArray(val) || typeof val === 'string') {
  6026. ret = new Array(val.length);
  6027. for (i = 0, l = val.length; i < l; i++) {
  6028. ret[i] = render(val[i], i, i, i); // fixed by xxxxxx
  6029. }
  6030. } else if (typeof val === 'number') {
  6031. ret = new Array(val);
  6032. for (i = 0; i < val; i++) {
  6033. ret[i] = render(i + 1, i, i, i); // fixed by xxxxxx
  6034. }
  6035. } else if (isObject(val)) {
  6036. if (hasSymbol && val[Symbol.iterator]) {
  6037. ret = [];
  6038. var iterator = val[Symbol.iterator]();
  6039. var result = iterator.next();
  6040. while (!result.done) {
  6041. ret.push(render(result.value, ret.length, i, i++)); // fixed by xxxxxx
  6042. result = iterator.next();
  6043. }
  6044. } else {
  6045. keys = Object.keys(val);
  6046. ret = new Array(keys.length);
  6047. for (i = 0, l = keys.length; i < l; i++) {
  6048. key = keys[i];
  6049. ret[i] = render(val[key], key, i, i); // fixed by xxxxxx
  6050. }
  6051. }
  6052. }
  6053. if (!isDef(ret)) {
  6054. ret = [];
  6055. }
  6056. (ret)._isVList = true;
  6057. return ret
  6058. }
  6059. /* */
  6060. /**
  6061. * Runtime helper for rendering <slot>
  6062. */
  6063. function renderSlot (
  6064. name,
  6065. fallback,
  6066. props,
  6067. bindObject
  6068. ) {
  6069. var scopedSlotFn = this.$scopedSlots[name];
  6070. var nodes;
  6071. if (scopedSlotFn) { // scoped slot
  6072. props = props || {};
  6073. if (bindObject) {
  6074. if ( true && !isObject(bindObject)) {
  6075. warn(
  6076. 'slot v-bind without argument expects an Object',
  6077. this
  6078. );
  6079. }
  6080. props = extend(extend({}, bindObject), props);
  6081. }
  6082. // fixed by xxxxxx app-plus scopedSlot
  6083. nodes = scopedSlotFn(props, this, props._i) || fallback;
  6084. } else {
  6085. nodes = this.$slots[name] || fallback;
  6086. }
  6087. var target = props && props.slot;
  6088. if (target) {
  6089. return this.$createElement('template', { slot: target }, nodes)
  6090. } else {
  6091. return nodes
  6092. }
  6093. }
  6094. /* */
  6095. /**
  6096. * Runtime helper for resolving filters
  6097. */
  6098. function resolveFilter (id) {
  6099. return resolveAsset(this.$options, 'filters', id, true) || identity
  6100. }
  6101. /* */
  6102. function isKeyNotMatch (expect, actual) {
  6103. if (Array.isArray(expect)) {
  6104. return expect.indexOf(actual) === -1
  6105. } else {
  6106. return expect !== actual
  6107. }
  6108. }
  6109. /**
  6110. * Runtime helper for checking keyCodes from config.
  6111. * exposed as Vue.prototype._k
  6112. * passing in eventKeyName as last argument separately for backwards compat
  6113. */
  6114. function checkKeyCodes (
  6115. eventKeyCode,
  6116. key,
  6117. builtInKeyCode,
  6118. eventKeyName,
  6119. builtInKeyName
  6120. ) {
  6121. var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
  6122. if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
  6123. return isKeyNotMatch(builtInKeyName, eventKeyName)
  6124. } else if (mappedKeyCode) {
  6125. return isKeyNotMatch(mappedKeyCode, eventKeyCode)
  6126. } else if (eventKeyName) {
  6127. return hyphenate(eventKeyName) !== key
  6128. }
  6129. }
  6130. /* */
  6131. /**
  6132. * Runtime helper for merging v-bind="object" into a VNode's data.
  6133. */
  6134. function bindObjectProps (
  6135. data,
  6136. tag,
  6137. value,
  6138. asProp,
  6139. isSync
  6140. ) {
  6141. if (value) {
  6142. if (!isObject(value)) {
  6143. true && warn(
  6144. 'v-bind without argument expects an Object or Array value',
  6145. this
  6146. );
  6147. } else {
  6148. if (Array.isArray(value)) {
  6149. value = toObject(value);
  6150. }
  6151. var hash;
  6152. var loop = function ( key ) {
  6153. if (
  6154. key === 'class' ||
  6155. key === 'style' ||
  6156. isReservedAttribute(key)
  6157. ) {
  6158. hash = data;
  6159. } else {
  6160. var type = data.attrs && data.attrs.type;
  6161. hash = asProp || config.mustUseProp(tag, type, key)
  6162. ? data.domProps || (data.domProps = {})
  6163. : data.attrs || (data.attrs = {});
  6164. }
  6165. var camelizedKey = camelize(key);
  6166. var hyphenatedKey = hyphenate(key);
  6167. if (!(camelizedKey in hash) && !(hyphenatedKey in hash)) {
  6168. hash[key] = value[key];
  6169. if (isSync) {
  6170. var on = data.on || (data.on = {});
  6171. on[("update:" + key)] = function ($event) {
  6172. value[key] = $event;
  6173. };
  6174. }
  6175. }
  6176. };
  6177. for (var key in value) loop( key );
  6178. }
  6179. }
  6180. return data
  6181. }
  6182. /* */
  6183. /**
  6184. * Runtime helper for rendering static trees.
  6185. */
  6186. function renderStatic (
  6187. index,
  6188. isInFor
  6189. ) {
  6190. var cached = this._staticTrees || (this._staticTrees = []);
  6191. var tree = cached[index];
  6192. // if has already-rendered static tree and not inside v-for,
  6193. // we can reuse the same tree.
  6194. if (tree && !isInFor) {
  6195. return tree
  6196. }
  6197. // otherwise, render a fresh tree.
  6198. tree = cached[index] = this.$options.staticRenderFns[index].call(
  6199. this._renderProxy,
  6200. null,
  6201. this // for render fns generated for functional component templates
  6202. );
  6203. markStatic(tree, ("__static__" + index), false);
  6204. return tree
  6205. }
  6206. /**
  6207. * Runtime helper for v-once.
  6208. * Effectively it means marking the node as static with a unique key.
  6209. */
  6210. function markOnce (
  6211. tree,
  6212. index,
  6213. key
  6214. ) {
  6215. markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
  6216. return tree
  6217. }
  6218. function markStatic (
  6219. tree,
  6220. key,
  6221. isOnce
  6222. ) {
  6223. if (Array.isArray(tree)) {
  6224. for (var i = 0; i < tree.length; i++) {
  6225. if (tree[i] && typeof tree[i] !== 'string') {
  6226. markStaticNode(tree[i], (key + "_" + i), isOnce);
  6227. }
  6228. }
  6229. } else {
  6230. markStaticNode(tree, key, isOnce);
  6231. }
  6232. }
  6233. function markStaticNode (node, key, isOnce) {
  6234. node.isStatic = true;
  6235. node.key = key;
  6236. node.isOnce = isOnce;
  6237. }
  6238. /* */
  6239. function bindObjectListeners (data, value) {
  6240. if (value) {
  6241. if (!isPlainObject(value)) {
  6242. true && warn(
  6243. 'v-on without argument expects an Object value',
  6244. this
  6245. );
  6246. } else {
  6247. var on = data.on = data.on ? extend({}, data.on) : {};
  6248. for (var key in value) {
  6249. var existing = on[key];
  6250. var ours = value[key];
  6251. on[key] = existing ? [].concat(existing, ours) : ours;
  6252. }
  6253. }
  6254. }
  6255. return data
  6256. }
  6257. /* */
  6258. function resolveScopedSlots (
  6259. fns, // see flow/vnode
  6260. res,
  6261. // the following are added in 2.6
  6262. hasDynamicKeys,
  6263. contentHashKey
  6264. ) {
  6265. res = res || { $stable: !hasDynamicKeys };
  6266. for (var i = 0; i < fns.length; i++) {
  6267. var slot = fns[i];
  6268. if (Array.isArray(slot)) {
  6269. resolveScopedSlots(slot, res, hasDynamicKeys);
  6270. } else if (slot) {
  6271. // marker for reverse proxying v-slot without scope on this.$slots
  6272. if (slot.proxy) {
  6273. slot.fn.proxy = true;
  6274. }
  6275. res[slot.key] = slot.fn;
  6276. }
  6277. }
  6278. if (contentHashKey) {
  6279. (res).$key = contentHashKey;
  6280. }
  6281. return res
  6282. }
  6283. /* */
  6284. function bindDynamicKeys (baseObj, values) {
  6285. for (var i = 0; i < values.length; i += 2) {
  6286. var key = values[i];
  6287. if (typeof key === 'string' && key) {
  6288. baseObj[values[i]] = values[i + 1];
  6289. } else if ( true && key !== '' && key !== null) {
  6290. // null is a special value for explicitly removing a binding
  6291. warn(
  6292. ("Invalid value for dynamic directive argument (expected string or null): " + key),
  6293. this
  6294. );
  6295. }
  6296. }
  6297. return baseObj
  6298. }
  6299. // helper to dynamically append modifier runtime markers to event names.
  6300. // ensure only append when value is already string, otherwise it will be cast
  6301. // to string and cause the type check to miss.
  6302. function prependModifier (value, symbol) {
  6303. return typeof value === 'string' ? symbol + value : value
  6304. }
  6305. /* */
  6306. function installRenderHelpers (target) {
  6307. target._o = markOnce;
  6308. target._n = toNumber;
  6309. target._s = toString;
  6310. target._l = renderList;
  6311. target._t = renderSlot;
  6312. target._q = looseEqual;
  6313. target._i = looseIndexOf;
  6314. target._m = renderStatic;
  6315. target._f = resolveFilter;
  6316. target._k = checkKeyCodes;
  6317. target._b = bindObjectProps;
  6318. target._v = createTextVNode;
  6319. target._e = createEmptyVNode;
  6320. target._u = resolveScopedSlots;
  6321. target._g = bindObjectListeners;
  6322. target._d = bindDynamicKeys;
  6323. target._p = prependModifier;
  6324. }
  6325. /* */
  6326. function FunctionalRenderContext (
  6327. data,
  6328. props,
  6329. children,
  6330. parent,
  6331. Ctor
  6332. ) {
  6333. var this$1 = this;
  6334. var options = Ctor.options;
  6335. // ensure the createElement function in functional components
  6336. // gets a unique context - this is necessary for correct named slot check
  6337. var contextVm;
  6338. if (hasOwn(parent, '_uid')) {
  6339. contextVm = Object.create(parent);
  6340. // $flow-disable-line
  6341. contextVm._original = parent;
  6342. } else {
  6343. // the context vm passed in is a functional context as well.
  6344. // in this case we want to make sure we are able to get a hold to the
  6345. // real context instance.
  6346. contextVm = parent;
  6347. // $flow-disable-line
  6348. parent = parent._original;
  6349. }
  6350. var isCompiled = isTrue(options._compiled);
  6351. var needNormalization = !isCompiled;
  6352. this.data = data;
  6353. this.props = props;
  6354. this.children = children;
  6355. this.parent = parent;
  6356. this.listeners = data.on || emptyObject;
  6357. this.injections = resolveInject(options.inject, parent);
  6358. this.slots = function () {
  6359. if (!this$1.$slots) {
  6360. normalizeScopedSlots(
  6361. data.scopedSlots,
  6362. this$1.$slots = resolveSlots(children, parent)
  6363. );
  6364. }
  6365. return this$1.$slots
  6366. };
  6367. Object.defineProperty(this, 'scopedSlots', ({
  6368. enumerable: true,
  6369. get: function get () {
  6370. return normalizeScopedSlots(data.scopedSlots, this.slots())
  6371. }
  6372. }));
  6373. // support for compiled functional template
  6374. if (isCompiled) {
  6375. // exposing $options for renderStatic()
  6376. this.$options = options;
  6377. // pre-resolve slots for renderSlot()
  6378. this.$slots = this.slots();
  6379. this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
  6380. }
  6381. if (options._scopeId) {
  6382. this._c = function (a, b, c, d) {
  6383. var vnode = createElement(contextVm, a, b, c, d, needNormalization);
  6384. if (vnode && !Array.isArray(vnode)) {
  6385. vnode.fnScopeId = options._scopeId;
  6386. vnode.fnContext = parent;
  6387. }
  6388. return vnode
  6389. };
  6390. } else {
  6391. this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
  6392. }
  6393. }
  6394. installRenderHelpers(FunctionalRenderContext.prototype);
  6395. function createFunctionalComponent (
  6396. Ctor,
  6397. propsData,
  6398. data,
  6399. contextVm,
  6400. children
  6401. ) {
  6402. var options = Ctor.options;
  6403. var props = {};
  6404. var propOptions = options.props;
  6405. if (isDef(propOptions)) {
  6406. for (var key in propOptions) {
  6407. props[key] = validateProp(key, propOptions, propsData || emptyObject);
  6408. }
  6409. } else {
  6410. if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
  6411. if (isDef(data.props)) { mergeProps(props, data.props); }
  6412. }
  6413. var renderContext = new FunctionalRenderContext(
  6414. data,
  6415. props,
  6416. children,
  6417. contextVm,
  6418. Ctor
  6419. );
  6420. var vnode = options.render.call(null, renderContext._c, renderContext);
  6421. if (vnode instanceof VNode) {
  6422. return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
  6423. } else if (Array.isArray(vnode)) {
  6424. var vnodes = normalizeChildren(vnode) || [];
  6425. var res = new Array(vnodes.length);
  6426. for (var i = 0; i < vnodes.length; i++) {
  6427. res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
  6428. }
  6429. return res
  6430. }
  6431. }
  6432. function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
  6433. // #7817 clone node before setting fnContext, otherwise if the node is reused
  6434. // (e.g. it was from a cached normal slot) the fnContext causes named slots
  6435. // that should not be matched to match.
  6436. var clone = cloneVNode(vnode);
  6437. clone.fnContext = contextVm;
  6438. clone.fnOptions = options;
  6439. if (true) {
  6440. (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
  6441. }
  6442. if (data.slot) {
  6443. (clone.data || (clone.data = {})).slot = data.slot;
  6444. }
  6445. return clone
  6446. }
  6447. function mergeProps (to, from) {
  6448. for (var key in from) {
  6449. to[camelize(key)] = from[key];
  6450. }
  6451. }
  6452. /* */
  6453. /* */
  6454. /* */
  6455. /* */
  6456. // inline hooks to be invoked on component VNodes during patch
  6457. var componentVNodeHooks = {
  6458. init: function init (vnode, hydrating) {
  6459. if (
  6460. vnode.componentInstance &&
  6461. !vnode.componentInstance._isDestroyed &&
  6462. vnode.data.keepAlive
  6463. ) {
  6464. // kept-alive components, treat as a patch
  6465. var mountedNode = vnode; // work around flow
  6466. componentVNodeHooks.prepatch(mountedNode, mountedNode);
  6467. } else {
  6468. var child = vnode.componentInstance = createComponentInstanceForVnode(
  6469. vnode,
  6470. activeInstance
  6471. );
  6472. child.$mount(hydrating ? vnode.elm : undefined, hydrating);
  6473. }
  6474. },
  6475. prepatch: function prepatch (oldVnode, vnode) {
  6476. var options = vnode.componentOptions;
  6477. var child = vnode.componentInstance = oldVnode.componentInstance;
  6478. updateChildComponent(
  6479. child,
  6480. options.propsData, // updated props
  6481. options.listeners, // updated listeners
  6482. vnode, // new parent vnode
  6483. options.children // new children
  6484. );
  6485. },
  6486. insert: function insert (vnode) {
  6487. var context = vnode.context;
  6488. var componentInstance = vnode.componentInstance;
  6489. if (!componentInstance._isMounted) {
  6490. callHook(componentInstance, 'onServiceCreated');
  6491. callHook(componentInstance, 'onServiceAttached');
  6492. componentInstance._isMounted = true;
  6493. callHook(componentInstance, 'mounted');
  6494. }
  6495. if (vnode.data.keepAlive) {
  6496. if (context._isMounted) {
  6497. // vue-router#1212
  6498. // During updates, a kept-alive component's child components may
  6499. // change, so directly walking the tree here may call activated hooks
  6500. // on incorrect children. Instead we push them into a queue which will
  6501. // be processed after the whole patch process ended.
  6502. queueActivatedComponent(componentInstance);
  6503. } else {
  6504. activateChildComponent(componentInstance, true /* direct */);
  6505. }
  6506. }
  6507. },
  6508. destroy: function destroy (vnode) {
  6509. var componentInstance = vnode.componentInstance;
  6510. if (!componentInstance._isDestroyed) {
  6511. if (!vnode.data.keepAlive) {
  6512. componentInstance.$destroy();
  6513. } else {
  6514. deactivateChildComponent(componentInstance, true /* direct */);
  6515. }
  6516. }
  6517. }
  6518. };
  6519. var hooksToMerge = Object.keys(componentVNodeHooks);
  6520. function createComponent (
  6521. Ctor,
  6522. data,
  6523. context,
  6524. children,
  6525. tag
  6526. ) {
  6527. if (isUndef(Ctor)) {
  6528. return
  6529. }
  6530. var baseCtor = context.$options._base;
  6531. // plain options object: turn it into a constructor
  6532. if (isObject(Ctor)) {
  6533. Ctor = baseCtor.extend(Ctor);
  6534. }
  6535. // if at this stage it's not a constructor or an async component factory,
  6536. // reject.
  6537. if (typeof Ctor !== 'function') {
  6538. if (true) {
  6539. warn(("Invalid Component definition: " + (String(Ctor))), context);
  6540. }
  6541. return
  6542. }
  6543. // async component
  6544. var asyncFactory;
  6545. if (isUndef(Ctor.cid)) {
  6546. asyncFactory = Ctor;
  6547. Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
  6548. if (Ctor === undefined) {
  6549. // return a placeholder node for async component, which is rendered
  6550. // as a comment node but preserves all the raw information for the node.
  6551. // the information will be used for async server-rendering and hydration.
  6552. return createAsyncPlaceholder(
  6553. asyncFactory,
  6554. data,
  6555. context,
  6556. children,
  6557. tag
  6558. )
  6559. }
  6560. }
  6561. data = data || {};
  6562. // resolve constructor options in case global mixins are applied after
  6563. // component constructor creation
  6564. resolveConstructorOptions(Ctor);
  6565. // transform component v-model data into props & events
  6566. if (isDef(data.model)) {
  6567. transformModel(Ctor.options, data);
  6568. }
  6569. // extract props
  6570. var propsData = extractPropsFromVNodeData(data, Ctor, tag, context); // fixed by xxxxxx
  6571. // functional component
  6572. if (isTrue(Ctor.options.functional)) {
  6573. return createFunctionalComponent(Ctor, propsData, data, context, children)
  6574. }
  6575. // extract listeners, since these needs to be treated as
  6576. // child component listeners instead of DOM listeners
  6577. var listeners = data.on;
  6578. // replace with listeners with .native modifier
  6579. // so it gets processed during parent component patch.
  6580. data.on = data.nativeOn;
  6581. if (isTrue(Ctor.options.abstract)) {
  6582. // abstract components do not keep anything
  6583. // other than props & listeners & slot
  6584. // work around flow
  6585. var slot = data.slot;
  6586. data = {};
  6587. if (slot) {
  6588. data.slot = slot;
  6589. }
  6590. }
  6591. // install component management hooks onto the placeholder node
  6592. installComponentHooks(data);
  6593. // return a placeholder vnode
  6594. var name = Ctor.options.name || tag;
  6595. var vnode = new VNode(
  6596. ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
  6597. data, undefined, undefined, undefined, context,
  6598. { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
  6599. asyncFactory
  6600. );
  6601. return vnode
  6602. }
  6603. function createComponentInstanceForVnode (
  6604. vnode, // we know it's MountedComponentVNode but flow doesn't
  6605. parent // activeInstance in lifecycle state
  6606. ) {
  6607. var options = {
  6608. _isComponent: true,
  6609. _parentVnode: vnode,
  6610. parent: parent
  6611. };
  6612. // check inline-template render functions
  6613. var inlineTemplate = vnode.data.inlineTemplate;
  6614. if (isDef(inlineTemplate)) {
  6615. options.render = inlineTemplate.render;
  6616. options.staticRenderFns = inlineTemplate.staticRenderFns;
  6617. }
  6618. return new vnode.componentOptions.Ctor(options)
  6619. }
  6620. function installComponentHooks (data) {
  6621. var hooks = data.hook || (data.hook = {});
  6622. for (var i = 0; i < hooksToMerge.length; i++) {
  6623. var key = hooksToMerge[i];
  6624. var existing = hooks[key];
  6625. var toMerge = componentVNodeHooks[key];
  6626. if (existing !== toMerge && !(existing && existing._merged)) {
  6627. hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
  6628. }
  6629. }
  6630. }
  6631. function mergeHook$1 (f1, f2) {
  6632. var merged = function (a, b) {
  6633. // flow complains about extra args which is why we use any
  6634. f1(a, b);
  6635. f2(a, b);
  6636. };
  6637. merged._merged = true;
  6638. return merged
  6639. }
  6640. // transform component v-model info (value and callback) into
  6641. // prop and event handler respectively.
  6642. function transformModel (options, data) {
  6643. var prop = (options.model && options.model.prop) || 'value';
  6644. var event = (options.model && options.model.event) || 'input'
  6645. ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
  6646. var on = data.on || (data.on = {});
  6647. var existing = on[event];
  6648. var callback = data.model.callback;
  6649. if (isDef(existing)) {
  6650. if (
  6651. Array.isArray(existing)
  6652. ? existing.indexOf(callback) === -1
  6653. : existing !== callback
  6654. ) {
  6655. on[event] = [callback].concat(existing);
  6656. }
  6657. } else {
  6658. on[event] = callback;
  6659. }
  6660. }
  6661. /* */
  6662. var SIMPLE_NORMALIZE = 1;
  6663. var ALWAYS_NORMALIZE = 2;
  6664. // wrapper function for providing a more flexible interface
  6665. // without getting yelled at by flow
  6666. function createElement (
  6667. context,
  6668. tag,
  6669. data,
  6670. children,
  6671. normalizationType,
  6672. alwaysNormalize
  6673. ) {
  6674. if (Array.isArray(data) || isPrimitive(data)) {
  6675. normalizationType = children;
  6676. children = data;
  6677. data = undefined;
  6678. }
  6679. if (isTrue(alwaysNormalize)) {
  6680. normalizationType = ALWAYS_NORMALIZE;
  6681. }
  6682. return _createElement(context, tag, data, children, normalizationType)
  6683. }
  6684. function _createElement (
  6685. context,
  6686. tag,
  6687. data,
  6688. children,
  6689. normalizationType
  6690. ) {
  6691. if (isDef(data) && isDef((data).__ob__)) {
  6692. true && warn(
  6693. "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
  6694. 'Always create fresh vnode data objects in each render!',
  6695. context
  6696. );
  6697. return createEmptyVNode()
  6698. }
  6699. // object syntax in v-bind
  6700. if (isDef(data) && isDef(data.is)) {
  6701. tag = data.is;
  6702. }
  6703. if (!tag) {
  6704. // in case of component :is set to falsy value
  6705. return createEmptyVNode()
  6706. }
  6707. // warn against non-primitive key
  6708. if ( true &&
  6709. isDef(data) && isDef(data.key) && !isPrimitive(data.key)
  6710. ) {
  6711. {
  6712. warn(
  6713. 'Avoid using non-primitive value as key, ' +
  6714. 'use string/number value instead.',
  6715. context
  6716. );
  6717. }
  6718. }
  6719. // support single function children as default scoped slot
  6720. if (Array.isArray(children) &&
  6721. typeof children[0] === 'function'
  6722. ) {
  6723. data = data || {};
  6724. data.scopedSlots = { default: children[0] };
  6725. children.length = 0;
  6726. }
  6727. if (normalizationType === ALWAYS_NORMALIZE) {
  6728. children = normalizeChildren(children);
  6729. } else if (normalizationType === SIMPLE_NORMALIZE) {
  6730. children = simpleNormalizeChildren(children);
  6731. }
  6732. var vnode, ns;
  6733. if (typeof tag === 'string') {
  6734. var Ctor;
  6735. ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
  6736. if (config.isReservedTag(tag)) {
  6737. // platform built-in elements
  6738. if ( true && isDef(data) && isDef(data.nativeOn)) {
  6739. warn(
  6740. ("The .native modifier for v-on is only valid on components but it was used on <" + tag + ">."),
  6741. context
  6742. );
  6743. }
  6744. vnode = new VNode(
  6745. config.parsePlatformTagName(tag), data, children,
  6746. undefined, undefined, context
  6747. );
  6748. } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
  6749. // component
  6750. vnode = createComponent(Ctor, data, context, children, tag);
  6751. } else {
  6752. // unknown or unlisted namespaced elements
  6753. // check at runtime because it may get assigned a namespace when its
  6754. // parent normalizes children
  6755. vnode = new VNode(
  6756. tag, data, children,
  6757. undefined, undefined, context
  6758. );
  6759. }
  6760. } else {
  6761. // direct component options / constructor
  6762. vnode = createComponent(tag, data, context, children);
  6763. }
  6764. if (Array.isArray(vnode)) {
  6765. return vnode
  6766. } else if (isDef(vnode)) {
  6767. if (isDef(ns)) { applyNS(vnode, ns); }
  6768. if (isDef(data)) { registerDeepBindings(data); }
  6769. return vnode
  6770. } else {
  6771. return createEmptyVNode()
  6772. }
  6773. }
  6774. function applyNS (vnode, ns, force) {
  6775. vnode.ns = ns;
  6776. if (vnode.tag === 'foreignObject') {
  6777. // use default namespace inside foreignObject
  6778. ns = undefined;
  6779. force = true;
  6780. }
  6781. if (isDef(vnode.children)) {
  6782. for (var i = 0, l = vnode.children.length; i < l; i++) {
  6783. var child = vnode.children[i];
  6784. if (isDef(child.tag) && (
  6785. isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
  6786. applyNS(child, ns, force);
  6787. }
  6788. }
  6789. }
  6790. }
  6791. // ref #5318
  6792. // necessary to ensure parent re-render when deep bindings like :style and
  6793. // :class are used on slot nodes
  6794. function registerDeepBindings (data) {
  6795. if (isObject(data.style)) {
  6796. traverse(data.style);
  6797. }
  6798. if (isObject(data.class)) {
  6799. traverse(data.class);
  6800. }
  6801. }
  6802. /* */
  6803. function initRender (vm) {
  6804. vm._vnode = null; // the root of the child tree
  6805. vm._staticTrees = null; // v-once cached trees
  6806. var options = vm.$options;
  6807. var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
  6808. var renderContext = parentVnode && parentVnode.context;
  6809. vm.$slots = resolveSlots(options._renderChildren, renderContext);
  6810. vm.$scopedSlots = emptyObject;
  6811. // bind the createElement fn to this instance
  6812. // so that we get proper render context inside it.
  6813. // args order: tag, data, children, normalizationType, alwaysNormalize
  6814. // internal version is used by render functions compiled from templates
  6815. vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
  6816. // normalization is always applied for the public version, used in
  6817. // user-written render functions.
  6818. vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  6819. // $attrs & $listeners are exposed for easier HOC creation.
  6820. // they need to be reactive so that HOCs using them are always updated
  6821. var parentData = parentVnode && parentVnode.data;
  6822. /* istanbul ignore else */
  6823. if (true) {
  6824. defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
  6825. !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
  6826. }, true);
  6827. defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
  6828. !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
  6829. }, true);
  6830. } else {}
  6831. }
  6832. var currentRenderingInstance = null;
  6833. function renderMixin (Vue) {
  6834. // install runtime convenience helpers
  6835. installRenderHelpers(Vue.prototype);
  6836. Vue.prototype.$nextTick = function (fn) {
  6837. return nextTick(fn, this)
  6838. };
  6839. Vue.prototype._render = function () {
  6840. var vm = this;
  6841. var ref = vm.$options;
  6842. var render = ref.render;
  6843. var _parentVnode = ref._parentVnode;
  6844. if (_parentVnode) {
  6845. vm.$scopedSlots = normalizeScopedSlots(
  6846. _parentVnode.data.scopedSlots,
  6847. vm.$slots,
  6848. vm.$scopedSlots
  6849. );
  6850. }
  6851. // set parent vnode. this allows render functions to have access
  6852. // to the data on the placeholder node.
  6853. vm.$vnode = _parentVnode;
  6854. // render self
  6855. var vnode;
  6856. try {
  6857. // There's no need to maintain a stack because all render fns are called
  6858. // separately from one another. Nested component's render fns are called
  6859. // when parent component is patched.
  6860. currentRenderingInstance = vm;
  6861. vnode = render.call(vm._renderProxy, vm.$createElement);
  6862. } catch (e) {
  6863. handleError(e, vm, "render");
  6864. // return error render result,
  6865. // or previous vnode to prevent render error causing blank component
  6866. /* istanbul ignore else */
  6867. if ( true && vm.$options.renderError) {
  6868. try {
  6869. vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
  6870. } catch (e) {
  6871. handleError(e, vm, "renderError");
  6872. vnode = vm._vnode;
  6873. }
  6874. } else {
  6875. vnode = vm._vnode;
  6876. }
  6877. } finally {
  6878. currentRenderingInstance = null;
  6879. }
  6880. // if the returned array contains only a single node, allow it
  6881. if (Array.isArray(vnode) && vnode.length === 1) {
  6882. vnode = vnode[0];
  6883. }
  6884. // return empty vnode in case the render function errored out
  6885. if (!(vnode instanceof VNode)) {
  6886. if ( true && Array.isArray(vnode)) {
  6887. warn(
  6888. 'Multiple root nodes returned from render function. Render function ' +
  6889. 'should return a single root node.',
  6890. vm
  6891. );
  6892. }
  6893. vnode = createEmptyVNode();
  6894. }
  6895. // set parent
  6896. vnode.parent = _parentVnode;
  6897. return vnode
  6898. };
  6899. }
  6900. /* */
  6901. function ensureCtor (comp, base) {
  6902. if (
  6903. comp.__esModule ||
  6904. (hasSymbol && comp[Symbol.toStringTag] === 'Module')
  6905. ) {
  6906. comp = comp.default;
  6907. }
  6908. return isObject(comp)
  6909. ? base.extend(comp)
  6910. : comp
  6911. }
  6912. function createAsyncPlaceholder (
  6913. factory,
  6914. data,
  6915. context,
  6916. children,
  6917. tag
  6918. ) {
  6919. var node = createEmptyVNode();
  6920. node.asyncFactory = factory;
  6921. node.asyncMeta = { data: data, context: context, children: children, tag: tag };
  6922. return node
  6923. }
  6924. function resolveAsyncComponent (
  6925. factory,
  6926. baseCtor
  6927. ) {
  6928. if (isTrue(factory.error) && isDef(factory.errorComp)) {
  6929. return factory.errorComp
  6930. }
  6931. if (isDef(factory.resolved)) {
  6932. return factory.resolved
  6933. }
  6934. var owner = currentRenderingInstance;
  6935. if (owner && isDef(factory.owners) && factory.owners.indexOf(owner) === -1) {
  6936. // already pending
  6937. factory.owners.push(owner);
  6938. }
  6939. if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
  6940. return factory.loadingComp
  6941. }
  6942. if (owner && !isDef(factory.owners)) {
  6943. var owners = factory.owners = [owner];
  6944. var sync = true;
  6945. var timerLoading = null;
  6946. var timerTimeout = null
  6947. ;(owner).$on('hook:destroyed', function () { return remove(owners, owner); });
  6948. var forceRender = function (renderCompleted) {
  6949. for (var i = 0, l = owners.length; i < l; i++) {
  6950. (owners[i]).$forceUpdate();
  6951. }
  6952. if (renderCompleted) {
  6953. owners.length = 0;
  6954. if (timerLoading !== null) {
  6955. clearTimeout(timerLoading);
  6956. timerLoading = null;
  6957. }
  6958. if (timerTimeout !== null) {
  6959. clearTimeout(timerTimeout);
  6960. timerTimeout = null;
  6961. }
  6962. }
  6963. };
  6964. var resolve = once(function (res) {
  6965. // cache resolved
  6966. factory.resolved = ensureCtor(res, baseCtor);
  6967. // invoke callbacks only if this is not a synchronous resolve
  6968. // (async resolves are shimmed as synchronous during SSR)
  6969. if (!sync) {
  6970. forceRender(true);
  6971. } else {
  6972. owners.length = 0;
  6973. }
  6974. });
  6975. var reject = once(function (reason) {
  6976. true && warn(
  6977. "Failed to resolve async component: " + (String(factory)) +
  6978. (reason ? ("\nReason: " + reason) : '')
  6979. );
  6980. if (isDef(factory.errorComp)) {
  6981. factory.error = true;
  6982. forceRender(true);
  6983. }
  6984. });
  6985. var res = factory(resolve, reject);
  6986. if (isObject(res)) {
  6987. if (isPromise(res)) {
  6988. // () => Promise
  6989. if (isUndef(factory.resolved)) {
  6990. res.then(resolve, reject);
  6991. }
  6992. } else if (isPromise(res.component)) {
  6993. res.component.then(resolve, reject);
  6994. if (isDef(res.error)) {
  6995. factory.errorComp = ensureCtor(res.error, baseCtor);
  6996. }
  6997. if (isDef(res.loading)) {
  6998. factory.loadingComp = ensureCtor(res.loading, baseCtor);
  6999. if (res.delay === 0) {
  7000. factory.loading = true;
  7001. } else {
  7002. timerLoading = setTimeout(function () {
  7003. timerLoading = null;
  7004. if (isUndef(factory.resolved) && isUndef(factory.error)) {
  7005. factory.loading = true;
  7006. forceRender(false);
  7007. }
  7008. }, res.delay || 200);
  7009. }
  7010. }
  7011. if (isDef(res.timeout)) {
  7012. timerTimeout = setTimeout(function () {
  7013. timerTimeout = null;
  7014. if (isUndef(factory.resolved)) {
  7015. reject(
  7016. true
  7017. ? ("timeout (" + (res.timeout) + "ms)")
  7018. : undefined
  7019. );
  7020. }
  7021. }, res.timeout);
  7022. }
  7023. }
  7024. }
  7025. sync = false;
  7026. // return in case resolved synchronously
  7027. return factory.loading
  7028. ? factory.loadingComp
  7029. : factory.resolved
  7030. }
  7031. }
  7032. /* */
  7033. function isAsyncPlaceholder (node) {
  7034. return node.isComment && node.asyncFactory
  7035. }
  7036. /* */
  7037. function getFirstComponentChild (children) {
  7038. if (Array.isArray(children)) {
  7039. for (var i = 0; i < children.length; i++) {
  7040. var c = children[i];
  7041. if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
  7042. return c
  7043. }
  7044. }
  7045. }
  7046. }
  7047. /* */
  7048. /* */
  7049. function initEvents (vm) {
  7050. vm._events = Object.create(null);
  7051. vm._hasHookEvent = false;
  7052. // init parent attached events
  7053. var listeners = vm.$options._parentListeners;
  7054. if (listeners) {
  7055. updateComponentListeners(vm, listeners);
  7056. }
  7057. }
  7058. var target;
  7059. function add (event, fn) {
  7060. target.$on(event, fn);
  7061. }
  7062. function remove$1 (event, fn) {
  7063. target.$off(event, fn);
  7064. }
  7065. function createOnceHandler (event, fn) {
  7066. var _target = target;
  7067. return function onceHandler () {
  7068. var res = fn.apply(null, arguments);
  7069. if (res !== null) {
  7070. _target.$off(event, onceHandler);
  7071. }
  7072. }
  7073. }
  7074. function updateComponentListeners (
  7075. vm,
  7076. listeners,
  7077. oldListeners
  7078. ) {
  7079. target = vm;
  7080. updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
  7081. target = undefined;
  7082. }
  7083. function eventsMixin (Vue) {
  7084. var hookRE = /^hook:/;
  7085. Vue.prototype.$on = function (event, fn) {
  7086. var vm = this;
  7087. if (Array.isArray(event)) {
  7088. for (var i = 0, l = event.length; i < l; i++) {
  7089. vm.$on(event[i], fn);
  7090. }
  7091. } else {
  7092. (vm._events[event] || (vm._events[event] = [])).push(fn);
  7093. // optimize hook:event cost by using a boolean flag marked at registration
  7094. // instead of a hash lookup
  7095. if (hookRE.test(event)) {
  7096. vm._hasHookEvent = true;
  7097. }
  7098. }
  7099. return vm
  7100. };
  7101. Vue.prototype.$once = function (event, fn) {
  7102. var vm = this;
  7103. function on () {
  7104. vm.$off(event, on);
  7105. fn.apply(vm, arguments);
  7106. }
  7107. on.fn = fn;
  7108. vm.$on(event, on);
  7109. return vm
  7110. };
  7111. Vue.prototype.$off = function (event, fn) {
  7112. var vm = this;
  7113. // all
  7114. if (!arguments.length) {
  7115. vm._events = Object.create(null);
  7116. return vm
  7117. }
  7118. // array of events
  7119. if (Array.isArray(event)) {
  7120. for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
  7121. vm.$off(event[i$1], fn);
  7122. }
  7123. return vm
  7124. }
  7125. // specific event
  7126. var cbs = vm._events[event];
  7127. if (!cbs) {
  7128. return vm
  7129. }
  7130. if (!fn) {
  7131. vm._events[event] = null;
  7132. return vm
  7133. }
  7134. // specific handler
  7135. var cb;
  7136. var i = cbs.length;
  7137. while (i--) {
  7138. cb = cbs[i];
  7139. if (cb === fn || cb.fn === fn) {
  7140. cbs.splice(i, 1);
  7141. break
  7142. }
  7143. }
  7144. return vm
  7145. };
  7146. Vue.prototype.$emit = function (event) {
  7147. var vm = this;
  7148. if (true) {
  7149. var lowerCaseEvent = event.toLowerCase();
  7150. if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
  7151. tip(
  7152. "Event \"" + lowerCaseEvent + "\" is emitted in component " +
  7153. (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
  7154. "Note that HTML attributes are case-insensitive and you cannot use " +
  7155. "v-on to listen to camelCase events when using in-DOM templates. " +
  7156. "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
  7157. );
  7158. }
  7159. }
  7160. var cbs = vm._events[event];
  7161. if (cbs) {
  7162. cbs = cbs.length > 1 ? toArray(cbs) : cbs;
  7163. var args = toArray(arguments, 1);
  7164. var info = "event handler for \"" + event + "\"";
  7165. for (var i = 0, l = cbs.length; i < l; i++) {
  7166. invokeWithErrorHandling(cbs[i], vm, args, vm, info);
  7167. }
  7168. }
  7169. return vm
  7170. };
  7171. }
  7172. /* */
  7173. var activeInstance = null;
  7174. var isUpdatingChildComponent = false;
  7175. function setActiveInstance(vm) {
  7176. var prevActiveInstance = activeInstance;
  7177. activeInstance = vm;
  7178. return function () {
  7179. activeInstance = prevActiveInstance;
  7180. }
  7181. }
  7182. function initLifecycle (vm) {
  7183. var options = vm.$options;
  7184. // locate first non-abstract parent
  7185. var parent = options.parent;
  7186. if (parent && !options.abstract) {
  7187. while (parent.$options.abstract && parent.$parent) {
  7188. parent = parent.$parent;
  7189. }
  7190. parent.$children.push(vm);
  7191. }
  7192. vm.$parent = parent;
  7193. vm.$root = parent ? parent.$root : vm;
  7194. vm.$children = [];
  7195. vm.$refs = {};
  7196. vm._watcher = null;
  7197. vm._inactive = null;
  7198. vm._directInactive = false;
  7199. vm._isMounted = false;
  7200. vm._isDestroyed = false;
  7201. vm._isBeingDestroyed = false;
  7202. }
  7203. function lifecycleMixin (Vue) {
  7204. Vue.prototype._update = function (vnode, hydrating) {
  7205. var vm = this;
  7206. var prevEl = vm.$el;
  7207. var prevVnode = vm._vnode;
  7208. var restoreActiveInstance = setActiveInstance(vm);
  7209. vm._vnode = vnode;
  7210. // Vue.prototype.__patch__ is injected in entry points
  7211. // based on the rendering backend used.
  7212. if (!prevVnode) {
  7213. // initial render
  7214. vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
  7215. } else {
  7216. // updates
  7217. vm.$el = vm.__patch__(prevVnode, vnode);
  7218. }
  7219. restoreActiveInstance();
  7220. // update __vue__ reference
  7221. if (prevEl) {
  7222. prevEl.__vue__ = null;
  7223. }
  7224. if (vm.$el) {
  7225. vm.$el.__vue__ = vm;
  7226. }
  7227. // if parent is an HOC, update its $el as well
  7228. if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
  7229. vm.$parent.$el = vm.$el;
  7230. }
  7231. // updated hook is called by the scheduler to ensure that children are
  7232. // updated in a parent's updated hook.
  7233. };
  7234. Vue.prototype.$forceUpdate = function () {
  7235. var vm = this;
  7236. if (vm._watcher) {
  7237. vm._watcher.update();
  7238. }
  7239. };
  7240. Vue.prototype.$destroy = function () {
  7241. var vm = this;
  7242. if (vm._isBeingDestroyed) {
  7243. return
  7244. }
  7245. callHook(vm, 'beforeDestroy');
  7246. vm._isBeingDestroyed = true;
  7247. // remove self from parent
  7248. var parent = vm.$parent;
  7249. if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
  7250. remove(parent.$children, vm);
  7251. }
  7252. // teardown watchers
  7253. if (vm._watcher) {
  7254. vm._watcher.teardown();
  7255. }
  7256. var i = vm._watchers.length;
  7257. while (i--) {
  7258. vm._watchers[i].teardown();
  7259. }
  7260. // remove reference from data ob
  7261. // frozen object may not have observer.
  7262. if (vm._data.__ob__) {
  7263. vm._data.__ob__.vmCount--;
  7264. }
  7265. // call the last hook...
  7266. vm._isDestroyed = true;
  7267. // invoke destroy hooks on current rendered tree
  7268. vm.__patch__(vm._vnode, null);
  7269. // fire destroyed hook
  7270. callHook(vm, 'destroyed');
  7271. // turn off all instance listeners.
  7272. vm.$off();
  7273. // remove __vue__ reference
  7274. if (vm.$el) {
  7275. vm.$el.__vue__ = null;
  7276. }
  7277. // release circular reference (#6759)
  7278. if (vm.$vnode) {
  7279. vm.$vnode.parent = null;
  7280. }
  7281. };
  7282. }
  7283. function updateChildComponent (
  7284. vm,
  7285. propsData,
  7286. listeners,
  7287. parentVnode,
  7288. renderChildren
  7289. ) {
  7290. if (true) {
  7291. isUpdatingChildComponent = true;
  7292. }
  7293. // determine whether component has slot children
  7294. // we need to do this before overwriting $options._renderChildren.
  7295. // check if there are dynamic scopedSlots (hand-written or compiled but with
  7296. // dynamic slot names). Static scoped slots compiled from template has the
  7297. // "$stable" marker.
  7298. var newScopedSlots = parentVnode.data.scopedSlots;
  7299. var oldScopedSlots = vm.$scopedSlots;
  7300. var hasDynamicScopedSlot = !!(
  7301. (newScopedSlots && !newScopedSlots.$stable) ||
  7302. (oldScopedSlots !== emptyObject && !oldScopedSlots.$stable) ||
  7303. (newScopedSlots && vm.$scopedSlots.$key !== newScopedSlots.$key)
  7304. );
  7305. // Any static slot children from the parent may have changed during parent's
  7306. // update. Dynamic scoped slots may also have changed. In such cases, a forced
  7307. // update is necessary to ensure correctness.
  7308. var needsForceUpdate = !!(
  7309. renderChildren || // has new static slots
  7310. vm.$options._renderChildren || // has old static slots
  7311. hasDynamicScopedSlot
  7312. );
  7313. vm.$options._parentVnode = parentVnode;
  7314. vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  7315. if (vm._vnode) { // update child tree's parent
  7316. vm._vnode.parent = parentVnode;
  7317. }
  7318. vm.$options._renderChildren = renderChildren;
  7319. // update $attrs and $listeners hash
  7320. // these are also reactive so they may trigger child update if the child
  7321. // used them during render
  7322. vm.$attrs = parentVnode.data.attrs || emptyObject;
  7323. vm.$listeners = listeners || emptyObject;
  7324. // update props
  7325. if (propsData && vm.$options.props) {
  7326. toggleObserving(false);
  7327. var props = vm._props;
  7328. var propKeys = vm.$options._propKeys || [];
  7329. for (var i = 0; i < propKeys.length; i++) {
  7330. var key = propKeys[i];
  7331. var propOptions = vm.$options.props; // wtf flow?
  7332. props[key] = validateProp(key, propOptions, propsData, vm);
  7333. }
  7334. toggleObserving(true);
  7335. // keep a copy of raw propsData
  7336. vm.$options.propsData = propsData;
  7337. }
  7338. // fixed by xxxxxx update properties(mp runtime)
  7339. vm._$updateProperties && vm._$updateProperties(vm);
  7340. // update listeners
  7341. listeners = listeners || emptyObject;
  7342. var oldListeners = vm.$options._parentListeners;
  7343. vm.$options._parentListeners = listeners;
  7344. updateComponentListeners(vm, listeners, oldListeners);
  7345. // resolve slots + force update if has children
  7346. if (needsForceUpdate) {
  7347. vm.$slots = resolveSlots(renderChildren, parentVnode.context);
  7348. vm.$forceUpdate();
  7349. }
  7350. if (true) {
  7351. isUpdatingChildComponent = false;
  7352. }
  7353. }
  7354. function isInInactiveTree (vm) {
  7355. while (vm && (vm = vm.$parent)) {
  7356. if (vm._inactive) { return true }
  7357. }
  7358. return false
  7359. }
  7360. function activateChildComponent (vm, direct) {
  7361. if (direct) {
  7362. vm._directInactive = false;
  7363. if (isInInactiveTree(vm)) {
  7364. return
  7365. }
  7366. } else if (vm._directInactive) {
  7367. return
  7368. }
  7369. if (vm._inactive || vm._inactive === null) {
  7370. vm._inactive = false;
  7371. for (var i = 0; i < vm.$children.length; i++) {
  7372. activateChildComponent(vm.$children[i]);
  7373. }
  7374. callHook(vm, 'activated');
  7375. }
  7376. }
  7377. function deactivateChildComponent (vm, direct) {
  7378. if (direct) {
  7379. vm._directInactive = true;
  7380. if (isInInactiveTree(vm)) {
  7381. return
  7382. }
  7383. }
  7384. if (!vm._inactive) {
  7385. vm._inactive = true;
  7386. for (var i = 0; i < vm.$children.length; i++) {
  7387. deactivateChildComponent(vm.$children[i]);
  7388. }
  7389. callHook(vm, 'deactivated');
  7390. }
  7391. }
  7392. function callHook (vm, hook) {
  7393. // #7573 disable dep collection when invoking lifecycle hooks
  7394. pushTarget();
  7395. var handlers = vm.$options[hook];
  7396. var info = hook + " hook";
  7397. if (handlers) {
  7398. for (var i = 0, j = handlers.length; i < j; i++) {
  7399. invokeWithErrorHandling(handlers[i], vm, null, vm, info);
  7400. }
  7401. }
  7402. if (vm._hasHookEvent) {
  7403. vm.$emit('hook:' + hook);
  7404. }
  7405. popTarget();
  7406. }
  7407. /* */
  7408. var MAX_UPDATE_COUNT = 100;
  7409. var queue = [];
  7410. var activatedChildren = [];
  7411. var has = {};
  7412. var circular = {};
  7413. var waiting = false;
  7414. var flushing = false;
  7415. var index = 0;
  7416. /**
  7417. * Reset the scheduler's state.
  7418. */
  7419. function resetSchedulerState () {
  7420. index = queue.length = activatedChildren.length = 0;
  7421. has = {};
  7422. if (true) {
  7423. circular = {};
  7424. }
  7425. waiting = flushing = false;
  7426. }
  7427. // Async edge case #6566 requires saving the timestamp when event listeners are
  7428. // attached. However, calling performance.now() has a perf overhead especially
  7429. // if the page has thousands of event listeners. Instead, we take a timestamp
  7430. // every time the scheduler flushes and use that for all event listeners
  7431. // attached during that flush.
  7432. var currentFlushTimestamp = 0;
  7433. // Async edge case fix requires storing an event listener's attach timestamp.
  7434. var getNow = Date.now;
  7435. // Determine what event timestamp the browser is using. Annoyingly, the
  7436. // timestamp can either be hi-res (relative to page load) or low-res
  7437. // (relative to UNIX epoch), so in order to compare time we have to use the
  7438. // same timestamp type when saving the flush timestamp.
  7439. // All IE versions use low-res event timestamps, and have problematic clock
  7440. // implementations (#9632)
  7441. if (inBrowser && !isIE) {
  7442. var performance = window.performance;
  7443. if (
  7444. performance &&
  7445. typeof performance.now === 'function' &&
  7446. getNow() > document.createEvent('Event').timeStamp
  7447. ) {
  7448. // if the event timestamp, although evaluated AFTER the Date.now(), is
  7449. // smaller than it, it means the event is using a hi-res timestamp,
  7450. // and we need to use the hi-res version for event listener timestamps as
  7451. // well.
  7452. getNow = function () { return performance.now(); };
  7453. }
  7454. }
  7455. /**
  7456. * Flush both queues and run the watchers.
  7457. */
  7458. function flushSchedulerQueue () {
  7459. currentFlushTimestamp = getNow();
  7460. flushing = true;
  7461. var watcher, id;
  7462. // Sort queue before flush.
  7463. // This ensures that:
  7464. // 1. Components are updated from parent to child. (because parent is always
  7465. // created before the child)
  7466. // 2. A component's user watchers are run before its render watcher (because
  7467. // user watchers are created before the render watcher)
  7468. // 3. If a component is destroyed during a parent component's watcher run,
  7469. // its watchers can be skipped.
  7470. queue.sort(function (a, b) { return a.id - b.id; });
  7471. // do not cache length because more watchers might be pushed
  7472. // as we run existing watchers
  7473. for (index = 0; index < queue.length; index++) {
  7474. watcher = queue[index];
  7475. if (watcher.before) {
  7476. watcher.before();
  7477. }
  7478. id = watcher.id;
  7479. has[id] = null;
  7480. watcher.run();
  7481. // in dev build, check and stop circular updates.
  7482. if ( true && has[id] != null) {
  7483. circular[id] = (circular[id] || 0) + 1;
  7484. if (circular[id] > MAX_UPDATE_COUNT) {
  7485. warn(
  7486. 'You may have an infinite update loop ' + (
  7487. watcher.user
  7488. ? ("in watcher with expression \"" + (watcher.expression) + "\"")
  7489. : "in a component render function."
  7490. ),
  7491. watcher.vm
  7492. );
  7493. break
  7494. }
  7495. }
  7496. }
  7497. // keep copies of post queues before resetting state
  7498. var activatedQueue = activatedChildren.slice();
  7499. var updatedQueue = queue.slice();
  7500. resetSchedulerState();
  7501. // call component updated and activated hooks
  7502. callActivatedHooks(activatedQueue);
  7503. callUpdatedHooks(updatedQueue);
  7504. // devtool hook
  7505. /* istanbul ignore if */
  7506. if (devtools && config.devtools) {
  7507. devtools.emit('flush');
  7508. }
  7509. }
  7510. function callUpdatedHooks (queue) {
  7511. var i = queue.length;
  7512. while (i--) {
  7513. var watcher = queue[i];
  7514. var vm = watcher.vm;
  7515. if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
  7516. callHook(vm, 'updated');
  7517. }
  7518. }
  7519. }
  7520. /**
  7521. * Queue a kept-alive component that was activated during patch.
  7522. * The queue will be processed after the entire tree has been patched.
  7523. */
  7524. function queueActivatedComponent (vm) {
  7525. // setting _inactive to false here so that a render function can
  7526. // rely on checking whether it's in an inactive tree (e.g. router-view)
  7527. vm._inactive = false;
  7528. activatedChildren.push(vm);
  7529. }
  7530. function callActivatedHooks (queue) {
  7531. for (var i = 0; i < queue.length; i++) {
  7532. queue[i]._inactive = true;
  7533. activateChildComponent(queue[i], true /* true */);
  7534. }
  7535. }
  7536. /**
  7537. * Push a watcher into the watcher queue.
  7538. * Jobs with duplicate IDs will be skipped unless it's
  7539. * pushed when the queue is being flushed.
  7540. */
  7541. function queueWatcher (watcher) {
  7542. var id = watcher.id;
  7543. if (has[id] == null) {
  7544. has[id] = true;
  7545. if (!flushing) {
  7546. queue.push(watcher);
  7547. } else {
  7548. // if already flushing, splice the watcher based on its id
  7549. // if already past its id, it will be run next immediately.
  7550. var i = queue.length - 1;
  7551. while (i > index && queue[i].id > watcher.id) {
  7552. i--;
  7553. }
  7554. queue.splice(i + 1, 0, watcher);
  7555. }
  7556. // queue the flush
  7557. if (!waiting) {
  7558. waiting = true;
  7559. if ( true && !config.async) {
  7560. flushSchedulerQueue();
  7561. return
  7562. }
  7563. nextTick(flushSchedulerQueue);
  7564. }
  7565. }
  7566. }
  7567. /* */
  7568. var uid$2 = 0;
  7569. /**
  7570. * A watcher parses an expression, collects dependencies,
  7571. * and fires callback when the expression value changes.
  7572. * This is used for both the $watch() api and directives.
  7573. */
  7574. var Watcher = function Watcher (
  7575. vm,
  7576. expOrFn,
  7577. cb,
  7578. options,
  7579. isRenderWatcher
  7580. ) {
  7581. this.vm = vm;
  7582. if (isRenderWatcher) {
  7583. vm._watcher = this;
  7584. }
  7585. vm._watchers.push(this);
  7586. // options
  7587. if (options) {
  7588. this.deep = !!options.deep;
  7589. this.user = !!options.user;
  7590. this.lazy = !!options.lazy;
  7591. this.sync = !!options.sync;
  7592. this.before = options.before;
  7593. } else {
  7594. this.deep = this.user = this.lazy = this.sync = false;
  7595. }
  7596. this.cb = cb;
  7597. this.id = ++uid$2; // uid for batching
  7598. this.active = true;
  7599. this.dirty = this.lazy; // for lazy watchers
  7600. this.deps = [];
  7601. this.newDeps = [];
  7602. this.depIds = new _Set();
  7603. this.newDepIds = new _Set();
  7604. this.expression = true
  7605. ? expOrFn.toString()
  7606. : undefined;
  7607. // parse expression for getter
  7608. if (typeof expOrFn === 'function') {
  7609. this.getter = expOrFn;
  7610. } else {
  7611. this.getter = parsePath(expOrFn);
  7612. if (!this.getter) {
  7613. this.getter = noop;
  7614. true && warn(
  7615. "Failed watching path: \"" + expOrFn + "\" " +
  7616. 'Watcher only accepts simple dot-delimited paths. ' +
  7617. 'For full control, use a function instead.',
  7618. vm
  7619. );
  7620. }
  7621. }
  7622. this.value = this.lazy
  7623. ? undefined
  7624. : this.get();
  7625. };
  7626. /**
  7627. * Evaluate the getter, and re-collect dependencies.
  7628. */
  7629. Watcher.prototype.get = function get () {
  7630. pushTarget(this);
  7631. var value;
  7632. var vm = this.vm;
  7633. try {
  7634. value = this.getter.call(vm, vm);
  7635. } catch (e) {
  7636. if (this.user) {
  7637. handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
  7638. } else {
  7639. throw e
  7640. }
  7641. } finally {
  7642. // "touch" every property so they are all tracked as
  7643. // dependencies for deep watching
  7644. if (this.deep) {
  7645. traverse(value);
  7646. }
  7647. popTarget();
  7648. this.cleanupDeps();
  7649. }
  7650. return value
  7651. };
  7652. /**
  7653. * Add a dependency to this directive.
  7654. */
  7655. Watcher.prototype.addDep = function addDep (dep) {
  7656. var id = dep.id;
  7657. if (!this.newDepIds.has(id)) {
  7658. this.newDepIds.add(id);
  7659. this.newDeps.push(dep);
  7660. if (!this.depIds.has(id)) {
  7661. dep.addSub(this);
  7662. }
  7663. }
  7664. };
  7665. /**
  7666. * Clean up for dependency collection.
  7667. */
  7668. Watcher.prototype.cleanupDeps = function cleanupDeps () {
  7669. var i = this.deps.length;
  7670. while (i--) {
  7671. var dep = this.deps[i];
  7672. if (!this.newDepIds.has(dep.id)) {
  7673. dep.removeSub(this);
  7674. }
  7675. }
  7676. var tmp = this.depIds;
  7677. this.depIds = this.newDepIds;
  7678. this.newDepIds = tmp;
  7679. this.newDepIds.clear();
  7680. tmp = this.deps;
  7681. this.deps = this.newDeps;
  7682. this.newDeps = tmp;
  7683. this.newDeps.length = 0;
  7684. };
  7685. /**
  7686. * Subscriber interface.
  7687. * Will be called when a dependency changes.
  7688. */
  7689. Watcher.prototype.update = function update () {
  7690. /* istanbul ignore else */
  7691. if (this.lazy) {
  7692. this.dirty = true;
  7693. } else if (this.sync) {
  7694. this.run();
  7695. } else {
  7696. queueWatcher(this);
  7697. }
  7698. };
  7699. /**
  7700. * Scheduler job interface.
  7701. * Will be called by the scheduler.
  7702. */
  7703. Watcher.prototype.run = function run () {
  7704. if (this.active) {
  7705. var value = this.get();
  7706. if (
  7707. value !== this.value ||
  7708. // Deep watchers and watchers on Object/Arrays should fire even
  7709. // when the value is the same, because the value may
  7710. // have mutated.
  7711. isObject(value) ||
  7712. this.deep
  7713. ) {
  7714. // set new value
  7715. var oldValue = this.value;
  7716. this.value = value;
  7717. if (this.user) {
  7718. try {
  7719. this.cb.call(this.vm, value, oldValue);
  7720. } catch (e) {
  7721. handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
  7722. }
  7723. } else {
  7724. this.cb.call(this.vm, value, oldValue);
  7725. }
  7726. }
  7727. }
  7728. };
  7729. /**
  7730. * Evaluate the value of the watcher.
  7731. * This only gets called for lazy watchers.
  7732. */
  7733. Watcher.prototype.evaluate = function evaluate () {
  7734. this.value = this.get();
  7735. this.dirty = false;
  7736. };
  7737. /**
  7738. * Depend on all deps collected by this watcher.
  7739. */
  7740. Watcher.prototype.depend = function depend () {
  7741. var i = this.deps.length;
  7742. while (i--) {
  7743. this.deps[i].depend();
  7744. }
  7745. };
  7746. /**
  7747. * Remove self from all dependencies' subscriber list.
  7748. */
  7749. Watcher.prototype.teardown = function teardown () {
  7750. if (this.active) {
  7751. // remove self from vm's watcher list
  7752. // this is a somewhat expensive operation so we skip it
  7753. // if the vm is being destroyed.
  7754. if (!this.vm._isBeingDestroyed) {
  7755. remove(this.vm._watchers, this);
  7756. }
  7757. var i = this.deps.length;
  7758. while (i--) {
  7759. this.deps[i].removeSub(this);
  7760. }
  7761. this.active = false;
  7762. }
  7763. };
  7764. /* */
  7765. var sharedPropertyDefinition = {
  7766. enumerable: true,
  7767. configurable: true,
  7768. get: noop,
  7769. set: noop
  7770. };
  7771. function proxy (target, sourceKey, key) {
  7772. sharedPropertyDefinition.get = function proxyGetter () {
  7773. return this[sourceKey][key]
  7774. };
  7775. sharedPropertyDefinition.set = function proxySetter (val) {
  7776. this[sourceKey][key] = val;
  7777. };
  7778. Object.defineProperty(target, key, sharedPropertyDefinition);
  7779. }
  7780. function initState (vm) {
  7781. vm._watchers = [];
  7782. var opts = vm.$options;
  7783. if (opts.props) { initProps(vm, opts.props); }
  7784. if (opts.methods) { initMethods(vm, opts.methods); }
  7785. if (opts.data) {
  7786. initData(vm);
  7787. } else {
  7788. observe(vm._data = {}, true /* asRootData */);
  7789. }
  7790. if (opts.computed) { initComputed(vm, opts.computed); }
  7791. if (opts.watch && opts.watch !== nativeWatch) {
  7792. initWatch(vm, opts.watch);
  7793. }
  7794. }
  7795. function initProps (vm, propsOptions) {
  7796. var propsData = vm.$options.propsData || {};
  7797. var props = vm._props = {};
  7798. // cache prop keys so that future props updates can iterate using Array
  7799. // instead of dynamic object key enumeration.
  7800. var keys = vm.$options._propKeys = [];
  7801. var isRoot = !vm.$parent;
  7802. // root instance props should be converted
  7803. if (!isRoot) {
  7804. toggleObserving(false);
  7805. }
  7806. var loop = function ( key ) {
  7807. keys.push(key);
  7808. var value = validateProp(key, propsOptions, propsData, vm);
  7809. /* istanbul ignore else */
  7810. if (true) {
  7811. var hyphenatedKey = hyphenate(key);
  7812. if (isReservedAttribute(hyphenatedKey) ||
  7813. config.isReservedAttr(hyphenatedKey)) {
  7814. warn(
  7815. ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
  7816. vm
  7817. );
  7818. }
  7819. defineReactive$$1(props, key, value, function () {
  7820. if (!isRoot && !isUpdatingChildComponent) {
  7821. {
  7822. if(vm.mpHost === 'mp-baidu' || vm.mpHost === 'mp-kuaishou' || vm.mpHost === 'mp-xhs'){//百度、快手、小红书 observer 在 setData callback 之后触发,直接忽略该 warn
  7823. return
  7824. }
  7825. //fixed by xxxxxx __next_tick_pending,uni://form-field 时不告警
  7826. if(
  7827. key === 'value' &&
  7828. Array.isArray(vm.$options.behaviors) &&
  7829. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  7830. ){
  7831. return
  7832. }
  7833. if(vm._getFormData){
  7834. return
  7835. }
  7836. var $parent = vm.$parent;
  7837. while($parent){
  7838. if($parent.__next_tick_pending){
  7839. return
  7840. }
  7841. $parent = $parent.$parent;
  7842. }
  7843. }
  7844. warn(
  7845. "Avoid mutating a prop directly since the value will be " +
  7846. "overwritten whenever the parent component re-renders. " +
  7847. "Instead, use a data or computed property based on the prop's " +
  7848. "value. Prop being mutated: \"" + key + "\"",
  7849. vm
  7850. );
  7851. }
  7852. });
  7853. } else {}
  7854. // static props are already proxied on the component's prototype
  7855. // during Vue.extend(). We only need to proxy props defined at
  7856. // instantiation here.
  7857. if (!(key in vm)) {
  7858. proxy(vm, "_props", key);
  7859. }
  7860. };
  7861. for (var key in propsOptions) loop( key );
  7862. toggleObserving(true);
  7863. }
  7864. function initData (vm) {
  7865. var data = vm.$options.data;
  7866. data = vm._data = typeof data === 'function'
  7867. ? getData(data, vm)
  7868. : data || {};
  7869. if (!isPlainObject(data)) {
  7870. data = {};
  7871. true && warn(
  7872. 'data functions should return an object:\n' +
  7873. 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
  7874. vm
  7875. );
  7876. }
  7877. // proxy data on instance
  7878. var keys = Object.keys(data);
  7879. var props = vm.$options.props;
  7880. var methods = vm.$options.methods;
  7881. var i = keys.length;
  7882. while (i--) {
  7883. var key = keys[i];
  7884. if (true) {
  7885. if (methods && hasOwn(methods, key)) {
  7886. warn(
  7887. ("Method \"" + key + "\" has already been defined as a data property."),
  7888. vm
  7889. );
  7890. }
  7891. }
  7892. if (props && hasOwn(props, key)) {
  7893. true && warn(
  7894. "The data property \"" + key + "\" is already declared as a prop. " +
  7895. "Use prop default value instead.",
  7896. vm
  7897. );
  7898. } else if (!isReserved(key)) {
  7899. proxy(vm, "_data", key);
  7900. }
  7901. }
  7902. // observe data
  7903. observe(data, true /* asRootData */);
  7904. }
  7905. function getData (data, vm) {
  7906. // #7573 disable dep collection when invoking data getters
  7907. pushTarget();
  7908. try {
  7909. return data.call(vm, vm)
  7910. } catch (e) {
  7911. handleError(e, vm, "data()");
  7912. return {}
  7913. } finally {
  7914. popTarget();
  7915. }
  7916. }
  7917. var computedWatcherOptions = { lazy: true };
  7918. function initComputed (vm, computed) {
  7919. // $flow-disable-line
  7920. var watchers = vm._computedWatchers = Object.create(null);
  7921. // computed properties are just getters during SSR
  7922. var isSSR = isServerRendering();
  7923. for (var key in computed) {
  7924. var userDef = computed[key];
  7925. var getter = typeof userDef === 'function' ? userDef : userDef.get;
  7926. if ( true && getter == null) {
  7927. warn(
  7928. ("Getter is missing for computed property \"" + key + "\"."),
  7929. vm
  7930. );
  7931. }
  7932. if (!isSSR) {
  7933. // create internal watcher for the computed property.
  7934. watchers[key] = new Watcher(
  7935. vm,
  7936. getter || noop,
  7937. noop,
  7938. computedWatcherOptions
  7939. );
  7940. }
  7941. // component-defined computed properties are already defined on the
  7942. // component prototype. We only need to define computed properties defined
  7943. // at instantiation here.
  7944. if (!(key in vm)) {
  7945. defineComputed(vm, key, userDef);
  7946. } else if (true) {
  7947. if (key in vm.$data) {
  7948. warn(("The computed property \"" + key + "\" is already defined in data."), vm);
  7949. } else if (vm.$options.props && key in vm.$options.props) {
  7950. warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
  7951. }
  7952. }
  7953. }
  7954. }
  7955. function defineComputed (
  7956. target,
  7957. key,
  7958. userDef
  7959. ) {
  7960. var shouldCache = !isServerRendering();
  7961. if (typeof userDef === 'function') {
  7962. sharedPropertyDefinition.get = shouldCache
  7963. ? createComputedGetter(key)
  7964. : createGetterInvoker(userDef);
  7965. sharedPropertyDefinition.set = noop;
  7966. } else {
  7967. sharedPropertyDefinition.get = userDef.get
  7968. ? shouldCache && userDef.cache !== false
  7969. ? createComputedGetter(key)
  7970. : createGetterInvoker(userDef.get)
  7971. : noop;
  7972. sharedPropertyDefinition.set = userDef.set || noop;
  7973. }
  7974. if ( true &&
  7975. sharedPropertyDefinition.set === noop) {
  7976. sharedPropertyDefinition.set = function () {
  7977. warn(
  7978. ("Computed property \"" + key + "\" was assigned to but it has no setter."),
  7979. this
  7980. );
  7981. };
  7982. }
  7983. Object.defineProperty(target, key, sharedPropertyDefinition);
  7984. }
  7985. function createComputedGetter (key) {
  7986. return function computedGetter () {
  7987. var watcher = this._computedWatchers && this._computedWatchers[key];
  7988. if (watcher) {
  7989. if (watcher.dirty) {
  7990. watcher.evaluate();
  7991. }
  7992. if (Dep.SharedObject.target) {// fixed by xxxxxx
  7993. watcher.depend();
  7994. }
  7995. return watcher.value
  7996. }
  7997. }
  7998. }
  7999. function createGetterInvoker(fn) {
  8000. return function computedGetter () {
  8001. return fn.call(this, this)
  8002. }
  8003. }
  8004. function initMethods (vm, methods) {
  8005. var props = vm.$options.props;
  8006. for (var key in methods) {
  8007. if (true) {
  8008. if (typeof methods[key] !== 'function') {
  8009. warn(
  8010. "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
  8011. "Did you reference the function correctly?",
  8012. vm
  8013. );
  8014. }
  8015. if (props && hasOwn(props, key)) {
  8016. warn(
  8017. ("Method \"" + key + "\" has already been defined as a prop."),
  8018. vm
  8019. );
  8020. }
  8021. if ((key in vm) && isReserved(key)) {
  8022. warn(
  8023. "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
  8024. "Avoid defining component methods that start with _ or $."
  8025. );
  8026. }
  8027. }
  8028. vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
  8029. }
  8030. }
  8031. function initWatch (vm, watch) {
  8032. for (var key in watch) {
  8033. var handler = watch[key];
  8034. if (Array.isArray(handler)) {
  8035. for (var i = 0; i < handler.length; i++) {
  8036. createWatcher(vm, key, handler[i]);
  8037. }
  8038. } else {
  8039. createWatcher(vm, key, handler);
  8040. }
  8041. }
  8042. }
  8043. function createWatcher (
  8044. vm,
  8045. expOrFn,
  8046. handler,
  8047. options
  8048. ) {
  8049. if (isPlainObject(handler)) {
  8050. options = handler;
  8051. handler = handler.handler;
  8052. }
  8053. if (typeof handler === 'string') {
  8054. handler = vm[handler];
  8055. }
  8056. return vm.$watch(expOrFn, handler, options)
  8057. }
  8058. function stateMixin (Vue) {
  8059. // flow somehow has problems with directly declared definition object
  8060. // when using Object.defineProperty, so we have to procedurally build up
  8061. // the object here.
  8062. var dataDef = {};
  8063. dataDef.get = function () { return this._data };
  8064. var propsDef = {};
  8065. propsDef.get = function () { return this._props };
  8066. if (true) {
  8067. dataDef.set = function () {
  8068. warn(
  8069. 'Avoid replacing instance root $data. ' +
  8070. 'Use nested data properties instead.',
  8071. this
  8072. );
  8073. };
  8074. propsDef.set = function () {
  8075. warn("$props is readonly.", this);
  8076. };
  8077. }
  8078. Object.defineProperty(Vue.prototype, '$data', dataDef);
  8079. Object.defineProperty(Vue.prototype, '$props', propsDef);
  8080. Vue.prototype.$set = set;
  8081. Vue.prototype.$delete = del;
  8082. Vue.prototype.$watch = function (
  8083. expOrFn,
  8084. cb,
  8085. options
  8086. ) {
  8087. var vm = this;
  8088. if (isPlainObject(cb)) {
  8089. return createWatcher(vm, expOrFn, cb, options)
  8090. }
  8091. options = options || {};
  8092. options.user = true;
  8093. var watcher = new Watcher(vm, expOrFn, cb, options);
  8094. if (options.immediate) {
  8095. try {
  8096. cb.call(vm, watcher.value);
  8097. } catch (error) {
  8098. handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
  8099. }
  8100. }
  8101. return function unwatchFn () {
  8102. watcher.teardown();
  8103. }
  8104. };
  8105. }
  8106. /* */
  8107. var uid$3 = 0;
  8108. function initMixin (Vue) {
  8109. Vue.prototype._init = function (options) {
  8110. var vm = this;
  8111. // a uid
  8112. vm._uid = uid$3++;
  8113. var startTag, endTag;
  8114. /* istanbul ignore if */
  8115. if ( true && config.performance && mark) {
  8116. startTag = "vue-perf-start:" + (vm._uid);
  8117. endTag = "vue-perf-end:" + (vm._uid);
  8118. mark(startTag);
  8119. }
  8120. // a flag to avoid this being observed
  8121. vm._isVue = true;
  8122. // merge options
  8123. if (options && options._isComponent) {
  8124. // optimize internal component instantiation
  8125. // since dynamic options merging is pretty slow, and none of the
  8126. // internal component options needs special treatment.
  8127. initInternalComponent(vm, options);
  8128. } else {
  8129. vm.$options = mergeOptions(
  8130. resolveConstructorOptions(vm.constructor),
  8131. options || {},
  8132. vm
  8133. );
  8134. }
  8135. /* istanbul ignore else */
  8136. if (true) {
  8137. initProxy(vm);
  8138. } else {}
  8139. // expose real self
  8140. vm._self = vm;
  8141. initLifecycle(vm);
  8142. initEvents(vm);
  8143. initRender(vm);
  8144. callHook(vm, 'beforeCreate');
  8145. !vm._$fallback && initInjections(vm); // resolve injections before data/props
  8146. initState(vm);
  8147. !vm._$fallback && initProvide(vm); // resolve provide after data/props
  8148. !vm._$fallback && callHook(vm, 'created');
  8149. /* istanbul ignore if */
  8150. if ( true && config.performance && mark) {
  8151. vm._name = formatComponentName(vm, false);
  8152. mark(endTag);
  8153. measure(("vue " + (vm._name) + " init"), startTag, endTag);
  8154. }
  8155. if (vm.$options.el) {
  8156. vm.$mount(vm.$options.el);
  8157. }
  8158. };
  8159. }
  8160. function initInternalComponent (vm, options) {
  8161. var opts = vm.$options = Object.create(vm.constructor.options);
  8162. // doing this because it's faster than dynamic enumeration.
  8163. var parentVnode = options._parentVnode;
  8164. opts.parent = options.parent;
  8165. opts._parentVnode = parentVnode;
  8166. var vnodeComponentOptions = parentVnode.componentOptions;
  8167. opts.propsData = vnodeComponentOptions.propsData;
  8168. opts._parentListeners = vnodeComponentOptions.listeners;
  8169. opts._renderChildren = vnodeComponentOptions.children;
  8170. opts._componentTag = vnodeComponentOptions.tag;
  8171. if (options.render) {
  8172. opts.render = options.render;
  8173. opts.staticRenderFns = options.staticRenderFns;
  8174. }
  8175. }
  8176. function resolveConstructorOptions (Ctor) {
  8177. var options = Ctor.options;
  8178. if (Ctor.super) {
  8179. var superOptions = resolveConstructorOptions(Ctor.super);
  8180. var cachedSuperOptions = Ctor.superOptions;
  8181. if (superOptions !== cachedSuperOptions) {
  8182. // super option changed,
  8183. // need to resolve new options.
  8184. Ctor.superOptions = superOptions;
  8185. // check if there are any late-modified/attached options (#4976)
  8186. var modifiedOptions = resolveModifiedOptions(Ctor);
  8187. // update base extend options
  8188. if (modifiedOptions) {
  8189. extend(Ctor.extendOptions, modifiedOptions);
  8190. }
  8191. options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
  8192. if (options.name) {
  8193. options.components[options.name] = Ctor;
  8194. }
  8195. }
  8196. }
  8197. return options
  8198. }
  8199. function resolveModifiedOptions (Ctor) {
  8200. var modified;
  8201. var latest = Ctor.options;
  8202. var sealed = Ctor.sealedOptions;
  8203. for (var key in latest) {
  8204. if (latest[key] !== sealed[key]) {
  8205. if (!modified) { modified = {}; }
  8206. modified[key] = latest[key];
  8207. }
  8208. }
  8209. return modified
  8210. }
  8211. function Vue (options) {
  8212. if ( true &&
  8213. !(this instanceof Vue)
  8214. ) {
  8215. warn('Vue is a constructor and should be called with the `new` keyword');
  8216. }
  8217. this._init(options);
  8218. }
  8219. initMixin(Vue);
  8220. stateMixin(Vue);
  8221. eventsMixin(Vue);
  8222. lifecycleMixin(Vue);
  8223. renderMixin(Vue);
  8224. /* */
  8225. function initUse (Vue) {
  8226. Vue.use = function (plugin) {
  8227. var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
  8228. if (installedPlugins.indexOf(plugin) > -1) {
  8229. return this
  8230. }
  8231. // additional parameters
  8232. var args = toArray(arguments, 1);
  8233. args.unshift(this);
  8234. if (typeof plugin.install === 'function') {
  8235. plugin.install.apply(plugin, args);
  8236. } else if (typeof plugin === 'function') {
  8237. plugin.apply(null, args);
  8238. }
  8239. installedPlugins.push(plugin);
  8240. return this
  8241. };
  8242. }
  8243. /* */
  8244. function initMixin$1 (Vue) {
  8245. Vue.mixin = function (mixin) {
  8246. this.options = mergeOptions(this.options, mixin);
  8247. return this
  8248. };
  8249. }
  8250. /* */
  8251. function initExtend (Vue) {
  8252. /**
  8253. * Each instance constructor, including Vue, has a unique
  8254. * cid. This enables us to create wrapped "child
  8255. * constructors" for prototypal inheritance and cache them.
  8256. */
  8257. Vue.cid = 0;
  8258. var cid = 1;
  8259. /**
  8260. * Class inheritance
  8261. */
  8262. Vue.extend = function (extendOptions) {
  8263. extendOptions = extendOptions || {};
  8264. var Super = this;
  8265. var SuperId = Super.cid;
  8266. var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
  8267. if (cachedCtors[SuperId]) {
  8268. return cachedCtors[SuperId]
  8269. }
  8270. var name = extendOptions.name || Super.options.name;
  8271. if ( true && name) {
  8272. validateComponentName(name);
  8273. }
  8274. var Sub = function VueComponent (options) {
  8275. this._init(options);
  8276. };
  8277. Sub.prototype = Object.create(Super.prototype);
  8278. Sub.prototype.constructor = Sub;
  8279. Sub.cid = cid++;
  8280. Sub.options = mergeOptions(
  8281. Super.options,
  8282. extendOptions
  8283. );
  8284. Sub['super'] = Super;
  8285. // For props and computed properties, we define the proxy getters on
  8286. // the Vue instances at extension time, on the extended prototype. This
  8287. // avoids Object.defineProperty calls for each instance created.
  8288. if (Sub.options.props) {
  8289. initProps$1(Sub);
  8290. }
  8291. if (Sub.options.computed) {
  8292. initComputed$1(Sub);
  8293. }
  8294. // allow further extension/mixin/plugin usage
  8295. Sub.extend = Super.extend;
  8296. Sub.mixin = Super.mixin;
  8297. Sub.use = Super.use;
  8298. // create asset registers, so extended classes
  8299. // can have their private assets too.
  8300. ASSET_TYPES.forEach(function (type) {
  8301. Sub[type] = Super[type];
  8302. });
  8303. // enable recursive self-lookup
  8304. if (name) {
  8305. Sub.options.components[name] = Sub;
  8306. }
  8307. // keep a reference to the super options at extension time.
  8308. // later at instantiation we can check if Super's options have
  8309. // been updated.
  8310. Sub.superOptions = Super.options;
  8311. Sub.extendOptions = extendOptions;
  8312. Sub.sealedOptions = extend({}, Sub.options);
  8313. // cache constructor
  8314. cachedCtors[SuperId] = Sub;
  8315. return Sub
  8316. };
  8317. }
  8318. function initProps$1 (Comp) {
  8319. var props = Comp.options.props;
  8320. for (var key in props) {
  8321. proxy(Comp.prototype, "_props", key);
  8322. }
  8323. }
  8324. function initComputed$1 (Comp) {
  8325. var computed = Comp.options.computed;
  8326. for (var key in computed) {
  8327. defineComputed(Comp.prototype, key, computed[key]);
  8328. }
  8329. }
  8330. /* */
  8331. function initAssetRegisters (Vue) {
  8332. /**
  8333. * Create asset registration methods.
  8334. */
  8335. ASSET_TYPES.forEach(function (type) {
  8336. Vue[type] = function (
  8337. id,
  8338. definition
  8339. ) {
  8340. if (!definition) {
  8341. return this.options[type + 's'][id]
  8342. } else {
  8343. /* istanbul ignore if */
  8344. if ( true && type === 'component') {
  8345. validateComponentName(id);
  8346. }
  8347. if (type === 'component' && isPlainObject(definition)) {
  8348. definition.name = definition.name || id;
  8349. definition = this.options._base.extend(definition);
  8350. }
  8351. if (type === 'directive' && typeof definition === 'function') {
  8352. definition = { bind: definition, update: definition };
  8353. }
  8354. this.options[type + 's'][id] = definition;
  8355. return definition
  8356. }
  8357. };
  8358. });
  8359. }
  8360. /* */
  8361. function getComponentName (opts) {
  8362. return opts && (opts.Ctor.options.name || opts.tag)
  8363. }
  8364. function matches (pattern, name) {
  8365. if (Array.isArray(pattern)) {
  8366. return pattern.indexOf(name) > -1
  8367. } else if (typeof pattern === 'string') {
  8368. return pattern.split(',').indexOf(name) > -1
  8369. } else if (isRegExp(pattern)) {
  8370. return pattern.test(name)
  8371. }
  8372. /* istanbul ignore next */
  8373. return false
  8374. }
  8375. function pruneCache (keepAliveInstance, filter) {
  8376. var cache = keepAliveInstance.cache;
  8377. var keys = keepAliveInstance.keys;
  8378. var _vnode = keepAliveInstance._vnode;
  8379. for (var key in cache) {
  8380. var cachedNode = cache[key];
  8381. if (cachedNode) {
  8382. var name = getComponentName(cachedNode.componentOptions);
  8383. if (name && !filter(name)) {
  8384. pruneCacheEntry(cache, key, keys, _vnode);
  8385. }
  8386. }
  8387. }
  8388. }
  8389. function pruneCacheEntry (
  8390. cache,
  8391. key,
  8392. keys,
  8393. current
  8394. ) {
  8395. var cached$$1 = cache[key];
  8396. if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
  8397. cached$$1.componentInstance.$destroy();
  8398. }
  8399. cache[key] = null;
  8400. remove(keys, key);
  8401. }
  8402. var patternTypes = [String, RegExp, Array];
  8403. var KeepAlive = {
  8404. name: 'keep-alive',
  8405. abstract: true,
  8406. props: {
  8407. include: patternTypes,
  8408. exclude: patternTypes,
  8409. max: [String, Number]
  8410. },
  8411. created: function created () {
  8412. this.cache = Object.create(null);
  8413. this.keys = [];
  8414. },
  8415. destroyed: function destroyed () {
  8416. for (var key in this.cache) {
  8417. pruneCacheEntry(this.cache, key, this.keys);
  8418. }
  8419. },
  8420. mounted: function mounted () {
  8421. var this$1 = this;
  8422. this.$watch('include', function (val) {
  8423. pruneCache(this$1, function (name) { return matches(val, name); });
  8424. });
  8425. this.$watch('exclude', function (val) {
  8426. pruneCache(this$1, function (name) { return !matches(val, name); });
  8427. });
  8428. },
  8429. render: function render () {
  8430. var slot = this.$slots.default;
  8431. var vnode = getFirstComponentChild(slot);
  8432. var componentOptions = vnode && vnode.componentOptions;
  8433. if (componentOptions) {
  8434. // check pattern
  8435. var name = getComponentName(componentOptions);
  8436. var ref = this;
  8437. var include = ref.include;
  8438. var exclude = ref.exclude;
  8439. if (
  8440. // not included
  8441. (include && (!name || !matches(include, name))) ||
  8442. // excluded
  8443. (exclude && name && matches(exclude, name))
  8444. ) {
  8445. return vnode
  8446. }
  8447. var ref$1 = this;
  8448. var cache = ref$1.cache;
  8449. var keys = ref$1.keys;
  8450. var key = vnode.key == null
  8451. // same constructor may get registered as different local components
  8452. // so cid alone is not enough (#3269)
  8453. ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
  8454. : vnode.key;
  8455. if (cache[key]) {
  8456. vnode.componentInstance = cache[key].componentInstance;
  8457. // make current key freshest
  8458. remove(keys, key);
  8459. keys.push(key);
  8460. } else {
  8461. cache[key] = vnode;
  8462. keys.push(key);
  8463. // prune oldest entry
  8464. if (this.max && keys.length > parseInt(this.max)) {
  8465. pruneCacheEntry(cache, keys[0], keys, this._vnode);
  8466. }
  8467. }
  8468. vnode.data.keepAlive = true;
  8469. }
  8470. return vnode || (slot && slot[0])
  8471. }
  8472. };
  8473. var builtInComponents = {
  8474. KeepAlive: KeepAlive
  8475. };
  8476. /* */
  8477. function initGlobalAPI (Vue) {
  8478. // config
  8479. var configDef = {};
  8480. configDef.get = function () { return config; };
  8481. if (true) {
  8482. configDef.set = function () {
  8483. warn(
  8484. 'Do not replace the Vue.config object, set individual fields instead.'
  8485. );
  8486. };
  8487. }
  8488. Object.defineProperty(Vue, 'config', configDef);
  8489. // exposed util methods.
  8490. // NOTE: these are not considered part of the public API - avoid relying on
  8491. // them unless you are aware of the risk.
  8492. Vue.util = {
  8493. warn: warn,
  8494. extend: extend,
  8495. mergeOptions: mergeOptions,
  8496. defineReactive: defineReactive$$1
  8497. };
  8498. Vue.set = set;
  8499. Vue.delete = del;
  8500. Vue.nextTick = nextTick;
  8501. // 2.6 explicit observable API
  8502. Vue.observable = function (obj) {
  8503. observe(obj);
  8504. return obj
  8505. };
  8506. Vue.options = Object.create(null);
  8507. ASSET_TYPES.forEach(function (type) {
  8508. Vue.options[type + 's'] = Object.create(null);
  8509. });
  8510. // this is used to identify the "base" constructor to extend all plain-object
  8511. // components with in Weex's multi-instance scenarios.
  8512. Vue.options._base = Vue;
  8513. extend(Vue.options.components, builtInComponents);
  8514. initUse(Vue);
  8515. initMixin$1(Vue);
  8516. initExtend(Vue);
  8517. initAssetRegisters(Vue);
  8518. }
  8519. initGlobalAPI(Vue);
  8520. Object.defineProperty(Vue.prototype, '$isServer', {
  8521. get: isServerRendering
  8522. });
  8523. Object.defineProperty(Vue.prototype, '$ssrContext', {
  8524. get: function get () {
  8525. /* istanbul ignore next */
  8526. return this.$vnode && this.$vnode.ssrContext
  8527. }
  8528. });
  8529. // expose FunctionalRenderContext for ssr runtime helper installation
  8530. Object.defineProperty(Vue, 'FunctionalRenderContext', {
  8531. value: FunctionalRenderContext
  8532. });
  8533. Vue.version = '2.6.11';
  8534. /**
  8535. * https://raw.githubusercontent.com/Tencent/westore/master/packages/westore/utils/diff.js
  8536. */
  8537. var ARRAYTYPE = '[object Array]';
  8538. var OBJECTTYPE = '[object Object]';
  8539. var NULLTYPE = '[object Null]';
  8540. var UNDEFINEDTYPE = '[object Undefined]';
  8541. // const FUNCTIONTYPE = '[object Function]'
  8542. function diff(current, pre) {
  8543. var result = {};
  8544. syncKeys(current, pre);
  8545. _diff(current, pre, '', result);
  8546. return result
  8547. }
  8548. function syncKeys(current, pre) {
  8549. if (current === pre) { return }
  8550. var rootCurrentType = type(current);
  8551. var rootPreType = type(pre);
  8552. if (rootCurrentType == OBJECTTYPE && rootPreType == OBJECTTYPE) {
  8553. if(Object.keys(current).length >= Object.keys(pre).length){
  8554. for (var key in pre) {
  8555. var currentValue = current[key];
  8556. if (currentValue === undefined) {
  8557. current[key] = null;
  8558. } else {
  8559. syncKeys(currentValue, pre[key]);
  8560. }
  8561. }
  8562. }
  8563. } else if (rootCurrentType == ARRAYTYPE && rootPreType == ARRAYTYPE) {
  8564. if (current.length >= pre.length) {
  8565. pre.forEach(function (item, index) {
  8566. syncKeys(current[index], item);
  8567. });
  8568. }
  8569. }
  8570. }
  8571. function nullOrUndefined(currentType, preType) {
  8572. if(
  8573. (currentType === NULLTYPE || currentType === UNDEFINEDTYPE) &&
  8574. (preType === NULLTYPE || preType === UNDEFINEDTYPE)
  8575. ) {
  8576. return false
  8577. }
  8578. return true
  8579. }
  8580. function _diff(current, pre, path, result) {
  8581. if (current === pre) { return }
  8582. var rootCurrentType = type(current);
  8583. var rootPreType = type(pre);
  8584. if (rootCurrentType == OBJECTTYPE) {
  8585. if (rootPreType != OBJECTTYPE || Object.keys(current).length < Object.keys(pre).length) {
  8586. setResult(result, path, current);
  8587. } else {
  8588. var loop = function ( key ) {
  8589. var currentValue = current[key];
  8590. var preValue = pre[key];
  8591. var currentType = type(currentValue);
  8592. var preType = type(preValue);
  8593. if (currentType != ARRAYTYPE && currentType != OBJECTTYPE) {
  8594. if (currentValue !== pre[key] && nullOrUndefined(currentType, preType)) {
  8595. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8596. }
  8597. } else if (currentType == ARRAYTYPE) {
  8598. if (preType != ARRAYTYPE) {
  8599. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8600. } else {
  8601. if (currentValue.length < preValue.length) {
  8602. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8603. } else {
  8604. currentValue.forEach(function (item, index) {
  8605. _diff(item, preValue[index], (path == '' ? '' : path + ".") + key + '[' + index + ']', result);
  8606. });
  8607. }
  8608. }
  8609. } else if (currentType == OBJECTTYPE) {
  8610. if (preType != OBJECTTYPE || Object.keys(currentValue).length < Object.keys(preValue).length) {
  8611. setResult(result, (path == '' ? '' : path + ".") + key, currentValue);
  8612. } else {
  8613. for (var subKey in currentValue) {
  8614. _diff(currentValue[subKey], preValue[subKey], (path == '' ? '' : path + ".") + key + '.' + subKey, result);
  8615. }
  8616. }
  8617. }
  8618. };
  8619. for (var key in current) loop( key );
  8620. }
  8621. } else if (rootCurrentType == ARRAYTYPE) {
  8622. if (rootPreType != ARRAYTYPE) {
  8623. setResult(result, path, current);
  8624. } else {
  8625. if (current.length < pre.length) {
  8626. setResult(result, path, current);
  8627. } else {
  8628. current.forEach(function (item, index) {
  8629. _diff(item, pre[index], path + '[' + index + ']', result);
  8630. });
  8631. }
  8632. }
  8633. } else {
  8634. setResult(result, path, current);
  8635. }
  8636. }
  8637. function setResult(result, k, v) {
  8638. // if (type(v) != FUNCTIONTYPE) {
  8639. result[k] = v;
  8640. // }
  8641. }
  8642. function type(obj) {
  8643. return Object.prototype.toString.call(obj)
  8644. }
  8645. /* */
  8646. function flushCallbacks$1(vm) {
  8647. if (vm.__next_tick_callbacks && vm.__next_tick_callbacks.length) {
  8648. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"我的","VUE_APP_PLATFORM":"mp-toutiao","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8649. var mpInstance = vm.$scope;
  8650. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8651. ']:flushCallbacks[' + vm.__next_tick_callbacks.length + ']');
  8652. }
  8653. var copies = vm.__next_tick_callbacks.slice(0);
  8654. vm.__next_tick_callbacks.length = 0;
  8655. for (var i = 0; i < copies.length; i++) {
  8656. copies[i]();
  8657. }
  8658. }
  8659. }
  8660. function hasRenderWatcher(vm) {
  8661. return queue.find(function (watcher) { return vm._watcher === watcher; })
  8662. }
  8663. function nextTick$1(vm, cb) {
  8664. //1.nextTick 之前 已 setData 且 setData 还未回调完成
  8665. //2.nextTick 之前存在 render watcher
  8666. if (!vm.__next_tick_pending && !hasRenderWatcher(vm)) {
  8667. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"我的","VUE_APP_PLATFORM":"mp-toutiao","BASE_URL":"/"}).VUE_APP_DEBUG){
  8668. var mpInstance = vm.$scope;
  8669. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + vm._uid +
  8670. ']:nextVueTick');
  8671. }
  8672. return nextTick(cb, vm)
  8673. }else{
  8674. if(Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"我的","VUE_APP_PLATFORM":"mp-toutiao","BASE_URL":"/"}).VUE_APP_DEBUG){
  8675. var mpInstance$1 = vm.$scope;
  8676. console.log('[' + (+new Date) + '][' + (mpInstance$1.is || mpInstance$1.route) + '][' + vm._uid +
  8677. ']:nextMPTick');
  8678. }
  8679. }
  8680. var _resolve;
  8681. if (!vm.__next_tick_callbacks) {
  8682. vm.__next_tick_callbacks = [];
  8683. }
  8684. vm.__next_tick_callbacks.push(function () {
  8685. if (cb) {
  8686. try {
  8687. cb.call(vm);
  8688. } catch (e) {
  8689. handleError(e, vm, 'nextTick');
  8690. }
  8691. } else if (_resolve) {
  8692. _resolve(vm);
  8693. }
  8694. });
  8695. // $flow-disable-line
  8696. if (!cb && typeof Promise !== 'undefined') {
  8697. return new Promise(function (resolve) {
  8698. _resolve = resolve;
  8699. })
  8700. }
  8701. }
  8702. /* */
  8703. function clearInstance(key, value) {
  8704. // 简易去除 Vue 和小程序组件实例
  8705. if (value) {
  8706. if (value._isVue || value.__v_isMPComponent) {
  8707. return {}
  8708. }
  8709. }
  8710. return value
  8711. }
  8712. function cloneWithData(vm) {
  8713. // 确保当前 vm 所有数据被同步
  8714. var ret = Object.create(null);
  8715. var dataKeys = [].concat(
  8716. Object.keys(vm._data || {}),
  8717. Object.keys(vm._computedWatchers || {}));
  8718. dataKeys.reduce(function(ret, key) {
  8719. ret[key] = vm[key];
  8720. return ret
  8721. }, ret);
  8722. // vue-composition-api
  8723. var compositionApiState = vm.__composition_api_state__ || vm.__secret_vfa_state__;
  8724. var rawBindings = compositionApiState && compositionApiState.rawBindings;
  8725. if (rawBindings) {
  8726. Object.keys(rawBindings).forEach(function (key) {
  8727. ret[key] = vm[key];
  8728. });
  8729. }
  8730. //TODO 需要把无用数据处理掉,比如 list=>l0 则 list 需要移除,否则多传输一份数据
  8731. Object.assign(ret, vm.$mp.data || {});
  8732. if (
  8733. Array.isArray(vm.$options.behaviors) &&
  8734. vm.$options.behaviors.indexOf('uni://form-field') !== -1
  8735. ) { //form-field
  8736. ret['name'] = vm.name;
  8737. ret['value'] = vm.value;
  8738. }
  8739. return JSON.parse(JSON.stringify(ret, clearInstance))
  8740. }
  8741. var patch = function(oldVnode, vnode) {
  8742. var this$1 = this;
  8743. if (vnode === null) { //destroy
  8744. return
  8745. }
  8746. if (this.mpType === 'page' || this.mpType === 'component') {
  8747. var mpInstance = this.$scope;
  8748. var data = Object.create(null);
  8749. try {
  8750. data = cloneWithData(this);
  8751. } catch (err) {
  8752. console.error(err);
  8753. }
  8754. data.__webviewId__ = mpInstance.data.__webviewId__;
  8755. var mpData = Object.create(null);
  8756. Object.keys(data).forEach(function (key) { //仅同步 data 中有的数据
  8757. mpData[key] = mpInstance.data[key];
  8758. });
  8759. var diffData = this.$shouldDiffData === false ? data : diff(data, mpData);
  8760. if (Object.keys(diffData).length) {
  8761. if (Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"我的","VUE_APP_PLATFORM":"mp-toutiao","BASE_URL":"/"}).VUE_APP_DEBUG) {
  8762. console.log('[' + (+new Date) + '][' + (mpInstance.is || mpInstance.route) + '][' + this._uid +
  8763. ']差量更新',
  8764. JSON.stringify(diffData));
  8765. }
  8766. this.__next_tick_pending = true;
  8767. mpInstance.setData(diffData, function () {
  8768. this$1.__next_tick_pending = false;
  8769. flushCallbacks$1(this$1);
  8770. });
  8771. } else {
  8772. flushCallbacks$1(this);
  8773. }
  8774. }
  8775. };
  8776. /* */
  8777. function createEmptyRender() {
  8778. }
  8779. function mountComponent$1(
  8780. vm,
  8781. el,
  8782. hydrating
  8783. ) {
  8784. if (!vm.mpType) {//main.js 中的 new Vue
  8785. return vm
  8786. }
  8787. if (vm.mpType === 'app') {
  8788. vm.$options.render = createEmptyRender;
  8789. }
  8790. if (!vm.$options.render) {
  8791. vm.$options.render = createEmptyRender;
  8792. if (true) {
  8793. /* istanbul ignore if */
  8794. if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
  8795. vm.$options.el || el) {
  8796. warn(
  8797. 'You are using the runtime-only build of Vue where the template ' +
  8798. 'compiler is not available. Either pre-compile the templates into ' +
  8799. 'render functions, or use the compiler-included build.',
  8800. vm
  8801. );
  8802. } else {
  8803. warn(
  8804. 'Failed to mount component: template or render function not defined.',
  8805. vm
  8806. );
  8807. }
  8808. }
  8809. }
  8810. !vm._$fallback && callHook(vm, 'beforeMount');
  8811. var updateComponent = function () {
  8812. vm._update(vm._render(), hydrating);
  8813. };
  8814. // we set this to vm._watcher inside the watcher's constructor
  8815. // since the watcher's initial patch may call $forceUpdate (e.g. inside child
  8816. // component's mounted hook), which relies on vm._watcher being already defined
  8817. new Watcher(vm, updateComponent, noop, {
  8818. before: function before() {
  8819. if (vm._isMounted && !vm._isDestroyed) {
  8820. callHook(vm, 'beforeUpdate');
  8821. }
  8822. }
  8823. }, true /* isRenderWatcher */);
  8824. hydrating = false;
  8825. return vm
  8826. }
  8827. /* */
  8828. function renderClass (
  8829. staticClass,
  8830. dynamicClass
  8831. ) {
  8832. if (isDef(staticClass) || isDef(dynamicClass)) {
  8833. return concat(staticClass, stringifyClass(dynamicClass))
  8834. }
  8835. /* istanbul ignore next */
  8836. return ''
  8837. }
  8838. function concat (a, b) {
  8839. return a ? b ? (a + ' ' + b) : a : (b || '')
  8840. }
  8841. function stringifyClass (value) {
  8842. if (Array.isArray(value)) {
  8843. return stringifyArray(value)
  8844. }
  8845. if (isObject(value)) {
  8846. return stringifyObject(value)
  8847. }
  8848. if (typeof value === 'string') {
  8849. return value
  8850. }
  8851. /* istanbul ignore next */
  8852. return ''
  8853. }
  8854. function stringifyArray (value) {
  8855. var res = '';
  8856. var stringified;
  8857. for (var i = 0, l = value.length; i < l; i++) {
  8858. if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
  8859. if (res) { res += ' '; }
  8860. res += stringified;
  8861. }
  8862. }
  8863. return res
  8864. }
  8865. function stringifyObject (value) {
  8866. var res = '';
  8867. for (var key in value) {
  8868. if (value[key]) {
  8869. if (res) { res += ' '; }
  8870. res += key;
  8871. }
  8872. }
  8873. return res
  8874. }
  8875. /* */
  8876. var parseStyleText = cached(function (cssText) {
  8877. var res = {};
  8878. var listDelimiter = /;(?![^(]*\))/g;
  8879. var propertyDelimiter = /:(.+)/;
  8880. cssText.split(listDelimiter).forEach(function (item) {
  8881. if (item) {
  8882. var tmp = item.split(propertyDelimiter);
  8883. tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
  8884. }
  8885. });
  8886. return res
  8887. });
  8888. // normalize possible array / string values into Object
  8889. function normalizeStyleBinding (bindingStyle) {
  8890. if (Array.isArray(bindingStyle)) {
  8891. return toObject(bindingStyle)
  8892. }
  8893. if (typeof bindingStyle === 'string') {
  8894. return parseStyleText(bindingStyle)
  8895. }
  8896. return bindingStyle
  8897. }
  8898. /* */
  8899. var MP_METHODS = ['createSelectorQuery', 'createIntersectionObserver', 'selectAllComponents', 'selectComponent'];
  8900. function getTarget(obj, path) {
  8901. var parts = path.split('.');
  8902. var key = parts[0];
  8903. if (key.indexOf('__$n') === 0) { //number index
  8904. key = parseInt(key.replace('__$n', ''));
  8905. }
  8906. if (parts.length === 1) {
  8907. return obj[key]
  8908. }
  8909. return getTarget(obj[key], parts.slice(1).join('.'))
  8910. }
  8911. function internalMixin(Vue) {
  8912. Vue.config.errorHandler = function(err, vm, info) {
  8913. Vue.util.warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
  8914. console.error(err);
  8915. /* eslint-disable no-undef */
  8916. var app = typeof getApp === 'function' && getApp();
  8917. if (app && app.onError) {
  8918. app.onError(err);
  8919. }
  8920. };
  8921. var oldEmit = Vue.prototype.$emit;
  8922. Vue.prototype.$emit = function(event) {
  8923. if (this.$scope && event) {
  8924. var triggerEvent = this.$scope['_triggerEvent'] || this.$scope['triggerEvent'];
  8925. if (triggerEvent) {
  8926. try {
  8927. triggerEvent.call(this.$scope, event, {
  8928. __args__: toArray(arguments, 1)
  8929. });
  8930. } catch (error) {
  8931. }
  8932. }
  8933. }
  8934. return oldEmit.apply(this, arguments)
  8935. };
  8936. Vue.prototype.$nextTick = function(fn) {
  8937. return nextTick$1(this, fn)
  8938. };
  8939. MP_METHODS.forEach(function (method) {
  8940. Vue.prototype[method] = function(args) {
  8941. if (this.$scope && this.$scope[method]) {
  8942. return this.$scope[method](args)
  8943. }
  8944. // mp-alipay
  8945. if (typeof my === 'undefined') {
  8946. return
  8947. }
  8948. if (method === 'createSelectorQuery') {
  8949. /* eslint-disable no-undef */
  8950. return my.createSelectorQuery(args)
  8951. } else if (method === 'createIntersectionObserver') {
  8952. /* eslint-disable no-undef */
  8953. return my.createIntersectionObserver(args)
  8954. }
  8955. // TODO mp-alipay 暂不支持 selectAllComponents,selectComponent
  8956. };
  8957. });
  8958. Vue.prototype.__init_provide = initProvide;
  8959. Vue.prototype.__init_injections = initInjections;
  8960. Vue.prototype.__call_hook = function(hook, args) {
  8961. var vm = this;
  8962. // #7573 disable dep collection when invoking lifecycle hooks
  8963. pushTarget();
  8964. var handlers = vm.$options[hook];
  8965. var info = hook + " hook";
  8966. var ret;
  8967. if (handlers) {
  8968. for (var i = 0, j = handlers.length; i < j; i++) {
  8969. ret = invokeWithErrorHandling(handlers[i], vm, args ? [args] : null, vm, info);
  8970. }
  8971. }
  8972. if (vm._hasHookEvent) {
  8973. vm.$emit('hook:' + hook, args);
  8974. }
  8975. popTarget();
  8976. return ret
  8977. };
  8978. Vue.prototype.__set_model = function(target, key, value, modifiers) {
  8979. if (Array.isArray(modifiers)) {
  8980. if (modifiers.indexOf('trim') !== -1) {
  8981. value = value.trim();
  8982. }
  8983. if (modifiers.indexOf('number') !== -1) {
  8984. value = this._n(value);
  8985. }
  8986. }
  8987. if (!target) {
  8988. target = this;
  8989. }
  8990. // 解决动态属性添加
  8991. Vue.set(target, key, value);
  8992. };
  8993. Vue.prototype.__set_sync = function(target, key, value) {
  8994. if (!target) {
  8995. target = this;
  8996. }
  8997. // 解决动态属性添加
  8998. Vue.set(target, key, value);
  8999. };
  9000. Vue.prototype.__get_orig = function(item) {
  9001. if (isPlainObject(item)) {
  9002. return item['$orig'] || item
  9003. }
  9004. return item
  9005. };
  9006. Vue.prototype.__get_value = function(dataPath, target) {
  9007. return getTarget(target || this, dataPath)
  9008. };
  9009. Vue.prototype.__get_class = function(dynamicClass, staticClass) {
  9010. return renderClass(staticClass, dynamicClass)
  9011. };
  9012. Vue.prototype.__get_style = function(dynamicStyle, staticStyle) {
  9013. if (!dynamicStyle && !staticStyle) {
  9014. return ''
  9015. }
  9016. var dynamicStyleObj = normalizeStyleBinding(dynamicStyle);
  9017. var styleObj = staticStyle ? extend(staticStyle, dynamicStyleObj) : dynamicStyleObj;
  9018. return Object.keys(styleObj).map(function (name) { return ((hyphenate(name)) + ":" + (styleObj[name])); }).join(';')
  9019. };
  9020. Vue.prototype.__map = function(val, iteratee) {
  9021. //TODO 暂不考虑 string
  9022. var ret, i, l, keys, key;
  9023. if (Array.isArray(val)) {
  9024. ret = new Array(val.length);
  9025. for (i = 0, l = val.length; i < l; i++) {
  9026. ret[i] = iteratee(val[i], i);
  9027. }
  9028. return ret
  9029. } else if (isObject(val)) {
  9030. keys = Object.keys(val);
  9031. ret = Object.create(null);
  9032. for (i = 0, l = keys.length; i < l; i++) {
  9033. key = keys[i];
  9034. ret[key] = iteratee(val[key], key, i);
  9035. }
  9036. return ret
  9037. } else if (typeof val === 'number') {
  9038. ret = new Array(val);
  9039. for (i = 0, l = val; i < l; i++) {
  9040. // 第一个参数暂时仍和小程序一致
  9041. ret[i] = iteratee(i, i);
  9042. }
  9043. return ret
  9044. }
  9045. return []
  9046. };
  9047. }
  9048. /* */
  9049. var LIFECYCLE_HOOKS$1 = [
  9050. //App
  9051. 'onLaunch',
  9052. 'onShow',
  9053. 'onHide',
  9054. 'onUniNViewMessage',
  9055. 'onPageNotFound',
  9056. 'onThemeChange',
  9057. 'onError',
  9058. 'onUnhandledRejection',
  9059. //Page
  9060. 'onInit',
  9061. 'onLoad',
  9062. // 'onShow',
  9063. 'onReady',
  9064. // 'onHide',
  9065. 'onUnload',
  9066. 'onPullDownRefresh',
  9067. 'onReachBottom',
  9068. 'onTabItemTap',
  9069. 'onAddToFavorites',
  9070. 'onShareTimeline',
  9071. 'onShareAppMessage',
  9072. 'onResize',
  9073. 'onPageScroll',
  9074. 'onNavigationBarButtonTap',
  9075. 'onBackPress',
  9076. 'onNavigationBarSearchInputChanged',
  9077. 'onNavigationBarSearchInputConfirmed',
  9078. 'onNavigationBarSearchInputClicked',
  9079. //Component
  9080. // 'onReady', // 兼容旧版本,应该移除该事件
  9081. 'onPageShow',
  9082. 'onPageHide',
  9083. 'onPageResize',
  9084. 'onUploadDouyinVideo'
  9085. ];
  9086. function lifecycleMixin$1(Vue) {
  9087. //fixed vue-class-component
  9088. var oldExtend = Vue.extend;
  9089. Vue.extend = function(extendOptions) {
  9090. extendOptions = extendOptions || {};
  9091. var methods = extendOptions.methods;
  9092. if (methods) {
  9093. Object.keys(methods).forEach(function (methodName) {
  9094. if (LIFECYCLE_HOOKS$1.indexOf(methodName)!==-1) {
  9095. extendOptions[methodName] = methods[methodName];
  9096. delete methods[methodName];
  9097. }
  9098. });
  9099. }
  9100. return oldExtend.call(this, extendOptions)
  9101. };
  9102. var strategies = Vue.config.optionMergeStrategies;
  9103. var mergeHook = strategies.created;
  9104. LIFECYCLE_HOOKS$1.forEach(function (hook) {
  9105. strategies[hook] = mergeHook;
  9106. });
  9107. Vue.prototype.__lifecycle_hooks__ = LIFECYCLE_HOOKS$1;
  9108. }
  9109. /* */
  9110. // install platform patch function
  9111. Vue.prototype.__patch__ = patch;
  9112. // public mount method
  9113. Vue.prototype.$mount = function(
  9114. el ,
  9115. hydrating
  9116. ) {
  9117. return mountComponent$1(this, el, hydrating)
  9118. };
  9119. lifecycleMixin$1(Vue);
  9120. internalMixin(Vue);
  9121. /* */
  9122. /* harmony default export */ __webpack_exports__["default"] = (Vue);
  9123. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../../../webpack/buildin/global.js */ 2)))
  9124. /***/ }),
  9125. /* 25 */
  9126. /*!*******************************************!*\
  9127. !*** F:/HBuilderProjects/test/pages.json ***!
  9128. \*******************************************/
  9129. /*! no static exports found */
  9130. /***/ (function(module, exports) {
  9131. /***/ }),
  9132. /* 26 */,
  9133. /* 27 */,
  9134. /* 28 */,
  9135. /* 29 */,
  9136. /* 30 */,
  9137. /* 31 */
  9138. /*!**********************************************************************************************************!*\
  9139. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js ***!
  9140. \**********************************************************************************************************/
  9141. /*! exports provided: default */
  9142. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9143. "use strict";
  9144. __webpack_require__.r(__webpack_exports__);
  9145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeComponent; });
  9146. /* globals __VUE_SSR_CONTEXT__ */
  9147. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  9148. // This module is a runtime utility for cleaner component module output and will
  9149. // be included in the final webpack user bundle.
  9150. function normalizeComponent (
  9151. scriptExports,
  9152. render,
  9153. staticRenderFns,
  9154. functionalTemplate,
  9155. injectStyles,
  9156. scopeId,
  9157. moduleIdentifier, /* server only */
  9158. shadowMode, /* vue-cli only */
  9159. components, // fixed by xxxxxx auto components
  9160. renderjs // fixed by xxxxxx renderjs
  9161. ) {
  9162. // Vue.extend constructor export interop
  9163. var options = typeof scriptExports === 'function'
  9164. ? scriptExports.options
  9165. : scriptExports
  9166. // fixed by xxxxxx auto components
  9167. if (components) {
  9168. if (!options.components) {
  9169. options.components = {}
  9170. }
  9171. var hasOwn = Object.prototype.hasOwnProperty
  9172. for (var name in components) {
  9173. if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {
  9174. options.components[name] = components[name]
  9175. }
  9176. }
  9177. }
  9178. // fixed by xxxxxx renderjs
  9179. if (renderjs) {
  9180. if(typeof renderjs.beforeCreate === 'function'){
  9181. renderjs.beforeCreate = [renderjs.beforeCreate]
  9182. }
  9183. (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {
  9184. this[renderjs.__module] = this
  9185. });
  9186. (options.mixins || (options.mixins = [])).push(renderjs)
  9187. }
  9188. // render functions
  9189. if (render) {
  9190. options.render = render
  9191. options.staticRenderFns = staticRenderFns
  9192. options._compiled = true
  9193. }
  9194. // functional template
  9195. if (functionalTemplate) {
  9196. options.functional = true
  9197. }
  9198. // scopedId
  9199. if (scopeId) {
  9200. options._scopeId = 'data-v-' + scopeId
  9201. }
  9202. var hook
  9203. if (moduleIdentifier) { // server build
  9204. hook = function (context) {
  9205. // 2.3 injection
  9206. context =
  9207. context || // cached call
  9208. (this.$vnode && this.$vnode.ssrContext) || // stateful
  9209. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  9210. // 2.2 with runInNewContext: true
  9211. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  9212. context = __VUE_SSR_CONTEXT__
  9213. }
  9214. // inject component styles
  9215. if (injectStyles) {
  9216. injectStyles.call(this, context)
  9217. }
  9218. // register component module identifier for async chunk inferrence
  9219. if (context && context._registeredComponents) {
  9220. context._registeredComponents.add(moduleIdentifier)
  9221. }
  9222. }
  9223. // used by ssr in case component is cached and beforeCreate
  9224. // never gets called
  9225. options._ssrRegister = hook
  9226. } else if (injectStyles) {
  9227. hook = shadowMode
  9228. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  9229. : injectStyles
  9230. }
  9231. if (hook) {
  9232. if (options.functional) {
  9233. // for template-only hot-reload because in that case the render fn doesn't
  9234. // go through the normalizer
  9235. options._injectStyles = hook
  9236. // register for functioal component in vue file
  9237. var originalRender = options.render
  9238. options.render = function renderWithStyleInjection (h, context) {
  9239. hook.call(context)
  9240. return originalRender(h, context)
  9241. }
  9242. } else {
  9243. // inject component registration as beforeCreate hook
  9244. var existing = options.beforeCreate
  9245. options.beforeCreate = existing
  9246. ? [].concat(existing, hook)
  9247. : [hook]
  9248. }
  9249. }
  9250. return {
  9251. exports: scriptExports,
  9252. options: options
  9253. }
  9254. }
  9255. /***/ }),
  9256. /* 32 */
  9257. /*!*********************************************************!*\
  9258. !*** F:/HBuilderProjects/test/uni.promisify.adaptor.js ***!
  9259. \*********************************************************/
  9260. /*! no static exports found */
  9261. /***/ (function(module, exports, __webpack_require__) {
  9262. /* WEBPACK VAR INJECTION */(function(uni) {var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 12);
  9263. uni.addInterceptor({
  9264. returnValue: function returnValue(res) {
  9265. if (!(!!res && (_typeof(res) === "object" || typeof res === "function") && typeof res.then === "function")) {
  9266. return res;
  9267. }
  9268. return new Promise(function (resolve, reject) {
  9269. res.then(function (res) {
  9270. return res[0] ? reject(res[0]) : resolve(res[1]);
  9271. });
  9272. });
  9273. }
  9274. });
  9275. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  9276. /***/ }),
  9277. /* 33 */
  9278. /*!**************************************************************!*\
  9279. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/index.js ***!
  9280. \**************************************************************/
  9281. /*! no static exports found */
  9282. /***/ (function(module, exports, __webpack_require__) {
  9283. "use strict";
  9284. /* WEBPACK VAR INJECTION */(function(uni) {
  9285. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9286. Object.defineProperty(exports, "__esModule", {
  9287. value: true
  9288. });
  9289. exports.default = void 0;
  9290. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  9291. var _mixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mixin.js */ 34));
  9292. var _mpMixin = _interopRequireDefault(__webpack_require__(/*! ./libs/mixin/mpMixin.js */ 35));
  9293. var _luchRequest = _interopRequireDefault(__webpack_require__(/*! ./libs/luch-request */ 36));
  9294. var _route = _interopRequireDefault(__webpack_require__(/*! ./libs/util/route.js */ 54));
  9295. var _colorGradient = _interopRequireDefault(__webpack_require__(/*! ./libs/function/colorGradient.js */ 58));
  9296. var _test = _interopRequireDefault(__webpack_require__(/*! ./libs/function/test.js */ 59));
  9297. var _debounce = _interopRequireDefault(__webpack_require__(/*! ./libs/function/debounce.js */ 60));
  9298. var _throttle = _interopRequireDefault(__webpack_require__(/*! ./libs/function/throttle.js */ 61));
  9299. var _index = _interopRequireDefault(__webpack_require__(/*! ./libs/function/index.js */ 62));
  9300. var _config = _interopRequireDefault(__webpack_require__(/*! ./libs/config/config.js */ 65));
  9301. var _props = _interopRequireDefault(__webpack_require__(/*! ./libs/config/props.js */ 66));
  9302. var _zIndex = _interopRequireDefault(__webpack_require__(/*! ./libs/config/zIndex.js */ 156));
  9303. var _color = _interopRequireDefault(__webpack_require__(/*! ./libs/config/color.js */ 114));
  9304. var _platform = _interopRequireDefault(__webpack_require__(/*! ./libs/function/platform */ 157));
  9305. 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; }
  9306. 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; }
  9307. // 看到此报错,是因为没有配置vue.config.js的【transpileDependencies】,详见:https://www.uviewui.com/components/npmSetting.html#_5-cli模式额外配置
  9308. var pleaseSetTranspileDependencies = {},
  9309. babelTest = pleaseSetTranspileDependencies === null || pleaseSetTranspileDependencies === void 0 ? void 0 : pleaseSetTranspileDependencies.test;
  9310. // 引入全局mixin
  9311. var $u = _objectSpread(_objectSpread({
  9312. route: _route.default,
  9313. date: _index.default.timeFormat,
  9314. // 另名date
  9315. colorGradient: _colorGradient.default.colorGradient,
  9316. hexToRgb: _colorGradient.default.hexToRgb,
  9317. rgbToHex: _colorGradient.default.rgbToHex,
  9318. colorToRgba: _colorGradient.default.colorToRgba,
  9319. test: _test.default,
  9320. type: ['primary', 'success', 'error', 'warning', 'info'],
  9321. http: new _luchRequest.default(),
  9322. config: _config.default,
  9323. // uView配置信息相关,比如版本号
  9324. zIndex: _zIndex.default,
  9325. debounce: _debounce.default,
  9326. throttle: _throttle.default,
  9327. mixin: _mixin.default,
  9328. mpMixin: _mpMixin.default,
  9329. props: _props.default
  9330. }, _index.default), {}, {
  9331. color: _color.default,
  9332. platform: _platform.default
  9333. });
  9334. // $u挂载到uni对象上
  9335. uni.$u = $u;
  9336. var install = function install(Vue) {
  9337. // 时间格式化,同时两个名称,date和timeFormat
  9338. Vue.filter('timeFormat', function (timestamp, format) {
  9339. return uni.$u.timeFormat(timestamp, format);
  9340. });
  9341. Vue.filter('date', function (timestamp, format) {
  9342. return uni.$u.timeFormat(timestamp, format);
  9343. });
  9344. // 将多久以前的方法,注入到全局过滤器
  9345. Vue.filter('timeFrom', function (timestamp, format) {
  9346. return uni.$u.timeFrom(timestamp, format);
  9347. });
  9348. // 同时挂载到uni和Vue.prototype中
  9349. // 只有vue,挂载到Vue.prototype才有意义,因为nvue中全局Vue.prototype和Vue.mixin是无效的
  9350. Vue.prototype.$u = $u;
  9351. Vue.mixin(_mixin.default);
  9352. };
  9353. var _default = {
  9354. install: install
  9355. };
  9356. exports.default = _default;
  9357. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  9358. /***/ }),
  9359. /* 34 */
  9360. /*!*************************************************************************!*\
  9361. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/mixin/mixin.js ***!
  9362. \*************************************************************************/
  9363. /*! no static exports found */
  9364. /***/ (function(module, exports, __webpack_require__) {
  9365. /* WEBPACK VAR INJECTION */(function(uni) {module.exports = {
  9366. // 定义每个组件都可能需要用到的外部样式以及类名
  9367. props: {
  9368. // 每个组件都有的父组件传递的样式,可以为字符串或者对象形式
  9369. customStyle: {
  9370. type: [Object, String],
  9371. default: function _default() {
  9372. return {};
  9373. }
  9374. },
  9375. customClass: {
  9376. type: String,
  9377. default: ''
  9378. },
  9379. // 跳转的页面路径
  9380. url: {
  9381. type: String,
  9382. default: ''
  9383. },
  9384. // 页面跳转的类型
  9385. linkType: {
  9386. type: String,
  9387. default: 'navigateTo'
  9388. }
  9389. },
  9390. data: function data() {
  9391. return {};
  9392. },
  9393. onLoad: function onLoad() {
  9394. // getRect挂载到$u上,因为这方法需要使用in(this),所以无法把它独立成一个单独的文件导出
  9395. this.$u.getRect = this.$uGetRect;
  9396. },
  9397. created: function created() {
  9398. // 组件当中,只有created声明周期,为了能在组件使用,故也在created中将方法挂载到$u
  9399. this.$u.getRect = this.$uGetRect;
  9400. },
  9401. computed: {
  9402. // 在2.x版本中,将会把$u挂载到uni对象下,导致在模板中无法使用uni.$u.xxx形式
  9403. // 所以这里通过computed计算属性将其附加到this.$u上,就可以在模板或者js中使用uni.$u.xxx
  9404. // 只在nvue环境通过此方式引入完整的$u,其他平台会出现性能问题,非nvue则按需引入(主要原因是props过大)
  9405. $u: function $u() {
  9406. // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
  9407. return uni.$u.deepMerge(uni.$u, {
  9408. props: undefined,
  9409. http: undefined,
  9410. mixin: undefined
  9411. });
  9412. },
  9413. /**
  9414. * 生成bem规则类名
  9415. * 由于微信小程序,H5,nvue之间绑定class的差异,无法通过:class="[bem()]"的形式进行同用
  9416. * 故采用如下折中做法,最后返回的是数组(一般平台)或字符串(支付宝和字节跳动平台),类似['a', 'b', 'c']或'a b c'的形式
  9417. * @param {String} name 组件名称
  9418. * @param {Array} fixed 一直会存在的类名
  9419. * @param {Array} change 会根据变量值为true或者false而出现或者隐藏的类名
  9420. * @returns {Array|string}
  9421. */
  9422. bem: function bem() {
  9423. return function (name, fixed, change) {
  9424. var _this = this;
  9425. // 类名前缀
  9426. var prefix = "u-".concat(name, "--");
  9427. var classes = {};
  9428. if (fixed) {
  9429. fixed.map(function (item) {
  9430. // 这里的类名,会一直存在
  9431. classes[prefix + _this[item]] = true;
  9432. });
  9433. }
  9434. if (change) {
  9435. change.map(function (item) {
  9436. // 这里的类名,会根据this[item]的值为true或者false,而进行添加或者移除某一个类
  9437. _this[item] ? classes[prefix + item] = _this[item] : delete classes[prefix + item];
  9438. });
  9439. }
  9440. return Object.keys(classes)
  9441. // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
  9442. .join(' ');
  9443. };
  9444. }
  9445. },
  9446. methods: {
  9447. // 跳转某一个页面
  9448. openPage: function openPage() {
  9449. var urlKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'url';
  9450. var url = this[urlKey];
  9451. if (url) {
  9452. // 执行类似uni.navigateTo的方法
  9453. uni[this.linkType]({
  9454. url: url
  9455. });
  9456. }
  9457. },
  9458. // 查询节点信息
  9459. // 目前此方法在支付宝小程序中无法获取组件跟接点的尺寸,为支付宝的bug(2020-07-21)
  9460. // 解决办法为在组件根部再套一个没有任何作用的view元素
  9461. $uGetRect: function $uGetRect(selector, all) {
  9462. var _this2 = this;
  9463. return new Promise(function (resolve) {
  9464. uni.createSelectorQuery().in(_this2)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) {
  9465. if (all && Array.isArray(rect) && rect.length) {
  9466. resolve(rect);
  9467. }
  9468. if (!all && rect) {
  9469. resolve(rect);
  9470. }
  9471. }).exec();
  9472. });
  9473. },
  9474. getParentData: function getParentData() {
  9475. var _this3 = this;
  9476. var parentName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  9477. // 避免在created中去定义parent变量
  9478. if (!this.parent) this.parent = {};
  9479. // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
  9480. // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
  9481. // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
  9482. // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
  9483. this.parent = uni.$u.$parent.call(this, parentName);
  9484. if (this.parent.children) {
  9485. // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
  9486. this.parent.children.indexOf(this) === -1 && this.parent.children.push(this);
  9487. }
  9488. if (this.parent && this.parentData) {
  9489. // 历遍parentData中的属性,将parent中的同名属性赋值给parentData
  9490. Object.keys(this.parentData).map(function (key) {
  9491. _this3.parentData[key] = _this3.parent[key];
  9492. });
  9493. }
  9494. },
  9495. // 阻止事件冒泡
  9496. preventEvent: function preventEvent(e) {
  9497. e && typeof e.stopPropagation === 'function' && e.stopPropagation();
  9498. },
  9499. // 空操作
  9500. noop: function noop(e) {
  9501. this.preventEvent(e);
  9502. }
  9503. },
  9504. onReachBottom: function onReachBottom() {
  9505. uni.$emit('uOnReachBottom');
  9506. },
  9507. beforeDestroy: function beforeDestroy() {
  9508. var _this4 = this;
  9509. // 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
  9510. // 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
  9511. if (this.parent && uni.$u.test.array(this.parent.children)) {
  9512. // 组件销毁时,移除父组件中的children数组中对应的实例
  9513. var childrenList = this.parent.children;
  9514. childrenList.map(function (child, index) {
  9515. // 如果相等,则移除
  9516. if (child === _this4) {
  9517. childrenList.splice(index, 1);
  9518. }
  9519. });
  9520. }
  9521. }
  9522. };
  9523. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  9524. /***/ }),
  9525. /* 35 */
  9526. /*!***************************************************************************!*\
  9527. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/mixin/mpMixin.js ***!
  9528. \***************************************************************************/
  9529. /*! no static exports found */
  9530. /***/ (function(module, exports, __webpack_require__) {
  9531. "use strict";
  9532. Object.defineProperty(exports, "__esModule", {
  9533. value: true
  9534. });
  9535. exports.default = void 0;
  9536. var _default = {};
  9537. exports.default = _default;
  9538. /***/ }),
  9539. /* 36 */
  9540. /*!********************************************************************************!*\
  9541. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/index.js ***!
  9542. \********************************************************************************/
  9543. /*! no static exports found */
  9544. /***/ (function(module, exports, __webpack_require__) {
  9545. "use strict";
  9546. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9547. Object.defineProperty(exports, "__esModule", {
  9548. value: true
  9549. });
  9550. exports.default = void 0;
  9551. var _Request = _interopRequireDefault(__webpack_require__(/*! ./core/Request */ 37));
  9552. var _default = _Request.default;
  9553. exports.default = _default;
  9554. /***/ }),
  9555. /* 37 */
  9556. /*!***************************************************************************************!*\
  9557. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/Request.js ***!
  9558. \***************************************************************************************/
  9559. /*! no static exports found */
  9560. /***/ (function(module, exports, __webpack_require__) {
  9561. "use strict";
  9562. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9563. Object.defineProperty(exports, "__esModule", {
  9564. value: true
  9565. });
  9566. exports.default = void 0;
  9567. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  9568. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 17));
  9569. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 18));
  9570. var _dispatchRequest = _interopRequireDefault(__webpack_require__(/*! ./dispatchRequest */ 38));
  9571. var _InterceptorManager = _interopRequireDefault(__webpack_require__(/*! ./InterceptorManager */ 46));
  9572. var _mergeConfig = _interopRequireDefault(__webpack_require__(/*! ./mergeConfig */ 47));
  9573. var _defaults = _interopRequireDefault(__webpack_require__(/*! ./defaults */ 48));
  9574. var _utils = __webpack_require__(/*! ../utils */ 41);
  9575. var _clone = _interopRequireDefault(__webpack_require__(/*! ../utils/clone */ 49));
  9576. 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; }
  9577. 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; }
  9578. var Request = /*#__PURE__*/function () {
  9579. /**
  9580. * @param {Object} arg - 全局配置
  9581. * @param {String} arg.baseURL - 全局根路径
  9582. * @param {Object} arg.header - 全局header
  9583. * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
  9584. * @param {String} arg.dataType = [json] - 全局默认的dataType
  9585. * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
  9586. * @param {Object} arg.custom - 全局默认的自定义参数
  9587. * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
  9588. * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
  9589. * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
  9590. * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
  9591. * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
  9592. */
  9593. function Request() {
  9594. var arg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9595. (0, _classCallCheck2.default)(this, Request);
  9596. if (!(0, _utils.isPlainObject)(arg)) {
  9597. arg = {};
  9598. console.warn('设置全局参数必须接收一个Object');
  9599. }
  9600. this.config = (0, _clone.default)(_objectSpread(_objectSpread({}, _defaults.default), arg));
  9601. this.interceptors = {
  9602. request: new _InterceptorManager.default(),
  9603. response: new _InterceptorManager.default()
  9604. };
  9605. }
  9606. /**
  9607. * @Function
  9608. * @param {Request~setConfigCallback} f - 设置全局默认配置
  9609. */
  9610. (0, _createClass2.default)(Request, [{
  9611. key: "setConfig",
  9612. value: function setConfig(f) {
  9613. this.config = f(this.config);
  9614. }
  9615. }, {
  9616. key: "middleware",
  9617. value: function middleware(config) {
  9618. config = (0, _mergeConfig.default)(this.config, config);
  9619. var chain = [_dispatchRequest.default, undefined];
  9620. var promise = Promise.resolve(config);
  9621. this.interceptors.request.forEach(function (interceptor) {
  9622. chain.unshift(interceptor.fulfilled, interceptor.rejected);
  9623. });
  9624. this.interceptors.response.forEach(function (interceptor) {
  9625. chain.push(interceptor.fulfilled, interceptor.rejected);
  9626. });
  9627. while (chain.length) {
  9628. promise = promise.then(chain.shift(), chain.shift());
  9629. }
  9630. return promise;
  9631. }
  9632. /**
  9633. * @Function
  9634. * @param {Object} config - 请求配置项
  9635. * @prop {String} options.url - 请求路径
  9636. * @prop {Object} options.data - 请求参数
  9637. * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
  9638. * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
  9639. * @prop {Object} [options.header = config.header] - 请求header
  9640. * @prop {Object} [options.method = config.method] - 请求方法
  9641. * @returns {Promise<unknown>}
  9642. */
  9643. }, {
  9644. key: "request",
  9645. value: function request() {
  9646. var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  9647. return this.middleware(config);
  9648. }
  9649. }, {
  9650. key: "get",
  9651. value: function get(url) {
  9652. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9653. return this.middleware(_objectSpread({
  9654. url: url,
  9655. method: 'GET'
  9656. }, options));
  9657. }
  9658. }, {
  9659. key: "post",
  9660. value: function post(url, data) {
  9661. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9662. return this.middleware(_objectSpread({
  9663. url: url,
  9664. data: data,
  9665. method: 'POST'
  9666. }, options));
  9667. }
  9668. }, {
  9669. key: "put",
  9670. value: function put(url, data) {
  9671. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  9672. return this.middleware(_objectSpread({
  9673. url: url,
  9674. data: data,
  9675. method: 'PUT'
  9676. }, options));
  9677. }
  9678. }, {
  9679. key: "upload",
  9680. value: function upload(url) {
  9681. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9682. config.url = url;
  9683. config.method = 'UPLOAD';
  9684. return this.middleware(config);
  9685. }
  9686. }, {
  9687. key: "download",
  9688. value: function download(url) {
  9689. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  9690. config.url = url;
  9691. config.method = 'DOWNLOAD';
  9692. return this.middleware(config);
  9693. }
  9694. }]);
  9695. return Request;
  9696. }();
  9697. /**
  9698. * setConfig回调
  9699. * @return {Object} - 返回操作后的config
  9700. * @callback Request~setConfigCallback
  9701. * @param {Object} config - 全局默认config
  9702. */
  9703. exports.default = Request;
  9704. /***/ }),
  9705. /* 38 */
  9706. /*!***********************************************************************************************!*\
  9707. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/dispatchRequest.js ***!
  9708. \***********************************************************************************************/
  9709. /*! no static exports found */
  9710. /***/ (function(module, exports, __webpack_require__) {
  9711. "use strict";
  9712. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9713. Object.defineProperty(exports, "__esModule", {
  9714. value: true
  9715. });
  9716. exports.default = void 0;
  9717. var _index = _interopRequireDefault(__webpack_require__(/*! ../adapters/index */ 39));
  9718. var _default = function _default(config) {
  9719. return (0, _index.default)(config);
  9720. };
  9721. exports.default = _default;
  9722. /***/ }),
  9723. /* 39 */
  9724. /*!*****************************************************************************************!*\
  9725. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/adapters/index.js ***!
  9726. \*****************************************************************************************/
  9727. /*! no static exports found */
  9728. /***/ (function(module, exports, __webpack_require__) {
  9729. "use strict";
  9730. /* WEBPACK VAR INJECTION */(function(uni) {
  9731. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9732. Object.defineProperty(exports, "__esModule", {
  9733. value: true
  9734. });
  9735. exports.default = void 0;
  9736. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  9737. var _buildURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/buildURL */ 40));
  9738. var _buildFullPath = _interopRequireDefault(__webpack_require__(/*! ../core/buildFullPath */ 42));
  9739. var _settle = _interopRequireDefault(__webpack_require__(/*! ../core/settle */ 45));
  9740. var _utils = __webpack_require__(/*! ../utils */ 41);
  9741. 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; }
  9742. 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; }
  9743. /**
  9744. * 返回可选值存在的配置
  9745. * @param {Array} keys - 可选值数组
  9746. * @param {Object} config2 - 配置
  9747. * @return {{}} - 存在的配置项
  9748. */
  9749. var mergeKeys = function mergeKeys(keys, config2) {
  9750. var config = {};
  9751. keys.forEach(function (prop) {
  9752. if (!(0, _utils.isUndefined)(config2[prop])) {
  9753. config[prop] = config2[prop];
  9754. }
  9755. });
  9756. return config;
  9757. };
  9758. var _default = function _default(config) {
  9759. return new Promise(function (resolve, reject) {
  9760. var fullPath = (0, _buildURL.default)((0, _buildFullPath.default)(config.baseURL, config.url), config.params);
  9761. var _config = {
  9762. url: fullPath,
  9763. header: config.header,
  9764. complete: function complete(response) {
  9765. config.fullPath = fullPath;
  9766. response.config = config;
  9767. try {
  9768. // 对可能字符串不是json 的情况容错
  9769. if (typeof response.data === 'string') {
  9770. response.data = JSON.parse(response.data);
  9771. }
  9772. // eslint-disable-next-line no-empty
  9773. } catch (e) {}
  9774. (0, _settle.default)(resolve, reject, response);
  9775. }
  9776. };
  9777. var requestTask;
  9778. if (config.method === 'UPLOAD') {
  9779. delete _config.header['content-type'];
  9780. delete _config.header['Content-Type'];
  9781. var otherConfig = {
  9782. filePath: config.filePath,
  9783. name: config.name
  9784. };
  9785. var optionalKeys = ['formData'];
  9786. requestTask = uni.uploadFile(_objectSpread(_objectSpread(_objectSpread({}, _config), otherConfig), mergeKeys(optionalKeys, config)));
  9787. } else if (config.method === 'DOWNLOAD') {
  9788. requestTask = uni.downloadFile(_config);
  9789. } else {
  9790. var _optionalKeys = ['data', 'method', 'dataType', 'responseType'];
  9791. requestTask = uni.request(_objectSpread(_objectSpread({}, _config), mergeKeys(_optionalKeys, config)));
  9792. }
  9793. if (config.getTask) {
  9794. config.getTask(requestTask, config);
  9795. }
  9796. });
  9797. };
  9798. exports.default = _default;
  9799. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  9800. /***/ }),
  9801. /* 40 */
  9802. /*!*******************************************************************************************!*\
  9803. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/helpers/buildURL.js ***!
  9804. \*******************************************************************************************/
  9805. /*! no static exports found */
  9806. /***/ (function(module, exports, __webpack_require__) {
  9807. "use strict";
  9808. var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ 12);
  9809. Object.defineProperty(exports, "__esModule", {
  9810. value: true
  9811. });
  9812. exports.default = buildURL;
  9813. var utils = _interopRequireWildcard(__webpack_require__(/*! ../utils */ 41));
  9814. 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); }
  9815. 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; }
  9816. function encode(val) {
  9817. return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
  9818. }
  9819. /**
  9820. * Build a URL by appending params to the end
  9821. *
  9822. * @param {string} url The base of the url (e.g., http://www.google.com)
  9823. * @param {object} [params] The params to be appended
  9824. * @returns {string} The formatted url
  9825. */
  9826. function buildURL(url, params) {
  9827. /* eslint no-param-reassign:0 */
  9828. if (!params) {
  9829. return url;
  9830. }
  9831. var serializedParams;
  9832. if (utils.isURLSearchParams(params)) {
  9833. serializedParams = params.toString();
  9834. } else {
  9835. var parts = [];
  9836. utils.forEach(params, function (val, key) {
  9837. if (val === null || typeof val === 'undefined') {
  9838. return;
  9839. }
  9840. if (utils.isArray(val)) {
  9841. key = "".concat(key, "[]");
  9842. } else {
  9843. val = [val];
  9844. }
  9845. utils.forEach(val, function (v) {
  9846. if (utils.isDate(v)) {
  9847. v = v.toISOString();
  9848. } else if (utils.isObject(v)) {
  9849. v = JSON.stringify(v);
  9850. }
  9851. parts.push("".concat(encode(key), "=").concat(encode(v)));
  9852. });
  9853. });
  9854. serializedParams = parts.join('&');
  9855. }
  9856. if (serializedParams) {
  9857. var hashmarkIndex = url.indexOf('#');
  9858. if (hashmarkIndex !== -1) {
  9859. url = url.slice(0, hashmarkIndex);
  9860. }
  9861. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  9862. }
  9863. return url;
  9864. }
  9865. /***/ }),
  9866. /* 41 */
  9867. /*!********************************************************************************!*\
  9868. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/utils.js ***!
  9869. \********************************************************************************/
  9870. /*! no static exports found */
  9871. /***/ (function(module, exports, __webpack_require__) {
  9872. "use strict";
  9873. // utils is a library of generic helper functions non-specific to axios
  9874. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  9875. Object.defineProperty(exports, "__esModule", {
  9876. value: true
  9877. });
  9878. exports.deepMerge = deepMerge;
  9879. exports.forEach = forEach;
  9880. exports.isArray = isArray;
  9881. exports.isBoolean = isBoolean;
  9882. exports.isDate = isDate;
  9883. exports.isObject = isObject;
  9884. exports.isPlainObject = isPlainObject;
  9885. exports.isURLSearchParams = isURLSearchParams;
  9886. exports.isUndefined = isUndefined;
  9887. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  9888. var toString = Object.prototype.toString;
  9889. /**
  9890. * Determine if a value is an Array
  9891. *
  9892. * @param {Object} val The value to test
  9893. * @returns {boolean} True if value is an Array, otherwise false
  9894. */
  9895. function isArray(val) {
  9896. return toString.call(val) === '[object Array]';
  9897. }
  9898. /**
  9899. * Determine if a value is an Object
  9900. *
  9901. * @param {Object} val The value to test
  9902. * @returns {boolean} True if value is an Object, otherwise false
  9903. */
  9904. function isObject(val) {
  9905. return val !== null && (0, _typeof2.default)(val) === 'object';
  9906. }
  9907. /**
  9908. * Determine if a value is a Date
  9909. *
  9910. * @param {Object} val The value to test
  9911. * @returns {boolean} True if value is a Date, otherwise false
  9912. */
  9913. function isDate(val) {
  9914. return toString.call(val) === '[object Date]';
  9915. }
  9916. /**
  9917. * Determine if a value is a URLSearchParams object
  9918. *
  9919. * @param {Object} val The value to test
  9920. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  9921. */
  9922. function isURLSearchParams(val) {
  9923. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  9924. }
  9925. /**
  9926. * Iterate over an Array or an Object invoking a function for each item.
  9927. *
  9928. * If `obj` is an Array callback will be called passing
  9929. * the value, index, and complete array for each item.
  9930. *
  9931. * If 'obj' is an Object callback will be called passing
  9932. * the value, key, and complete object for each property.
  9933. *
  9934. * @param {Object|Array} obj The object to iterate
  9935. * @param {Function} fn The callback to invoke for each item
  9936. */
  9937. function forEach(obj, fn) {
  9938. // Don't bother if no value provided
  9939. if (obj === null || typeof obj === 'undefined') {
  9940. return;
  9941. }
  9942. // Force an array if not already something iterable
  9943. if ((0, _typeof2.default)(obj) !== 'object') {
  9944. /* eslint no-param-reassign:0 */
  9945. obj = [obj];
  9946. }
  9947. if (isArray(obj)) {
  9948. // Iterate over array values
  9949. for (var i = 0, l = obj.length; i < l; i++) {
  9950. fn.call(null, obj[i], i, obj);
  9951. }
  9952. } else {
  9953. // Iterate over object keys
  9954. for (var key in obj) {
  9955. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  9956. fn.call(null, obj[key], key, obj);
  9957. }
  9958. }
  9959. }
  9960. }
  9961. /**
  9962. * 是否为boolean 值
  9963. * @param val
  9964. * @returns {boolean}
  9965. */
  9966. function isBoolean(val) {
  9967. return typeof val === 'boolean';
  9968. }
  9969. /**
  9970. * 是否为真正的对象{} new Object
  9971. * @param {any} obj - 检测的对象
  9972. * @returns {boolean}
  9973. */
  9974. function isPlainObject(obj) {
  9975. return Object.prototype.toString.call(obj) === '[object Object]';
  9976. }
  9977. /**
  9978. * Function equal to merge with the difference being that no reference
  9979. * to original objects is kept.
  9980. *
  9981. * @see merge
  9982. * @param {Object} obj1 Object to merge
  9983. * @returns {Object} Result of all merge properties
  9984. */
  9985. function deepMerge( /* obj1, obj2, obj3, ... */
  9986. ) {
  9987. var result = {};
  9988. function assignValue(val, key) {
  9989. if ((0, _typeof2.default)(result[key]) === 'object' && (0, _typeof2.default)(val) === 'object') {
  9990. result[key] = deepMerge(result[key], val);
  9991. } else if ((0, _typeof2.default)(val) === 'object') {
  9992. result[key] = deepMerge({}, val);
  9993. } else {
  9994. result[key] = val;
  9995. }
  9996. }
  9997. for (var i = 0, l = arguments.length; i < l; i++) {
  9998. forEach(arguments[i], assignValue);
  9999. }
  10000. return result;
  10001. }
  10002. function isUndefined(val) {
  10003. return typeof val === 'undefined';
  10004. }
  10005. /***/ }),
  10006. /* 42 */
  10007. /*!*********************************************************************************************!*\
  10008. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/buildFullPath.js ***!
  10009. \*********************************************************************************************/
  10010. /*! no static exports found */
  10011. /***/ (function(module, exports, __webpack_require__) {
  10012. "use strict";
  10013. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10014. Object.defineProperty(exports, "__esModule", {
  10015. value: true
  10016. });
  10017. exports.default = buildFullPath;
  10018. var _isAbsoluteURL = _interopRequireDefault(__webpack_require__(/*! ../helpers/isAbsoluteURL */ 43));
  10019. var _combineURLs = _interopRequireDefault(__webpack_require__(/*! ../helpers/combineURLs */ 44));
  10020. /**
  10021. * Creates a new URL by combining the baseURL with the requestedURL,
  10022. * only when the requestedURL is not already an absolute URL.
  10023. * If the requestURL is absolute, this function returns the requestedURL untouched.
  10024. *
  10025. * @param {string} baseURL The base URL
  10026. * @param {string} requestedURL Absolute or relative URL to combine
  10027. * @returns {string} The combined full path
  10028. */
  10029. function buildFullPath(baseURL, requestedURL) {
  10030. if (baseURL && !(0, _isAbsoluteURL.default)(requestedURL)) {
  10031. return (0, _combineURLs.default)(baseURL, requestedURL);
  10032. }
  10033. return requestedURL;
  10034. }
  10035. /***/ }),
  10036. /* 43 */
  10037. /*!************************************************************************************************!*\
  10038. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js ***!
  10039. \************************************************************************************************/
  10040. /*! no static exports found */
  10041. /***/ (function(module, exports, __webpack_require__) {
  10042. "use strict";
  10043. /**
  10044. * Determines whether the specified URL is absolute
  10045. *
  10046. * @param {string} url The URL to test
  10047. * @returns {boolean} True if the specified URL is absolute, otherwise false
  10048. */
  10049. Object.defineProperty(exports, "__esModule", {
  10050. value: true
  10051. });
  10052. exports.default = isAbsoluteURL;
  10053. function isAbsoluteURL(url) {
  10054. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  10055. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  10056. // by any combination of letters, digits, plus, period, or hyphen.
  10057. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  10058. }
  10059. /***/ }),
  10060. /* 44 */
  10061. /*!**********************************************************************************************!*\
  10062. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/helpers/combineURLs.js ***!
  10063. \**********************************************************************************************/
  10064. /*! no static exports found */
  10065. /***/ (function(module, exports, __webpack_require__) {
  10066. "use strict";
  10067. /**
  10068. * Creates a new URL by combining the specified URLs
  10069. *
  10070. * @param {string} baseURL The base URL
  10071. * @param {string} relativeURL The relative URL
  10072. * @returns {string} The combined URL
  10073. */
  10074. Object.defineProperty(exports, "__esModule", {
  10075. value: true
  10076. });
  10077. exports.default = combineURLs;
  10078. function combineURLs(baseURL, relativeURL) {
  10079. return relativeURL ? "".concat(baseURL.replace(/\/+$/, ''), "/").concat(relativeURL.replace(/^\/+/, '')) : baseURL;
  10080. }
  10081. /***/ }),
  10082. /* 45 */
  10083. /*!**************************************************************************************!*\
  10084. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/settle.js ***!
  10085. \**************************************************************************************/
  10086. /*! no static exports found */
  10087. /***/ (function(module, exports, __webpack_require__) {
  10088. "use strict";
  10089. Object.defineProperty(exports, "__esModule", {
  10090. value: true
  10091. });
  10092. exports.default = settle;
  10093. /**
  10094. * Resolve or reject a Promise based on response status.
  10095. *
  10096. * @param {Function} resolve A function that resolves the promise.
  10097. * @param {Function} reject A function that rejects the promise.
  10098. * @param {object} response The response.
  10099. */
  10100. function settle(resolve, reject, response) {
  10101. var validateStatus = response.config.validateStatus;
  10102. var status = response.statusCode;
  10103. if (status && (!validateStatus || validateStatus(status))) {
  10104. resolve(response);
  10105. } else {
  10106. reject(response);
  10107. }
  10108. }
  10109. /***/ }),
  10110. /* 46 */
  10111. /*!**************************************************************************************************!*\
  10112. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/InterceptorManager.js ***!
  10113. \**************************************************************************************************/
  10114. /*! no static exports found */
  10115. /***/ (function(module, exports, __webpack_require__) {
  10116. "use strict";
  10117. Object.defineProperty(exports, "__esModule", {
  10118. value: true
  10119. });
  10120. exports.default = void 0;
  10121. function InterceptorManager() {
  10122. this.handlers = [];
  10123. }
  10124. /**
  10125. * Add a new interceptor to the stack
  10126. *
  10127. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  10128. * @param {Function} rejected The function to handle `reject` for a `Promise`
  10129. *
  10130. * @return {Number} An ID used to remove interceptor later
  10131. */
  10132. InterceptorManager.prototype.use = function use(fulfilled, rejected) {
  10133. this.handlers.push({
  10134. fulfilled: fulfilled,
  10135. rejected: rejected
  10136. });
  10137. return this.handlers.length - 1;
  10138. };
  10139. /**
  10140. * Remove an interceptor from the stack
  10141. *
  10142. * @param {Number} id The ID that was returned by `use`
  10143. */
  10144. InterceptorManager.prototype.eject = function eject(id) {
  10145. if (this.handlers[id]) {
  10146. this.handlers[id] = null;
  10147. }
  10148. };
  10149. /**
  10150. * Iterate over all the registered interceptors
  10151. *
  10152. * This method is particularly useful for skipping over any
  10153. * interceptors that may have become `null` calling `eject`.
  10154. *
  10155. * @param {Function} fn The function to call for each interceptor
  10156. */
  10157. InterceptorManager.prototype.forEach = function forEach(fn) {
  10158. this.handlers.forEach(function (h) {
  10159. if (h !== null) {
  10160. fn(h);
  10161. }
  10162. });
  10163. };
  10164. var _default = InterceptorManager;
  10165. exports.default = _default;
  10166. /***/ }),
  10167. /* 47 */
  10168. /*!*******************************************************************************************!*\
  10169. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js ***!
  10170. \*******************************************************************************************/
  10171. /*! no static exports found */
  10172. /***/ (function(module, exports, __webpack_require__) {
  10173. "use strict";
  10174. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10175. Object.defineProperty(exports, "__esModule", {
  10176. value: true
  10177. });
  10178. exports.default = void 0;
  10179. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  10180. var _utils = __webpack_require__(/*! ../utils */ 41);
  10181. 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; }
  10182. 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; }
  10183. /**
  10184. * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局
  10185. * @param {Array} keys - 配置项
  10186. * @param {Object} globalsConfig - 当前的全局配置
  10187. * @param {Object} config2 - 局部配置
  10188. * @return {{}}
  10189. */
  10190. var mergeKeys = function mergeKeys(keys, globalsConfig, config2) {
  10191. var config = {};
  10192. keys.forEach(function (prop) {
  10193. if (!(0, _utils.isUndefined)(config2[prop])) {
  10194. config[prop] = config2[prop];
  10195. } else if (!(0, _utils.isUndefined)(globalsConfig[prop])) {
  10196. config[prop] = globalsConfig[prop];
  10197. }
  10198. });
  10199. return config;
  10200. };
  10201. /**
  10202. *
  10203. * @param globalsConfig - 当前实例的全局配置
  10204. * @param config2 - 当前的局部配置
  10205. * @return - 合并后的配置
  10206. */
  10207. var _default = function _default(globalsConfig) {
  10208. var config2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  10209. var method = config2.method || globalsConfig.method || 'GET';
  10210. var config = {
  10211. baseURL: globalsConfig.baseURL || '',
  10212. method: method,
  10213. url: config2.url || '',
  10214. params: config2.params || {},
  10215. custom: _objectSpread(_objectSpread({}, globalsConfig.custom || {}), config2.custom || {}),
  10216. header: (0, _utils.deepMerge)(globalsConfig.header || {}, config2.header || {})
  10217. };
  10218. var defaultToConfig2Keys = ['getTask', 'validateStatus'];
  10219. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultToConfig2Keys, globalsConfig, config2));
  10220. // eslint-disable-next-line no-empty
  10221. if (method === 'DOWNLOAD') {} else if (method === 'UPLOAD') {
  10222. delete config.header['content-type'];
  10223. delete config.header['Content-Type'];
  10224. var uploadKeys = ['filePath', 'name', 'formData'];
  10225. uploadKeys.forEach(function (prop) {
  10226. if (!(0, _utils.isUndefined)(config2[prop])) {
  10227. config[prop] = config2[prop];
  10228. }
  10229. });
  10230. } else {
  10231. var defaultsKeys = ['data', 'dataType', 'responseType'];
  10232. config = _objectSpread(_objectSpread({}, config), mergeKeys(defaultsKeys, globalsConfig, config2));
  10233. }
  10234. return config;
  10235. };
  10236. exports.default = _default;
  10237. /***/ }),
  10238. /* 48 */
  10239. /*!****************************************************************************************!*\
  10240. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/core/defaults.js ***!
  10241. \****************************************************************************************/
  10242. /*! no static exports found */
  10243. /***/ (function(module, exports, __webpack_require__) {
  10244. "use strict";
  10245. Object.defineProperty(exports, "__esModule", {
  10246. value: true
  10247. });
  10248. exports.default = void 0;
  10249. /**
  10250. * 默认的全局配置
  10251. */
  10252. var _default = {
  10253. baseURL: '',
  10254. header: {},
  10255. method: 'GET',
  10256. dataType: 'json',
  10257. responseType: 'text',
  10258. custom: {},
  10259. validateStatus: function validateStatus(status) {
  10260. return status >= 200 && status < 300;
  10261. }
  10262. };
  10263. exports.default = _default;
  10264. /***/ }),
  10265. /* 49 */
  10266. /*!**************************************************************************************!*\
  10267. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/luch-request/utils/clone.js ***!
  10268. \**************************************************************************************/
  10269. /*! no static exports found */
  10270. /***/ (function(module, exports, __webpack_require__) {
  10271. "use strict";
  10272. /* WEBPACK VAR INJECTION */(function(Buffer) {
  10273. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  10274. Object.defineProperty(exports, "__esModule", {
  10275. value: true
  10276. });
  10277. exports.default = void 0;
  10278. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  10279. /* eslint-disable */
  10280. var clone = function () {
  10281. 'use strict';
  10282. function _instanceof(obj, type) {
  10283. return type != null && obj instanceof type;
  10284. }
  10285. var nativeMap;
  10286. try {
  10287. nativeMap = Map;
  10288. } catch (_) {
  10289. // maybe a reference error because no `Map`. Give it a dummy value that no
  10290. // value will ever be an instanceof.
  10291. nativeMap = function nativeMap() {};
  10292. }
  10293. var nativeSet;
  10294. try {
  10295. nativeSet = Set;
  10296. } catch (_) {
  10297. nativeSet = function nativeSet() {};
  10298. }
  10299. var nativePromise;
  10300. try {
  10301. nativePromise = Promise;
  10302. } catch (_) {
  10303. nativePromise = function nativePromise() {};
  10304. }
  10305. /**
  10306. * Clones (copies) an Object using deep copying.
  10307. *
  10308. * This function supports circular references by default, but if you are certain
  10309. * there are no circular references in your object, you can save some CPU time
  10310. * by calling clone(obj, false).
  10311. *
  10312. * Caution: if `circular` is false and `parent` contains circular references,
  10313. * your program may enter an infinite loop and crash.
  10314. *
  10315. * @param `parent` - the object to be cloned
  10316. * @param `circular` - set to true if the object to be cloned may contain
  10317. * circular references. (optional - true by default)
  10318. * @param `depth` - set to a number if the object is only to be cloned to
  10319. * a particular depth. (optional - defaults to Infinity)
  10320. * @param `prototype` - sets the prototype to be used when cloning an object.
  10321. * (optional - defaults to parent prototype).
  10322. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  10323. * should be cloned as well. Non-enumerable properties on the prototype
  10324. * chain will be ignored. (optional - false by default)
  10325. */
  10326. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  10327. if ((0, _typeof2.default)(circular) === 'object') {
  10328. depth = circular.depth;
  10329. prototype = circular.prototype;
  10330. includeNonEnumerable = circular.includeNonEnumerable;
  10331. circular = circular.circular;
  10332. }
  10333. // maintain two arrays for circular references, where corresponding parents
  10334. // and children have the same index
  10335. var allParents = [];
  10336. var allChildren = [];
  10337. var useBuffer = typeof Buffer != 'undefined';
  10338. if (typeof circular == 'undefined') circular = true;
  10339. if (typeof depth == 'undefined') depth = Infinity;
  10340. // recurse this function so we don't reset allParents and allChildren
  10341. function _clone(parent, depth) {
  10342. // cloning null always returns null
  10343. if (parent === null) return null;
  10344. if (depth === 0) return parent;
  10345. var child;
  10346. var proto;
  10347. if ((0, _typeof2.default)(parent) != 'object') {
  10348. return parent;
  10349. }
  10350. if (_instanceof(parent, nativeMap)) {
  10351. child = new nativeMap();
  10352. } else if (_instanceof(parent, nativeSet)) {
  10353. child = new nativeSet();
  10354. } else if (_instanceof(parent, nativePromise)) {
  10355. child = new nativePromise(function (resolve, reject) {
  10356. parent.then(function (value) {
  10357. resolve(_clone(value, depth - 1));
  10358. }, function (err) {
  10359. reject(_clone(err, depth - 1));
  10360. });
  10361. });
  10362. } else if (clone.__isArray(parent)) {
  10363. child = [];
  10364. } else if (clone.__isRegExp(parent)) {
  10365. child = new RegExp(parent.source, __getRegExpFlags(parent));
  10366. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  10367. } else if (clone.__isDate(parent)) {
  10368. child = new Date(parent.getTime());
  10369. } else if (useBuffer && Buffer.isBuffer(parent)) {
  10370. if (Buffer.from) {
  10371. // Node.js >= 5.10.0
  10372. child = Buffer.from(parent);
  10373. } else {
  10374. // Older Node.js versions
  10375. child = new Buffer(parent.length);
  10376. parent.copy(child);
  10377. }
  10378. return child;
  10379. } else if (_instanceof(parent, Error)) {
  10380. child = Object.create(parent);
  10381. } else {
  10382. if (typeof prototype == 'undefined') {
  10383. proto = Object.getPrototypeOf(parent);
  10384. child = Object.create(proto);
  10385. } else {
  10386. child = Object.create(prototype);
  10387. proto = prototype;
  10388. }
  10389. }
  10390. if (circular) {
  10391. var index = allParents.indexOf(parent);
  10392. if (index != -1) {
  10393. return allChildren[index];
  10394. }
  10395. allParents.push(parent);
  10396. allChildren.push(child);
  10397. }
  10398. if (_instanceof(parent, nativeMap)) {
  10399. parent.forEach(function (value, key) {
  10400. var keyChild = _clone(key, depth - 1);
  10401. var valueChild = _clone(value, depth - 1);
  10402. child.set(keyChild, valueChild);
  10403. });
  10404. }
  10405. if (_instanceof(parent, nativeSet)) {
  10406. parent.forEach(function (value) {
  10407. var entryChild = _clone(value, depth - 1);
  10408. child.add(entryChild);
  10409. });
  10410. }
  10411. for (var i in parent) {
  10412. var attrs = Object.getOwnPropertyDescriptor(parent, i);
  10413. if (attrs) {
  10414. child[i] = _clone(parent[i], depth - 1);
  10415. }
  10416. try {
  10417. var objProperty = Object.getOwnPropertyDescriptor(parent, i);
  10418. if (objProperty.set === 'undefined') {
  10419. // no setter defined. Skip cloning this property
  10420. continue;
  10421. }
  10422. child[i] = _clone(parent[i], depth - 1);
  10423. } catch (e) {
  10424. if (e instanceof TypeError) {
  10425. // when in strict mode, TypeError will be thrown if child[i] property only has a getter
  10426. // we can't do anything about this, other than inform the user that this property cannot be set.
  10427. continue;
  10428. } else if (e instanceof ReferenceError) {
  10429. //this may happen in non strict mode
  10430. continue;
  10431. }
  10432. }
  10433. }
  10434. if (Object.getOwnPropertySymbols) {
  10435. var symbols = Object.getOwnPropertySymbols(parent);
  10436. for (var i = 0; i < symbols.length; i++) {
  10437. // Don't need to worry about cloning a symbol because it is a primitive,
  10438. // like a number or string.
  10439. var symbol = symbols[i];
  10440. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  10441. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  10442. continue;
  10443. }
  10444. child[symbol] = _clone(parent[symbol], depth - 1);
  10445. Object.defineProperty(child, symbol, descriptor);
  10446. }
  10447. }
  10448. if (includeNonEnumerable) {
  10449. var allPropertyNames = Object.getOwnPropertyNames(parent);
  10450. for (var i = 0; i < allPropertyNames.length; i++) {
  10451. var propertyName = allPropertyNames[i];
  10452. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  10453. if (descriptor && descriptor.enumerable) {
  10454. continue;
  10455. }
  10456. child[propertyName] = _clone(parent[propertyName], depth - 1);
  10457. Object.defineProperty(child, propertyName, descriptor);
  10458. }
  10459. }
  10460. return child;
  10461. }
  10462. return _clone(parent, depth);
  10463. }
  10464. /**
  10465. * Simple flat clone using prototype, accepts only objects, usefull for property
  10466. * override on FLAT configuration object (no nested props).
  10467. *
  10468. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  10469. * works.
  10470. */
  10471. clone.clonePrototype = function clonePrototype(parent) {
  10472. if (parent === null) return null;
  10473. var c = function c() {};
  10474. c.prototype = parent;
  10475. return new c();
  10476. };
  10477. // private utility functions
  10478. function __objToStr(o) {
  10479. return Object.prototype.toString.call(o);
  10480. }
  10481. clone.__objToStr = __objToStr;
  10482. function __isDate(o) {
  10483. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Date]';
  10484. }
  10485. clone.__isDate = __isDate;
  10486. function __isArray(o) {
  10487. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object Array]';
  10488. }
  10489. clone.__isArray = __isArray;
  10490. function __isRegExp(o) {
  10491. return (0, _typeof2.default)(o) === 'object' && __objToStr(o) === '[object RegExp]';
  10492. }
  10493. clone.__isRegExp = __isRegExp;
  10494. function __getRegExpFlags(re) {
  10495. var flags = '';
  10496. if (re.global) flags += 'g';
  10497. if (re.ignoreCase) flags += 'i';
  10498. if (re.multiline) flags += 'm';
  10499. return flags;
  10500. }
  10501. clone.__getRegExpFlags = __getRegExpFlags;
  10502. return clone;
  10503. }();
  10504. var _default = clone;
  10505. exports.default = _default;
  10506. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/buffer/index.js */ 50).Buffer))
  10507. /***/ }),
  10508. /* 50 */
  10509. /*!**************************************!*\
  10510. !*** ./node_modules/buffer/index.js ***!
  10511. \**************************************/
  10512. /*! no static exports found */
  10513. /***/ (function(module, exports, __webpack_require__) {
  10514. "use strict";
  10515. /* WEBPACK VAR INJECTION */(function(global) {/*!
  10516. * The buffer module from node.js, for the browser.
  10517. *
  10518. * @author Feross Aboukhadijeh <http://feross.org>
  10519. * @license MIT
  10520. */
  10521. /* eslint-disable no-proto */
  10522. var base64 = __webpack_require__(/*! base64-js */ 51)
  10523. var ieee754 = __webpack_require__(/*! ieee754 */ 52)
  10524. var isArray = __webpack_require__(/*! isarray */ 53)
  10525. exports.Buffer = Buffer
  10526. exports.SlowBuffer = SlowBuffer
  10527. exports.INSPECT_MAX_BYTES = 50
  10528. /**
  10529. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  10530. * === true Use Uint8Array implementation (fastest)
  10531. * === false Use Object implementation (most compatible, even IE6)
  10532. *
  10533. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  10534. * Opera 11.6+, iOS 4.2+.
  10535. *
  10536. * Due to various browser bugs, sometimes the Object implementation will be used even
  10537. * when the browser supports typed arrays.
  10538. *
  10539. * Note:
  10540. *
  10541. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  10542. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  10543. *
  10544. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  10545. *
  10546. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  10547. * incorrect length in some situations.
  10548. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  10549. * get the Object implementation, which is slower but behaves correctly.
  10550. */
  10551. Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
  10552. ? global.TYPED_ARRAY_SUPPORT
  10553. : typedArraySupport()
  10554. /*
  10555. * Export kMaxLength after typed array support is determined.
  10556. */
  10557. exports.kMaxLength = kMaxLength()
  10558. function typedArraySupport () {
  10559. try {
  10560. var arr = new Uint8Array(1)
  10561. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  10562. return arr.foo() === 42 && // typed array instances can be augmented
  10563. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  10564. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  10565. } catch (e) {
  10566. return false
  10567. }
  10568. }
  10569. function kMaxLength () {
  10570. return Buffer.TYPED_ARRAY_SUPPORT
  10571. ? 0x7fffffff
  10572. : 0x3fffffff
  10573. }
  10574. function createBuffer (that, length) {
  10575. if (kMaxLength() < length) {
  10576. throw new RangeError('Invalid typed array length')
  10577. }
  10578. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10579. // Return an augmented `Uint8Array` instance, for best performance
  10580. that = new Uint8Array(length)
  10581. that.__proto__ = Buffer.prototype
  10582. } else {
  10583. // Fallback: Return an object instance of the Buffer class
  10584. if (that === null) {
  10585. that = new Buffer(length)
  10586. }
  10587. that.length = length
  10588. }
  10589. return that
  10590. }
  10591. /**
  10592. * The Buffer constructor returns instances of `Uint8Array` that have their
  10593. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  10594. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  10595. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  10596. * returns a single octet.
  10597. *
  10598. * The `Uint8Array` prototype remains unmodified.
  10599. */
  10600. function Buffer (arg, encodingOrOffset, length) {
  10601. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  10602. return new Buffer(arg, encodingOrOffset, length)
  10603. }
  10604. // Common case.
  10605. if (typeof arg === 'number') {
  10606. if (typeof encodingOrOffset === 'string') {
  10607. throw new Error(
  10608. 'If encoding is specified then the first argument must be a string'
  10609. )
  10610. }
  10611. return allocUnsafe(this, arg)
  10612. }
  10613. return from(this, arg, encodingOrOffset, length)
  10614. }
  10615. Buffer.poolSize = 8192 // not used by this implementation
  10616. // TODO: Legacy, not needed anymore. Remove in next major version.
  10617. Buffer._augment = function (arr) {
  10618. arr.__proto__ = Buffer.prototype
  10619. return arr
  10620. }
  10621. function from (that, value, encodingOrOffset, length) {
  10622. if (typeof value === 'number') {
  10623. throw new TypeError('"value" argument must not be a number')
  10624. }
  10625. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  10626. return fromArrayBuffer(that, value, encodingOrOffset, length)
  10627. }
  10628. if (typeof value === 'string') {
  10629. return fromString(that, value, encodingOrOffset)
  10630. }
  10631. return fromObject(that, value)
  10632. }
  10633. /**
  10634. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  10635. * if value is a number.
  10636. * Buffer.from(str[, encoding])
  10637. * Buffer.from(array)
  10638. * Buffer.from(buffer)
  10639. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  10640. **/
  10641. Buffer.from = function (value, encodingOrOffset, length) {
  10642. return from(null, value, encodingOrOffset, length)
  10643. }
  10644. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10645. Buffer.prototype.__proto__ = Uint8Array.prototype
  10646. Buffer.__proto__ = Uint8Array
  10647. if (typeof Symbol !== 'undefined' && Symbol.species &&
  10648. Buffer[Symbol.species] === Buffer) {
  10649. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  10650. Object.defineProperty(Buffer, Symbol.species, {
  10651. value: null,
  10652. configurable: true
  10653. })
  10654. }
  10655. }
  10656. function assertSize (size) {
  10657. if (typeof size !== 'number') {
  10658. throw new TypeError('"size" argument must be a number')
  10659. } else if (size < 0) {
  10660. throw new RangeError('"size" argument must not be negative')
  10661. }
  10662. }
  10663. function alloc (that, size, fill, encoding) {
  10664. assertSize(size)
  10665. if (size <= 0) {
  10666. return createBuffer(that, size)
  10667. }
  10668. if (fill !== undefined) {
  10669. // Only pay attention to encoding if it's a string. This
  10670. // prevents accidentally sending in a number that would
  10671. // be interpretted as a start offset.
  10672. return typeof encoding === 'string'
  10673. ? createBuffer(that, size).fill(fill, encoding)
  10674. : createBuffer(that, size).fill(fill)
  10675. }
  10676. return createBuffer(that, size)
  10677. }
  10678. /**
  10679. * Creates a new filled Buffer instance.
  10680. * alloc(size[, fill[, encoding]])
  10681. **/
  10682. Buffer.alloc = function (size, fill, encoding) {
  10683. return alloc(null, size, fill, encoding)
  10684. }
  10685. function allocUnsafe (that, size) {
  10686. assertSize(size)
  10687. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  10688. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  10689. for (var i = 0; i < size; ++i) {
  10690. that[i] = 0
  10691. }
  10692. }
  10693. return that
  10694. }
  10695. /**
  10696. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  10697. * */
  10698. Buffer.allocUnsafe = function (size) {
  10699. return allocUnsafe(null, size)
  10700. }
  10701. /**
  10702. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  10703. */
  10704. Buffer.allocUnsafeSlow = function (size) {
  10705. return allocUnsafe(null, size)
  10706. }
  10707. function fromString (that, string, encoding) {
  10708. if (typeof encoding !== 'string' || encoding === '') {
  10709. encoding = 'utf8'
  10710. }
  10711. if (!Buffer.isEncoding(encoding)) {
  10712. throw new TypeError('"encoding" must be a valid string encoding')
  10713. }
  10714. var length = byteLength(string, encoding) | 0
  10715. that = createBuffer(that, length)
  10716. var actual = that.write(string, encoding)
  10717. if (actual !== length) {
  10718. // Writing a hex string, for example, that contains invalid characters will
  10719. // cause everything after the first invalid character to be ignored. (e.g.
  10720. // 'abxxcd' will be treated as 'ab')
  10721. that = that.slice(0, actual)
  10722. }
  10723. return that
  10724. }
  10725. function fromArrayLike (that, array) {
  10726. var length = array.length < 0 ? 0 : checked(array.length) | 0
  10727. that = createBuffer(that, length)
  10728. for (var i = 0; i < length; i += 1) {
  10729. that[i] = array[i] & 255
  10730. }
  10731. return that
  10732. }
  10733. function fromArrayBuffer (that, array, byteOffset, length) {
  10734. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  10735. if (byteOffset < 0 || array.byteLength < byteOffset) {
  10736. throw new RangeError('\'offset\' is out of bounds')
  10737. }
  10738. if (array.byteLength < byteOffset + (length || 0)) {
  10739. throw new RangeError('\'length\' is out of bounds')
  10740. }
  10741. if (byteOffset === undefined && length === undefined) {
  10742. array = new Uint8Array(array)
  10743. } else if (length === undefined) {
  10744. array = new Uint8Array(array, byteOffset)
  10745. } else {
  10746. array = new Uint8Array(array, byteOffset, length)
  10747. }
  10748. if (Buffer.TYPED_ARRAY_SUPPORT) {
  10749. // Return an augmented `Uint8Array` instance, for best performance
  10750. that = array
  10751. that.__proto__ = Buffer.prototype
  10752. } else {
  10753. // Fallback: Return an object instance of the Buffer class
  10754. that = fromArrayLike(that, array)
  10755. }
  10756. return that
  10757. }
  10758. function fromObject (that, obj) {
  10759. if (Buffer.isBuffer(obj)) {
  10760. var len = checked(obj.length) | 0
  10761. that = createBuffer(that, len)
  10762. if (that.length === 0) {
  10763. return that
  10764. }
  10765. obj.copy(that, 0, 0, len)
  10766. return that
  10767. }
  10768. if (obj) {
  10769. if ((typeof ArrayBuffer !== 'undefined' &&
  10770. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  10771. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  10772. return createBuffer(that, 0)
  10773. }
  10774. return fromArrayLike(that, obj)
  10775. }
  10776. if (obj.type === 'Buffer' && isArray(obj.data)) {
  10777. return fromArrayLike(that, obj.data)
  10778. }
  10779. }
  10780. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  10781. }
  10782. function checked (length) {
  10783. // Note: cannot use `length < kMaxLength()` here because that fails when
  10784. // length is NaN (which is otherwise coerced to zero.)
  10785. if (length >= kMaxLength()) {
  10786. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  10787. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  10788. }
  10789. return length | 0
  10790. }
  10791. function SlowBuffer (length) {
  10792. if (+length != length) { // eslint-disable-line eqeqeq
  10793. length = 0
  10794. }
  10795. return Buffer.alloc(+length)
  10796. }
  10797. Buffer.isBuffer = function isBuffer (b) {
  10798. return !!(b != null && b._isBuffer)
  10799. }
  10800. Buffer.compare = function compare (a, b) {
  10801. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  10802. throw new TypeError('Arguments must be Buffers')
  10803. }
  10804. if (a === b) return 0
  10805. var x = a.length
  10806. var y = b.length
  10807. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  10808. if (a[i] !== b[i]) {
  10809. x = a[i]
  10810. y = b[i]
  10811. break
  10812. }
  10813. }
  10814. if (x < y) return -1
  10815. if (y < x) return 1
  10816. return 0
  10817. }
  10818. Buffer.isEncoding = function isEncoding (encoding) {
  10819. switch (String(encoding).toLowerCase()) {
  10820. case 'hex':
  10821. case 'utf8':
  10822. case 'utf-8':
  10823. case 'ascii':
  10824. case 'latin1':
  10825. case 'binary':
  10826. case 'base64':
  10827. case 'ucs2':
  10828. case 'ucs-2':
  10829. case 'utf16le':
  10830. case 'utf-16le':
  10831. return true
  10832. default:
  10833. return false
  10834. }
  10835. }
  10836. Buffer.concat = function concat (list, length) {
  10837. if (!isArray(list)) {
  10838. throw new TypeError('"list" argument must be an Array of Buffers')
  10839. }
  10840. if (list.length === 0) {
  10841. return Buffer.alloc(0)
  10842. }
  10843. var i
  10844. if (length === undefined) {
  10845. length = 0
  10846. for (i = 0; i < list.length; ++i) {
  10847. length += list[i].length
  10848. }
  10849. }
  10850. var buffer = Buffer.allocUnsafe(length)
  10851. var pos = 0
  10852. for (i = 0; i < list.length; ++i) {
  10853. var buf = list[i]
  10854. if (!Buffer.isBuffer(buf)) {
  10855. throw new TypeError('"list" argument must be an Array of Buffers')
  10856. }
  10857. buf.copy(buffer, pos)
  10858. pos += buf.length
  10859. }
  10860. return buffer
  10861. }
  10862. function byteLength (string, encoding) {
  10863. if (Buffer.isBuffer(string)) {
  10864. return string.length
  10865. }
  10866. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  10867. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  10868. return string.byteLength
  10869. }
  10870. if (typeof string !== 'string') {
  10871. string = '' + string
  10872. }
  10873. var len = string.length
  10874. if (len === 0) return 0
  10875. // Use a for loop to avoid recursion
  10876. var loweredCase = false
  10877. for (;;) {
  10878. switch (encoding) {
  10879. case 'ascii':
  10880. case 'latin1':
  10881. case 'binary':
  10882. return len
  10883. case 'utf8':
  10884. case 'utf-8':
  10885. case undefined:
  10886. return utf8ToBytes(string).length
  10887. case 'ucs2':
  10888. case 'ucs-2':
  10889. case 'utf16le':
  10890. case 'utf-16le':
  10891. return len * 2
  10892. case 'hex':
  10893. return len >>> 1
  10894. case 'base64':
  10895. return base64ToBytes(string).length
  10896. default:
  10897. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  10898. encoding = ('' + encoding).toLowerCase()
  10899. loweredCase = true
  10900. }
  10901. }
  10902. }
  10903. Buffer.byteLength = byteLength
  10904. function slowToString (encoding, start, end) {
  10905. var loweredCase = false
  10906. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  10907. // property of a typed array.
  10908. // This behaves neither like String nor Uint8Array in that we set start/end
  10909. // to their upper/lower bounds if the value passed is out of range.
  10910. // undefined is handled specially as per ECMA-262 6th Edition,
  10911. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  10912. if (start === undefined || start < 0) {
  10913. start = 0
  10914. }
  10915. // Return early if start > this.length. Done here to prevent potential uint32
  10916. // coercion fail below.
  10917. if (start > this.length) {
  10918. return ''
  10919. }
  10920. if (end === undefined || end > this.length) {
  10921. end = this.length
  10922. }
  10923. if (end <= 0) {
  10924. return ''
  10925. }
  10926. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  10927. end >>>= 0
  10928. start >>>= 0
  10929. if (end <= start) {
  10930. return ''
  10931. }
  10932. if (!encoding) encoding = 'utf8'
  10933. while (true) {
  10934. switch (encoding) {
  10935. case 'hex':
  10936. return hexSlice(this, start, end)
  10937. case 'utf8':
  10938. case 'utf-8':
  10939. return utf8Slice(this, start, end)
  10940. case 'ascii':
  10941. return asciiSlice(this, start, end)
  10942. case 'latin1':
  10943. case 'binary':
  10944. return latin1Slice(this, start, end)
  10945. case 'base64':
  10946. return base64Slice(this, start, end)
  10947. case 'ucs2':
  10948. case 'ucs-2':
  10949. case 'utf16le':
  10950. case 'utf-16le':
  10951. return utf16leSlice(this, start, end)
  10952. default:
  10953. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  10954. encoding = (encoding + '').toLowerCase()
  10955. loweredCase = true
  10956. }
  10957. }
  10958. }
  10959. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  10960. // Buffer instances.
  10961. Buffer.prototype._isBuffer = true
  10962. function swap (b, n, m) {
  10963. var i = b[n]
  10964. b[n] = b[m]
  10965. b[m] = i
  10966. }
  10967. Buffer.prototype.swap16 = function swap16 () {
  10968. var len = this.length
  10969. if (len % 2 !== 0) {
  10970. throw new RangeError('Buffer size must be a multiple of 16-bits')
  10971. }
  10972. for (var i = 0; i < len; i += 2) {
  10973. swap(this, i, i + 1)
  10974. }
  10975. return this
  10976. }
  10977. Buffer.prototype.swap32 = function swap32 () {
  10978. var len = this.length
  10979. if (len % 4 !== 0) {
  10980. throw new RangeError('Buffer size must be a multiple of 32-bits')
  10981. }
  10982. for (var i = 0; i < len; i += 4) {
  10983. swap(this, i, i + 3)
  10984. swap(this, i + 1, i + 2)
  10985. }
  10986. return this
  10987. }
  10988. Buffer.prototype.swap64 = function swap64 () {
  10989. var len = this.length
  10990. if (len % 8 !== 0) {
  10991. throw new RangeError('Buffer size must be a multiple of 64-bits')
  10992. }
  10993. for (var i = 0; i < len; i += 8) {
  10994. swap(this, i, i + 7)
  10995. swap(this, i + 1, i + 6)
  10996. swap(this, i + 2, i + 5)
  10997. swap(this, i + 3, i + 4)
  10998. }
  10999. return this
  11000. }
  11001. Buffer.prototype.toString = function toString () {
  11002. var length = this.length | 0
  11003. if (length === 0) return ''
  11004. if (arguments.length === 0) return utf8Slice(this, 0, length)
  11005. return slowToString.apply(this, arguments)
  11006. }
  11007. Buffer.prototype.equals = function equals (b) {
  11008. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  11009. if (this === b) return true
  11010. return Buffer.compare(this, b) === 0
  11011. }
  11012. Buffer.prototype.inspect = function inspect () {
  11013. var str = ''
  11014. var max = exports.INSPECT_MAX_BYTES
  11015. if (this.length > 0) {
  11016. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  11017. if (this.length > max) str += ' ... '
  11018. }
  11019. return '<Buffer ' + str + '>'
  11020. }
  11021. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  11022. if (!Buffer.isBuffer(target)) {
  11023. throw new TypeError('Argument must be a Buffer')
  11024. }
  11025. if (start === undefined) {
  11026. start = 0
  11027. }
  11028. if (end === undefined) {
  11029. end = target ? target.length : 0
  11030. }
  11031. if (thisStart === undefined) {
  11032. thisStart = 0
  11033. }
  11034. if (thisEnd === undefined) {
  11035. thisEnd = this.length
  11036. }
  11037. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  11038. throw new RangeError('out of range index')
  11039. }
  11040. if (thisStart >= thisEnd && start >= end) {
  11041. return 0
  11042. }
  11043. if (thisStart >= thisEnd) {
  11044. return -1
  11045. }
  11046. if (start >= end) {
  11047. return 1
  11048. }
  11049. start >>>= 0
  11050. end >>>= 0
  11051. thisStart >>>= 0
  11052. thisEnd >>>= 0
  11053. if (this === target) return 0
  11054. var x = thisEnd - thisStart
  11055. var y = end - start
  11056. var len = Math.min(x, y)
  11057. var thisCopy = this.slice(thisStart, thisEnd)
  11058. var targetCopy = target.slice(start, end)
  11059. for (var i = 0; i < len; ++i) {
  11060. if (thisCopy[i] !== targetCopy[i]) {
  11061. x = thisCopy[i]
  11062. y = targetCopy[i]
  11063. break
  11064. }
  11065. }
  11066. if (x < y) return -1
  11067. if (y < x) return 1
  11068. return 0
  11069. }
  11070. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  11071. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  11072. //
  11073. // Arguments:
  11074. // - buffer - a Buffer to search
  11075. // - val - a string, Buffer, or number
  11076. // - byteOffset - an index into `buffer`; will be clamped to an int32
  11077. // - encoding - an optional encoding, relevant is val is a string
  11078. // - dir - true for indexOf, false for lastIndexOf
  11079. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  11080. // Empty buffer means no match
  11081. if (buffer.length === 0) return -1
  11082. // Normalize byteOffset
  11083. if (typeof byteOffset === 'string') {
  11084. encoding = byteOffset
  11085. byteOffset = 0
  11086. } else if (byteOffset > 0x7fffffff) {
  11087. byteOffset = 0x7fffffff
  11088. } else if (byteOffset < -0x80000000) {
  11089. byteOffset = -0x80000000
  11090. }
  11091. byteOffset = +byteOffset // Coerce to Number.
  11092. if (isNaN(byteOffset)) {
  11093. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  11094. byteOffset = dir ? 0 : (buffer.length - 1)
  11095. }
  11096. // Normalize byteOffset: negative offsets start from the end of the buffer
  11097. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  11098. if (byteOffset >= buffer.length) {
  11099. if (dir) return -1
  11100. else byteOffset = buffer.length - 1
  11101. } else if (byteOffset < 0) {
  11102. if (dir) byteOffset = 0
  11103. else return -1
  11104. }
  11105. // Normalize val
  11106. if (typeof val === 'string') {
  11107. val = Buffer.from(val, encoding)
  11108. }
  11109. // Finally, search either indexOf (if dir is true) or lastIndexOf
  11110. if (Buffer.isBuffer(val)) {
  11111. // Special case: looking for empty string/buffer always fails
  11112. if (val.length === 0) {
  11113. return -1
  11114. }
  11115. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  11116. } else if (typeof val === 'number') {
  11117. val = val & 0xFF // Search for a byte value [0-255]
  11118. if (Buffer.TYPED_ARRAY_SUPPORT &&
  11119. typeof Uint8Array.prototype.indexOf === 'function') {
  11120. if (dir) {
  11121. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  11122. } else {
  11123. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  11124. }
  11125. }
  11126. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  11127. }
  11128. throw new TypeError('val must be string, number or Buffer')
  11129. }
  11130. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  11131. var indexSize = 1
  11132. var arrLength = arr.length
  11133. var valLength = val.length
  11134. if (encoding !== undefined) {
  11135. encoding = String(encoding).toLowerCase()
  11136. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  11137. encoding === 'utf16le' || encoding === 'utf-16le') {
  11138. if (arr.length < 2 || val.length < 2) {
  11139. return -1
  11140. }
  11141. indexSize = 2
  11142. arrLength /= 2
  11143. valLength /= 2
  11144. byteOffset /= 2
  11145. }
  11146. }
  11147. function read (buf, i) {
  11148. if (indexSize === 1) {
  11149. return buf[i]
  11150. } else {
  11151. return buf.readUInt16BE(i * indexSize)
  11152. }
  11153. }
  11154. var i
  11155. if (dir) {
  11156. var foundIndex = -1
  11157. for (i = byteOffset; i < arrLength; i++) {
  11158. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  11159. if (foundIndex === -1) foundIndex = i
  11160. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  11161. } else {
  11162. if (foundIndex !== -1) i -= i - foundIndex
  11163. foundIndex = -1
  11164. }
  11165. }
  11166. } else {
  11167. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  11168. for (i = byteOffset; i >= 0; i--) {
  11169. var found = true
  11170. for (var j = 0; j < valLength; j++) {
  11171. if (read(arr, i + j) !== read(val, j)) {
  11172. found = false
  11173. break
  11174. }
  11175. }
  11176. if (found) return i
  11177. }
  11178. }
  11179. return -1
  11180. }
  11181. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  11182. return this.indexOf(val, byteOffset, encoding) !== -1
  11183. }
  11184. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  11185. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  11186. }
  11187. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  11188. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  11189. }
  11190. function hexWrite (buf, string, offset, length) {
  11191. offset = Number(offset) || 0
  11192. var remaining = buf.length - offset
  11193. if (!length) {
  11194. length = remaining
  11195. } else {
  11196. length = Number(length)
  11197. if (length > remaining) {
  11198. length = remaining
  11199. }
  11200. }
  11201. // must be an even number of digits
  11202. var strLen = string.length
  11203. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  11204. if (length > strLen / 2) {
  11205. length = strLen / 2
  11206. }
  11207. for (var i = 0; i < length; ++i) {
  11208. var parsed = parseInt(string.substr(i * 2, 2), 16)
  11209. if (isNaN(parsed)) return i
  11210. buf[offset + i] = parsed
  11211. }
  11212. return i
  11213. }
  11214. function utf8Write (buf, string, offset, length) {
  11215. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  11216. }
  11217. function asciiWrite (buf, string, offset, length) {
  11218. return blitBuffer(asciiToBytes(string), buf, offset, length)
  11219. }
  11220. function latin1Write (buf, string, offset, length) {
  11221. return asciiWrite(buf, string, offset, length)
  11222. }
  11223. function base64Write (buf, string, offset, length) {
  11224. return blitBuffer(base64ToBytes(string), buf, offset, length)
  11225. }
  11226. function ucs2Write (buf, string, offset, length) {
  11227. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  11228. }
  11229. Buffer.prototype.write = function write (string, offset, length, encoding) {
  11230. // Buffer#write(string)
  11231. if (offset === undefined) {
  11232. encoding = 'utf8'
  11233. length = this.length
  11234. offset = 0
  11235. // Buffer#write(string, encoding)
  11236. } else if (length === undefined && typeof offset === 'string') {
  11237. encoding = offset
  11238. length = this.length
  11239. offset = 0
  11240. // Buffer#write(string, offset[, length][, encoding])
  11241. } else if (isFinite(offset)) {
  11242. offset = offset | 0
  11243. if (isFinite(length)) {
  11244. length = length | 0
  11245. if (encoding === undefined) encoding = 'utf8'
  11246. } else {
  11247. encoding = length
  11248. length = undefined
  11249. }
  11250. // legacy write(string, encoding, offset, length) - remove in v0.13
  11251. } else {
  11252. throw new Error(
  11253. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  11254. )
  11255. }
  11256. var remaining = this.length - offset
  11257. if (length === undefined || length > remaining) length = remaining
  11258. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  11259. throw new RangeError('Attempt to write outside buffer bounds')
  11260. }
  11261. if (!encoding) encoding = 'utf8'
  11262. var loweredCase = false
  11263. for (;;) {
  11264. switch (encoding) {
  11265. case 'hex':
  11266. return hexWrite(this, string, offset, length)
  11267. case 'utf8':
  11268. case 'utf-8':
  11269. return utf8Write(this, string, offset, length)
  11270. case 'ascii':
  11271. return asciiWrite(this, string, offset, length)
  11272. case 'latin1':
  11273. case 'binary':
  11274. return latin1Write(this, string, offset, length)
  11275. case 'base64':
  11276. // Warning: maxLength not taken into account in base64Write
  11277. return base64Write(this, string, offset, length)
  11278. case 'ucs2':
  11279. case 'ucs-2':
  11280. case 'utf16le':
  11281. case 'utf-16le':
  11282. return ucs2Write(this, string, offset, length)
  11283. default:
  11284. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  11285. encoding = ('' + encoding).toLowerCase()
  11286. loweredCase = true
  11287. }
  11288. }
  11289. }
  11290. Buffer.prototype.toJSON = function toJSON () {
  11291. return {
  11292. type: 'Buffer',
  11293. data: Array.prototype.slice.call(this._arr || this, 0)
  11294. }
  11295. }
  11296. function base64Slice (buf, start, end) {
  11297. if (start === 0 && end === buf.length) {
  11298. return base64.fromByteArray(buf)
  11299. } else {
  11300. return base64.fromByteArray(buf.slice(start, end))
  11301. }
  11302. }
  11303. function utf8Slice (buf, start, end) {
  11304. end = Math.min(buf.length, end)
  11305. var res = []
  11306. var i = start
  11307. while (i < end) {
  11308. var firstByte = buf[i]
  11309. var codePoint = null
  11310. var bytesPerSequence = (firstByte > 0xEF) ? 4
  11311. : (firstByte > 0xDF) ? 3
  11312. : (firstByte > 0xBF) ? 2
  11313. : 1
  11314. if (i + bytesPerSequence <= end) {
  11315. var secondByte, thirdByte, fourthByte, tempCodePoint
  11316. switch (bytesPerSequence) {
  11317. case 1:
  11318. if (firstByte < 0x80) {
  11319. codePoint = firstByte
  11320. }
  11321. break
  11322. case 2:
  11323. secondByte = buf[i + 1]
  11324. if ((secondByte & 0xC0) === 0x80) {
  11325. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  11326. if (tempCodePoint > 0x7F) {
  11327. codePoint = tempCodePoint
  11328. }
  11329. }
  11330. break
  11331. case 3:
  11332. secondByte = buf[i + 1]
  11333. thirdByte = buf[i + 2]
  11334. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  11335. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  11336. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  11337. codePoint = tempCodePoint
  11338. }
  11339. }
  11340. break
  11341. case 4:
  11342. secondByte = buf[i + 1]
  11343. thirdByte = buf[i + 2]
  11344. fourthByte = buf[i + 3]
  11345. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  11346. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  11347. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  11348. codePoint = tempCodePoint
  11349. }
  11350. }
  11351. }
  11352. }
  11353. if (codePoint === null) {
  11354. // we did not generate a valid codePoint so insert a
  11355. // replacement char (U+FFFD) and advance only 1 byte
  11356. codePoint = 0xFFFD
  11357. bytesPerSequence = 1
  11358. } else if (codePoint > 0xFFFF) {
  11359. // encode to utf16 (surrogate pair dance)
  11360. codePoint -= 0x10000
  11361. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  11362. codePoint = 0xDC00 | codePoint & 0x3FF
  11363. }
  11364. res.push(codePoint)
  11365. i += bytesPerSequence
  11366. }
  11367. return decodeCodePointsArray(res)
  11368. }
  11369. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  11370. // the lowest limit is Chrome, with 0x10000 args.
  11371. // We go 1 magnitude less, for safety
  11372. var MAX_ARGUMENTS_LENGTH = 0x1000
  11373. function decodeCodePointsArray (codePoints) {
  11374. var len = codePoints.length
  11375. if (len <= MAX_ARGUMENTS_LENGTH) {
  11376. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  11377. }
  11378. // Decode in chunks to avoid "call stack size exceeded".
  11379. var res = ''
  11380. var i = 0
  11381. while (i < len) {
  11382. res += String.fromCharCode.apply(
  11383. String,
  11384. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  11385. )
  11386. }
  11387. return res
  11388. }
  11389. function asciiSlice (buf, start, end) {
  11390. var ret = ''
  11391. end = Math.min(buf.length, end)
  11392. for (var i = start; i < end; ++i) {
  11393. ret += String.fromCharCode(buf[i] & 0x7F)
  11394. }
  11395. return ret
  11396. }
  11397. function latin1Slice (buf, start, end) {
  11398. var ret = ''
  11399. end = Math.min(buf.length, end)
  11400. for (var i = start; i < end; ++i) {
  11401. ret += String.fromCharCode(buf[i])
  11402. }
  11403. return ret
  11404. }
  11405. function hexSlice (buf, start, end) {
  11406. var len = buf.length
  11407. if (!start || start < 0) start = 0
  11408. if (!end || end < 0 || end > len) end = len
  11409. var out = ''
  11410. for (var i = start; i < end; ++i) {
  11411. out += toHex(buf[i])
  11412. }
  11413. return out
  11414. }
  11415. function utf16leSlice (buf, start, end) {
  11416. var bytes = buf.slice(start, end)
  11417. var res = ''
  11418. for (var i = 0; i < bytes.length; i += 2) {
  11419. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  11420. }
  11421. return res
  11422. }
  11423. Buffer.prototype.slice = function slice (start, end) {
  11424. var len = this.length
  11425. start = ~~start
  11426. end = end === undefined ? len : ~~end
  11427. if (start < 0) {
  11428. start += len
  11429. if (start < 0) start = 0
  11430. } else if (start > len) {
  11431. start = len
  11432. }
  11433. if (end < 0) {
  11434. end += len
  11435. if (end < 0) end = 0
  11436. } else if (end > len) {
  11437. end = len
  11438. }
  11439. if (end < start) end = start
  11440. var newBuf
  11441. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11442. newBuf = this.subarray(start, end)
  11443. newBuf.__proto__ = Buffer.prototype
  11444. } else {
  11445. var sliceLen = end - start
  11446. newBuf = new Buffer(sliceLen, undefined)
  11447. for (var i = 0; i < sliceLen; ++i) {
  11448. newBuf[i] = this[i + start]
  11449. }
  11450. }
  11451. return newBuf
  11452. }
  11453. /*
  11454. * Need to make sure that buffer isn't trying to write out of bounds.
  11455. */
  11456. function checkOffset (offset, ext, length) {
  11457. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  11458. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  11459. }
  11460. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  11461. offset = offset | 0
  11462. byteLength = byteLength | 0
  11463. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11464. var val = this[offset]
  11465. var mul = 1
  11466. var i = 0
  11467. while (++i < byteLength && (mul *= 0x100)) {
  11468. val += this[offset + i] * mul
  11469. }
  11470. return val
  11471. }
  11472. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  11473. offset = offset | 0
  11474. byteLength = byteLength | 0
  11475. if (!noAssert) {
  11476. checkOffset(offset, byteLength, this.length)
  11477. }
  11478. var val = this[offset + --byteLength]
  11479. var mul = 1
  11480. while (byteLength > 0 && (mul *= 0x100)) {
  11481. val += this[offset + --byteLength] * mul
  11482. }
  11483. return val
  11484. }
  11485. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  11486. if (!noAssert) checkOffset(offset, 1, this.length)
  11487. return this[offset]
  11488. }
  11489. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  11490. if (!noAssert) checkOffset(offset, 2, this.length)
  11491. return this[offset] | (this[offset + 1] << 8)
  11492. }
  11493. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  11494. if (!noAssert) checkOffset(offset, 2, this.length)
  11495. return (this[offset] << 8) | this[offset + 1]
  11496. }
  11497. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  11498. if (!noAssert) checkOffset(offset, 4, this.length)
  11499. return ((this[offset]) |
  11500. (this[offset + 1] << 8) |
  11501. (this[offset + 2] << 16)) +
  11502. (this[offset + 3] * 0x1000000)
  11503. }
  11504. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  11505. if (!noAssert) checkOffset(offset, 4, this.length)
  11506. return (this[offset] * 0x1000000) +
  11507. ((this[offset + 1] << 16) |
  11508. (this[offset + 2] << 8) |
  11509. this[offset + 3])
  11510. }
  11511. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  11512. offset = offset | 0
  11513. byteLength = byteLength | 0
  11514. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11515. var val = this[offset]
  11516. var mul = 1
  11517. var i = 0
  11518. while (++i < byteLength && (mul *= 0x100)) {
  11519. val += this[offset + i] * mul
  11520. }
  11521. mul *= 0x80
  11522. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11523. return val
  11524. }
  11525. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  11526. offset = offset | 0
  11527. byteLength = byteLength | 0
  11528. if (!noAssert) checkOffset(offset, byteLength, this.length)
  11529. var i = byteLength
  11530. var mul = 1
  11531. var val = this[offset + --i]
  11532. while (i > 0 && (mul *= 0x100)) {
  11533. val += this[offset + --i] * mul
  11534. }
  11535. mul *= 0x80
  11536. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  11537. return val
  11538. }
  11539. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  11540. if (!noAssert) checkOffset(offset, 1, this.length)
  11541. if (!(this[offset] & 0x80)) return (this[offset])
  11542. return ((0xff - this[offset] + 1) * -1)
  11543. }
  11544. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  11545. if (!noAssert) checkOffset(offset, 2, this.length)
  11546. var val = this[offset] | (this[offset + 1] << 8)
  11547. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11548. }
  11549. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  11550. if (!noAssert) checkOffset(offset, 2, this.length)
  11551. var val = this[offset + 1] | (this[offset] << 8)
  11552. return (val & 0x8000) ? val | 0xFFFF0000 : val
  11553. }
  11554. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  11555. if (!noAssert) checkOffset(offset, 4, this.length)
  11556. return (this[offset]) |
  11557. (this[offset + 1] << 8) |
  11558. (this[offset + 2] << 16) |
  11559. (this[offset + 3] << 24)
  11560. }
  11561. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  11562. if (!noAssert) checkOffset(offset, 4, this.length)
  11563. return (this[offset] << 24) |
  11564. (this[offset + 1] << 16) |
  11565. (this[offset + 2] << 8) |
  11566. (this[offset + 3])
  11567. }
  11568. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  11569. if (!noAssert) checkOffset(offset, 4, this.length)
  11570. return ieee754.read(this, offset, true, 23, 4)
  11571. }
  11572. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  11573. if (!noAssert) checkOffset(offset, 4, this.length)
  11574. return ieee754.read(this, offset, false, 23, 4)
  11575. }
  11576. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  11577. if (!noAssert) checkOffset(offset, 8, this.length)
  11578. return ieee754.read(this, offset, true, 52, 8)
  11579. }
  11580. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  11581. if (!noAssert) checkOffset(offset, 8, this.length)
  11582. return ieee754.read(this, offset, false, 52, 8)
  11583. }
  11584. function checkInt (buf, value, offset, ext, max, min) {
  11585. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  11586. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  11587. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11588. }
  11589. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  11590. value = +value
  11591. offset = offset | 0
  11592. byteLength = byteLength | 0
  11593. if (!noAssert) {
  11594. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11595. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11596. }
  11597. var mul = 1
  11598. var i = 0
  11599. this[offset] = value & 0xFF
  11600. while (++i < byteLength && (mul *= 0x100)) {
  11601. this[offset + i] = (value / mul) & 0xFF
  11602. }
  11603. return offset + byteLength
  11604. }
  11605. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  11606. value = +value
  11607. offset = offset | 0
  11608. byteLength = byteLength | 0
  11609. if (!noAssert) {
  11610. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  11611. checkInt(this, value, offset, byteLength, maxBytes, 0)
  11612. }
  11613. var i = byteLength - 1
  11614. var mul = 1
  11615. this[offset + i] = value & 0xFF
  11616. while (--i >= 0 && (mul *= 0x100)) {
  11617. this[offset + i] = (value / mul) & 0xFF
  11618. }
  11619. return offset + byteLength
  11620. }
  11621. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  11622. value = +value
  11623. offset = offset | 0
  11624. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  11625. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11626. this[offset] = (value & 0xff)
  11627. return offset + 1
  11628. }
  11629. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  11630. if (value < 0) value = 0xffff + value + 1
  11631. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  11632. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  11633. (littleEndian ? i : 1 - i) * 8
  11634. }
  11635. }
  11636. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  11637. value = +value
  11638. offset = offset | 0
  11639. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11640. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11641. this[offset] = (value & 0xff)
  11642. this[offset + 1] = (value >>> 8)
  11643. } else {
  11644. objectWriteUInt16(this, value, offset, true)
  11645. }
  11646. return offset + 2
  11647. }
  11648. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  11649. value = +value
  11650. offset = offset | 0
  11651. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  11652. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11653. this[offset] = (value >>> 8)
  11654. this[offset + 1] = (value & 0xff)
  11655. } else {
  11656. objectWriteUInt16(this, value, offset, false)
  11657. }
  11658. return offset + 2
  11659. }
  11660. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  11661. if (value < 0) value = 0xffffffff + value + 1
  11662. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  11663. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  11664. }
  11665. }
  11666. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  11667. value = +value
  11668. offset = offset | 0
  11669. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11670. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11671. this[offset + 3] = (value >>> 24)
  11672. this[offset + 2] = (value >>> 16)
  11673. this[offset + 1] = (value >>> 8)
  11674. this[offset] = (value & 0xff)
  11675. } else {
  11676. objectWriteUInt32(this, value, offset, true)
  11677. }
  11678. return offset + 4
  11679. }
  11680. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  11681. value = +value
  11682. offset = offset | 0
  11683. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  11684. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11685. this[offset] = (value >>> 24)
  11686. this[offset + 1] = (value >>> 16)
  11687. this[offset + 2] = (value >>> 8)
  11688. this[offset + 3] = (value & 0xff)
  11689. } else {
  11690. objectWriteUInt32(this, value, offset, false)
  11691. }
  11692. return offset + 4
  11693. }
  11694. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  11695. value = +value
  11696. offset = offset | 0
  11697. if (!noAssert) {
  11698. var limit = Math.pow(2, 8 * byteLength - 1)
  11699. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11700. }
  11701. var i = 0
  11702. var mul = 1
  11703. var sub = 0
  11704. this[offset] = value & 0xFF
  11705. while (++i < byteLength && (mul *= 0x100)) {
  11706. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  11707. sub = 1
  11708. }
  11709. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11710. }
  11711. return offset + byteLength
  11712. }
  11713. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  11714. value = +value
  11715. offset = offset | 0
  11716. if (!noAssert) {
  11717. var limit = Math.pow(2, 8 * byteLength - 1)
  11718. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  11719. }
  11720. var i = byteLength - 1
  11721. var mul = 1
  11722. var sub = 0
  11723. this[offset + i] = value & 0xFF
  11724. while (--i >= 0 && (mul *= 0x100)) {
  11725. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  11726. sub = 1
  11727. }
  11728. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  11729. }
  11730. return offset + byteLength
  11731. }
  11732. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  11733. value = +value
  11734. offset = offset | 0
  11735. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  11736. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  11737. if (value < 0) value = 0xff + value + 1
  11738. this[offset] = (value & 0xff)
  11739. return offset + 1
  11740. }
  11741. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  11742. value = +value
  11743. offset = offset | 0
  11744. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11745. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11746. this[offset] = (value & 0xff)
  11747. this[offset + 1] = (value >>> 8)
  11748. } else {
  11749. objectWriteUInt16(this, value, offset, true)
  11750. }
  11751. return offset + 2
  11752. }
  11753. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  11754. value = +value
  11755. offset = offset | 0
  11756. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  11757. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11758. this[offset] = (value >>> 8)
  11759. this[offset + 1] = (value & 0xff)
  11760. } else {
  11761. objectWriteUInt16(this, value, offset, false)
  11762. }
  11763. return offset + 2
  11764. }
  11765. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  11766. value = +value
  11767. offset = offset | 0
  11768. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11769. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11770. this[offset] = (value & 0xff)
  11771. this[offset + 1] = (value >>> 8)
  11772. this[offset + 2] = (value >>> 16)
  11773. this[offset + 3] = (value >>> 24)
  11774. } else {
  11775. objectWriteUInt32(this, value, offset, true)
  11776. }
  11777. return offset + 4
  11778. }
  11779. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  11780. value = +value
  11781. offset = offset | 0
  11782. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  11783. if (value < 0) value = 0xffffffff + value + 1
  11784. if (Buffer.TYPED_ARRAY_SUPPORT) {
  11785. this[offset] = (value >>> 24)
  11786. this[offset + 1] = (value >>> 16)
  11787. this[offset + 2] = (value >>> 8)
  11788. this[offset + 3] = (value & 0xff)
  11789. } else {
  11790. objectWriteUInt32(this, value, offset, false)
  11791. }
  11792. return offset + 4
  11793. }
  11794. function checkIEEE754 (buf, value, offset, ext, max, min) {
  11795. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  11796. if (offset < 0) throw new RangeError('Index out of range')
  11797. }
  11798. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  11799. if (!noAssert) {
  11800. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  11801. }
  11802. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  11803. return offset + 4
  11804. }
  11805. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  11806. return writeFloat(this, value, offset, true, noAssert)
  11807. }
  11808. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  11809. return writeFloat(this, value, offset, false, noAssert)
  11810. }
  11811. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  11812. if (!noAssert) {
  11813. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  11814. }
  11815. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  11816. return offset + 8
  11817. }
  11818. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  11819. return writeDouble(this, value, offset, true, noAssert)
  11820. }
  11821. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  11822. return writeDouble(this, value, offset, false, noAssert)
  11823. }
  11824. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  11825. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  11826. if (!start) start = 0
  11827. if (!end && end !== 0) end = this.length
  11828. if (targetStart >= target.length) targetStart = target.length
  11829. if (!targetStart) targetStart = 0
  11830. if (end > 0 && end < start) end = start
  11831. // Copy 0 bytes; we're done
  11832. if (end === start) return 0
  11833. if (target.length === 0 || this.length === 0) return 0
  11834. // Fatal error conditions
  11835. if (targetStart < 0) {
  11836. throw new RangeError('targetStart out of bounds')
  11837. }
  11838. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  11839. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  11840. // Are we oob?
  11841. if (end > this.length) end = this.length
  11842. if (target.length - targetStart < end - start) {
  11843. end = target.length - targetStart + start
  11844. }
  11845. var len = end - start
  11846. var i
  11847. if (this === target && start < targetStart && targetStart < end) {
  11848. // descending copy from end
  11849. for (i = len - 1; i >= 0; --i) {
  11850. target[i + targetStart] = this[i + start]
  11851. }
  11852. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  11853. // ascending copy from start
  11854. for (i = 0; i < len; ++i) {
  11855. target[i + targetStart] = this[i + start]
  11856. }
  11857. } else {
  11858. Uint8Array.prototype.set.call(
  11859. target,
  11860. this.subarray(start, start + len),
  11861. targetStart
  11862. )
  11863. }
  11864. return len
  11865. }
  11866. // Usage:
  11867. // buffer.fill(number[, offset[, end]])
  11868. // buffer.fill(buffer[, offset[, end]])
  11869. // buffer.fill(string[, offset[, end]][, encoding])
  11870. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  11871. // Handle string cases:
  11872. if (typeof val === 'string') {
  11873. if (typeof start === 'string') {
  11874. encoding = start
  11875. start = 0
  11876. end = this.length
  11877. } else if (typeof end === 'string') {
  11878. encoding = end
  11879. end = this.length
  11880. }
  11881. if (val.length === 1) {
  11882. var code = val.charCodeAt(0)
  11883. if (code < 256) {
  11884. val = code
  11885. }
  11886. }
  11887. if (encoding !== undefined && typeof encoding !== 'string') {
  11888. throw new TypeError('encoding must be a string')
  11889. }
  11890. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  11891. throw new TypeError('Unknown encoding: ' + encoding)
  11892. }
  11893. } else if (typeof val === 'number') {
  11894. val = val & 255
  11895. }
  11896. // Invalid ranges are not set to a default, so can range check early.
  11897. if (start < 0 || this.length < start || this.length < end) {
  11898. throw new RangeError('Out of range index')
  11899. }
  11900. if (end <= start) {
  11901. return this
  11902. }
  11903. start = start >>> 0
  11904. end = end === undefined ? this.length : end >>> 0
  11905. if (!val) val = 0
  11906. var i
  11907. if (typeof val === 'number') {
  11908. for (i = start; i < end; ++i) {
  11909. this[i] = val
  11910. }
  11911. } else {
  11912. var bytes = Buffer.isBuffer(val)
  11913. ? val
  11914. : utf8ToBytes(new Buffer(val, encoding).toString())
  11915. var len = bytes.length
  11916. for (i = 0; i < end - start; ++i) {
  11917. this[i + start] = bytes[i % len]
  11918. }
  11919. }
  11920. return this
  11921. }
  11922. // HELPER FUNCTIONS
  11923. // ================
  11924. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  11925. function base64clean (str) {
  11926. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  11927. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  11928. // Node converts strings with length < 2 to ''
  11929. if (str.length < 2) return ''
  11930. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  11931. while (str.length % 4 !== 0) {
  11932. str = str + '='
  11933. }
  11934. return str
  11935. }
  11936. function stringtrim (str) {
  11937. if (str.trim) return str.trim()
  11938. return str.replace(/^\s+|\s+$/g, '')
  11939. }
  11940. function toHex (n) {
  11941. if (n < 16) return '0' + n.toString(16)
  11942. return n.toString(16)
  11943. }
  11944. function utf8ToBytes (string, units) {
  11945. units = units || Infinity
  11946. var codePoint
  11947. var length = string.length
  11948. var leadSurrogate = null
  11949. var bytes = []
  11950. for (var i = 0; i < length; ++i) {
  11951. codePoint = string.charCodeAt(i)
  11952. // is surrogate component
  11953. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  11954. // last char was a lead
  11955. if (!leadSurrogate) {
  11956. // no lead yet
  11957. if (codePoint > 0xDBFF) {
  11958. // unexpected trail
  11959. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11960. continue
  11961. } else if (i + 1 === length) {
  11962. // unpaired lead
  11963. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11964. continue
  11965. }
  11966. // valid lead
  11967. leadSurrogate = codePoint
  11968. continue
  11969. }
  11970. // 2 leads in a row
  11971. if (codePoint < 0xDC00) {
  11972. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11973. leadSurrogate = codePoint
  11974. continue
  11975. }
  11976. // valid surrogate pair
  11977. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  11978. } else if (leadSurrogate) {
  11979. // valid bmp char, but last char was a lead
  11980. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  11981. }
  11982. leadSurrogate = null
  11983. // encode utf8
  11984. if (codePoint < 0x80) {
  11985. if ((units -= 1) < 0) break
  11986. bytes.push(codePoint)
  11987. } else if (codePoint < 0x800) {
  11988. if ((units -= 2) < 0) break
  11989. bytes.push(
  11990. codePoint >> 0x6 | 0xC0,
  11991. codePoint & 0x3F | 0x80
  11992. )
  11993. } else if (codePoint < 0x10000) {
  11994. if ((units -= 3) < 0) break
  11995. bytes.push(
  11996. codePoint >> 0xC | 0xE0,
  11997. codePoint >> 0x6 & 0x3F | 0x80,
  11998. codePoint & 0x3F | 0x80
  11999. )
  12000. } else if (codePoint < 0x110000) {
  12001. if ((units -= 4) < 0) break
  12002. bytes.push(
  12003. codePoint >> 0x12 | 0xF0,
  12004. codePoint >> 0xC & 0x3F | 0x80,
  12005. codePoint >> 0x6 & 0x3F | 0x80,
  12006. codePoint & 0x3F | 0x80
  12007. )
  12008. } else {
  12009. throw new Error('Invalid code point')
  12010. }
  12011. }
  12012. return bytes
  12013. }
  12014. function asciiToBytes (str) {
  12015. var byteArray = []
  12016. for (var i = 0; i < str.length; ++i) {
  12017. // Node's code seems to be doing this and not & 0x7F..
  12018. byteArray.push(str.charCodeAt(i) & 0xFF)
  12019. }
  12020. return byteArray
  12021. }
  12022. function utf16leToBytes (str, units) {
  12023. var c, hi, lo
  12024. var byteArray = []
  12025. for (var i = 0; i < str.length; ++i) {
  12026. if ((units -= 2) < 0) break
  12027. c = str.charCodeAt(i)
  12028. hi = c >> 8
  12029. lo = c % 256
  12030. byteArray.push(lo)
  12031. byteArray.push(hi)
  12032. }
  12033. return byteArray
  12034. }
  12035. function base64ToBytes (str) {
  12036. return base64.toByteArray(base64clean(str))
  12037. }
  12038. function blitBuffer (src, dst, offset, length) {
  12039. for (var i = 0; i < length; ++i) {
  12040. if ((i + offset >= dst.length) || (i >= src.length)) break
  12041. dst[i + offset] = src[i]
  12042. }
  12043. return i
  12044. }
  12045. function isnan (val) {
  12046. return val !== val // eslint-disable-line no-self-compare
  12047. }
  12048. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 2)))
  12049. /***/ }),
  12050. /* 51 */
  12051. /*!*****************************************!*\
  12052. !*** ./node_modules/base64-js/index.js ***!
  12053. \*****************************************/
  12054. /*! no static exports found */
  12055. /***/ (function(module, exports, __webpack_require__) {
  12056. "use strict";
  12057. exports.byteLength = byteLength
  12058. exports.toByteArray = toByteArray
  12059. exports.fromByteArray = fromByteArray
  12060. var lookup = []
  12061. var revLookup = []
  12062. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  12063. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  12064. for (var i = 0, len = code.length; i < len; ++i) {
  12065. lookup[i] = code[i]
  12066. revLookup[code.charCodeAt(i)] = i
  12067. }
  12068. // Support decoding URL-safe base64 strings, as Node.js does.
  12069. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  12070. revLookup['-'.charCodeAt(0)] = 62
  12071. revLookup['_'.charCodeAt(0)] = 63
  12072. function getLens (b64) {
  12073. var len = b64.length
  12074. if (len % 4 > 0) {
  12075. throw new Error('Invalid string. Length must be a multiple of 4')
  12076. }
  12077. // Trim off extra bytes after placeholder bytes are found
  12078. // See: https://github.com/beatgammit/base64-js/issues/42
  12079. var validLen = b64.indexOf('=')
  12080. if (validLen === -1) validLen = len
  12081. var placeHoldersLen = validLen === len
  12082. ? 0
  12083. : 4 - (validLen % 4)
  12084. return [validLen, placeHoldersLen]
  12085. }
  12086. // base64 is 4/3 + up to two characters of the original data
  12087. function byteLength (b64) {
  12088. var lens = getLens(b64)
  12089. var validLen = lens[0]
  12090. var placeHoldersLen = lens[1]
  12091. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12092. }
  12093. function _byteLength (b64, validLen, placeHoldersLen) {
  12094. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  12095. }
  12096. function toByteArray (b64) {
  12097. var tmp
  12098. var lens = getLens(b64)
  12099. var validLen = lens[0]
  12100. var placeHoldersLen = lens[1]
  12101. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  12102. var curByte = 0
  12103. // if there are placeholders, only get up to the last complete 4 chars
  12104. var len = placeHoldersLen > 0
  12105. ? validLen - 4
  12106. : validLen
  12107. var i
  12108. for (i = 0; i < len; i += 4) {
  12109. tmp =
  12110. (revLookup[b64.charCodeAt(i)] << 18) |
  12111. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  12112. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  12113. revLookup[b64.charCodeAt(i + 3)]
  12114. arr[curByte++] = (tmp >> 16) & 0xFF
  12115. arr[curByte++] = (tmp >> 8) & 0xFF
  12116. arr[curByte++] = tmp & 0xFF
  12117. }
  12118. if (placeHoldersLen === 2) {
  12119. tmp =
  12120. (revLookup[b64.charCodeAt(i)] << 2) |
  12121. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  12122. arr[curByte++] = tmp & 0xFF
  12123. }
  12124. if (placeHoldersLen === 1) {
  12125. tmp =
  12126. (revLookup[b64.charCodeAt(i)] << 10) |
  12127. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  12128. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  12129. arr[curByte++] = (tmp >> 8) & 0xFF
  12130. arr[curByte++] = tmp & 0xFF
  12131. }
  12132. return arr
  12133. }
  12134. function tripletToBase64 (num) {
  12135. return lookup[num >> 18 & 0x3F] +
  12136. lookup[num >> 12 & 0x3F] +
  12137. lookup[num >> 6 & 0x3F] +
  12138. lookup[num & 0x3F]
  12139. }
  12140. function encodeChunk (uint8, start, end) {
  12141. var tmp
  12142. var output = []
  12143. for (var i = start; i < end; i += 3) {
  12144. tmp =
  12145. ((uint8[i] << 16) & 0xFF0000) +
  12146. ((uint8[i + 1] << 8) & 0xFF00) +
  12147. (uint8[i + 2] & 0xFF)
  12148. output.push(tripletToBase64(tmp))
  12149. }
  12150. return output.join('')
  12151. }
  12152. function fromByteArray (uint8) {
  12153. var tmp
  12154. var len = uint8.length
  12155. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  12156. var parts = []
  12157. var maxChunkLength = 16383 // must be multiple of 3
  12158. // go through the array every three bytes, we'll deal with trailing stuff later
  12159. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  12160. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  12161. }
  12162. // pad the end with zeros, but make sure to not forget the extra bytes
  12163. if (extraBytes === 1) {
  12164. tmp = uint8[len - 1]
  12165. parts.push(
  12166. lookup[tmp >> 2] +
  12167. lookup[(tmp << 4) & 0x3F] +
  12168. '=='
  12169. )
  12170. } else if (extraBytes === 2) {
  12171. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  12172. parts.push(
  12173. lookup[tmp >> 10] +
  12174. lookup[(tmp >> 4) & 0x3F] +
  12175. lookup[(tmp << 2) & 0x3F] +
  12176. '='
  12177. )
  12178. }
  12179. return parts.join('')
  12180. }
  12181. /***/ }),
  12182. /* 52 */
  12183. /*!***************************************!*\
  12184. !*** ./node_modules/ieee754/index.js ***!
  12185. \***************************************/
  12186. /*! no static exports found */
  12187. /***/ (function(module, exports) {
  12188. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  12189. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  12190. var e, m
  12191. var eLen = (nBytes * 8) - mLen - 1
  12192. var eMax = (1 << eLen) - 1
  12193. var eBias = eMax >> 1
  12194. var nBits = -7
  12195. var i = isLE ? (nBytes - 1) : 0
  12196. var d = isLE ? -1 : 1
  12197. var s = buffer[offset + i]
  12198. i += d
  12199. e = s & ((1 << (-nBits)) - 1)
  12200. s >>= (-nBits)
  12201. nBits += eLen
  12202. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12203. m = e & ((1 << (-nBits)) - 1)
  12204. e >>= (-nBits)
  12205. nBits += mLen
  12206. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  12207. if (e === 0) {
  12208. e = 1 - eBias
  12209. } else if (e === eMax) {
  12210. return m ? NaN : ((s ? -1 : 1) * Infinity)
  12211. } else {
  12212. m = m + Math.pow(2, mLen)
  12213. e = e - eBias
  12214. }
  12215. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  12216. }
  12217. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  12218. var e, m, c
  12219. var eLen = (nBytes * 8) - mLen - 1
  12220. var eMax = (1 << eLen) - 1
  12221. var eBias = eMax >> 1
  12222. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  12223. var i = isLE ? 0 : (nBytes - 1)
  12224. var d = isLE ? 1 : -1
  12225. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  12226. value = Math.abs(value)
  12227. if (isNaN(value) || value === Infinity) {
  12228. m = isNaN(value) ? 1 : 0
  12229. e = eMax
  12230. } else {
  12231. e = Math.floor(Math.log(value) / Math.LN2)
  12232. if (value * (c = Math.pow(2, -e)) < 1) {
  12233. e--
  12234. c *= 2
  12235. }
  12236. if (e + eBias >= 1) {
  12237. value += rt / c
  12238. } else {
  12239. value += rt * Math.pow(2, 1 - eBias)
  12240. }
  12241. if (value * c >= 2) {
  12242. e++
  12243. c /= 2
  12244. }
  12245. if (e + eBias >= eMax) {
  12246. m = 0
  12247. e = eMax
  12248. } else if (e + eBias >= 1) {
  12249. m = ((value * c) - 1) * Math.pow(2, mLen)
  12250. e = e + eBias
  12251. } else {
  12252. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  12253. e = 0
  12254. }
  12255. }
  12256. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  12257. e = (e << mLen) | m
  12258. eLen += mLen
  12259. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  12260. buffer[offset + i - d] |= s * 128
  12261. }
  12262. /***/ }),
  12263. /* 53 */
  12264. /*!***************************************!*\
  12265. !*** ./node_modules/isarray/index.js ***!
  12266. \***************************************/
  12267. /*! no static exports found */
  12268. /***/ (function(module, exports) {
  12269. var toString = {}.toString;
  12270. module.exports = Array.isArray || function (arr) {
  12271. return toString.call(arr) == '[object Array]';
  12272. };
  12273. /***/ }),
  12274. /* 54 */
  12275. /*!************************************************************************!*\
  12276. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/util/route.js ***!
  12277. \************************************************************************/
  12278. /*! no static exports found */
  12279. /***/ (function(module, exports, __webpack_require__) {
  12280. "use strict";
  12281. /* WEBPACK VAR INJECTION */(function(uni) {
  12282. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  12283. Object.defineProperty(exports, "__esModule", {
  12284. value: true
  12285. });
  12286. exports.default = void 0;
  12287. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  12288. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  12289. var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 17));
  12290. var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ 18));
  12291. /**
  12292. * 路由跳转方法,该方法相对于直接使用uni.xxx的好处是使用更加简单快捷
  12293. * 并且带有路由拦截功能
  12294. */
  12295. var Router = /*#__PURE__*/function () {
  12296. function Router() {
  12297. (0, _classCallCheck2.default)(this, Router);
  12298. // 原始属性定义
  12299. this.config = {
  12300. type: 'navigateTo',
  12301. url: '',
  12302. delta: 1,
  12303. // navigateBack页面后退时,回退的层数
  12304. params: {},
  12305. // 传递的参数
  12306. animationType: 'pop-in',
  12307. // 窗口动画,只在APP有效
  12308. animationDuration: 300,
  12309. // 窗口动画持续时间,单位毫秒,只在APP有效
  12310. intercept: false // 是否需要拦截
  12311. };
  12312. // 因为route方法是需要对外赋值给另外的对象使用,同时route内部有使用this,会导致route失去上下文
  12313. // 这里在构造函数中进行this绑定
  12314. this.route = this.route.bind(this);
  12315. }
  12316. // 判断url前面是否有"/",如果没有则加上,否则无法跳转
  12317. (0, _createClass2.default)(Router, [{
  12318. key: "addRootPath",
  12319. value: function addRootPath(url) {
  12320. return url[0] === '/' ? url : "/".concat(url);
  12321. }
  12322. // 整合路由参数
  12323. }, {
  12324. key: "mixinParam",
  12325. value: function mixinParam(url, params) {
  12326. url = url && this.addRootPath(url);
  12327. // 使用正则匹配,主要依据是判断是否有"/","?","="等,如“/page/index/index?name=mary"
  12328. // 如果有url中有get参数,转换后无需带上"?"
  12329. var query = '';
  12330. if (/.*\/.*\?.*=.*/.test(url)) {
  12331. // object对象转为get类型的参数
  12332. query = uni.$u.queryParams(params, false);
  12333. // 因为已有get参数,所以后面拼接的参数需要带上"&"隔开
  12334. return url += "&".concat(query);
  12335. }
  12336. // 直接拼接参数,因为此处url中没有后面的query参数,也就没有"?/&"之类的符号
  12337. query = uni.$u.queryParams(params);
  12338. return url += query;
  12339. }
  12340. // 对外的方法名称
  12341. }, {
  12342. key: "route",
  12343. value: function () {
  12344. var _route = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  12345. var options,
  12346. params,
  12347. mergeConfig,
  12348. isNext,
  12349. _args = arguments;
  12350. return _regenerator.default.wrap(function _callee$(_context) {
  12351. while (1) {
  12352. switch (_context.prev = _context.next) {
  12353. case 0:
  12354. options = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
  12355. params = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
  12356. // 合并用户的配置和内部的默认配置
  12357. mergeConfig = {};
  12358. if (typeof options === 'string') {
  12359. // 如果options为字符串,则为route(url, params)的形式
  12360. mergeConfig.url = this.mixinParam(options, params);
  12361. mergeConfig.type = 'navigateTo';
  12362. } else {
  12363. mergeConfig = uni.$u.deepMerge(this.config, options);
  12364. // 否则正常使用mergeConfig中的url和params进行拼接
  12365. mergeConfig.url = this.mixinParam(options.url, options.params);
  12366. }
  12367. // 如果本次跳转的路径和本页面路径一致,不执行跳转,防止用户快速点击跳转按钮,造成多次跳转同一个页面的问题
  12368. if (!(mergeConfig.url === uni.$u.page())) {
  12369. _context.next = 6;
  12370. break;
  12371. }
  12372. return _context.abrupt("return");
  12373. case 6:
  12374. if (params.intercept) {
  12375. this.config.intercept = params.intercept;
  12376. }
  12377. // params参数也带给拦截器
  12378. mergeConfig.params = params;
  12379. // 合并内外部参数
  12380. mergeConfig = uni.$u.deepMerge(this.config, mergeConfig);
  12381. // 判断用户是否定义了拦截器
  12382. if (!(typeof uni.$u.routeIntercept === 'function')) {
  12383. _context.next = 16;
  12384. break;
  12385. }
  12386. _context.next = 12;
  12387. return new Promise(function (resolve, reject) {
  12388. uni.$u.routeIntercept(mergeConfig, resolve);
  12389. });
  12390. case 12:
  12391. isNext = _context.sent;
  12392. // 如果isNext为true,则执行路由跳转
  12393. isNext && this.openPage(mergeConfig);
  12394. _context.next = 17;
  12395. break;
  12396. case 16:
  12397. this.openPage(mergeConfig);
  12398. case 17:
  12399. case "end":
  12400. return _context.stop();
  12401. }
  12402. }
  12403. }, _callee, this);
  12404. }));
  12405. function route() {
  12406. return _route.apply(this, arguments);
  12407. }
  12408. return route;
  12409. }() // 执行路由跳转
  12410. }, {
  12411. key: "openPage",
  12412. value: function openPage(config) {
  12413. // 解构参数
  12414. var url = config.url,
  12415. type = config.type,
  12416. delta = config.delta,
  12417. animationType = config.animationType,
  12418. animationDuration = config.animationDuration;
  12419. if (config.type == 'navigateTo' || config.type == 'to') {
  12420. uni.navigateTo({
  12421. url: url,
  12422. animationType: animationType,
  12423. animationDuration: animationDuration
  12424. });
  12425. }
  12426. if (config.type == 'redirectTo' || config.type == 'redirect') {
  12427. uni.redirectTo({
  12428. url: url
  12429. });
  12430. }
  12431. if (config.type == 'switchTab' || config.type == 'tab') {
  12432. uni.switchTab({
  12433. url: url
  12434. });
  12435. }
  12436. if (config.type == 'reLaunch' || config.type == 'launch') {
  12437. uni.reLaunch({
  12438. url: url
  12439. });
  12440. }
  12441. if (config.type == 'navigateBack' || config.type == 'back') {
  12442. uni.navigateBack({
  12443. delta: delta
  12444. });
  12445. }
  12446. }
  12447. }]);
  12448. return Router;
  12449. }();
  12450. var _default = new Router().route;
  12451. exports.default = _default;
  12452. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  12453. /***/ }),
  12454. /* 55 */
  12455. /*!************************************************************************************************!*\
  12456. !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/@babel/runtime/regenerator/index.js ***!
  12457. \************************************************************************************************/
  12458. /*! no static exports found */
  12459. /***/ (function(module, exports, __webpack_require__) {
  12460. // TODO(Babel 8): Remove this file.
  12461. var runtime = __webpack_require__(/*! @babel/runtime/helpers/regeneratorRuntime */ 56)();
  12462. module.exports = runtime;
  12463. /***/ }),
  12464. /* 56 */
  12465. /*!*******************************************************************!*\
  12466. !*** ./node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
  12467. \*******************************************************************/
  12468. /*! no static exports found */
  12469. /***/ (function(module, exports, __webpack_require__) {
  12470. var _typeof = __webpack_require__(/*! ./typeof.js */ 12)["default"];
  12471. function _regeneratorRuntime() {
  12472. "use strict";
  12473. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  12474. module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
  12475. return exports;
  12476. }, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12477. var exports = {},
  12478. Op = Object.prototype,
  12479. hasOwn = Op.hasOwnProperty,
  12480. defineProperty = Object.defineProperty || function (obj, key, desc) {
  12481. obj[key] = desc.value;
  12482. },
  12483. $Symbol = "function" == typeof Symbol ? Symbol : {},
  12484. iteratorSymbol = $Symbol.iterator || "@@iterator",
  12485. asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
  12486. toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
  12487. function define(obj, key, value) {
  12488. return Object.defineProperty(obj, key, {
  12489. value: value,
  12490. enumerable: !0,
  12491. configurable: !0,
  12492. writable: !0
  12493. }), obj[key];
  12494. }
  12495. try {
  12496. define({}, "");
  12497. } catch (err) {
  12498. define = function define(obj, key, value) {
  12499. return obj[key] = value;
  12500. };
  12501. }
  12502. function wrap(innerFn, outerFn, self, tryLocsList) {
  12503. var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
  12504. generator = Object.create(protoGenerator.prototype),
  12505. context = new Context(tryLocsList || []);
  12506. return defineProperty(generator, "_invoke", {
  12507. value: makeInvokeMethod(innerFn, self, context)
  12508. }), generator;
  12509. }
  12510. function tryCatch(fn, obj, arg) {
  12511. try {
  12512. return {
  12513. type: "normal",
  12514. arg: fn.call(obj, arg)
  12515. };
  12516. } catch (err) {
  12517. return {
  12518. type: "throw",
  12519. arg: err
  12520. };
  12521. }
  12522. }
  12523. exports.wrap = wrap;
  12524. var ContinueSentinel = {};
  12525. function Generator() {}
  12526. function GeneratorFunction() {}
  12527. function GeneratorFunctionPrototype() {}
  12528. var IteratorPrototype = {};
  12529. define(IteratorPrototype, iteratorSymbol, function () {
  12530. return this;
  12531. });
  12532. var getProto = Object.getPrototypeOf,
  12533. NativeIteratorPrototype = getProto && getProto(getProto(values([])));
  12534. NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
  12535. var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
  12536. function defineIteratorMethods(prototype) {
  12537. ["next", "throw", "return"].forEach(function (method) {
  12538. define(prototype, method, function (arg) {
  12539. return this._invoke(method, arg);
  12540. });
  12541. });
  12542. }
  12543. function AsyncIterator(generator, PromiseImpl) {
  12544. function invoke(method, arg, resolve, reject) {
  12545. var record = tryCatch(generator[method], generator, arg);
  12546. if ("throw" !== record.type) {
  12547. var result = record.arg,
  12548. value = result.value;
  12549. return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
  12550. invoke("next", value, resolve, reject);
  12551. }, function (err) {
  12552. invoke("throw", err, resolve, reject);
  12553. }) : PromiseImpl.resolve(value).then(function (unwrapped) {
  12554. result.value = unwrapped, resolve(result);
  12555. }, function (error) {
  12556. return invoke("throw", error, resolve, reject);
  12557. });
  12558. }
  12559. reject(record.arg);
  12560. }
  12561. var previousPromise;
  12562. defineProperty(this, "_invoke", {
  12563. value: function value(method, arg) {
  12564. function callInvokeWithMethodAndArg() {
  12565. return new PromiseImpl(function (resolve, reject) {
  12566. invoke(method, arg, resolve, reject);
  12567. });
  12568. }
  12569. return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
  12570. }
  12571. });
  12572. }
  12573. function makeInvokeMethod(innerFn, self, context) {
  12574. var state = "suspendedStart";
  12575. return function (method, arg) {
  12576. if ("executing" === state) throw new Error("Generator is already running");
  12577. if ("completed" === state) {
  12578. if ("throw" === method) throw arg;
  12579. return doneResult();
  12580. }
  12581. for (context.method = method, context.arg = arg;;) {
  12582. var delegate = context.delegate;
  12583. if (delegate) {
  12584. var delegateResult = maybeInvokeDelegate(delegate, context);
  12585. if (delegateResult) {
  12586. if (delegateResult === ContinueSentinel) continue;
  12587. return delegateResult;
  12588. }
  12589. }
  12590. if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
  12591. if ("suspendedStart" === state) throw state = "completed", context.arg;
  12592. context.dispatchException(context.arg);
  12593. } else "return" === context.method && context.abrupt("return", context.arg);
  12594. state = "executing";
  12595. var record = tryCatch(innerFn, self, context);
  12596. if ("normal" === record.type) {
  12597. if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
  12598. return {
  12599. value: record.arg,
  12600. done: context.done
  12601. };
  12602. }
  12603. "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
  12604. }
  12605. };
  12606. }
  12607. function maybeInvokeDelegate(delegate, context) {
  12608. var methodName = context.method,
  12609. method = delegate.iterator[methodName];
  12610. if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
  12611. var record = tryCatch(method, delegate.iterator, context.arg);
  12612. if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
  12613. var info = record.arg;
  12614. return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
  12615. }
  12616. function pushTryEntry(locs) {
  12617. var entry = {
  12618. tryLoc: locs[0]
  12619. };
  12620. 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
  12621. }
  12622. function resetTryEntry(entry) {
  12623. var record = entry.completion || {};
  12624. record.type = "normal", delete record.arg, entry.completion = record;
  12625. }
  12626. function Context(tryLocsList) {
  12627. this.tryEntries = [{
  12628. tryLoc: "root"
  12629. }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
  12630. }
  12631. function values(iterable) {
  12632. if (iterable) {
  12633. var iteratorMethod = iterable[iteratorSymbol];
  12634. if (iteratorMethod) return iteratorMethod.call(iterable);
  12635. if ("function" == typeof iterable.next) return iterable;
  12636. if (!isNaN(iterable.length)) {
  12637. var i = -1,
  12638. next = function next() {
  12639. for (; ++i < iterable.length;) {
  12640. if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
  12641. }
  12642. return next.value = undefined, next.done = !0, next;
  12643. };
  12644. return next.next = next;
  12645. }
  12646. }
  12647. return {
  12648. next: doneResult
  12649. };
  12650. }
  12651. function doneResult() {
  12652. return {
  12653. value: undefined,
  12654. done: !0
  12655. };
  12656. }
  12657. return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
  12658. value: GeneratorFunctionPrototype,
  12659. configurable: !0
  12660. }), defineProperty(GeneratorFunctionPrototype, "constructor", {
  12661. value: GeneratorFunction,
  12662. configurable: !0
  12663. }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
  12664. var ctor = "function" == typeof genFun && genFun.constructor;
  12665. return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
  12666. }, exports.mark = function (genFun) {
  12667. return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
  12668. }, exports.awrap = function (arg) {
  12669. return {
  12670. __await: arg
  12671. };
  12672. }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
  12673. return this;
  12674. }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
  12675. void 0 === PromiseImpl && (PromiseImpl = Promise);
  12676. var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
  12677. return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
  12678. return result.done ? result.value : iter.next();
  12679. });
  12680. }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
  12681. return this;
  12682. }), define(Gp, "toString", function () {
  12683. return "[object Generator]";
  12684. }), exports.keys = function (val) {
  12685. var object = Object(val),
  12686. keys = [];
  12687. for (var key in object) {
  12688. keys.push(key);
  12689. }
  12690. return keys.reverse(), function next() {
  12691. for (; keys.length;) {
  12692. var key = keys.pop();
  12693. if (key in object) return next.value = key, next.done = !1, next;
  12694. }
  12695. return next.done = !0, next;
  12696. };
  12697. }, exports.values = values, Context.prototype = {
  12698. constructor: Context,
  12699. reset: function reset(skipTempReset) {
  12700. if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
  12701. "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
  12702. }
  12703. },
  12704. stop: function stop() {
  12705. this.done = !0;
  12706. var rootRecord = this.tryEntries[0].completion;
  12707. if ("throw" === rootRecord.type) throw rootRecord.arg;
  12708. return this.rval;
  12709. },
  12710. dispatchException: function dispatchException(exception) {
  12711. if (this.done) throw exception;
  12712. var context = this;
  12713. function handle(loc, caught) {
  12714. return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
  12715. }
  12716. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12717. var entry = this.tryEntries[i],
  12718. record = entry.completion;
  12719. if ("root" === entry.tryLoc) return handle("end");
  12720. if (entry.tryLoc <= this.prev) {
  12721. var hasCatch = hasOwn.call(entry, "catchLoc"),
  12722. hasFinally = hasOwn.call(entry, "finallyLoc");
  12723. if (hasCatch && hasFinally) {
  12724. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12725. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12726. } else if (hasCatch) {
  12727. if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
  12728. } else {
  12729. if (!hasFinally) throw new Error("try statement without catch or finally");
  12730. if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
  12731. }
  12732. }
  12733. }
  12734. },
  12735. abrupt: function abrupt(type, arg) {
  12736. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12737. var entry = this.tryEntries[i];
  12738. if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
  12739. var finallyEntry = entry;
  12740. break;
  12741. }
  12742. }
  12743. finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
  12744. var record = finallyEntry ? finallyEntry.completion : {};
  12745. return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
  12746. },
  12747. complete: function complete(record, afterLoc) {
  12748. if ("throw" === record.type) throw record.arg;
  12749. return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
  12750. },
  12751. finish: function finish(finallyLoc) {
  12752. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12753. var entry = this.tryEntries[i];
  12754. if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
  12755. }
  12756. },
  12757. "catch": function _catch(tryLoc) {
  12758. for (var i = this.tryEntries.length - 1; i >= 0; --i) {
  12759. var entry = this.tryEntries[i];
  12760. if (entry.tryLoc === tryLoc) {
  12761. var record = entry.completion;
  12762. if ("throw" === record.type) {
  12763. var thrown = record.arg;
  12764. resetTryEntry(entry);
  12765. }
  12766. return thrown;
  12767. }
  12768. }
  12769. throw new Error("illegal catch attempt");
  12770. },
  12771. delegateYield: function delegateYield(iterable, resultName, nextLoc) {
  12772. return this.delegate = {
  12773. iterator: values(iterable),
  12774. resultName: resultName,
  12775. nextLoc: nextLoc
  12776. }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
  12777. }
  12778. }, exports;
  12779. }
  12780. module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12781. /***/ }),
  12782. /* 57 */
  12783. /*!*****************************************************************!*\
  12784. !*** ./node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
  12785. \*****************************************************************/
  12786. /*! no static exports found */
  12787. /***/ (function(module, exports) {
  12788. function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
  12789. try {
  12790. var info = gen[key](arg);
  12791. var value = info.value;
  12792. } catch (error) {
  12793. reject(error);
  12794. return;
  12795. }
  12796. if (info.done) {
  12797. resolve(value);
  12798. } else {
  12799. Promise.resolve(value).then(_next, _throw);
  12800. }
  12801. }
  12802. function _asyncToGenerator(fn) {
  12803. return function () {
  12804. var self = this,
  12805. args = arguments;
  12806. return new Promise(function (resolve, reject) {
  12807. var gen = fn.apply(self, args);
  12808. function _next(value) {
  12809. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
  12810. }
  12811. function _throw(err) {
  12812. asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
  12813. }
  12814. _next(undefined);
  12815. });
  12816. };
  12817. }
  12818. module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
  12819. /***/ }),
  12820. /* 58 */
  12821. /*!************************************************************************************!*\
  12822. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/function/colorGradient.js ***!
  12823. \************************************************************************************/
  12824. /*! no static exports found */
  12825. /***/ (function(module, exports, __webpack_require__) {
  12826. "use strict";
  12827. Object.defineProperty(exports, "__esModule", {
  12828. value: true
  12829. });
  12830. exports.default = void 0;
  12831. /**
  12832. * 求两个颜色之间的渐变值
  12833. * @param {string} startColor 开始的颜色
  12834. * @param {string} endColor 结束的颜色
  12835. * @param {number} step 颜色等分的份额
  12836. * */
  12837. function colorGradient() {
  12838. var startColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'rgb(0, 0, 0)';
  12839. var endColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'rgb(255, 255, 255)';
  12840. var step = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
  12841. var startRGB = hexToRgb(startColor, false); // 转换为rgb数组模式
  12842. var startR = startRGB[0];
  12843. var startG = startRGB[1];
  12844. var startB = startRGB[2];
  12845. var endRGB = hexToRgb(endColor, false);
  12846. var endR = endRGB[0];
  12847. var endG = endRGB[1];
  12848. var endB = endRGB[2];
  12849. var sR = (endR - startR) / step; // 总差值
  12850. var sG = (endG - startG) / step;
  12851. var sB = (endB - startB) / step;
  12852. var colorArr = [];
  12853. for (var i = 0; i < step; i++) {
  12854. // 计算每一步的hex值
  12855. var hex = rgbToHex("rgb(".concat(Math.round(sR * i + startR), ",").concat(Math.round(sG * i + startG), ",").concat(Math.round(sB * i + startB), ")"));
  12856. // 确保第一个颜色值为startColor的值
  12857. if (i === 0) hex = rgbToHex(startColor);
  12858. // 确保最后一个颜色值为endColor的值
  12859. if (i === step - 1) hex = rgbToHex(endColor);
  12860. colorArr.push(hex);
  12861. }
  12862. return colorArr;
  12863. }
  12864. // 将hex表示方式转换为rgb表示方式(这里返回rgb数组模式)
  12865. function hexToRgb(sColor) {
  12866. var str = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  12867. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12868. sColor = String(sColor).toLowerCase();
  12869. if (sColor && reg.test(sColor)) {
  12870. if (sColor.length === 4) {
  12871. var sColorNew = '#';
  12872. for (var i = 1; i < 4; i += 1) {
  12873. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12874. }
  12875. sColor = sColorNew;
  12876. }
  12877. // 处理六位的颜色值
  12878. var sColorChange = [];
  12879. for (var _i = 1; _i < 7; _i += 2) {
  12880. sColorChange.push(parseInt("0x".concat(sColor.slice(_i, _i + 2))));
  12881. }
  12882. if (!str) {
  12883. return sColorChange;
  12884. }
  12885. return "rgb(".concat(sColorChange[0], ",").concat(sColorChange[1], ",").concat(sColorChange[2], ")");
  12886. }
  12887. if (/^(rgb|RGB)/.test(sColor)) {
  12888. var arr = sColor.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12889. return arr.map(function (val) {
  12890. return Number(val);
  12891. });
  12892. }
  12893. return sColor;
  12894. }
  12895. // 将rgb表示方式转换为hex表示方式
  12896. function rgbToHex(rgb) {
  12897. var _this = rgb;
  12898. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12899. if (/^(rgb|RGB)/.test(_this)) {
  12900. var aColor = _this.replace(/(?:\(|\)|rgb|RGB)*/g, '').split(',');
  12901. var strHex = '#';
  12902. for (var i = 0; i < aColor.length; i++) {
  12903. var hex = Number(aColor[i]).toString(16);
  12904. hex = String(hex).length == 1 ? "".concat(0, hex) : hex; // 保证每个rgb的值为2位
  12905. if (hex === '0') {
  12906. hex += hex;
  12907. }
  12908. strHex += hex;
  12909. }
  12910. if (strHex.length !== 7) {
  12911. strHex = _this;
  12912. }
  12913. return strHex;
  12914. }
  12915. if (reg.test(_this)) {
  12916. var aNum = _this.replace(/#/, '').split('');
  12917. if (aNum.length === 6) {
  12918. return _this;
  12919. }
  12920. if (aNum.length === 3) {
  12921. var numHex = '#';
  12922. for (var _i2 = 0; _i2 < aNum.length; _i2 += 1) {
  12923. numHex += aNum[_i2] + aNum[_i2];
  12924. }
  12925. return numHex;
  12926. }
  12927. } else {
  12928. return _this;
  12929. }
  12930. }
  12931. /**
  12932. * JS颜色十六进制转换为rgb或rgba,返回的格式为 rgba(255,255,255,0.5)字符串
  12933. * sHex为传入的十六进制的色值
  12934. * alpha为rgba的透明度
  12935. */
  12936. function colorToRgba(color, alpha) {
  12937. color = rgbToHex(color);
  12938. // 十六进制颜色值的正则表达式
  12939. var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
  12940. /* 16进制颜色转为RGB格式 */
  12941. var sColor = String(color).toLowerCase();
  12942. if (sColor && reg.test(sColor)) {
  12943. if (sColor.length === 4) {
  12944. var sColorNew = '#';
  12945. for (var i = 1; i < 4; i += 1) {
  12946. sColorNew += sColor.slice(i, i + 1).concat(sColor.slice(i, i + 1));
  12947. }
  12948. sColor = sColorNew;
  12949. }
  12950. // 处理六位的颜色值
  12951. var sColorChange = [];
  12952. for (var _i3 = 1; _i3 < 7; _i3 += 2) {
  12953. sColorChange.push(parseInt("0x".concat(sColor.slice(_i3, _i3 + 2))));
  12954. }
  12955. // return sColorChange.join(',')
  12956. return "rgba(".concat(sColorChange.join(','), ",").concat(alpha, ")");
  12957. }
  12958. return sColor;
  12959. }
  12960. var _default = {
  12961. colorGradient: colorGradient,
  12962. hexToRgb: hexToRgb,
  12963. rgbToHex: rgbToHex,
  12964. colorToRgba: colorToRgba
  12965. };
  12966. exports.default = _default;
  12967. /***/ }),
  12968. /* 59 */
  12969. /*!***************************************************************************!*\
  12970. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/function/test.js ***!
  12971. \***************************************************************************/
  12972. /*! no static exports found */
  12973. /***/ (function(module, exports, __webpack_require__) {
  12974. "use strict";
  12975. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  12976. Object.defineProperty(exports, "__esModule", {
  12977. value: true
  12978. });
  12979. exports.default = void 0;
  12980. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  12981. /**
  12982. * 验证电子邮箱格式
  12983. */
  12984. function email(value) {
  12985. return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(value);
  12986. }
  12987. /**
  12988. * 验证手机格式
  12989. */
  12990. function mobile(value) {
  12991. return /^1([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(value);
  12992. }
  12993. /**
  12994. * 验证URL格式
  12995. */
  12996. function url(value) {
  12997. 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);
  12998. }
  12999. /**
  13000. * 验证日期格式
  13001. */
  13002. function date(value) {
  13003. if (!value) return false;
  13004. // 判断是否数值或者字符串数值(意味着为时间戳),转为数值,否则new Date无法识别字符串时间戳
  13005. if (number(value)) value = +value;
  13006. return !/Invalid|NaN/.test(new Date(value).toString());
  13007. }
  13008. /**
  13009. * 验证ISO类型的日期格式
  13010. */
  13011. function dateISO(value) {
  13012. return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);
  13013. }
  13014. /**
  13015. * 验证十进制数字
  13016. */
  13017. function number(value) {
  13018. return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(value);
  13019. }
  13020. /**
  13021. * 验证字符串
  13022. */
  13023. function string(value) {
  13024. return typeof value === 'string';
  13025. }
  13026. /**
  13027. * 验证整数
  13028. */
  13029. function digits(value) {
  13030. return /^\d+$/.test(value);
  13031. }
  13032. /**
  13033. * 验证身份证号码
  13034. */
  13035. function idCard(value) {
  13036. 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);
  13037. }
  13038. /**
  13039. * 是否车牌号
  13040. */
  13041. function carNo(value) {
  13042. // 新能源车牌
  13043. var xreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
  13044. // 旧车牌
  13045. var creg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
  13046. if (value.length === 7) {
  13047. return creg.test(value);
  13048. }
  13049. if (value.length === 8) {
  13050. return xreg.test(value);
  13051. }
  13052. return false;
  13053. }
  13054. /**
  13055. * 金额,只允许2位小数
  13056. */
  13057. function amount(value) {
  13058. // 金额,只允许保留两位小数
  13059. return /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(value);
  13060. }
  13061. /**
  13062. * 中文
  13063. */
  13064. function chinese(value) {
  13065. var reg = /^[\u4e00-\u9fa5]+$/gi;
  13066. return reg.test(value);
  13067. }
  13068. /**
  13069. * 只能输入字母
  13070. */
  13071. function letter(value) {
  13072. return /^[a-zA-Z]*$/.test(value);
  13073. }
  13074. /**
  13075. * 只能是字母或者数字
  13076. */
  13077. function enOrNum(value) {
  13078. // 英文或者数字
  13079. var reg = /^[0-9a-zA-Z]*$/g;
  13080. return reg.test(value);
  13081. }
  13082. /**
  13083. * 验证是否包含某个值
  13084. */
  13085. function contains(value, param) {
  13086. return value.indexOf(param) >= 0;
  13087. }
  13088. /**
  13089. * 验证一个值范围[min, max]
  13090. */
  13091. function range(value, param) {
  13092. return value >= param[0] && value <= param[1];
  13093. }
  13094. /**
  13095. * 验证一个长度范围[min, max]
  13096. */
  13097. function rangeLength(value, param) {
  13098. return value.length >= param[0] && value.length <= param[1];
  13099. }
  13100. /**
  13101. * 是否固定电话
  13102. */
  13103. function landline(value) {
  13104. var reg = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/;
  13105. return reg.test(value);
  13106. }
  13107. /**
  13108. * 判断是否为空
  13109. */
  13110. function empty(value) {
  13111. switch ((0, _typeof2.default)(value)) {
  13112. case 'undefined':
  13113. return true;
  13114. case 'string':
  13115. if (value.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) return true;
  13116. break;
  13117. case 'boolean':
  13118. if (!value) return true;
  13119. break;
  13120. case 'number':
  13121. if (value === 0 || isNaN(value)) return true;
  13122. break;
  13123. case 'object':
  13124. if (value === null || value.length === 0) return true;
  13125. for (var i in value) {
  13126. return false;
  13127. }
  13128. return true;
  13129. }
  13130. return false;
  13131. }
  13132. /**
  13133. * 是否json字符串
  13134. */
  13135. function jsonString(value) {
  13136. if (typeof value === 'string') {
  13137. try {
  13138. var obj = JSON.parse(value);
  13139. if ((0, _typeof2.default)(obj) === 'object' && obj) {
  13140. return true;
  13141. }
  13142. return false;
  13143. } catch (e) {
  13144. return false;
  13145. }
  13146. }
  13147. return false;
  13148. }
  13149. /**
  13150. * 是否数组
  13151. */
  13152. function array(value) {
  13153. if (typeof Array.isArray === 'function') {
  13154. return Array.isArray(value);
  13155. }
  13156. return Object.prototype.toString.call(value) === '[object Array]';
  13157. }
  13158. /**
  13159. * 是否对象
  13160. */
  13161. function object(value) {
  13162. return Object.prototype.toString.call(value) === '[object Object]';
  13163. }
  13164. /**
  13165. * 是否短信验证码
  13166. */
  13167. function code(value) {
  13168. var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 6;
  13169. return new RegExp("^\\d{".concat(len, "}$")).test(value);
  13170. }
  13171. /**
  13172. * 是否函数方法
  13173. * @param {Object} value
  13174. */
  13175. function func(value) {
  13176. return typeof value === 'function';
  13177. }
  13178. /**
  13179. * 是否promise对象
  13180. * @param {Object} value
  13181. */
  13182. function promise(value) {
  13183. return object(value) && func(value.then) && func(value.catch);
  13184. }
  13185. /** 是否图片格式
  13186. * @param {Object} value
  13187. */
  13188. function image(value) {
  13189. var newValue = value.split('?')[0];
  13190. var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
  13191. return IMAGE_REGEXP.test(newValue);
  13192. }
  13193. /**
  13194. * 是否视频格式
  13195. * @param {Object} value
  13196. */
  13197. function video(value) {
  13198. var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;
  13199. return VIDEO_REGEXP.test(value);
  13200. }
  13201. /**
  13202. * 是否为正则对象
  13203. * @param {Object}
  13204. * @return {Boolean}
  13205. */
  13206. function regExp(o) {
  13207. return o && Object.prototype.toString.call(o) === '[object RegExp]';
  13208. }
  13209. var _default = {
  13210. email: email,
  13211. mobile: mobile,
  13212. url: url,
  13213. date: date,
  13214. dateISO: dateISO,
  13215. number: number,
  13216. digits: digits,
  13217. idCard: idCard,
  13218. carNo: carNo,
  13219. amount: amount,
  13220. chinese: chinese,
  13221. letter: letter,
  13222. enOrNum: enOrNum,
  13223. contains: contains,
  13224. range: range,
  13225. rangeLength: rangeLength,
  13226. empty: empty,
  13227. isEmpty: empty,
  13228. jsonString: jsonString,
  13229. landline: landline,
  13230. object: object,
  13231. array: array,
  13232. code: code,
  13233. func: func,
  13234. promise: promise,
  13235. video: video,
  13236. image: image,
  13237. regExp: regExp,
  13238. string: string
  13239. };
  13240. exports.default = _default;
  13241. /***/ }),
  13242. /* 60 */
  13243. /*!*******************************************************************************!*\
  13244. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/function/debounce.js ***!
  13245. \*******************************************************************************/
  13246. /*! no static exports found */
  13247. /***/ (function(module, exports, __webpack_require__) {
  13248. "use strict";
  13249. Object.defineProperty(exports, "__esModule", {
  13250. value: true
  13251. });
  13252. exports.default = void 0;
  13253. var timeout = null;
  13254. /**
  13255. * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数
  13256. *
  13257. * @param {Function} func 要执行的回调函数
  13258. * @param {Number} wait 延时的时间
  13259. * @param {Boolean} immediate 是否立即执行
  13260. * @return null
  13261. */
  13262. function debounce(func) {
  13263. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13264. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  13265. // 清除定时器
  13266. if (timeout !== null) clearTimeout(timeout);
  13267. // 立即执行,此类情况一般用不到
  13268. if (immediate) {
  13269. var callNow = !timeout;
  13270. timeout = setTimeout(function () {
  13271. timeout = null;
  13272. }, wait);
  13273. if (callNow) typeof func === 'function' && func();
  13274. } else {
  13275. // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法
  13276. timeout = setTimeout(function () {
  13277. typeof func === 'function' && func();
  13278. }, wait);
  13279. }
  13280. }
  13281. var _default = debounce;
  13282. exports.default = _default;
  13283. /***/ }),
  13284. /* 61 */
  13285. /*!*******************************************************************************!*\
  13286. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/function/throttle.js ***!
  13287. \*******************************************************************************/
  13288. /*! no static exports found */
  13289. /***/ (function(module, exports, __webpack_require__) {
  13290. "use strict";
  13291. Object.defineProperty(exports, "__esModule", {
  13292. value: true
  13293. });
  13294. exports.default = void 0;
  13295. var timer;
  13296. var flag;
  13297. /**
  13298. * 节流原理:在一定时间内,只能触发一次
  13299. *
  13300. * @param {Function} func 要执行的回调函数
  13301. * @param {Number} wait 延时的时间
  13302. * @param {Boolean} immediate 是否立即执行
  13303. * @return null
  13304. */
  13305. function throttle(func) {
  13306. var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
  13307. var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
  13308. if (immediate) {
  13309. if (!flag) {
  13310. flag = true;
  13311. // 如果是立即执行,则在wait毫秒内开始时执行
  13312. typeof func === 'function' && func();
  13313. timer = setTimeout(function () {
  13314. flag = false;
  13315. }, wait);
  13316. }
  13317. } else if (!flag) {
  13318. flag = true;
  13319. // 如果是非立即执行,则在wait毫秒内的结束处执行
  13320. timer = setTimeout(function () {
  13321. flag = false;
  13322. typeof func === 'function' && func();
  13323. }, wait);
  13324. }
  13325. }
  13326. var _default = throttle;
  13327. exports.default = _default;
  13328. /***/ }),
  13329. /* 62 */
  13330. /*!****************************************************************************!*\
  13331. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/function/index.js ***!
  13332. \****************************************************************************/
  13333. /*! no static exports found */
  13334. /***/ (function(module, exports, __webpack_require__) {
  13335. "use strict";
  13336. /* WEBPACK VAR INJECTION */(function(uni) {
  13337. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  13338. Object.defineProperty(exports, "__esModule", {
  13339. value: true
  13340. });
  13341. exports.default = void 0;
  13342. var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 4));
  13343. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  13344. var _test = _interopRequireDefault(__webpack_require__(/*! ./test.js */ 59));
  13345. var _digit = __webpack_require__(/*! ./digit.js */ 63);
  13346. /**
  13347. * @description 如果value小于min,取min;如果value大于max,取max
  13348. * @param {number} min
  13349. * @param {number} max
  13350. * @param {number} value
  13351. */
  13352. function range() {
  13353. var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  13354. var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13355. var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
  13356. return Math.max(min, Math.min(max, Number(value)));
  13357. }
  13358. /**
  13359. * @description 用于获取用户传递值的px值 如果用户传递了"xxpx"或者"xxrpx",取出其数值部分,如果是"xxxrpx"还需要用过uni.upx2px进行转换
  13360. * @param {number|string} value 用户传递值的px值
  13361. * @param {boolean} unit
  13362. * @returns {number|string}
  13363. */
  13364. function getPx(value) {
  13365. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13366. if (_test.default.number(value)) {
  13367. return unit ? "".concat(value, "px") : Number(value);
  13368. }
  13369. // 如果带有rpx,先取出其数值部分,再转为px值
  13370. if (/(rpx|upx)$/.test(value)) {
  13371. return unit ? "".concat(uni.upx2px(parseInt(value)), "px") : Number(uni.upx2px(parseInt(value)));
  13372. }
  13373. return unit ? "".concat(parseInt(value), "px") : parseInt(value);
  13374. }
  13375. /**
  13376. * @description 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
  13377. * @param {number} value 堵塞时间 单位ms 毫秒
  13378. * @returns {Promise} 返回promise
  13379. */
  13380. function sleep() {
  13381. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 30;
  13382. return new Promise(function (resolve) {
  13383. setTimeout(function () {
  13384. resolve();
  13385. }, value);
  13386. });
  13387. }
  13388. /**
  13389. * @description 运行期判断平台
  13390. * @returns {string} 返回所在平台(小写)
  13391. * @link 运行期判断平台 https://uniapp.dcloud.io/frame?id=判断平台
  13392. */
  13393. function os() {
  13394. return uni.getSystemInfoSync().platform.toLowerCase();
  13395. }
  13396. /**
  13397. * @description 获取系统信息同步接口
  13398. * @link 获取系统信息同步接口 https://uniapp.dcloud.io/api/system/info?id=getsysteminfosync
  13399. */
  13400. function sys() {
  13401. return uni.getSystemInfoSync();
  13402. }
  13403. /**
  13404. * @description 取一个区间数
  13405. * @param {Number} min 最小值
  13406. * @param {Number} max 最大值
  13407. */
  13408. function random(min, max) {
  13409. if (min >= 0 && max > 0 && max >= min) {
  13410. var gab = max - min + 1;
  13411. return Math.floor(Math.random() * gab + min);
  13412. }
  13413. return 0;
  13414. }
  13415. /**
  13416. * @param {Number} len uuid的长度
  13417. * @param {Boolean} firstU 将返回的首字母置为"u"
  13418. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  13419. */
  13420. function guid() {
  13421. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  13422. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13423. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  13424. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  13425. var uuid = [];
  13426. radix = radix || chars.length;
  13427. if (len) {
  13428. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  13429. for (var i = 0; i < len; i++) {
  13430. uuid[i] = chars[0 | Math.random() * radix];
  13431. }
  13432. } else {
  13433. var r;
  13434. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  13435. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  13436. uuid[14] = '4';
  13437. for (var _i = 0; _i < 36; _i++) {
  13438. if (!uuid[_i]) {
  13439. r = 0 | Math.random() * 16;
  13440. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  13441. }
  13442. }
  13443. }
  13444. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  13445. if (firstU) {
  13446. uuid.shift();
  13447. return "u".concat(uuid.join(''));
  13448. }
  13449. return uuid.join('');
  13450. }
  13451. /**
  13452. * @description 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法
  13453. this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx
  13454. 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name
  13455. 值(默认为undefined),就是查找最顶层的$parent
  13456. * @param {string|undefined} name 父组件的参数名
  13457. */
  13458. function $parent() {
  13459. var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
  13460. var parent = this.$parent;
  13461. // 通过while历遍,这里主要是为了H5需要多层解析的问题
  13462. while (parent) {
  13463. // 父组件
  13464. if (parent.$options && parent.$options.name !== name) {
  13465. // 如果组件的name不相等,继续上一级寻找
  13466. parent = parent.$parent;
  13467. } else {
  13468. return parent;
  13469. }
  13470. }
  13471. return false;
  13472. }
  13473. /**
  13474. * @description 样式转换
  13475. * 对象转字符串,或者字符串转对象
  13476. * @param {object | string} customStyle 需要转换的目标
  13477. * @param {String} target 转换的目的,object-转为对象,string-转为字符串
  13478. * @returns {object|string}
  13479. */
  13480. function addStyle(customStyle) {
  13481. var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'object';
  13482. // 字符串转字符串,对象转对象情形,直接返回
  13483. if (_test.default.empty(customStyle) || (0, _typeof2.default)(customStyle) === 'object' && target === 'object' || target === 'string' && typeof customStyle === 'string') {
  13484. return customStyle;
  13485. }
  13486. // 字符串转对象
  13487. if (target === 'object') {
  13488. // 去除字符串样式中的两端空格(中间的空格不能去掉,比如padding: 20px 0如果去掉了就错了),空格是无用的
  13489. customStyle = trim(customStyle);
  13490. // 根据";"将字符串转为数组形式
  13491. var styleArray = customStyle.split(';');
  13492. var style = {};
  13493. // 历遍数组,拼接成对象
  13494. for (var i = 0; i < styleArray.length; i++) {
  13495. // 'font-size:20px;color:red;',如此最后字符串有";"的话,会导致styleArray最后一个元素为空字符串,这里需要过滤
  13496. if (styleArray[i]) {
  13497. var item = styleArray[i].split(':');
  13498. style[trim(item[0])] = trim(item[1]);
  13499. }
  13500. }
  13501. return style;
  13502. }
  13503. // 这里为对象转字符串形式
  13504. var string = '';
  13505. for (var _i2 in customStyle) {
  13506. // 驼峰转为中划线的形式,否则css内联样式,无法识别驼峰样式属性名
  13507. var key = _i2.replace(/([A-Z])/g, '-$1').toLowerCase();
  13508. string += "".concat(key, ":").concat(customStyle[_i2], ";");
  13509. }
  13510. // 去除两端空格
  13511. return trim(string);
  13512. }
  13513. /**
  13514. * @description 添加单位,如果有rpx,upx,%,px等单位结尾或者值为auto,直接返回,否则加上px单位结尾
  13515. * @param {string|number} value 需要添加单位的值
  13516. * @param {string} unit 添加的单位名 比如px
  13517. */
  13518. function addUnit() {
  13519. var _uni$$u$config$unit, _uni, _uni$$u, _uni$$u$config;
  13520. var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'auto';
  13521. 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';
  13522. value = String(value);
  13523. // 用uView内置验证规则中的number判断是否为数值
  13524. return _test.default.number(value) ? "".concat(value).concat(unit) : value;
  13525. }
  13526. /**
  13527. * @description 深度克隆
  13528. * @param {object} obj 需要深度克隆的对象
  13529. * @param cache 缓存
  13530. * @returns {*} 克隆后的对象或者原值(不是对象)
  13531. */
  13532. function deepClone(obj) {
  13533. var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new WeakMap();
  13534. if (obj === null || (0, _typeof2.default)(obj) !== 'object') return obj;
  13535. if (cache.has(obj)) return cache.get(obj);
  13536. var clone;
  13537. if (obj instanceof Date) {
  13538. clone = new Date(obj.getTime());
  13539. } else if (obj instanceof RegExp) {
  13540. clone = new RegExp(obj);
  13541. } else if (obj instanceof Map) {
  13542. clone = new Map(Array.from(obj, function (_ref) {
  13543. var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
  13544. key = _ref2[0],
  13545. value = _ref2[1];
  13546. return [key, deepClone(value, cache)];
  13547. }));
  13548. } else if (obj instanceof Set) {
  13549. clone = new Set(Array.from(obj, function (value) {
  13550. return deepClone(value, cache);
  13551. }));
  13552. } else if (Array.isArray(obj)) {
  13553. clone = obj.map(function (value) {
  13554. return deepClone(value, cache);
  13555. });
  13556. } else if (Object.prototype.toString.call(obj) === '[object Object]') {
  13557. clone = Object.create(Object.getPrototypeOf(obj));
  13558. cache.set(obj, clone);
  13559. for (var _i3 = 0, _Object$entries = Object.entries(obj); _i3 < _Object$entries.length; _i3++) {
  13560. var _Object$entries$_i = (0, _slicedToArray2.default)(_Object$entries[_i3], 2),
  13561. key = _Object$entries$_i[0],
  13562. value = _Object$entries$_i[1];
  13563. clone[key] = deepClone(value, cache);
  13564. }
  13565. } else {
  13566. clone = Object.assign({}, obj);
  13567. }
  13568. cache.set(obj, clone);
  13569. return clone;
  13570. }
  13571. /**
  13572. * @description JS对象深度合并
  13573. * @param {object} target 需要拷贝的对象
  13574. * @param {object} source 拷贝的来源对象
  13575. * @returns {object|boolean} 深度合并后的对象或者false(入参有不是对象)
  13576. */
  13577. function deepMerge() {
  13578. var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13579. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  13580. target = deepClone(target);
  13581. if ((0, _typeof2.default)(target) !== 'object' || target === null || (0, _typeof2.default)(source) !== 'object' || source === null) return target;
  13582. var merged = Array.isArray(target) ? target.slice() : Object.assign({}, target);
  13583. for (var prop in source) {
  13584. if (!source.hasOwnProperty(prop)) continue;
  13585. var sourceValue = source[prop];
  13586. var targetValue = merged[prop];
  13587. if (sourceValue instanceof Date) {
  13588. merged[prop] = new Date(sourceValue);
  13589. } else if (sourceValue instanceof RegExp) {
  13590. merged[prop] = new RegExp(sourceValue);
  13591. } else if (sourceValue instanceof Map) {
  13592. merged[prop] = new Map(sourceValue);
  13593. } else if (sourceValue instanceof Set) {
  13594. merged[prop] = new Set(sourceValue);
  13595. } else if ((0, _typeof2.default)(sourceValue) === 'object' && sourceValue !== null) {
  13596. merged[prop] = deepMerge(targetValue, sourceValue);
  13597. } else {
  13598. merged[prop] = sourceValue;
  13599. }
  13600. }
  13601. return merged;
  13602. }
  13603. /**
  13604. * @description error提示
  13605. * @param {*} err 错误内容
  13606. */
  13607. function error(err) {
  13608. // 开发环境才提示,生产环境不会提示
  13609. if (true) {
  13610. console.error("uView\u63D0\u793A\uFF1A".concat(err));
  13611. }
  13612. }
  13613. /**
  13614. * @description 打乱数组
  13615. * @param {array} array 需要打乱的数组
  13616. * @returns {array} 打乱后的数组
  13617. */
  13618. function randomArray() {
  13619. var array = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  13620. // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.05大于或者小于0
  13621. return array.sort(function () {
  13622. return Math.random() - 0.5;
  13623. });
  13624. }
  13625. // padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序
  13626. // 所以这里做一个兼容polyfill的兼容处理
  13627. if (!String.prototype.padStart) {
  13628. // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解
  13629. String.prototype.padStart = function (maxLength) {
  13630. var fillString = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
  13631. if (Object.prototype.toString.call(fillString) !== '[object String]') {
  13632. throw new TypeError('fillString must be String');
  13633. }
  13634. var str = this;
  13635. // 返回 String(str) 这里是为了使返回的值是字符串字面量,在控制台中更符合直觉
  13636. if (str.length >= maxLength) return String(str);
  13637. var fillLength = maxLength - str.length;
  13638. var times = Math.ceil(fillLength / fillString.length);
  13639. while (times >>= 1) {
  13640. fillString += fillString;
  13641. if (times === 1) {
  13642. fillString += fillString;
  13643. }
  13644. }
  13645. return fillString.slice(0, fillLength) + str;
  13646. };
  13647. }
  13648. /**
  13649. * @description 格式化时间
  13650. * @param {String|Number} dateTime 需要格式化的时间戳
  13651. * @param {String} fmt 格式化规则 yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合 默认yyyy-mm-dd
  13652. * @returns {string} 返回格式化后的字符串
  13653. */
  13654. function timeFormat() {
  13655. var dateTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13656. var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13657. var date;
  13658. // 若传入时间为假值,则取当前时间
  13659. if (!dateTime) {
  13660. date = new Date();
  13661. }
  13662. // 若为unix秒时间戳,则转为毫秒时间戳(逻辑有点奇怪,但不敢改,以保证历史兼容)
  13663. else if (/^\d{10}$/.test(dateTime === null || dateTime === void 0 ? void 0 : dateTime.toString().trim())) {
  13664. date = new Date(dateTime * 1000);
  13665. }
  13666. // 若用户传入字符串格式时间戳,new Date无法解析,需做兼容
  13667. else if (typeof dateTime === 'string' && /^\d+$/.test(dateTime.trim())) {
  13668. date = new Date(Number(dateTime));
  13669. }
  13670. // 处理平台性差异,在Safari/Webkit中,new Date仅支持/作为分割符的字符串时间
  13671. // 处理 '2022-07-10 01:02:03',跳过 '2022-07-10T01:02:03'
  13672. else if (typeof dateTime === 'string' && dateTime.includes('-') && !dateTime.includes('T')) {
  13673. date = new Date(dateTime.replace(/-/g, '/'));
  13674. }
  13675. // 其他都认为符合 RFC 2822 规范
  13676. else {
  13677. date = new Date(dateTime);
  13678. }
  13679. var timeSource = {
  13680. 'y': date.getFullYear().toString(),
  13681. // 年
  13682. 'm': (date.getMonth() + 1).toString().padStart(2, '0'),
  13683. // 月
  13684. 'd': date.getDate().toString().padStart(2, '0'),
  13685. // 日
  13686. 'h': date.getHours().toString().padStart(2, '0'),
  13687. // 时
  13688. 'M': date.getMinutes().toString().padStart(2, '0'),
  13689. // 分
  13690. 's': date.getSeconds().toString().padStart(2, '0') // 秒
  13691. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  13692. };
  13693. for (var key in timeSource) {
  13694. var _ref3 = new RegExp("".concat(key, "+")).exec(formatStr) || [],
  13695. _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
  13696. ret = _ref4[0];
  13697. if (ret) {
  13698. // 年可能只需展示两位
  13699. var beginIndex = key === 'y' && ret.length === 2 ? 2 : 0;
  13700. formatStr = formatStr.replace(ret, timeSource[key].slice(beginIndex));
  13701. }
  13702. }
  13703. return formatStr;
  13704. }
  13705. /**
  13706. * @description 时间戳转为多久之前
  13707. * @param {String|Number} timestamp 时间戳
  13708. * @param {String|Boolean} format
  13709. * 格式化规则如果为时间格式字符串,超出一定时间范围,返回固定的时间格式;
  13710. * 如果为布尔值false,无论什么时间,都返回多久以前的格式
  13711. * @returns {string} 转化后的内容
  13712. */
  13713. function timeFrom() {
  13714. var timestamp = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  13715. var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'yyyy-mm-dd';
  13716. if (timestamp == null) timestamp = Number(new Date());
  13717. timestamp = parseInt(timestamp);
  13718. // 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
  13719. if (timestamp.toString().length == 10) timestamp *= 1000;
  13720. var timer = new Date().getTime() - timestamp;
  13721. timer = parseInt(timer / 1000);
  13722. // 如果小于5分钟,则返回"刚刚",其他以此类推
  13723. var tips = '';
  13724. switch (true) {
  13725. case timer < 300:
  13726. tips = '刚刚';
  13727. break;
  13728. case timer >= 300 && timer < 3600:
  13729. tips = "".concat(parseInt(timer / 60), "\u5206\u949F\u524D");
  13730. break;
  13731. case timer >= 3600 && timer < 86400:
  13732. tips = "".concat(parseInt(timer / 3600), "\u5C0F\u65F6\u524D");
  13733. break;
  13734. case timer >= 86400 && timer < 2592000:
  13735. tips = "".concat(parseInt(timer / 86400), "\u5929\u524D");
  13736. break;
  13737. default:
  13738. // 如果format为false,则无论什么时间戳,都显示xx之前
  13739. if (format === false) {
  13740. if (timer >= 2592000 && timer < 365 * 86400) {
  13741. tips = "".concat(parseInt(timer / (86400 * 30)), "\u4E2A\u6708\u524D");
  13742. } else {
  13743. tips = "".concat(parseInt(timer / (86400 * 365)), "\u5E74\u524D");
  13744. }
  13745. } else {
  13746. tips = timeFormat(timestamp, format);
  13747. }
  13748. }
  13749. return tips;
  13750. }
  13751. /**
  13752. * @description 去除空格
  13753. * @param String str 需要去除空格的字符串
  13754. * @param String pos both(左右)|left|right|all 默认both
  13755. */
  13756. function trim(str) {
  13757. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'both';
  13758. str = String(str);
  13759. if (pos == 'both') {
  13760. return str.replace(/^\s+|\s+$/g, '');
  13761. }
  13762. if (pos == 'left') {
  13763. return str.replace(/^\s*/, '');
  13764. }
  13765. if (pos == 'right') {
  13766. return str.replace(/(\s*$)/g, '');
  13767. }
  13768. if (pos == 'all') {
  13769. return str.replace(/\s+/g, '');
  13770. }
  13771. return str;
  13772. }
  13773. /**
  13774. * @description 对象转url参数
  13775. * @param {object} data,对象
  13776. * @param {Boolean} isPrefix,是否自动加上"?"
  13777. * @param {string} arrayFormat 规则 indices|brackets|repeat|comma
  13778. */
  13779. function queryParams() {
  13780. var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  13781. var isPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13782. var arrayFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'brackets';
  13783. var prefix = isPrefix ? '?' : '';
  13784. var _result = [];
  13785. if (['indices', 'brackets', 'repeat', 'comma'].indexOf(arrayFormat) == -1) arrayFormat = 'brackets';
  13786. var _loop = function _loop(key) {
  13787. var value = data[key];
  13788. // 去掉为空的参数
  13789. if (['', undefined, null].indexOf(value) >= 0) {
  13790. return "continue";
  13791. }
  13792. // 如果值为数组,另行处理
  13793. if (value.constructor === Array) {
  13794. // e.g. {ids: [1, 2, 3]}
  13795. switch (arrayFormat) {
  13796. case 'indices':
  13797. // 结果: ids[0]=1&ids[1]=2&ids[2]=3
  13798. for (var i = 0; i < value.length; i++) {
  13799. _result.push("".concat(key, "[").concat(i, "]=").concat(value[i]));
  13800. }
  13801. break;
  13802. case 'brackets':
  13803. // 结果: ids[]=1&ids[]=2&ids[]=3
  13804. value.forEach(function (_value) {
  13805. _result.push("".concat(key, "[]=").concat(_value));
  13806. });
  13807. break;
  13808. case 'repeat':
  13809. // 结果: ids=1&ids=2&ids=3
  13810. value.forEach(function (_value) {
  13811. _result.push("".concat(key, "=").concat(_value));
  13812. });
  13813. break;
  13814. case 'comma':
  13815. // 结果: ids=1,2,3
  13816. var commaStr = '';
  13817. value.forEach(function (_value) {
  13818. commaStr += (commaStr ? ',' : '') + _value;
  13819. });
  13820. _result.push("".concat(key, "=").concat(commaStr));
  13821. break;
  13822. default:
  13823. value.forEach(function (_value) {
  13824. _result.push("".concat(key, "[]=").concat(_value));
  13825. });
  13826. }
  13827. } else {
  13828. _result.push("".concat(key, "=").concat(value));
  13829. }
  13830. };
  13831. for (var key in data) {
  13832. var _ret = _loop(key);
  13833. if (_ret === "continue") continue;
  13834. }
  13835. return _result.length ? prefix + _result.join('&') : '';
  13836. }
  13837. /**
  13838. * 显示消息提示框
  13839. * @param {String} title 提示的内容,长度与 icon 取值有关。
  13840. * @param {Number} duration 提示的延迟时间,单位毫秒,默认:2000
  13841. */
  13842. function toast(title) {
  13843. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;
  13844. uni.showToast({
  13845. title: String(title),
  13846. icon: 'none',
  13847. duration: duration
  13848. });
  13849. }
  13850. /**
  13851. * @description 根据主题type值,获取对应的图标
  13852. * @param {String} type 主题名称,primary|info|error|warning|success
  13853. * @param {boolean} fill 是否使用fill填充实体的图标
  13854. */
  13855. function type2icon() {
  13856. var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'success';
  13857. var fill = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  13858. // 如果非预置值,默认为success
  13859. if (['primary', 'info', 'error', 'warning', 'success'].indexOf(type) == -1) type = 'success';
  13860. var iconName = '';
  13861. // 目前(2019-12-12),info和primary使用同一个图标
  13862. switch (type) {
  13863. case 'primary':
  13864. iconName = 'info-circle';
  13865. break;
  13866. case 'info':
  13867. iconName = 'info-circle';
  13868. break;
  13869. case 'error':
  13870. iconName = 'close-circle';
  13871. break;
  13872. case 'warning':
  13873. iconName = 'error-circle';
  13874. break;
  13875. case 'success':
  13876. iconName = 'checkmark-circle';
  13877. break;
  13878. default:
  13879. iconName = 'checkmark-circle';
  13880. }
  13881. // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的
  13882. if (fill) iconName += '-fill';
  13883. return iconName;
  13884. }
  13885. /**
  13886. * @description 数字格式化
  13887. * @param {number|string} number 要格式化的数字
  13888. * @param {number} decimals 保留几位小数
  13889. * @param {string} decimalPoint 小数点符号
  13890. * @param {string} thousandsSeparator 千分位符号
  13891. * @returns {string} 格式化后的数字
  13892. */
  13893. function priceFormat(number) {
  13894. var decimals = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  13895. var decimalPoint = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
  13896. var thousandsSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ',';
  13897. number = "".concat(number).replace(/[^0-9+-Ee.]/g, '');
  13898. var n = !isFinite(+number) ? 0 : +number;
  13899. var prec = !isFinite(+decimals) ? 0 : Math.abs(decimals);
  13900. var sep = typeof thousandsSeparator === 'undefined' ? ',' : thousandsSeparator;
  13901. var dec = typeof decimalPoint === 'undefined' ? '.' : decimalPoint;
  13902. var s = '';
  13903. s = (prec ? (0, _digit.round)(n, prec) + '' : "".concat(Math.round(n))).split('.');
  13904. var re = /(-?\d+)(\d{3})/;
  13905. while (re.test(s[0])) {
  13906. s[0] = s[0].replace(re, "$1".concat(sep, "$2"));
  13907. }
  13908. if ((s[1] || '').length < prec) {
  13909. s[1] = s[1] || '';
  13910. s[1] += new Array(prec - s[1].length + 1).join('0');
  13911. }
  13912. return s.join(dec);
  13913. }
  13914. /**
  13915. * @description 获取duration值
  13916. * 如果带有ms或者s直接返回,如果大于一定值,认为是ms单位,小于一定值,认为是s单位
  13917. * 比如以30位阈值,那么300大于30,可以理解为用户想要的是300ms,而不是想花300s去执行一个动画
  13918. * @param {String|number} value 比如: "1s"|"100ms"|1|100
  13919. * @param {boolean} unit 提示: 如果是false 默认返回number
  13920. * @return {string|number}
  13921. */
  13922. function getDuration(value) {
  13923. var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  13924. var valueNum = parseInt(value);
  13925. if (unit) {
  13926. if (/s$/.test(value)) return value;
  13927. return value > 30 ? "".concat(value, "ms") : "".concat(value, "s");
  13928. }
  13929. if (/ms$/.test(value)) return valueNum;
  13930. if (/s$/.test(value)) return valueNum > 30 ? valueNum : valueNum * 1000;
  13931. return valueNum;
  13932. }
  13933. /**
  13934. * @description 日期的月或日补零操作
  13935. * @param {String} value 需要补零的值
  13936. */
  13937. function padZero(value) {
  13938. return "00".concat(value).slice(-2);
  13939. }
  13940. /**
  13941. * @description 在u-form的子组件内容发生变化,或者失去焦点时,尝试通知u-form执行校验方法
  13942. * @param {*} instance
  13943. * @param {*} event
  13944. */
  13945. function formValidate(instance, event) {
  13946. var formItem = uni.$u.$parent.call(instance, 'u-form-item');
  13947. var form = uni.$u.$parent.call(instance, 'u-form');
  13948. // 如果发生变化的input或者textarea等,其父组件中有u-form-item或者u-form等,就执行form的validate方法
  13949. // 同时将form-item的pros传递给form,让其进行精确对象验证
  13950. if (formItem && form) {
  13951. form.validateField(formItem.prop, function () {}, event);
  13952. }
  13953. }
  13954. /**
  13955. * @description 获取某个对象下的属性,用于通过类似'a.b.c'的形式去获取一个对象的的属性的形式
  13956. * @param {object} obj 对象
  13957. * @param {string} key 需要获取的属性字段
  13958. * @returns {*}
  13959. */
  13960. function getProperty(obj, key) {
  13961. if (!obj) {
  13962. return;
  13963. }
  13964. if (typeof key !== 'string' || key === '') {
  13965. return '';
  13966. }
  13967. if (key.indexOf('.') !== -1) {
  13968. var keys = key.split('.');
  13969. var firstObj = obj[keys[0]] || {};
  13970. for (var i = 1; i < keys.length; i++) {
  13971. if (firstObj) {
  13972. firstObj = firstObj[keys[i]];
  13973. }
  13974. }
  13975. return firstObj;
  13976. }
  13977. return obj[key];
  13978. }
  13979. /**
  13980. * @description 设置对象的属性值,如果'a.b.c'的形式进行设置
  13981. * @param {object} obj 对象
  13982. * @param {string} key 需要设置的属性
  13983. * @param {string} value 设置的值
  13984. */
  13985. function setProperty(obj, key, value) {
  13986. if (!obj) {
  13987. return;
  13988. }
  13989. // 递归赋值
  13990. var inFn = function inFn(_obj, keys, v) {
  13991. // 最后一个属性key
  13992. if (keys.length === 1) {
  13993. _obj[keys[0]] = v;
  13994. return;
  13995. }
  13996. // 0~length-1个key
  13997. while (keys.length > 1) {
  13998. var k = keys[0];
  13999. if (!_obj[k] || (0, _typeof2.default)(_obj[k]) !== 'object') {
  14000. _obj[k] = {};
  14001. }
  14002. var _key = keys.shift();
  14003. // 自调用判断是否存在属性,不存在则自动创建对象
  14004. inFn(_obj[k], keys, v);
  14005. }
  14006. };
  14007. if (typeof key !== 'string' || key === '') {} else if (key.indexOf('.') !== -1) {
  14008. // 支持多层级赋值操作
  14009. var keys = key.split('.');
  14010. inFn(obj, keys, value);
  14011. } else {
  14012. obj[key] = value;
  14013. }
  14014. }
  14015. /**
  14016. * @description 获取当前页面路径
  14017. */
  14018. function page() {
  14019. var _pages$route, _pages;
  14020. var pages = getCurrentPages();
  14021. // 某些特殊情况下(比如页面进行redirectTo时的一些时机),pages可能为空数组
  14022. return "/".concat((_pages$route = (_pages = pages[pages.length - 1]) === null || _pages === void 0 ? void 0 : _pages.route) !== null && _pages$route !== void 0 ? _pages$route : '');
  14023. }
  14024. /**
  14025. * @description 获取当前路由栈实例数组
  14026. */
  14027. function pages() {
  14028. var pages = getCurrentPages();
  14029. return pages;
  14030. }
  14031. /**
  14032. * 获取页面历史栈指定层实例
  14033. * @param back {number} [0] - 0或者负数,表示获取历史栈的哪一层,0表示获取当前页面实例,-1 表示获取上一个页面实例。默认0。
  14034. */
  14035. function getHistoryPage() {
  14036. var back = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  14037. var pages = getCurrentPages();
  14038. var len = pages.length;
  14039. return pages[len - 1 + back];
  14040. }
  14041. /**
  14042. * @description 修改uView内置属性值
  14043. * @param {object} props 修改内置props属性
  14044. * @param {object} config 修改内置config属性
  14045. * @param {object} color 修改内置color属性
  14046. * @param {object} zIndex 修改内置zIndex属性
  14047. */
  14048. function setConfig(_ref5) {
  14049. var _ref5$props = _ref5.props,
  14050. props = _ref5$props === void 0 ? {} : _ref5$props,
  14051. _ref5$config = _ref5.config,
  14052. config = _ref5$config === void 0 ? {} : _ref5$config,
  14053. _ref5$color = _ref5.color,
  14054. color = _ref5$color === void 0 ? {} : _ref5$color,
  14055. _ref5$zIndex = _ref5.zIndex,
  14056. zIndex = _ref5$zIndex === void 0 ? {} : _ref5$zIndex;
  14057. var deepMerge = uni.$u.deepMerge;
  14058. uni.$u.config = deepMerge(uni.$u.config, config);
  14059. uni.$u.props = deepMerge(uni.$u.props, props);
  14060. uni.$u.color = deepMerge(uni.$u.color, color);
  14061. uni.$u.zIndex = deepMerge(uni.$u.zIndex, zIndex);
  14062. }
  14063. var _default = {
  14064. range: range,
  14065. getPx: getPx,
  14066. sleep: sleep,
  14067. os: os,
  14068. sys: sys,
  14069. random: random,
  14070. guid: guid,
  14071. $parent: $parent,
  14072. addStyle: addStyle,
  14073. addUnit: addUnit,
  14074. deepClone: deepClone,
  14075. deepMerge: deepMerge,
  14076. error: error,
  14077. randomArray: randomArray,
  14078. timeFormat: timeFormat,
  14079. timeFrom: timeFrom,
  14080. trim: trim,
  14081. queryParams: queryParams,
  14082. toast: toast,
  14083. type2icon: type2icon,
  14084. priceFormat: priceFormat,
  14085. getDuration: getDuration,
  14086. padZero: padZero,
  14087. formValidate: formValidate,
  14088. getProperty: getProperty,
  14089. setProperty: setProperty,
  14090. page: page,
  14091. pages: pages,
  14092. getHistoryPage: getHistoryPage,
  14093. setConfig: setConfig
  14094. };
  14095. exports.default = _default;
  14096. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  14097. /***/ }),
  14098. /* 63 */
  14099. /*!****************************************************************************!*\
  14100. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/function/digit.js ***!
  14101. \****************************************************************************/
  14102. /*! no static exports found */
  14103. /***/ (function(module, exports, __webpack_require__) {
  14104. "use strict";
  14105. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  14106. Object.defineProperty(exports, "__esModule", {
  14107. value: true
  14108. });
  14109. exports.default = void 0;
  14110. exports.divide = divide;
  14111. exports.enableBoundaryChecking = enableBoundaryChecking;
  14112. exports.minus = minus;
  14113. exports.plus = plus;
  14114. exports.round = round;
  14115. exports.times = times;
  14116. var _toArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toArray */ 64));
  14117. var _boundaryCheckingState = true; // 是否进行越界检查的全局开关
  14118. /**
  14119. * 把错误的数据转正
  14120. * @private
  14121. * @example strip(0.09999999999999998)=0.1
  14122. */
  14123. function strip(num) {
  14124. var precision = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 15;
  14125. return +parseFloat(Number(num).toPrecision(precision));
  14126. }
  14127. /**
  14128. * Return digits length of a number
  14129. * @private
  14130. * @param {*number} num Input number
  14131. */
  14132. function digitLength(num) {
  14133. // Get digit length of e
  14134. var eSplit = num.toString().split(/[eE]/);
  14135. var len = (eSplit[0].split('.')[1] || '').length - +(eSplit[1] || 0);
  14136. return len > 0 ? len : 0;
  14137. }
  14138. /**
  14139. * 把小数转成整数,如果是小数则放大成整数
  14140. * @private
  14141. * @param {*number} num 输入数
  14142. */
  14143. function float2Fixed(num) {
  14144. if (num.toString().indexOf('e') === -1) {
  14145. return Number(num.toString().replace('.', ''));
  14146. }
  14147. var dLen = digitLength(num);
  14148. return dLen > 0 ? strip(Number(num) * Math.pow(10, dLen)) : Number(num);
  14149. }
  14150. /**
  14151. * 检测数字是否越界,如果越界给出提示
  14152. * @private
  14153. * @param {*number} num 输入数
  14154. */
  14155. function checkBoundary(num) {
  14156. if (_boundaryCheckingState) {
  14157. if (num > Number.MAX_SAFE_INTEGER || num < Number.MIN_SAFE_INTEGER) {
  14158. console.warn("".concat(num, " \u8D85\u51FA\u4E86\u7CBE\u5EA6\u9650\u5236\uFF0C\u7ED3\u679C\u53EF\u80FD\u4E0D\u6B63\u786E"));
  14159. }
  14160. }
  14161. }
  14162. /**
  14163. * 把递归操作扁平迭代化
  14164. * @param {number[]} arr 要操作的数字数组
  14165. * @param {function} operation 迭代操作
  14166. * @private
  14167. */
  14168. function iteratorOperation(arr, operation) {
  14169. var _arr = (0, _toArray2.default)(arr),
  14170. num1 = _arr[0],
  14171. num2 = _arr[1],
  14172. others = _arr.slice(2);
  14173. var res = operation(num1, num2);
  14174. others.forEach(function (num) {
  14175. res = operation(res, num);
  14176. });
  14177. return res;
  14178. }
  14179. /**
  14180. * 高精度乘法
  14181. * @export
  14182. */
  14183. function times() {
  14184. for (var _len = arguments.length, nums = new Array(_len), _key = 0; _key < _len; _key++) {
  14185. nums[_key] = arguments[_key];
  14186. }
  14187. if (nums.length > 2) {
  14188. return iteratorOperation(nums, times);
  14189. }
  14190. var num1 = nums[0],
  14191. num2 = nums[1];
  14192. var num1Changed = float2Fixed(num1);
  14193. var num2Changed = float2Fixed(num2);
  14194. var baseNum = digitLength(num1) + digitLength(num2);
  14195. var leftValue = num1Changed * num2Changed;
  14196. checkBoundary(leftValue);
  14197. return leftValue / Math.pow(10, baseNum);
  14198. }
  14199. /**
  14200. * 高精度加法
  14201. * @export
  14202. */
  14203. function plus() {
  14204. for (var _len2 = arguments.length, nums = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  14205. nums[_key2] = arguments[_key2];
  14206. }
  14207. if (nums.length > 2) {
  14208. return iteratorOperation(nums, plus);
  14209. }
  14210. var num1 = nums[0],
  14211. num2 = nums[1];
  14212. // 取最大的小数位
  14213. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14214. // 把小数都转为整数然后再计算
  14215. return (times(num1, baseNum) + times(num2, baseNum)) / baseNum;
  14216. }
  14217. /**
  14218. * 高精度减法
  14219. * @export
  14220. */
  14221. function minus() {
  14222. for (var _len3 = arguments.length, nums = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  14223. nums[_key3] = arguments[_key3];
  14224. }
  14225. if (nums.length > 2) {
  14226. return iteratorOperation(nums, minus);
  14227. }
  14228. var num1 = nums[0],
  14229. num2 = nums[1];
  14230. var baseNum = Math.pow(10, Math.max(digitLength(num1), digitLength(num2)));
  14231. return (times(num1, baseNum) - times(num2, baseNum)) / baseNum;
  14232. }
  14233. /**
  14234. * 高精度除法
  14235. * @export
  14236. */
  14237. function divide() {
  14238. for (var _len4 = arguments.length, nums = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  14239. nums[_key4] = arguments[_key4];
  14240. }
  14241. if (nums.length > 2) {
  14242. return iteratorOperation(nums, divide);
  14243. }
  14244. var num1 = nums[0],
  14245. num2 = nums[1];
  14246. var num1Changed = float2Fixed(num1);
  14247. var num2Changed = float2Fixed(num2);
  14248. checkBoundary(num1Changed);
  14249. checkBoundary(num2Changed);
  14250. // 重要,这里必须用strip进行修正
  14251. return times(num1Changed / num2Changed, strip(Math.pow(10, digitLength(num2) - digitLength(num1))));
  14252. }
  14253. /**
  14254. * 四舍五入
  14255. * @export
  14256. */
  14257. function round(num, ratio) {
  14258. var base = Math.pow(10, ratio);
  14259. var result = divide(Math.round(Math.abs(times(num, base))), base);
  14260. if (num < 0 && result !== 0) {
  14261. result = times(result, -1);
  14262. }
  14263. // 位数不足则补0
  14264. return result;
  14265. }
  14266. /**
  14267. * 是否进行边界检查,默认开启
  14268. * @param flag 标记开关,true 为开启,false 为关闭,默认为 true
  14269. * @export
  14270. */
  14271. function enableBoundaryChecking() {
  14272. var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  14273. _boundaryCheckingState = flag;
  14274. }
  14275. var _default = {
  14276. times: times,
  14277. plus: plus,
  14278. minus: minus,
  14279. divide: divide,
  14280. round: round,
  14281. enableBoundaryChecking: enableBoundaryChecking
  14282. };
  14283. exports.default = _default;
  14284. /***/ }),
  14285. /* 64 */
  14286. /*!********************************************************!*\
  14287. !*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
  14288. \********************************************************/
  14289. /*! no static exports found */
  14290. /***/ (function(module, exports, __webpack_require__) {
  14291. var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ 5);
  14292. var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ 21);
  14293. var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ 7);
  14294. var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ 9);
  14295. function _toArray(arr) {
  14296. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  14297. }
  14298. module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
  14299. /***/ }),
  14300. /* 65 */
  14301. /*!***************************************************************************!*\
  14302. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/config.js ***!
  14303. \***************************************************************************/
  14304. /*! no static exports found */
  14305. /***/ (function(module, exports, __webpack_require__) {
  14306. "use strict";
  14307. Object.defineProperty(exports, "__esModule", {
  14308. value: true
  14309. });
  14310. exports.default = void 0;
  14311. // 此版本发布于2023-03-27
  14312. var version = '2.0.36';
  14313. // 开发环境才提示,生产环境不会提示
  14314. if (true) {
  14315. console.log("\n %c uView V".concat(version, " %c https://uviewui.com/ \n\n"), 'color: #ffffff; background: #3c9cff; padding:5px 0; border-radius: 5px;');
  14316. }
  14317. var _default = {
  14318. v: version,
  14319. version: version,
  14320. // 主题名称
  14321. type: ['primary', 'success', 'info', 'error', 'warning'],
  14322. // 颜色部分,本来可以通过scss的:export导出供js使用,但是奈何nvue不支持
  14323. color: {
  14324. 'u-primary': '#2979ff',
  14325. 'u-warning': '#ff9900',
  14326. 'u-success': '#19be6b',
  14327. 'u-error': '#fa3534',
  14328. 'u-info': '#909399',
  14329. 'u-main-color': '#303133',
  14330. 'u-content-color': '#606266',
  14331. 'u-tips-color': '#909399',
  14332. 'u-light-color': '#c0c4cc'
  14333. },
  14334. // 默认单位,可以通过配置为rpx,那么在用于传入组件大小参数为数值时,就默认为rpx
  14335. unit: 'px'
  14336. };
  14337. exports.default = _default;
  14338. /***/ }),
  14339. /* 66 */
  14340. /*!**************************************************************************!*\
  14341. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props.js ***!
  14342. \**************************************************************************/
  14343. /*! no static exports found */
  14344. /***/ (function(module, exports, __webpack_require__) {
  14345. "use strict";
  14346. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  14347. Object.defineProperty(exports, "__esModule", {
  14348. value: true
  14349. });
  14350. exports.default = void 0;
  14351. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  14352. var _config = _interopRequireDefault(__webpack_require__(/*! ./config */ 65));
  14353. var _actionSheet = _interopRequireDefault(__webpack_require__(/*! ./props/actionSheet.js */ 67));
  14354. var _album = _interopRequireDefault(__webpack_require__(/*! ./props/album.js */ 68));
  14355. var _alert = _interopRequireDefault(__webpack_require__(/*! ./props/alert.js */ 69));
  14356. var _avatar = _interopRequireDefault(__webpack_require__(/*! ./props/avatar */ 70));
  14357. var _avatarGroup = _interopRequireDefault(__webpack_require__(/*! ./props/avatarGroup */ 71));
  14358. var _backtop = _interopRequireDefault(__webpack_require__(/*! ./props/backtop */ 72));
  14359. var _badge = _interopRequireDefault(__webpack_require__(/*! ./props/badge */ 73));
  14360. var _button = _interopRequireDefault(__webpack_require__(/*! ./props/button */ 74));
  14361. var _calendar = _interopRequireDefault(__webpack_require__(/*! ./props/calendar */ 75));
  14362. var _carKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/carKeyboard */ 76));
  14363. var _cell = _interopRequireDefault(__webpack_require__(/*! ./props/cell */ 77));
  14364. var _cellGroup = _interopRequireDefault(__webpack_require__(/*! ./props/cellGroup */ 78));
  14365. var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./props/checkbox */ 79));
  14366. var _checkboxGroup = _interopRequireDefault(__webpack_require__(/*! ./props/checkboxGroup */ 80));
  14367. var _circleProgress = _interopRequireDefault(__webpack_require__(/*! ./props/circleProgress */ 81));
  14368. var _code = _interopRequireDefault(__webpack_require__(/*! ./props/code */ 82));
  14369. var _codeInput = _interopRequireDefault(__webpack_require__(/*! ./props/codeInput */ 83));
  14370. var _col = _interopRequireDefault(__webpack_require__(/*! ./props/col */ 84));
  14371. var _collapse = _interopRequireDefault(__webpack_require__(/*! ./props/collapse */ 85));
  14372. var _collapseItem = _interopRequireDefault(__webpack_require__(/*! ./props/collapseItem */ 86));
  14373. var _columnNotice = _interopRequireDefault(__webpack_require__(/*! ./props/columnNotice */ 87));
  14374. var _countDown = _interopRequireDefault(__webpack_require__(/*! ./props/countDown */ 88));
  14375. var _countTo = _interopRequireDefault(__webpack_require__(/*! ./props/countTo */ 89));
  14376. var _datetimePicker = _interopRequireDefault(__webpack_require__(/*! ./props/datetimePicker */ 90));
  14377. var _divider = _interopRequireDefault(__webpack_require__(/*! ./props/divider */ 91));
  14378. var _empty = _interopRequireDefault(__webpack_require__(/*! ./props/empty */ 92));
  14379. var _form = _interopRequireDefault(__webpack_require__(/*! ./props/form */ 93));
  14380. var _formItem = _interopRequireDefault(__webpack_require__(/*! ./props/formItem */ 94));
  14381. var _gap = _interopRequireDefault(__webpack_require__(/*! ./props/gap */ 95));
  14382. var _grid = _interopRequireDefault(__webpack_require__(/*! ./props/grid */ 96));
  14383. var _gridItem = _interopRequireDefault(__webpack_require__(/*! ./props/gridItem */ 97));
  14384. var _icon = _interopRequireDefault(__webpack_require__(/*! ./props/icon */ 98));
  14385. var _image = _interopRequireDefault(__webpack_require__(/*! ./props/image */ 99));
  14386. var _indexAnchor = _interopRequireDefault(__webpack_require__(/*! ./props/indexAnchor */ 100));
  14387. var _indexList = _interopRequireDefault(__webpack_require__(/*! ./props/indexList */ 101));
  14388. var _input = _interopRequireDefault(__webpack_require__(/*! ./props/input */ 102));
  14389. var _keyboard = _interopRequireDefault(__webpack_require__(/*! ./props/keyboard */ 103));
  14390. var _line = _interopRequireDefault(__webpack_require__(/*! ./props/line */ 104));
  14391. var _lineProgress = _interopRequireDefault(__webpack_require__(/*! ./props/lineProgress */ 105));
  14392. var _link = _interopRequireDefault(__webpack_require__(/*! ./props/link */ 106));
  14393. var _list = _interopRequireDefault(__webpack_require__(/*! ./props/list */ 107));
  14394. var _listItem = _interopRequireDefault(__webpack_require__(/*! ./props/listItem */ 108));
  14395. var _loadingIcon = _interopRequireDefault(__webpack_require__(/*! ./props/loadingIcon */ 109));
  14396. var _loadingPage = _interopRequireDefault(__webpack_require__(/*! ./props/loadingPage */ 110));
  14397. var _loadmore = _interopRequireDefault(__webpack_require__(/*! ./props/loadmore */ 111));
  14398. var _modal = _interopRequireDefault(__webpack_require__(/*! ./props/modal */ 112));
  14399. var _navbar = _interopRequireDefault(__webpack_require__(/*! ./props/navbar */ 113));
  14400. var _noNetwork = _interopRequireDefault(__webpack_require__(/*! ./props/noNetwork */ 115));
  14401. var _noticeBar = _interopRequireDefault(__webpack_require__(/*! ./props/noticeBar */ 116));
  14402. var _notify = _interopRequireDefault(__webpack_require__(/*! ./props/notify */ 117));
  14403. var _numberBox = _interopRequireDefault(__webpack_require__(/*! ./props/numberBox */ 118));
  14404. var _numberKeyboard = _interopRequireDefault(__webpack_require__(/*! ./props/numberKeyboard */ 119));
  14405. var _overlay = _interopRequireDefault(__webpack_require__(/*! ./props/overlay */ 120));
  14406. var _parse = _interopRequireDefault(__webpack_require__(/*! ./props/parse */ 121));
  14407. var _picker = _interopRequireDefault(__webpack_require__(/*! ./props/picker */ 122));
  14408. var _popup = _interopRequireDefault(__webpack_require__(/*! ./props/popup */ 123));
  14409. var _radio = _interopRequireDefault(__webpack_require__(/*! ./props/radio */ 124));
  14410. var _radioGroup = _interopRequireDefault(__webpack_require__(/*! ./props/radioGroup */ 125));
  14411. var _rate = _interopRequireDefault(__webpack_require__(/*! ./props/rate */ 126));
  14412. var _readMore = _interopRequireDefault(__webpack_require__(/*! ./props/readMore */ 127));
  14413. var _row = _interopRequireDefault(__webpack_require__(/*! ./props/row */ 128));
  14414. var _rowNotice = _interopRequireDefault(__webpack_require__(/*! ./props/rowNotice */ 129));
  14415. var _scrollList = _interopRequireDefault(__webpack_require__(/*! ./props/scrollList */ 130));
  14416. var _search = _interopRequireDefault(__webpack_require__(/*! ./props/search */ 131));
  14417. var _section = _interopRequireDefault(__webpack_require__(/*! ./props/section */ 132));
  14418. var _skeleton = _interopRequireDefault(__webpack_require__(/*! ./props/skeleton */ 133));
  14419. var _slider = _interopRequireDefault(__webpack_require__(/*! ./props/slider */ 134));
  14420. var _statusBar = _interopRequireDefault(__webpack_require__(/*! ./props/statusBar */ 135));
  14421. var _steps = _interopRequireDefault(__webpack_require__(/*! ./props/steps */ 136));
  14422. var _stepsItem = _interopRequireDefault(__webpack_require__(/*! ./props/stepsItem */ 137));
  14423. var _sticky = _interopRequireDefault(__webpack_require__(/*! ./props/sticky */ 138));
  14424. var _subsection = _interopRequireDefault(__webpack_require__(/*! ./props/subsection */ 139));
  14425. var _swipeAction = _interopRequireDefault(__webpack_require__(/*! ./props/swipeAction */ 140));
  14426. var _swipeActionItem = _interopRequireDefault(__webpack_require__(/*! ./props/swipeActionItem */ 141));
  14427. var _swiper = _interopRequireDefault(__webpack_require__(/*! ./props/swiper */ 142));
  14428. var _swipterIndicator = _interopRequireDefault(__webpack_require__(/*! ./props/swipterIndicator */ 143));
  14429. var _switch2 = _interopRequireDefault(__webpack_require__(/*! ./props/switch */ 144));
  14430. var _tabbar = _interopRequireDefault(__webpack_require__(/*! ./props/tabbar */ 145));
  14431. var _tabbarItem = _interopRequireDefault(__webpack_require__(/*! ./props/tabbarItem */ 146));
  14432. var _tabs = _interopRequireDefault(__webpack_require__(/*! ./props/tabs */ 147));
  14433. var _tag = _interopRequireDefault(__webpack_require__(/*! ./props/tag */ 148));
  14434. var _text = _interopRequireDefault(__webpack_require__(/*! ./props/text */ 149));
  14435. var _textarea = _interopRequireDefault(__webpack_require__(/*! ./props/textarea */ 150));
  14436. var _toast = _interopRequireDefault(__webpack_require__(/*! ./props/toast */ 151));
  14437. var _toolbar = _interopRequireDefault(__webpack_require__(/*! ./props/toolbar */ 152));
  14438. var _tooltip = _interopRequireDefault(__webpack_require__(/*! ./props/tooltip */ 153));
  14439. var _transition = _interopRequireDefault(__webpack_require__(/*! ./props/transition */ 154));
  14440. var _upload = _interopRequireDefault(__webpack_require__(/*! ./props/upload */ 155));
  14441. 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; }
  14442. 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; }
  14443. var color = _config.default.color;
  14444. 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);
  14445. exports.default = _default;
  14446. /***/ }),
  14447. /* 67 */
  14448. /*!**************************************************************************************!*\
  14449. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/actionSheet.js ***!
  14450. \**************************************************************************************/
  14451. /*! no static exports found */
  14452. /***/ (function(module, exports, __webpack_require__) {
  14453. "use strict";
  14454. Object.defineProperty(exports, "__esModule", {
  14455. value: true
  14456. });
  14457. exports.default = void 0;
  14458. /*
  14459. * @Author : LQ
  14460. * @Description :
  14461. * @version : 1.0
  14462. * @Date : 2021-08-20 16:44:21
  14463. * @LastAuthor : LQ
  14464. * @lastTime : 2021-08-20 16:44:35
  14465. * @FilePath : /u-view2.0/uview-ui/libs/config/props/actionSheet.js
  14466. */
  14467. var _default = {
  14468. // action-sheet组件
  14469. actionSheet: {
  14470. show: false,
  14471. title: '',
  14472. description: '',
  14473. actions: function actions() {
  14474. return [];
  14475. },
  14476. index: '',
  14477. cancelText: '',
  14478. closeOnClickAction: true,
  14479. safeAreaInsetBottom: true,
  14480. openType: '',
  14481. closeOnClickOverlay: true,
  14482. round: 0
  14483. }
  14484. };
  14485. exports.default = _default;
  14486. /***/ }),
  14487. /* 68 */
  14488. /*!********************************************************************************!*\
  14489. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/album.js ***!
  14490. \********************************************************************************/
  14491. /*! no static exports found */
  14492. /***/ (function(module, exports, __webpack_require__) {
  14493. "use strict";
  14494. Object.defineProperty(exports, "__esModule", {
  14495. value: true
  14496. });
  14497. exports.default = void 0;
  14498. /*
  14499. * @Author : LQ
  14500. * @Description :
  14501. * @version : 1.0
  14502. * @Date : 2021-08-20 16:44:21
  14503. * @LastAuthor : LQ
  14504. * @lastTime : 2021-08-20 16:47:24
  14505. * @FilePath : /u-view2.0/uview-ui/libs/config/props/album.js
  14506. */
  14507. var _default = {
  14508. // album 组件
  14509. album: {
  14510. urls: function urls() {
  14511. return [];
  14512. },
  14513. keyName: '',
  14514. singleSize: 180,
  14515. multipleSize: 70,
  14516. space: 6,
  14517. singleMode: 'scaleToFill',
  14518. multipleMode: 'aspectFill',
  14519. maxCount: 9,
  14520. previewFullImage: true,
  14521. rowCount: 3,
  14522. showMore: true
  14523. }
  14524. };
  14525. exports.default = _default;
  14526. /***/ }),
  14527. /* 69 */
  14528. /*!********************************************************************************!*\
  14529. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/alert.js ***!
  14530. \********************************************************************************/
  14531. /*! no static exports found */
  14532. /***/ (function(module, exports, __webpack_require__) {
  14533. "use strict";
  14534. Object.defineProperty(exports, "__esModule", {
  14535. value: true
  14536. });
  14537. exports.default = void 0;
  14538. /*
  14539. * @Author : LQ
  14540. * @Description :
  14541. * @version : 1.0
  14542. * @Date : 2021-08-20 16:44:21
  14543. * @LastAuthor : LQ
  14544. * @lastTime : 2021-08-20 16:48:53
  14545. * @FilePath : /u-view2.0/uview-ui/libs/config/props/alert.js
  14546. */
  14547. var _default = {
  14548. // alert警告组件
  14549. alert: {
  14550. title: '',
  14551. type: 'warning',
  14552. description: '',
  14553. closable: false,
  14554. showIcon: false,
  14555. effect: 'light',
  14556. center: false,
  14557. fontSize: 14
  14558. }
  14559. };
  14560. exports.default = _default;
  14561. /***/ }),
  14562. /* 70 */
  14563. /*!*********************************************************************************!*\
  14564. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/avatar.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:49:22
  14580. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatar.js
  14581. */
  14582. var _default = {
  14583. // avatar 组件
  14584. avatar: {
  14585. src: '',
  14586. shape: 'circle',
  14587. size: 40,
  14588. mode: 'scaleToFill',
  14589. text: '',
  14590. bgColor: '#c0c4cc',
  14591. color: '#ffffff',
  14592. fontSize: 18,
  14593. icon: '',
  14594. mpAvatar: false,
  14595. randomBgColor: false,
  14596. defaultUrl: '',
  14597. colorIndex: '',
  14598. name: ''
  14599. }
  14600. };
  14601. exports.default = _default;
  14602. /***/ }),
  14603. /* 71 */
  14604. /*!**************************************************************************************!*\
  14605. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/avatarGroup.js ***!
  14606. \**************************************************************************************/
  14607. /*! no static exports found */
  14608. /***/ (function(module, exports, __webpack_require__) {
  14609. "use strict";
  14610. Object.defineProperty(exports, "__esModule", {
  14611. value: true
  14612. });
  14613. exports.default = void 0;
  14614. /*
  14615. * @Author : LQ
  14616. * @Description :
  14617. * @version : 1.0
  14618. * @Date : 2021-08-20 16:44:21
  14619. * @LastAuthor : LQ
  14620. * @lastTime : 2021-08-20 16:49:55
  14621. * @FilePath : /u-view2.0/uview-ui/libs/config/props/avatarGroup.js
  14622. */
  14623. var _default = {
  14624. // avatarGroup 组件
  14625. avatarGroup: {
  14626. urls: function urls() {
  14627. return [];
  14628. },
  14629. maxCount: 5,
  14630. shape: 'circle',
  14631. mode: 'scaleToFill',
  14632. showMore: true,
  14633. size: 40,
  14634. keyName: '',
  14635. gap: 0.5,
  14636. extraValue: 0
  14637. }
  14638. };
  14639. exports.default = _default;
  14640. /***/ }),
  14641. /* 72 */
  14642. /*!**********************************************************************************!*\
  14643. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/backtop.js ***!
  14644. \**********************************************************************************/
  14645. /*! no static exports found */
  14646. /***/ (function(module, exports, __webpack_require__) {
  14647. "use strict";
  14648. Object.defineProperty(exports, "__esModule", {
  14649. value: true
  14650. });
  14651. exports.default = void 0;
  14652. /*
  14653. * @Author : LQ
  14654. * @Description :
  14655. * @version : 1.0
  14656. * @Date : 2021-08-20 16:44:21
  14657. * @LastAuthor : LQ
  14658. * @lastTime : 2021-08-20 16:50:18
  14659. * @FilePath : /u-view2.0/uview-ui/libs/config/props/backtop.js
  14660. */
  14661. var _default = {
  14662. // backtop组件
  14663. backtop: {
  14664. mode: 'circle',
  14665. icon: 'arrow-upward',
  14666. text: '',
  14667. duration: 100,
  14668. scrollTop: 0,
  14669. top: 400,
  14670. bottom: 100,
  14671. right: 20,
  14672. zIndex: 9,
  14673. iconStyle: function iconStyle() {
  14674. return {
  14675. color: '#909399',
  14676. fontSize: '19px'
  14677. };
  14678. }
  14679. }
  14680. };
  14681. exports.default = _default;
  14682. /***/ }),
  14683. /* 73 */
  14684. /*!********************************************************************************!*\
  14685. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/badge.js ***!
  14686. \********************************************************************************/
  14687. /*! no static exports found */
  14688. /***/ (function(module, exports, __webpack_require__) {
  14689. "use strict";
  14690. Object.defineProperty(exports, "__esModule", {
  14691. value: true
  14692. });
  14693. exports.default = void 0;
  14694. /*
  14695. * @Author : LQ
  14696. * @Description :
  14697. * @version : 1.0
  14698. * @Date : 2021-08-20 16:44:21
  14699. * @LastAuthor : LQ
  14700. * @lastTime : 2021-08-23 19:51:50
  14701. * @FilePath : /u-view2.0/uview-ui/libs/config/props/badge.js
  14702. */
  14703. var _default = {
  14704. // 徽标数组件
  14705. badge: {
  14706. isDot: false,
  14707. value: '',
  14708. show: true,
  14709. max: 999,
  14710. type: 'error',
  14711. showZero: false,
  14712. bgColor: null,
  14713. color: null,
  14714. shape: 'circle',
  14715. numberType: 'overflow',
  14716. offset: function offset() {
  14717. return [];
  14718. },
  14719. inverted: false,
  14720. absolute: false
  14721. }
  14722. };
  14723. exports.default = _default;
  14724. /***/ }),
  14725. /* 74 */
  14726. /*!*********************************************************************************!*\
  14727. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/button.js ***!
  14728. \*********************************************************************************/
  14729. /*! no static exports found */
  14730. /***/ (function(module, exports, __webpack_require__) {
  14731. "use strict";
  14732. Object.defineProperty(exports, "__esModule", {
  14733. value: true
  14734. });
  14735. exports.default = void 0;
  14736. /*
  14737. * @Author : LQ
  14738. * @Description :
  14739. * @version : 1.0
  14740. * @Date : 2021-08-20 16:44:21
  14741. * @LastAuthor : LQ
  14742. * @lastTime : 2021-08-20 16:51:27
  14743. * @FilePath : /u-view2.0/uview-ui/libs/config/props/button.js
  14744. */
  14745. var _default = {
  14746. // button组件
  14747. button: {
  14748. hairline: false,
  14749. type: 'info',
  14750. size: 'normal',
  14751. shape: 'square',
  14752. plain: false,
  14753. disabled: false,
  14754. loading: false,
  14755. loadingText: '',
  14756. loadingMode: 'spinner',
  14757. loadingSize: 15,
  14758. openType: '',
  14759. formType: '',
  14760. appParameter: '',
  14761. hoverStopPropagation: true,
  14762. lang: 'en',
  14763. sessionFrom: '',
  14764. sendMessageTitle: '',
  14765. sendMessagePath: '',
  14766. sendMessageImg: '',
  14767. showMessageCard: false,
  14768. dataName: '',
  14769. throttleTime: 0,
  14770. hoverStartTime: 0,
  14771. hoverStayTime: 200,
  14772. text: '',
  14773. icon: '',
  14774. iconColor: '',
  14775. color: ''
  14776. }
  14777. };
  14778. exports.default = _default;
  14779. /***/ }),
  14780. /* 75 */
  14781. /*!***********************************************************************************!*\
  14782. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/calendar.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:52:43
  14798. * @FilePath : /u-view2.0/uview-ui/libs/config/props/calendar.js
  14799. */
  14800. var _default = {
  14801. // calendar 组件
  14802. calendar: {
  14803. title: '日期选择',
  14804. showTitle: true,
  14805. showSubtitle: true,
  14806. mode: 'single',
  14807. startText: '开始',
  14808. endText: '结束',
  14809. customList: function customList() {
  14810. return [];
  14811. },
  14812. color: '#3c9cff',
  14813. minDate: 0,
  14814. maxDate: 0,
  14815. defaultDate: null,
  14816. maxCount: Number.MAX_SAFE_INTEGER,
  14817. // Infinity
  14818. rowHeight: 56,
  14819. formatter: null,
  14820. showLunar: false,
  14821. showMark: true,
  14822. confirmText: '确定',
  14823. confirmDisabledText: '确定',
  14824. show: false,
  14825. closeOnClickOverlay: false,
  14826. readonly: false,
  14827. showConfirm: true,
  14828. maxRange: Number.MAX_SAFE_INTEGER,
  14829. // Infinity
  14830. rangePrompt: '',
  14831. showRangePrompt: true,
  14832. allowSameDay: false,
  14833. round: 0,
  14834. monthNum: 3
  14835. }
  14836. };
  14837. exports.default = _default;
  14838. /***/ }),
  14839. /* 76 */
  14840. /*!**************************************************************************************!*\
  14841. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/carKeyboard.js ***!
  14842. \**************************************************************************************/
  14843. /*! no static exports found */
  14844. /***/ (function(module, exports, __webpack_require__) {
  14845. "use strict";
  14846. Object.defineProperty(exports, "__esModule", {
  14847. value: true
  14848. });
  14849. exports.default = void 0;
  14850. /*
  14851. * @Author : LQ
  14852. * @Description :
  14853. * @version : 1.0
  14854. * @Date : 2021-08-20 16:44:21
  14855. * @LastAuthor : LQ
  14856. * @lastTime : 2021-08-20 16:53:20
  14857. * @FilePath : /u-view2.0/uview-ui/libs/config/props/carKeyboard.js
  14858. */
  14859. var _default = {
  14860. // 车牌号键盘
  14861. carKeyboard: {
  14862. random: false
  14863. }
  14864. };
  14865. exports.default = _default;
  14866. /***/ }),
  14867. /* 77 */
  14868. /*!*******************************************************************************!*\
  14869. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/cell.js ***!
  14870. \*******************************************************************************/
  14871. /*! no static exports found */
  14872. /***/ (function(module, exports, __webpack_require__) {
  14873. "use strict";
  14874. Object.defineProperty(exports, "__esModule", {
  14875. value: true
  14876. });
  14877. exports.default = void 0;
  14878. /*
  14879. * @Author : LQ
  14880. * @Description :
  14881. * @version : 1.0
  14882. * @Date : 2021-08-20 16:44:21
  14883. * @LastAuthor : LQ
  14884. * @lastTime : 2021-08-23 20:53:09
  14885. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cell.js
  14886. */
  14887. var _default = {
  14888. // cell组件的props
  14889. cell: {
  14890. customClass: '',
  14891. title: '',
  14892. label: '',
  14893. value: '',
  14894. icon: '',
  14895. disabled: false,
  14896. border: true,
  14897. center: false,
  14898. url: '',
  14899. linkType: 'navigateTo',
  14900. clickable: false,
  14901. isLink: false,
  14902. required: false,
  14903. arrowDirection: '',
  14904. iconStyle: {},
  14905. rightIconStyle: {},
  14906. rightIcon: 'arrow-right',
  14907. titleStyle: {},
  14908. size: '',
  14909. stop: true,
  14910. name: ''
  14911. }
  14912. };
  14913. exports.default = _default;
  14914. /***/ }),
  14915. /* 78 */
  14916. /*!************************************************************************************!*\
  14917. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/cellGroup.js ***!
  14918. \************************************************************************************/
  14919. /*! no static exports found */
  14920. /***/ (function(module, exports, __webpack_require__) {
  14921. "use strict";
  14922. Object.defineProperty(exports, "__esModule", {
  14923. value: true
  14924. });
  14925. exports.default = void 0;
  14926. /*
  14927. * @Author : LQ
  14928. * @Description :
  14929. * @version : 1.0
  14930. * @Date : 2021-08-20 16:44:21
  14931. * @LastAuthor : LQ
  14932. * @lastTime : 2021-08-20 16:54:16
  14933. * @FilePath : /u-view2.0/uview-ui/libs/config/props/cellGroup.js
  14934. */
  14935. var _default = {
  14936. // cell-group组件的props
  14937. cellGroup: {
  14938. title: '',
  14939. border: true,
  14940. customStyle: {}
  14941. }
  14942. };
  14943. exports.default = _default;
  14944. /***/ }),
  14945. /* 79 */
  14946. /*!***********************************************************************************!*\
  14947. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/checkbox.js ***!
  14948. \***********************************************************************************/
  14949. /*! no static exports found */
  14950. /***/ (function(module, exports, __webpack_require__) {
  14951. "use strict";
  14952. Object.defineProperty(exports, "__esModule", {
  14953. value: true
  14954. });
  14955. exports.default = void 0;
  14956. /*
  14957. * @Author : LQ
  14958. * @Description :
  14959. * @version : 1.0
  14960. * @Date : 2021-08-20 16:44:21
  14961. * @LastAuthor : LQ
  14962. * @lastTime : 2021-08-23 21:06:59
  14963. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkbox.js
  14964. */
  14965. var _default = {
  14966. // checkbox组件
  14967. checkbox: {
  14968. name: '',
  14969. shape: '',
  14970. size: '',
  14971. checkbox: false,
  14972. disabled: '',
  14973. activeColor: '',
  14974. inactiveColor: '',
  14975. iconSize: '',
  14976. iconColor: '',
  14977. label: '',
  14978. labelSize: '',
  14979. labelColor: '',
  14980. labelDisabled: ''
  14981. }
  14982. };
  14983. exports.default = _default;
  14984. /***/ }),
  14985. /* 80 */
  14986. /*!****************************************************************************************!*\
  14987. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/checkboxGroup.js ***!
  14988. \****************************************************************************************/
  14989. /*! no static exports found */
  14990. /***/ (function(module, exports, __webpack_require__) {
  14991. "use strict";
  14992. Object.defineProperty(exports, "__esModule", {
  14993. value: true
  14994. });
  14995. exports.default = void 0;
  14996. /*
  14997. * @Author : LQ
  14998. * @Description :
  14999. * @version : 1.0
  15000. * @Date : 2021-08-20 16:44:21
  15001. * @LastAuthor : LQ
  15002. * @lastTime : 2021-08-20 16:54:47
  15003. * @FilePath : /u-view2.0/uview-ui/libs/config/props/checkboxGroup.js
  15004. */
  15005. var _default = {
  15006. // checkbox-group组件
  15007. checkboxGroup: {
  15008. name: '',
  15009. value: function value() {
  15010. return [];
  15011. },
  15012. shape: 'square',
  15013. disabled: false,
  15014. activeColor: '#2979ff',
  15015. inactiveColor: '#c8c9cc',
  15016. size: 18,
  15017. placement: 'row',
  15018. labelSize: 14,
  15019. labelColor: '#303133',
  15020. labelDisabled: false,
  15021. iconColor: '#ffffff',
  15022. iconSize: 12,
  15023. iconPlacement: 'left',
  15024. borderBottom: false
  15025. }
  15026. };
  15027. exports.default = _default;
  15028. /***/ }),
  15029. /* 81 */
  15030. /*!*****************************************************************************************!*\
  15031. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/circleProgress.js ***!
  15032. \*****************************************************************************************/
  15033. /*! no static exports found */
  15034. /***/ (function(module, exports, __webpack_require__) {
  15035. "use strict";
  15036. Object.defineProperty(exports, "__esModule", {
  15037. value: true
  15038. });
  15039. exports.default = void 0;
  15040. /*
  15041. * @Author : LQ
  15042. * @Description :
  15043. * @version : 1.0
  15044. * @Date : 2021-08-20 16:44:21
  15045. * @LastAuthor : LQ
  15046. * @lastTime : 2021-08-20 16:55:02
  15047. * @FilePath : /u-view2.0/uview-ui/libs/config/props/circleProgress.js
  15048. */
  15049. var _default = {
  15050. // circleProgress 组件
  15051. circleProgress: {
  15052. percentage: 30
  15053. }
  15054. };
  15055. exports.default = _default;
  15056. /***/ }),
  15057. /* 82 */
  15058. /*!*******************************************************************************!*\
  15059. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/code.js ***!
  15060. \*******************************************************************************/
  15061. /*! no static exports found */
  15062. /***/ (function(module, exports, __webpack_require__) {
  15063. "use strict";
  15064. Object.defineProperty(exports, "__esModule", {
  15065. value: true
  15066. });
  15067. exports.default = void 0;
  15068. /*
  15069. * @Author : LQ
  15070. * @Description :
  15071. * @version : 1.0
  15072. * @Date : 2021-08-20 16:44:21
  15073. * @LastAuthor : LQ
  15074. * @lastTime : 2021-08-20 16:55:27
  15075. * @FilePath : /u-view2.0/uview-ui/libs/config/props/code.js
  15076. */
  15077. var _default = {
  15078. // code 组件
  15079. code: {
  15080. seconds: 60,
  15081. startText: '获取验证码',
  15082. changeText: 'X秒重新获取',
  15083. endText: '重新获取',
  15084. keepRunning: false,
  15085. uniqueKey: ''
  15086. }
  15087. };
  15088. exports.default = _default;
  15089. /***/ }),
  15090. /* 83 */
  15091. /*!************************************************************************************!*\
  15092. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/codeInput.js ***!
  15093. \************************************************************************************/
  15094. /*! no static exports found */
  15095. /***/ (function(module, exports, __webpack_require__) {
  15096. "use strict";
  15097. Object.defineProperty(exports, "__esModule", {
  15098. value: true
  15099. });
  15100. exports.default = void 0;
  15101. /*
  15102. * @Author : LQ
  15103. * @Description :
  15104. * @version : 1.0
  15105. * @Date : 2021-08-20 16:44:21
  15106. * @LastAuthor : LQ
  15107. * @lastTime : 2021-08-20 16:55:58
  15108. * @FilePath : /u-view2.0/uview-ui/libs/config/props/codeInput.js
  15109. */
  15110. var _default = {
  15111. // codeInput 组件
  15112. codeInput: {
  15113. adjustPosition: true,
  15114. maxlength: 6,
  15115. dot: false,
  15116. mode: 'box',
  15117. hairline: false,
  15118. space: 10,
  15119. value: '',
  15120. focus: false,
  15121. bold: false,
  15122. color: '#606266',
  15123. fontSize: 18,
  15124. size: 35,
  15125. disabledKeyboard: false,
  15126. borderColor: '#c9cacc',
  15127. disabledDot: true
  15128. }
  15129. };
  15130. exports.default = _default;
  15131. /***/ }),
  15132. /* 84 */
  15133. /*!******************************************************************************!*\
  15134. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/col.js ***!
  15135. \******************************************************************************/
  15136. /*! no static exports found */
  15137. /***/ (function(module, exports, __webpack_require__) {
  15138. "use strict";
  15139. Object.defineProperty(exports, "__esModule", {
  15140. value: true
  15141. });
  15142. exports.default = void 0;
  15143. /*
  15144. * @Author : LQ
  15145. * @Description :
  15146. * @version : 1.0
  15147. * @Date : 2021-08-20 16:44:21
  15148. * @LastAuthor : LQ
  15149. * @lastTime : 2021-08-20 16:56:12
  15150. * @FilePath : /u-view2.0/uview-ui/libs/config/props/col.js
  15151. */
  15152. var _default = {
  15153. // col 组件
  15154. col: {
  15155. span: 12,
  15156. offset: 0,
  15157. justify: 'start',
  15158. align: 'stretch',
  15159. textAlign: 'left'
  15160. }
  15161. };
  15162. exports.default = _default;
  15163. /***/ }),
  15164. /* 85 */
  15165. /*!***********************************************************************************!*\
  15166. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/collapse.js ***!
  15167. \***********************************************************************************/
  15168. /*! no static exports found */
  15169. /***/ (function(module, exports, __webpack_require__) {
  15170. "use strict";
  15171. Object.defineProperty(exports, "__esModule", {
  15172. value: true
  15173. });
  15174. exports.default = void 0;
  15175. /*
  15176. * @Author : LQ
  15177. * @Description :
  15178. * @version : 1.0
  15179. * @Date : 2021-08-20 16:44:21
  15180. * @LastAuthor : LQ
  15181. * @lastTime : 2021-08-20 16:56:30
  15182. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapse.js
  15183. */
  15184. var _default = {
  15185. // collapse 组件
  15186. collapse: {
  15187. value: null,
  15188. accordion: false,
  15189. border: true
  15190. }
  15191. };
  15192. exports.default = _default;
  15193. /***/ }),
  15194. /* 86 */
  15195. /*!***************************************************************************************!*\
  15196. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/collapseItem.js ***!
  15197. \***************************************************************************************/
  15198. /*! no static exports found */
  15199. /***/ (function(module, exports, __webpack_require__) {
  15200. "use strict";
  15201. Object.defineProperty(exports, "__esModule", {
  15202. value: true
  15203. });
  15204. exports.default = void 0;
  15205. /*
  15206. * @Author : LQ
  15207. * @Description :
  15208. * @version : 1.0
  15209. * @Date : 2021-08-20 16:44:21
  15210. * @LastAuthor : LQ
  15211. * @lastTime : 2021-08-20 16:56:42
  15212. * @FilePath : /u-view2.0/uview-ui/libs/config/props/collapseItem.js
  15213. */
  15214. var _default = {
  15215. // collapseItem 组件
  15216. collapseItem: {
  15217. title: '',
  15218. value: '',
  15219. label: '',
  15220. disabled: false,
  15221. isLink: true,
  15222. clickable: true,
  15223. border: true,
  15224. align: 'left',
  15225. name: '',
  15226. icon: '',
  15227. duration: 300
  15228. }
  15229. };
  15230. exports.default = _default;
  15231. /***/ }),
  15232. /* 87 */
  15233. /*!***************************************************************************************!*\
  15234. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/columnNotice.js ***!
  15235. \***************************************************************************************/
  15236. /*! no static exports found */
  15237. /***/ (function(module, exports, __webpack_require__) {
  15238. "use strict";
  15239. Object.defineProperty(exports, "__esModule", {
  15240. value: true
  15241. });
  15242. exports.default = void 0;
  15243. /*
  15244. * @Author : LQ
  15245. * @Description :
  15246. * @version : 1.0
  15247. * @Date : 2021-08-20 16:44:21
  15248. * @LastAuthor : LQ
  15249. * @lastTime : 2021-08-20 16:57:16
  15250. * @FilePath : /u-view2.0/uview-ui/libs/config/props/columnNotice.js
  15251. */
  15252. var _default = {
  15253. // columnNotice 组件
  15254. columnNotice: {
  15255. text: '',
  15256. icon: 'volume',
  15257. mode: '',
  15258. color: '#f9ae3d',
  15259. bgColor: '#fdf6ec',
  15260. fontSize: 14,
  15261. speed: 80,
  15262. step: false,
  15263. duration: 1500,
  15264. disableTouch: true
  15265. }
  15266. };
  15267. exports.default = _default;
  15268. /***/ }),
  15269. /* 88 */
  15270. /*!************************************************************************************!*\
  15271. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/countDown.js ***!
  15272. \************************************************************************************/
  15273. /*! no static exports found */
  15274. /***/ (function(module, exports, __webpack_require__) {
  15275. "use strict";
  15276. Object.defineProperty(exports, "__esModule", {
  15277. value: true
  15278. });
  15279. exports.default = void 0;
  15280. /*
  15281. * @Author : LQ
  15282. * @Description :
  15283. * @version : 1.0
  15284. * @Date : 2021-08-20 16:44:21
  15285. * @LastAuthor : LQ
  15286. * @lastTime : 2021-08-20 17:11:29
  15287. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countDown.js
  15288. */
  15289. var _default = {
  15290. // u-count-down 计时器组件
  15291. countDown: {
  15292. time: 0,
  15293. format: 'HH:mm:ss',
  15294. autoStart: true,
  15295. millisecond: false
  15296. }
  15297. };
  15298. exports.default = _default;
  15299. /***/ }),
  15300. /* 89 */
  15301. /*!**********************************************************************************!*\
  15302. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/countTo.js ***!
  15303. \**********************************************************************************/
  15304. /*! no static exports found */
  15305. /***/ (function(module, exports, __webpack_require__) {
  15306. "use strict";
  15307. Object.defineProperty(exports, "__esModule", {
  15308. value: true
  15309. });
  15310. exports.default = void 0;
  15311. /*
  15312. * @Author : LQ
  15313. * @Description :
  15314. * @version : 1.0
  15315. * @Date : 2021-08-20 16:44:21
  15316. * @LastAuthor : LQ
  15317. * @lastTime : 2021-08-20 16:57:32
  15318. * @FilePath : /u-view2.0/uview-ui/libs/config/props/countTo.js
  15319. */
  15320. var _default = {
  15321. // countTo 组件
  15322. countTo: {
  15323. startVal: 0,
  15324. endVal: 0,
  15325. duration: 2000,
  15326. autoplay: true,
  15327. decimals: 0,
  15328. useEasing: true,
  15329. decimal: '.',
  15330. color: '#606266',
  15331. fontSize: 22,
  15332. bold: false,
  15333. separator: ''
  15334. }
  15335. };
  15336. exports.default = _default;
  15337. /***/ }),
  15338. /* 90 */
  15339. /*!*****************************************************************************************!*\
  15340. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/datetimePicker.js ***!
  15341. \*****************************************************************************************/
  15342. /*! no static exports found */
  15343. /***/ (function(module, exports, __webpack_require__) {
  15344. "use strict";
  15345. Object.defineProperty(exports, "__esModule", {
  15346. value: true
  15347. });
  15348. exports.default = void 0;
  15349. /*
  15350. * @Author : LQ
  15351. * @Description :
  15352. * @version : 1.0
  15353. * @Date : 2021-08-20 16:44:21
  15354. * @LastAuthor : LQ
  15355. * @lastTime : 2021-08-20 16:57:48
  15356. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  15357. */
  15358. var _default = {
  15359. // datetimePicker 组件
  15360. datetimePicker: {
  15361. show: false,
  15362. showToolbar: true,
  15363. value: '',
  15364. title: '',
  15365. mode: 'datetime',
  15366. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  15367. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  15368. minHour: 0,
  15369. maxHour: 23,
  15370. minMinute: 0,
  15371. maxMinute: 59,
  15372. filter: null,
  15373. formatter: null,
  15374. loading: false,
  15375. itemHeight: 44,
  15376. cancelText: '取消',
  15377. confirmText: '确认',
  15378. cancelColor: '#909193',
  15379. confirmColor: '#3c9cff',
  15380. visibleItemCount: 5,
  15381. closeOnClickOverlay: false,
  15382. defaultIndex: function defaultIndex() {
  15383. return [];
  15384. }
  15385. }
  15386. };
  15387. exports.default = _default;
  15388. /***/ }),
  15389. /* 91 */
  15390. /*!**********************************************************************************!*\
  15391. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/divider.js ***!
  15392. \**********************************************************************************/
  15393. /*! no static exports found */
  15394. /***/ (function(module, exports, __webpack_require__) {
  15395. "use strict";
  15396. Object.defineProperty(exports, "__esModule", {
  15397. value: true
  15398. });
  15399. exports.default = void 0;
  15400. /*
  15401. * @Author : LQ
  15402. * @Description :
  15403. * @version : 1.0
  15404. * @Date : 2021-08-20 16:44:21
  15405. * @LastAuthor : LQ
  15406. * @lastTime : 2021-08-20 16:58:03
  15407. * @FilePath : /u-view2.0/uview-ui/libs/config/props/divider.js
  15408. */
  15409. var _default = {
  15410. // divider组件
  15411. divider: {
  15412. dashed: false,
  15413. hairline: true,
  15414. dot: false,
  15415. textPosition: 'center',
  15416. text: '',
  15417. textSize: 14,
  15418. textColor: '#909399',
  15419. lineColor: '#dcdfe6'
  15420. }
  15421. };
  15422. exports.default = _default;
  15423. /***/ }),
  15424. /* 92 */
  15425. /*!********************************************************************************!*\
  15426. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/empty.js ***!
  15427. \********************************************************************************/
  15428. /*! no static exports found */
  15429. /***/ (function(module, exports, __webpack_require__) {
  15430. "use strict";
  15431. Object.defineProperty(exports, "__esModule", {
  15432. value: true
  15433. });
  15434. exports.default = void 0;
  15435. /*
  15436. * @Author : LQ
  15437. * @Description :
  15438. * @version : 1.0
  15439. * @Date : 2021-08-20 16:44:21
  15440. * @LastAuthor : LQ
  15441. * @lastTime : 2021-08-20 17:03:27
  15442. * @FilePath : /u-view2.0/uview-ui/libs/config/props/empty.js
  15443. */
  15444. var _default = {
  15445. // empty组件
  15446. empty: {
  15447. icon: '',
  15448. text: '',
  15449. textColor: '#c0c4cc',
  15450. textSize: 14,
  15451. iconColor: '#c0c4cc',
  15452. iconSize: 90,
  15453. mode: 'data',
  15454. width: 160,
  15455. height: 160,
  15456. show: true,
  15457. marginTop: 0
  15458. }
  15459. };
  15460. exports.default = _default;
  15461. /***/ }),
  15462. /* 93 */
  15463. /*!*******************************************************************************!*\
  15464. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/form.js ***!
  15465. \*******************************************************************************/
  15466. /*! no static exports found */
  15467. /***/ (function(module, exports, __webpack_require__) {
  15468. "use strict";
  15469. Object.defineProperty(exports, "__esModule", {
  15470. value: true
  15471. });
  15472. exports.default = void 0;
  15473. /*
  15474. * @Author : LQ
  15475. * @Description :
  15476. * @version : 1.0
  15477. * @Date : 2021-08-20 16:44:21
  15478. * @LastAuthor : LQ
  15479. * @lastTime : 2021-08-20 17:03:49
  15480. * @FilePath : /u-view2.0/uview-ui/libs/config/props/form.js
  15481. */
  15482. var _default = {
  15483. // form 组件
  15484. form: {
  15485. model: function model() {
  15486. return {};
  15487. },
  15488. rules: function rules() {
  15489. return {};
  15490. },
  15491. errorType: 'message',
  15492. borderBottom: true,
  15493. labelPosition: 'left',
  15494. labelWidth: 45,
  15495. labelAlign: 'left',
  15496. labelStyle: function labelStyle() {
  15497. return {};
  15498. }
  15499. }
  15500. };
  15501. exports.default = _default;
  15502. /***/ }),
  15503. /* 94 */
  15504. /*!***********************************************************************************!*\
  15505. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/formItem.js ***!
  15506. \***********************************************************************************/
  15507. /*! no static exports found */
  15508. /***/ (function(module, exports, __webpack_require__) {
  15509. "use strict";
  15510. Object.defineProperty(exports, "__esModule", {
  15511. value: true
  15512. });
  15513. exports.default = void 0;
  15514. /*
  15515. * @Author : LQ
  15516. * @Description :
  15517. * @version : 1.0
  15518. * @Date : 2021-08-20 16:44:21
  15519. * @LastAuthor : LQ
  15520. * @lastTime : 2021-08-20 17:04:32
  15521. * @FilePath : /u-view2.0/uview-ui/libs/config/props/formItem.js
  15522. */
  15523. var _default = {
  15524. // formItem 组件
  15525. formItem: {
  15526. label: '',
  15527. prop: '',
  15528. borderBottom: '',
  15529. labelPosition: '',
  15530. labelWidth: '',
  15531. rightIcon: '',
  15532. leftIcon: '',
  15533. required: false,
  15534. leftIconStyle: ''
  15535. }
  15536. };
  15537. exports.default = _default;
  15538. /***/ }),
  15539. /* 95 */
  15540. /*!******************************************************************************!*\
  15541. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/gap.js ***!
  15542. \******************************************************************************/
  15543. /*! no static exports found */
  15544. /***/ (function(module, exports, __webpack_require__) {
  15545. "use strict";
  15546. Object.defineProperty(exports, "__esModule", {
  15547. value: true
  15548. });
  15549. exports.default = void 0;
  15550. /*
  15551. * @Author : LQ
  15552. * @Description :
  15553. * @version : 1.0
  15554. * @Date : 2021-08-20 16:44:21
  15555. * @LastAuthor : LQ
  15556. * @lastTime : 2021-08-20 17:05:25
  15557. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gap.js
  15558. */
  15559. var _default = {
  15560. // gap组件
  15561. gap: {
  15562. bgColor: 'transparent',
  15563. height: 20,
  15564. marginTop: 0,
  15565. marginBottom: 0,
  15566. customStyle: {}
  15567. }
  15568. };
  15569. exports.default = _default;
  15570. /***/ }),
  15571. /* 96 */
  15572. /*!*******************************************************************************!*\
  15573. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/grid.js ***!
  15574. \*******************************************************************************/
  15575. /*! no static exports found */
  15576. /***/ (function(module, exports, __webpack_require__) {
  15577. "use strict";
  15578. Object.defineProperty(exports, "__esModule", {
  15579. value: true
  15580. });
  15581. exports.default = void 0;
  15582. /*
  15583. * @Author : LQ
  15584. * @Description :
  15585. * @version : 1.0
  15586. * @Date : 2021-08-20 16:44:21
  15587. * @LastAuthor : LQ
  15588. * @lastTime : 2021-08-20 17:05:57
  15589. * @FilePath : /u-view2.0/uview-ui/libs/config/props/grid.js
  15590. */
  15591. var _default = {
  15592. // grid组件
  15593. grid: {
  15594. col: 3,
  15595. border: false,
  15596. align: 'left'
  15597. }
  15598. };
  15599. exports.default = _default;
  15600. /***/ }),
  15601. /* 97 */
  15602. /*!***********************************************************************************!*\
  15603. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/gridItem.js ***!
  15604. \***********************************************************************************/
  15605. /*! no static exports found */
  15606. /***/ (function(module, exports, __webpack_require__) {
  15607. "use strict";
  15608. Object.defineProperty(exports, "__esModule", {
  15609. value: true
  15610. });
  15611. exports.default = void 0;
  15612. /*
  15613. * @Author : LQ
  15614. * @Description :
  15615. * @version : 1.0
  15616. * @Date : 2021-08-20 16:44:21
  15617. * @LastAuthor : LQ
  15618. * @lastTime : 2021-08-20 17:06:13
  15619. * @FilePath : /u-view2.0/uview-ui/libs/config/props/gridItem.js
  15620. */
  15621. var _default = {
  15622. // grid-item组件
  15623. gridItem: {
  15624. name: null,
  15625. bgColor: 'transparent'
  15626. }
  15627. };
  15628. exports.default = _default;
  15629. /***/ }),
  15630. /* 98 */
  15631. /*!*******************************************************************************!*\
  15632. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/icon.js ***!
  15633. \*******************************************************************************/
  15634. /*! no static exports found */
  15635. /***/ (function(module, exports, __webpack_require__) {
  15636. "use strict";
  15637. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  15638. Object.defineProperty(exports, "__esModule", {
  15639. value: true
  15640. });
  15641. exports.default = void 0;
  15642. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15643. /*
  15644. * @Author : LQ
  15645. * @Description :
  15646. * @version : 1.0
  15647. * @Date : 2021-08-20 16:44:21
  15648. * @LastAuthor : LQ
  15649. * @lastTime : 2021-08-20 18:00:14
  15650. * @FilePath : /u-view2.0/uview-ui/libs/config/props/icon.js
  15651. */
  15652. var color = _config.default.color;
  15653. var _default = {
  15654. // icon组件
  15655. icon: {
  15656. name: '',
  15657. color: color['u-content-color'],
  15658. size: '16px',
  15659. bold: false,
  15660. index: '',
  15661. hoverClass: '',
  15662. customPrefix: 'uicon',
  15663. label: '',
  15664. labelPos: 'right',
  15665. labelSize: '15px',
  15666. labelColor: color['u-content-color'],
  15667. space: '3px',
  15668. imgMode: '',
  15669. width: '',
  15670. height: '',
  15671. top: 0,
  15672. stop: false
  15673. }
  15674. };
  15675. exports.default = _default;
  15676. /***/ }),
  15677. /* 99 */
  15678. /*!********************************************************************************!*\
  15679. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/image.js ***!
  15680. \********************************************************************************/
  15681. /*! no static exports found */
  15682. /***/ (function(module, exports, __webpack_require__) {
  15683. "use strict";
  15684. Object.defineProperty(exports, "__esModule", {
  15685. value: true
  15686. });
  15687. exports.default = void 0;
  15688. /*
  15689. * @Author : LQ
  15690. * @Description :
  15691. * @version : 1.0
  15692. * @Date : 2021-08-20 16:44:21
  15693. * @LastAuthor : LQ
  15694. * @lastTime : 2021-08-20 17:01:51
  15695. * @FilePath : /u-view2.0/uview-ui/libs/config/props/image.js
  15696. */
  15697. var _default = {
  15698. // image组件
  15699. image: {
  15700. src: '',
  15701. mode: 'aspectFill',
  15702. width: '300',
  15703. height: '225',
  15704. shape: 'square',
  15705. radius: 0,
  15706. lazyLoad: true,
  15707. showMenuByLongpress: true,
  15708. loadingIcon: 'photo',
  15709. errorIcon: 'error-circle',
  15710. showLoading: true,
  15711. showError: true,
  15712. fade: true,
  15713. webp: false,
  15714. duration: 500,
  15715. bgColor: '#f3f4f6'
  15716. }
  15717. };
  15718. exports.default = _default;
  15719. /***/ }),
  15720. /* 100 */
  15721. /*!**************************************************************************************!*\
  15722. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/indexAnchor.js ***!
  15723. \**************************************************************************************/
  15724. /*! no static exports found */
  15725. /***/ (function(module, exports, __webpack_require__) {
  15726. "use strict";
  15727. Object.defineProperty(exports, "__esModule", {
  15728. value: true
  15729. });
  15730. exports.default = void 0;
  15731. /*
  15732. * @Author : LQ
  15733. * @Description :
  15734. * @version : 1.0
  15735. * @Date : 2021-08-20 16:44:21
  15736. * @LastAuthor : LQ
  15737. * @lastTime : 2021-08-20 17:13:15
  15738. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexAnchor.js
  15739. */
  15740. var _default = {
  15741. // indexAnchor 组件
  15742. indexAnchor: {
  15743. text: '',
  15744. color: '#606266',
  15745. size: 14,
  15746. bgColor: '#dedede',
  15747. height: 32
  15748. }
  15749. };
  15750. exports.default = _default;
  15751. /***/ }),
  15752. /* 101 */
  15753. /*!************************************************************************************!*\
  15754. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/indexList.js ***!
  15755. \************************************************************************************/
  15756. /*! no static exports found */
  15757. /***/ (function(module, exports, __webpack_require__) {
  15758. "use strict";
  15759. Object.defineProperty(exports, "__esModule", {
  15760. value: true
  15761. });
  15762. exports.default = void 0;
  15763. /*
  15764. * @Author : LQ
  15765. * @Description :
  15766. * @version : 1.0
  15767. * @Date : 2021-08-20 16:44:21
  15768. * @LastAuthor : LQ
  15769. * @lastTime : 2021-08-20 17:13:35
  15770. * @FilePath : /u-view2.0/uview-ui/libs/config/props/indexList.js
  15771. */
  15772. var _default = {
  15773. // indexList 组件
  15774. indexList: {
  15775. inactiveColor: '#606266',
  15776. activeColor: '#5677fc',
  15777. indexList: function indexList() {
  15778. return [];
  15779. },
  15780. sticky: true,
  15781. customNavHeight: 0
  15782. }
  15783. };
  15784. exports.default = _default;
  15785. /***/ }),
  15786. /* 102 */
  15787. /*!********************************************************************************!*\
  15788. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/input.js ***!
  15789. \********************************************************************************/
  15790. /*! no static exports found */
  15791. /***/ (function(module, exports, __webpack_require__) {
  15792. "use strict";
  15793. Object.defineProperty(exports, "__esModule", {
  15794. value: true
  15795. });
  15796. exports.default = void 0;
  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:13:55
  15804. * @FilePath : /u-view2.0/uview-ui/libs/config/props/input.js
  15805. */
  15806. var _default = {
  15807. // index 组件
  15808. input: {
  15809. value: '',
  15810. type: 'text',
  15811. fixed: false,
  15812. disabled: false,
  15813. disabledColor: '#f5f7fa',
  15814. clearable: false,
  15815. password: false,
  15816. maxlength: -1,
  15817. placeholder: null,
  15818. placeholderClass: 'input-placeholder',
  15819. placeholderStyle: 'color: #c0c4cc',
  15820. showWordLimit: false,
  15821. confirmType: 'done',
  15822. confirmHold: false,
  15823. holdKeyboard: false,
  15824. focus: false,
  15825. autoBlur: false,
  15826. disableDefaultPadding: false,
  15827. cursor: -1,
  15828. cursorSpacing: 30,
  15829. selectionStart: -1,
  15830. selectionEnd: -1,
  15831. adjustPosition: true,
  15832. inputAlign: 'left',
  15833. fontSize: '15px',
  15834. color: '#303133',
  15835. prefixIcon: '',
  15836. prefixIconStyle: '',
  15837. suffixIcon: '',
  15838. suffixIconStyle: '',
  15839. border: 'surround',
  15840. readonly: false,
  15841. shape: 'square',
  15842. formatter: null
  15843. }
  15844. };
  15845. exports.default = _default;
  15846. /***/ }),
  15847. /* 103 */
  15848. /*!***********************************************************************************!*\
  15849. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/keyboard.js ***!
  15850. \***********************************************************************************/
  15851. /*! no static exports found */
  15852. /***/ (function(module, exports, __webpack_require__) {
  15853. "use strict";
  15854. Object.defineProperty(exports, "__esModule", {
  15855. value: true
  15856. });
  15857. exports.default = void 0;
  15858. /*
  15859. * @Author : LQ
  15860. * @Description :
  15861. * @version : 1.0
  15862. * @Date : 2021-08-20 16:44:21
  15863. * @LastAuthor : LQ
  15864. * @lastTime : 2021-08-20 17:07:49
  15865. * @FilePath : /u-view2.0/uview-ui/libs/config/props/keyboard.js
  15866. */
  15867. var _default = {
  15868. // 键盘组件
  15869. keyboard: {
  15870. mode: 'number',
  15871. dotDisabled: false,
  15872. tooltip: true,
  15873. showTips: true,
  15874. tips: '',
  15875. showCancel: true,
  15876. showConfirm: true,
  15877. random: false,
  15878. safeAreaInsetBottom: true,
  15879. closeOnClickOverlay: true,
  15880. show: false,
  15881. overlay: true,
  15882. zIndex: 10075,
  15883. cancelText: '取消',
  15884. confirmText: '确定',
  15885. autoChange: false
  15886. }
  15887. };
  15888. exports.default = _default;
  15889. /***/ }),
  15890. /* 104 */
  15891. /*!*******************************************************************************!*\
  15892. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/line.js ***!
  15893. \*******************************************************************************/
  15894. /*! no static exports found */
  15895. /***/ (function(module, exports, __webpack_require__) {
  15896. "use strict";
  15897. Object.defineProperty(exports, "__esModule", {
  15898. value: true
  15899. });
  15900. exports.default = void 0;
  15901. /*
  15902. * @Author : LQ
  15903. * @Description :
  15904. * @version : 1.0
  15905. * @Date : 2021-08-20 16:44:21
  15906. * @LastAuthor : LQ
  15907. * @lastTime : 2021-08-20 17:04:49
  15908. * @FilePath : /u-view2.0/uview-ui/libs/config/props/line.js
  15909. */
  15910. var _default = {
  15911. // line组件
  15912. line: {
  15913. color: '#d6d7d9',
  15914. length: '100%',
  15915. direction: 'row',
  15916. hairline: true,
  15917. margin: 0,
  15918. dashed: false
  15919. }
  15920. };
  15921. exports.default = _default;
  15922. /***/ }),
  15923. /* 105 */
  15924. /*!***************************************************************************************!*\
  15925. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/lineProgress.js ***!
  15926. \***************************************************************************************/
  15927. /*! no static exports found */
  15928. /***/ (function(module, exports, __webpack_require__) {
  15929. "use strict";
  15930. Object.defineProperty(exports, "__esModule", {
  15931. value: true
  15932. });
  15933. exports.default = void 0;
  15934. /*
  15935. * @Author : LQ
  15936. * @Description :
  15937. * @version : 1.0
  15938. * @Date : 2021-08-20 16:44:21
  15939. * @LastAuthor : LQ
  15940. * @lastTime : 2021-08-20 17:14:11
  15941. * @FilePath : /u-view2.0/uview-ui/libs/config/props/lineProgress.js
  15942. */
  15943. var _default = {
  15944. // lineProgress 组件
  15945. lineProgress: {
  15946. activeColor: '#19be6b',
  15947. inactiveColor: '#ececec',
  15948. percentage: 0,
  15949. showText: true,
  15950. height: 12
  15951. }
  15952. };
  15953. exports.default = _default;
  15954. /***/ }),
  15955. /* 106 */
  15956. /*!*******************************************************************************!*\
  15957. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/link.js ***!
  15958. \*******************************************************************************/
  15959. /*! no static exports found */
  15960. /***/ (function(module, exports, __webpack_require__) {
  15961. "use strict";
  15962. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  15963. Object.defineProperty(exports, "__esModule", {
  15964. value: true
  15965. });
  15966. exports.default = void 0;
  15967. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  15968. /*
  15969. * @Author : LQ
  15970. * @Description :
  15971. * @version : 1.0
  15972. * @Date : 2021-08-20 16:44:21
  15973. * @LastAuthor : LQ
  15974. * @lastTime : 2021-08-20 17:45:36
  15975. * @FilePath : /u-view2.0/uview-ui/libs/config/props/link.js
  15976. */
  15977. var color = _config.default.color;
  15978. var _default = {
  15979. // link超链接组件props参数
  15980. link: {
  15981. color: color['u-primary'],
  15982. fontSize: 15,
  15983. underLine: false,
  15984. href: '',
  15985. mpTips: '链接已复制,请在浏览器打开',
  15986. lineColor: '',
  15987. text: ''
  15988. }
  15989. };
  15990. exports.default = _default;
  15991. /***/ }),
  15992. /* 107 */
  15993. /*!*******************************************************************************!*\
  15994. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/list.js ***!
  15995. \*******************************************************************************/
  15996. /*! no static exports found */
  15997. /***/ (function(module, exports, __webpack_require__) {
  15998. "use strict";
  15999. Object.defineProperty(exports, "__esModule", {
  16000. value: true
  16001. });
  16002. exports.default = void 0;
  16003. /*
  16004. * @Author : LQ
  16005. * @Description :
  16006. * @version : 1.0
  16007. * @Date : 2021-08-20 16:44:21
  16008. * @LastAuthor : LQ
  16009. * @lastTime : 2021-08-20 17:14:53
  16010. * @FilePath : /u-view2.0/uview-ui/libs/config/props/list.js
  16011. */
  16012. var _default = {
  16013. // list 组件
  16014. list: {
  16015. showScrollbar: false,
  16016. lowerThreshold: 50,
  16017. upperThreshold: 0,
  16018. scrollTop: 0,
  16019. offsetAccuracy: 10,
  16020. enableFlex: false,
  16021. pagingEnabled: false,
  16022. scrollable: true,
  16023. scrollIntoView: '',
  16024. scrollWithAnimation: false,
  16025. enableBackToTop: false,
  16026. height: 0,
  16027. width: 0,
  16028. preLoadScreen: 1
  16029. }
  16030. };
  16031. exports.default = _default;
  16032. /***/ }),
  16033. /* 108 */
  16034. /*!***********************************************************************************!*\
  16035. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/listItem.js ***!
  16036. \***********************************************************************************/
  16037. /*! no static exports found */
  16038. /***/ (function(module, exports, __webpack_require__) {
  16039. "use strict";
  16040. Object.defineProperty(exports, "__esModule", {
  16041. value: true
  16042. });
  16043. exports.default = void 0;
  16044. /*
  16045. * @Author : LQ
  16046. * @Description :
  16047. * @version : 1.0
  16048. * @Date : 2021-08-20 16:44:21
  16049. * @LastAuthor : LQ
  16050. * @lastTime : 2021-08-20 17:15:40
  16051. * @FilePath : /u-view2.0/uview-ui/libs/config/props/listItem.js
  16052. */
  16053. var _default = {
  16054. // listItem 组件
  16055. listItem: {
  16056. anchor: ''
  16057. }
  16058. };
  16059. exports.default = _default;
  16060. /***/ }),
  16061. /* 109 */
  16062. /*!**************************************************************************************!*\
  16063. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/loadingIcon.js ***!
  16064. \**************************************************************************************/
  16065. /*! no static exports found */
  16066. /***/ (function(module, exports, __webpack_require__) {
  16067. "use strict";
  16068. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  16069. Object.defineProperty(exports, "__esModule", {
  16070. value: true
  16071. });
  16072. exports.default = void 0;
  16073. var _config = _interopRequireDefault(__webpack_require__(/*! ../config */ 65));
  16074. /*
  16075. * @Author : LQ
  16076. * @Description :
  16077. * @version : 1.0
  16078. * @Date : 2021-08-20 16:44:21
  16079. * @LastAuthor : LQ
  16080. * @lastTime : 2021-08-20 17:45:47
  16081. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingIcon.js
  16082. */
  16083. var color = _config.default.color;
  16084. var _default = {
  16085. // loading-icon加载中图标组件
  16086. loadingIcon: {
  16087. show: true,
  16088. color: color['u-tips-color'],
  16089. textColor: color['u-tips-color'],
  16090. vertical: false,
  16091. mode: 'spinner',
  16092. size: 24,
  16093. textSize: 15,
  16094. text: '',
  16095. timingFunction: 'ease-in-out',
  16096. duration: 1200,
  16097. inactiveColor: ''
  16098. }
  16099. };
  16100. exports.default = _default;
  16101. /***/ }),
  16102. /* 110 */
  16103. /*!**************************************************************************************!*\
  16104. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/loadingPage.js ***!
  16105. \**************************************************************************************/
  16106. /*! no static exports found */
  16107. /***/ (function(module, exports, __webpack_require__) {
  16108. "use strict";
  16109. Object.defineProperty(exports, "__esModule", {
  16110. value: true
  16111. });
  16112. exports.default = void 0;
  16113. /*
  16114. * @Author : LQ
  16115. * @Description :
  16116. * @version : 1.0
  16117. * @Date : 2021-08-20 16:44:21
  16118. * @LastAuthor : LQ
  16119. * @lastTime : 2021-08-20 17:00:23
  16120. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadingPage.js
  16121. */
  16122. var _default = {
  16123. // loading-page组件
  16124. loadingPage: {
  16125. loadingText: '正在加载',
  16126. image: '',
  16127. loadingMode: 'circle',
  16128. loading: false,
  16129. bgColor: '#ffffff',
  16130. color: '#C8C8C8',
  16131. fontSize: 19,
  16132. iconSize: 28,
  16133. loadingColor: '#C8C8C8'
  16134. }
  16135. };
  16136. exports.default = _default;
  16137. /***/ }),
  16138. /* 111 */
  16139. /*!***********************************************************************************!*\
  16140. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/loadmore.js ***!
  16141. \***********************************************************************************/
  16142. /*! no static exports found */
  16143. /***/ (function(module, exports, __webpack_require__) {
  16144. "use strict";
  16145. Object.defineProperty(exports, "__esModule", {
  16146. value: true
  16147. });
  16148. exports.default = void 0;
  16149. /*
  16150. * @Author : LQ
  16151. * @Description :
  16152. * @version : 1.0
  16153. * @Date : 2021-08-20 16:44:21
  16154. * @LastAuthor : LQ
  16155. * @lastTime : 2021-08-20 17:15:26
  16156. * @FilePath : /u-view2.0/uview-ui/libs/config/props/loadmore.js
  16157. */
  16158. var _default = {
  16159. // loadmore 组件
  16160. loadmore: {
  16161. status: 'loadmore',
  16162. bgColor: 'transparent',
  16163. icon: true,
  16164. fontSize: 14,
  16165. iconSize: 17,
  16166. color: '#606266',
  16167. loadingIcon: 'spinner',
  16168. loadmoreText: '加载更多',
  16169. loadingText: '正在加载...',
  16170. nomoreText: '没有更多了',
  16171. isDot: false,
  16172. iconColor: '#b7b7b7',
  16173. marginTop: 10,
  16174. marginBottom: 10,
  16175. height: 'auto',
  16176. line: false,
  16177. lineColor: '#E6E8EB',
  16178. dashed: false
  16179. }
  16180. };
  16181. exports.default = _default;
  16182. /***/ }),
  16183. /* 112 */
  16184. /*!********************************************************************************!*\
  16185. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/modal.js ***!
  16186. \********************************************************************************/
  16187. /*! no static exports found */
  16188. /***/ (function(module, exports, __webpack_require__) {
  16189. "use strict";
  16190. Object.defineProperty(exports, "__esModule", {
  16191. value: true
  16192. });
  16193. exports.default = void 0;
  16194. /*
  16195. * @Author : LQ
  16196. * @Description :
  16197. * @version : 1.0
  16198. * @Date : 2021-08-20 16:44:21
  16199. * @LastAuthor : LQ
  16200. * @lastTime : 2021-08-20 17:15:59
  16201. * @FilePath : /u-view2.0/uview-ui/libs/config/props/modal.js
  16202. */
  16203. var _default = {
  16204. // modal 组件
  16205. modal: {
  16206. show: false,
  16207. title: '',
  16208. content: '',
  16209. confirmText: '确认',
  16210. cancelText: '取消',
  16211. showConfirmButton: true,
  16212. showCancelButton: false,
  16213. confirmColor: '#2979ff',
  16214. cancelColor: '#606266',
  16215. buttonReverse: false,
  16216. zoom: true,
  16217. asyncClose: false,
  16218. closeOnClickOverlay: false,
  16219. negativeTop: 0,
  16220. width: '650rpx',
  16221. confirmButtonShape: ''
  16222. }
  16223. };
  16224. exports.default = _default;
  16225. /***/ }),
  16226. /* 113 */
  16227. /*!*********************************************************************************!*\
  16228. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/navbar.js ***!
  16229. \*********************************************************************************/
  16230. /*! no static exports found */
  16231. /***/ (function(module, exports, __webpack_require__) {
  16232. "use strict";
  16233. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  16234. Object.defineProperty(exports, "__esModule", {
  16235. value: true
  16236. });
  16237. exports.default = void 0;
  16238. var _color = _interopRequireDefault(__webpack_require__(/*! ../color */ 114));
  16239. /*
  16240. * @Author : LQ
  16241. * @Description :
  16242. * @version : 1.0
  16243. * @Date : 2021-08-20 16:44:21
  16244. * @LastAuthor : LQ
  16245. * @lastTime : 2021-08-20 17:16:18
  16246. * @FilePath : /u-view2.0/uview-ui/libs/config/props/navbar.js
  16247. */
  16248. var _default = {
  16249. // navbar 组件
  16250. navbar: {
  16251. safeAreaInsetTop: true,
  16252. placeholder: false,
  16253. fixed: true,
  16254. border: false,
  16255. leftIcon: 'arrow-left',
  16256. leftText: '',
  16257. rightText: '',
  16258. rightIcon: '',
  16259. title: '',
  16260. bgColor: '#ffffff',
  16261. titleWidth: '400rpx',
  16262. height: '44px',
  16263. leftIconSize: 20,
  16264. leftIconColor: _color.default.mainColor,
  16265. autoBack: false,
  16266. titleStyle: ''
  16267. }
  16268. };
  16269. exports.default = _default;
  16270. /***/ }),
  16271. /* 114 */
  16272. /*!**************************************************************************!*\
  16273. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/color.js ***!
  16274. \**************************************************************************/
  16275. /*! no static exports found */
  16276. /***/ (function(module, exports, __webpack_require__) {
  16277. "use strict";
  16278. Object.defineProperty(exports, "__esModule", {
  16279. value: true
  16280. });
  16281. exports.default = void 0;
  16282. // 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供
  16283. // 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)
  16284. var color = {
  16285. primary: '#3c9cff',
  16286. info: '#909399',
  16287. default: '#909399',
  16288. warning: '#f9ae3d',
  16289. error: '#f56c6c',
  16290. success: '#5ac725',
  16291. mainColor: '#303133',
  16292. contentColor: '#606266',
  16293. tipsColor: '#909399',
  16294. lightColor: '#c0c4cc',
  16295. borderColor: '#e4e7ed'
  16296. };
  16297. var _default = color;
  16298. exports.default = _default;
  16299. /***/ }),
  16300. /* 115 */
  16301. /*!************************************************************************************!*\
  16302. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/noNetwork.js ***!
  16303. \************************************************************************************/
  16304. /*! no static exports found */
  16305. /***/ (function(module, exports, __webpack_require__) {
  16306. "use strict";
  16307. Object.defineProperty(exports, "__esModule", {
  16308. value: true
  16309. });
  16310. exports.default = void 0;
  16311. /*
  16312. * @Author : LQ
  16313. * @Description :
  16314. * @version : 1.0
  16315. * @Date : 2021-08-20 16:44:21
  16316. * @LastAuthor : LQ
  16317. * @lastTime : 2021-08-20 17:16:39
  16318. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noNetwork.js
  16319. */
  16320. var _default = {
  16321. // noNetwork
  16322. noNetwork: {
  16323. tips: '哎呀,网络信号丢失',
  16324. zIndex: '',
  16325. 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'
  16326. }
  16327. };
  16328. exports.default = _default;
  16329. /***/ }),
  16330. /* 116 */
  16331. /*!************************************************************************************!*\
  16332. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/noticeBar.js ***!
  16333. \************************************************************************************/
  16334. /*! no static exports found */
  16335. /***/ (function(module, exports, __webpack_require__) {
  16336. "use strict";
  16337. Object.defineProperty(exports, "__esModule", {
  16338. value: true
  16339. });
  16340. exports.default = void 0;
  16341. /*
  16342. * @Author : LQ
  16343. * @Description :
  16344. * @version : 1.0
  16345. * @Date : 2021-08-20 16:44:21
  16346. * @LastAuthor : LQ
  16347. * @lastTime : 2021-08-20 17:17:13
  16348. * @FilePath : /u-view2.0/uview-ui/libs/config/props/noticeBar.js
  16349. */
  16350. var _default = {
  16351. // noticeBar
  16352. noticeBar: {
  16353. text: function text() {
  16354. return [];
  16355. },
  16356. direction: 'row',
  16357. step: false,
  16358. icon: 'volume',
  16359. mode: '',
  16360. color: '#f9ae3d',
  16361. bgColor: '#fdf6ec',
  16362. speed: 80,
  16363. fontSize: 14,
  16364. duration: 2000,
  16365. disableTouch: true,
  16366. url: '',
  16367. linkType: 'navigateTo'
  16368. }
  16369. };
  16370. exports.default = _default;
  16371. /***/ }),
  16372. /* 117 */
  16373. /*!*********************************************************************************!*\
  16374. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/notify.js ***!
  16375. \*********************************************************************************/
  16376. /*! no static exports found */
  16377. /***/ (function(module, exports, __webpack_require__) {
  16378. "use strict";
  16379. Object.defineProperty(exports, "__esModule", {
  16380. value: true
  16381. });
  16382. exports.default = void 0;
  16383. /*
  16384. * @Author : LQ
  16385. * @Description :
  16386. * @version : 1.0
  16387. * @Date : 2021-08-20 16:44:21
  16388. * @LastAuthor : LQ
  16389. * @lastTime : 2021-08-20 17:10:21
  16390. * @FilePath : /u-view2.0/uview-ui/libs/config/props/notify.js
  16391. */
  16392. var _default = {
  16393. // notify组件
  16394. notify: {
  16395. top: 0,
  16396. type: 'primary',
  16397. color: '#ffffff',
  16398. bgColor: '',
  16399. message: '',
  16400. duration: 3000,
  16401. fontSize: 15,
  16402. safeAreaInsetTop: false
  16403. }
  16404. };
  16405. exports.default = _default;
  16406. /***/ }),
  16407. /* 118 */
  16408. /*!************************************************************************************!*\
  16409. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/numberBox.js ***!
  16410. \************************************************************************************/
  16411. /*! no static exports found */
  16412. /***/ (function(module, exports, __webpack_require__) {
  16413. "use strict";
  16414. Object.defineProperty(exports, "__esModule", {
  16415. value: true
  16416. });
  16417. exports.default = void 0;
  16418. /*
  16419. * @Author : LQ
  16420. * @Description :
  16421. * @version : 1.0
  16422. * @Date : 2021-08-20 16:44:21
  16423. * @LastAuthor : LQ
  16424. * @lastTime : 2021-08-20 17:11:46
  16425. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberBox.js
  16426. */
  16427. var _default = {
  16428. // 步进器组件
  16429. numberBox: {
  16430. name: '',
  16431. value: 0,
  16432. min: 1,
  16433. max: Number.MAX_SAFE_INTEGER,
  16434. step: 1,
  16435. integer: false,
  16436. disabled: false,
  16437. disabledInput: false,
  16438. asyncChange: false,
  16439. inputWidth: 35,
  16440. showMinus: true,
  16441. showPlus: true,
  16442. decimalLength: null,
  16443. longPress: true,
  16444. color: '#323233',
  16445. buttonSize: 30,
  16446. bgColor: '#EBECEE',
  16447. cursorSpacing: 100,
  16448. disableMinus: false,
  16449. disablePlus: false,
  16450. iconStyle: ''
  16451. }
  16452. };
  16453. exports.default = _default;
  16454. /***/ }),
  16455. /* 119 */
  16456. /*!*****************************************************************************************!*\
  16457. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/numberKeyboard.js ***!
  16458. \*****************************************************************************************/
  16459. /*! no static exports found */
  16460. /***/ (function(module, exports, __webpack_require__) {
  16461. "use strict";
  16462. Object.defineProperty(exports, "__esModule", {
  16463. value: true
  16464. });
  16465. exports.default = void 0;
  16466. /*
  16467. * @Author : LQ
  16468. * @Description :
  16469. * @version : 1.0
  16470. * @Date : 2021-08-20 16:44:21
  16471. * @LastAuthor : LQ
  16472. * @lastTime : 2021-08-20 17:08:05
  16473. * @FilePath : /u-view2.0/uview-ui/libs/config/props/numberKeyboard.js
  16474. */
  16475. var _default = {
  16476. // 数字键盘
  16477. numberKeyboard: {
  16478. mode: 'number',
  16479. dotDisabled: false,
  16480. random: false
  16481. }
  16482. };
  16483. exports.default = _default;
  16484. /***/ }),
  16485. /* 120 */
  16486. /*!**********************************************************************************!*\
  16487. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/overlay.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:06:50
  16503. * @FilePath : /u-view2.0/uview-ui/libs/config/props/overlay.js
  16504. */
  16505. var _default = {
  16506. // overlay组件
  16507. overlay: {
  16508. show: false,
  16509. zIndex: 10070,
  16510. duration: 300,
  16511. opacity: 0.5
  16512. }
  16513. };
  16514. exports.default = _default;
  16515. /***/ }),
  16516. /* 121 */
  16517. /*!********************************************************************************!*\
  16518. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/parse.js ***!
  16519. \********************************************************************************/
  16520. /*! no static exports found */
  16521. /***/ (function(module, exports, __webpack_require__) {
  16522. "use strict";
  16523. Object.defineProperty(exports, "__esModule", {
  16524. value: true
  16525. });
  16526. exports.default = void 0;
  16527. /*
  16528. * @Author : LQ
  16529. * @Description :
  16530. * @version : 1.0
  16531. * @Date : 2021-08-20 16:44:21
  16532. * @LastAuthor : LQ
  16533. * @lastTime : 2021-08-20 17:17:33
  16534. * @FilePath : /u-view2.0/uview-ui/libs/config/props/parse.js
  16535. */
  16536. var _default = {
  16537. // parse
  16538. parse: {
  16539. copyLink: true,
  16540. errorImg: '',
  16541. lazyLoad: false,
  16542. loadingImg: '',
  16543. pauseVideo: true,
  16544. previewImg: true,
  16545. setTitle: true,
  16546. showImgMenu: true
  16547. }
  16548. };
  16549. exports.default = _default;
  16550. /***/ }),
  16551. /* 122 */
  16552. /*!*********************************************************************************!*\
  16553. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/picker.js ***!
  16554. \*********************************************************************************/
  16555. /*! no static exports found */
  16556. /***/ (function(module, exports, __webpack_require__) {
  16557. "use strict";
  16558. Object.defineProperty(exports, "__esModule", {
  16559. value: true
  16560. });
  16561. exports.default = void 0;
  16562. /*
  16563. * @Author : LQ
  16564. * @Description :
  16565. * @version : 1.0
  16566. * @Date : 2021-08-20 16:44:21
  16567. * @LastAuthor : LQ
  16568. * @lastTime : 2021-08-20 17:18:20
  16569. * @FilePath : /u-view2.0/uview-ui/libs/config/props/picker.js
  16570. */
  16571. var _default = {
  16572. // picker
  16573. picker: {
  16574. show: false,
  16575. showToolbar: true,
  16576. title: '',
  16577. columns: function columns() {
  16578. return [];
  16579. },
  16580. loading: false,
  16581. itemHeight: 44,
  16582. cancelText: '取消',
  16583. confirmText: '确定',
  16584. cancelColor: '#909193',
  16585. confirmColor: '#3c9cff',
  16586. visibleItemCount: 5,
  16587. keyName: 'text',
  16588. closeOnClickOverlay: false,
  16589. defaultIndex: function defaultIndex() {
  16590. return [];
  16591. },
  16592. immediateChange: false
  16593. }
  16594. };
  16595. exports.default = _default;
  16596. /***/ }),
  16597. /* 123 */
  16598. /*!********************************************************************************!*\
  16599. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/popup.js ***!
  16600. \********************************************************************************/
  16601. /*! no static exports found */
  16602. /***/ (function(module, exports, __webpack_require__) {
  16603. "use strict";
  16604. Object.defineProperty(exports, "__esModule", {
  16605. value: true
  16606. });
  16607. exports.default = void 0;
  16608. /*
  16609. * @Author : LQ
  16610. * @Description :
  16611. * @version : 1.0
  16612. * @Date : 2021-08-20 16:44:21
  16613. * @LastAuthor : LQ
  16614. * @lastTime : 2021-08-20 17:06:33
  16615. * @FilePath : /u-view2.0/uview-ui/libs/config/props/popup.js
  16616. */
  16617. var _default = {
  16618. // popup组件
  16619. popup: {
  16620. show: false,
  16621. overlay: true,
  16622. mode: 'bottom',
  16623. duration: 300,
  16624. closeable: false,
  16625. overlayStyle: function overlayStyle() {},
  16626. closeOnClickOverlay: true,
  16627. zIndex: 10075,
  16628. safeAreaInsetBottom: true,
  16629. safeAreaInsetTop: false,
  16630. closeIconPos: 'top-right',
  16631. round: 0,
  16632. zoom: true,
  16633. bgColor: '',
  16634. overlayOpacity: 0.5
  16635. }
  16636. };
  16637. exports.default = _default;
  16638. /***/ }),
  16639. /* 124 */
  16640. /*!********************************************************************************!*\
  16641. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/radio.js ***!
  16642. \********************************************************************************/
  16643. /*! no static exports found */
  16644. /***/ (function(module, exports, __webpack_require__) {
  16645. "use strict";
  16646. Object.defineProperty(exports, "__esModule", {
  16647. value: true
  16648. });
  16649. exports.default = void 0;
  16650. /*
  16651. * @Author : LQ
  16652. * @Description :
  16653. * @version : 1.0
  16654. * @Date : 2021-08-20 16:44:21
  16655. * @LastAuthor : LQ
  16656. * @lastTime : 2021-08-20 17:02:34
  16657. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radio.js
  16658. */
  16659. var _default = {
  16660. // radio组件
  16661. radio: {
  16662. name: '',
  16663. shape: '',
  16664. disabled: '',
  16665. labelDisabled: '',
  16666. activeColor: '',
  16667. inactiveColor: '',
  16668. iconSize: '',
  16669. labelSize: '',
  16670. label: '',
  16671. labelColor: '',
  16672. size: '',
  16673. iconColor: '',
  16674. placement: ''
  16675. }
  16676. };
  16677. exports.default = _default;
  16678. /***/ }),
  16679. /* 125 */
  16680. /*!*************************************************************************************!*\
  16681. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/radioGroup.js ***!
  16682. \*************************************************************************************/
  16683. /*! no static exports found */
  16684. /***/ (function(module, exports, __webpack_require__) {
  16685. "use strict";
  16686. Object.defineProperty(exports, "__esModule", {
  16687. value: true
  16688. });
  16689. exports.default = void 0;
  16690. /*
  16691. * @Author : LQ
  16692. * @Description :
  16693. * @version : 1.0
  16694. * @Date : 2021-08-20 16:44:21
  16695. * @LastAuthor : LQ
  16696. * @lastTime : 2021-08-20 17:03:12
  16697. * @FilePath : /u-view2.0/uview-ui/libs/config/props/radioGroup.js
  16698. */
  16699. var _default = {
  16700. // radio-group组件
  16701. radioGroup: {
  16702. value: '',
  16703. disabled: false,
  16704. shape: 'circle',
  16705. activeColor: '#2979ff',
  16706. inactiveColor: '#c8c9cc',
  16707. name: '',
  16708. size: 18,
  16709. placement: 'row',
  16710. label: '',
  16711. labelColor: '#303133',
  16712. labelSize: 14,
  16713. labelDisabled: false,
  16714. iconColor: '#ffffff',
  16715. iconSize: 12,
  16716. borderBottom: false,
  16717. iconPlacement: 'left'
  16718. }
  16719. };
  16720. exports.default = _default;
  16721. /***/ }),
  16722. /* 126 */
  16723. /*!*******************************************************************************!*\
  16724. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/rate.js ***!
  16725. \*******************************************************************************/
  16726. /*! no static exports found */
  16727. /***/ (function(module, exports, __webpack_require__) {
  16728. "use strict";
  16729. Object.defineProperty(exports, "__esModule", {
  16730. value: true
  16731. });
  16732. exports.default = void 0;
  16733. /*
  16734. * @Author : LQ
  16735. * @Description :
  16736. * @version : 1.0
  16737. * @Date : 2021-08-20 16:44:21
  16738. * @LastAuthor : LQ
  16739. * @lastTime : 2021-08-20 17:05:09
  16740. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
  16741. */
  16742. var _default = {
  16743. // rate组件
  16744. rate: {
  16745. value: 1,
  16746. count: 5,
  16747. disabled: false,
  16748. size: 18,
  16749. inactiveColor: '#b2b2b2',
  16750. activeColor: '#FA3534',
  16751. gutter: 4,
  16752. minCount: 1,
  16753. allowHalf: false,
  16754. activeIcon: 'star-fill',
  16755. inactiveIcon: 'star',
  16756. touchable: true
  16757. }
  16758. };
  16759. exports.default = _default;
  16760. /***/ }),
  16761. /* 127 */
  16762. /*!***********************************************************************************!*\
  16763. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/readMore.js ***!
  16764. \***********************************************************************************/
  16765. /*! no static exports found */
  16766. /***/ (function(module, exports, __webpack_require__) {
  16767. "use strict";
  16768. Object.defineProperty(exports, "__esModule", {
  16769. value: true
  16770. });
  16771. exports.default = void 0;
  16772. /*
  16773. * @Author : LQ
  16774. * @Description :
  16775. * @version : 1.0
  16776. * @Date : 2021-08-20 16:44:21
  16777. * @LastAuthor : LQ
  16778. * @lastTime : 2021-08-20 17:18:41
  16779. * @FilePath : /u-view2.0/uview-ui/libs/config/props/readMore.js
  16780. */
  16781. var _default = {
  16782. // readMore
  16783. readMore: {
  16784. showHeight: 400,
  16785. toggle: false,
  16786. closeText: '展开阅读全文',
  16787. openText: '收起',
  16788. color: '#2979ff',
  16789. fontSize: 14,
  16790. textIndent: '2em',
  16791. name: ''
  16792. }
  16793. };
  16794. exports.default = _default;
  16795. /***/ }),
  16796. /* 128 */
  16797. /*!******************************************************************************!*\
  16798. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/row.js ***!
  16799. \******************************************************************************/
  16800. /*! no static exports found */
  16801. /***/ (function(module, exports, __webpack_require__) {
  16802. "use strict";
  16803. Object.defineProperty(exports, "__esModule", {
  16804. value: true
  16805. });
  16806. exports.default = void 0;
  16807. /*
  16808. * @Author : LQ
  16809. * @Description :
  16810. * @version : 1.0
  16811. * @Date : 2021-08-20 16:44:21
  16812. * @LastAuthor : LQ
  16813. * @lastTime : 2021-08-20 17:18:58
  16814. * @FilePath : /u-view2.0/uview-ui/libs/config/props/row.js
  16815. */
  16816. var _default = {
  16817. // row
  16818. row: {
  16819. gutter: 0,
  16820. justify: 'start',
  16821. align: 'center'
  16822. }
  16823. };
  16824. exports.default = _default;
  16825. /***/ }),
  16826. /* 129 */
  16827. /*!************************************************************************************!*\
  16828. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/rowNotice.js ***!
  16829. \************************************************************************************/
  16830. /*! no static exports found */
  16831. /***/ (function(module, exports, __webpack_require__) {
  16832. "use strict";
  16833. Object.defineProperty(exports, "__esModule", {
  16834. value: true
  16835. });
  16836. exports.default = void 0;
  16837. /*
  16838. * @Author : LQ
  16839. * @Description :
  16840. * @version : 1.0
  16841. * @Date : 2021-08-20 16:44:21
  16842. * @LastAuthor : LQ
  16843. * @lastTime : 2021-08-20 17:19:13
  16844. * @FilePath : /u-view2.0/uview-ui/libs/config/props/rowNotice.js
  16845. */
  16846. var _default = {
  16847. // rowNotice
  16848. rowNotice: {
  16849. text: '',
  16850. icon: 'volume',
  16851. mode: '',
  16852. color: '#f9ae3d',
  16853. bgColor: '#fdf6ec',
  16854. fontSize: 14,
  16855. speed: 80
  16856. }
  16857. };
  16858. exports.default = _default;
  16859. /***/ }),
  16860. /* 130 */
  16861. /*!*************************************************************************************!*\
  16862. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/scrollList.js ***!
  16863. \*************************************************************************************/
  16864. /*! no static exports found */
  16865. /***/ (function(module, exports, __webpack_require__) {
  16866. "use strict";
  16867. Object.defineProperty(exports, "__esModule", {
  16868. value: true
  16869. });
  16870. exports.default = void 0;
  16871. /*
  16872. * @Author : LQ
  16873. * @Description :
  16874. * @version : 1.0
  16875. * @Date : 2021-08-20 16:44:21
  16876. * @LastAuthor : LQ
  16877. * @lastTime : 2021-08-20 17:19:28
  16878. * @FilePath : /u-view2.0/uview-ui/libs/config/props/scrollList.js
  16879. */
  16880. var _default = {
  16881. // scrollList
  16882. scrollList: {
  16883. indicatorWidth: 50,
  16884. indicatorBarWidth: 20,
  16885. indicator: true,
  16886. indicatorColor: '#f2f2f2',
  16887. indicatorActiveColor: '#3c9cff',
  16888. indicatorStyle: ''
  16889. }
  16890. };
  16891. exports.default = _default;
  16892. /***/ }),
  16893. /* 131 */
  16894. /*!*********************************************************************************!*\
  16895. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/search.js ***!
  16896. \*********************************************************************************/
  16897. /*! no static exports found */
  16898. /***/ (function(module, exports, __webpack_require__) {
  16899. "use strict";
  16900. Object.defineProperty(exports, "__esModule", {
  16901. value: true
  16902. });
  16903. exports.default = void 0;
  16904. /*
  16905. * @Author : LQ
  16906. * @Description :
  16907. * @version : 1.0
  16908. * @Date : 2021-08-20 16:44:21
  16909. * @LastAuthor : LQ
  16910. * @lastTime : 2021-08-20 17:19:45
  16911. * @FilePath : /u-view2.0/uview-ui/libs/config/props/search.js
  16912. */
  16913. var _default = {
  16914. // search
  16915. search: {
  16916. shape: 'round',
  16917. bgColor: '#f2f2f2',
  16918. placeholder: '请输入关键字',
  16919. clearabled: true,
  16920. focus: false,
  16921. showAction: true,
  16922. actionStyle: function actionStyle() {
  16923. return {};
  16924. },
  16925. actionText: '搜索',
  16926. inputAlign: 'left',
  16927. inputStyle: function inputStyle() {
  16928. return {};
  16929. },
  16930. disabled: false,
  16931. borderColor: 'transparent',
  16932. searchIconColor: '#909399',
  16933. searchIconSize: 22,
  16934. color: '#606266',
  16935. placeholderColor: '#909399',
  16936. searchIcon: 'search',
  16937. margin: '0',
  16938. animation: false,
  16939. value: '',
  16940. maxlength: '-1',
  16941. height: 32,
  16942. label: null
  16943. }
  16944. };
  16945. exports.default = _default;
  16946. /***/ }),
  16947. /* 132 */
  16948. /*!**********************************************************************************!*\
  16949. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/section.js ***!
  16950. \**********************************************************************************/
  16951. /*! no static exports found */
  16952. /***/ (function(module, exports, __webpack_require__) {
  16953. "use strict";
  16954. Object.defineProperty(exports, "__esModule", {
  16955. value: true
  16956. });
  16957. exports.default = void 0;
  16958. /*
  16959. * @Author : LQ
  16960. * @Description :
  16961. * @version : 1.0
  16962. * @Date : 2021-08-20 16:44:21
  16963. * @LastAuthor : LQ
  16964. * @lastTime : 2021-08-20 17:07:33
  16965. * @FilePath : /u-view2.0/uview-ui/libs/config/props/section.js
  16966. */
  16967. var _default = {
  16968. // u-section组件
  16969. section: {
  16970. title: '',
  16971. subTitle: '更多',
  16972. right: true,
  16973. fontSize: 15,
  16974. bold: true,
  16975. color: '#303133',
  16976. subColor: '#909399',
  16977. showLine: true,
  16978. lineColor: '',
  16979. arrow: true
  16980. }
  16981. };
  16982. exports.default = _default;
  16983. /***/ }),
  16984. /* 133 */
  16985. /*!***********************************************************************************!*\
  16986. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/skeleton.js ***!
  16987. \***********************************************************************************/
  16988. /*! no static exports found */
  16989. /***/ (function(module, exports, __webpack_require__) {
  16990. "use strict";
  16991. Object.defineProperty(exports, "__esModule", {
  16992. value: true
  16993. });
  16994. exports.default = void 0;
  16995. /*
  16996. * @Author : LQ
  16997. * @Description :
  16998. * @version : 1.0
  16999. * @Date : 2021-08-20 16:44:21
  17000. * @LastAuthor : LQ
  17001. * @lastTime : 2021-08-20 17:20:14
  17002. * @FilePath : /u-view2.0/uview-ui/libs/config/props/skeleton.js
  17003. */
  17004. var _default = {
  17005. // skeleton
  17006. skeleton: {
  17007. loading: true,
  17008. animate: true,
  17009. rows: 0,
  17010. rowsWidth: '100%',
  17011. rowsHeight: 18,
  17012. title: true,
  17013. titleWidth: '50%',
  17014. titleHeight: 18,
  17015. avatar: false,
  17016. avatarSize: 32,
  17017. avatarShape: 'circle'
  17018. }
  17019. };
  17020. exports.default = _default;
  17021. /***/ }),
  17022. /* 134 */
  17023. /*!*********************************************************************************!*\
  17024. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/slider.js ***!
  17025. \*********************************************************************************/
  17026. /*! no static exports found */
  17027. /***/ (function(module, exports, __webpack_require__) {
  17028. "use strict";
  17029. Object.defineProperty(exports, "__esModule", {
  17030. value: true
  17031. });
  17032. exports.default = void 0;
  17033. /*
  17034. * @Author : LQ
  17035. * @Description :
  17036. * @version : 1.0
  17037. * @Date : 2021-08-20 16:44:21
  17038. * @LastAuthor : LQ
  17039. * @lastTime : 2021-08-20 17:08:25
  17040. * @FilePath : /u-view2.0/uview-ui/libs/config/props/slider.js
  17041. */
  17042. var _default = {
  17043. // slider组件
  17044. slider: {
  17045. value: 0,
  17046. blockSize: 18,
  17047. min: 0,
  17048. max: 100,
  17049. step: 1,
  17050. activeColor: '#2979ff',
  17051. inactiveColor: '#c0c4cc',
  17052. blockColor: '#ffffff',
  17053. showValue: false,
  17054. disabled: false,
  17055. blockStyle: function blockStyle() {}
  17056. }
  17057. };
  17058. exports.default = _default;
  17059. /***/ }),
  17060. /* 135 */
  17061. /*!************************************************************************************!*\
  17062. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/statusBar.js ***!
  17063. \************************************************************************************/
  17064. /*! no static exports found */
  17065. /***/ (function(module, exports, __webpack_require__) {
  17066. "use strict";
  17067. Object.defineProperty(exports, "__esModule", {
  17068. value: true
  17069. });
  17070. exports.default = void 0;
  17071. /*
  17072. * @Author : LQ
  17073. * @Description :
  17074. * @version : 1.0
  17075. * @Date : 2021-08-20 16:44:21
  17076. * @LastAuthor : LQ
  17077. * @lastTime : 2021-08-20 17:20:39
  17078. * @FilePath : /u-view2.0/uview-ui/libs/config/props/statusBar.js
  17079. */
  17080. var _default = {
  17081. // statusBar
  17082. statusBar: {
  17083. bgColor: 'transparent'
  17084. }
  17085. };
  17086. exports.default = _default;
  17087. /***/ }),
  17088. /* 136 */
  17089. /*!********************************************************************************!*\
  17090. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/steps.js ***!
  17091. \********************************************************************************/
  17092. /*! no static exports found */
  17093. /***/ (function(module, exports, __webpack_require__) {
  17094. "use strict";
  17095. Object.defineProperty(exports, "__esModule", {
  17096. value: true
  17097. });
  17098. exports.default = void 0;
  17099. /*
  17100. * @Author : LQ
  17101. * @Description :
  17102. * @version : 1.0
  17103. * @Date : 2021-08-20 16:44:21
  17104. * @LastAuthor : LQ
  17105. * @lastTime : 2021-08-20 17:12:37
  17106. * @FilePath : /u-view2.0/uview-ui/libs/config/props/steps.js
  17107. */
  17108. var _default = {
  17109. // steps组件
  17110. steps: {
  17111. direction: 'row',
  17112. current: 0,
  17113. activeColor: '#3c9cff',
  17114. inactiveColor: '#969799',
  17115. activeIcon: '',
  17116. inactiveIcon: '',
  17117. dot: false
  17118. }
  17119. };
  17120. exports.default = _default;
  17121. /***/ }),
  17122. /* 137 */
  17123. /*!************************************************************************************!*\
  17124. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/stepsItem.js ***!
  17125. \************************************************************************************/
  17126. /*! no static exports found */
  17127. /***/ (function(module, exports, __webpack_require__) {
  17128. "use strict";
  17129. Object.defineProperty(exports, "__esModule", {
  17130. value: true
  17131. });
  17132. exports.default = void 0;
  17133. /*
  17134. * @Author : LQ
  17135. * @Description :
  17136. * @version : 1.0
  17137. * @Date : 2021-08-20 16:44:21
  17138. * @LastAuthor : LQ
  17139. * @lastTime : 2021-08-20 17:12:55
  17140. * @FilePath : /u-view2.0/uview-ui/libs/config/props/stepsItem.js
  17141. */
  17142. var _default = {
  17143. // steps-item组件
  17144. stepsItem: {
  17145. title: '',
  17146. desc: '',
  17147. iconSize: 17,
  17148. error: false
  17149. }
  17150. };
  17151. exports.default = _default;
  17152. /***/ }),
  17153. /* 138 */
  17154. /*!*********************************************************************************!*\
  17155. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/sticky.js ***!
  17156. \*********************************************************************************/
  17157. /*! no static exports found */
  17158. /***/ (function(module, exports, __webpack_require__) {
  17159. "use strict";
  17160. Object.defineProperty(exports, "__esModule", {
  17161. value: true
  17162. });
  17163. exports.default = void 0;
  17164. /*
  17165. * @Author : LQ
  17166. * @Description :
  17167. * @version : 1.0
  17168. * @Date : 2021-08-20 16:44:21
  17169. * @LastAuthor : LQ
  17170. * @lastTime : 2021-08-20 17:01:30
  17171. * @FilePath : /u-view2.0/uview-ui/libs/config/props/sticky.js
  17172. */
  17173. var _default = {
  17174. // sticky组件
  17175. sticky: {
  17176. offsetTop: 0,
  17177. customNavHeight: 0,
  17178. disabled: false,
  17179. bgColor: 'transparent',
  17180. zIndex: '',
  17181. index: ''
  17182. }
  17183. };
  17184. exports.default = _default;
  17185. /***/ }),
  17186. /* 139 */
  17187. /*!*************************************************************************************!*\
  17188. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/subsection.js ***!
  17189. \*************************************************************************************/
  17190. /*! no static exports found */
  17191. /***/ (function(module, exports, __webpack_require__) {
  17192. "use strict";
  17193. Object.defineProperty(exports, "__esModule", {
  17194. value: true
  17195. });
  17196. exports.default = void 0;
  17197. /*
  17198. * @Author : LQ
  17199. * @Description :
  17200. * @version : 1.0
  17201. * @Date : 2021-08-20 16:44:21
  17202. * @LastAuthor : LQ
  17203. * @lastTime : 2021-08-20 17:12:20
  17204. * @FilePath : /u-view2.0/uview-ui/libs/config/props/subsection.js
  17205. */
  17206. var _default = {
  17207. // subsection组件
  17208. subsection: {
  17209. list: [],
  17210. current: 0,
  17211. activeColor: '#3c9cff',
  17212. inactiveColor: '#303133',
  17213. mode: 'button',
  17214. fontSize: 12,
  17215. bold: true,
  17216. bgColor: '#eeeeef',
  17217. keyName: 'name'
  17218. }
  17219. };
  17220. exports.default = _default;
  17221. /***/ }),
  17222. /* 140 */
  17223. /*!**************************************************************************************!*\
  17224. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/swipeAction.js ***!
  17225. \**************************************************************************************/
  17226. /*! no static exports found */
  17227. /***/ (function(module, exports, __webpack_require__) {
  17228. "use strict";
  17229. Object.defineProperty(exports, "__esModule", {
  17230. value: true
  17231. });
  17232. exports.default = void 0;
  17233. /*
  17234. * @Author : LQ
  17235. * @Description :
  17236. * @version : 1.0
  17237. * @Date : 2021-08-20 16:44:21
  17238. * @LastAuthor : LQ
  17239. * @lastTime : 2021-08-20 17:00:42
  17240. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeAction.js
  17241. */
  17242. var _default = {
  17243. // swipe-action组件
  17244. swipeAction: {
  17245. autoClose: true
  17246. }
  17247. };
  17248. exports.default = _default;
  17249. /***/ }),
  17250. /* 141 */
  17251. /*!******************************************************************************************!*\
  17252. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/swipeActionItem.js ***!
  17253. \******************************************************************************************/
  17254. /*! no static exports found */
  17255. /***/ (function(module, exports, __webpack_require__) {
  17256. "use strict";
  17257. Object.defineProperty(exports, "__esModule", {
  17258. value: true
  17259. });
  17260. exports.default = void 0;
  17261. /*
  17262. * @Author : LQ
  17263. * @Description :
  17264. * @version : 1.0
  17265. * @Date : 2021-08-20 16:44:21
  17266. * @LastAuthor : LQ
  17267. * @lastTime : 2021-08-20 17:01:13
  17268. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swipeActionItem.js
  17269. */
  17270. var _default = {
  17271. // swipeActionItem 组件
  17272. swipeActionItem: {
  17273. show: false,
  17274. name: '',
  17275. disabled: false,
  17276. threshold: 20,
  17277. autoClose: true,
  17278. options: [],
  17279. duration: 300
  17280. }
  17281. };
  17282. exports.default = _default;
  17283. /***/ }),
  17284. /* 142 */
  17285. /*!*********************************************************************************!*\
  17286. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/swiper.js ***!
  17287. \*********************************************************************************/
  17288. /*! no static exports found */
  17289. /***/ (function(module, exports, __webpack_require__) {
  17290. "use strict";
  17291. Object.defineProperty(exports, "__esModule", {
  17292. value: true
  17293. });
  17294. exports.default = void 0;
  17295. /*
  17296. * @Author : LQ
  17297. * @Description :
  17298. * @version : 1.0
  17299. * @Date : 2021-08-20 16:44:21
  17300. * @LastAuthor : LQ
  17301. * @lastTime : 2021-08-20 17:21:38
  17302. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiper.js
  17303. */
  17304. var _default = {
  17305. // swiper 组件
  17306. swiper: {
  17307. list: function list() {
  17308. return [];
  17309. },
  17310. indicator: false,
  17311. indicatorActiveColor: '#FFFFFF',
  17312. indicatorInactiveColor: 'rgba(255, 255, 255, 0.35)',
  17313. indicatorStyle: '',
  17314. indicatorMode: 'line',
  17315. autoplay: true,
  17316. current: 0,
  17317. currentItemId: '',
  17318. interval: 3000,
  17319. duration: 300,
  17320. circular: false,
  17321. previousMargin: 0,
  17322. nextMargin: 0,
  17323. acceleration: false,
  17324. displayMultipleItems: 1,
  17325. easingFunction: 'default',
  17326. keyName: 'url',
  17327. imgMode: 'aspectFill',
  17328. height: 130,
  17329. bgColor: '#f3f4f6',
  17330. radius: 4,
  17331. loading: false,
  17332. showTitle: false
  17333. }
  17334. };
  17335. exports.default = _default;
  17336. /***/ }),
  17337. /* 143 */
  17338. /*!*******************************************************************************************!*\
  17339. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/swipterIndicator.js ***!
  17340. \*******************************************************************************************/
  17341. /*! no static exports found */
  17342. /***/ (function(module, exports, __webpack_require__) {
  17343. "use strict";
  17344. Object.defineProperty(exports, "__esModule", {
  17345. value: true
  17346. });
  17347. exports.default = void 0;
  17348. /*
  17349. * @Author : LQ
  17350. * @Description :
  17351. * @version : 1.0
  17352. * @Date : 2021-08-20 16:44:21
  17353. * @LastAuthor : LQ
  17354. * @lastTime : 2021-08-20 17:22:07
  17355. * @FilePath : /u-view2.0/uview-ui/libs/config/props/swiperIndicator.js
  17356. */
  17357. var _default = {
  17358. // swiperIndicator 组件
  17359. swiperIndicator: {
  17360. length: 0,
  17361. current: 0,
  17362. indicatorActiveColor: '',
  17363. indicatorInactiveColor: '',
  17364. indicatorMode: 'line'
  17365. }
  17366. };
  17367. exports.default = _default;
  17368. /***/ }),
  17369. /* 144 */
  17370. /*!*********************************************************************************!*\
  17371. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/switch.js ***!
  17372. \*********************************************************************************/
  17373. /*! no static exports found */
  17374. /***/ (function(module, exports, __webpack_require__) {
  17375. "use strict";
  17376. Object.defineProperty(exports, "__esModule", {
  17377. value: true
  17378. });
  17379. exports.default = void 0;
  17380. /*
  17381. * @Author : LQ
  17382. * @Description :
  17383. * @version : 1.0
  17384. * @Date : 2021-08-20 16:44:21
  17385. * @LastAuthor : LQ
  17386. * @lastTime : 2021-08-20 17:22:24
  17387. * @FilePath : /u-view2.0/uview-ui/libs/config/props/switch.js
  17388. */
  17389. var _default = {
  17390. // switch
  17391. switch: {
  17392. loading: false,
  17393. disabled: false,
  17394. size: 25,
  17395. activeColor: '#2979ff',
  17396. inactiveColor: '#ffffff',
  17397. value: false,
  17398. activeValue: true,
  17399. inactiveValue: false,
  17400. asyncChange: false,
  17401. space: 0
  17402. }
  17403. };
  17404. exports.default = _default;
  17405. /***/ }),
  17406. /* 145 */
  17407. /*!*********************************************************************************!*\
  17408. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/tabbar.js ***!
  17409. \*********************************************************************************/
  17410. /*! no static exports found */
  17411. /***/ (function(module, exports, __webpack_require__) {
  17412. "use strict";
  17413. Object.defineProperty(exports, "__esModule", {
  17414. value: true
  17415. });
  17416. exports.default = void 0;
  17417. /*
  17418. * @Author : LQ
  17419. * @Description :
  17420. * @version : 1.0
  17421. * @Date : 2021-08-20 16:44:21
  17422. * @LastAuthor : LQ
  17423. * @lastTime : 2021-08-20 17:22:40
  17424. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbar.js
  17425. */
  17426. var _default = {
  17427. // tabbar
  17428. tabbar: {
  17429. value: null,
  17430. safeAreaInsetBottom: true,
  17431. border: true,
  17432. zIndex: 1,
  17433. activeColor: '#1989fa',
  17434. inactiveColor: '#7d7e80',
  17435. fixed: true,
  17436. placeholder: true
  17437. }
  17438. };
  17439. exports.default = _default;
  17440. /***/ }),
  17441. /* 146 */
  17442. /*!*************************************************************************************!*\
  17443. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/tabbarItem.js ***!
  17444. \*************************************************************************************/
  17445. /*! no static exports found */
  17446. /***/ (function(module, exports, __webpack_require__) {
  17447. "use strict";
  17448. Object.defineProperty(exports, "__esModule", {
  17449. value: true
  17450. });
  17451. exports.default = void 0;
  17452. /*
  17453. * @Author : LQ
  17454. * @Description :
  17455. * @version : 1.0
  17456. * @Date : 2021-08-20 16:44:21
  17457. * @LastAuthor : LQ
  17458. * @lastTime : 2021-08-20 17:22:55
  17459. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabbarItem.js
  17460. */
  17461. var _default = {
  17462. //
  17463. tabbarItem: {
  17464. name: null,
  17465. icon: '',
  17466. badge: null,
  17467. dot: false,
  17468. text: '',
  17469. badgeStyle: 'top: 6px;right:2px;'
  17470. }
  17471. };
  17472. exports.default = _default;
  17473. /***/ }),
  17474. /* 147 */
  17475. /*!*******************************************************************************!*\
  17476. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/tabs.js ***!
  17477. \*******************************************************************************/
  17478. /*! no static exports found */
  17479. /***/ (function(module, exports, __webpack_require__) {
  17480. "use strict";
  17481. Object.defineProperty(exports, "__esModule", {
  17482. value: true
  17483. });
  17484. exports.default = void 0;
  17485. /*
  17486. * @Author : LQ
  17487. * @Description :
  17488. * @version : 1.0
  17489. * @Date : 2021-08-20 16:44:21
  17490. * @LastAuthor : LQ
  17491. * @lastTime : 2021-08-20 17:23:14
  17492. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tabs.js
  17493. */
  17494. var _default = {
  17495. //
  17496. tabs: {
  17497. duration: 300,
  17498. list: function list() {
  17499. return [];
  17500. },
  17501. lineColor: '#3c9cff',
  17502. activeStyle: function activeStyle() {
  17503. return {
  17504. color: '#303133'
  17505. };
  17506. },
  17507. inactiveStyle: function inactiveStyle() {
  17508. return {
  17509. color: '#606266'
  17510. };
  17511. },
  17512. lineWidth: 20,
  17513. lineHeight: 3,
  17514. lineBgSize: 'cover',
  17515. itemStyle: function itemStyle() {
  17516. return {
  17517. height: '44px'
  17518. };
  17519. },
  17520. scrollable: true,
  17521. current: 0,
  17522. keyName: 'name'
  17523. }
  17524. };
  17525. exports.default = _default;
  17526. /***/ }),
  17527. /* 148 */
  17528. /*!******************************************************************************!*\
  17529. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/tag.js ***!
  17530. \******************************************************************************/
  17531. /*! no static exports found */
  17532. /***/ (function(module, exports, __webpack_require__) {
  17533. "use strict";
  17534. Object.defineProperty(exports, "__esModule", {
  17535. value: true
  17536. });
  17537. exports.default = void 0;
  17538. /*
  17539. * @Author : LQ
  17540. * @Description :
  17541. * @version : 1.0
  17542. * @Date : 2021-08-20 16:44:21
  17543. * @LastAuthor : LQ
  17544. * @lastTime : 2021-08-20 17:23:37
  17545. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tag.js
  17546. */
  17547. var _default = {
  17548. // tag 组件
  17549. tag: {
  17550. type: 'primary',
  17551. disabled: false,
  17552. size: 'medium',
  17553. shape: 'square',
  17554. text: '',
  17555. bgColor: '',
  17556. color: '',
  17557. borderColor: '',
  17558. closeColor: '#C6C7CB',
  17559. name: '',
  17560. plainFill: false,
  17561. plain: false,
  17562. closable: false,
  17563. show: true,
  17564. icon: ''
  17565. }
  17566. };
  17567. exports.default = _default;
  17568. /***/ }),
  17569. /* 149 */
  17570. /*!*******************************************************************************!*\
  17571. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/text.js ***!
  17572. \*******************************************************************************/
  17573. /*! no static exports found */
  17574. /***/ (function(module, exports, __webpack_require__) {
  17575. "use strict";
  17576. Object.defineProperty(exports, "__esModule", {
  17577. value: true
  17578. });
  17579. exports.default = void 0;
  17580. /*
  17581. * @Author : LQ
  17582. * @Description :
  17583. * @version : 1.0
  17584. * @Date : 2021-08-20 16:44:21
  17585. * @LastAuthor : LQ
  17586. * @lastTime : 2021-08-20 17:23:58
  17587. * @FilePath : /u-view2.0/uview-ui/libs/config/props/text.js
  17588. */
  17589. var _default = {
  17590. // text 组件
  17591. text: {
  17592. type: '',
  17593. show: true,
  17594. text: '',
  17595. prefixIcon: '',
  17596. suffixIcon: '',
  17597. mode: '',
  17598. href: '',
  17599. format: '',
  17600. call: false,
  17601. openType: '',
  17602. bold: false,
  17603. block: false,
  17604. lines: '',
  17605. color: '#303133',
  17606. size: 15,
  17607. iconStyle: function iconStyle() {
  17608. return {
  17609. fontSize: '15px'
  17610. };
  17611. },
  17612. decoration: 'none',
  17613. margin: 0,
  17614. lineHeight: '',
  17615. align: 'left',
  17616. wordWrap: 'normal'
  17617. }
  17618. };
  17619. exports.default = _default;
  17620. /***/ }),
  17621. /* 150 */
  17622. /*!***********************************************************************************!*\
  17623. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/textarea.js ***!
  17624. \***********************************************************************************/
  17625. /*! no static exports found */
  17626. /***/ (function(module, exports, __webpack_require__) {
  17627. "use strict";
  17628. Object.defineProperty(exports, "__esModule", {
  17629. value: true
  17630. });
  17631. exports.default = void 0;
  17632. /*
  17633. * @Author : LQ
  17634. * @Description :
  17635. * @version : 1.0
  17636. * @Date : 2021-08-20 16:44:21
  17637. * @LastAuthor : LQ
  17638. * @lastTime : 2021-08-20 17:24:32
  17639. * @FilePath : /u-view2.0/uview-ui/libs/config/props/textarea.js
  17640. */
  17641. var _default = {
  17642. // textarea 组件
  17643. textarea: {
  17644. value: '',
  17645. placeholder: '',
  17646. placeholderClass: 'textarea-placeholder',
  17647. placeholderStyle: 'color: #c0c4cc',
  17648. height: 70,
  17649. confirmType: 'done',
  17650. disabled: false,
  17651. count: false,
  17652. focus: false,
  17653. autoHeight: false,
  17654. fixed: false,
  17655. cursorSpacing: 0,
  17656. cursor: '',
  17657. showConfirmBar: true,
  17658. selectionStart: -1,
  17659. selectionEnd: -1,
  17660. adjustPosition: true,
  17661. disableDefaultPadding: false,
  17662. holdKeyboard: false,
  17663. maxlength: 140,
  17664. border: 'surround',
  17665. formatter: null
  17666. }
  17667. };
  17668. exports.default = _default;
  17669. /***/ }),
  17670. /* 151 */
  17671. /*!********************************************************************************!*\
  17672. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/toast.js ***!
  17673. \********************************************************************************/
  17674. /*! no static exports found */
  17675. /***/ (function(module, exports, __webpack_require__) {
  17676. "use strict";
  17677. Object.defineProperty(exports, "__esModule", {
  17678. value: true
  17679. });
  17680. exports.default = void 0;
  17681. /*
  17682. * @Author : LQ
  17683. * @Description :
  17684. * @version : 1.0
  17685. * @Date : 2021-08-20 16:44:21
  17686. * @LastAuthor : LQ
  17687. * @lastTime : 2021-08-20 17:07:07
  17688. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toast.js
  17689. */
  17690. var _default = {
  17691. // toast组件
  17692. toast: {
  17693. zIndex: 10090,
  17694. loading: false,
  17695. text: '',
  17696. icon: '',
  17697. type: '',
  17698. loadingMode: '',
  17699. show: '',
  17700. overlay: false,
  17701. position: 'center',
  17702. params: function params() {},
  17703. duration: 2000,
  17704. isTab: false,
  17705. url: '',
  17706. callback: null,
  17707. back: false
  17708. }
  17709. };
  17710. exports.default = _default;
  17711. /***/ }),
  17712. /* 152 */
  17713. /*!**********************************************************************************!*\
  17714. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/toolbar.js ***!
  17715. \**********************************************************************************/
  17716. /*! no static exports found */
  17717. /***/ (function(module, exports, __webpack_require__) {
  17718. "use strict";
  17719. Object.defineProperty(exports, "__esModule", {
  17720. value: true
  17721. });
  17722. exports.default = void 0;
  17723. /*
  17724. * @Author : LQ
  17725. * @Description :
  17726. * @version : 1.0
  17727. * @Date : 2021-08-20 16:44:21
  17728. * @LastAuthor : LQ
  17729. * @lastTime : 2021-08-20 17:24:55
  17730. * @FilePath : /u-view2.0/uview-ui/libs/config/props/toolbar.js
  17731. */
  17732. var _default = {
  17733. // toolbar 组件
  17734. toolbar: {
  17735. show: true,
  17736. cancelText: '取消',
  17737. confirmText: '确认',
  17738. cancelColor: '#909193',
  17739. confirmColor: '#3c9cff',
  17740. title: ''
  17741. }
  17742. };
  17743. exports.default = _default;
  17744. /***/ }),
  17745. /* 153 */
  17746. /*!**********************************************************************************!*\
  17747. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/tooltip.js ***!
  17748. \**********************************************************************************/
  17749. /*! no static exports found */
  17750. /***/ (function(module, exports, __webpack_require__) {
  17751. "use strict";
  17752. Object.defineProperty(exports, "__esModule", {
  17753. value: true
  17754. });
  17755. exports.default = void 0;
  17756. /*
  17757. * @Author : LQ
  17758. * @Description :
  17759. * @version : 1.0
  17760. * @Date : 2021-08-20 16:44:21
  17761. * @LastAuthor : LQ
  17762. * @lastTime : 2021-08-20 17:25:14
  17763. * @FilePath : /u-view2.0/uview-ui/libs/config/props/tooltip.js
  17764. */
  17765. var _default = {
  17766. // tooltip 组件
  17767. tooltip: {
  17768. text: '',
  17769. copyText: '',
  17770. size: 14,
  17771. color: '#606266',
  17772. bgColor: 'transparent',
  17773. direction: 'top',
  17774. zIndex: 10071,
  17775. showCopy: true,
  17776. buttons: function buttons() {
  17777. return [];
  17778. },
  17779. overlay: true,
  17780. showToast: true
  17781. }
  17782. };
  17783. exports.default = _default;
  17784. /***/ }),
  17785. /* 154 */
  17786. /*!*************************************************************************************!*\
  17787. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/transition.js ***!
  17788. \*************************************************************************************/
  17789. /*! no static exports found */
  17790. /***/ (function(module, exports, __webpack_require__) {
  17791. "use strict";
  17792. Object.defineProperty(exports, "__esModule", {
  17793. value: true
  17794. });
  17795. exports.default = void 0;
  17796. /*
  17797. * @Author : LQ
  17798. * @Description :
  17799. * @version : 1.0
  17800. * @Date : 2021-08-20 16:44:21
  17801. * @LastAuthor : LQ
  17802. * @lastTime : 2021-08-20 16:59:00
  17803. * @FilePath : /u-view2.0/uview-ui/libs/config/props/transition.js
  17804. */
  17805. var _default = {
  17806. // transition动画组件的props
  17807. transition: {
  17808. show: false,
  17809. mode: 'fade',
  17810. duration: '300',
  17811. timingFunction: 'ease-out'
  17812. }
  17813. };
  17814. exports.default = _default;
  17815. /***/ }),
  17816. /* 155 */
  17817. /*!*********************************************************************************!*\
  17818. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/props/upload.js ***!
  17819. \*********************************************************************************/
  17820. /*! no static exports found */
  17821. /***/ (function(module, exports, __webpack_require__) {
  17822. "use strict";
  17823. Object.defineProperty(exports, "__esModule", {
  17824. value: true
  17825. });
  17826. exports.default = void 0;
  17827. /*
  17828. * @Author : LQ
  17829. * @Description :
  17830. * @version : 1.0
  17831. * @Date : 2021-08-20 16:44:21
  17832. * @LastAuthor : LQ
  17833. * @lastTime : 2021-08-20 17:09:50
  17834. * @FilePath : /u-view2.0/uview-ui/libs/config/props/upload.js
  17835. */
  17836. var _default = {
  17837. // upload组件
  17838. upload: {
  17839. accept: 'image',
  17840. capture: function capture() {
  17841. return ['album', 'camera'];
  17842. },
  17843. compressed: true,
  17844. camera: 'back',
  17845. maxDuration: 60,
  17846. uploadIcon: 'camera-fill',
  17847. uploadIconColor: '#D3D4D6',
  17848. useBeforeRead: false,
  17849. previewFullImage: true,
  17850. maxCount: 52,
  17851. disabled: false,
  17852. imageMode: 'aspectFill',
  17853. name: '',
  17854. sizeType: function sizeType() {
  17855. return ['original', 'compressed'];
  17856. },
  17857. multiple: false,
  17858. deletable: true,
  17859. maxSize: Number.MAX_VALUE,
  17860. fileList: function fileList() {
  17861. return [];
  17862. },
  17863. uploadText: '',
  17864. width: 80,
  17865. height: 80,
  17866. previewImage: true
  17867. }
  17868. };
  17869. exports.default = _default;
  17870. /***/ }),
  17871. /* 156 */
  17872. /*!***************************************************************************!*\
  17873. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/config/zIndex.js ***!
  17874. \***************************************************************************/
  17875. /*! no static exports found */
  17876. /***/ (function(module, exports, __webpack_require__) {
  17877. "use strict";
  17878. Object.defineProperty(exports, "__esModule", {
  17879. value: true
  17880. });
  17881. exports.default = void 0;
  17882. // uniapp在H5中各API的z-index值如下:
  17883. /**
  17884. * actionsheet: 999
  17885. * modal: 999
  17886. * navigate: 998
  17887. * tabbar: 998
  17888. * toast: 999
  17889. */
  17890. var _default = {
  17891. toast: 10090,
  17892. noNetwork: 10080,
  17893. // popup包含popup,actionsheet,keyboard,picker的值
  17894. popup: 10075,
  17895. mask: 10070,
  17896. navbar: 980,
  17897. topTips: 975,
  17898. sticky: 970,
  17899. indexListSticky: 965
  17900. };
  17901. exports.default = _default;
  17902. /***/ }),
  17903. /* 157 */
  17904. /*!*******************************************************************************!*\
  17905. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/function/platform.js ***!
  17906. \*******************************************************************************/
  17907. /*! no static exports found */
  17908. /***/ (function(module, exports, __webpack_require__) {
  17909. "use strict";
  17910. Object.defineProperty(exports, "__esModule", {
  17911. value: true
  17912. });
  17913. exports.default = void 0;
  17914. /**
  17915. * 注意:
  17916. * 此部分内容,在vue-cli模式下,需要在vue.config.js加入如下内容才有效:
  17917. * module.exports = {
  17918. * transpileDependencies: ['uview-v2']
  17919. * }
  17920. */
  17921. var platform = 'none';
  17922. platform = 'vue2';
  17923. platform = 'toutiao';
  17924. platform = 'mp';
  17925. var _default = platform;
  17926. exports.default = _default;
  17927. /***/ }),
  17928. /* 158 */,
  17929. /* 159 */,
  17930. /* 160 */,
  17931. /* 161 */,
  17932. /* 162 */,
  17933. /* 163 */,
  17934. /* 164 */
  17935. /*!***********************************************************!*\
  17936. !*** F:/HBuilderProjects/test/libs/qqmap-wx-jssdk.min.js ***!
  17937. \***********************************************************/
  17938. /*! no static exports found */
  17939. /***/ (function(module, exports, __webpack_require__) {
  17940. /* WEBPACK VAR INJECTION */(function(wx) {var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ 17);
  17941. var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ 18);
  17942. var ERROR_CONF = {
  17943. KEY_ERR: 311,
  17944. KEY_ERR_MSG: 'key格式错误',
  17945. PARAM_ERR: 310,
  17946. PARAM_ERR_MSG: '请求参数信息有误',
  17947. SYSTEM_ERR: 600,
  17948. SYSTEM_ERR_MSG: '系统错误',
  17949. WX_ERR_CODE: 1000,
  17950. WX_OK_CODE: 200
  17951. };
  17952. var BASE_URL = 'https://apis.map.qq.com/ws/';
  17953. var URL_SEARCH = BASE_URL + 'place/v1/search';
  17954. var URL_SUGGESTION = BASE_URL + 'place/v1/suggestion';
  17955. var URL_GET_GEOCODER = BASE_URL + 'geocoder/v1/';
  17956. var URL_CITY_LIST = BASE_URL + 'district/v1/list';
  17957. var URL_AREA_LIST = BASE_URL + 'district/v1/getchildren';
  17958. var URL_DISTANCE = BASE_URL + 'distance/v1/';
  17959. var URL_DIRECTION = BASE_URL + 'direction/v1/';
  17960. var MODE = {
  17961. driving: 'driving',
  17962. transit: 'transit'
  17963. };
  17964. var EARTH_RADIUS = 6378136.49;
  17965. var Utils = {
  17966. safeAdd: function safeAdd(x, y) {
  17967. var lsw = (x & 0xffff) + (y & 0xffff);
  17968. var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
  17969. return msw << 16 | lsw & 0xffff;
  17970. },
  17971. bitRotateLeft: function bitRotateLeft(num, cnt) {
  17972. return num << cnt | num >>> 32 - cnt;
  17973. },
  17974. md5cmn: function md5cmn(q, a, b, x, s, t) {
  17975. return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(a, q), this.safeAdd(x, t)), s), b);
  17976. },
  17977. md5ff: function md5ff(a, b, c, d, x, s, t) {
  17978. return this.md5cmn(b & c | ~b & d, a, b, x, s, t);
  17979. },
  17980. md5gg: function md5gg(a, b, c, d, x, s, t) {
  17981. return this.md5cmn(b & d | c & ~d, a, b, x, s, t);
  17982. },
  17983. md5hh: function md5hh(a, b, c, d, x, s, t) {
  17984. return this.md5cmn(b ^ c ^ d, a, b, x, s, t);
  17985. },
  17986. md5ii: function md5ii(a, b, c, d, x, s, t) {
  17987. return this.md5cmn(c ^ (b | ~d), a, b, x, s, t);
  17988. },
  17989. binlMD5: function binlMD5(x, len) {
  17990. x[len >> 5] |= 0x80 << len % 32;
  17991. x[(len + 64 >>> 9 << 4) + 14] = len;
  17992. var i;
  17993. var olda;
  17994. var oldb;
  17995. var oldc;
  17996. var oldd;
  17997. var a = 1732584193;
  17998. var b = -271733879;
  17999. var c = -1732584194;
  18000. var d = 271733878;
  18001. for (i = 0; i < x.length; i += 16) {
  18002. olda = a;
  18003. oldb = b;
  18004. oldc = c;
  18005. oldd = d;
  18006. a = this.md5ff(a, b, c, d, x[i], 7, -680876936);
  18007. d = this.md5ff(d, a, b, c, x[i + 1], 12, -389564586);
  18008. c = this.md5ff(c, d, a, b, x[i + 2], 17, 606105819);
  18009. b = this.md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
  18010. a = this.md5ff(a, b, c, d, x[i + 4], 7, -176418897);
  18011. d = this.md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
  18012. c = this.md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
  18013. b = this.md5ff(b, c, d, a, x[i + 7], 22, -45705983);
  18014. a = this.md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
  18015. d = this.md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
  18016. c = this.md5ff(c, d, a, b, x[i + 10], 17, -42063);
  18017. b = this.md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
  18018. a = this.md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
  18019. d = this.md5ff(d, a, b, c, x[i + 13], 12, -40341101);
  18020. c = this.md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
  18021. b = this.md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
  18022. a = this.md5gg(a, b, c, d, x[i + 1], 5, -165796510);
  18023. d = this.md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
  18024. c = this.md5gg(c, d, a, b, x[i + 11], 14, 643717713);
  18025. b = this.md5gg(b, c, d, a, x[i], 20, -373897302);
  18026. a = this.md5gg(a, b, c, d, x[i + 5], 5, -701558691);
  18027. d = this.md5gg(d, a, b, c, x[i + 10], 9, 38016083);
  18028. c = this.md5gg(c, d, a, b, x[i + 15], 14, -660478335);
  18029. b = this.md5gg(b, c, d, a, x[i + 4], 20, -405537848);
  18030. a = this.md5gg(a, b, c, d, x[i + 9], 5, 568446438);
  18031. d = this.md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
  18032. c = this.md5gg(c, d, a, b, x[i + 3], 14, -187363961);
  18033. b = this.md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
  18034. a = this.md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
  18035. d = this.md5gg(d, a, b, c, x[i + 2], 9, -51403784);
  18036. c = this.md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
  18037. b = this.md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
  18038. a = this.md5hh(a, b, c, d, x[i + 5], 4, -378558);
  18039. d = this.md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
  18040. c = this.md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
  18041. b = this.md5hh(b, c, d, a, x[i + 14], 23, -35309556);
  18042. a = this.md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
  18043. d = this.md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
  18044. c = this.md5hh(c, d, a, b, x[i + 7], 16, -155497632);
  18045. b = this.md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
  18046. a = this.md5hh(a, b, c, d, x[i + 13], 4, 681279174);
  18047. d = this.md5hh(d, a, b, c, x[i], 11, -358537222);
  18048. c = this.md5hh(c, d, a, b, x[i + 3], 16, -722521979);
  18049. b = this.md5hh(b, c, d, a, x[i + 6], 23, 76029189);
  18050. a = this.md5hh(a, b, c, d, x[i + 9], 4, -640364487);
  18051. d = this.md5hh(d, a, b, c, x[i + 12], 11, -421815835);
  18052. c = this.md5hh(c, d, a, b, x[i + 15], 16, 530742520);
  18053. b = this.md5hh(b, c, d, a, x[i + 2], 23, -995338651);
  18054. a = this.md5ii(a, b, c, d, x[i], 6, -198630844);
  18055. d = this.md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
  18056. c = this.md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
  18057. b = this.md5ii(b, c, d, a, x[i + 5], 21, -57434055);
  18058. a = this.md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
  18059. d = this.md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
  18060. c = this.md5ii(c, d, a, b, x[i + 10], 15, -1051523);
  18061. b = this.md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
  18062. a = this.md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
  18063. d = this.md5ii(d, a, b, c, x[i + 15], 10, -30611744);
  18064. c = this.md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
  18065. b = this.md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
  18066. a = this.md5ii(a, b, c, d, x[i + 4], 6, -145523070);
  18067. d = this.md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
  18068. c = this.md5ii(c, d, a, b, x[i + 2], 15, 718787259);
  18069. b = this.md5ii(b, c, d, a, x[i + 9], 21, -343485551);
  18070. a = this.safeAdd(a, olda);
  18071. b = this.safeAdd(b, oldb);
  18072. c = this.safeAdd(c, oldc);
  18073. d = this.safeAdd(d, oldd);
  18074. }
  18075. return [a, b, c, d];
  18076. },
  18077. binl2rstr: function binl2rstr(input) {
  18078. var i;
  18079. var output = '';
  18080. var length32 = input.length * 32;
  18081. for (i = 0; i < length32; i += 8) {
  18082. output += String.fromCharCode(input[i >> 5] >>> i % 32 & 0xff);
  18083. }
  18084. return output;
  18085. },
  18086. rstr2binl: function rstr2binl(input) {
  18087. var i;
  18088. var output = [];
  18089. output[(input.length >> 2) - 1] = undefined;
  18090. for (i = 0; i < output.length; i += 1) {
  18091. output[i] = 0;
  18092. }
  18093. var length8 = input.length * 8;
  18094. for (i = 0; i < length8; i += 8) {
  18095. output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32;
  18096. }
  18097. return output;
  18098. },
  18099. rstrMD5: function rstrMD5(s) {
  18100. return this.binl2rstr(this.binlMD5(this.rstr2binl(s), s.length * 8));
  18101. },
  18102. rstrHMACMD5: function rstrHMACMD5(key, data) {
  18103. var i;
  18104. var bkey = this.rstr2binl(key);
  18105. var ipad = [];
  18106. var opad = [];
  18107. var hash;
  18108. ipad[15] = opad[15] = undefined;
  18109. if (bkey.length > 16) {
  18110. bkey = this.binlMD5(bkey, key.length * 8);
  18111. }
  18112. for (i = 0; i < 16; i += 1) {
  18113. ipad[i] = bkey[i] ^ 0x36363636;
  18114. opad[i] = bkey[i] ^ 0x5c5c5c5c;
  18115. }
  18116. hash = this.binlMD5(ipad.concat(this.rstr2binl(data)), 512 + data.length * 8);
  18117. return this.binl2rstr(this.binlMD5(opad.concat(hash), 512 + 128));
  18118. },
  18119. rstr2hex: function rstr2hex(input) {
  18120. var hexTab = '0123456789abcdef';
  18121. var output = '';
  18122. var x;
  18123. var i;
  18124. for (i = 0; i < input.length; i += 1) {
  18125. x = input.charCodeAt(i);
  18126. output += hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f);
  18127. }
  18128. return output;
  18129. },
  18130. str2rstrUTF8: function str2rstrUTF8(input) {
  18131. return unescape(encodeURIComponent(input));
  18132. },
  18133. rawMD5: function rawMD5(s) {
  18134. return this.rstrMD5(this.str2rstrUTF8(s));
  18135. },
  18136. hexMD5: function hexMD5(s) {
  18137. return this.rstr2hex(this.rawMD5(s));
  18138. },
  18139. rawHMACMD5: function rawHMACMD5(k, d) {
  18140. return this.rstrHMACMD5(this.str2rstrUTF8(k), str2rstrUTF8(d));
  18141. },
  18142. hexHMACMD5: function hexHMACMD5(k, d) {
  18143. return this.rstr2hex(this.rawHMACMD5(k, d));
  18144. },
  18145. md5: function md5(string, key, raw) {
  18146. if (!key) {
  18147. if (!raw) {
  18148. return this.hexMD5(string);
  18149. }
  18150. return this.rawMD5(string);
  18151. }
  18152. if (!raw) {
  18153. return this.hexHMACMD5(key, string);
  18154. }
  18155. return this.rawHMACMD5(key, string);
  18156. },
  18157. getSig: function getSig(requestParam, sk, feature, mode) {
  18158. var sig = null;
  18159. var requestArr = [];
  18160. Object.keys(requestParam).sort().forEach(function (key) {
  18161. requestArr.push(key + '=' + requestParam[key]);
  18162. });
  18163. if (feature == 'search') {
  18164. sig = '/ws/place/v1/search?' + requestArr.join('&') + sk;
  18165. }
  18166. if (feature == 'suggest') {
  18167. sig = '/ws/place/v1/suggestion?' + requestArr.join('&') + sk;
  18168. }
  18169. if (feature == 'reverseGeocoder') {
  18170. sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk;
  18171. }
  18172. if (feature == 'geocoder') {
  18173. sig = '/ws/geocoder/v1/?' + requestArr.join('&') + sk;
  18174. }
  18175. if (feature == 'getCityList') {
  18176. sig = '/ws/district/v1/list?' + requestArr.join('&') + sk;
  18177. }
  18178. if (feature == 'getDistrictByCityId') {
  18179. sig = '/ws/district/v1/getchildren?' + requestArr.join('&') + sk;
  18180. }
  18181. if (feature == 'calculateDistance') {
  18182. sig = '/ws/distance/v1/?' + requestArr.join('&') + sk;
  18183. }
  18184. if (feature == 'direction') {
  18185. sig = '/ws/direction/v1/' + mode + '?' + requestArr.join('&') + sk;
  18186. }
  18187. sig = this.md5(sig);
  18188. return sig;
  18189. },
  18190. location2query: function location2query(data) {
  18191. if (typeof data == 'string') {
  18192. return data;
  18193. }
  18194. var query = '';
  18195. for (var i = 0; i < data.length; i++) {
  18196. var d = data[i];
  18197. if (!!query) {
  18198. query += ';';
  18199. }
  18200. if (d.location) {
  18201. query = query + d.location.lat + ',' + d.location.lng;
  18202. }
  18203. if (d.latitude && d.longitude) {
  18204. query = query + d.latitude + ',' + d.longitude;
  18205. }
  18206. }
  18207. return query;
  18208. },
  18209. rad: function rad(d) {
  18210. return d * Math.PI / 180.0;
  18211. },
  18212. getEndLocation: function getEndLocation(location) {
  18213. var to = location.split(';');
  18214. var endLocation = [];
  18215. for (var i = 0; i < to.length; i++) {
  18216. endLocation.push({
  18217. lat: parseFloat(to[i].split(',')[0]),
  18218. lng: parseFloat(to[i].split(',')[1])
  18219. });
  18220. }
  18221. return endLocation;
  18222. },
  18223. getDistance: function getDistance(latFrom, lngFrom, latTo, lngTo) {
  18224. var radLatFrom = this.rad(latFrom);
  18225. var radLatTo = this.rad(latTo);
  18226. var a = radLatFrom - radLatTo;
  18227. var b = this.rad(lngFrom) - this.rad(lngTo);
  18228. var distance = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(radLatFrom) * Math.cos(radLatTo) * Math.pow(Math.sin(b / 2), 2)));
  18229. distance = distance * EARTH_RADIUS;
  18230. distance = Math.round(distance * 10000) / 10000;
  18231. return parseFloat(distance.toFixed(0));
  18232. },
  18233. getWXLocation: function getWXLocation(success, fail, complete) {
  18234. wx.getLocation({
  18235. type: 'gcj02',
  18236. success: success,
  18237. fail: fail,
  18238. complete: complete
  18239. });
  18240. },
  18241. getLocationParam: function getLocationParam(location) {
  18242. if (typeof location == 'string') {
  18243. var locationArr = location.split(',');
  18244. if (locationArr.length === 2) {
  18245. location = {
  18246. latitude: location.split(',')[0],
  18247. longitude: location.split(',')[1]
  18248. };
  18249. } else {
  18250. location = {};
  18251. }
  18252. }
  18253. return location;
  18254. },
  18255. polyfillParam: function polyfillParam(param) {
  18256. param.success = param.success || function () {};
  18257. param.fail = param.fail || function () {};
  18258. param.complete = param.complete || function () {};
  18259. },
  18260. checkParamKeyEmpty: function checkParamKeyEmpty(param, key) {
  18261. if (!param[key]) {
  18262. var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + key + '参数格式有误');
  18263. param.fail(errconf);
  18264. param.complete(errconf);
  18265. return true;
  18266. }
  18267. return false;
  18268. },
  18269. checkKeyword: function checkKeyword(param) {
  18270. return !this.checkParamKeyEmpty(param, 'keyword');
  18271. },
  18272. checkLocation: function checkLocation(param) {
  18273. var location = this.getLocationParam(param.location);
  18274. if (!location || !location.latitude || !location.longitude) {
  18275. var errconf = this.buildErrorConfig(ERROR_CONF.PARAM_ERR, ERROR_CONF.PARAM_ERR_MSG + ' location参数格式有误');
  18276. param.fail(errconf);
  18277. param.complete(errconf);
  18278. return false;
  18279. }
  18280. return true;
  18281. },
  18282. buildErrorConfig: function buildErrorConfig(errCode, errMsg) {
  18283. return {
  18284. status: errCode,
  18285. message: errMsg
  18286. };
  18287. },
  18288. handleData: function handleData(param, data, feature) {
  18289. if (feature == 'search') {
  18290. var searchResult = data.data;
  18291. var searchSimplify = [];
  18292. for (var i = 0; i < searchResult.length; i++) {
  18293. searchSimplify.push({
  18294. id: searchResult[i].id || null,
  18295. title: searchResult[i].title || null,
  18296. latitude: searchResult[i].location && searchResult[i].location.lat || null,
  18297. longitude: searchResult[i].location && searchResult[i].location.lng || null,
  18298. address: searchResult[i].address || null,
  18299. category: searchResult[i].category || null,
  18300. tel: searchResult[i].tel || null,
  18301. adcode: searchResult[i].ad_info && searchResult[i].ad_info.adcode || null,
  18302. city: searchResult[i].ad_info && searchResult[i].ad_info.city || null,
  18303. district: searchResult[i].ad_info && searchResult[i].ad_info.district || null,
  18304. province: searchResult[i].ad_info && searchResult[i].ad_info.province || null
  18305. });
  18306. }
  18307. param.success(data, {
  18308. searchResult: searchResult,
  18309. searchSimplify: searchSimplify
  18310. });
  18311. } else if (feature == 'suggest') {
  18312. var suggestResult = data.data;
  18313. var suggestSimplify = [];
  18314. for (var i = 0; i < suggestResult.length; i++) {
  18315. suggestSimplify.push({
  18316. adcode: suggestResult[i].adcode || null,
  18317. address: suggestResult[i].address || null,
  18318. category: suggestResult[i].category || null,
  18319. city: suggestResult[i].city || null,
  18320. district: suggestResult[i].district || null,
  18321. id: suggestResult[i].id || null,
  18322. latitude: suggestResult[i].location && suggestResult[i].location.lat || null,
  18323. longitude: suggestResult[i].location && suggestResult[i].location.lng || null,
  18324. province: suggestResult[i].province || null,
  18325. title: suggestResult[i].title || null,
  18326. type: suggestResult[i].type || null
  18327. });
  18328. }
  18329. param.success(data, {
  18330. suggestResult: suggestResult,
  18331. suggestSimplify: suggestSimplify
  18332. });
  18333. } else if (feature == 'reverseGeocoder') {
  18334. var reverseGeocoderResult = data.result;
  18335. var reverseGeocoderSimplify = {
  18336. address: reverseGeocoderResult.address || null,
  18337. latitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lat || null,
  18338. longitude: reverseGeocoderResult.location && reverseGeocoderResult.location.lng || null,
  18339. adcode: reverseGeocoderResult.ad_info && reverseGeocoderResult.ad_info.adcode || null,
  18340. city: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.city || null,
  18341. district: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.district || null,
  18342. nation: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.nation || null,
  18343. province: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.province || null,
  18344. street: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street || null,
  18345. street_number: reverseGeocoderResult.address_component && reverseGeocoderResult.address_component.street_number || null,
  18346. recommend: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.recommend || null,
  18347. rough: reverseGeocoderResult.formatted_addresses && reverseGeocoderResult.formatted_addresses.rough || null
  18348. };
  18349. if (reverseGeocoderResult.pois) {
  18350. var pois = reverseGeocoderResult.pois;
  18351. var poisSimplify = [];
  18352. for (var i = 0; i < pois.length; i++) {
  18353. poisSimplify.push({
  18354. id: pois[i].id || null,
  18355. title: pois[i].title || null,
  18356. latitude: pois[i].location && pois[i].location.lat || null,
  18357. longitude: pois[i].location && pois[i].location.lng || null,
  18358. address: pois[i].address || null,
  18359. category: pois[i].category || null,
  18360. adcode: pois[i].ad_info && pois[i].ad_info.adcode || null,
  18361. city: pois[i].ad_info && pois[i].ad_info.city || null,
  18362. district: pois[i].ad_info && pois[i].ad_info.district || null,
  18363. province: pois[i].ad_info && pois[i].ad_info.province || null
  18364. });
  18365. }
  18366. param.success(data, {
  18367. reverseGeocoderResult: reverseGeocoderResult,
  18368. reverseGeocoderSimplify: reverseGeocoderSimplify,
  18369. pois: pois,
  18370. poisSimplify: poisSimplify
  18371. });
  18372. } else {
  18373. param.success(data, {
  18374. reverseGeocoderResult: reverseGeocoderResult,
  18375. reverseGeocoderSimplify: reverseGeocoderSimplify
  18376. });
  18377. }
  18378. } else if (feature == 'geocoder') {
  18379. var geocoderResult = data.result;
  18380. var geocoderSimplify = {
  18381. title: geocoderResult.title || null,
  18382. latitude: geocoderResult.location && geocoderResult.location.lat || null,
  18383. longitude: geocoderResult.location && geocoderResult.location.lng || null,
  18384. adcode: geocoderResult.ad_info && geocoderResult.ad_info.adcode || null,
  18385. province: geocoderResult.address_components && geocoderResult.address_components.province || null,
  18386. city: geocoderResult.address_components && geocoderResult.address_components.city || null,
  18387. district: geocoderResult.address_components && geocoderResult.address_components.district || null,
  18388. street: geocoderResult.address_components && geocoderResult.address_components.street || null,
  18389. street_number: geocoderResult.address_components && geocoderResult.address_components.street_number || null,
  18390. level: geocoderResult.level || null
  18391. };
  18392. param.success(data, {
  18393. geocoderResult: geocoderResult,
  18394. geocoderSimplify: geocoderSimplify
  18395. });
  18396. } else if (feature == 'getCityList') {
  18397. var provinceResult = data.result[0];
  18398. var cityResult = data.result[1];
  18399. var districtResult = data.result[2];
  18400. param.success(data, {
  18401. provinceResult: provinceResult,
  18402. cityResult: cityResult,
  18403. districtResult: districtResult
  18404. });
  18405. } else if (feature == 'getDistrictByCityId') {
  18406. var districtByCity = data.result[0];
  18407. param.success(data, districtByCity);
  18408. } else if (feature == 'calculateDistance') {
  18409. var calculateDistanceResult = data.result.elements;
  18410. var distance = [];
  18411. for (var i = 0; i < calculateDistanceResult.length; i++) {
  18412. distance.push(calculateDistanceResult[i].distance);
  18413. }
  18414. param.success(data, {
  18415. calculateDistanceResult: calculateDistanceResult,
  18416. distance: distance
  18417. });
  18418. } else if (feature == 'direction') {
  18419. var direction = data.result.routes;
  18420. param.success(data, direction);
  18421. } else {
  18422. param.success(data);
  18423. }
  18424. },
  18425. buildWxRequestConfig: function buildWxRequestConfig(param, options, feature) {
  18426. var that = this;
  18427. options.header = {
  18428. "content-type": "application/json"
  18429. };
  18430. options.method = 'GET';
  18431. options.success = function (res) {
  18432. var data = res.data;
  18433. if (data.status === 0) {
  18434. that.handleData(param, data, feature);
  18435. } else {
  18436. param.fail(data);
  18437. }
  18438. };
  18439. options.fail = function (res) {
  18440. res.statusCode = ERROR_CONF.WX_ERR_CODE;
  18441. param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18442. };
  18443. options.complete = function (res) {
  18444. var statusCode = +res.statusCode;
  18445. switch (statusCode) {
  18446. case ERROR_CONF.WX_ERR_CODE:
  18447. {
  18448. param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18449. break;
  18450. }
  18451. case ERROR_CONF.WX_OK_CODE:
  18452. {
  18453. var data = res.data;
  18454. if (data.status === 0) {
  18455. param.complete(data);
  18456. } else {
  18457. param.complete(that.buildErrorConfig(data.status, data.message));
  18458. }
  18459. break;
  18460. }
  18461. default:
  18462. {
  18463. param.complete(that.buildErrorConfig(ERROR_CONF.SYSTEM_ERR, ERROR_CONF.SYSTEM_ERR_MSG));
  18464. }
  18465. }
  18466. };
  18467. return options;
  18468. },
  18469. locationProcess: function locationProcess(param, locationsuccess, locationfail, locationcomplete) {
  18470. var that = this;
  18471. locationfail = locationfail || function (res) {
  18472. res.statusCode = ERROR_CONF.WX_ERR_CODE;
  18473. param.fail(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18474. };
  18475. locationcomplete = locationcomplete || function (res) {
  18476. if (res.statusCode == ERROR_CONF.WX_ERR_CODE) {
  18477. param.complete(that.buildErrorConfig(ERROR_CONF.WX_ERR_CODE, res.errMsg));
  18478. }
  18479. };
  18480. if (!param.location) {
  18481. that.getWXLocation(locationsuccess, locationfail, locationcomplete);
  18482. } else if (that.checkLocation(param)) {
  18483. var location = Utils.getLocationParam(param.location);
  18484. locationsuccess(location);
  18485. }
  18486. }
  18487. };
  18488. var QQMapWX = /*#__PURE__*/function () {
  18489. "use strict";
  18490. function QQMapWX(options) {
  18491. _classCallCheck(this, QQMapWX);
  18492. if (!options.key) {
  18493. throw Error('key值不能为空');
  18494. }
  18495. this.key = options.key;
  18496. }
  18497. _createClass(QQMapWX, [{
  18498. key: "search",
  18499. value: function search(options) {
  18500. var that = this;
  18501. options = options || {};
  18502. Utils.polyfillParam(options);
  18503. if (!Utils.checkKeyword(options)) {
  18504. return;
  18505. }
  18506. var requestParam = {
  18507. keyword: options.keyword,
  18508. orderby: options.orderby || '_distance',
  18509. page_size: options.page_size || 10,
  18510. page_index: options.page_index || 1,
  18511. output: 'json',
  18512. key: that.key
  18513. };
  18514. if (options.address_format) {
  18515. requestParam.address_format = options.address_format;
  18516. }
  18517. if (options.filter) {
  18518. requestParam.filter = options.filter;
  18519. }
  18520. var distance = options.distance || "1000";
  18521. var auto_extend = options.auto_extend || 1;
  18522. var region = null;
  18523. var rectangle = null;
  18524. if (options.region) {
  18525. region = options.region;
  18526. }
  18527. if (options.rectangle) {
  18528. rectangle = options.rectangle;
  18529. }
  18530. var locationsuccess = function locationsuccess(result) {
  18531. if (region && !rectangle) {
  18532. requestParam.boundary = "region(" + region + "," + auto_extend + "," + result.latitude + "," + result.longitude + ")";
  18533. if (options.sig) {
  18534. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  18535. }
  18536. } else if (rectangle && !region) {
  18537. requestParam.boundary = "rectangle(" + rectangle + ")";
  18538. if (options.sig) {
  18539. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  18540. }
  18541. } else {
  18542. requestParam.boundary = "nearby(" + result.latitude + "," + result.longitude + "," + distance + "," + auto_extend + ")";
  18543. if (options.sig) {
  18544. requestParam.sig = Utils.getSig(requestParam, options.sig, 'search');
  18545. }
  18546. }
  18547. wx.request(Utils.buildWxRequestConfig(options, {
  18548. url: URL_SEARCH,
  18549. data: requestParam
  18550. }, 'search'));
  18551. };
  18552. Utils.locationProcess(options, locationsuccess);
  18553. }
  18554. }, {
  18555. key: "getSuggestion",
  18556. value: function getSuggestion(options) {
  18557. var that = this;
  18558. options = options || {};
  18559. Utils.polyfillParam(options);
  18560. if (!Utils.checkKeyword(options)) {
  18561. return;
  18562. }
  18563. var requestParam = {
  18564. keyword: options.keyword,
  18565. region: options.region || '全国',
  18566. region_fix: options.region_fix || 0,
  18567. policy: options.policy || 0,
  18568. page_size: options.page_size || 10,
  18569. page_index: options.page_index || 1,
  18570. get_subpois: options.get_subpois || 0,
  18571. output: 'json',
  18572. key: that.key
  18573. };
  18574. if (options.address_format) {
  18575. requestParam.address_format = options.address_format;
  18576. }
  18577. if (options.filter) {
  18578. requestParam.filter = options.filter;
  18579. }
  18580. if (options.location) {
  18581. var locationsuccess = function locationsuccess(result) {
  18582. requestParam.location = result.latitude + ',' + result.longitude;
  18583. if (options.sig) {
  18584. requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest');
  18585. }
  18586. wx.request(Utils.buildWxRequestConfig(options, {
  18587. url: URL_SUGGESTION,
  18588. data: requestParam
  18589. }, "suggest"));
  18590. };
  18591. Utils.locationProcess(options, locationsuccess);
  18592. } else {
  18593. if (options.sig) {
  18594. requestParam.sig = Utils.getSig(requestParam, options.sig, 'suggest');
  18595. }
  18596. wx.request(Utils.buildWxRequestConfig(options, {
  18597. url: URL_SUGGESTION,
  18598. data: requestParam
  18599. }, "suggest"));
  18600. }
  18601. }
  18602. }, {
  18603. key: "reverseGeocoder",
  18604. value: function reverseGeocoder(options) {
  18605. var that = this;
  18606. options = options || {};
  18607. Utils.polyfillParam(options);
  18608. var requestParam = {
  18609. coord_type: options.coord_type || 5,
  18610. get_poi: options.get_poi || 0,
  18611. output: 'json',
  18612. key: that.key
  18613. };
  18614. if (options.poi_options) {
  18615. requestParam.poi_options = options.poi_options;
  18616. }
  18617. var locationsuccess = function locationsuccess(result) {
  18618. requestParam.location = result.latitude + ',' + result.longitude;
  18619. if (options.sig) {
  18620. requestParam.sig = Utils.getSig(requestParam, options.sig, 'reverseGeocoder');
  18621. }
  18622. wx.request(Utils.buildWxRequestConfig(options, {
  18623. url: URL_GET_GEOCODER,
  18624. data: requestParam
  18625. }, 'reverseGeocoder'));
  18626. };
  18627. Utils.locationProcess(options, locationsuccess);
  18628. }
  18629. }, {
  18630. key: "geocoder",
  18631. value: function geocoder(options) {
  18632. var that = this;
  18633. options = options || {};
  18634. Utils.polyfillParam(options);
  18635. if (Utils.checkParamKeyEmpty(options, 'address')) {
  18636. return;
  18637. }
  18638. var requestParam = {
  18639. address: options.address,
  18640. output: 'json',
  18641. key: that.key
  18642. };
  18643. if (options.region) {
  18644. requestParam.region = options.region;
  18645. }
  18646. if (options.sig) {
  18647. requestParam.sig = Utils.getSig(requestParam, options.sig, 'geocoder');
  18648. }
  18649. wx.request(Utils.buildWxRequestConfig(options, {
  18650. url: URL_GET_GEOCODER,
  18651. data: requestParam
  18652. }, 'geocoder'));
  18653. }
  18654. }, {
  18655. key: "getCityList",
  18656. value: function getCityList(options) {
  18657. var that = this;
  18658. options = options || {};
  18659. Utils.polyfillParam(options);
  18660. var requestParam = {
  18661. output: 'json',
  18662. key: that.key
  18663. };
  18664. if (options.sig) {
  18665. requestParam.sig = Utils.getSig(requestParam, options.sig, 'getCityList');
  18666. }
  18667. wx.request(Utils.buildWxRequestConfig(options, {
  18668. url: URL_CITY_LIST,
  18669. data: requestParam
  18670. }, 'getCityList'));
  18671. }
  18672. }, {
  18673. key: "getDistrictByCityId",
  18674. value: function getDistrictByCityId(options) {
  18675. var that = this;
  18676. options = options || {};
  18677. Utils.polyfillParam(options);
  18678. if (Utils.checkParamKeyEmpty(options, 'id')) {
  18679. return;
  18680. }
  18681. var requestParam = {
  18682. id: options.id || '',
  18683. output: 'json',
  18684. key: that.key
  18685. };
  18686. if (options.sig) {
  18687. requestParam.sig = Utils.getSig(requestParam, options.sig, 'getDistrictByCityId');
  18688. }
  18689. wx.request(Utils.buildWxRequestConfig(options, {
  18690. url: URL_AREA_LIST,
  18691. data: requestParam
  18692. }, 'getDistrictByCityId'));
  18693. }
  18694. }, {
  18695. key: "calculateDistance",
  18696. value: function calculateDistance(options) {
  18697. var that = this;
  18698. options = options || {};
  18699. Utils.polyfillParam(options);
  18700. if (Utils.checkParamKeyEmpty(options, 'to')) {
  18701. return;
  18702. }
  18703. var requestParam = {
  18704. mode: options.mode || 'walking',
  18705. to: Utils.location2query(options.to),
  18706. output: 'json',
  18707. key: that.key
  18708. };
  18709. if (options.from) {
  18710. options.location = options.from;
  18711. }
  18712. if (requestParam.mode == 'straight') {
  18713. var locationsuccess = function locationsuccess(result) {
  18714. var locationTo = Utils.getEndLocation(requestParam.to);
  18715. var data = {
  18716. message: "query ok",
  18717. result: {
  18718. elements: []
  18719. },
  18720. status: 0
  18721. };
  18722. for (var i = 0; i < locationTo.length; i++) {
  18723. data.result.elements.push({
  18724. distance: Utils.getDistance(result.latitude, result.longitude, locationTo[i].lat, locationTo[i].lng),
  18725. duration: 0,
  18726. from: {
  18727. lat: result.latitude,
  18728. lng: result.longitude
  18729. },
  18730. to: {
  18731. lat: locationTo[i].lat,
  18732. lng: locationTo[i].lng
  18733. }
  18734. });
  18735. }
  18736. var calculateResult = data.result.elements;
  18737. var distanceResult = [];
  18738. for (var i = 0; i < calculateResult.length; i++) {
  18739. distanceResult.push(calculateResult[i].distance);
  18740. }
  18741. return options.success(data, {
  18742. calculateResult: calculateResult,
  18743. distanceResult: distanceResult
  18744. });
  18745. };
  18746. Utils.locationProcess(options, locationsuccess);
  18747. } else {
  18748. var locationsuccess = function locationsuccess(result) {
  18749. requestParam.from = result.latitude + ',' + result.longitude;
  18750. if (options.sig) {
  18751. requestParam.sig = Utils.getSig(requestParam, options.sig, 'calculateDistance');
  18752. }
  18753. wx.request(Utils.buildWxRequestConfig(options, {
  18754. url: URL_DISTANCE,
  18755. data: requestParam
  18756. }, 'calculateDistance'));
  18757. };
  18758. Utils.locationProcess(options, locationsuccess);
  18759. }
  18760. }
  18761. }, {
  18762. key: "direction",
  18763. value: function direction(options) {
  18764. var that = this;
  18765. options = options || {};
  18766. Utils.polyfillParam(options);
  18767. if (Utils.checkParamKeyEmpty(options, 'to')) {
  18768. return;
  18769. }
  18770. var requestParam = {
  18771. output: 'json',
  18772. key: that.key
  18773. };
  18774. if (typeof options.to == 'string') {
  18775. requestParam.to = options.to;
  18776. } else {
  18777. requestParam.to = options.to.latitude + ',' + options.to.longitude;
  18778. }
  18779. var SET_URL_DIRECTION = null;
  18780. options.mode = options.mode || MODE.driving;
  18781. SET_URL_DIRECTION = URL_DIRECTION + options.mode;
  18782. if (options.from) {
  18783. options.location = options.from;
  18784. }
  18785. if (options.mode == MODE.driving) {
  18786. if (options.from_poi) {
  18787. requestParam.from_poi = options.from_poi;
  18788. }
  18789. if (options.heading) {
  18790. requestParam.heading = options.heading;
  18791. }
  18792. if (options.speed) {
  18793. requestParam.speed = options.speed;
  18794. }
  18795. if (options.accuracy) {
  18796. requestParam.accuracy = options.accuracy;
  18797. }
  18798. if (options.road_type) {
  18799. requestParam.road_type = options.road_type;
  18800. }
  18801. if (options.to_poi) {
  18802. requestParam.to_poi = options.to_poi;
  18803. }
  18804. if (options.from_track) {
  18805. requestParam.from_track = options.from_track;
  18806. }
  18807. if (options.waypoints) {
  18808. requestParam.waypoints = options.waypoints;
  18809. }
  18810. if (options.policy) {
  18811. requestParam.policy = options.policy;
  18812. }
  18813. if (options.plate_number) {
  18814. requestParam.plate_number = options.plate_number;
  18815. }
  18816. }
  18817. if (options.mode == MODE.transit) {
  18818. if (options.departure_time) {
  18819. requestParam.departure_time = options.departure_time;
  18820. }
  18821. if (options.policy) {
  18822. requestParam.policy = options.policy;
  18823. }
  18824. }
  18825. var locationsuccess = function locationsuccess(result) {
  18826. requestParam.from = result.latitude + ',' + result.longitude;
  18827. if (options.sig) {
  18828. requestParam.sig = Utils.getSig(requestParam, options.sig, 'direction', options.mode);
  18829. }
  18830. wx.request(Utils.buildWxRequestConfig(options, {
  18831. url: SET_URL_DIRECTION,
  18832. data: requestParam
  18833. }, 'direction'));
  18834. };
  18835. Utils.locationProcess(options, locationsuccess);
  18836. }
  18837. }]);
  18838. return QQMapWX;
  18839. }();
  18840. ;
  18841. module.exports = QQMapWX;
  18842. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  18843. /***/ }),
  18844. /* 165 */,
  18845. /* 166 */,
  18846. /* 167 */,
  18847. /* 168 */,
  18848. /* 169 */,
  18849. /* 170 */,
  18850. /* 171 */,
  18851. /* 172 */,
  18852. /* 173 */,
  18853. /* 174 */,
  18854. /* 175 */,
  18855. /* 176 */,
  18856. /* 177 */,
  18857. /* 178 */,
  18858. /* 179 */,
  18859. /* 180 */,
  18860. /* 181 */,
  18861. /* 182 */,
  18862. /* 183 */,
  18863. /* 184 */,
  18864. /* 185 */,
  18865. /* 186 */,
  18866. /* 187 */,
  18867. /* 188 */,
  18868. /* 189 */,
  18869. /* 190 */,
  18870. /* 191 */,
  18871. /* 192 */,
  18872. /* 193 */,
  18873. /* 194 */,
  18874. /* 195 */,
  18875. /* 196 */,
  18876. /* 197 */,
  18877. /* 198 */,
  18878. /* 199 */,
  18879. /* 200 */,
  18880. /* 201 */,
  18881. /* 202 */,
  18882. /* 203 */,
  18883. /* 204 */,
  18884. /* 205 */,
  18885. /* 206 */,
  18886. /* 207 */,
  18887. /* 208 */,
  18888. /* 209 */,
  18889. /* 210 */,
  18890. /* 211 */,
  18891. /* 212 */,
  18892. /* 213 */,
  18893. /* 214 */,
  18894. /* 215 */,
  18895. /* 216 */,
  18896. /* 217 */,
  18897. /* 218 */,
  18898. /* 219 */,
  18899. /* 220 */,
  18900. /* 221 */,
  18901. /* 222 */,
  18902. /* 223 */,
  18903. /* 224 */,
  18904. /* 225 */,
  18905. /* 226 */,
  18906. /* 227 */,
  18907. /* 228 */,
  18908. /* 229 */,
  18909. /* 230 */,
  18910. /* 231 */,
  18911. /* 232 */,
  18912. /* 233 */,
  18913. /* 234 */,
  18914. /* 235 */,
  18915. /* 236 */,
  18916. /* 237 */,
  18917. /* 238 */,
  18918. /* 239 */,
  18919. /* 240 */,
  18920. /* 241 */,
  18921. /* 242 */,
  18922. /* 243 */,
  18923. /* 244 */,
  18924. /* 245 */,
  18925. /* 246 */,
  18926. /* 247 */,
  18927. /* 248 */,
  18928. /* 249 */,
  18929. /* 250 */,
  18930. /* 251 */,
  18931. /* 252 */,
  18932. /* 253 */
  18933. /*!********************************************************************************!*\
  18934. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-icon/icons.js ***!
  18935. \********************************************************************************/
  18936. /*! no static exports found */
  18937. /***/ (function(module, exports, __webpack_require__) {
  18938. "use strict";
  18939. Object.defineProperty(exports, "__esModule", {
  18940. value: true
  18941. });
  18942. exports.default = void 0;
  18943. var _default = {
  18944. 'uicon-level': "\uE693",
  18945. 'uicon-column-line': "\uE68E",
  18946. 'uicon-checkbox-mark': "\uE807",
  18947. 'uicon-folder': "\uE7F5",
  18948. 'uicon-movie': "\uE7F6",
  18949. 'uicon-star-fill': "\uE669",
  18950. 'uicon-star': "\uE65F",
  18951. 'uicon-phone-fill': "\uE64F",
  18952. 'uicon-phone': "\uE622",
  18953. 'uicon-apple-fill': "\uE881",
  18954. 'uicon-chrome-circle-fill': "\uE885",
  18955. 'uicon-backspace': "\uE67B",
  18956. 'uicon-attach': "\uE632",
  18957. 'uicon-cut': "\uE948",
  18958. 'uicon-empty-car': "\uE602",
  18959. 'uicon-empty-coupon': "\uE682",
  18960. 'uicon-empty-address': "\uE646",
  18961. 'uicon-empty-favor': "\uE67C",
  18962. 'uicon-empty-permission': "\uE686",
  18963. 'uicon-empty-news': "\uE687",
  18964. 'uicon-empty-search': "\uE664",
  18965. 'uicon-github-circle-fill': "\uE887",
  18966. 'uicon-rmb': "\uE608",
  18967. 'uicon-person-delete-fill': "\uE66A",
  18968. 'uicon-reload': "\uE788",
  18969. 'uicon-order': "\uE68F",
  18970. 'uicon-server-man': "\uE6BC",
  18971. 'uicon-search': "\uE62A",
  18972. 'uicon-fingerprint': "\uE955",
  18973. 'uicon-more-dot-fill': "\uE630",
  18974. 'uicon-scan': "\uE662",
  18975. 'uicon-share-square': "\uE60B",
  18976. 'uicon-map': "\uE61D",
  18977. 'uicon-map-fill': "\uE64E",
  18978. 'uicon-tags': "\uE629",
  18979. 'uicon-tags-fill': "\uE651",
  18980. 'uicon-bookmark-fill': "\uE63B",
  18981. 'uicon-bookmark': "\uE60A",
  18982. 'uicon-eye': "\uE613",
  18983. 'uicon-eye-fill': "\uE641",
  18984. 'uicon-mic': "\uE64A",
  18985. 'uicon-mic-off': "\uE649",
  18986. 'uicon-calendar': "\uE66E",
  18987. 'uicon-calendar-fill': "\uE634",
  18988. 'uicon-trash': "\uE623",
  18989. 'uicon-trash-fill': "\uE658",
  18990. 'uicon-play-left': "\uE66D",
  18991. 'uicon-play-right': "\uE610",
  18992. 'uicon-minus': "\uE618",
  18993. 'uicon-plus': "\uE62D",
  18994. 'uicon-info': "\uE653",
  18995. 'uicon-info-circle': "\uE7D2",
  18996. 'uicon-info-circle-fill': "\uE64B",
  18997. 'uicon-question': "\uE715",
  18998. 'uicon-error': "\uE6D3",
  18999. 'uicon-close': "\uE685",
  19000. 'uicon-checkmark': "\uE6A8",
  19001. 'uicon-android-circle-fill': "\uE67E",
  19002. 'uicon-android-fill': "\uE67D",
  19003. 'uicon-ie': "\uE87B",
  19004. 'uicon-IE-circle-fill': "\uE889",
  19005. 'uicon-google': "\uE87A",
  19006. 'uicon-google-circle-fill': "\uE88A",
  19007. 'uicon-setting-fill': "\uE872",
  19008. 'uicon-setting': "\uE61F",
  19009. 'uicon-minus-square-fill': "\uE855",
  19010. 'uicon-plus-square-fill': "\uE856",
  19011. 'uicon-heart': "\uE7DF",
  19012. 'uicon-heart-fill': "\uE851",
  19013. 'uicon-camera': "\uE7D7",
  19014. 'uicon-camera-fill': "\uE870",
  19015. 'uicon-more-circle': "\uE63E",
  19016. 'uicon-more-circle-fill': "\uE645",
  19017. 'uicon-chat': "\uE620",
  19018. 'uicon-chat-fill': "\uE61E",
  19019. 'uicon-bag-fill': "\uE617",
  19020. 'uicon-bag': "\uE619",
  19021. 'uicon-error-circle-fill': "\uE62C",
  19022. 'uicon-error-circle': "\uE624",
  19023. 'uicon-close-circle': "\uE63F",
  19024. 'uicon-close-circle-fill': "\uE637",
  19025. 'uicon-checkmark-circle': "\uE63D",
  19026. 'uicon-checkmark-circle-fill': "\uE635",
  19027. 'uicon-question-circle-fill': "\uE666",
  19028. 'uicon-question-circle': "\uE625",
  19029. 'uicon-share': "\uE631",
  19030. 'uicon-share-fill': "\uE65E",
  19031. 'uicon-shopping-cart': "\uE621",
  19032. 'uicon-shopping-cart-fill': "\uE65D",
  19033. 'uicon-bell': "\uE609",
  19034. 'uicon-bell-fill': "\uE640",
  19035. 'uicon-list': "\uE650",
  19036. 'uicon-list-dot': "\uE616",
  19037. 'uicon-zhihu': "\uE6BA",
  19038. 'uicon-zhihu-circle-fill': "\uE709",
  19039. 'uicon-zhifubao': "\uE6B9",
  19040. 'uicon-zhifubao-circle-fill': "\uE6B8",
  19041. 'uicon-weixin-circle-fill': "\uE6B1",
  19042. 'uicon-weixin-fill': "\uE6B2",
  19043. 'uicon-twitter-circle-fill': "\uE6AB",
  19044. 'uicon-twitter': "\uE6AA",
  19045. 'uicon-taobao-circle-fill': "\uE6A7",
  19046. 'uicon-taobao': "\uE6A6",
  19047. 'uicon-weibo-circle-fill': "\uE6A5",
  19048. 'uicon-weibo': "\uE6A4",
  19049. 'uicon-qq-fill': "\uE6A1",
  19050. 'uicon-qq-circle-fill': "\uE6A0",
  19051. 'uicon-moments-circel-fill': "\uE69A",
  19052. 'uicon-moments': "\uE69B",
  19053. 'uicon-qzone': "\uE695",
  19054. 'uicon-qzone-circle-fill': "\uE696",
  19055. 'uicon-baidu-circle-fill': "\uE680",
  19056. 'uicon-baidu': "\uE681",
  19057. 'uicon-facebook-circle-fill': "\uE68A",
  19058. 'uicon-facebook': "\uE689",
  19059. 'uicon-car': "\uE60C",
  19060. 'uicon-car-fill': "\uE636",
  19061. 'uicon-warning-fill': "\uE64D",
  19062. 'uicon-warning': "\uE694",
  19063. 'uicon-clock-fill': "\uE638",
  19064. 'uicon-clock': "\uE60F",
  19065. 'uicon-edit-pen': "\uE612",
  19066. 'uicon-edit-pen-fill': "\uE66B",
  19067. 'uicon-email': "\uE611",
  19068. 'uicon-email-fill': "\uE642",
  19069. 'uicon-minus-circle': "\uE61B",
  19070. 'uicon-minus-circle-fill': "\uE652",
  19071. 'uicon-plus-circle': "\uE62E",
  19072. 'uicon-plus-circle-fill': "\uE661",
  19073. 'uicon-file-text': "\uE663",
  19074. 'uicon-file-text-fill': "\uE665",
  19075. 'uicon-pushpin': "\uE7E3",
  19076. 'uicon-pushpin-fill': "\uE86E",
  19077. 'uicon-grid': "\uE673",
  19078. 'uicon-grid-fill': "\uE678",
  19079. 'uicon-play-circle': "\uE647",
  19080. 'uicon-play-circle-fill': "\uE655",
  19081. 'uicon-pause-circle-fill': "\uE654",
  19082. 'uicon-pause': "\uE8FA",
  19083. 'uicon-pause-circle': "\uE643",
  19084. 'uicon-eye-off': "\uE648",
  19085. 'uicon-eye-off-outline': "\uE62B",
  19086. 'uicon-gift-fill': "\uE65C",
  19087. 'uicon-gift': "\uE65B",
  19088. 'uicon-rmb-circle-fill': "\uE657",
  19089. 'uicon-rmb-circle': "\uE677",
  19090. 'uicon-kefu-ermai': "\uE656",
  19091. 'uicon-server-fill': "\uE751",
  19092. 'uicon-coupon-fill': "\uE8C4",
  19093. 'uicon-coupon': "\uE8AE",
  19094. 'uicon-integral': "\uE704",
  19095. 'uicon-integral-fill': "\uE703",
  19096. 'uicon-home-fill': "\uE964",
  19097. 'uicon-home': "\uE965",
  19098. 'uicon-hourglass-half-fill': "\uE966",
  19099. 'uicon-hourglass': "\uE967",
  19100. 'uicon-account': "\uE628",
  19101. 'uicon-plus-people-fill': "\uE626",
  19102. 'uicon-minus-people-fill': "\uE615",
  19103. 'uicon-account-fill': "\uE614",
  19104. 'uicon-thumb-down-fill': "\uE726",
  19105. 'uicon-thumb-down': "\uE727",
  19106. 'uicon-thumb-up': "\uE733",
  19107. 'uicon-thumb-up-fill': "\uE72F",
  19108. 'uicon-lock-fill': "\uE979",
  19109. 'uicon-lock-open': "\uE973",
  19110. 'uicon-lock-opened-fill': "\uE974",
  19111. 'uicon-lock': "\uE97A",
  19112. 'uicon-red-packet-fill': "\uE690",
  19113. 'uicon-photo-fill': "\uE98B",
  19114. 'uicon-photo': "\uE98D",
  19115. 'uicon-volume-off-fill': "\uE659",
  19116. 'uicon-volume-off': "\uE644",
  19117. 'uicon-volume-fill': "\uE670",
  19118. 'uicon-volume': "\uE633",
  19119. 'uicon-red-packet': "\uE691",
  19120. 'uicon-download': "\uE63C",
  19121. 'uicon-arrow-up-fill': "\uE6B0",
  19122. 'uicon-arrow-down-fill': "\uE600",
  19123. 'uicon-play-left-fill': "\uE675",
  19124. 'uicon-play-right-fill': "\uE676",
  19125. 'uicon-rewind-left-fill': "\uE679",
  19126. 'uicon-rewind-right-fill': "\uE67A",
  19127. 'uicon-arrow-downward': "\uE604",
  19128. 'uicon-arrow-leftward': "\uE601",
  19129. 'uicon-arrow-rightward': "\uE603",
  19130. 'uicon-arrow-upward': "\uE607",
  19131. 'uicon-arrow-down': "\uE60D",
  19132. 'uicon-arrow-right': "\uE605",
  19133. 'uicon-arrow-left': "\uE60E",
  19134. 'uicon-arrow-up': "\uE606",
  19135. 'uicon-skip-back-left': "\uE674",
  19136. 'uicon-skip-forward-right': "\uE672",
  19137. 'uicon-rewind-right': "\uE66F",
  19138. 'uicon-rewind-left': "\uE671",
  19139. 'uicon-arrow-right-double': "\uE68D",
  19140. 'uicon-arrow-left-double': "\uE68C",
  19141. 'uicon-wifi-off': "\uE668",
  19142. 'uicon-wifi': "\uE667",
  19143. 'uicon-empty-data': "\uE62F",
  19144. 'uicon-empty-history': "\uE684",
  19145. 'uicon-empty-list': "\uE68B",
  19146. 'uicon-empty-page': "\uE627",
  19147. 'uicon-empty-order': "\uE639",
  19148. 'uicon-man': "\uE697",
  19149. 'uicon-woman': "\uE69C",
  19150. 'uicon-man-add': "\uE61C",
  19151. 'uicon-man-add-fill': "\uE64C",
  19152. 'uicon-man-delete': "\uE61A",
  19153. 'uicon-man-delete-fill': "\uE66A",
  19154. 'uicon-zh': "\uE70A",
  19155. 'uicon-en': "\uE692"
  19156. };
  19157. exports.default = _default;
  19158. /***/ }),
  19159. /* 254 */
  19160. /*!********************************************************************************!*\
  19161. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-icon/props.js ***!
  19162. \********************************************************************************/
  19163. /*! no static exports found */
  19164. /***/ (function(module, exports, __webpack_require__) {
  19165. "use strict";
  19166. /* WEBPACK VAR INJECTION */(function(uni) {
  19167. Object.defineProperty(exports, "__esModule", {
  19168. value: true
  19169. });
  19170. exports.default = void 0;
  19171. var _default = {
  19172. props: {
  19173. // 图标类名
  19174. name: {
  19175. type: String,
  19176. default: uni.$u.props.icon.name
  19177. },
  19178. // 图标颜色,可接受主题色
  19179. color: {
  19180. type: String,
  19181. default: uni.$u.props.icon.color
  19182. },
  19183. // 字体大小,单位px
  19184. size: {
  19185. type: [String, Number],
  19186. default: uni.$u.props.icon.size
  19187. },
  19188. // 是否显示粗体
  19189. bold: {
  19190. type: Boolean,
  19191. default: uni.$u.props.icon.bold
  19192. },
  19193. // 点击图标的时候传递事件出去的index(用于区分点击了哪一个)
  19194. index: {
  19195. type: [String, Number],
  19196. default: uni.$u.props.icon.index
  19197. },
  19198. // 触摸图标时的类名
  19199. hoverClass: {
  19200. type: String,
  19201. default: uni.$u.props.icon.hoverClass
  19202. },
  19203. // 自定义扩展前缀,方便用户扩展自己的图标库
  19204. customPrefix: {
  19205. type: String,
  19206. default: uni.$u.props.icon.customPrefix
  19207. },
  19208. // 图标右边或者下面的文字
  19209. label: {
  19210. type: [String, Number],
  19211. default: uni.$u.props.icon.label
  19212. },
  19213. // label的位置,只能右边或者下边
  19214. labelPos: {
  19215. type: String,
  19216. default: uni.$u.props.icon.labelPos
  19217. },
  19218. // label的大小
  19219. labelSize: {
  19220. type: [String, Number],
  19221. default: uni.$u.props.icon.labelSize
  19222. },
  19223. // label的颜色
  19224. labelColor: {
  19225. type: String,
  19226. default: uni.$u.props.icon.labelColor
  19227. },
  19228. // label与图标的距离
  19229. space: {
  19230. type: [String, Number],
  19231. default: uni.$u.props.icon.space
  19232. },
  19233. // 图片的mode
  19234. imgMode: {
  19235. type: String,
  19236. default: uni.$u.props.icon.imgMode
  19237. },
  19238. // 用于显示图片小图标时,图片的宽度
  19239. width: {
  19240. type: [String, Number],
  19241. default: uni.$u.props.icon.width
  19242. },
  19243. // 用于显示图片小图标时,图片的高度
  19244. height: {
  19245. type: [String, Number],
  19246. default: uni.$u.props.icon.height
  19247. },
  19248. // 用于解决某些情况下,让图标垂直居中的用途
  19249. top: {
  19250. type: [String, Number],
  19251. default: uni.$u.props.icon.top
  19252. },
  19253. // 是否阻止事件传播
  19254. stop: {
  19255. type: Boolean,
  19256. default: uni.$u.props.icon.stop
  19257. }
  19258. }
  19259. };
  19260. exports.default = _default;
  19261. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  19262. /***/ }),
  19263. /* 255 */,
  19264. /* 256 */,
  19265. /* 257 */,
  19266. /* 258 */,
  19267. /* 259 */,
  19268. /* 260 */,
  19269. /* 261 */,
  19270. /* 262 */
  19271. /*!**********************************************!*\
  19272. !*** F:/HBuilderProjects/test/utils/guid.js ***!
  19273. \**********************************************/
  19274. /*! no static exports found */
  19275. /***/ (function(module, exports, __webpack_require__) {
  19276. "use strict";
  19277. Object.defineProperty(exports, "__esModule", {
  19278. value: true
  19279. });
  19280. exports.default = void 0;
  19281. /**
  19282. * 本算法来源于简书开源代码,详见:https://www.jianshu.com/p/fdbf293d0a85
  19283. * 全局唯一标识符(uuid,Globally Unique Identifier),也称作 uuid(Universally Unique IDentifier)
  19284. * 一般用于多个组件之间,给它一个唯一的标识符,或者v-for循环的时候,如果使用数组的index可能会导致更新列表出现问题
  19285. * 最可能的情况是左滑删除item或者对某条信息流"不喜欢"并去掉它的时候,会导致组件内的数据可能出现错乱
  19286. * v-for的时候,推荐使用后端返回的id而不是循环的index
  19287. * @param {Number} len uuid的长度
  19288. * @param {Boolean} firstU 将返回的首字母置为"u"
  19289. * @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
  19290. */
  19291. function guid() {
  19292. var len = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 32;
  19293. var firstU = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  19294. var radix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  19295. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  19296. var uuid = [];
  19297. radix = radix || chars.length;
  19298. if (len) {
  19299. // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位
  19300. for (var i = 0; i < len; i++) {
  19301. uuid[i] = chars[0 | Math.random() * radix];
  19302. }
  19303. } else {
  19304. var r;
  19305. // rfc4122标准要求返回的uuid中,某些位为固定的字符
  19306. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  19307. uuid[14] = '4';
  19308. for (var _i = 0; _i < 36; _i++) {
  19309. if (!uuid[_i]) {
  19310. r = 0 | Math.random() * 16;
  19311. uuid[_i] = chars[_i == 19 ? r & 0x3 | 0x8 : r];
  19312. }
  19313. }
  19314. }
  19315. // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
  19316. if (firstU) {
  19317. uuid.shift();
  19318. return 'hd' + uuid.join('');
  19319. } else {
  19320. return uuid.join('');
  19321. }
  19322. }
  19323. var _default = guid;
  19324. exports.default = _default;
  19325. /***/ }),
  19326. /* 263 */,
  19327. /* 264 */,
  19328. /* 265 */,
  19329. /* 266 */,
  19330. /* 267 */,
  19331. /* 268 */,
  19332. /* 269 */,
  19333. /* 270 */
  19334. /*!********************************************************************************!*\
  19335. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-rate/props.js ***!
  19336. \********************************************************************************/
  19337. /*! no static exports found */
  19338. /***/ (function(module, exports, __webpack_require__) {
  19339. "use strict";
  19340. /* WEBPACK VAR INJECTION */(function(uni) {
  19341. Object.defineProperty(exports, "__esModule", {
  19342. value: true
  19343. });
  19344. exports.default = void 0;
  19345. var _default = {
  19346. props: {
  19347. // 用于v-model双向绑定选中的星星数量
  19348. value: {
  19349. type: [String, Number],
  19350. default: uni.$u.props.rate.value
  19351. },
  19352. // 要显示的星星数量
  19353. count: {
  19354. type: [String, Number],
  19355. default: uni.$u.props.rate.count
  19356. },
  19357. // 是否不可选中
  19358. disabled: {
  19359. type: Boolean,
  19360. default: uni.$u.props.rate.disabled
  19361. },
  19362. // 是否只读
  19363. readonly: {
  19364. type: Boolean,
  19365. default: uni.$u.props.rate.readonly
  19366. },
  19367. // 星星的大小,单位px
  19368. size: {
  19369. type: [String, Number],
  19370. default: uni.$u.props.rate.size
  19371. },
  19372. // 未选中时的颜色
  19373. inactiveColor: {
  19374. type: String,
  19375. default: uni.$u.props.rate.inactiveColor
  19376. },
  19377. // 选中的颜色
  19378. activeColor: {
  19379. type: String,
  19380. default: uni.$u.props.rate.activeColor
  19381. },
  19382. // 星星之间的间距,单位px
  19383. gutter: {
  19384. type: [String, Number],
  19385. default: uni.$u.props.rate.gutter
  19386. },
  19387. // 最少能选择的星星个数
  19388. minCount: {
  19389. type: [String, Number],
  19390. default: uni.$u.props.rate.minCount
  19391. },
  19392. // 是否允许半星
  19393. allowHalf: {
  19394. type: Boolean,
  19395. default: uni.$u.props.rate.allowHalf
  19396. },
  19397. // 选中时的图标(星星)
  19398. activeIcon: {
  19399. type: String,
  19400. default: uni.$u.props.rate.activeIcon
  19401. },
  19402. // 未选中时的图标(星星)
  19403. inactiveIcon: {
  19404. type: String,
  19405. default: uni.$u.props.rate.inactiveIcon
  19406. },
  19407. // 是否可以通过滑动手势选择评分
  19408. touchable: {
  19409. type: Boolean,
  19410. default: uni.$u.props.rate.touchable
  19411. }
  19412. }
  19413. };
  19414. exports.default = _default;
  19415. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  19416. /***/ }),
  19417. /* 271 */,
  19418. /* 272 */,
  19419. /* 273 */,
  19420. /* 274 */,
  19421. /* 275 */,
  19422. /* 276 */,
  19423. /* 277 */,
  19424. /* 278 */
  19425. /*!********************************************************************************!*\
  19426. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-cell/props.js ***!
  19427. \********************************************************************************/
  19428. /*! no static exports found */
  19429. /***/ (function(module, exports, __webpack_require__) {
  19430. "use strict";
  19431. /* WEBPACK VAR INJECTION */(function(uni) {
  19432. Object.defineProperty(exports, "__esModule", {
  19433. value: true
  19434. });
  19435. exports.default = void 0;
  19436. var _default2 = {
  19437. props: {
  19438. // 标题
  19439. title: {
  19440. type: [String, Number],
  19441. default: uni.$u.props.cell.title
  19442. },
  19443. // 标题下方的描述信息
  19444. label: {
  19445. type: [String, Number],
  19446. default: uni.$u.props.cell.label
  19447. },
  19448. // 右侧的内容
  19449. value: {
  19450. type: [String, Number],
  19451. default: uni.$u.props.cell.value
  19452. },
  19453. // 左侧图标名称,或者图片链接(本地文件建议使用绝对地址)
  19454. icon: {
  19455. type: String,
  19456. default: uni.$u.props.cell.icon
  19457. },
  19458. // 是否禁用cell
  19459. disabled: {
  19460. type: Boolean,
  19461. default: uni.$u.props.cell.disabled
  19462. },
  19463. // 是否显示下边框
  19464. border: {
  19465. type: Boolean,
  19466. default: uni.$u.props.cell.border
  19467. },
  19468. // 内容是否垂直居中(主要是针对右侧的value部分)
  19469. center: {
  19470. type: Boolean,
  19471. default: uni.$u.props.cell.center
  19472. },
  19473. // 点击后跳转的URL地址
  19474. url: {
  19475. type: String,
  19476. default: uni.$u.props.cell.url
  19477. },
  19478. // 链接跳转的方式,内部使用的是uView封装的route方法,可能会进行拦截操作
  19479. linkType: {
  19480. type: String,
  19481. default: uni.$u.props.cell.linkType
  19482. },
  19483. // 是否开启点击反馈(表现为点击时加上灰色背景)
  19484. clickable: {
  19485. type: Boolean,
  19486. default: uni.$u.props.cell.clickable
  19487. },
  19488. // 是否展示右侧箭头并开启点击反馈
  19489. isLink: {
  19490. type: Boolean,
  19491. default: uni.$u.props.cell.isLink
  19492. },
  19493. // 是否显示表单状态下的必填星号(此组件可能会内嵌入input组件)
  19494. required: {
  19495. type: Boolean,
  19496. default: uni.$u.props.cell.required
  19497. },
  19498. // 右侧的图标箭头
  19499. rightIcon: {
  19500. type: String,
  19501. default: uni.$u.props.cell.rightIcon
  19502. },
  19503. // 右侧箭头的方向,可选值为:left,up,down
  19504. arrowDirection: {
  19505. type: String,
  19506. default: uni.$u.props.cell.arrowDirection
  19507. },
  19508. // 左侧图标样式
  19509. iconStyle: {
  19510. type: [Object, String],
  19511. default: function _default() {
  19512. return uni.$u.props.cell.iconStyle;
  19513. }
  19514. },
  19515. // 右侧箭头图标的样式
  19516. rightIconStyle: {
  19517. type: [Object, String],
  19518. default: function _default() {
  19519. return uni.$u.props.cell.rightIconStyle;
  19520. }
  19521. },
  19522. // 标题的样式
  19523. titleStyle: {
  19524. type: [Object, String],
  19525. default: function _default() {
  19526. return uni.$u.props.cell.titleStyle;
  19527. }
  19528. },
  19529. // 单位元的大小,可选值为large
  19530. size: {
  19531. type: String,
  19532. default: uni.$u.props.cell.size
  19533. },
  19534. // 点击cell是否阻止事件传播
  19535. stop: {
  19536. type: Boolean,
  19537. default: uni.$u.props.cell.stop
  19538. },
  19539. // 标识符,cell被点击时返回
  19540. name: {
  19541. type: [Number, String],
  19542. default: uni.$u.props.cell.name
  19543. }
  19544. }
  19545. };
  19546. exports.default = _default2;
  19547. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  19548. /***/ }),
  19549. /* 279 */,
  19550. /* 280 */,
  19551. /* 281 */,
  19552. /* 282 */,
  19553. /* 283 */,
  19554. /* 284 */,
  19555. /* 285 */,
  19556. /* 286 */
  19557. /*!*********************************************************************************!*\
  19558. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-steps/props.js ***!
  19559. \*********************************************************************************/
  19560. /*! no static exports found */
  19561. /***/ (function(module, exports, __webpack_require__) {
  19562. "use strict";
  19563. /* WEBPACK VAR INJECTION */(function(uni) {
  19564. Object.defineProperty(exports, "__esModule", {
  19565. value: true
  19566. });
  19567. exports.default = void 0;
  19568. var _default = {
  19569. props: {
  19570. // 排列方向
  19571. direction: {
  19572. type: String,
  19573. default: uni.$u.props.steps.direction
  19574. },
  19575. // 设置第几个步骤
  19576. current: {
  19577. type: [String, Number],
  19578. default: uni.$u.props.steps.current
  19579. },
  19580. // 激活状态颜色
  19581. activeColor: {
  19582. type: String,
  19583. default: uni.$u.props.steps.activeColor
  19584. },
  19585. // 未激活状态颜色
  19586. inactiveColor: {
  19587. type: String,
  19588. default: uni.$u.props.steps.inactiveColor
  19589. },
  19590. // 激活状态的图标
  19591. activeIcon: {
  19592. type: String,
  19593. default: uni.$u.props.steps.activeIcon
  19594. },
  19595. // 未激活状态图标
  19596. inactiveIcon: {
  19597. type: String,
  19598. default: uni.$u.props.steps.inactiveIcon
  19599. },
  19600. // 是否显示点类型
  19601. dot: {
  19602. type: Boolean,
  19603. default: uni.$u.props.steps.dot
  19604. }
  19605. }
  19606. };
  19607. exports.default = _default;
  19608. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  19609. /***/ }),
  19610. /* 287 */,
  19611. /* 288 */,
  19612. /* 289 */,
  19613. /* 290 */,
  19614. /* 291 */,
  19615. /* 292 */,
  19616. /* 293 */,
  19617. /* 294 */
  19618. /*!**************************************************************************************!*\
  19619. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-steps-item/props.js ***!
  19620. \**************************************************************************************/
  19621. /*! no static exports found */
  19622. /***/ (function(module, exports, __webpack_require__) {
  19623. "use strict";
  19624. /* WEBPACK VAR INJECTION */(function(uni) {
  19625. Object.defineProperty(exports, "__esModule", {
  19626. value: true
  19627. });
  19628. exports.default = void 0;
  19629. var _default = {
  19630. props: {
  19631. // 标题
  19632. title: {
  19633. type: [String, Number],
  19634. default: uni.$u.props.stepsItem.title
  19635. },
  19636. // 描述文本
  19637. desc: {
  19638. type: [String, Number],
  19639. default: uni.$u.props.stepsItem.desc
  19640. },
  19641. // 图标大小
  19642. iconSize: {
  19643. type: [String, Number],
  19644. default: uni.$u.props.stepsItem.iconSize
  19645. },
  19646. // 当前步骤是否处于失败状态
  19647. error: {
  19648. type: Boolean,
  19649. default: uni.$u.props.stepsItem.error
  19650. }
  19651. }
  19652. };
  19653. exports.default = _default;
  19654. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  19655. /***/ }),
  19656. /* 295 */,
  19657. /* 296 */,
  19658. /* 297 */,
  19659. /* 298 */,
  19660. /* 299 */,
  19661. /* 300 */,
  19662. /* 301 */,
  19663. /* 302 */
  19664. /*!******************************************************************************************!*\
  19665. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-checkbox-group/props.js ***!
  19666. \******************************************************************************************/
  19667. /*! no static exports found */
  19668. /***/ (function(module, exports, __webpack_require__) {
  19669. "use strict";
  19670. /* WEBPACK VAR INJECTION */(function(uni) {
  19671. Object.defineProperty(exports, "__esModule", {
  19672. value: true
  19673. });
  19674. exports.default = void 0;
  19675. var _default = {
  19676. props: {
  19677. // 标识符
  19678. name: {
  19679. type: String,
  19680. default: uni.$u.props.checkboxGroup.name
  19681. },
  19682. // 绑定的值
  19683. value: {
  19684. type: Array,
  19685. default: uni.$u.props.checkboxGroup.value
  19686. },
  19687. // 形状,circle-圆形,square-方形
  19688. shape: {
  19689. type: String,
  19690. default: uni.$u.props.checkboxGroup.shape
  19691. },
  19692. // 是否禁用全部checkbox
  19693. disabled: {
  19694. type: Boolean,
  19695. default: uni.$u.props.checkboxGroup.disabled
  19696. },
  19697. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  19698. activeColor: {
  19699. type: String,
  19700. default: uni.$u.props.checkboxGroup.activeColor
  19701. },
  19702. // 未选中的颜色
  19703. inactiveColor: {
  19704. type: String,
  19705. default: uni.$u.props.checkboxGroup.inactiveColor
  19706. },
  19707. // 整个组件的尺寸,默认px
  19708. size: {
  19709. type: [String, Number],
  19710. default: uni.$u.props.checkboxGroup.size
  19711. },
  19712. // 布局方式,row-横向,column-纵向
  19713. placement: {
  19714. type: String,
  19715. default: uni.$u.props.checkboxGroup.placement
  19716. },
  19717. // label的字体大小,px单位
  19718. labelSize: {
  19719. type: [String, Number],
  19720. default: uni.$u.props.checkboxGroup.labelSize
  19721. },
  19722. // label的字体颜色
  19723. labelColor: {
  19724. type: [String],
  19725. default: uni.$u.props.checkboxGroup.labelColor
  19726. },
  19727. // 是否禁止点击文本操作
  19728. labelDisabled: {
  19729. type: Boolean,
  19730. default: uni.$u.props.checkboxGroup.labelDisabled
  19731. },
  19732. // 图标颜色
  19733. iconColor: {
  19734. type: String,
  19735. default: uni.$u.props.checkboxGroup.iconColor
  19736. },
  19737. // 图标的大小,单位px
  19738. iconSize: {
  19739. type: [String, Number],
  19740. default: uni.$u.props.checkboxGroup.iconSize
  19741. },
  19742. // 勾选图标的对齐方式,left-左边,right-右边
  19743. iconPlacement: {
  19744. type: String,
  19745. default: uni.$u.props.checkboxGroup.iconPlacement
  19746. },
  19747. // 竖向配列时,是否显示下划线
  19748. borderBottom: {
  19749. type: Boolean,
  19750. default: uni.$u.props.checkboxGroup.borderBottom
  19751. }
  19752. }
  19753. };
  19754. exports.default = _default;
  19755. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  19756. /***/ }),
  19757. /* 303 */,
  19758. /* 304 */,
  19759. /* 305 */,
  19760. /* 306 */,
  19761. /* 307 */,
  19762. /* 308 */,
  19763. /* 309 */,
  19764. /* 310 */
  19765. /*!************************************************************************************!*\
  19766. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-checkbox/props.js ***!
  19767. \************************************************************************************/
  19768. /*! no static exports found */
  19769. /***/ (function(module, exports, __webpack_require__) {
  19770. "use strict";
  19771. /* WEBPACK VAR INJECTION */(function(uni) {
  19772. Object.defineProperty(exports, "__esModule", {
  19773. value: true
  19774. });
  19775. exports.default = void 0;
  19776. var _default = {
  19777. props: {
  19778. // checkbox的名称
  19779. name: {
  19780. type: [String, Number, Boolean],
  19781. default: uni.$u.props.checkbox.name
  19782. },
  19783. // 形状,square为方形,circle为圆型
  19784. shape: {
  19785. type: String,
  19786. default: uni.$u.props.checkbox.shape
  19787. },
  19788. // 整体的大小
  19789. size: {
  19790. type: [String, Number],
  19791. default: uni.$u.props.checkbox.size
  19792. },
  19793. // 是否默认选中
  19794. checked: {
  19795. type: Boolean,
  19796. default: uni.$u.props.checkbox.checked
  19797. },
  19798. // 是否禁用
  19799. disabled: {
  19800. type: [String, Boolean],
  19801. default: uni.$u.props.checkbox.disabled
  19802. },
  19803. // 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
  19804. activeColor: {
  19805. type: String,
  19806. default: uni.$u.props.checkbox.activeColor
  19807. },
  19808. // 未选中的颜色
  19809. inactiveColor: {
  19810. type: String,
  19811. default: uni.$u.props.checkbox.inactiveColor
  19812. },
  19813. // 图标的大小,单位px
  19814. iconSize: {
  19815. type: [String, Number],
  19816. default: uni.$u.props.checkbox.iconSize
  19817. },
  19818. // 图标颜色
  19819. iconColor: {
  19820. type: String,
  19821. default: uni.$u.props.checkbox.iconColor
  19822. },
  19823. // label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
  19824. label: {
  19825. type: [String, Number],
  19826. default: uni.$u.props.checkbox.label
  19827. },
  19828. // label的字体大小,px单位
  19829. labelSize: {
  19830. type: [String, Number],
  19831. default: uni.$u.props.checkbox.labelSize
  19832. },
  19833. // label的颜色
  19834. labelColor: {
  19835. type: String,
  19836. default: uni.$u.props.checkbox.labelColor
  19837. },
  19838. // 是否禁止点击提示语选中复选框
  19839. labelDisabled: {
  19840. type: [String, Boolean],
  19841. default: uni.$u.props.checkbox.labelDisabled
  19842. }
  19843. }
  19844. };
  19845. exports.default = _default;
  19846. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  19847. /***/ }),
  19848. /* 311 */,
  19849. /* 312 */,
  19850. /* 313 */,
  19851. /* 314 */,
  19852. /* 315 */,
  19853. /* 316 */,
  19854. /* 317 */,
  19855. /* 318 */
  19856. /*!*********************************************************************************!*\
  19857. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-popup/props.js ***!
  19858. \*********************************************************************************/
  19859. /*! no static exports found */
  19860. /***/ (function(module, exports, __webpack_require__) {
  19861. "use strict";
  19862. /* WEBPACK VAR INJECTION */(function(uni) {
  19863. Object.defineProperty(exports, "__esModule", {
  19864. value: true
  19865. });
  19866. exports.default = void 0;
  19867. var _default = {
  19868. props: {
  19869. // 是否展示弹窗
  19870. show: {
  19871. type: Boolean,
  19872. default: uni.$u.props.popup.show
  19873. },
  19874. // 是否显示遮罩
  19875. overlay: {
  19876. type: Boolean,
  19877. default: uni.$u.props.popup.overlay
  19878. },
  19879. // 弹出的方向,可选值为 top bottom right left center
  19880. mode: {
  19881. type: String,
  19882. default: uni.$u.props.popup.mode
  19883. },
  19884. // 动画时长,单位ms
  19885. duration: {
  19886. type: [String, Number],
  19887. default: uni.$u.props.popup.duration
  19888. },
  19889. // 是否显示关闭图标
  19890. closeable: {
  19891. type: Boolean,
  19892. default: uni.$u.props.popup.closeable
  19893. },
  19894. // 自定义遮罩的样式
  19895. overlayStyle: {
  19896. type: [Object, String],
  19897. default: uni.$u.props.popup.overlayStyle
  19898. },
  19899. // 点击遮罩是否关闭弹窗
  19900. closeOnClickOverlay: {
  19901. type: Boolean,
  19902. default: uni.$u.props.popup.closeOnClickOverlay
  19903. },
  19904. // 层级
  19905. zIndex: {
  19906. type: [String, Number],
  19907. default: uni.$u.props.popup.zIndex
  19908. },
  19909. // 是否为iPhoneX留出底部安全距离
  19910. safeAreaInsetBottom: {
  19911. type: Boolean,
  19912. default: uni.$u.props.popup.safeAreaInsetBottom
  19913. },
  19914. // 是否留出顶部安全距离(状态栏高度)
  19915. safeAreaInsetTop: {
  19916. type: Boolean,
  19917. default: uni.$u.props.popup.safeAreaInsetTop
  19918. },
  19919. // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角
  19920. closeIconPos: {
  19921. type: String,
  19922. default: uni.$u.props.popup.closeIconPos
  19923. },
  19924. // 是否显示圆角
  19925. round: {
  19926. type: [Boolean, String, Number],
  19927. default: uni.$u.props.popup.round
  19928. },
  19929. // mode=center,也即中部弹出时,是否使用缩放模式
  19930. zoom: {
  19931. type: Boolean,
  19932. default: uni.$u.props.popup.zoom
  19933. },
  19934. // 弹窗背景色,设置为transparent可去除白色背景
  19935. bgColor: {
  19936. type: String,
  19937. default: uni.$u.props.popup.bgColor
  19938. },
  19939. // 遮罩的透明度,0-1之间
  19940. overlayOpacity: {
  19941. type: [Number, String],
  19942. default: uni.$u.props.popup.overlayOpacity
  19943. }
  19944. }
  19945. };
  19946. exports.default = _default;
  19947. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  19948. /***/ }),
  19949. /* 319 */,
  19950. /* 320 */,
  19951. /* 321 */,
  19952. /* 322 */,
  19953. /* 323 */,
  19954. /* 324 */,
  19955. /* 325 */,
  19956. /* 326 */
  19957. /*!********************************************************************************!*\
  19958. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-form/props.js ***!
  19959. \********************************************************************************/
  19960. /*! no static exports found */
  19961. /***/ (function(module, exports, __webpack_require__) {
  19962. "use strict";
  19963. /* WEBPACK VAR INJECTION */(function(uni) {
  19964. Object.defineProperty(exports, "__esModule", {
  19965. value: true
  19966. });
  19967. exports.default = void 0;
  19968. var _default = {
  19969. props: {
  19970. // 当前form的需要验证字段的集合
  19971. model: {
  19972. type: Object,
  19973. default: uni.$u.props.form.model
  19974. },
  19975. // 验证规则
  19976. rules: {
  19977. type: [Object, Function, Array],
  19978. default: uni.$u.props.form.rules
  19979. },
  19980. // 有错误时的提示方式,message-提示信息,toast-进行toast提示
  19981. // border-bottom-下边框呈现红色,none-无提示
  19982. errorType: {
  19983. type: String,
  19984. default: uni.$u.props.form.errorType
  19985. },
  19986. // 是否显示表单域的下划线边框
  19987. borderBottom: {
  19988. type: Boolean,
  19989. default: uni.$u.props.form.borderBottom
  19990. },
  19991. // label的位置,left-左边,top-上边
  19992. labelPosition: {
  19993. type: String,
  19994. default: uni.$u.props.form.labelPosition
  19995. },
  19996. // label的宽度,单位px
  19997. labelWidth: {
  19998. type: [String, Number],
  19999. default: uni.$u.props.form.labelWidth
  20000. },
  20001. // lable字体的对齐方式
  20002. labelAlign: {
  20003. type: String,
  20004. default: uni.$u.props.form.labelAlign
  20005. },
  20006. // lable的样式,对象形式
  20007. labelStyle: {
  20008. type: Object,
  20009. default: uni.$u.props.form.labelStyle
  20010. }
  20011. }
  20012. };
  20013. exports.default = _default;
  20014. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  20015. /***/ }),
  20016. /* 327 */,
  20017. /* 328 */,
  20018. /* 329 */,
  20019. /* 330 */,
  20020. /* 331 */,
  20021. /* 332 */
  20022. /*!*************************************************************************************!*\
  20023. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-form-item/props.js ***!
  20024. \*************************************************************************************/
  20025. /*! no static exports found */
  20026. /***/ (function(module, exports, __webpack_require__) {
  20027. "use strict";
  20028. /* WEBPACK VAR INJECTION */(function(uni) {
  20029. Object.defineProperty(exports, "__esModule", {
  20030. value: true
  20031. });
  20032. exports.default = void 0;
  20033. var _default = {
  20034. props: {
  20035. // input的label提示语
  20036. label: {
  20037. type: String,
  20038. default: uni.$u.props.formItem.label
  20039. },
  20040. // 绑定的值
  20041. prop: {
  20042. type: String,
  20043. default: uni.$u.props.formItem.prop
  20044. },
  20045. // 是否显示表单域的下划线边框
  20046. borderBottom: {
  20047. type: [String, Boolean],
  20048. default: uni.$u.props.formItem.borderBottom
  20049. },
  20050. // label的位置,left-左边,top-上边
  20051. labelPosition: {
  20052. type: String,
  20053. default: uni.$u.props.formItem.labelPosition
  20054. },
  20055. // label的宽度,单位px
  20056. labelWidth: {
  20057. type: [String, Number],
  20058. default: uni.$u.props.formItem.labelWidth
  20059. },
  20060. // 右侧图标
  20061. rightIcon: {
  20062. type: String,
  20063. default: uni.$u.props.formItem.rightIcon
  20064. },
  20065. // 左侧图标
  20066. leftIcon: {
  20067. type: String,
  20068. default: uni.$u.props.formItem.leftIcon
  20069. },
  20070. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  20071. required: {
  20072. type: Boolean,
  20073. default: uni.$u.props.formItem.required
  20074. },
  20075. leftIconStyle: {
  20076. type: [String, Object],
  20077. default: uni.$u.props.formItem.leftIconStyle
  20078. }
  20079. }
  20080. };
  20081. exports.default = _default;
  20082. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  20083. /***/ }),
  20084. /* 333 */,
  20085. /* 334 */,
  20086. /* 335 */,
  20087. /* 336 */,
  20088. /* 337 */,
  20089. /* 338 */,
  20090. /* 339 */,
  20091. /* 340 */
  20092. /*!*********************************************************************************!*\
  20093. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-input/props.js ***!
  20094. \*********************************************************************************/
  20095. /*! no static exports found */
  20096. /***/ (function(module, exports, __webpack_require__) {
  20097. "use strict";
  20098. /* WEBPACK VAR INJECTION */(function(uni) {
  20099. Object.defineProperty(exports, "__esModule", {
  20100. value: true
  20101. });
  20102. exports.default = void 0;
  20103. var _default = {
  20104. props: {
  20105. // 输入的值
  20106. value: {
  20107. type: [String, Number],
  20108. default: uni.$u.props.input.value
  20109. },
  20110. // 输入框类型
  20111. // number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
  20112. // idcard-身份证输入键盘,微信、支付宝、百度、QQ小程序
  20113. // digit-带小数点的数字键盘,App的nvue页面、微信、支付宝、百度、头条、QQ小程序
  20114. // text-文本输入键盘
  20115. type: {
  20116. type: String,
  20117. default: uni.$u.props.input.type
  20118. },
  20119. // 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
  20120. // 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
  20121. fixed: {
  20122. type: Boolean,
  20123. default: uni.$u.props.input.fixed
  20124. },
  20125. // 是否禁用输入框
  20126. disabled: {
  20127. type: Boolean,
  20128. default: uni.$u.props.input.disabled
  20129. },
  20130. // 禁用状态时的背景色
  20131. disabledColor: {
  20132. type: String,
  20133. default: uni.$u.props.input.disabledColor
  20134. },
  20135. // 是否显示清除控件
  20136. clearable: {
  20137. type: Boolean,
  20138. default: uni.$u.props.input.clearable
  20139. },
  20140. // 是否密码类型
  20141. password: {
  20142. type: Boolean,
  20143. default: uni.$u.props.input.password
  20144. },
  20145. // 最大输入长度,设置为 -1 的时候不限制最大长度
  20146. maxlength: {
  20147. type: [String, Number],
  20148. default: uni.$u.props.input.maxlength
  20149. },
  20150. // 输入框为空时的占位符
  20151. placeholder: {
  20152. type: String,
  20153. default: uni.$u.props.input.placeholder
  20154. },
  20155. // 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
  20156. placeholderClass: {
  20157. type: String,
  20158. default: uni.$u.props.input.placeholderClass
  20159. },
  20160. // 指定placeholder的样式
  20161. placeholderStyle: {
  20162. type: [String, Object],
  20163. default: uni.$u.props.input.placeholderStyle
  20164. },
  20165. // 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
  20166. showWordLimit: {
  20167. type: Boolean,
  20168. default: uni.$u.props.input.showWordLimit
  20169. },
  20170. // 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
  20171. // https://uniapp.dcloud.io/component/input
  20172. // https://uniapp.dcloud.io/component/textarea
  20173. confirmType: {
  20174. type: String,
  20175. default: uni.$u.props.input.confirmType
  20176. },
  20177. // 点击键盘右下角按钮时是否保持键盘不收起,H5无效
  20178. confirmHold: {
  20179. type: Boolean,
  20180. default: uni.$u.props.input.confirmHold
  20181. },
  20182. // focus时,点击页面的时候不收起键盘,微信小程序有效
  20183. holdKeyboard: {
  20184. type: Boolean,
  20185. default: uni.$u.props.input.holdKeyboard
  20186. },
  20187. // 自动获取焦点
  20188. // 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
  20189. focus: {
  20190. type: Boolean,
  20191. default: uni.$u.props.input.focus
  20192. },
  20193. // 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
  20194. autoBlur: {
  20195. type: Boolean,
  20196. default: uni.$u.props.input.autoBlur
  20197. },
  20198. // 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
  20199. disableDefaultPadding: {
  20200. type: Boolean,
  20201. default: uni.$u.props.input.disableDefaultPadding
  20202. },
  20203. // 指定focus时光标的位置
  20204. cursor: {
  20205. type: [String, Number],
  20206. default: uni.$u.props.input.cursor
  20207. },
  20208. // 输入框聚焦时底部与键盘的距离
  20209. cursorSpacing: {
  20210. type: [String, Number],
  20211. default: uni.$u.props.input.cursorSpacing
  20212. },
  20213. // 光标起始位置,自动聚集时有效,需与selection-end搭配使用
  20214. selectionStart: {
  20215. type: [String, Number],
  20216. default: uni.$u.props.input.selectionStart
  20217. },
  20218. // 光标结束位置,自动聚集时有效,需与selection-start搭配使用
  20219. selectionEnd: {
  20220. type: [String, Number],
  20221. default: uni.$u.props.input.selectionEnd
  20222. },
  20223. // 键盘弹起时,是否自动上推页面
  20224. adjustPosition: {
  20225. type: Boolean,
  20226. default: uni.$u.props.input.adjustPosition
  20227. },
  20228. // 输入框内容对齐方式,可选值为:left|center|right
  20229. inputAlign: {
  20230. type: String,
  20231. default: uni.$u.props.input.inputAlign
  20232. },
  20233. // 输入框字体的大小
  20234. fontSize: {
  20235. type: [String, Number],
  20236. default: uni.$u.props.input.fontSize
  20237. },
  20238. // 输入框字体颜色
  20239. color: {
  20240. type: String,
  20241. default: uni.$u.props.input.color
  20242. },
  20243. // 输入框前置图标
  20244. prefixIcon: {
  20245. type: String,
  20246. default: uni.$u.props.input.prefixIcon
  20247. },
  20248. // 前置图标样式,对象或字符串
  20249. prefixIconStyle: {
  20250. type: [String, Object],
  20251. default: uni.$u.props.input.prefixIconStyle
  20252. },
  20253. // 输入框后置图标
  20254. suffixIcon: {
  20255. type: String,
  20256. default: uni.$u.props.input.suffixIcon
  20257. },
  20258. // 后置图标样式,对象或字符串
  20259. suffixIconStyle: {
  20260. type: [String, Object],
  20261. default: uni.$u.props.input.suffixIconStyle
  20262. },
  20263. // 边框类型,surround-四周边框,bottom-底部边框,none-无边框
  20264. border: {
  20265. type: String,
  20266. default: uni.$u.props.input.border
  20267. },
  20268. // 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
  20269. readonly: {
  20270. type: Boolean,
  20271. default: uni.$u.props.input.readonly
  20272. },
  20273. // 输入框形状,circle-圆形,square-方形
  20274. shape: {
  20275. type: String,
  20276. default: uni.$u.props.input.shape
  20277. },
  20278. // 用于处理或者过滤输入框内容的方法
  20279. formatter: {
  20280. type: [Function, null],
  20281. default: uni.$u.props.input.formatter
  20282. },
  20283. // 是否忽略组件内对文本合成系统事件的处理
  20284. ignoreCompositionEvent: {
  20285. type: Boolean,
  20286. default: true
  20287. }
  20288. }
  20289. };
  20290. exports.default = _default;
  20291. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  20292. /***/ }),
  20293. /* 341 */,
  20294. /* 342 */,
  20295. /* 343 */,
  20296. /* 344 */,
  20297. /* 345 */,
  20298. /* 346 */
  20299. /*!**********************************************************************************!*\
  20300. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-switch/props.js ***!
  20301. \**********************************************************************************/
  20302. /*! no static exports found */
  20303. /***/ (function(module, exports, __webpack_require__) {
  20304. "use strict";
  20305. /* WEBPACK VAR INJECTION */(function(uni) {
  20306. Object.defineProperty(exports, "__esModule", {
  20307. value: true
  20308. });
  20309. exports.default = void 0;
  20310. var _default = {
  20311. props: {
  20312. // 是否为加载中状态
  20313. loading: {
  20314. type: Boolean,
  20315. default: uni.$u.props.switch.loading
  20316. },
  20317. // 是否为禁用装填
  20318. disabled: {
  20319. type: Boolean,
  20320. default: uni.$u.props.switch.disabled
  20321. },
  20322. // 开关尺寸,单位px
  20323. size: {
  20324. type: [String, Number],
  20325. default: uni.$u.props.switch.size
  20326. },
  20327. // 打开时的背景颜色
  20328. activeColor: {
  20329. type: String,
  20330. default: uni.$u.props.switch.activeColor
  20331. },
  20332. // 关闭时的背景颜色
  20333. inactiveColor: {
  20334. type: String,
  20335. default: uni.$u.props.switch.inactiveColor
  20336. },
  20337. // 通过v-model双向绑定的值
  20338. value: {
  20339. type: [Boolean, String, Number],
  20340. default: uni.$u.props.switch.value
  20341. },
  20342. // switch打开时的值
  20343. activeValue: {
  20344. type: [String, Number, Boolean],
  20345. default: uni.$u.props.switch.activeValue
  20346. },
  20347. // switch关闭时的值
  20348. inactiveValue: {
  20349. type: [String, Number, Boolean],
  20350. default: uni.$u.props.switch.inactiveValue
  20351. },
  20352. // 是否开启异步变更,开启后需要手动控制输入值
  20353. asyncChange: {
  20354. type: Boolean,
  20355. default: uni.$u.props.switch.asyncChange
  20356. },
  20357. // 圆点与外边框的距离
  20358. space: {
  20359. type: [String, Number],
  20360. default: uni.$u.props.switch.space
  20361. }
  20362. }
  20363. };
  20364. exports.default = _default;
  20365. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  20366. /***/ }),
  20367. /* 347 */,
  20368. /* 348 */,
  20369. /* 349 */,
  20370. /* 350 */,
  20371. /* 351 */,
  20372. /* 352 */,
  20373. /* 353 */,
  20374. /* 354 */
  20375. /*!********************************************************************************!*\
  20376. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-line/props.js ***!
  20377. \********************************************************************************/
  20378. /*! no static exports found */
  20379. /***/ (function(module, exports, __webpack_require__) {
  20380. "use strict";
  20381. /* WEBPACK VAR INJECTION */(function(uni) {
  20382. Object.defineProperty(exports, "__esModule", {
  20383. value: true
  20384. });
  20385. exports.default = void 0;
  20386. var _default = {
  20387. props: {
  20388. color: {
  20389. type: String,
  20390. default: uni.$u.props.line.color
  20391. },
  20392. // 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
  20393. length: {
  20394. type: [String, Number],
  20395. default: uni.$u.props.line.length
  20396. },
  20397. // 线条方向,col-竖向,row-横向
  20398. direction: {
  20399. type: String,
  20400. default: uni.$u.props.line.direction
  20401. },
  20402. // 是否显示细边框
  20403. hairline: {
  20404. type: Boolean,
  20405. default: uni.$u.props.line.hairline
  20406. },
  20407. // 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
  20408. margin: {
  20409. type: [String, Number],
  20410. default: uni.$u.props.line.margin
  20411. },
  20412. // 是否虚线,true-虚线,false-实线
  20413. dashed: {
  20414. type: Boolean,
  20415. default: uni.$u.props.line.dashed
  20416. }
  20417. }
  20418. };
  20419. exports.default = _default;
  20420. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  20421. /***/ }),
  20422. /* 355 */,
  20423. /* 356 */,
  20424. /* 357 */,
  20425. /* 358 */,
  20426. /* 359 */,
  20427. /* 360 */,
  20428. /* 361 */,
  20429. /* 362 */
  20430. /*!********************************************************************************!*\
  20431. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-text/props.js ***!
  20432. \********************************************************************************/
  20433. /*! no static exports found */
  20434. /***/ (function(module, exports, __webpack_require__) {
  20435. "use strict";
  20436. /* WEBPACK VAR INJECTION */(function(uni) {
  20437. Object.defineProperty(exports, "__esModule", {
  20438. value: true
  20439. });
  20440. exports.default = void 0;
  20441. var _default = {
  20442. props: {
  20443. // 主题颜色
  20444. type: {
  20445. type: String,
  20446. default: uni.$u.props.text.type
  20447. },
  20448. // 是否显示
  20449. show: {
  20450. type: Boolean,
  20451. default: uni.$u.props.text.show
  20452. },
  20453. // 显示的值
  20454. text: {
  20455. type: [String, Number],
  20456. default: uni.$u.props.text.text
  20457. },
  20458. // 前置图标
  20459. prefixIcon: {
  20460. type: String,
  20461. default: uni.$u.props.text.prefixIcon
  20462. },
  20463. // 后置图标
  20464. suffixIcon: {
  20465. type: String,
  20466. default: uni.$u.props.text.suffixIcon
  20467. },
  20468. // 文本处理的匹配模式
  20469. // text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
  20470. mode: {
  20471. type: String,
  20472. default: uni.$u.props.text.mode
  20473. },
  20474. // mode=link下,配置的链接
  20475. href: {
  20476. type: String,
  20477. default: uni.$u.props.text.href
  20478. },
  20479. // 格式化规则
  20480. format: {
  20481. type: [String, Function],
  20482. default: uni.$u.props.text.format
  20483. },
  20484. // mode=phone时,点击文本是否拨打电话
  20485. call: {
  20486. type: Boolean,
  20487. default: uni.$u.props.text.call
  20488. },
  20489. // 小程序的打开方式
  20490. openType: {
  20491. type: String,
  20492. default: uni.$u.props.text.openType
  20493. },
  20494. // 是否粗体,默认normal
  20495. bold: {
  20496. type: Boolean,
  20497. default: uni.$u.props.text.bold
  20498. },
  20499. // 是否块状
  20500. block: {
  20501. type: Boolean,
  20502. default: uni.$u.props.text.block
  20503. },
  20504. // 文本显示的行数,如果设置,超出此行数,将会显示省略号
  20505. lines: {
  20506. type: [String, Number],
  20507. default: uni.$u.props.text.lines
  20508. },
  20509. // 文本颜色
  20510. color: {
  20511. type: String,
  20512. default: uni.$u.props.text.color
  20513. },
  20514. // 字体大小
  20515. size: {
  20516. type: [String, Number],
  20517. default: uni.$u.props.text.size
  20518. },
  20519. // 图标的样式
  20520. iconStyle: {
  20521. type: [Object, String],
  20522. default: uni.$u.props.text.iconStyle
  20523. },
  20524. // 文字装饰,下划线,中划线等,可选值 none|underline|line-through
  20525. decoration: {
  20526. type: String,
  20527. default: uni.$u.props.text.decoration
  20528. },
  20529. // 外边距,对象、字符串,数值形式均可
  20530. margin: {
  20531. type: [Object, String, Number],
  20532. default: uni.$u.props.text.margin
  20533. },
  20534. // 文本行高
  20535. lineHeight: {
  20536. type: [String, Number],
  20537. default: uni.$u.props.text.lineHeight
  20538. },
  20539. // 文本对齐方式,可选值left|center|right
  20540. align: {
  20541. type: String,
  20542. default: uni.$u.props.text.align
  20543. },
  20544. // 文字换行,可选值break-word|normal|anywhere
  20545. wordWrap: {
  20546. type: String,
  20547. default: uni.$u.props.text.wordWrap
  20548. }
  20549. }
  20550. };
  20551. exports.default = _default;
  20552. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  20553. /***/ }),
  20554. /* 363 */,
  20555. /* 364 */,
  20556. /* 365 */,
  20557. /* 366 */,
  20558. /* 367 */,
  20559. /* 368 */
  20560. /*!***********************************************************************************!*\
  20561. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-overlay/props.js ***!
  20562. \***********************************************************************************/
  20563. /*! no static exports found */
  20564. /***/ (function(module, exports, __webpack_require__) {
  20565. "use strict";
  20566. /* WEBPACK VAR INJECTION */(function(uni) {
  20567. Object.defineProperty(exports, "__esModule", {
  20568. value: true
  20569. });
  20570. exports.default = void 0;
  20571. var _default = {
  20572. props: {
  20573. // 是否显示遮罩
  20574. show: {
  20575. type: Boolean,
  20576. default: uni.$u.props.overlay.show
  20577. },
  20578. // 层级z-index
  20579. zIndex: {
  20580. type: [String, Number],
  20581. default: uni.$u.props.overlay.zIndex
  20582. },
  20583. // 遮罩的过渡时间,单位为ms
  20584. duration: {
  20585. type: [String, Number],
  20586. default: uni.$u.props.overlay.duration
  20587. },
  20588. // 不透明度值,当做rgba的第四个参数
  20589. opacity: {
  20590. type: [String, Number],
  20591. default: uni.$u.props.overlay.opacity
  20592. }
  20593. }
  20594. };
  20595. exports.default = _default;
  20596. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  20597. /***/ }),
  20598. /* 369 */,
  20599. /* 370 */,
  20600. /* 371 */,
  20601. /* 372 */,
  20602. /* 373 */,
  20603. /* 374 */,
  20604. /* 375 */,
  20605. /* 376 */
  20606. /*!**************************************************************************************!*\
  20607. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-transition/props.js ***!
  20608. \**************************************************************************************/
  20609. /*! no static exports found */
  20610. /***/ (function(module, exports, __webpack_require__) {
  20611. "use strict";
  20612. /* WEBPACK VAR INJECTION */(function(uni) {
  20613. Object.defineProperty(exports, "__esModule", {
  20614. value: true
  20615. });
  20616. exports.default = void 0;
  20617. var _default = {
  20618. props: {
  20619. // 是否展示组件
  20620. show: {
  20621. type: Boolean,
  20622. default: uni.$u.props.transition.show
  20623. },
  20624. // 使用的动画模式
  20625. mode: {
  20626. type: String,
  20627. default: uni.$u.props.transition.mode
  20628. },
  20629. // 动画的执行时间,单位ms
  20630. duration: {
  20631. type: [String, Number],
  20632. default: uni.$u.props.transition.duration
  20633. },
  20634. // 使用的动画过渡函数
  20635. timingFunction: {
  20636. type: String,
  20637. default: uni.$u.props.transition.timingFunction
  20638. }
  20639. }
  20640. };
  20641. exports.default = _default;
  20642. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  20643. /***/ }),
  20644. /* 377 */
  20645. /*!*******************************************************************************************!*\
  20646. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-transition/transition.js ***!
  20647. \*******************************************************************************************/
  20648. /*! no static exports found */
  20649. /***/ (function(module, exports, __webpack_require__) {
  20650. "use strict";
  20651. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  20652. Object.defineProperty(exports, "__esModule", {
  20653. value: true
  20654. });
  20655. exports.default = void 0;
  20656. var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 55));
  20657. var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 57));
  20658. var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 378));
  20659. // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
  20660. var nextTick = function nextTick() {
  20661. return new Promise(function (resolve) {
  20662. return setTimeout(resolve, 1000 / 50);
  20663. });
  20664. };
  20665. // nvue动画模块实现细节抽离在外部文件
  20666. // 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
  20667. var getClassNames = function getClassNames(name) {
  20668. return {
  20669. enter: "u-".concat(name, "-enter u-").concat(name, "-enter-active"),
  20670. 'enter-to': "u-".concat(name, "-enter-to u-").concat(name, "-enter-active"),
  20671. leave: "u-".concat(name, "-leave u-").concat(name, "-leave-active"),
  20672. 'leave-to': "u-".concat(name, "-leave-to u-").concat(name, "-leave-active")
  20673. };
  20674. };
  20675. var _default = {
  20676. methods: {
  20677. // 组件被点击发出事件
  20678. clickHandler: function clickHandler() {
  20679. this.$emit('click');
  20680. },
  20681. // vue版本的组件进场处理
  20682. vueEnter: function vueEnter() {
  20683. var _this = this;
  20684. // 动画进入时的类名
  20685. var classNames = getClassNames(this.mode);
  20686. // 定义状态和发出动画进入前事件
  20687. this.status = 'enter';
  20688. this.$emit('beforeEnter');
  20689. this.inited = true;
  20690. this.display = true;
  20691. this.classes = classNames.enter;
  20692. this.$nextTick( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
  20693. return _regenerator.default.wrap(function _callee$(_context) {
  20694. while (1) {
  20695. switch (_context.prev = _context.next) {
  20696. case 0:
  20697. // 标识动画尚未结束
  20698. _this.$emit('enter');
  20699. _this.transitionEnded = false;
  20700. // 组件动画进入后触发的事件
  20701. _this.$emit('afterEnter');
  20702. // 赋予组件enter-to类名
  20703. _this.classes = classNames['enter-to'];
  20704. case 4:
  20705. case "end":
  20706. return _context.stop();
  20707. }
  20708. }
  20709. }, _callee);
  20710. })));
  20711. },
  20712. // 动画离场处理
  20713. vueLeave: function vueLeave() {
  20714. var _this2 = this;
  20715. // 如果不是展示状态,无需执行逻辑
  20716. if (!this.display) return;
  20717. var classNames = getClassNames(this.mode);
  20718. // 标记离开状态和发出事件
  20719. this.status = 'leave';
  20720. this.$emit('beforeLeave');
  20721. // 获得类名
  20722. this.classes = classNames.leave;
  20723. this.$nextTick(function () {
  20724. // 动画正在离场的状态
  20725. _this2.transitionEnded = false;
  20726. _this2.$emit('leave');
  20727. // 组件执行动画,到了执行的执行时间后,执行一些额外处理
  20728. setTimeout(_this2.onTransitionEnd, _this2.duration);
  20729. _this2.classes = classNames['leave-to'];
  20730. });
  20731. },
  20732. // 完成过渡后触发
  20733. onTransitionEnd: function onTransitionEnd() {
  20734. // 如果已经是结束的状态,无需再处理
  20735. if (this.transitionEnded) return;
  20736. this.transitionEnded = true;
  20737. // 发出组件动画执行后的事件
  20738. this.$emit(this.status === 'leave' ? 'afterLeave' : 'afterEnter');
  20739. if (!this.show && this.display) {
  20740. this.display = false;
  20741. this.inited = false;
  20742. }
  20743. }
  20744. }
  20745. };
  20746. exports.default = _default;
  20747. /***/ }),
  20748. /* 378 */
  20749. /*!*********************************************************************************************!*\
  20750. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-transition/nvue.ani-map.js ***!
  20751. \*********************************************************************************************/
  20752. /*! no static exports found */
  20753. /***/ (function(module, exports, __webpack_require__) {
  20754. "use strict";
  20755. Object.defineProperty(exports, "__esModule", {
  20756. value: true
  20757. });
  20758. exports.default = void 0;
  20759. var _default = {
  20760. fade: {
  20761. enter: {
  20762. opacity: 0
  20763. },
  20764. 'enter-to': {
  20765. opacity: 1
  20766. },
  20767. leave: {
  20768. opacity: 1
  20769. },
  20770. 'leave-to': {
  20771. opacity: 0
  20772. }
  20773. },
  20774. 'fade-up': {
  20775. enter: {
  20776. opacity: 0,
  20777. transform: 'translateY(100%)'
  20778. },
  20779. 'enter-to': {
  20780. opacity: 1,
  20781. transform: 'translateY(0)'
  20782. },
  20783. leave: {
  20784. opacity: 1,
  20785. transform: 'translateY(0)'
  20786. },
  20787. 'leave-to': {
  20788. opacity: 0,
  20789. transform: 'translateY(100%)'
  20790. }
  20791. },
  20792. 'fade-down': {
  20793. enter: {
  20794. opacity: 0,
  20795. transform: 'translateY(-100%)'
  20796. },
  20797. 'enter-to': {
  20798. opacity: 1,
  20799. transform: 'translateY(0)'
  20800. },
  20801. leave: {
  20802. opacity: 1,
  20803. transform: 'translateY(0)'
  20804. },
  20805. 'leave-to': {
  20806. opacity: 0,
  20807. transform: 'translateY(-100%)'
  20808. }
  20809. },
  20810. 'fade-left': {
  20811. enter: {
  20812. opacity: 0,
  20813. transform: 'translateX(-100%)'
  20814. },
  20815. 'enter-to': {
  20816. opacity: 1,
  20817. transform: 'translateY(0)'
  20818. },
  20819. leave: {
  20820. opacity: 1,
  20821. transform: 'translateY(0)'
  20822. },
  20823. 'leave-to': {
  20824. opacity: 0,
  20825. transform: 'translateX(-100%)'
  20826. }
  20827. },
  20828. 'fade-right': {
  20829. enter: {
  20830. opacity: 0,
  20831. transform: 'translateX(100%)'
  20832. },
  20833. 'enter-to': {
  20834. opacity: 1,
  20835. transform: 'translateY(0)'
  20836. },
  20837. leave: {
  20838. opacity: 1,
  20839. transform: 'translateY(0)'
  20840. },
  20841. 'leave-to': {
  20842. opacity: 0,
  20843. transform: 'translateX(100%)'
  20844. }
  20845. },
  20846. 'slide-up': {
  20847. enter: {
  20848. transform: 'translateY(100%)'
  20849. },
  20850. 'enter-to': {
  20851. transform: 'translateY(0)'
  20852. },
  20853. leave: {
  20854. transform: 'translateY(0)'
  20855. },
  20856. 'leave-to': {
  20857. transform: 'translateY(100%)'
  20858. }
  20859. },
  20860. 'slide-down': {
  20861. enter: {
  20862. transform: 'translateY(-100%)'
  20863. },
  20864. 'enter-to': {
  20865. transform: 'translateY(0)'
  20866. },
  20867. leave: {
  20868. transform: 'translateY(0)'
  20869. },
  20870. 'leave-to': {
  20871. transform: 'translateY(-100%)'
  20872. }
  20873. },
  20874. 'slide-left': {
  20875. enter: {
  20876. transform: 'translateX(-100%)'
  20877. },
  20878. 'enter-to': {
  20879. transform: 'translateY(0)'
  20880. },
  20881. leave: {
  20882. transform: 'translateY(0)'
  20883. },
  20884. 'leave-to': {
  20885. transform: 'translateX(-100%)'
  20886. }
  20887. },
  20888. 'slide-right': {
  20889. enter: {
  20890. transform: 'translateX(100%)'
  20891. },
  20892. 'enter-to': {
  20893. transform: 'translateY(0)'
  20894. },
  20895. leave: {
  20896. transform: 'translateY(0)'
  20897. },
  20898. 'leave-to': {
  20899. transform: 'translateX(100%)'
  20900. }
  20901. },
  20902. zoom: {
  20903. enter: {
  20904. transform: 'scale(0.95)'
  20905. },
  20906. 'enter-to': {
  20907. transform: 'scale(1)'
  20908. },
  20909. leave: {
  20910. transform: 'scale(1)'
  20911. },
  20912. 'leave-to': {
  20913. transform: 'scale(0.95)'
  20914. }
  20915. },
  20916. 'fade-zoom': {
  20917. enter: {
  20918. opacity: 0,
  20919. transform: 'scale(0.95)'
  20920. },
  20921. 'enter-to': {
  20922. opacity: 1,
  20923. transform: 'scale(1)'
  20924. },
  20925. leave: {
  20926. opacity: 1,
  20927. transform: 'scale(1)'
  20928. },
  20929. 'leave-to': {
  20930. opacity: 0,
  20931. transform: 'scale(0.95)'
  20932. }
  20933. }
  20934. };
  20935. exports.default = _default;
  20936. /***/ }),
  20937. /* 379 */,
  20938. /* 380 */,
  20939. /* 381 */,
  20940. /* 382 */,
  20941. /* 383 */,
  20942. /* 384 */,
  20943. /* 385 */,
  20944. /* 386 */
  20945. /*!**************************************************************************************!*\
  20946. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-status-bar/props.js ***!
  20947. \**************************************************************************************/
  20948. /*! no static exports found */
  20949. /***/ (function(module, exports, __webpack_require__) {
  20950. "use strict";
  20951. /* WEBPACK VAR INJECTION */(function(uni) {
  20952. Object.defineProperty(exports, "__esModule", {
  20953. value: true
  20954. });
  20955. exports.default = void 0;
  20956. var _default = {
  20957. props: {
  20958. bgColor: {
  20959. type: String,
  20960. default: uni.$u.props.statusBar.bgColor
  20961. }
  20962. }
  20963. };
  20964. exports.default = _default;
  20965. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  20966. /***/ }),
  20967. /* 387 */,
  20968. /* 388 */,
  20969. /* 389 */,
  20970. /* 390 */,
  20971. /* 391 */,
  20972. /* 392 */,
  20973. /* 393 */,
  20974. /* 394 */
  20975. /*!***************************************************************************************!*\
  20976. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-safe-bottom/props.js ***!
  20977. \***************************************************************************************/
  20978. /*! no static exports found */
  20979. /***/ (function(module, exports, __webpack_require__) {
  20980. "use strict";
  20981. Object.defineProperty(exports, "__esModule", {
  20982. value: true
  20983. });
  20984. exports.default = void 0;
  20985. var _default = {
  20986. props: {}
  20987. };
  20988. exports.default = _default;
  20989. /***/ }),
  20990. /* 395 */,
  20991. /* 396 */,
  20992. /* 397 */,
  20993. /* 398 */,
  20994. /* 399 */,
  20995. /* 400 */,
  20996. /* 401 */,
  20997. /* 402 */
  20998. /*!**********************************************************************************!*\
  20999. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/util/async-validator.js ***!
  21000. \**********************************************************************************/
  21001. /*! no static exports found */
  21002. /***/ (function(module, exports, __webpack_require__) {
  21003. "use strict";
  21004. /* WEBPACK VAR INJECTION */(function(process) {
  21005. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 3);
  21006. Object.defineProperty(exports, "__esModule", {
  21007. value: true
  21008. });
  21009. exports.default = void 0;
  21010. var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 10));
  21011. var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ 12));
  21012. 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; }
  21013. 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; }
  21014. function _extends() {
  21015. _extends = Object.assign || function (target) {
  21016. for (var i = 1; i < arguments.length; i++) {
  21017. var source = arguments[i];
  21018. for (var key in source) {
  21019. if (Object.prototype.hasOwnProperty.call(source, key)) {
  21020. target[key] = source[key];
  21021. }
  21022. }
  21023. }
  21024. return target;
  21025. };
  21026. return _extends.apply(this, arguments);
  21027. }
  21028. /* eslint no-console:0 */
  21029. var formatRegExp = /%[sdj%]/g;
  21030. var warning = function warning() {}; // don't print warning message when in production env or node runtime
  21031. if (typeof process !== 'undefined' && Object({"NODE_ENV":"development","VUE_APP_DARK_MODE":"false","VUE_APP_NAME":"我的","VUE_APP_PLATFORM":"mp-toutiao","BASE_URL":"/"}) && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
  21032. warning = function warning(type, errors) {
  21033. if (typeof console !== 'undefined' && console.warn) {
  21034. if (errors.every(function (e) {
  21035. return typeof e === 'string';
  21036. })) {
  21037. console.warn(type, errors);
  21038. }
  21039. }
  21040. };
  21041. }
  21042. function convertFieldsError(errors) {
  21043. if (!errors || !errors.length) return null;
  21044. var fields = {};
  21045. errors.forEach(function (error) {
  21046. var field = error.field;
  21047. fields[field] = fields[field] || [];
  21048. fields[field].push(error);
  21049. });
  21050. return fields;
  21051. }
  21052. function format() {
  21053. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  21054. args[_key] = arguments[_key];
  21055. }
  21056. var i = 1;
  21057. var f = args[0];
  21058. var len = args.length;
  21059. if (typeof f === 'function') {
  21060. return f.apply(null, args.slice(1));
  21061. }
  21062. if (typeof f === 'string') {
  21063. var str = String(f).replace(formatRegExp, function (x) {
  21064. if (x === '%%') {
  21065. return '%';
  21066. }
  21067. if (i >= len) {
  21068. return x;
  21069. }
  21070. switch (x) {
  21071. case '%s':
  21072. return String(args[i++]);
  21073. case '%d':
  21074. return Number(args[i++]);
  21075. case '%j':
  21076. try {
  21077. return JSON.stringify(args[i++]);
  21078. } catch (_) {
  21079. return '[Circular]';
  21080. }
  21081. break;
  21082. default:
  21083. return x;
  21084. }
  21085. });
  21086. for (var arg = args[i]; i < len; arg = args[++i]) {
  21087. str += " ".concat(arg);
  21088. }
  21089. return str;
  21090. }
  21091. return f;
  21092. }
  21093. function isNativeStringType(type) {
  21094. return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
  21095. }
  21096. function isEmptyValue(value, type) {
  21097. if (value === undefined || value === null) {
  21098. return true;
  21099. }
  21100. if (type === 'array' && Array.isArray(value) && !value.length) {
  21101. return true;
  21102. }
  21103. if (isNativeStringType(type) && typeof value === 'string' && !value) {
  21104. return true;
  21105. }
  21106. return false;
  21107. }
  21108. function asyncParallelArray(arr, func, callback) {
  21109. var results = [];
  21110. var total = 0;
  21111. var arrLength = arr.length;
  21112. function count(errors) {
  21113. results.push.apply(results, errors);
  21114. total++;
  21115. if (total === arrLength) {
  21116. callback(results);
  21117. }
  21118. }
  21119. arr.forEach(function (a) {
  21120. func(a, count);
  21121. });
  21122. }
  21123. function asyncSerialArray(arr, func, callback) {
  21124. var index = 0;
  21125. var arrLength = arr.length;
  21126. function next(errors) {
  21127. if (errors && errors.length) {
  21128. callback(errors);
  21129. return;
  21130. }
  21131. var original = index;
  21132. index += 1;
  21133. if (original < arrLength) {
  21134. func(arr[original], next);
  21135. } else {
  21136. callback([]);
  21137. }
  21138. }
  21139. next([]);
  21140. }
  21141. function flattenObjArr(objArr) {
  21142. var ret = [];
  21143. Object.keys(objArr).forEach(function (k) {
  21144. ret.push.apply(ret, objArr[k]);
  21145. });
  21146. return ret;
  21147. }
  21148. function asyncMap(objArr, option, func, callback) {
  21149. if (option.first) {
  21150. var _pending = new Promise(function (resolve, reject) {
  21151. var next = function next(errors) {
  21152. callback(errors);
  21153. return errors.length ? reject({
  21154. errors: errors,
  21155. fields: convertFieldsError(errors)
  21156. }) : resolve();
  21157. };
  21158. var flattenArr = flattenObjArr(objArr);
  21159. asyncSerialArray(flattenArr, func, next);
  21160. });
  21161. _pending.catch(function (e) {
  21162. return e;
  21163. });
  21164. return _pending;
  21165. }
  21166. var firstFields = option.firstFields || [];
  21167. if (firstFields === true) {
  21168. firstFields = Object.keys(objArr);
  21169. }
  21170. var objArrKeys = Object.keys(objArr);
  21171. var objArrLength = objArrKeys.length;
  21172. var total = 0;
  21173. var results = [];
  21174. var pending = new Promise(function (resolve, reject) {
  21175. var next = function next(errors) {
  21176. results.push.apply(results, errors);
  21177. total++;
  21178. if (total === objArrLength) {
  21179. callback(results);
  21180. return results.length ? reject({
  21181. errors: results,
  21182. fields: convertFieldsError(results)
  21183. }) : resolve();
  21184. }
  21185. };
  21186. if (!objArrKeys.length) {
  21187. callback(results);
  21188. resolve();
  21189. }
  21190. objArrKeys.forEach(function (key) {
  21191. var arr = objArr[key];
  21192. if (firstFields.indexOf(key) !== -1) {
  21193. asyncSerialArray(arr, func, next);
  21194. } else {
  21195. asyncParallelArray(arr, func, next);
  21196. }
  21197. });
  21198. });
  21199. pending.catch(function (e) {
  21200. return e;
  21201. });
  21202. return pending;
  21203. }
  21204. function complementError(rule) {
  21205. return function (oe) {
  21206. if (oe && oe.message) {
  21207. oe.field = oe.field || rule.fullField;
  21208. return oe;
  21209. }
  21210. return {
  21211. message: typeof oe === 'function' ? oe() : oe,
  21212. field: oe.field || rule.fullField
  21213. };
  21214. };
  21215. }
  21216. function deepMerge(target, source) {
  21217. if (source) {
  21218. for (var s in source) {
  21219. if (source.hasOwnProperty(s)) {
  21220. var value = source[s];
  21221. if ((0, _typeof2.default)(value) === 'object' && (0, _typeof2.default)(target[s]) === 'object') {
  21222. target[s] = _objectSpread(_objectSpread({}, target[s]), value);
  21223. } else {
  21224. target[s] = value;
  21225. }
  21226. }
  21227. }
  21228. }
  21229. return target;
  21230. }
  21231. /**
  21232. * Rule for validating required fields.
  21233. *
  21234. * @param rule The validation rule.
  21235. * @param value The value of the field on the source object.
  21236. * @param source The source object being validated.
  21237. * @param errors An array of errors that this rule may add
  21238. * validation errors to.
  21239. * @param options The validation options.
  21240. * @param options.messages The validation messages.
  21241. */
  21242. function required(rule, value, source, errors, options, type) {
  21243. if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
  21244. errors.push(format(options.messages.required, rule.fullField));
  21245. }
  21246. }
  21247. /**
  21248. * Rule for validating whitespace.
  21249. *
  21250. * @param rule The validation rule.
  21251. * @param value The value of the field on the source object.
  21252. * @param source The source object being validated.
  21253. * @param errors An array of errors that this rule may add
  21254. * validation errors to.
  21255. * @param options The validation options.
  21256. * @param options.messages The validation messages.
  21257. */
  21258. function whitespace(rule, value, source, errors, options) {
  21259. if (/^\s+$/.test(value) || value === '') {
  21260. errors.push(format(options.messages.whitespace, rule.fullField));
  21261. }
  21262. }
  21263. /* eslint max-len:0 */
  21264. var pattern = {
  21265. // http://emailregex.com/
  21266. 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,}))$/,
  21267. 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'),
  21268. hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
  21269. };
  21270. var types = {
  21271. integer: function integer(value) {
  21272. return /^(-)?\d+$/.test(value);
  21273. },
  21274. float: function float(value) {
  21275. return /^(-)?\d+(\.\d+)?$/.test(value);
  21276. },
  21277. array: function array(value) {
  21278. return Array.isArray(value);
  21279. },
  21280. regexp: function regexp(value) {
  21281. if (value instanceof RegExp) {
  21282. return true;
  21283. }
  21284. try {
  21285. return !!new RegExp(value);
  21286. } catch (e) {
  21287. return false;
  21288. }
  21289. },
  21290. date: function date(value) {
  21291. return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
  21292. },
  21293. number: function number(value) {
  21294. if (isNaN(value)) {
  21295. return false;
  21296. }
  21297. // 修改源码,将字符串数值先转为数值
  21298. return typeof +value === 'number';
  21299. },
  21300. object: function object(value) {
  21301. return (0, _typeof2.default)(value) === 'object' && !types.array(value);
  21302. },
  21303. method: function method(value) {
  21304. return typeof value === 'function';
  21305. },
  21306. email: function email(value) {
  21307. return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
  21308. },
  21309. url: function url(value) {
  21310. return typeof value === 'string' && !!value.match(pattern.url);
  21311. },
  21312. hex: function hex(value) {
  21313. return typeof value === 'string' && !!value.match(pattern.hex);
  21314. }
  21315. };
  21316. /**
  21317. * Rule for validating the type of a value.
  21318. *
  21319. * @param rule The validation rule.
  21320. * @param value The value of the field on the source object.
  21321. * @param source The source object being validated.
  21322. * @param errors An array of errors that this rule may add
  21323. * validation errors to.
  21324. * @param options The validation options.
  21325. * @param options.messages The validation messages.
  21326. */
  21327. function type(rule, value, source, errors, options) {
  21328. if (rule.required && value === undefined) {
  21329. required(rule, value, source, errors, options);
  21330. return;
  21331. }
  21332. var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
  21333. var ruleType = rule.type;
  21334. if (custom.indexOf(ruleType) > -1) {
  21335. if (!types[ruleType](value)) {
  21336. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  21337. } // straight typeof check
  21338. } else if (ruleType && (0, _typeof2.default)(value) !== rule.type) {
  21339. errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
  21340. }
  21341. }
  21342. /**
  21343. * Rule for validating minimum and maximum allowed values.
  21344. *
  21345. * @param rule The validation rule.
  21346. * @param value The value of the field on the source object.
  21347. * @param source The source object being validated.
  21348. * @param errors An array of errors that this rule may add
  21349. * validation errors to.
  21350. * @param options The validation options.
  21351. * @param options.messages The validation messages.
  21352. */
  21353. function range(rule, value, source, errors, options) {
  21354. var len = typeof rule.len === 'number';
  21355. var min = typeof rule.min === 'number';
  21356. var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)
  21357. var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  21358. var val = value;
  21359. var key = null;
  21360. var num = typeof value === 'number';
  21361. var str = typeof value === 'string';
  21362. var arr = Array.isArray(value);
  21363. if (num) {
  21364. key = 'number';
  21365. } else if (str) {
  21366. key = 'string';
  21367. } else if (arr) {
  21368. key = 'array';
  21369. } // if the value is not of a supported type for range validation
  21370. // the validation rule rule should use the
  21371. // type property to also test for a particular type
  21372. if (!key) {
  21373. return false;
  21374. }
  21375. if (arr) {
  21376. val = value.length;
  21377. }
  21378. if (str) {
  21379. // 处理码点大于U+010000的文字length属性不准确的bug,如"𠮷𠮷𠮷".lenght !== 3
  21380. val = value.replace(spRegexp, '_').length;
  21381. }
  21382. if (len) {
  21383. if (val !== rule.len) {
  21384. errors.push(format(options.messages[key].len, rule.fullField, rule.len));
  21385. }
  21386. } else if (min && !max && val < rule.min) {
  21387. errors.push(format(options.messages[key].min, rule.fullField, rule.min));
  21388. } else if (max && !min && val > rule.max) {
  21389. errors.push(format(options.messages[key].max, rule.fullField, rule.max));
  21390. } else if (min && max && (val < rule.min || val > rule.max)) {
  21391. errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
  21392. }
  21393. }
  21394. var ENUM = 'enum';
  21395. /**
  21396. * Rule for validating a value exists in an enumerable list.
  21397. *
  21398. * @param rule The validation rule.
  21399. * @param value The value of the field on the source object.
  21400. * @param source The source object being validated.
  21401. * @param errors An array of errors that this rule may add
  21402. * validation errors to.
  21403. * @param options The validation options.
  21404. * @param options.messages The validation messages.
  21405. */
  21406. function enumerable(rule, value, source, errors, options) {
  21407. rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
  21408. if (rule[ENUM].indexOf(value) === -1) {
  21409. errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
  21410. }
  21411. }
  21412. /**
  21413. * Rule for validating a regular expression pattern.
  21414. *
  21415. * @param rule The validation rule.
  21416. * @param value The value of the field on the source object.
  21417. * @param source The source object being validated.
  21418. * @param errors An array of errors that this rule may add
  21419. * validation errors to.
  21420. * @param options The validation options.
  21421. * @param options.messages The validation messages.
  21422. */
  21423. function pattern$1(rule, value, source, errors, options) {
  21424. if (rule.pattern) {
  21425. if (rule.pattern instanceof RegExp) {
  21426. // if a RegExp instance is passed, reset `lastIndex` in case its `global`
  21427. // flag is accidentally set to `true`, which in a validation scenario
  21428. // is not necessary and the result might be misleading
  21429. rule.pattern.lastIndex = 0;
  21430. if (!rule.pattern.test(value)) {
  21431. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  21432. }
  21433. } else if (typeof rule.pattern === 'string') {
  21434. var _pattern = new RegExp(rule.pattern);
  21435. if (!_pattern.test(value)) {
  21436. errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
  21437. }
  21438. }
  21439. }
  21440. }
  21441. var rules = {
  21442. required: required,
  21443. whitespace: whitespace,
  21444. type: type,
  21445. range: range,
  21446. enum: enumerable,
  21447. pattern: pattern$1
  21448. };
  21449. /**
  21450. * Performs validation for string types.
  21451. *
  21452. * @param rule The validation rule.
  21453. * @param value The value of the field on the source object.
  21454. * @param callback The callback function.
  21455. * @param source The source object being validated.
  21456. * @param options The validation options.
  21457. * @param options.messages The validation messages.
  21458. */
  21459. function string(rule, value, callback, source, options) {
  21460. var errors = [];
  21461. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21462. if (validate) {
  21463. if (isEmptyValue(value, 'string') && !rule.required) {
  21464. return callback();
  21465. }
  21466. rules.required(rule, value, source, errors, options, 'string');
  21467. if (!isEmptyValue(value, 'string')) {
  21468. rules.type(rule, value, source, errors, options);
  21469. rules.range(rule, value, source, errors, options);
  21470. rules.pattern(rule, value, source, errors, options);
  21471. if (rule.whitespace === true) {
  21472. rules.whitespace(rule, value, source, errors, options);
  21473. }
  21474. }
  21475. }
  21476. callback(errors);
  21477. }
  21478. /**
  21479. * Validates a function.
  21480. *
  21481. * @param rule The validation rule.
  21482. * @param value The value of the field on the source object.
  21483. * @param callback The callback function.
  21484. * @param source The source object being validated.
  21485. * @param options The validation options.
  21486. * @param options.messages The validation messages.
  21487. */
  21488. function method(rule, value, callback, source, options) {
  21489. var errors = [];
  21490. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21491. if (validate) {
  21492. if (isEmptyValue(value) && !rule.required) {
  21493. return callback();
  21494. }
  21495. rules.required(rule, value, source, errors, options);
  21496. if (value !== undefined) {
  21497. rules.type(rule, value, source, errors, options);
  21498. }
  21499. }
  21500. callback(errors);
  21501. }
  21502. /**
  21503. * Validates a number.
  21504. *
  21505. * @param rule The validation rule.
  21506. * @param value The value of the field on the source object.
  21507. * @param callback The callback function.
  21508. * @param source The source object being validated.
  21509. * @param options The validation options.
  21510. * @param options.messages The validation messages.
  21511. */
  21512. function number(rule, value, callback, source, options) {
  21513. var errors = [];
  21514. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21515. if (validate) {
  21516. if (value === '') {
  21517. value = undefined;
  21518. }
  21519. if (isEmptyValue(value) && !rule.required) {
  21520. return callback();
  21521. }
  21522. rules.required(rule, value, source, errors, options);
  21523. if (value !== undefined) {
  21524. rules.type(rule, value, source, errors, options);
  21525. rules.range(rule, value, source, errors, options);
  21526. }
  21527. }
  21528. callback(errors);
  21529. }
  21530. /**
  21531. * Validates a boolean.
  21532. *
  21533. * @param rule The validation rule.
  21534. * @param value The value of the field on the source object.
  21535. * @param callback The callback function.
  21536. * @param source The source object being validated.
  21537. * @param options The validation options.
  21538. * @param options.messages The validation messages.
  21539. */
  21540. function _boolean(rule, value, callback, source, options) {
  21541. var errors = [];
  21542. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21543. if (validate) {
  21544. if (isEmptyValue(value) && !rule.required) {
  21545. return callback();
  21546. }
  21547. rules.required(rule, value, source, errors, options);
  21548. if (value !== undefined) {
  21549. rules.type(rule, value, source, errors, options);
  21550. }
  21551. }
  21552. callback(errors);
  21553. }
  21554. /**
  21555. * Validates the regular expression type.
  21556. *
  21557. * @param rule The validation rule.
  21558. * @param value The value of the field on the source object.
  21559. * @param callback The callback function.
  21560. * @param source The source object being validated.
  21561. * @param options The validation options.
  21562. * @param options.messages The validation messages.
  21563. */
  21564. function regexp(rule, value, callback, source, options) {
  21565. var errors = [];
  21566. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21567. if (validate) {
  21568. if (isEmptyValue(value) && !rule.required) {
  21569. return callback();
  21570. }
  21571. rules.required(rule, value, source, errors, options);
  21572. if (!isEmptyValue(value)) {
  21573. rules.type(rule, value, source, errors, options);
  21574. }
  21575. }
  21576. callback(errors);
  21577. }
  21578. /**
  21579. * Validates a number is an integer.
  21580. *
  21581. * @param rule The validation rule.
  21582. * @param value The value of the field on the source object.
  21583. * @param callback The callback function.
  21584. * @param source The source object being validated.
  21585. * @param options The validation options.
  21586. * @param options.messages The validation messages.
  21587. */
  21588. function integer(rule, value, callback, source, options) {
  21589. var errors = [];
  21590. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21591. if (validate) {
  21592. if (isEmptyValue(value) && !rule.required) {
  21593. return callback();
  21594. }
  21595. rules.required(rule, value, source, errors, options);
  21596. if (value !== undefined) {
  21597. rules.type(rule, value, source, errors, options);
  21598. rules.range(rule, value, source, errors, options);
  21599. }
  21600. }
  21601. callback(errors);
  21602. }
  21603. /**
  21604. * Validates a number is a floating point number.
  21605. *
  21606. * @param rule The validation rule.
  21607. * @param value The value of the field on the source object.
  21608. * @param callback The callback function.
  21609. * @param source The source object being validated.
  21610. * @param options The validation options.
  21611. * @param options.messages The validation messages.
  21612. */
  21613. function floatFn(rule, value, callback, source, options) {
  21614. var errors = [];
  21615. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21616. if (validate) {
  21617. if (isEmptyValue(value) && !rule.required) {
  21618. return callback();
  21619. }
  21620. rules.required(rule, value, source, errors, options);
  21621. if (value !== undefined) {
  21622. rules.type(rule, value, source, errors, options);
  21623. rules.range(rule, value, source, errors, options);
  21624. }
  21625. }
  21626. callback(errors);
  21627. }
  21628. /**
  21629. * Validates an array.
  21630. *
  21631. * @param rule The validation rule.
  21632. * @param value The value of the field on the source object.
  21633. * @param callback The callback function.
  21634. * @param source The source object being validated.
  21635. * @param options The validation options.
  21636. * @param options.messages The validation messages.
  21637. */
  21638. function array(rule, value, callback, source, options) {
  21639. var errors = [];
  21640. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21641. if (validate) {
  21642. if (isEmptyValue(value, 'array') && !rule.required) {
  21643. return callback();
  21644. }
  21645. rules.required(rule, value, source, errors, options, 'array');
  21646. if (!isEmptyValue(value, 'array')) {
  21647. rules.type(rule, value, source, errors, options);
  21648. rules.range(rule, value, source, errors, options);
  21649. }
  21650. }
  21651. callback(errors);
  21652. }
  21653. /**
  21654. * Validates an object.
  21655. *
  21656. * @param rule The validation rule.
  21657. * @param value The value of the field on the source object.
  21658. * @param callback The callback function.
  21659. * @param source The source object being validated.
  21660. * @param options The validation options.
  21661. * @param options.messages The validation messages.
  21662. */
  21663. function object(rule, value, callback, source, options) {
  21664. var errors = [];
  21665. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21666. if (validate) {
  21667. if (isEmptyValue(value) && !rule.required) {
  21668. return callback();
  21669. }
  21670. rules.required(rule, value, source, errors, options);
  21671. if (value !== undefined) {
  21672. rules.type(rule, value, source, errors, options);
  21673. }
  21674. }
  21675. callback(errors);
  21676. }
  21677. var ENUM$1 = 'enum';
  21678. /**
  21679. * Validates an enumerable list.
  21680. *
  21681. * @param rule The validation rule.
  21682. * @param value The value of the field on the source object.
  21683. * @param callback The callback function.
  21684. * @param source The source object being validated.
  21685. * @param options The validation options.
  21686. * @param options.messages The validation messages.
  21687. */
  21688. function enumerable$1(rule, value, callback, source, options) {
  21689. var errors = [];
  21690. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21691. if (validate) {
  21692. if (isEmptyValue(value) && !rule.required) {
  21693. return callback();
  21694. }
  21695. rules.required(rule, value, source, errors, options);
  21696. if (value !== undefined) {
  21697. rules[ENUM$1](rule, value, source, errors, options);
  21698. }
  21699. }
  21700. callback(errors);
  21701. }
  21702. /**
  21703. * Validates a regular expression pattern.
  21704. *
  21705. * Performs validation when a rule only contains
  21706. * a pattern property but is not declared as a string type.
  21707. *
  21708. * @param rule The validation rule.
  21709. * @param value The value of the field on the source object.
  21710. * @param callback The callback function.
  21711. * @param source The source object being validated.
  21712. * @param options The validation options.
  21713. * @param options.messages The validation messages.
  21714. */
  21715. function pattern$2(rule, value, callback, source, options) {
  21716. var errors = [];
  21717. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21718. if (validate) {
  21719. if (isEmptyValue(value, 'string') && !rule.required) {
  21720. return callback();
  21721. }
  21722. rules.required(rule, value, source, errors, options);
  21723. if (!isEmptyValue(value, 'string')) {
  21724. rules.pattern(rule, value, source, errors, options);
  21725. }
  21726. }
  21727. callback(errors);
  21728. }
  21729. function date(rule, value, callback, source, options) {
  21730. var errors = [];
  21731. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21732. if (validate) {
  21733. if (isEmptyValue(value) && !rule.required) {
  21734. return callback();
  21735. }
  21736. rules.required(rule, value, source, errors, options);
  21737. if (!isEmptyValue(value)) {
  21738. var dateObject;
  21739. if (typeof value === 'number') {
  21740. dateObject = new Date(value);
  21741. } else {
  21742. dateObject = value;
  21743. }
  21744. rules.type(rule, dateObject, source, errors, options);
  21745. if (dateObject) {
  21746. rules.range(rule, dateObject.getTime(), source, errors, options);
  21747. }
  21748. }
  21749. }
  21750. callback(errors);
  21751. }
  21752. function required$1(rule, value, callback, source, options) {
  21753. var errors = [];
  21754. var type = Array.isArray(value) ? 'array' : (0, _typeof2.default)(value);
  21755. rules.required(rule, value, source, errors, options, type);
  21756. callback(errors);
  21757. }
  21758. function type$1(rule, value, callback, source, options) {
  21759. var ruleType = rule.type;
  21760. var errors = [];
  21761. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21762. if (validate) {
  21763. if (isEmptyValue(value, ruleType) && !rule.required) {
  21764. return callback();
  21765. }
  21766. rules.required(rule, value, source, errors, options, ruleType);
  21767. if (!isEmptyValue(value, ruleType)) {
  21768. rules.type(rule, value, source, errors, options);
  21769. }
  21770. }
  21771. callback(errors);
  21772. }
  21773. /**
  21774. * Performs validation for any type.
  21775. *
  21776. * @param rule The validation rule.
  21777. * @param value The value of the field on the source object.
  21778. * @param callback The callback function.
  21779. * @param source The source object being validated.
  21780. * @param options The validation options.
  21781. * @param options.messages The validation messages.
  21782. */
  21783. function any(rule, value, callback, source, options) {
  21784. var errors = [];
  21785. var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
  21786. if (validate) {
  21787. if (isEmptyValue(value) && !rule.required) {
  21788. return callback();
  21789. }
  21790. rules.required(rule, value, source, errors, options);
  21791. }
  21792. callback(errors);
  21793. }
  21794. var validators = {
  21795. string: string,
  21796. method: method,
  21797. number: number,
  21798. boolean: _boolean,
  21799. regexp: regexp,
  21800. integer: integer,
  21801. float: floatFn,
  21802. array: array,
  21803. object: object,
  21804. enum: enumerable$1,
  21805. pattern: pattern$2,
  21806. date: date,
  21807. url: type$1,
  21808. hex: type$1,
  21809. email: type$1,
  21810. required: required$1,
  21811. any: any
  21812. };
  21813. function newMessages() {
  21814. return {
  21815. default: 'Validation error on field %s',
  21816. required: '%s is required',
  21817. enum: '%s must be one of %s',
  21818. whitespace: '%s cannot be empty',
  21819. date: {
  21820. format: '%s date %s is invalid for format %s',
  21821. parse: '%s date could not be parsed, %s is invalid ',
  21822. invalid: '%s date %s is invalid'
  21823. },
  21824. types: {
  21825. string: '%s is not a %s',
  21826. method: '%s is not a %s (function)',
  21827. array: '%s is not an %s',
  21828. object: '%s is not an %s',
  21829. number: '%s is not a %s',
  21830. date: '%s is not a %s',
  21831. boolean: '%s is not a %s',
  21832. integer: '%s is not an %s',
  21833. float: '%s is not a %s',
  21834. regexp: '%s is not a valid %s',
  21835. email: '%s is not a valid %s',
  21836. url: '%s is not a valid %s',
  21837. hex: '%s is not a valid %s'
  21838. },
  21839. string: {
  21840. len: '%s must be exactly %s characters',
  21841. min: '%s must be at least %s characters',
  21842. max: '%s cannot be longer than %s characters',
  21843. range: '%s must be between %s and %s characters'
  21844. },
  21845. number: {
  21846. len: '%s must equal %s',
  21847. min: '%s cannot be less than %s',
  21848. max: '%s cannot be greater than %s',
  21849. range: '%s must be between %s and %s'
  21850. },
  21851. array: {
  21852. len: '%s must be exactly %s in length',
  21853. min: '%s cannot be less than %s in length',
  21854. max: '%s cannot be greater than %s in length',
  21855. range: '%s must be between %s and %s in length'
  21856. },
  21857. pattern: {
  21858. mismatch: '%s value %s does not match pattern %s'
  21859. },
  21860. clone: function clone() {
  21861. var cloned = JSON.parse(JSON.stringify(this));
  21862. cloned.clone = this.clone;
  21863. return cloned;
  21864. }
  21865. };
  21866. }
  21867. var messages = newMessages();
  21868. /**
  21869. * Encapsulates a validation schema.
  21870. *
  21871. * @param descriptor An object declaring validation rules
  21872. * for this schema.
  21873. */
  21874. function Schema(descriptor) {
  21875. this.rules = null;
  21876. this._messages = messages;
  21877. this.define(descriptor);
  21878. }
  21879. Schema.prototype = {
  21880. messages: function messages(_messages) {
  21881. if (_messages) {
  21882. this._messages = deepMerge(newMessages(), _messages);
  21883. }
  21884. return this._messages;
  21885. },
  21886. define: function define(rules) {
  21887. if (!rules) {
  21888. throw new Error('Cannot configure a schema with no rules');
  21889. }
  21890. if ((0, _typeof2.default)(rules) !== 'object' || Array.isArray(rules)) {
  21891. throw new Error('Rules must be an object');
  21892. }
  21893. this.rules = {};
  21894. var z;
  21895. var item;
  21896. for (z in rules) {
  21897. if (rules.hasOwnProperty(z)) {
  21898. item = rules[z];
  21899. this.rules[z] = Array.isArray(item) ? item : [item];
  21900. }
  21901. }
  21902. },
  21903. validate: function validate(source_, o, oc) {
  21904. var _this = this;
  21905. if (o === void 0) {
  21906. o = {};
  21907. }
  21908. if (oc === void 0) {
  21909. oc = function oc() {};
  21910. }
  21911. var source = source_;
  21912. var options = o;
  21913. var callback = oc;
  21914. if (typeof options === 'function') {
  21915. callback = options;
  21916. options = {};
  21917. }
  21918. if (!this.rules || Object.keys(this.rules).length === 0) {
  21919. if (callback) {
  21920. callback();
  21921. }
  21922. return Promise.resolve();
  21923. }
  21924. function complete(results) {
  21925. var i;
  21926. var errors = [];
  21927. var fields = {};
  21928. function add(e) {
  21929. if (Array.isArray(e)) {
  21930. var _errors;
  21931. errors = (_errors = errors).concat.apply(_errors, e);
  21932. } else {
  21933. errors.push(e);
  21934. }
  21935. }
  21936. for (i = 0; i < results.length; i++) {
  21937. add(results[i]);
  21938. }
  21939. if (!errors.length) {
  21940. errors = null;
  21941. fields = null;
  21942. } else {
  21943. fields = convertFieldsError(errors);
  21944. }
  21945. callback(errors, fields);
  21946. }
  21947. if (options.messages) {
  21948. var messages$1 = this.messages();
  21949. if (messages$1 === messages) {
  21950. messages$1 = newMessages();
  21951. }
  21952. deepMerge(messages$1, options.messages);
  21953. options.messages = messages$1;
  21954. } else {
  21955. options.messages = this.messages();
  21956. }
  21957. var arr;
  21958. var value;
  21959. var series = {};
  21960. var keys = options.keys || Object.keys(this.rules);
  21961. keys.forEach(function (z) {
  21962. arr = _this.rules[z];
  21963. value = source[z];
  21964. arr.forEach(function (r) {
  21965. var rule = r;
  21966. if (typeof rule.transform === 'function') {
  21967. if (source === source_) {
  21968. source = _objectSpread({}, source);
  21969. }
  21970. value = source[z] = rule.transform(value);
  21971. }
  21972. if (typeof rule === 'function') {
  21973. rule = {
  21974. validator: rule
  21975. };
  21976. } else {
  21977. rule = _objectSpread({}, rule);
  21978. }
  21979. rule.validator = _this.getValidationMethod(rule);
  21980. rule.field = z;
  21981. rule.fullField = rule.fullField || z;
  21982. rule.type = _this.getType(rule);
  21983. if (!rule.validator) {
  21984. return;
  21985. }
  21986. series[z] = series[z] || [];
  21987. series[z].push({
  21988. rule: rule,
  21989. value: value,
  21990. source: source,
  21991. field: z
  21992. });
  21993. });
  21994. });
  21995. var errorFields = {};
  21996. return asyncMap(series, options, function (data, doIt) {
  21997. var rule = data.rule;
  21998. var deep = (rule.type === 'object' || rule.type === 'array') && ((0, _typeof2.default)(rule.fields) === 'object' || (0, _typeof2.default)(rule.defaultField) === 'object');
  21999. deep = deep && (rule.required || !rule.required && data.value);
  22000. rule.field = data.field;
  22001. function addFullfield(key, schema) {
  22002. return _objectSpread(_objectSpread({}, schema), {}, {
  22003. fullField: "".concat(rule.fullField, ".").concat(key)
  22004. });
  22005. }
  22006. function cb(e) {
  22007. if (e === void 0) {
  22008. e = [];
  22009. }
  22010. var errors = e;
  22011. if (!Array.isArray(errors)) {
  22012. errors = [errors];
  22013. }
  22014. if (!options.suppressWarning && errors.length) {
  22015. Schema.warning('async-validator:', errors);
  22016. }
  22017. if (errors.length && rule.message) {
  22018. errors = [].concat(rule.message);
  22019. }
  22020. errors = errors.map(complementError(rule));
  22021. if (options.first && errors.length) {
  22022. errorFields[rule.field] = 1;
  22023. return doIt(errors);
  22024. }
  22025. if (!deep) {
  22026. doIt(errors);
  22027. } else {
  22028. // if rule is required but the target object
  22029. // does not exist fail at the rule level and don't
  22030. // go deeper
  22031. if (rule.required && !data.value) {
  22032. if (rule.message) {
  22033. errors = [].concat(rule.message).map(complementError(rule));
  22034. } else if (options.error) {
  22035. errors = [options.error(rule, format(options.messages.required, rule.field))];
  22036. } else {
  22037. errors = [];
  22038. }
  22039. return doIt(errors);
  22040. }
  22041. var fieldsSchema = {};
  22042. if (rule.defaultField) {
  22043. for (var k in data.value) {
  22044. if (data.value.hasOwnProperty(k)) {
  22045. fieldsSchema[k] = rule.defaultField;
  22046. }
  22047. }
  22048. }
  22049. fieldsSchema = _objectSpread(_objectSpread({}, fieldsSchema), data.rule.fields);
  22050. for (var f in fieldsSchema) {
  22051. if (fieldsSchema.hasOwnProperty(f)) {
  22052. var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
  22053. fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
  22054. }
  22055. }
  22056. var schema = new Schema(fieldsSchema);
  22057. schema.messages(options.messages);
  22058. if (data.rule.options) {
  22059. data.rule.options.messages = options.messages;
  22060. data.rule.options.error = options.error;
  22061. }
  22062. schema.validate(data.value, data.rule.options || options, function (errs) {
  22063. var finalErrors = [];
  22064. if (errors && errors.length) {
  22065. finalErrors.push.apply(finalErrors, errors);
  22066. }
  22067. if (errs && errs.length) {
  22068. finalErrors.push.apply(finalErrors, errs);
  22069. }
  22070. doIt(finalErrors.length ? finalErrors : null);
  22071. });
  22072. }
  22073. }
  22074. var res;
  22075. if (rule.asyncValidator) {
  22076. res = rule.asyncValidator(rule, data.value, cb, data.source, options);
  22077. } else if (rule.validator) {
  22078. res = rule.validator(rule, data.value, cb, data.source, options);
  22079. if (res === true) {
  22080. cb();
  22081. } else if (res === false) {
  22082. cb(rule.message || "".concat(rule.field, " fails"));
  22083. } else if (res instanceof Array) {
  22084. cb(res);
  22085. } else if (res instanceof Error) {
  22086. cb(res.message);
  22087. }
  22088. }
  22089. if (res && res.then) {
  22090. res.then(function () {
  22091. return cb();
  22092. }, function (e) {
  22093. return cb(e);
  22094. });
  22095. }
  22096. }, function (results) {
  22097. complete(results);
  22098. });
  22099. },
  22100. getType: function getType(rule) {
  22101. if (rule.type === undefined && rule.pattern instanceof RegExp) {
  22102. rule.type = 'pattern';
  22103. }
  22104. if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
  22105. throw new Error(format('Unknown rule type %s', rule.type));
  22106. }
  22107. return rule.type || 'string';
  22108. },
  22109. getValidationMethod: function getValidationMethod(rule) {
  22110. if (typeof rule.validator === 'function') {
  22111. return rule.validator;
  22112. }
  22113. var keys = Object.keys(rule);
  22114. var messageIndex = keys.indexOf('message');
  22115. if (messageIndex !== -1) {
  22116. keys.splice(messageIndex, 1);
  22117. }
  22118. if (keys.length === 1 && keys[0] === 'required') {
  22119. return validators.required;
  22120. }
  22121. return validators[this.getType(rule)] || false;
  22122. }
  22123. };
  22124. Schema.register = function register(type, validator) {
  22125. if (typeof validator !== 'function') {
  22126. throw new Error('Cannot register a validator by type, validator is not a function');
  22127. }
  22128. validators[type] = validator;
  22129. };
  22130. Schema.warning = warning;
  22131. Schema.messages = messages;
  22132. var _default = Schema; // # sourceMappingURL=index.js.map
  22133. exports.default = _default;
  22134. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/node-libs-browser/mock/process.js */ 403)))
  22135. /***/ }),
  22136. /* 403 */
  22137. /*!********************************************************!*\
  22138. !*** ./node_modules/node-libs-browser/mock/process.js ***!
  22139. \********************************************************/
  22140. /*! no static exports found */
  22141. /***/ (function(module, exports, __webpack_require__) {
  22142. exports.nextTick = function nextTick(fn) {
  22143. var args = Array.prototype.slice.call(arguments);
  22144. args.shift();
  22145. setTimeout(function () {
  22146. fn.apply(null, args);
  22147. }, 0);
  22148. };
  22149. exports.platform = exports.arch =
  22150. exports.execPath = exports.title = 'browser';
  22151. exports.pid = 1;
  22152. exports.browser = true;
  22153. exports.env = {};
  22154. exports.argv = [];
  22155. exports.binding = function (name) {
  22156. throw new Error('No such module. (Possibly not yet loaded)')
  22157. };
  22158. (function () {
  22159. var cwd = '/';
  22160. var path;
  22161. exports.cwd = function () { return cwd };
  22162. exports.chdir = function (dir) {
  22163. if (!path) path = __webpack_require__(/*! path */ 404);
  22164. cwd = path.resolve(dir, cwd);
  22165. };
  22166. })();
  22167. exports.exit = exports.kill =
  22168. exports.umask = exports.dlopen =
  22169. exports.uptime = exports.memoryUsage =
  22170. exports.uvCounters = function() {};
  22171. exports.features = {};
  22172. /***/ }),
  22173. /* 404 */
  22174. /*!***********************************************!*\
  22175. !*** ./node_modules/path-browserify/index.js ***!
  22176. \***********************************************/
  22177. /*! no static exports found */
  22178. /***/ (function(module, exports, __webpack_require__) {
  22179. /* WEBPACK VAR INJECTION */(function(process) {// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
  22180. // backported and transplited with Babel, with backwards-compat fixes
  22181. // Copyright Joyent, Inc. and other Node contributors.
  22182. //
  22183. // Permission is hereby granted, free of charge, to any person obtaining a
  22184. // copy of this software and associated documentation files (the
  22185. // "Software"), to deal in the Software without restriction, including
  22186. // without limitation the rights to use, copy, modify, merge, publish,
  22187. // distribute, sublicense, and/or sell copies of the Software, and to permit
  22188. // persons to whom the Software is furnished to do so, subject to the
  22189. // following conditions:
  22190. //
  22191. // The above copyright notice and this permission notice shall be included
  22192. // in all copies or substantial portions of the Software.
  22193. //
  22194. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  22195. // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22196. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  22197. // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  22198. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  22199. // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  22200. // USE OR OTHER DEALINGS IN THE SOFTWARE.
  22201. // resolves . and .. elements in a path array with directory names there
  22202. // must be no slashes, empty elements, or device names (c:\) in the array
  22203. // (so also no leading and trailing slashes - it does not distinguish
  22204. // relative and absolute paths)
  22205. function normalizeArray(parts, allowAboveRoot) {
  22206. // if the path tries to go above the root, `up` ends up > 0
  22207. var up = 0;
  22208. for (var i = parts.length - 1; i >= 0; i--) {
  22209. var last = parts[i];
  22210. if (last === '.') {
  22211. parts.splice(i, 1);
  22212. } else if (last === '..') {
  22213. parts.splice(i, 1);
  22214. up++;
  22215. } else if (up) {
  22216. parts.splice(i, 1);
  22217. up--;
  22218. }
  22219. }
  22220. // if the path is allowed to go above the root, restore leading ..s
  22221. if (allowAboveRoot) {
  22222. for (; up--; up) {
  22223. parts.unshift('..');
  22224. }
  22225. }
  22226. return parts;
  22227. }
  22228. // path.resolve([from ...], to)
  22229. // posix version
  22230. exports.resolve = function() {
  22231. var resolvedPath = '',
  22232. resolvedAbsolute = false;
  22233. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  22234. var path = (i >= 0) ? arguments[i] : process.cwd();
  22235. // Skip empty and invalid entries
  22236. if (typeof path !== 'string') {
  22237. throw new TypeError('Arguments to path.resolve must be strings');
  22238. } else if (!path) {
  22239. continue;
  22240. }
  22241. resolvedPath = path + '/' + resolvedPath;
  22242. resolvedAbsolute = path.charAt(0) === '/';
  22243. }
  22244. // At this point the path should be resolved to a full absolute path, but
  22245. // handle relative paths to be safe (might happen when process.cwd() fails)
  22246. // Normalize the path
  22247. resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
  22248. return !!p;
  22249. }), !resolvedAbsolute).join('/');
  22250. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  22251. };
  22252. // path.normalize(path)
  22253. // posix version
  22254. exports.normalize = function(path) {
  22255. var isAbsolute = exports.isAbsolute(path),
  22256. trailingSlash = substr(path, -1) === '/';
  22257. // Normalize the path
  22258. path = normalizeArray(filter(path.split('/'), function(p) {
  22259. return !!p;
  22260. }), !isAbsolute).join('/');
  22261. if (!path && !isAbsolute) {
  22262. path = '.';
  22263. }
  22264. if (path && trailingSlash) {
  22265. path += '/';
  22266. }
  22267. return (isAbsolute ? '/' : '') + path;
  22268. };
  22269. // posix version
  22270. exports.isAbsolute = function(path) {
  22271. return path.charAt(0) === '/';
  22272. };
  22273. // posix version
  22274. exports.join = function() {
  22275. var paths = Array.prototype.slice.call(arguments, 0);
  22276. return exports.normalize(filter(paths, function(p, index) {
  22277. if (typeof p !== 'string') {
  22278. throw new TypeError('Arguments to path.join must be strings');
  22279. }
  22280. return p;
  22281. }).join('/'));
  22282. };
  22283. // path.relative(from, to)
  22284. // posix version
  22285. exports.relative = function(from, to) {
  22286. from = exports.resolve(from).substr(1);
  22287. to = exports.resolve(to).substr(1);
  22288. function trim(arr) {
  22289. var start = 0;
  22290. for (; start < arr.length; start++) {
  22291. if (arr[start] !== '') break;
  22292. }
  22293. var end = arr.length - 1;
  22294. for (; end >= 0; end--) {
  22295. if (arr[end] !== '') break;
  22296. }
  22297. if (start > end) return [];
  22298. return arr.slice(start, end - start + 1);
  22299. }
  22300. var fromParts = trim(from.split('/'));
  22301. var toParts = trim(to.split('/'));
  22302. var length = Math.min(fromParts.length, toParts.length);
  22303. var samePartsLength = length;
  22304. for (var i = 0; i < length; i++) {
  22305. if (fromParts[i] !== toParts[i]) {
  22306. samePartsLength = i;
  22307. break;
  22308. }
  22309. }
  22310. var outputParts = [];
  22311. for (var i = samePartsLength; i < fromParts.length; i++) {
  22312. outputParts.push('..');
  22313. }
  22314. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  22315. return outputParts.join('/');
  22316. };
  22317. exports.sep = '/';
  22318. exports.delimiter = ':';
  22319. exports.dirname = function (path) {
  22320. if (typeof path !== 'string') path = path + '';
  22321. if (path.length === 0) return '.';
  22322. var code = path.charCodeAt(0);
  22323. var hasRoot = code === 47 /*/*/;
  22324. var end = -1;
  22325. var matchedSlash = true;
  22326. for (var i = path.length - 1; i >= 1; --i) {
  22327. code = path.charCodeAt(i);
  22328. if (code === 47 /*/*/) {
  22329. if (!matchedSlash) {
  22330. end = i;
  22331. break;
  22332. }
  22333. } else {
  22334. // We saw the first non-path separator
  22335. matchedSlash = false;
  22336. }
  22337. }
  22338. if (end === -1) return hasRoot ? '/' : '.';
  22339. if (hasRoot && end === 1) {
  22340. // return '//';
  22341. // Backwards-compat fix:
  22342. return '/';
  22343. }
  22344. return path.slice(0, end);
  22345. };
  22346. function basename(path) {
  22347. if (typeof path !== 'string') path = path + '';
  22348. var start = 0;
  22349. var end = -1;
  22350. var matchedSlash = true;
  22351. var i;
  22352. for (i = path.length - 1; i >= 0; --i) {
  22353. if (path.charCodeAt(i) === 47 /*/*/) {
  22354. // If we reached a path separator that was not part of a set of path
  22355. // separators at the end of the string, stop now
  22356. if (!matchedSlash) {
  22357. start = i + 1;
  22358. break;
  22359. }
  22360. } else if (end === -1) {
  22361. // We saw the first non-path separator, mark this as the end of our
  22362. // path component
  22363. matchedSlash = false;
  22364. end = i + 1;
  22365. }
  22366. }
  22367. if (end === -1) return '';
  22368. return path.slice(start, end);
  22369. }
  22370. // Uses a mixed approach for backwards-compatibility, as ext behavior changed
  22371. // in new Node.js versions, so only basename() above is backported here
  22372. exports.basename = function (path, ext) {
  22373. var f = basename(path);
  22374. if (ext && f.substr(-1 * ext.length) === ext) {
  22375. f = f.substr(0, f.length - ext.length);
  22376. }
  22377. return f;
  22378. };
  22379. exports.extname = function (path) {
  22380. if (typeof path !== 'string') path = path + '';
  22381. var startDot = -1;
  22382. var startPart = 0;
  22383. var end = -1;
  22384. var matchedSlash = true;
  22385. // Track the state of characters (if any) we see before our first dot and
  22386. // after any path separator we find
  22387. var preDotState = 0;
  22388. for (var i = path.length - 1; i >= 0; --i) {
  22389. var code = path.charCodeAt(i);
  22390. if (code === 47 /*/*/) {
  22391. // If we reached a path separator that was not part of a set of path
  22392. // separators at the end of the string, stop now
  22393. if (!matchedSlash) {
  22394. startPart = i + 1;
  22395. break;
  22396. }
  22397. continue;
  22398. }
  22399. if (end === -1) {
  22400. // We saw the first non-path separator, mark this as the end of our
  22401. // extension
  22402. matchedSlash = false;
  22403. end = i + 1;
  22404. }
  22405. if (code === 46 /*.*/) {
  22406. // If this is our first dot, mark it as the start of our extension
  22407. if (startDot === -1)
  22408. startDot = i;
  22409. else if (preDotState !== 1)
  22410. preDotState = 1;
  22411. } else if (startDot !== -1) {
  22412. // We saw a non-dot and non-path separator before our dot, so we should
  22413. // have a good chance at having a non-empty extension
  22414. preDotState = -1;
  22415. }
  22416. }
  22417. if (startDot === -1 || end === -1 ||
  22418. // We saw a non-dot character immediately before the dot
  22419. preDotState === 0 ||
  22420. // The (right-most) trimmed path component is exactly '..'
  22421. preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
  22422. return '';
  22423. }
  22424. return path.slice(startDot, end);
  22425. };
  22426. function filter (xs, f) {
  22427. if (xs.filter) return xs.filter(f);
  22428. var res = [];
  22429. for (var i = 0; i < xs.length; i++) {
  22430. if (f(xs[i], i, xs)) res.push(xs[i]);
  22431. }
  22432. return res;
  22433. }
  22434. // String.prototype.substr - negative index don't work in IE8
  22435. var substr = 'ab'.substr(-1) === 'b'
  22436. ? function (str, start, len) { return str.substr(start, len) }
  22437. : function (str, start, len) {
  22438. if (start < 0) start = str.length + start;
  22439. return str.substr(start, len);
  22440. }
  22441. ;
  22442. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/mock/process.js */ 403)))
  22443. /***/ }),
  22444. /* 405 */,
  22445. /* 406 */,
  22446. /* 407 */,
  22447. /* 408 */,
  22448. /* 409 */,
  22449. /* 410 */,
  22450. /* 411 */,
  22451. /* 412 */,
  22452. /* 413 */,
  22453. /* 414 */,
  22454. /* 415 */,
  22455. /* 416 */,
  22456. /* 417 */
  22457. /*!****************************************************************************************!*\
  22458. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-loading-icon/props.js ***!
  22459. \****************************************************************************************/
  22460. /*! no static exports found */
  22461. /***/ (function(module, exports, __webpack_require__) {
  22462. "use strict";
  22463. /* WEBPACK VAR INJECTION */(function(uni) {
  22464. Object.defineProperty(exports, "__esModule", {
  22465. value: true
  22466. });
  22467. exports.default = void 0;
  22468. var _default = {
  22469. props: {
  22470. // 是否显示组件
  22471. show: {
  22472. type: Boolean,
  22473. default: uni.$u.props.loadingIcon.show
  22474. },
  22475. // 颜色
  22476. color: {
  22477. type: String,
  22478. default: uni.$u.props.loadingIcon.color
  22479. },
  22480. // 提示文字颜色
  22481. textColor: {
  22482. type: String,
  22483. default: uni.$u.props.loadingIcon.textColor
  22484. },
  22485. // 文字和图标是否垂直排列
  22486. vertical: {
  22487. type: Boolean,
  22488. default: uni.$u.props.loadingIcon.vertical
  22489. },
  22490. // 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
  22491. mode: {
  22492. type: String,
  22493. default: uni.$u.props.loadingIcon.mode
  22494. },
  22495. // 图标大小,单位默认px
  22496. size: {
  22497. type: [String, Number],
  22498. default: uni.$u.props.loadingIcon.size
  22499. },
  22500. // 文字大小
  22501. textSize: {
  22502. type: [String, Number],
  22503. default: uni.$u.props.loadingIcon.textSize
  22504. },
  22505. // 文字内容
  22506. text: {
  22507. type: [String, Number],
  22508. default: uni.$u.props.loadingIcon.text
  22509. },
  22510. // 动画模式
  22511. timingFunction: {
  22512. type: String,
  22513. default: uni.$u.props.loadingIcon.timingFunction
  22514. },
  22515. // 动画执行周期时间
  22516. duration: {
  22517. type: [String, Number],
  22518. default: uni.$u.props.loadingIcon.duration
  22519. },
  22520. // mode=circle时的暗边颜色
  22521. inactiveColor: {
  22522. type: String,
  22523. default: uni.$u.props.loadingIcon.inactiveColor
  22524. }
  22525. }
  22526. };
  22527. exports.default = _default;
  22528. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  22529. /***/ }),
  22530. /* 418 */,
  22531. /* 419 */,
  22532. /* 420 */,
  22533. /* 421 */,
  22534. /* 422 */,
  22535. /* 423 */,
  22536. /* 424 */,
  22537. /* 425 */
  22538. /*!********************************************************************************!*\
  22539. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-text/value.js ***!
  22540. \********************************************************************************/
  22541. /*! no static exports found */
  22542. /***/ (function(module, exports, __webpack_require__) {
  22543. "use strict";
  22544. /* WEBPACK VAR INJECTION */(function(uni) {
  22545. Object.defineProperty(exports, "__esModule", {
  22546. value: true
  22547. });
  22548. exports.default = void 0;
  22549. var _default = {
  22550. computed: {
  22551. // 经处理后需要显示的值
  22552. value: function value() {
  22553. var text = this.text,
  22554. mode = this.mode,
  22555. format = this.format,
  22556. href = this.href;
  22557. // 价格类型
  22558. if (mode === 'price') {
  22559. // 如果text不为金额进行提示
  22560. if (!/^\d+(\.\d+)?$/.test(text)) {
  22561. uni.$u.error('金额模式下,text参数需要为金额格式');
  22562. }
  22563. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的金额格式化处理
  22564. if (uni.$u.test.func(format)) {
  22565. // 如果用户传入的是函数,使用函数格式化
  22566. return format(text);
  22567. }
  22568. // 如果format非正则,非函数,则使用默认的金额格式化方法进行操作
  22569. return uni.$u.priceFormat(text, 2);
  22570. }
  22571. if (mode === 'date') {
  22572. // 判断是否合法的日期或者时间戳
  22573. !uni.$u.test.date(text) && uni.$u.error('日期模式下,text参数需要为日期或时间戳格式');
  22574. // 进行格式化,判断用户传入的format参数为正则,或者函数,如果没有传入format,则使用默认的格式化处理
  22575. if (uni.$u.test.func(format)) {
  22576. // 如果用户传入的是函数,使用函数格式化
  22577. return format(text);
  22578. }
  22579. if (format) {
  22580. // 如果format非正则,非函数,则使用默认的时间格式化方法进行操作
  22581. return uni.$u.timeFormat(text, format);
  22582. }
  22583. // 如果没有设置format,则设置为默认的时间格式化形式
  22584. return uni.$u.timeFormat(text, 'yyyy-mm-dd');
  22585. }
  22586. if (mode === 'phone') {
  22587. // 判断是否合法的手机号
  22588. // !uni.$u.test.mobile(text) && uni.$u.error('手机号模式下,text参数需要为手机号码格式')
  22589. if (uni.$u.test.func(format)) {
  22590. // 如果用户传入的是函数,使用函数格式化
  22591. return format(text);
  22592. }
  22593. if (format === 'encrypt') {
  22594. // 如果format为encrypt,则将手机号进行星号加密处理
  22595. return "".concat(text.substr(0, 3), "****").concat(text.substr(7));
  22596. }
  22597. return text;
  22598. }
  22599. if (mode === 'name') {
  22600. // 判断是否合法的字符粗
  22601. !(typeof text === 'string') && uni.$u.error('姓名模式下,text参数需要为字符串格式');
  22602. if (uni.$u.test.func(format)) {
  22603. // 如果用户传入的是函数,使用函数格式化
  22604. return format(text);
  22605. }
  22606. if (format === 'encrypt') {
  22607. // 如果format为encrypt,则将姓名进行星号加密处理
  22608. return this.formatName(text);
  22609. }
  22610. return text;
  22611. }
  22612. if (mode === 'link') {
  22613. // 判断是否合法的字符粗
  22614. !uni.$u.test.url(href) && uni.$u.error('超链接模式下,href参数需要为URL格式');
  22615. return text;
  22616. }
  22617. return text;
  22618. }
  22619. },
  22620. methods: {
  22621. // 默认的姓名脱敏规则
  22622. formatName: function formatName(name) {
  22623. var value = '';
  22624. if (name.length === 2) {
  22625. value = name.substr(0, 1) + '*';
  22626. } else if (name.length > 2) {
  22627. var char = '';
  22628. for (var i = 0, len = name.length - 2; i < len; i++) {
  22629. char += '*';
  22630. }
  22631. value = name.substr(0, 1) + char + name.substr(-1, 1);
  22632. } else {
  22633. value = name;
  22634. }
  22635. return value;
  22636. }
  22637. }
  22638. };
  22639. exports.default = _default;
  22640. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  22641. /***/ }),
  22642. /* 426 */
  22643. /*!**************************************************************************!*\
  22644. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/mixin/button.js ***!
  22645. \**************************************************************************/
  22646. /*! no static exports found */
  22647. /***/ (function(module, exports, __webpack_require__) {
  22648. "use strict";
  22649. Object.defineProperty(exports, "__esModule", {
  22650. value: true
  22651. });
  22652. exports.default = void 0;
  22653. var _default = {
  22654. props: {
  22655. lang: String,
  22656. sessionFrom: String,
  22657. sendMessageTitle: String,
  22658. sendMessagePath: String,
  22659. sendMessageImg: String,
  22660. showMessageCard: Boolean,
  22661. appParameter: String,
  22662. formType: String,
  22663. openType: String
  22664. }
  22665. };
  22666. exports.default = _default;
  22667. /***/ }),
  22668. /* 427 */
  22669. /*!****************************************************************************!*\
  22670. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/libs/mixin/openType.js ***!
  22671. \****************************************************************************/
  22672. /*! no static exports found */
  22673. /***/ (function(module, exports, __webpack_require__) {
  22674. "use strict";
  22675. Object.defineProperty(exports, "__esModule", {
  22676. value: true
  22677. });
  22678. exports.default = void 0;
  22679. var _default = {
  22680. props: {
  22681. openType: String
  22682. },
  22683. methods: {
  22684. onGetUserInfo: function onGetUserInfo(event) {
  22685. this.$emit('getuserinfo', event.detail);
  22686. },
  22687. onContact: function onContact(event) {
  22688. this.$emit('contact', event.detail);
  22689. },
  22690. onGetPhoneNumber: function onGetPhoneNumber(event) {
  22691. this.$emit('getphonenumber', event.detail);
  22692. },
  22693. onError: function onError(event) {
  22694. this.$emit('error', event.detail);
  22695. },
  22696. onLaunchApp: function onLaunchApp(event) {
  22697. this.$emit('launchapp', event.detail);
  22698. },
  22699. onOpenSetting: function onOpenSetting(event) {
  22700. this.$emit('opensetting', event.detail);
  22701. }
  22702. }
  22703. };
  22704. exports.default = _default;
  22705. /***/ }),
  22706. /* 428 */,
  22707. /* 429 */,
  22708. /* 430 */,
  22709. /* 431 */,
  22710. /* 432 */,
  22711. /* 433 */,
  22712. /* 434 */,
  22713. /* 435 */
  22714. /*!********************************************************************************!*\
  22715. !*** F:/HBuilderProjects/test/uni_modules/uview-ui/components/u-link/props.js ***!
  22716. \********************************************************************************/
  22717. /*! no static exports found */
  22718. /***/ (function(module, exports, __webpack_require__) {
  22719. "use strict";
  22720. /* WEBPACK VAR INJECTION */(function(uni) {
  22721. Object.defineProperty(exports, "__esModule", {
  22722. value: true
  22723. });
  22724. exports.default = void 0;
  22725. var _default = {
  22726. props: {
  22727. // 文字颜色
  22728. color: {
  22729. type: String,
  22730. default: uni.$u.props.link.color
  22731. },
  22732. // 字体大小,单位px
  22733. fontSize: {
  22734. type: [String, Number],
  22735. default: uni.$u.props.link.fontSize
  22736. },
  22737. // 是否显示下划线
  22738. underLine: {
  22739. type: Boolean,
  22740. default: uni.$u.props.link.underLine
  22741. },
  22742. // 要跳转的链接
  22743. href: {
  22744. type: String,
  22745. default: uni.$u.props.link.href
  22746. },
  22747. // 小程序中复制到粘贴板的提示语
  22748. mpTips: {
  22749. type: String,
  22750. default: uni.$u.props.link.mpTips
  22751. },
  22752. // 下划线颜色
  22753. lineColor: {
  22754. type: String,
  22755. default: uni.$u.props.link.lineColor
  22756. },
  22757. // 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
  22758. text: {
  22759. type: String,
  22760. default: uni.$u.props.link.text
  22761. }
  22762. }
  22763. };
  22764. exports.default = _default;
  22765. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-toutiao/dist/index.js */ 1)["default"]))
  22766. /***/ })
  22767. ]]);
  22768. //# sourceMappingURL=../../.sourcemap/mp-toutiao/common/vendor.js.map